var $j = jQuery.noConflict();

$j(document).ready(function(){
						   
					   
/*For IE6 select box hack*/
	if ($j.browser.msie && $j.browser.version.substring(0,1) === '6') {
 		$j("#waystohelplinks, #researchlinks").append('<iframe src="javascript:false;" frameBorder="0" scrolling="no" class="selectOverlap"></iframe>');
	};


/*mainNav inside pages dropdown*/	
	$j("#mainNav>div").hover(
		function(){
			
			$j("#mainNav *:animated").stop(true,true).hide(); //stop the madness
			$j(this).css('zIndex', 10);
			
			/*if "Ways to Help" links hover, move the dropdown the align right		
				if($j(this).hasClass("last")){
	
					var	linkWidth = $j(this).width();
					var dropdownWidth = $j('#waystohelplinks').width();
					
					$j('#waystohelplinks').css( { "margin-left": "-" + (dropdownWidth - linkWidth +3) + "px" } );
				};*/
			
			if ($j.browser.msie && $j.browser.version.substring(0,1) === '6') {
				$j('ul',this).show(); /*fade won't work with the Iframe hack for select box bug in IE6*/
			} else{
				$j('ul',this).fadeIn();
			};
		},
		function(){
			$j('ul',this).fadeOut("fast");
		}
	);
	

/*LZ pages panels*/
	
	$j("#LZpanels a.panels").hover(

		function(){	
				$j(this).children(".detail").stop().animate({
				
					top: '-96'
				  }, 'fast', "easeOutSine", function(){					  		  
			  });		
			
		},
		function(){
			
				$j(this).children("img.thumbnail").stop().animate({
					opacity:1				
				  }, 'fast', "easeOutSine", function(){		
		  
			  });	
			
				$j(this).children(".detail").stop().animate({
					top: '0'
				  }, 'fast', "easeInSine", function(){			  
		  
			  });				
		}
		
	);
	
	
		
/*for tool tip*/
		
		$j("#mainNav div img").tooltip({
				track: true, 
				delay: 0, 
				showURL: false, 
				extraClass: "noTooltip", /*this class is needed to hide default tooltip*/
				fade: 250 
			});
		
		$j("#mainNav div a").tooltip({
				track: true, 
				delay: 0, 
				showURL: false, 
				extraClass: "noTooltip",/*this class is needed to hide default tooltip*/
				fade: 250 
			});

   
   
 });









