<!-- Begin

function PopupImage(img) { 
titre="DestinationMale.com - Zoom Picture"; 
w=open("",'image','width=500,height=400,toolbar=no,scrollbars=no,resizable=no'); 
w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>"); 
w.document.write("<SCRIPT language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+30,document.images[0].height+60); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>"); 
w.document.write("<BODY style='background-color:#000000' onload='checksize()' onblur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
w.document.write("<TABLE width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'><TR>");
w.document.write("<TD valign='middle' align='center'><IMG src='"+img+"' border=0 alt=''>"); 
w.document.write("</TD></TR></TABLE>");
w.document.write("</BODY></HTML>"); 
w.document.close(); 
} 

function popup_window() {
    window.open('http://www.destinationmale.com/tour/Tour.html', 'popup', 'width=650, height=520, menubar=no, scrollbars=no, toolbar=no, location=no, resizable=no, top=, left=');
}

function popUp(URL) {
day = new Date();
id = day.getTime();
y=(screen.height-704)/2; x=(screen.width-500)/2;

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,status=no,menubar=0,resizable=1,width=704,height=500,left = x,top = y');");
}			


function popUpProfile(URL) {  
day = new Date();
id = day.getTime();
y=(screen.height-704)/1.8; x=(screen.width-500)/1.8;
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,status=no,menubar=0,resizable=1,width=704,height=500,left = x,top = y');");
}

function popUpProfileNoLogin() {
location.href="?w=reserved"
}



function isClosed(myWin)
{
  return (myWin?myWin.closed:false);
}


flyouts = new Array;
var windowName;

function popUpIM(url,winname,uniqueID){
  //alert("uniqueID = " + uniqueID);

   var winPos = ',top='+((screen.height-704)/1.8)+',left='+((screen.width-500)/1.8);
   var scrollArg = 'scrollbars=0';
   var resizeArg = ',resizable=0';
   var windowName = winname;

	if(!flyouts[uniqueID] || flyouts[uniqueID].closed){
//	alert ("new: '" + windowName + "' - '" + uniqueID + "'");
	flyouts[uniqueID] = window.open(url,windowName,'width=704,height=500' + scrollArg + resizeArg + winPos);
         //flyouts[uniqueID].resizeTo(w,h);
         flyouts[uniqueID].focus();
   }else{
//      alert("flyout " + uniqueID + " why don't you focus in FIREFOX \n you exist: "+flyouts[uniqueID]);
//	alert ("exist: '" + windowName + "' - '" + uniqueID + "'");
	flyouts[uniqueID].focus();
   }
}


function popUpE(URL) {
day = new Date();
id = day.getTime();
y=(screen.height-430)/2; x=(screen.width-150)/2;

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,status=no,menubar=0,resizable=0,width=430,height=150,left = x,top = y');");
}			

function popUpS(URL)
{  
day = new Date();
id = day.getTime();
y=(screen.height-704)/1.8; x=(screen.width-500)/1.8;
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,status=no,menubar=0,resizable=1,width=704,height=500,left = x,top = y');");
}

function popUpSize(URL,windowName,w,h)
{  
id = windowName;
y=h;
x=w;
eval(id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,status=no,menubar=0,resizable=1,width=" + x + ",height=" + y + ",left = 100,top = 50');");
}



function popUpChat(strURL,WindowName) {  
var newWin = null; 
id = WindowName;
y=(screen.height-400)/1.8; x=(screen.width-500)/1.8;

//eval("page = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,width=704,height=500,left = x,top = y');");

	if (( newWin == null) || newWin.closed ) {
		newWin = open( strURL, WindowName, 'toolbar=0,scrollbars=0,location=0,status=no,menubar=0,resizable=1,width=500,height=400,left = x,top = y' );
	} else {
		newWin.location = strURL;
		newWin.focus();
	} 


}


function toggleLayer(whichLayer)
	{
		if (document.getElementById)
			{
				// this is the way the standards work
				var style2 = document.getElementById(whichLayer).style;
				style2.display = style2.display? "":"block";
			}
		else if (document.all)
			{
				// this is the way old msie versions work
				var style2 = document.all[whichLayer].style;
				style2.display = style2.display? "":"block";
			}
		else if (document.layers)
			{
				// this is the way nn4 works
				var style2 = document.layers[whichLayer].style;
				style2.display = style2.display? "":"block";
			}
	}



// End -->							

