function popDaWindow(url,width,height){
	NewWindow(url,"popup",width,height,'center','no');
}

function FunZoneGame(url){
	var newWindow = NewWindow(url,'funzone',460,590,'center','no')
	newWindow.focus();
}

function popupWindow(win){

	newWindow = window.open(win,'newWin','toolbar=no,location=no,scrollbars=no,resizable=no,width=640,height=480');
	newWindow.focus();
}



//*****************************************************************************
// NewWindow => v1 15.10.02
// 
// Written By: Adam Royle (adapted from 'Auto-centering Popup Window' by Eric King - http://redrival.com/eak/index.shtml)
// Date Created: 15.10.02
// Desc: Opens up a new window, optionally in the center or random placement.
// Returns: Reference of the new window
// Example Usage: 
//			myWin = NewWindow("page.htm","winName",400,300,"center");
//				or
//			myWin = NewWindow("page.htm","winName",450,320,"30,20","yes");
// Last Modified: 
//****************************************************************************
function NewWindow(mypage,myname,w,h,pos,scroll){ // scroll is optional - default set to 'no'
	if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
	if(pos.indexOf(",")!=-1){aPos=pos.split(",");LeftPosition=aPos[0];TopPosition=aPos[1];}
	scroll = scroll?scroll:'no';
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
	var win=window.open(mypage,myname,settings);
	if(win.focus){win.focus();}
	return win;
}
