
function menu(img, stato) {
	
	//alert(img)
	
	if (stato=="on") {
	
		document.getElementById(img).src="http://www.patrickfogli.com/img/indice_"+img+"_on.gif"
	
	} else {
	
		document.getElementById(img).src="http://www.patrickfogli.com/img/indice_"+img+".gif"
	
	
	}
		
	
	
}


function menu2(img, stato) {
	
	//alert(img)
	
	if (stato=="on") {
	
		document.getElementById(img).src="http://www.patrickfogli.com/img/indice_"+img+"_on.gif"
	
	} else {
	
		document.getElementById(img).src="http://www.patrickfogli.com/img/indice_"+img+".gif"
	
	
	}
		
	
	
}


function sfondi(x) {


if (x==11)
	y=1
else
	y=x+1

current="sfondoimg"+x
next="sfondoimg"+y

//alert(x)
//alert(y)
//alert(current)
//alert(next)


new Effect.Fade(current, { duration: 4.0 });
setTimeout("new Effect.Appear('"+next+"', { duration: 2.0 });", 2000);

setTimeout("sfondi("+y+")", 10000)



}
