/***********************************************
* Fading Ticker Tape Script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//default speed is 4.5 seconds, Change that as desired
var speed=3500

var news=new Array()
news[0]="<span style='color:#990000;'>13/11/2008</span>   <a href='?mod=read&amp;sec=cultura&amp;id=17871' class='negro'>Agenda Cultural del 15 al 16 de noviembre</a>"
news[1]="<span style='color:#990000;'>14/11/2008</span>   <a href='?mod=read&amp;sec=salud&amp;id=17875' class='negro'>Vence hoy plazo para elegir sistema de retiro: ISSSTE</a>"
news[2]="<span style='color:#990000;'>14/11/2008</span>   <a href='?mod=read&amp;sec=humanos&amp;id=17876' class='negro'>Inaugurar&aacute; CDDHO primer comit&eacute; municipal de atenci&oacute;n a v&iacute;ctimas</a>"
news[3]="<span style='color:#990000;'>14/11/2008</span>   <a href='?mod=read&amp;sec=general&amp;id=17881' class='negro'>El Portal de Noticias Olor a Mi  Tierra   ganador del Certamen  Nacional de Periodismo Sustentable “Educaci&oacute;n y  ...</a>"
//expand or shorten this list of messages as desired

var frame=20;

var ie=document.all
var ns6=document.getElementById
var ns4=document.layers

i=0
tickerobject=ie? subtickertape: ns6? document.getElementById("subtickertape") : document.tickertape.document

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",450)
}

function updatecontent(){
if (ie||ns6)
//bgcolorfade()
if (ns4){
tickerobject.subtickertape.document.write('<span style="position:absolute; margin-left:-335px; margin-right:auto; margin-top:48px; text-align:center; display:none; left:50%; width:800px;">'+news[i]+'</span>')
tickerobject.subtickertape.document.close()
}
else 
tickerobject.innerHTML=news[i]

if (i<news.length-1)
i++
else
i=0
setTimeout("updatecontent()",speed)
}
