$(document).ready(initDocumentGeneral);
				
function initDocumentGeneral(){
	jQuery.easing.def = "easeOutQuad";
		

	var mjfItemsPanelAnimationInDuration=250;
	var mjfItemsPanelAnimationOutDuration=250;
	var mjfItemsAnimationInDuration=700;
	var mjfItemsAnimationInitialDelay=250;
	var mjfItemsAnimationMarginTop=20;
	var mjfItemsAnimationDelay=50;
	var mjfItemsAnimationEase="easeInOutQuart";
	var mjfItemsOverPanelAnimationInDuration=250;
	var mjfItemsOverPanelAnimationOutDuration=400;
	
	if(browserDesc!="ie8" && browserDesc!="ie7"){	
		$("#header #logoMJFContainer.highlight").removeClass("highlight");
		$("#header #logoMJFContainer").hover(logosMJFExperienceMouseOver, logosMJFExperienceMouseOut);
	}else{
	}
	function logosMJFExperienceMouseOver(){
		$("#mjfWebsitesItems").css("display", "block");
		$("#mjfWebsitesItems").stop().fadeTo(0, 0);
		$("#mjfWebsitesItems").stop().fadeTo(mjfItemsPanelAnimationInDuration, 1);		
		$("#mjfWebsitesItems div.item").stop().fadeTo(0, 0);
		$("#mjfWebsitesItems div.item").css("padding-top", mjfItemsAnimationMarginTop+"px");
		$("#mjfWebsitesItems div#item1").stop().animate({
			opacity:1, 
			paddingTop:0
		}, mjfItemsAnimationInDuration, mjfItemsAnimationEase);
		$("#mjfWebsitesItems div#item2").stop().animate({
			opacity:1, 
			paddingTop:0
		}, mjfItemsAnimationInDuration, mjfItemsAnimationEase);
		$("#mjfWebsitesItems div#item3").stop().animate({
			opacity:1, 
			paddingTop:0
		}, mjfItemsAnimationInDuration, mjfItemsAnimationEase);
		$("#mjfWebsitesItems div#item4").stop().animate({
			opacity:1, 
			paddingTop:0
		}, mjfItemsAnimationInDuration, mjfItemsAnimationEase);
		$("#mjfWebsitesItems div#item5").stop().animate({
			opacity:1, 
			paddingTop:0
		}, mjfItemsAnimationInDuration, mjfItemsAnimationEase);
	}
	function logosMJFExperienceMouseOut(){
		$("#mjfWebsitesItems").stop().fadeTo(mjfItemsPanelAnimationOutDuration, 0, function(){	$("#mjfWebsitesItems").css("display", "none");	});		
	}
	
	$("#header #logoMJFContainer #mjfWebsitesItems div.item").hover(logosMJFExperienceItemsMouseOver, logosMJFExperienceItemsMouseOut);
	function logosMJFExperienceItemsMouseOver(){
		var targetedItem=$("span.description", $(this));
		targetedItem.css("display", "block");
		targetedItem.stop().fadeTo(0, 0);
		targetedItem.stop().fadeTo(mjfItemsOverPanelAnimationInDuration, 1);		
	}
	function logosMJFExperienceItemsMouseOut(){
		var targetedItem=$("span.description", $(this));
		targetedItem.stop().fadeTo(mjfItemsOverPanelAnimationOutDuration, 0, function(){	targetedItem.css("display", "none");	});	
	}

	
	
	
			
}	

