//<![CDATA[	
	var fixSubMenu=function(){
		var obj=$("#subchapter div:first");
		if(obj.length==0)
			obj=$("#subchapter a:first");
		if(obj.length>0){
			var text=obj.text();
			obj.css({"background":"transparent"});
			obj.addClass("subProdHDR");
			obj.html("<span>"+text+"</span>");	
		}
	}
		
	
	$(document).ready(function(){

	//fix png
		$.ifixpng("imgs/pixel.gif");
		$('img[src$=.png], .brandName > img').ifixpng();		
		$('#srchBg').css("z-index",1);		
		
	var menuStat;
	var showMenu = function(obj){
		$(obj).stop().animate({height: "80px"}, {queue:false, duration:400});
		$(".prodMenu").stop().animate({opacity: 1}, 400);
	}
	var hideMenu = function(obj){
		$(obj).stop().animate({height: h+"px"}, {queue:true, duration:200});
		$(".prodMenu").stop().animate({opacity: 0}, 200);
	}		
		
	//menu FX	old a[href$=15]
		var obj=$("#mainMenu li>div");
		var h=obj.height();
		obj.parent().hover(function(){showMenu($(this));},function(){hideMenu($(this))});
		$("#mainMenu>ul>li>a").hover(function(){null},function(){hideMenu(obj);});

	//fix submenu
		fixSubMenu();
	
	//Brands
	 var rotateLogo=function(objID){
	 	var totalHL = $(objID+" div").size();
		var move=($(objID).parent().height())*-1;
		var bottom=totalHL*move;
		
	  	$(objID).animate({top: move},"slow",
			function(){
				
				var firstDiv=$(this).children(":first");
				var curDiv=$(this).children().next();
				var lastDiv=$(this).children(":last");
				firstDiv.remove();
				$(this).css({"top":0});
				firstDiv.clone().insertAfter(lastDiv);
			});
	 }

	 var timer=$.timer(5000, function(timer){
	 	rotateLogo("div.headline");
		timer.reset(5000);
	 });
	
	//show/hide search
		showHideSearch();
		$(".sImg a, .infoMedia a").prettyPhoto();
		
	//add click evnt on prodImg
	$(".prodImg").click(function(){
    	$(".sImg a:first").trigger("click");
	});
	
	//search key msg
	$("input.searchKeys").blur(function(){
	    var obj=$(this),
	        val=obj.val();
	    	addSearchMessage();
	}).focus(function(){
	    $(this).select();
	});
	
	addSearchMessage();
});

//Add search Message
	function addSearchMessage(){
		var obj=$(".searchKeys"),
	    	val=obj.val();
		
		if(val.length<=1 && searchMsg)
	        obj.val(searchMsg);
	}
//]]>	
