/*
Up down slideshow Script
By Dynamic Drive (www.dynamicdrive.com)
For full source code, terms of use, and 100's more scripts, visit http://www.dynamicdrive.com
*/
var slideitem=new Array()
slideitem[0]=new Array('<img src="../images/menuC2.jpg">','<img src="../images/sushi_mulet_crevette.jpg">','<img src="../images/maki24.jpg">','<img src="../images/california_saumon_6.jpg">','<img src="../images/soupe_saladex3.jpg">','Menu Trio - 42,50€<br>4 sushi saumon + 4 sushi thon + 4 sushi mulet + 2 sushi crevette + 12 maki saumon + 12 maki thon + 6 california saumon')
///////configure the below four variables to change the style of the slider///////
//set the scrollerwidth and scrollerheight to the width/height of the LARGEST image in your slideshow!
var scrollerwidth='120px'
var scrollerheight='60px'
var posleft='445px'
var postop='128px'
var idsto7=0, idsto8=0, idsto9=0, idsto10=0, idsto11=0, idsto12=0
//3000 miliseconds=3 seconds
var pausebetweenimages=1000

//configure the below variable to change the images used in the slideshow. If you wish the images to be clickable, simply wrap the images with the appropriate <a> tag
var slideshow=false
var slideimages=new Array()

///////Do not edit pass this line///////////////////////

var ie=document.all
var dom=document.getElementById

if (slideimages.length>2)
i=2
else
i=0

function move3(whichdiv){
   tdiv=eval(whichdiv)
   if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
      tdiv.style.top=0+"px"
      idsto7=setTimeout("move3(tdiv)",pausebetweenimages)
      idsto8=setTimeout("move4(tipsuite_obj)",pausebetweenimages)
      return
   }
   if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
      tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
      idsto9=setTimeout("move3(tdiv)",50)
   }
   else{
      tdiv.style.top=scrollerheight
      tdiv.innerHTML=slideimages[i]
       if (i==slideimages.length-1)
          i=0
       else
          i++
   }
}

function move4(whichdiv){
   tdiv2=eval(whichdiv)
   if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
      tdiv2.style.top=0+"px"
      idsto10=setTimeout("move4(tdiv2)",pausebetweenimages)
      idsto11=setTimeout("move3(tipaff_obj)",pausebetweenimages)
      return
   }
   if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
      tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
      idsto12=setTimeout("move4(tipsuite_obj)",50)
   }
   else{
      tdiv2.style.top=scrollerheight
      tdiv2.innerHTML=slideimages[i]
      if (i==slideimages.length-1)
         i=0
      else
         i++
   }
}

function startscroll(p){
   stopscroll()
   if (ie||dom){
      tipaff_obj=ie? tipaff : document.getElementById("tipaff")
      tipsuite_obj=ie? tipsuite : document.getElementById("tipsuite")
      slideimages[0]=slideitem[p][0]
      slideimages[1]=slideitem[p][1]
      if(slideitem[p][1]=='none'){
         slideshow=false
         tipsuite_obj.style.visibility='hidden'
         }
      else
         slideshow=true
      tipaff_obj.style.top=1+"px"
      tipaff_obj.innerHTML=slideimages[0]
      if (p==0){
         slideimages[2]=slideitem[p][2]
         slideimages[3]=slideitem[p][3]
         slideimages[4]=slideitem[p][4]
         i=2
      }
      else if (p==7){
         slideimages[2]=slideitem[p][2]
         slideimages[3]=slideitem[p][3]
         slideimages[4]=slideitem[p][4]
         i=2
      }
      else if (p==8){
         slideimages[2]=slideitem[p][2]
         i=2
      }
      else{
         i=0
      }
      if (slideshow){
         tipsuite_obj.style.top=0+"px"
         tipsuite_obj.innerHTML=slideimages[1]
         move3(tipaff_obj)
         tipsuite_obj.style.top=scrollerheight
         tipsuite_obj.style.visibility='visible'
      }
   }
}

function stopscroll(){
   clearTimeout(idsto7)
   clearTimeout(idsto8)
   clearTimeout(idsto9)
   clearTimeout(idsto10)
   clearTimeout(idsto11)
   clearTimeout(idsto12)
}

//window.onload=startscroll(0)


