function ArrancaTicker()
{

	if (document.all){

		iemarquee(ieTicker1);
	}
	else if (document.layers){

		document.ns4Ticker.document.ns4Ticker1.top = AltoTicker;
		document.ns4Ticker.document.ns4Ticker1.visibility = 'show';
		ns4marquee(document.ns4slider.document.ns4slider1);

	}
	else if (document.getElementById && !document.all){

		document.getElementById('ieTicker1').style.top = AltoTicker;
		ns6marquee(document.getElementById('ieTicker1'));

	}
}

function iemarquee(whichdiv)
{
	
	var TimeOut = 100;
	
	ieDiv=eval(whichdiv);
	
	//if (ieDiv.style.pixelTop >= AltoTicker*-1){ 
	if (ieDiv.style.pixelTop >= -50){

		if (ieDiv.style.pixelTop > 0 && ieDiv.style.pixelTop <= VelocidadTicker) TimeOut = 2000;
		ieDiv.style.pixelTop -= VelocidadTicker;
		
	}
	else{

		ieDiv.style.pixelTop = AltoTicker;
		ProximaNoticia();
		ieDiv.innerHTML = Noticias[ptrNoticias];
		TimeOut = 1;
	}
	
	
	setTimeout("iemarquee(ieDiv)",TimeOut);

}

function ns4marquee(whichlayer)
{

	ns4layer=eval(whichlayer)

	if (ns4layer.top>0 && ns4layer.top <= VelocidadTicker){

		ns4layer.top = 0;
		setTimeout("ns4marquee(ns4layer)",100);

	}

	if (ns4layer.top>=AltoTicker*-1){

		ns4layer.top -= VelocidadTicker;
		setTimeout("ns4marquee(ns4layer)",100);

	}
	else{

		ns4layer.top = AltoTicker;
		ProximaNoticia();
		ns4layer.document.write(Noticias[ptrNoticias]);
		ns4layer.document.close();

	}
}

function ns6marquee(whichdiv){

	ns6div=eval(whichdiv);

	if (parseInt(ns6div.style.top) >0 && parseInt(ns6div.style.top) <= VelocidadTicker){

		ns6div.style.top = 0;
		setTimeout("ns6marquee(ns6div)",100);

	}

	if (parseInt(ns6div.style.top) >= AltoTicker*-1){

		ns6div.style.top=parseInt(ns6div.style.top) - VelocidadTicker;
		setTimeout("ns6marquee(ns6div)",100);

	}
	else{

		ns6div.style.top = AltoTicker;
		ProximaNoticia();
		ns6div.innerHTML = Noticias[ptrNoticias];

	}
}

function ProximaNoticia()
{
	ptrNoticias = (ptrNoticias == Noticias.length-1) ? 0 : ptrNoticias + 1;
}

function ContruyeTicker()
{
	document.writeln('<div style="position:relative;overflow:hidden;width:'+AnchoTicker+';height:'+AltoTicker+';clip:rect(0 '+AnchoTicker+' '+AltoTicker+' 0);border:0 solid red;" onmouseover="VelocidadTicker=0;" onmouseout="VelocidadTicker=2">');

	document.writeln('<div id="ieTicker1" style="position:relative;width:'+AnchoTicker+';top:'+AltoTicker+'">');
	document.write(Noticias[0]);
	document.writeln('</div>');
	
	document.writeln('</div>');
}


ptrNoticias = 0;