function mostrar_flash (cualswf,ancho,alto,modo) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width='+ancho+' height='+alto+'>\n');
	document.write('<param name="movie" value='+cualswf+'>\n');
	document.write('<param name="menu" value="false">\n');
	if (modo!="") {
		document.write('<param name="wmode" value='+modo+'>\n');
	}
	document.write('<param name="quality" value="high">');
	document.write('<embed src='+cualswf+' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+ancho+' height='+alto+'></embed>');
	document.write('</object>');
}

function aviso_legal(a) {
	ancho=630;
	if (ancho+160 > screen.width) ancho=screen.width-160;
	alto=420;
	if (alto+160 > screen.height) alto=screen.height-160;
	day = new Date();
	id = day.getTime();
	posleft = (screen.width) ? (screen.width-ancho-4)/2 : 0;
	postop = (screen.height) ? (screen.height-alto-4)/2 : 0;
	if (postop > 40) postop = postop-20;
	eval("page" +id +"=window.open('"+a+"','"+id+"','width='+ancho+',height='+alto+',left='+posleft+',top='+postop+',scrollbars=yes,location=0,toolbar=0,statusbar=0,menubar=0,resizable=0');");
}

function pulso(a){document.getElementById("m"+a).style.backgroundColor= "#2C76B2";}

function pop_foto(a){
		ancho=960;
	if (ancho+160 > screen.width) ancho=screen.width-160;
	alto=530;
	if (alto+160 > screen.height) alto=screen.height-160;
	day = new Date();
	id = day.getTime();
	posleft = (screen.width) ? (screen.width-ancho-4)/2 : 0;
	postop = (screen.height) ? (screen.height-alto-4)/2 : 0;
	if (postop > 40) postop = postop-20;
	eval("page" +id +"=window.open('"+a+"','"+id+"','width='+ancho+',height='+alto+',left='+posleft+',top='+postop+',scrollbars=yes,location=0,toolbar=0,statusbar=0,menubar=0,resizable=0');");
}

function zoom_mapa() {
	ancho=508;
	if (ancho+160 > screen.width) ancho=screen.width-160;
	alto=311;
	if (alto+160 > screen.height) alto=screen.height-160;
	day = new Date();
	id = day.getTime();
	posleft = (screen.width) ? (screen.width-ancho-4)/2 : 0;
	postop = (screen.height) ? (screen.height-alto-4)/2 : 0;
	if (postop > 40) postop = postop-20;
	eval("page" +id +"=window.open('pop_mapa.php','"+id+"','width='+ancho+',height='+alto+',left='+posleft+',top='+postop+',scrollbars=0,location=0,toolbar=0,statusbar=0,menubar=0,resizable=0');");
}