function marca(subSecc){
	if(document.getElementById(subSecc)){
	document.getElementById(subSecc).style.color='#E6F1E8';}
	}
	
	
var barraA='';
var barraB='';
var margenA='';
var margenB='';
var t;
var s;	
function lanzaAltoDivSroll(FbarraA,FmargenA,FbarraB,FmargenB){
barraA=FbarraA;
barraB=FbarraB;
margenA=FmargenA;
margenB=FmargenB;
setInterval('top.document.getElementById("pag").onResize=altoDivSroll();',100);
t=setInterval("altoDivSroll()",200);
}

function altoDivSroll(){
var nombre = navigator.appName;
var alto=(top.document.getElementById('pag').height)-76;
 if (nombre !== "Microsoft Internet Explorer"){ 
 alto=(top.document.getElementById('pag').document.body.scrollHeight)-76
}
 if(barraA!=''&& margenA!=''&& alto-margenA>36){
	
document.getElementById(barraA).style.height=alto-margenA;
}
 if(barraB!='' && margenB!=''&& alto-margenB>36){
document.getElementById(barraB).style.height=alto-margenB;
}
window.clearInterval(t);
}	

function ajusta(){
	var altoFrame=top.document.getElementById('pag').height;
	if(altoFrame>36){document.getElementById('contenido').style.height=altoFrame;
	window.clearInterval(a);
	t=setInterval("altoDivSroll();",200);
							   }
	}
var a;
// CAMBIANDO activo a TRUE toda la web se estira al alto de pantalla.
var activo=false;
function frameEntero(entero){
		top.document.all('general').rows='*,385,55 ,*';
		document.getElementById('contenido').style.height='385px';
		setInterval('top.document.getElementById("pag").onResize =ajusta();',100);
		
			if(entero==true && activo==true){
		top.document.all('general').rows='0,*,60,0';
				a=setInterval("ajusta();", 300);
		}
		
}	
function openfotogaleria(url) {
	if(newWindow){newWindow.closed();}  
	var newWindow = window.open(url,"newWindow","top=4000, scrollbars=no,resize=no");
}
function dinWin(imgobj){
	var elWidth=imgobj.width;
	var elHeight=imgobj.height;
	window.resizeTo(elWidth,elHeight);
	window.moveTo((screen.width-elWidth)/2,(screen.height-elHeight)/2);
	window.focus();
	}


function abrirVentana(winURL,elWidth,elHeight,features){
	if(newWin){newWin.closed();} 
	var newWin =window.open(winURL,'newWin','top=4000'+features);
	newWin.resizeTo(elWidth,elHeight);
	newWin.moveTo((screen.width-elWidth)/2,(screen.height-elHeight)/2);
	newWin.focus();
}



function Verificados(caso){
	var Vobj=document.getElementById(caso);
	var oculto=document.getElementById('V_'+caso);
	if(oculto.value==1){Vobj.src='img/verific_off.gif';
		oculto.value=0;}
	else{Vobj.src='img/verific_on.gif';
		oculto.value=1;}
		
	}
	
var verificado=false;
function confirmarIr(winURL,features, version){
var Comentario = window.showModalDialog(winURL,'',features);
verificado=Comentario;
if (Comentario == true && document.getElementById('verificado')) {
	if(version){document.getElementById('verificado').src='img/verific'+version+'_on.gif';}
	else{document.getElementById('verificado').src='img/verific_on.gif';}
	
	document.getElementById('politica').innerHTML='Acepta pol&iacute;tica de privacidad';
		pasaValor();
		
}
if(Comentario == false && document.getElementById('verificado')){
	if(version){document.getElementById('verificado').src='img/verific'+version+'_off.gif';}
	else{document.getElementById('verificado').src='img/verific_off.gif';}
	document.getElementById('politica').innerHTML='Ver pol&iacute;tica de privacidad';
		pasaValor();
	}

}


function checkNew(){
if(verificado==true){verificado=false;}
else{verificado=true; }
pasaValor();
}

function pasaValor(){
	if (verificado==true ) {
	document.getElementById('ocultoVerificado').value=1;
	document.getElementById('verificado').alt='Aceptada Politica\nde Privacidad'

}
	if (verificado==false ){

	document.getElementById('ocultoVerificado').value=0;
	document.getElementById('verificado').alt='Aceptar Politica\nde Privacidad'
		}
	
	}

function salir(boton){
if(boton=='aceptar'){
window.returnValue =true;
}
if(boton=='descartar'){
window.returnValue =false;

}
window.close();
}
function enlaceIframe(target,url){
document.getElementById(target).src=url;
}