function mapa_escala2(){
var version = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
var winH2
var winW2
if (parseInt(navigator.appVersion)>3) { 
	if (navigator.appName=="Netscape") { 
		winW2 = window.innerWidth-40; 
		winH2 = window.innerHeight; 
	} 
	if (navigator.appName.indexOf("Microsoft")!=-1) { 
		winW2 = document.body.offsetWidth; 
		winH2 = document.body.offsetHeight; 
	} 
	if (version != null && Number(version[1]) <= 5.5) {
		winW2 = document.body.offsetWidth-40; 
	}
} 
	var ancho=winW2-230;
	var alto=ancho/1.55;
		
	document.getElementById('contenedorMapa').style.width=ancho+'px';
	document.getElementById('contenedorMapa').style.height=alto+'px';
	document.getElementById('BUSQUEDAPROX').style.width=ancho+'px';
	document.getElementById('RESULPROX').style.width=ancho+'px';
}

function capabusqueda(alto,muestra){
	document.getElementById('RESULPROX').style.height=alto;
	document.getElementById('RESULPROX').style.display=muestra;
	//document.getElementById('RESULPROX').style.width=parseInt(document.getElementById('BUSQUEDAPROX').style.width);
	var version = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	if (parseInt(navigator.appVersion)>3) { 
		if (navigator.appName=="Netscape") { 
			winW = window.innerWidth-40; 
			winH = window.innerHeight; 
		} 
		if (navigator.appName.indexOf("Microsoft")!=-1) { 
			winW = document.body.offsetWidth; 
			winH = document.body.offsetHeight; 
		} 
		if (version != null && Number(version[1]) <= 5.5) {
			winW = document.body.offsetWidth-40; 
		}
	} 
	var ancho=winW-230;
	var alto=ancho/1.55;
	document.getElementById('RESULPROX').style.width=ancho+'px';
	//pintaiconos();
}

/*function pintaiconos() {
    var caparesult = parseInt(document.getElementById('RESULPROX').style.height);
	var anchura = winW - 190;
	var altura = anchura / 1.55;
	document.getElementById('ICONOS').style.height=altura-241+caparesult;
}*/
function pintaiframe() {
	var anchura = parseInt(document.getElementById('RESULPROX').style.width);
	var altura = parseInt(document.getElementById('RESULPROX').style.height);
	document.getElementById('CARGA').style.width=anchura-35+"px";
	//alert(document.getElementById('CARGA').src)
    if(altura>0)
	 document.getElementById('CARGA').style.height=altura-10+"px";
	else
	 document.getElementById('CARGA').style.height=0+"px";
}
/*function pintaiconosint() {
    var caparesult = parseInt(document.getElementById('RESULPROX').style.height);
	var anchura = winW - 190;
	var altura = anchura / 1.55;
	document.getElementById('ICONOS').style.height=altura-150+caparesult;
}*/

function pestanaon(id) {
	document.getElementById(id).className ='pestanaon';
}

function pestanaoff(id) {
document.getElementById(id).className ='pestanaoff';
}

function navegacionsup(id1,id2,id3,id4){
	document.getElementById(id1).className ='resaltado';
	document.getElementById(id2).className ='normal';
	document.getElementById(id3).className ='normal';
	document.getElementById(id4).className ='normal';
}

function navegacionoff(id1,id2,id3,id4){
	document.getElementById(id1).className ='normal';
	document.getElementById(id2).className ='normal';
	document.getElementById(id3).className ='normal';
	document.getElementById(id4).className ='normal';
}

function navegacion2sup(id1,id2){
	document.getElementById(id1).className ='resaltado';
	document.getElementById(id2).className ='normal';
}

function navegacion2off(id1,id2){
	document.getElementById(id1).className ='normal';
	document.getElementById(id2).className ='normal';
}

function navegacion3sup(id1,id2,id3){
	document.getElementById(id1).className ='resaltado';
	document.getElementById(id2).className ='normal';
	document.getElementById(id3).className ='normal';
}

function navegacion3off(id1,id2,id3){
	document.getElementById(id1).className ='normal';
	document.getElementById(id2).className ='normal';
	document.getElementById(id3).className ='normal';
}
