//TOP PANEL$(document).ready(function() {		$("#rightTxt").hover(function(){		$(".txtgreen",this).css("color","#000");		$(".black",this).css("color","#7EC24F");	}, function(){		$(".txtgreen",this).css("color","#7EC24F");		$(".black",this).css("color","#000");		});	$("#rightTxt").click(function() {		if($(this).attr("title")==undefined){			location.href="reason.php";		}else{			location.href=$(this).attr("title")+".php";		}	});		$("#prodCont1").hover(function(){ $("p",this).css("color","#7BC143");},function(){ $("p",this).css("color","");	});	$("#prodCont2").hover(function(){ $("p",this).css("color","#7BC143");},function(){ $("p",this).css("color","");	});	$("#prodCont1").click(function(){ location.href="prodDog.php";});	$("#prodCont2").click(function(){ location.href="prodCat.php";});	$("#video1").click(function(){		scrollTo(0,0);		 var D = document;		 h = Math.max(Math.max(D.body.scrollHeight, D.documentElement.scrollHeight), Math.max(D.body.offsetHeight, D.documentElement.offsetHeight), Math.max(D.body.clientHeight, D.documentElement.clientHeight));		 $("#video").css("height",h+'px');			  document.getElementById("video").innerHTML='<div id="video-cont"><param name="movie" value="http://www.youtube.com/v/				OvrUgvsh2tM&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"><param name="wmode" value="transparent"><param name="allowFullScreen" value="true"><embed src="http://www.youtube.com/v/OvrUgvsh2tM&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" wmode="transparent" height="400" width="600" id="youtube" ><div class="close"><img src="images/lightbox-btn-close.gif"></div></div>';		$("#video").fadeIn("slow");	$("#youtube").hover(function(){ window.you=true; },function(){ window.you=false; });	});	$("#video2").click(function(){		scrollTo(0,0);		 var D = document;		 h = Math.max(Math.max(D.body.scrollHeight, D.documentElement.scrollHeight), Math.max(D.body.offsetHeight, D.documentElement.offsetHeight), Math.max(D.body.clientHeight, D.documentElement.clientHeight));		 $("#video").css("height",h+'px');		  document.getElementById("video").innerHTML='<div id="video-cont"><param name="movie" value="http://www.youtube.com/v/UkDrBXxew0I&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"><param name="wmode" value="transparent"><param name="allowFullScreen" value="true"><embed src="http://www.youtube.com/v/UkDrBXxew0I&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" wmode="transparent" height="400" width="600" id="youtube" ><div class="close"><img src="images/lightbox-btn-close.gif"></div></div>';		$("#video").fadeIn("slow");	$("#youtube").hover(function(){ window.you=true; },function(){ window.you=false; });	});	$("#video3").click(function(){		scrollTo(0,0);		 var D = document;		 h = Math.max(Math.max(D.body.scrollHeight, D.documentElement.scrollHeight), Math.max(D.body.offsetHeight, D.documentElement.offsetHeight), Math.max(D.body.clientHeight, D.documentElement.clientHeight));		 $("#video").css("height",h+'px');			  document.getElementById("video").innerHTML='<div id="video-cont"><param name="movie" value="http://www.youtube.com/v/XzeGuzIO3bg&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"><param name="wmode" value="transparent"><param name="allowFullScreen" value="true"><embed src="http://www.youtube.com/v/XzeGuzIO3bg&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" wmode="transparent" height="400" width="600" id="youtube" ><div class="close"><img src="images/lightbox-btn-close.gif"></div></div>';		$("#video").fadeIn("slow");	$("#youtube").hover(function(){ window.you=true; },function(){ window.you=false; });	});	$(".js_image_popup").click(function(){		scrollTo(0,0);		 var D = document;		 h = Math.max(Math.max(D.body.scrollHeight, D.documentElement.scrollHeight), Math.max(D.body.offsetHeight, D.documentElement.offsetHeight), Math.max(D.body.clientHeight, D.documentElement.clientHeight));		 $("#video").css("height",h+'px');		  document.getElementById("video").innerHTML='<div id="video-cont"><img src="' + $(this).attr('target') + '" style="border:15px solid white;" width="570px"><div class="close"><img src="images/lightbox-btn-close.gif"></div></div>';		$("#video").fadeIn("slow",function(){ h = Math.max(Math.max(D.body.scrollHeight, D.documentElement.scrollHeight), Math.max(D.body.offsetHeight, D.documentElement.offsetHeight), Math.max(D.body.clientHeight, D.documentElement.clientHeight));		 $("#video").css("height",h+'px'); $("#video").css("height",h+'px' ); });			});		$("#video").click(function(){ 		if(!window.you){ 			$("#video").fadeOut("slow",function(){ document.getElementById("video").innerHTML="";});		}	});	}); $(window).load(function() {//	$("#leftMenu ul").slideDown(0);//	$("#centerCont p").toggle(0);	$("#LinkLogo").click(function(){ location.href="index.php"; });	if(window.lang=="en"){ v="SEND"; }else{ v="ENVOYER"; }	txt="<ul id=\"mlist\"><li><form action=\"Mailinglist.php\" method=\"post\" onsubmit=\"return checkmail(this);\">email:<br /><input type=\"text\" name=\"email\" /><br /><input type=\"submit\" value=\""+v+"\" id=\"send\" class=\"btn\" /></form></li></ul>";	var id="";	if($("#about_2").length > 0){id="#about_2";}	if($("#index_2").length > 0){id="#index_2";}	if($("#media_2").length > 0){id="#media_2";}		if (id!=""){		$("a",id).attr("onclick","return false;");		$(id).append(txt);		window.inForm=false;		$(id).click(function(){			if($("#mlist").css("display")=="none"){				$("#mlist").slideDown("slow");				$("a",id).css("color","#000");				$(".selected","#leftMenu").css("color","#808080");			}else{				if(!window.inForm){					$("#mlist").slideUp("slow");					$("a","#index_2").css("color","#808080");					$(".selected","#leftMenu").css("color","#000");				}			}		});		$("#mlist").hover(function(){			window.inForm=true;			},function(){			window.inForm=false;		});	}	UpEfect();	$("#txtToUp").hover(function(){			$("#ContUp").stop();		},function(){ UpEfect(); }		);		if($("#order_0").length > 0){		$("a","#order_0").attr("onclick","return false;");		if(window.lang=="en"){ 			var submenu='<ul id="sub0"><li><a href="order.php?cont=0">+ order by <b>budget</b></a></li><li><a href="order.php?cont=0&sec=1">+ order by <b>weight</b></a></li></ul>';		}else{ 			var submenu='<ul id="sub0"><li><a href="order.php?cont=0">+ en fonction du <b>budget</b></a></li><li><a href="order.php?cont=0&sec=1">+ en fonction du <b> poids</b></a></li></ul>';		}		$("#order_0").append(submenu);		$("#sub0").css("display","none");		$("#order_0").click(function(){			if($("#sub0").css("display")=="none"){				$("#sub0").slideDown("slow");				$("a",$("#order_0")).css("color","#000");				$("a","#sub0").css("color","#808080");				$(".selected","#leftMenu").css("color","#808080");			}else{				$("#sub0").slideUp("slow");				$("a",$("#order_0")).css("color","#808080");				$(".selected","#leftMenu").css("color","#000");			}		});		if(location.href.indexOf("cont=0")!=-1){ 				$("#sub0").css("display","inline");				$("a",$("#order_0")).css("color","#000");				$("a","#sub0").css("color","#808080");				$(".selected","#leftMenu").css("color","#808080");				if(location.href.indexOf("sec=1")!=-1){ tmp=$("a","#sub0").get(1); }else{ tmp=$("a","#sub0").get(0); } 				tmp.className="selected";		}			}		if($("#prodD_7").length > 0){		$("a","#prodD_7").attr("onclick","return false;");		if(window.lang=="en"){ 			var submenu='<ul id="sub1"><li><a href="prodDog.php?cont=7&sec=0">+ Spelt & Cheddar</a></li><li><a href="prodDog.php?cont=7&sec=1">+ Peanut Busters</a></li><li><a href="prodDog.php?cont=7&sec=2">+ Beef Jerky</a></li><li><a href="prodDog.php?cont=7&sec=3">+ Turkey Jerky</a></li><li><a href="prodDog.php?cont=7&sec=4">+ Sweet Potato Chews</a></li></ul>';		}else{ 			var submenu='<ul id="sub1"><li><a href="prodDog.php?cont=7&sec=0">+ Jerky au boeuf  </a></li><li><a href="prodDog.php?cont=7&sec=1">+ Jerky de dinde</a></li><li><a href="prodDog.php?cont=7&sec=2">+ Épeautre et cheddar</a></li><li><a href="prodDog.php?cont=7&sec=3">+ Arachides</a></li><li><a href="prodDog.php?cont=7&sec=4">+ Bouchées de patates douces</a></li></ul>';		}		$("#prodD_7").append(submenu);		$("ul",$("#prodD_7")).css("display","none");		$("#prodD_7").click(function(){			if($("#sub1").css("display")=="none"){				$("#sub1").slideDown("slow");				$("a",$("#prodD_7")).css("color","#000");				$("a","#sub1").css("color","#808080");				$(".selected","#leftMenu").css("color","#808080");			}else{				$("#sub1").slideUp("slow");				$("a",$("#prodD_7")).css("color","#808080");				$(".selected","#leftMenu").css("color","#000");			}		});		if(location.href.indexOf("sec")!=-1){ 				$("#sub1").css("display","inline");				$("a",$("#prodD_7")).css("color","#000");				$("a","#sub1").css("color","#808080");				$(".selected","#leftMenu").css("color","#808080");				tmp=location.href.substr(location.href.length-1);				tmp=$("a","#sub1").get(tmp);				tmp.className="selected";		}	}		$("a",".acOpt").attr("onclick","return false;");		$("div",".acOpt").css("display","none");	$("div","#acselect").slideDown("slow");	$("a","#acselect").css("color","#000");	$("a",".acOpt").click(function(){		$("a","#acselect").css("color","");		$("div","#acselect").slideUp("slow");		$("#acselect").attr("id","");		$(this).css("color","#000");		$("div",this.parentNode).slideDown("slow");		$(this.parentNode).attr("id","acselect");			});	$(".btn").hover(function(){ $(this).css("color","#7BC143");},function(){ $(this).css("color","");});	$(".btn_1").hover(function(){ $(this).css("color","#7BC143");},function(){ $(this).css("color","");});	//imageposition();	});function changeDiv(div1,div2){	if(div1!=""){		$("#"+div1).slideUp("slow", function(){			$("#"+div2).slideDown("slow");		});	}else{		$("#"+div2).slideDown("slow");	}	return false;}function UpEfect(){	$("#ContUp").animate({top: '-='+eval($("#ContUp").height()+220)},$("#ContUp").height()*35,"linear",function(){		$("#ContUp").css("top",220);		UpEfect();	});}function open_popup(){	txt='<div id="pop"><img src="images/order/map_pop.jpg" alt="map" /></div>';	$("#cont").append(txt);	$("#mapchico").css("display","none");	$("#pop").fadeIn("slow");	$("#pop").click(function(){ $("#mapchico").css("display","inline"); $("#pop").fadeOut("slow",function(){ $('#pop').remove(); }); 	});}var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;// Handle all the FSCommand messages in a Flash movie.function imageposition(){		if(location.href.indexOf("media")==-1){	if(document.getElementById('cont').offsetHeight < 615){		$("#cont").css("height","615px");	}	if($("#rightCont").length > 0){			 $("#rightCont img:first").css("top",document.getElementById('cont').offsetHeight-$("#rightCont img:first").height()+9);	}	}else{		$("#rightCont img").css("position","relative");	}}function getOriginalHeightOfImg(img_element) {    var t = new Image();    t.src = (img_element.getAttribute ? img_element.getAttribute("src") : false) || img_element.src;    return t.height;}function map_DoFSCommand(command, args) {	var mapObj = isInternetExplorer ? document.all.map : document.map;	open_popup();}// Hook for Internet Explorer.if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {	document.write('<script language=\"VBScript\"\>\n');	document.write('On Error Resume Next\n');	document.write('Sub map_FSCommand(ByVal command, ByVal args)\n');	document.write('	Call map_DoFSCommand(command, args)\n');	document.write('End Sub\n');	document.write('</script\>\n');}
