
	var imgDir = "./images/";
	scroll2Page = "dove_siamo.html"
	scroll3Page = "specialita.html"
	scroll4Page = "gallery.html"
	scroll5Page = "storia.html"
	scroll6Page = "links.html"
	homePage = "index.html"
	infoPage= "info.html"

	var browName = navigator.appName;
	var ua = window.navigator.userAgent.toLowerCase();
	n = (browName == 'Netscape') ? 1:0
	ie = (browName == 'Microsoft Internet Explorer ') ? 1:0
	
	function loadImg(id,namenew)
	{    
	   document.images[id].src = imgDir + namenew;
	}
	
	function loadSource(page) {
		scrollLoaded = 0
		if (n) {window.location = page}
		if (ie) {parent.document.location = page}
	}
			var photosEst=new Array()
			var photosInv=new Array()
			var photosSta=new Array()
         var photosInt=new Array()
         var photosCen=new Array()
		 var photosVip=new Array()
			var which=0
			
			// Gallery x Estate
			photosEst[0]="./gif/tanaEst01.jpg"
			photosEst[1]="./gif/tanaEst02.jpg"
		   photosEst[2]="./gif/esterno.jpg"
           photosEst[3]="./gif/esterno2.jpg"
           photosEst[4]="./gif/quad1.jpg"
	       photosEst[5]="./gif/quad2.jpg"
		   photosEst[6]="./gif/quad3.jpg"
                  
			// Gallery x Inverno
			photosInv[0]="./gif/tanaInv01.jpg"
			photosInv[1]="./gif/tanaInv02.jpg"
			photosInv[2]="./gif/tanaInv03.jpg"
			photosInv[3]="./gif/tanaInv04.jpg"
         photosInv[4]="./gif/tanaInv05.jpg"
         photosInv[5]="./gif/invernale.jpg"
         photosInv[6]="./gif/invernale2.jpg"

         
			
			// Gallery x Staff
			photosSta[0]="./gif/tanaStaff01.jpg"
         photosSta[1]="./gif/enzo.jpg"
			
			// Gallery x Interni
			photosInt[0]="./gif/tanaInt01.jpg"
         photosInt[1]="./gif/tanaInt02.jpg"
         
			// Gallery x Cene
			photosCen[0]="./gif/tanaCen01.jpg"
			
			// Gallery x Vip
			photosVip[0]="./gif/tanaVip01.jpg"
			photosVip[1]="./gif/tanaVip02.jpg"
		   photosVip[2]="./gif/tanaVip03.jpg"
           photosVip[3]="./gif/tanaVip04.jpg"
		   photosVip[4]="./gif/tanaVip05.jpg"
		   photosVip[5]="./gif/tanaVip06.jpg"
		   photosVip[6]="./gif/tanaVip07.jpg"
		   photosVip[7]="./gif/tanaVip08.jpg"
		   photosVip[8]="./gif/tanaVip09.jpg"
		   photosVip[9]="./gif/tanaVip10.jpg"
		   photosVip[10]="./gif/tanaVip11.jpg"
		   photosVip[11]="./gif/tanaVip12.jpg"
		   photosVip[12]="./gif/tanaVip13.jpg"
		   photosVip[13]="./gif/tanaVip14.jpg"
		   photosVip[14]="./gif/tanaVip15.jpg"
		   photosVip[15]="./gif/tanaVip16.jpg"
		   photosVip[16]="./gif/tanaVip17.jpg"
		   photosVip[17]="./gif/tanaVip18.jpg"
		   photosVip[18]="./gif/tanaVip19.jpg"
		   photosVip[19]="./gif/tanaVip20.jpg"
		   photosVip[20]="./gif/tanaVip21.jpg"
		   photosVip[21]="./gif/tanaVip22.jpg"
		   photosVip[22]="./gif/tanaVip23.jpg"
		   photosVip[23]="./gif/tanaVip24.jpg"
		   photosVip[24]="./gif/tanaVip25.jpg"
		   photosVip[25]="./gif/tanaVip26.jpg"
		   photosVip[26]="./gif/tanaVip27.jpg"
		   photosVip[27]="./gif/tanaVip28.jpg"
		   photosVip[28]="./gif/tanaVip29.jpg"
            
			
			function backward(galType){
			if (which>0){
			window.status=''
			which--
			switch(galType) {
			  case 1 :
			    document.images.photoslider.src=photosInv[which]
				break
			  case 2 :
			    document.images.photoslider.src=photosEst[which]
				break				
			  case 3 :
			    document.images.photoslider.src=photosSta[which]
             break
           case 4 :
			    document.images.photoslider.src=photosInt[which]
				break
           case 5 :
			    document.images.photoslider.src=photosCen[which]
				break
           case 6 :
			    document.images.photoslider.src=photosVip[which]
				break

			}
			}
			}
			
			function forward(galType){
   			switch(galType) {
			  case 1 :
	  			if (which<photosInv.length-1){
				which++
			    document.images.photoslider.src=photosInv[which]
				}
			    else window.status='End of gallery'
				break
			  case 2 :
	  			if (which<photosEst.length-1){
				which++			  			
			    document.images.photoslider.src=photosEst[which]
				}
			    else window.status='End of gallery'
				break				
			  case 3 :
	  			if (which<photosSta.length-1){
				which++			  
			    document.images.photoslider.src=photosSta[which]
				}
			    else window.status='End of gallery'				
				break
			  case 4 :
	  			if (which<photosInt.length-1){
				which++			  
			    document.images.photoslider.src=photosInt[which]
				}	
             else window.status='End of gallery'				
				break
            case 5 :
	  			if (which<photosCen.length-1){
				which++			  
			    document.images.photoslider.src=photosCen[which]
				}
            case 6 :
	  			if (which<photosVip.length-1){
				which++			  
			    document.images.photoslider.src=photosVip[which]
				}

			    else window.status='End of gallery'				
				break             
			}
         }
         
	function zoomImg(str) {
      zoomWin = window.open(str,'Zoom','scrollbars=no,resizable=yes,status=no,width=600,height=400,location=no,toolbar=no');
      zoomWin.focus();
    }
// Inizializzazione finestra news 
//configure the below five variables to change the style of the scroller
var scrollerwidth='240px'
var scrollerheight='80px'
var scrollerbgcolor='lightyellow'
//set below to '' if you don't wish to use a background image
var scrollerbackground='./gif/legno.gif'

//configure the below variable to change the contents of the scroller
var messages=new Array()

messages[0]="<font face='Arial'><a href='newsOpenInverno.html'>Apertura Invernale</a></font>"

messages[1]="<font face='Arial'><a href='newsQuadInverno.html'> Cene in baita con trasporto in motoslitta!</a></font>"

//messages[1]="<font face='Arial'><a href='newsOpenSeggiovia.html'> //Apertura Estiva Seggiovia Tablat</a></font>"

//messages[2]="<font face='Arial'><a href='newsPiattoSciatore.html'>   //Novità nel menu..</a></font>"


messages[2]="<font face='Arial'><a href='newsFiori.html'>  Primo premio concorso balcone Fiorito!</a></font>"

messages[3]="<font face='Arial'><a href='newsVIPS.html'>Vips alla Tana Incantata!</a></font>"

messages[4]="<font face='Arial'><a href='news4.html'>Presentazione libro 'Malghe, rifugi e osterie in Trentino'</a></font>"


messages[5]="<font face='Arial'><a href='newsLavori.html'>Ristrutturazione Tana Incantata!</a></font>"

messages[6]="<font face='Arial'><a href='newsGirovagando.html'>  Inverno 09: Ospite della trasmissione Girovagando in Trentino</a></font>"


//////Do not edit pass this line///////////////////////

var ie=document.all
var dom=document.getElementById

if (messages.length>2)
i=2
else
i=0
