/* copyright by Euroweb Group */
jQuery(document).ready(function(){
	jQuery(".navigationTab.inactive").hover(function(){
		myID = jQuery(this).attr("id");
		mysubnavigation = myID.substr(11);
		if(document.getElementById("subnavigation-" + mysubnavigation)){
			jQuery(".header-subnavigation").stop(true,true);
			if(jQuery(".header-subnavigation.active").length){
				jQuery(".header-subnavigation.active").fadeOut(200, function(){jQuery("#subnavigation-" + mysubnavigation + ".inactive").fadeIn(200);});
			} else {
				jQuery("#subnavigation-" + mysubnavigation + ".inactive").fadeIn(200);
			}
		}
		
	}, function(){
		myID = jQuery(this).attr("id");
		mysubnavigation = myID.substr(11);
		if(document.getElementById("subnavigation-" + mysubnavigation)){
			jQuery(".header-subnavigation").stop(true,true);
		}
		jQuery("#subnavigation-" + mysubnavigation + ".inactive").fadeOut(200, function(){jQuery(".header-subnavigation.active").fadeIn(200);});
	});
	
	jQuery(".header-subnavigation.inactive").hover(function(){
		jQuery(".header-subnavigation").stop(true,true);
		jQuery(this).css("display","block");
		jQuery(".header-subnavigation.active").css("display","none");
		jQuery(".header-subnavigation.active").fadeOut(150);
	}, function(){
		jQuery(this).fadeOut(200, function(){jQuery(".header-subnavigation.active").fadeIn(200);});
	});
	jQuery(window).load(function() {
		
	});
});
