/* PopUp Functions by hXbin © 2002 */

if (self.parent.frames.length == 0){
abrir();
}

window.Xen = window.open;
window.open = notme;

function poph(theURL,winName,features) {
  window.Xen(theURL,'GIRL','scrollbars=1, width=440, height=520');
}

function popv(theURL,winName,features) {
  window.Xen(theURL,'GIRL2','scrollbars=1, width=650, height=470');
}

function popi(theURL,winName,features) {
  window.Xen(theURL,'GIRLInfo','scrollbars=1, width=490, height=350');
}

function notme(url,na,p) {
	if (na.indexOf("GIRL")!=-1)
		return window.Xen(url,na,p);
	return false;
}

function make(girl,nom,t){
ass = '<html><head><title>| ENGEL Girl | '+girl+' | Foto #'+nom+'</title><link rel="stylesheet" type="text/css" href="../girls.css"><script src="../popupd.js"></script></head><body onload="baby.style.zoom=\'100%\';" style="border: black 3 solid" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" background="../back.gif"><div style="top: 0; left: 0; width: 100%; background: black;"><p align="center" class=t1><img src="../plus.gif" onclick="zoomI()">&nbsp;&nbsp;<img src="../less.gif" onclick="zoomO()">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| '+girl+'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript: window.close();"><img src="../cerrar.gif" border=0></a></p></div><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 width="100%"><div style="top: 50" id=baby align="center"><img alt="'+girl+'" border="0" src="'+nom+'.jpg"></td></tr><tr><td class="sp" width="100%" bgcolor="#000000" height="25"></td></tr></table></body></html>'	
if (t == 'h'){	
makew(ass);
}
else
makeh(ass);
}

function makew(ass){
wX = Math.ceil( (window.screen.width  - 440) / 2 );
wY = Math.ceil( (window.screen.height - 520) / 2 );
made = open('','GIRL','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(ass);
made.document.close(); 	
}

function makeh(ass){
wX = Math.ceil( (window.screen.width  - 650) / 2 );
wY = Math.ceil( (window.screen.height - 470) / 2 );
made = open('','GIRL','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(ass);
made.document.close(); 		
}
	
function girlw(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>')
}

function abrir(){
hx = window.open('../nav.htm','GIRLnavi','fullscreen=1,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0');
hx.resizeTo(Math.ceil(151),Math.ceil(window.screen.height-100));
hx.moveTo(0,50);
}
