	function displayFlash(path,w,h,img,link,id) {
		if(siteversion != "html"){
			document.write('<object width='+w+' height='+h+' id="'+id+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="movie" value="'+path+'" /><param name="wmode" value="opaque" /><embed src="'+path+'" wmode="opaque" width="'+w+'" height="'+h+'" id="'+id+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
		}else{
			if(img != ""){
				if(link != ""){
					document.write('<a href="'+link+'"><img src="' + img + '" width="'+w+'" height="'+h+'" id="'+id+'" /></a>');
				}else{
					document.write('<img src="' + img + '" width="'+w+'" height="'+h+'" id="'+id+'" />');
				}
			}
		}
	}

	function displayFlashThumb(path,w,h,img,link,id) {
		if(siteversion != "html"){
			document.write('<object width='+w+' height='+h+' id="'+id+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="movie" value="'+path+'" /><param name="wmode" value="opaque" /><embed src="'+path+'" wmode="opaque" width="'+w+'" height="'+h+'" id="'+id+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
		}else{
			if(img != ""){
				if(link != ""){
					document.write('<a href="'+link+'" class="thumb"><img src="' + img + '" width="'+w+'" height="'+h+'" id="'+id+'" /></a>');
				}else{
					document.write('<img src="' + img + '" width="'+w+'" height="'+h+'" id="'+id+'" />');
				}
			}
		}
	}


	function displayFlashTransThumb(path,w,h,img,link,id) {
		if(siteversion != "html"){
			document.write('<object width='+w+' height='+h+' id="'+id+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="movie" value="'+path+'" /><param name="wmode" value="transparent" /><embed src="'+path+'" wmode="transparent" width="'+w+'" height="'+h+'" id="'+id+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
		}else{
			if(img != ""){
				if(link != ""){
					document.write('<a href="'+link+'" class="thumbDetails"><img src="' + img + '" width="'+w+'" height="'+h+'" id="'+id+'" /></a>');
				}else{
					document.write('<img src="' + img + '" width="'+w+'" height="'+h+'" id="'+id+'" />');
				}
			}
		}
	}
	
	
/* ------------------------------------------------------------- 
   Popin ------------------------------------------------------- */
   
   
   function openPopin(img){
		switch(browsername)	{
			case "MSIE":
				ypos = document.body.scrollTop;
				break;
			case "NS":
				ypos = window.scrollY;
				break;
			default:
				ypos = document.body.scrollTop;
				break;
		}	
		var myWidth = 0, myHeight = 0;
		if( typeof( window.innerWidth ) == 'number' ) {
		  //Non-IE
		  myWidth = window.innerWidth;
		  myHeight = window.innerHeight;
		} else if( document.documentElement &&
		    ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		  //IE 6+ in 'standards compliant mode'
		  myWidth = document.documentElement.clientWidth;
		  myHeight = document.documentElement.clientHeight;
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		  //IE 4 compatible
		  myWidth = document.body.clientWidth;
		  myHeight = document.body.clientHeight;
		}
		
		pos= ypos + (myHeight/2) - 260;
		if(pos<0){ pos = 0; }
		document.getElementById("popin").style.display = "block";
		document.getElementById("popin").style.top = pos + "px";
   
   
		if(siteversion != "html"){
			document.getElementById("popin").innerHTML = '<object width="440" height="561" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="wmode" value="transparent" /><param name="movie" value="/3084/flash/big.swf?img=' + img + '" /><embed src="/3084/flash/big.swf?img=' + img + '" wmode="transparent" width="440" height="561" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>';
		}else{
			document.getElementById("popin").innerHTML = '<a href="javascript:closePopin();" class="thumbDetails"><img src="' + img + '" width="375" height="521" /></a>';
		}
   }
   
   
   function closePopin(){
		document.getElementById("popin").style.display = "none";
   }
   
   
/* ------------------------------------------------------------- 
   Send  ------------------------------------------------------- */
   
   
   function openSend(colour,path_query_url){
		switch(browsername)	{
			case "MSIE":
				ypos = document.body.scrollTop;
				break;
			case "NS":
				ypos = window.scrollY;
				break;
			default:
				ypos = document.body.scrollTop;
				break;
		}	
		var myWidth = 0, myHeight = 0;
		if( typeof( window.innerWidth ) == 'number' ) {
		  //Non-IE
		  myWidth = window.innerWidth;
		  myHeight = window.innerHeight;
		} else if( document.documentElement &&
		    ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		  //IE 6+ in 'standards compliant mode'
		  myWidth = document.documentElement.clientWidth;
		  myHeight = document.documentElement.clientHeight;
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		  //IE 4 compatible
		  myWidth = document.body.clientWidth;
		  myHeight = document.body.clientHeight;
		}
		
		pos= ypos + (myHeight/2) - 100;
		if(pos<0){ pos = 0; }
		document.getElementById("popin").style.display = "block";
		document.getElementById("popin").style.top = pos + "px";
   
   
		if(siteversion != "html"){
			document.getElementById("popin").innerHTML = '<object width="405" height="335" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="wmode" value="transparent" /><param name="movie" value="/3084/flash/send.swf?colour='+colour+'&path_query_url='+escape(path_query_url)+'" /><embed src="/3084/flash/send.swf?colour='+colour+'&path_query_url='+escape(path_query_url)+'" wmode="transparent" width="405" height="335" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>';
		}else{
			//document.getElementById("popin").innerHTML = '<a href="javascript:closePopin();"><img src="' + img + '" width="375" height="521" /></a>';
		}
   }
   
   function openSent(colour){
		switch(browsername)	{
			case "MSIE":
				ypos = document.body.scrollTop;
				break;
			case "NS":
				ypos = window.scrollY;
				break;
			default:
				ypos = document.body.scrollTop;
				break;
		}	
		var myWidth = 0, myHeight = 0;
		if( typeof( window.innerWidth ) == 'number' ) {
		  //Non-IE
		  myWidth = window.innerWidth;
		  myHeight = window.innerHeight;
		} else if( document.documentElement &&
		    ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		  //IE 6+ in 'standards compliant mode'
		  myWidth = document.documentElement.clientWidth;
		  myHeight = document.documentElement.clientHeight;
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		  //IE 4 compatible
		  myWidth = document.body.clientWidth;
		  myHeight = document.body.clientHeight;
		}
		
		pos= ypos + (myHeight/2) - 100;
		if(pos<0){ pos = 0; }
		document.getElementById("popin").style.display = "block";
		document.getElementById("popin").style.top = pos + "px";
   
   
		if(siteversion != "html"){
			document.getElementById("popin").innerHTML = '<object width="405" height="335" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="wmode" value="transparent" /><param name="movie" value="/3084/flash/sent.swf?colour='+colour+'" /><embed src="/3084/flash/sent.swf?colour='+colour+'" wmode="transparent" width="405" height="335" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>';
		}else{
			//document.getElementById("popin").innerHTML = '<a href="javascript:closePopin();"><img src="' + img + '" width="375" height="521" /></a>';
		}
   }
   
   
   
/* ------------------------------------------------------------- 
   Coming Soon  ------------------------------------------------------- */
   
   
   function openComing(colour){
		switch(browsername)	{
			case "MSIE":
				ypos = document.body.scrollTop;
				break;
			case "NS":
				ypos = window.scrollY;
				break;
			default:
				ypos = document.body.scrollTop;
				break;
		}	
		var myWidth = 0, myHeight = 0;
		if( typeof( window.innerWidth ) == 'number' ) {
		  //Non-IE
		  myWidth = window.innerWidth;
		  myHeight = window.innerHeight;
		} else if( document.documentElement &&
		    ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		  //IE 6+ in 'standards compliant mode'
		  myWidth = document.documentElement.clientWidth;
		  myHeight = document.documentElement.clientHeight;
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		  //IE 4 compatible
		  myWidth = document.body.clientWidth;
		  myHeight = document.body.clientHeight;
		}
		
		pos= ypos + (myHeight/2) - 100;
		if(pos<0){ pos = 0; }
		document.getElementById("popin").style.display = "block";
		document.getElementById("popin").style.top = pos + "px";
   
   
		if(siteversion != "html"){
			document.getElementById("popin").innerHTML = '<object width="405" height="335" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="wmode" value="transparent" /><param name="movie" value="/3084/flash/coming_soon.swf?colour='+colour+'" /><embed src="/3084/flash/coming_soon.swf?colour='+colour+'" wmode="transparent" width="405" height="335" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>';
		}else{
			//document.getElementById("popin").innerHTML = '<a href="javascript:closePopin();"><img src="' + img + '" width="375" height="521" /></a>';
		}
   } 
   

   function openUnder(colour){
		switch(browsername)	{
			case "MSIE":
				ypos = document.body.scrollTop;
				break;
			case "NS":
				ypos = window.scrollY;
				break;
			default:
				ypos = document.body.scrollTop;
				break;
		}	
		var myWidth = 0, myHeight = 0;
		if( typeof( window.innerWidth ) == 'number' ) {
		  //Non-IE
		  myWidth = window.innerWidth;
		  myHeight = window.innerHeight;
		} else if( document.documentElement &&
		    ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		  //IE 6+ in 'standards compliant mode'
		  myWidth = document.documentElement.clientWidth;
		  myHeight = document.documentElement.clientHeight;
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		  //IE 4 compatible
		  myWidth = document.body.clientWidth;
		  myHeight = document.body.clientHeight;
		}
		
		pos= ypos + (myHeight/2) - 100;
		if(pos<0){ pos = 0; }
		document.getElementById("popin").style.display = "block";
		document.getElementById("popin").style.top = pos + "px";
   
   
		if(siteversion != "html"){
			document.getElementById("popin").innerHTML = '<object width="405" height="335" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="wmode" value="transparent" /><param name="movie" value="/3084/flash/under_construction.swf?colour='+colour+'" /><embed src="/3084/flash/under_construction.swf?colour='+colour+'" wmode="transparent" width="405" height="335" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>';
		}else{
			//document.getElementById("popin").innerHTML = '<a href="javascript:closePopin();"><img src="' + img + '" width="375" height="521" /></a>';
		}
   } 
   
   
   
  /* ------------------------------------------------------------- 
   Wishlist  ------------------------------------------------------- */
 

   function verif_wishlist(){
		Goon = "0";
			
		if(document.getElementById("company").value == ""){Goon="1";document.getElementById("t_company").className = "error";}else{document.getElementById("t_company").className = "text";}
		if(document.getElementById("firstname").value == ""){Goon="1";document.getElementById("t_firstname").className = "error";}else{document.getElementById("t_firstname").className = "text";}
		if(document.getElementById("lastname").value == ""){Goon="1";document.getElementById("t_lastname").className = "error";}else{document.getElementById("t_lastname").className = "text";}
		if(document.getElementById("email").value == "" || !checkEmail(document.getElementById("email").value) ){Goon="1";document.getElementById("t_email").className = "error";}else{document.getElementById("t_email").className = "text";}
		//if(document.getElementById("phone_number").value == ""){Goon="1";document.getElementById("t_phonenumber").className = "error";}else{document.getElementById("t_phonenumber").className = "text";}
			
		if (Goon=="0") {
			document.getElementById("send_wishlist").action = "send_wishlist.asp";
			document.getElementById("send_wishlist").submit();	
		}else{	
			document.getElementById("error").innerHTML = 'Veuillez remplir ou corriger les champs en orange.';
		}
	}
	
	
	
  /* ------------------------------------------------------------- 
   Search  ------------------------------------------------------- */
 
	function submit_search() {
		if (document.getElementById('search_str').value != "") {
		document.forms.search.submit();
		}
		return false;
	}
			
	