
g_fPlayMode = 0;
g_iimg = 0;
g_imax = 0;
g_ImageTable = new Array();

function ChangeImage(fFwd)
	{
  	if (fFwd)
		{
    		if (++g_iimg==g_imax)
      			g_iimg=0;
      		}
    	else
		{
    		if (g_iimg==0)
			g_iimg=g_imax; g_iimg--;
	}

Update();
}



function Update(){
document.all._Ath_Slide.src = g_ImageTable[g_iimg][0];
document.all._Ath_FileName.innerHTML = g_ImageTable[g_iimg][1];
document.all._Ath_Img_X.innerHTML = g_iimg + 1;
document.all._Ath_Img_N.innerHTML = g_imax;
}


function Play(){g_fPlayMode = !g_fPlayMode;
  if (g_fPlayMode){btnPrev.disabled = btnNext.disabled = true; Next();}

  else            {btnPrev.disabled = btnNext.disabled = false;}
}

function OnImgLoad(){if (g_fPlayMode)
window.setTimeout("Tick()", g_dwTimeOutSec*1000);}

function Tick(){if (g_fPlayMode) 
Next();}

function Prev(){ChangeImage(false);}
function Next(){ChangeImage(true);}
function main(){Update();}

g_ImageTable[g_imax++] = new Array ("img-vespa/01.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/02.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/03.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/04.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/05.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/06.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/07.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/08.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/09.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/10.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");

g_ImageTable[g_imax++] = new Array ("img-vespa/11.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/12.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/13.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/14.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/15.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/16.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/17.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/18.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/19.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/20.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");


g_ImageTable[g_imax++] = new Array ("img-vespa/21.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/22.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/23.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/24.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/25.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/26.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/27.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/28.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/29.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/30.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");


g_ImageTable[g_imax++] = new Array ("img-vespa/31.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/32.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/33.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/34.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/35.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/36.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/37.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/38.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/39.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/40.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");


g_ImageTable[g_imax++] = new Array ("img-vespa/41.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/42.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/43.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/44.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/45.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/46.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/47.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/48.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/49.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/50.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");


g_ImageTable[g_imax++] = new Array ("img-vespa/51.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/52.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/53.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/54.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/55.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/56.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/57.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/58.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/59.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/60.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");


g_ImageTable[g_imax++] = new Array ("img-vespa/61.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/62.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/63.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/64.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");
g_ImageTable[g_imax++] = new Array ("img-vespa/65.jpg", "EuroVespa a Torino 16-17-18 giugno 2006");



//extend the above list as desired
//g_dwTimeOutSec=1.5

	g_dwTimeOutSec=2.5

//g_dwTimeOutSec=0.5


				//window.onload=Play



		main();
		bkg()


