var inicTableNot = '<table border="0" width="270" cellspacing="5" cellpadding="0">'

var conTableNot = '<tr><td><img src="img/0.gif" width="30" height="1" vspace="0" hspace="0" align="left"></td><td><img src="img/flechadcha.gif" border="0"></td><td class="txticker">'

var closeTableNot = '</td><td><img src="img/0.gif" width="20" height="1" vspace="0" hspace="0" align="left"></td></tr></table>'



//ticker

var cont5 = 90

var t = 16

var inc = 15



var timer3, timerscroll, timerclip, timerscrollmove;



function dimedpro() {

	

	if (ie){ 

		var ret = parseInt(scrolltext.style.pixelTop); 

		

		return ret;

	}

	if (document.layers){ 					

		var ret = document.contexto.document.scrolltext.top; 

		

		return ret;

	}

}





function alto(){

	if (ie) {

		 

		 return 100 - scrolltext.offsetHeight; 

	}

	else { 

		var ret = eval (100 - document.contexto.document.scrolltext.clip.height); 

		

		return ret;

	}

}





var scrollSpeed = 120

var scrollInit = true



function scrollp2(direccion){



	parseado = dimedpro();

	dproalto = alto();

	

	if (direccion == "arriba") {

			if (parseado+90 >= dproalto ) {

				

				if (parseado == 0 && scrollInit) parseado = 90

				

				parseado -= 1;

				scrollInit = false

				

				if (ie) { 

					scrolltext.style.top = parseado; 

				}

				else { 

					document.contexto.document.scrolltext.top = parseado; 

					

					

				}

				timerscroll = setTimeout("scrollp2(\""+direccion+"\")",scrollSpeed);

			}

			else 

			{

				

			if (ie) {

				scrolltext.style.top = 170; 

			}

			else { 

				document.contexto.document.scrolltext.top = 170; 

			}

			timerscroll = setTimeout("scrollp2(\""+direccion+"\")",scrollSpeed);

			}

	}

	

	if (direccion == "abajo") {



		if ( parseado <= 100 ) { 



			parseado += 1;

			

			if (ie) { 

				scrolltext.style.top = parseado; 

			}

			else { 

				document.contexto.document.scrolltext.top = parseado; 

				

			}



			timerscroll = setTimeout("scrollp2(\""+direccion+"\")",scrollSpeed);

		

		}

		else

		{ 



			if (ie) {

				scrolltext.style.top = dproalto-80; 

			}

			else

			{ 

				document.contexto.document.scrolltext.top = dproalto-80; 

			}



			timerscroll = setTimeout("scrollp2(\""+direccion+"\")",scrollSpeed);

		}



	}

	

	

	if (direccion == "limpia") {

		clearTimeout(timerscroll);

	}

}



function parar() {clearTimeout(timerscroll);}

var sentMov = 'arriba'

function seguir() {scrollp2(sentMov)}

