// JavaScript Document
// Rotador de banner's . Carlitos. carlosbernad@teleline.es
 
var ban = new Array()
var enl = new Array()
var indice = 0

ban[0] = new Image()
ban[0].src = "images/evalpesa.jpg"
enl[0] = "http://www.sedarh.gob.mx/archivos/evalpesa.pdf"

ban[1] = new Image()
ban[1].src = "images/sispro.jpg"
enl[1] = "http://www.sedarh.gob.mx/archivos/sistemaproducto.pdf"

ban[2] = new Image()
ban[2].src = "images/proy-especiales.jpg"
enl[2] = "http://www.sedarh.gob.mx/archivos/proyectos-territoriales.pdf"

ban[3] = new Image()
ban[3].src = "images/pacc2010.jpg"
enl[3] = "http://www.sedarh.gob.mx/#pacc2010.php"


ban[4] = new Image()
ban[4].src = "images/banner_izq/bannerpacqui.png"
enl[4] = "http://www.sedarh.gob.mx/#pacqui.php"



function rota()
{
if (indice ==  ban.length) indice = 0
 
if (document.images)
 {
  document.images.fotico.src = ban[indice].src  
 }
else
 {
  document.getElementById('fotico').src=ban[indice].src
 }
indice++
setTimeout('rota()',4000)
}
function vete()
{
window.open(enl[indice-1]);
}


