$('.jqTransformInputInner').hover(function() {
	$(this).parent().parent().find(":input").focus();
});

jQuery().ready(function(){

	jQuery(".eslider").easySlider({
		auto: false,
		continuous: false,
		nextId: "eslider1next",
		prevId: "eslider1prev"
	});

	jQuery('.jqtrans').jqTransform({imgPath:'/layout/css/img/'});
	jQuery('.subart100 a').click(function() {
    	return false;
	});
		
	jQuery('.boxlink').tooltip({ 
		track: true, 
		delay: 0, 
		showURL: false, 
		left: -102,
		top: 25
	});
	jQuery("a.llink").fancybox({
		'titleShow' : false
	});
		if (jQuery.browser.msie && jQuery.browser.version.substring(0,1) === '8') {
			$('.iframe').click(function() {
				$('.slider').css('text-indent','-9999em');
			});
		}
	jQuery("a.llink.iframe").fancybox({
		'width'				: 800,
		'height'			: 500,
        'autoScale'     	: false,
		'autoDimensions'	: false,
		'centerOnScroll'	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe',
		'onClosed'			: function(){
								if (jQuery.browser.msie && jQuery.browser.version.substring(0,1) === '8') {
									$('.slider').css('text-indent','0');
								}}
	});
	jQuery("a.lpiclink").fancybox({
		'padding'		: 0,
		'transitionIn'	: 'none',
		'transitionOut'	: 'none',
		'titleShow'		: false
	});

	jQuery('.basic3').accordion({
		header: '.toggler',
		active: false,
		autoheight: false,
		alwaysOpen: false,
		active: '.selected',
		selectedClass: 'active'
	});

    jQuery('a.llink').hover(
      function() { jQuery(this).addClass('plus-hover'); },
      function() { jQuery(this).removeClass('plus-hover'); }
    );
    
  //  var dhight = jQuery('.download.multi li:first').height();
  //  alert(dhight);
  //  jQuery('.download.multi li').css({'height':dhight});

	var count = 1;
	var mmp = 35;
	$('.download.multi').each(function(){
		jQuery(this).addClass('n'+count);
		jQuery('.download.multi.n'+count).parent().find('li a').addClass('n'+count);
		jQuery('.download.multi.n'+count+' a.n'+count).css('height',jQuery('.download.multi.n'+count).height()-mmp);
		count++;
	});

	//Show and Hide Value
	jQuery('.inputtxt').click(function() {
		if (this.value == this.defaultValue) {
			this.value = '';
		}
	});
	//Hide Password Label
	jQuery('.inputtxt').blur(function() {
		if (this.value == '') {
			this.value = this.defaultValue;
			$(this).focus().select();
		}
	});
	jQuery('#txtarea').click(function() {
			$(this).focus().select();
	});


	/* see if anything is previously checked and reflect that in the view*/
	jQuery(".checklist input:checked").parent().addClass("selected");
	
	/* handle the user selections */
	jQuery(".checklist .checkbox-select").click(
		function(event) {
			event.preventDefault();
			jQuery(this).parent().addClass("selected");
			jQuery(this).parent().find(":checkbox").attr("checked","checked");
			
		}
	);
	
	jQuery(".checklist .checkbox-deselect").click(
		function(event) {
			event.preventDefault();
			jQuery(this).parent().removeClass("selected");
			jQuery(this).parent().find(":checkbox").removeAttr("checked");
			
			
		}
	);

});