
function cargarn(que) { window.open('Bdatos/noticias.asp?'+que,'news','status=yes,left=10,top=10,width=630,height=450'); }

function ventana_ayuda() {
 var tabla_ayuda=window.open('txts/ayuda.htm','Ayuda','toolbar=no,menubar=yes,location=no,directories=no,status=yes,scrollbars=no,resizable=yes,width=330,height=550,top=10,left=10');
}
function ventana2(htm,tit,w,h) {
 var tabla=window.open(htm,tit,'toolbar=no,menubar=yes,location=no,directories=no,status=no,scrollbars=no,resizable=yes,width='+w+',height='+h+',top=10,left=10');
}
function ventana2_sc(htm,tit,w,h) {
 var tabla=window.open(htm,tit,'toolbar=yes,menubar=yes,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',top=10,left=10');
}
function ventana_sc(htm,tit,w,h) {
 var tabla=window.open(htm,tit,'toolbar=yes,menubar=yes,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',top=10,left=10');
}
function ventana(htm) {
 var tabla=window.open(htm,'enlaces','toolbar=yes,menubar=yes,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=640,height=420,top=10,left=10');
}


function ocultarCont() {
	document.getElementById('ifcarga').style.display='none';
	document.getElementById('submenu1').style.display='none';
	document.getElementById('submenu2').style.display='none';
	document.getElementById('ScrollWindow0Block1').style.display='none';
	document.getElementById('ScrollWindow0Block2').style.display='none';
	document.getElementById('ScrollWindow0Block3').style.display='none';
	document.getElementById('ScrollWindow0Block4').style.display='none';
	document.getElementById('ScrollWindow0Block5').style.display='none';
	document.getElementById('ScrollWindow0Block6').style.display='none';
	document.getElementById('ScrollWindow0Block7').style.display='none';
	document.getElementById('ScrollWindow0Block8').style.display='none';
	document.getElementById('ScrollWindow0Block9').style.display='none';
	document.getElementById('ScrollWindow0Block10').style.display='none';
	document.getElementById('ScrollWindow0Block11').style.display='none';
	document.getElementById('ScrollWindow0Block12').style.display='none';		
	document.getElementById('ScrollWindow0Block13').style.display='none';	
}

function mostrarCont(id) {
	crossobj.style.top = 0;
	ocultarCont();
	document.getElementById(id).style.display='block';
}


function mostrar(id) {
	document.getElementById(id).style.display='block';
}


function enlaceDesActi() {
	document.getElementById('link1').className='';
	document.getElementById('link2').className='';
	document.getElementById('link3').className='';
	document.getElementById('link4').className='';
	document.getElementById('link5').className='';
	document.getElementById('sublink1').className='';
	document.getElementById('sublink2').className='';
	document.getElementById('sublink3').className='';
	document.getElementById('sublink4').className='';
	document.getElementById('sublink5').className='';
	document.getElementById('sublink6').className='';
	document.getElementById('sublink7').className='';
}

function enlaceActivo(id,subid) {
	enlaceDesActi();
	document.getElementById(id).className='pollover';
	if(subid) {document.getElementById(subid).className='pollover';}
}









var speed=5;


function movedown(){		
		if (document.getElementById("content").offsetHeight>263&&parseInt(crossobj.style.top)>=(document.getElementById("content").offsetHeight*(-1)+200)) {
			crossobj.style.top=parseInt(crossobj.style.top)-speed+"px";
		}
	movedownvar=setTimeout("movedown()",20);
}

function moveup(){
		if (parseInt(crossobj.style.top)<0) {
			crossobj.style.top=parseInt(crossobj.style.top)+speed+"px";
		}
	moveupvar=setTimeout("moveup()",20);
}