//-------------------------------------------------------------------------
// Vertical Scrolling News Ticker
// XHTML Compat
// Version 2.0
// Copyright 2006 DevDude.com
//-------------------------------------------------------------------------
	
	//scroller width
var swidth=2500;

//scroller height
var Altura=100;

//background color 
//var sbcolor="#FFFFFF";

//scroller's speed
var Velocidad=2;

var msg='';

//Your messages go below:
function CargarNovedades(mensaje) {
msg=mensaje;
}
//End of your messages


var reiniciaVelocidad=Velocidad
function Inicio(megs) {
	CargarNovedades(megs);
	if (document.all) iemarquee(ticker);
	else if (document.getElementById)
		ns6marquee(document.getElementById('ticker'));
}

function iemarquee(whichdiv){
	iediv=eval(whichdiv)
	Altura += 50;
	iediv.style.pixelTop=Altura
	iediv.innerHTML=msg 
	sizeup=iediv.offsetHeight
	ieslide()
}

function ieslide(){
	if (iediv.style.pixelTop>=sizeup*(-1)){
		iediv.style.pixelTop-=Velocidad
		setTimeout("ieslide()",100)
	}
	else{
		iediv.style.pixelTop=Altura
		ieslide()
	}
}

function ns6marquee(whichdiv){
	ns6div=eval(whichdiv)
	Altura += 50;
	ns6div.style.top=Altura + "px";
	ns6div.innerHTML=msg
	sizeup=ns6div.offsetHeight
	ns6slide()
}
function ns6slide(){
	if (parseInt(ns6div.style.top)>=sizeup*(-1)){
		theTop = parseInt(ns6div.style.top)-Velocidad
		ns6div.style.top = theTop + "px";
		setTimeout("ns6slide()",100)
	}
	else {
		ns6div.style.top = Altura + "px";
		ns6slide()
	}
}