/* PopUp Functions by HeX © 2001 */

function poph(theURL,winName,features) {
  window.Xen(theURL,'boy','scrollbars=1, width=440, height=520');
}

function popv(theURL,winName,features) {
  window.Xen(theURL,'boy2','scrollbars=1, width=650, height=470');
}

function popi(theURL,winName,features) {
  window.Xen(theURL,'boyInfo','scrollbars=1, width=490, height=350');
}

function notme(url,na,p) {
	if (na.indexOf("boy")!=-1)
		return window.Xen(url,na,p);
	return false;
}

function make(boy,nom,t){
ok = '<html><head><title>| ENGEL Boy | '+boy+' | Foto #'+nom+'</title><link rel="stylesheet" type="text/css" href="../boys.css"><script src="../popup.js"></script></head><body style="border: black 3 solid" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" background="../back.gif"><div onmouseover="this.style.filter=\'alpha(opacity=0)\'" style="background: black; filter: alpha(opacity=60); position: absolute; top: 50; left: 100;"><p class="n2">| Gracias por esperar en lo que se carga la imagén<br><img src="../title.gif"><br>Pasa por encima para desaparecer</p></div><table border="0" width="100%" cellpadding="0" cellspacing="0"><tr><td class="sp" width="100%" bgcolor="#000000" height="16"><p align="right" class="n2"><a href="javascript: window.close();"><img src="../cer.gif" border=0 alt="Cerrar"></a></td></tr><tr><td width="100%"><p align="center"><img alt="'+boy+'"border="0" src="'+nom+'.jpg"></td></tr><tr><td class="sp" width="100%" bgcolor="#000000" height="25"><p align="center" class="t2">| '+boy+'<br><span align="center" class="n2">| Foto #'+nom+'</p></td></tr></table></body></html>'	
if (t == 'h'){	
makew(ok);
}
else
makeh(ok);
}

function makew(ok){
wX = Math.ceil( (window.screen.width  - 440) / 2 );
wY = Math.ceil( (window.screen.height - 520) / 2 );
made = open('','boy','fullscreen=1,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0, width=440, height=520');
made.resizeTo(Math.ceil(440),Math.ceil(550));
made.moveTo(Math.ceil(wX),Math.ceil(wY));
made.document.write(ok);
made.document.close(); 	
}

function makeh(ok){
wX = Math.ceil( (window.screen.width  - 650) / 2 );
wY = Math.ceil( (window.screen.height - 470) / 2 );
made = open('','boy','fullscreen=1,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0, width=650, height=470');
made.resizeTo(Math.ceil(650),Math.ceil(470));
made.moveTo(Math.ceil(wX),Math.ceil(wY));
made.document.write(ok);
made.document.close(); 		
}

window.Xen = window.open;
window.open = notme;

function boyw(id,name,nom,ty){
sr = id+"-"+nom;
document.write('<a href="javascript:make(\''+name+'\',\''+sr+'\',\''+ty+'\')"><img border="0" src="'+sr+'_small.jpg" alt="'+name+'" onmouseout="this.style.filter=\'alpha(opacity=50)\'" onload="this.style.filter=\'alpha(opacity=50)\'" onmouseover="this.style.filter=\'\'"></a>')
}
