﻿// JScript File
var indice_testata=0;
var tmpImg
var Fade=false;
function start_change_testata(){
    ImpostaFade()
    setInterval("change_testata()",6000)
}

function change_testata(){
    var liv=document.getElementById("ctl00_ContentPlaceHolder1_Banner1_banner")
    if(Fade){
        try{
            liv.filters[0].Apply()
            liv.style.backgroundImage="url("+path_testata[indice_testata]+")"
            liv.filters[0].Play()
        }
        catch(ex){
            liv.style.backgroundImage="url("+path_testata[indice_testata]+")"
        }
        finally{
        }
    }
    else{
        liv.style.backgroundImage="url("+path_testata[indice_testata]+")"
    }
    indice_testata++
    if(indice_testata==path_testata.length)
        indice_testata=0;
    tmpImg=new Image();
    tmpImg.src=path_testata[indice_testata];
}
function ImpostaFade(){			
	if(navigator.appName!="Netscape")
		if((navigator.appVersion.indexOf("5.5"))||(navigator.appVersion.indexOf("6.0"))||(navigator.appVersion.indexOf("7.0")))
			Fade=true
    //Fade=false;
}


function Call(indirizzo){
    var windowWidth=300;
    var windowHeight=300;
    var windowLeft = (screen.width - windowWidth) / 2;
    var windowTop = (screen.height - windowHeight) / 2;
    var winCall=window.open(indirizzo,"call","width="+windowWidth+",height="+windowHeight+",top="+windowTop+",left="+windowLeft+",scrollbars=yes,toolbars=no")
    winCall.focus();
}
