//var cadena;
//var tiempo = 5000;
//function checkBrowserForVersion4(texto){
//	var x=navigator.appVersion;
//	cadena=texto;
//	y=x.substring(0,4);
//	if(y>=4) fadein();
//}

//var isNav=(navigator.appName.indexOf("Netscape")!=-1);
//var colors=new Array("FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF","F9F9F9","F1F1F1","E9E9E9","E1E1E1","D9D9D9","D1D1D1","C9C9C9","C1C1C1","B9B9B9","B1B1B1","A9A9A9","A1A1A1","999999","919191","898989","818181","797979","717171","696969","616161","595959","515151","494949","414141","393939","313131","292929","212121","191919","000000","000000","000000")
//a=0;
//b=1;

//function fadein(){
//	color=colors[a];
//	aa="<font color="+color+">"+cadena+"</font>"//put any text here for the "strobe" effect
//	if(isNav) {
	//	document.object1.document.write(aa);
//		document.object1.document.close();
//	}else object1.innerHTML=aa;
//		if (a<=37)
//			a+=b;
//		else{
//			setTimeout("fadeout()",tiempo); 
//			return;
//		}
//		//if (a==38) b-=2;
//		if (a==0) b+=2;
//		xx=setTimeout("fadein()",10);
//}

//function fadeout(){
//	color=colors[a];
//	aa="<font color="+color+">"+cadena+"</font>"//put any text here for the "strobe" effect
//	if(isNav) {
//		document.object1.document.write(aa);
//		document.object1.document.close();
//	}else object1.innerHTML=aa;
//		a+=b;
//		if (a>=38) b-=2;
//		if (a<=0){
//			document.getElementById("object1").innerHTML="";
//			return;
//		}
			 
//		xx=setTimeout("fadeout()",10);
//}

// Rutinas para el Desplazamiento de Banner
//	var Bloque;
//	var T_inicio = 200;
//	var mi_inicio = 0;
//	var mi_fin = 0;
//	var Top = T_inicio;
//	var start = 1;

//	function Iniciar(registros){
// 		Noticias_principal.style.left = Contenido.offsetLeft + Lector_noticias.offsetLeft +4;
//		Noticias_principal.style.top = Contenido.offsetTop + Lector_noticias.offsetTop;
//		Noticias_principal.style.width = Contenido.offsetWidth -1;
//		Noticias_principal.style.height = Contenido.offsetHeight - 1;
//		if(registros == 1) {
//			S_noticias_unica();
//		}else{
//			S_noticias();
//		}
//	}
	

//	function S_noticias_unica(){
//		if (Top == 4)
//		{
//			mi_fin = mi_inicio;
//			mi_inicio >= (noticia.length-1) ? mi_inicio = 0 : mi_inicio++;
//			Top = T_inicio;
//			//setTimeout("S_noticias()",4000);
//			start=0;
//			return false;
//		}
//		if (Top == (T_inicio-1)) {noticia.style.top = T_inicio;}
//		Top--;
//		noticia.style.top = Top;
//		if (start==0){noticia.style.top = Top-(T_inicio-4);}
//		setTimeout("S_noticias_unica()",5);
//	}

//	function S_noticias(){
//		if (Top == 4)
//		{
//			mi_fin = mi_inicio;
//			mi_inicio >= (noticia.length-1) ? mi_inicio = 0 : mi_inicio++;
//			Top = T_inicio;
//			setTimeout("S_noticias()",4000);
//			start=0;
//			return false;
//		}
//		if (Top == (T_inicio-1)) {noticia[mi_fin].style.top = T_inicio;}
//		Top--;
//		noticia[mi_inicio].style.top = Top;
//		if (start==0){noticia[mi_fin].style.top = Top-(T_inicio-4);}
//		setTimeout("S_noticias()",5);
//	}


// Rutinas para Noticias y Sabias que


var delayb4scroll1=500 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed1=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit1=1 //Pause marquee onMousever (0=no. 1=yes)?

var copyspeed1=marqueespeed1
var pausespeed1=(pauseit1==0)? copyspeed1: 0
var actualheight1=''

function scrollmarquee1(){
if (parseInt(cross_marquee1.style.top)>(actualheight1*(-1)+8))
cross_marquee1.style.top=parseInt(cross_marquee1.style.top)-copyspeed1+"px"
else
cross_marquee1.style.top=parseInt(marqueeheight1)+8+"px"
}

function initializemarquee1(){
cross_marquee1=document.getElementById("vmarqueesabias")
cross_marquee1.style.top=0
marqueeheight1=document.getElementById("marqueesabias").offsetHeight
actualheight1=cross_marquee1.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee1.style.height=marqueeheight1+"px"
cross_marquee1.style.overflow="scroll"

return
}
setTimeout('lefttime=setInterval("scrollmarquee1()",100)', delayb4scroll1)
}


if (window.addEventListener)
window.addEventListener("load", initializemarquee1, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee1)
else if (document.getElementById)
window.onload=initializemarquee1

//Rutina para el scroll de los banners


var delayb4scrollb=500 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeedb=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseitb=1 //Pause marquee onMousever (0=no. 1=yes)?

var copyspeedb=marqueespeedb
var pausespeedb=(pauseitb==0)? copyspeedb: 0
var actualheightb=''

function scrollmarqueeb(){
if (parseInt(cross_marqueeb.style.top)>(actualheightb*(-1)+8))
cross_marqueeb.style.top=parseInt(cross_marqueeb.style.top)-copyspeedb+"px"
else
cross_marqueeb.style.top=parseInt(marqueeheightb)+8+"px"
}

function initializemarqueeb(){
cross_marqueeb=document.getElementById("vmarqueebanner")
cross_marqueeb.style.top=0
marqueeheightb=document.getElementById("marqueebanner").offsetHeight
actualheightb=cross_marqueeb.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marqueeb.style.height=marqueeheightb+"px"
cross_marqueeb.style.overflow="scroll"

return
}
setTimeout('lefttime=setInterval("scrollmarqueeb()",100)', delayb4scroll1)
}


if (window.addEventListener)
window.addEventListener("load", initializemarqueeb, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarqueeb)
else if (document.getElementById)
window.onload=initializemarqueeb


window.onload=function(){
if(!NiftyCheck())
    return;
	Rounded("div#nifty","top","transparent","#990000","border #990000");
	Rounded("div#nifty","bottom","transparent","#990000","small border #990000");
	initializemarquee();
	initializemarquee1();
	initializemarqueeb();
}

	function tamano(mas){ 
		var e=document.getElementsByTagName("p"); 
		var x=document.getElementById("valor"); 
		for (var i = 0; i < e.length; i++){ 
			e[i].style.fontSize=mas+"pt"; 
			e[i].style.fontFamily="Verdana, Arial, Helvetica, sans-serif"; 
			e[i].style.color="#000066"; 
			} 
	} 


