
////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


//Definicion de las imagenes
var image1=new Image()
image1.src="/estado/banners/banner_latu_04.gif";
var image2=new Image()
image2.src="/estado/banners/banner_dgi_02.gif";
var image3=new Image()
image3.src="/estado/banners/banner_dnic_04.gif";
var image4=new Image()
image4.src="/estado/banners/banner_dgrec_02.gif";
//var image4=new Image()
//image4.src="/estado/banners/banner_reformatributaria.gif";
//var image5=new Image()
//image5.src="/estado/banners/banner_dgi.gif";

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=2072&url=" + "http://www.uruguay.gub.uy/latupeu/interface/mediospago.aspx"
else if (whichimage==2)
	window.location= location.protocol  +"//"+ location.hostname +"/estado/generalog.asp?id=2051&url=" + "https://servicios.dgi.gub.uy/MenuWeb/menuServlet?menuAction=consultaPagosEnLinea"
else if (whichimage==3)
	window.location= location.protocol +"//"+ location.hostname + "/estado/generalog.asp?id=1586&url=" + location.protocol +"//"+  location.hostname + "/dnic&noframes=si"
else if (whichimage==4)
	window.location= location.protocol  +"//"+ location.hostname + "/estado/generalog.asp?id=1425&url=" + location.protocol +"//"+  location.hostname + "/dgrec/usuario&noframes=si"
//else if (whichimage==5)
	//window.location= location.protocol  +"//"+ location.hostname + "/estado/generalog.asp?id=955&url=" + location.protocol +"//"+  location.hostname + "https://alfaweb.dgi.gub.uy/alfaweb/identificacionPago.jsp"
//else if (whichimage==4)
	//window.location= location.protocol  +"//"+ location.hostname +"/estado/generalog.asp?id=1586&url=" + location.protocol +"//"+  location.hostname + "/dnic&noframes=si"
//else if (whichimage==4)
//	window.location= location.protocol  +"//"+ location.hostname +"/estado/generalog.asp?id=1587&url=" + location.protocol +"//"+  location.hostname + "/ain&noframes=si"

}


//-->
