// 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/banner_izq/conv_1.jpg"
enl[0] = "http://www.sedarh.gob.mx/#convocatoria.php"

ban[1] = new Image()
ban[1].src = "images/banner_izq/conv_2.jpg"
enl[1] = "http://www.sedarh.gob.mx/#convocatoria.php"

ban[2] = new Image()
ban[2].src = "images/banner_izq/con2010.jpg"
enl[2] = "http://www.sedarh.gob.mx/convoca.php"

ban[3] = new Image()
ban[3].src = "images/banner_izq/b_curso_invernadero_2010.jpg"
enl[3] = "http://www.sedarh.gob.mx/#cursos_invernaderos.php"

ban[4] = new Image()
ban[4].src = "images/banner_izq/banner2010.jpg"
enl[4] = "http://www.sedarh.gob.mx/#ro2010.php"

ban[5] = new Image()
ban[5].src = "images/banner_izq/bannerpacqui.png"
enl[5] = "http://www.sedarh.gob.mx/#pacqui.php"

ban[6] = new Image()
ban[6].src = "images/banner_izq/bannersp.png"
enl[6] = "http://www.reglasdeoperacionslp.gob.mx/archivos/convocasp.pdf"

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]);
}

