
////Para cambiar el numero de imagenes
var number_of_images=4

// Para cambiar la velocidad (en segundos)
var speed=11


var step=1
var whichimage=1

function slideit(){
//alert('number_of_images='+number_of_images+' speed='+speed+'step='+step+' whichimage='+whichimage);

if (!document.images)
return

//alert("imagen="+eval("image"+step+".src"));

if (document.all){
//slide.filters.blendTrans.apply();
document.images['bann'].filters.blendTrans.Apply();
}
//document.images.slide.src=eval("image"+step+".src")
document.images['bann'].src=eval("image"+step+".src");
if (document.all){
//slide.filters.blendTrans.play()
document.images['bann'].filters.blendTrans.Play();
}
whichimage=step
if (step<number_of_images)
step++
else
step=1
if (document.all)
setTimeout("slideit()",speed*1000+3000)
else
setTimeout("slideit()",speed*1000)
}

// Aca hay que definir cada link para cada imagen

function slidelink(){
if (whichimage==1)
window.location= location.protocol  +"//"+ location.hostname + "/estado/generalog.asp?id=2051&url=" + location.protocol +"//"+  location.hostname + "https://alfaweb.dgi.gub.uy/alfaweb/identificacionPago.jsp"
if (whichimage==2)
window.location=location.protocol  +"//"+ location.hostname + "/estado/generalog.asp?id=1587&url=" + location.protocol +"//"+  location.hostname + "/ain&noframes=si"
if (whichimage==3)
window.location=location.protocol  +"//"+ location.hostname + "/estado/generalog.asp?id=1671&url=" + location.protocol +"//"+  location.hostname + "/estado/recordatorios/lstRecordatorioUsuario.aspx&noframes=si"
else if (whichimage==4)
window.location=location.protocol  +"//"+ location.hostname + "/estado/secciones/servicios/servicios_emp.asp?id=3"
//else if (whichimage==5)
//window.location=location.protocol  +"//"+ location.hostname + "/estado/secciones/servicios/servicios_emp.asp?id=3"
//window.location=location.protocol  +"//"+ location.hostname + "/estado/generalog.asp?id=1800&url=http://www.mef.gub.uy/reforma_tributaria.php"

}
//-->

