function embedFlash(ubicacion,pelicula,ancho,alto){ 

     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+'" title=""><param name="menu" value="false" /><param name="movie" value="'+ubicacion+pelicula+'.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" />'); document.write(''); document.write(''); document.write(''); document.write('<embed src="'+ubicacion+pelicula+'.swf" width="'+ancho+'" height="'+alto+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent">'); 
document.write('</object>'); 
}
function pop2(mypage,id,w,h){

	if(id!=""){
	mypage = mypage+"?id="+id
	}
	else {
	mypage = mypage+"?id=0"
	}
	
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable=yes, statusbar=yes'
	win = window.open(mypage,"window",settings)
	win.focus();
}

function popComo(pagina) {
    w = 700;
    h = 600;
	var LeftPosition = (screen.width-w)/2;
    var TopPosition = (screen.height-h)/2;
	settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable=yes, statusbar=yes'
	win = window.open(pagina,"subpop",settings)
	win.focus();
}


function Popmap(theURL) {
var myWidth = 525;
var myHeight = 525;
var myLeft = (screen.width-myWidth)/2;
var myTop = (screen.height-myHeight)/2;
window.open(theURL,"popup",',left='+myLeft+',top='+myTop+',width='+myWidth+',height='+myHeight+'scrollbars=0');
}

function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank"; 
 } 
} 

window.onload = externalLinks;
