<!-- DEBUT DU SCRIPT -->

var sourcejshaut = new Array;
var linkjshaut = new Array;

function initImageHaut()
{
	imgPathHaut = new Array;
	SiClickGoToHaut = new Array;
	if (document.images)
	{
		for(i=0;i<sourcejshaut.length;i++)
		{
			i0 = new Image;
			i0.src = sourcejshaut[i];
			SiClickGoToHaut[i] = linkjshaut[i];
			imgPathHaut[i] = i0.src;
			
		}
	}
	
	compteurhaut = 0;
}

	function ejs_img_fxHaut(img)
	{
		if(img && img.filters && img.filters[0])
		{
			img.filters[0].apply();
			img.filters[0].play(); 
		}
	}

function StartAnimHaut()
	{
		 
	if (document.images)
		{
			if((sourcejshaut[0]=="espace_artisan") || (sourcejshaut[0]=="back_artisan") )
			{
				
				document.write('<div id="flash_tourne_1" name="flash_tourne_1"  style="display:block"><script type="text/javascript">AC_FL_RunContent(\'codebase\',\'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\',\'name\',\'pub\',\'width\',\'540\',\'height\',\'79\',\'id\',\'pub\',\'src\',\'pub/haut/kiloutou_pro\',\'quality\',\'high\',\'pluginspage\',\'http://www.macromedia.com/go/getflashplayer\',\'movie\',\'pub/haut/kiloutou_pro\',\'allowscriptaccess\',\'sameDomain\',\'flashvars\',\'\',\'wmode\',\'\' );</script></div>');	
				
				document.write('<div id="flash_tourne_2" name="flash_tourne_2"  style="display:block"><script type="text/javascript">AC_FL_RunContent(\'codebase\',\'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\',\'name\',\'pub\',\'width\',\'540\',\'height\',\'79\',\'id\',\'pub\',\'src\',\'pub/haut/cofidis\',\'quality\',\'high\',\'pluginspage\',\'http://www.macromedia.com/go/getflashplayer\',\'movie\',\'pub/haut/cofidis\',\'allowscriptaccess\',\'sameDomain\',\'flashvars\',\'\',\'wmode\',\'\' );</script></div>');	
			}
			else
			{
				document.write('<div id="flash_tourne_2" name="flash_tourne_2"  style="display:block"><script type="text/javascript">AC_FL_RunContent(\'codebase\',\'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\',\'name\',\'pub\',\'width\',\'540\',\'height\',\'79\',\'id\',\'pub\',\'src\',\'pub/haut/cofidis\',\'quality\',\'high\',\'pluginspage\',\'http://www.macromedia.com/go/getflashplayer\',\'movie\',\'pub/haut/cofidis\',\'allowscriptaccess\',\'sameDomain\',\'flashvars\',\'\',\'wmode\',\'\' );</script></div>');			
			}
			
		    document.write('<div id="image_tourne"  name="image_tourne" style="display:none"><A HREF="#" onClick="ImgDestHaut();return(false)"><IMG WIDTH="540"  HEIGHT="79" SRC="#" BORDER=0 NAME=defil_js_haut style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=2,Duration=1)"></A></div>');		
			
		}
	
		defilimgHaut()
	}
	
	function ImgDestHaut()
	{
		
		//document.location.href = SiClickGoToHaut[compteurhaut-1];
		window.open(SiClickGoToHaut[compteurhaut-1]);
	}
	
	function defilimgHaut()
	{
		$defil_compteur = 	8000;
		if (compteurhaut == sourcejshaut.length)
		{
			compteurhaut = 0;
		}
		if (document.images)
		{
			if((compteurhaut == 0))
			{
				display_suite = "block";
				if (document.getElementById("flash_tourne_1"))
				{
			  	 	document.getElementById("flash_tourne_1").style.display ="block";
					display_suite = "none";
				}
				document.getElementById("flash_tourne_2").style.display =display_suite;
				document.getElementById("image_tourne").style.display ="none";			
			}
			else		
			{
				if(compteurhaut == 1)
				{
					if (document.getElementById("flash_tourne_1"))
					{
						document.getElementById("flash_tourne_1").style.display ="none";
					}
					document.getElementById("flash_tourne_2").style.display ="block";
					document.getElementById("image_tourne").style.display ="none";
				}
				else
				{
					if (document.getElementById("flash_tourne_1"))
					{
						document.getElementById("flash_tourne_1").style.display ="none";
					}
					document.getElementById("flash_tourne_2").style.display ="none";
					document.getElementById("image_tourne").style.display ="block";
					ejs_img_fxHaut(document.defil_js_haut);
					document.defil_js_haut.src = imgPathHaut[compteurhaut];	
				}
			}
			tempo3 = setTimeout("defilimgHaut()",$defil_compteur);
			compteurhaut++;
			
		}
}

