
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_setTextOfLayer(objId,x,newText) { //v9.0
  with (document) if (getElementById && ((obj=getElementById(objId))!=null))
    with (obj) innerHTML = unescape(newText);
}

function MM_effectAppearFade(targetElement, duration, from, to, toggle)
{
	Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
}

function MM_effectGrowShrink(targetElement, duration, from, to, toggle, referHeight, growFromCenter)
{
	Spry.Effect.DoGrow(targetElement, {duration: duration, from: from, to: to, toggle: toggle, referHeight: referHeight, growCenter: growFromCenter});
}

function MM_effectShake(targetElement)
{
	Spry.Effect.DoShake(targetElement);
}

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_callJS(jsStr) { //v2.0 
  return eval(jsStr)
}


/*mouvement div*/
var q=-120; /*hauteur du depalcement haut*/
var qq=30; /*retour image*/
var vt=0; /*vitesse*/
var vx=50;
	
	/*vignette sawadee*/  
  
var tp1=null;

function defilementUp1(){
                                                      if(tp1>q)
						                                  {                                                            
									                         document.getElementById('ProductSawadee').style.top = tp1+"px";
									                         tp1=tp1-vx; 
									                        var tm1=setTimeout("defilementUp1()",vt);                         
                                                         }
													  if(tp1<q)
													     { 	clearTimeout(tm1); }
                                              }

function defilementDown1(){
                                                          if(tp1<qq)
                                                              {	  
															     document.getElementById('ProductSawadee').style.top = tp1+"px";
									                             tp1=tp1+vx;
									                             var tm1=setTimeout("defilementDown1()",vt); 
                                                             }
														 if(tp1>qq)
													     { clearTimeout(tm1);
														 tp1=null;
														 return document.getElementById('ProductSawadee').style.top = 12+"px";
														 } 
						                            }	

		
		/*vignette zanzibar*/	
var tp2=null;
function defilementUp2(){
                                                       if(tp2>q)
						                                  {                                                            
									                         document.getElementById('ProductZanzibar').style.top = tp2+"px";
									                        tp2= tp2-vx; 
									                        var tm2=setTimeout("defilementUp2()",vt);                         
                                                         }
													 if(tp2<q)
													     { clearTimeout(tm2);}	 
                                              }

function defilementDown2(){
                                                          if(tp2<qq)
                                                              {	  
															     document.getElementById('ProductZanzibar').style.top = tp2+"px";
									                             tp2=tp2+vx;
									                            var tm2=setTimeout("defilementDown2()",vt); 
                                                             }
														if(tp2>qq)
													     {clearTimeout(tm2);
														 tp2=null;
														 return document.getElementById('ProductZanzibar').style.top = 12+"px";
														 } 	 
						                            }	
													
																	
	/*vignette odyssey*/
var tp3=null;
function defilementUp3(){
                                                   if(tp3>q)
						                                  {                                                            
									                         document.getElementById('ProductOdyssey').style.top = tp3+"px";
									                         tp3=tp3-vx; 
									                        var tm3=setTimeout("defilementUp3()",vt);                         
                                                         }
												  if(tp3<q)
													     {clearTimeout(tm3);}		 
                                              }

function defilementDown3(){
                                                          if(tp3<qq)
                                                              {	  
															     document.getElementById('ProductOdyssey').style.top = tp3+"px";
									                             tp3=tp3+vx;
									                            var tm3=setTimeout("defilementDown3()",vt); 
                                                             }
														if(tp3>qq)
													     { clearTimeout(tm3);tp3=null;
														    return document.getElementById('ProductOdyssey').style.top = 12+"px";
														 } 	 
						                            }	
	
	
	
	
      /*vignette amazon*/
var tp4=null;
function defilementUp4(){
                                                   if(tp4>q)
						                                  {                                                            
									                         document.getElementById('ProductAmazon').style.top = tp4+"px";
									                         tp4=tp4-vx;
									                        var tm4=setTimeout("defilementUp4()",vt);                         
                                                         }
												  if(tp4<q)
													     {clearTimeout(tm4);}		 
                                              }

function defilementDown4(){
                                                          if(tp4<qq)
                                                              {	  
															     document.getElementById('ProductAmazon').style.top = tp4+"px";
									                             tp4=tp4+vx;
									                            var tm4=setTimeout("defilementDown4()",vt); 
                                                             }
														 if(tp4>qq)
													     {clearTimeout(tm4);tp4=null;
														   return document.getElementById('ProductAmazon').style.top = 12+"px";
														} 	 
						                            }		  	
	
	
	
 /*vignette manhatttan*/
var tp5=null;
function defilementUp5(){  											   
												   if(tp5>q)
						                                  {                                                            
									                         document.getElementById('ProductManhattan').style.top = tp5+"px";
									                        tp5=tp5-vx; 
									                        var tm5=setTimeout("defilementUp5()",vt);                         
                                                         }
												  if(tp5<q)
													     { clearTimeout(tm5);}		 
                                              }

function defilementDown5(){
                                                          if(tp5<qq)
                                                              {	  
															     document.getElementById('ProductManhattan').style.top = tp5+"px";
									                             tp5=tp5+vx;
									                            var tm5=setTimeout("defilementDown5()",vt); 
                                                             }
														if(tp5>qq)
													     {clearTimeout(tm5);
														 tp5=null;
														 return document.getElementById('ProductManhattan').style.top = 12+"px";
														 } 	 
						                            }	
													
	
	
	/*modification ordre vignette*/
function UpVignette(n,nn,nnn,nnnn,nnnnn)
 {
      document.getElementById(n).style.zIndex = 601;
      document.getElementById(nn).style.zIndex = 600;
      document.getElementById(nnn).style.zIndex = 600;
      document.getElementById(nnnn).style.zIndex = 600;
     document.getElementById(nnnnn).style.zIndex = 600;
}

function OutVignette()
{
	document.getElementById('ProductAmazon').style.zIndex = 600;
      document.getElementById('ProductManhattan').style.zIndex = 600;
      document.getElementById('ProductOdyssey').style.zIndex = 600;
      document.getElementById('ProductSawadee').style.zIndex = 600;
     document.getElementById('ProductZanzibar').style.zIndex = 600;
}


