function client(a_sGameType, a_iWidth, a_iHeight)
{
	var iWidth = a_iWidth || 701;
	var iHeight = a_iHeight || 547;
	
	
	if(navigator.userAgent.indexOf('Safari') != -1)
	{
		iHeight += 22;
	}
	
	
	window.open("", a_sGameType ,"toolbar=no,menubar=no,directories=no,status=yes,location=no,scrollbars=no,resizable=no,width="+iWidth+",height="+iHeight);
}



/**
 * The function that pops a Networks Game Window.
 *
 * @param 	string 	the url to open (use this.href and set the url in the href attribute)
 * @param 	string 	a_sClientCode
 * @param 	int 	optional a_iHeight to use
 * @param 	int 	optional a_iWidth to use
 * @return	void
 */
/*
function popNWGameWindow(a_sUrl, a_sClientCode, a_iWidth, a_iHeight)
{ 
	/ Set default size
	var iWidth  = a_iWidth  > 0 ? a_iWidth  : 700;
	var iHeight = a_iHeight > 0 ? a_iHeight : 547;
	if (navigator.userAgent.indexOf('Safari') != -1)
	{
		/ Safari needs more shit
		iHeight += 22;
	}
	var sOptions = 'status,height='+iHeight+',width='+iWidth; 
	theWin = window.open(a_sUrl, a_sClientCode + 'Window', sOptions);
	theWin.focus();
}
*/

/**
 * The function that pops a Netent Game Window. If a tournament is running, the window width is increased.
 *
 * @param 	string 	the url to open (use this.href and set the url in the href attribute)
 * @param 	string 	the ID of the game
 * @param 	bool	true if there is a tournament running for this game
 * @param 	int 	optional a_iHeight to use
 * @param 	int 	optional a_iWidth to use
 * @return	void
 */
/*
function popNEGameWindow(a_sUrl, a_sGameID, a_bTourneyIsActive, a_iWidth, a_iHeight)
{ 
	/ Set default size
	var iWidth  = a_iWidth  > 0 ? a_iWidth  : 815;
	var iHeight = a_iHeight > 0 ? a_iHeight : 490;
	if (navigator.userAgent.indexOf('Safari') != -1)
	{
		/ Safari needs more shit
		iHeight += 22;
	}
	if (a_bTourneyIsActive == true)
	{
		/ Add the width of the tournament applet
		iWidth += 160;
	}
	var sOptions = 'status,height='+iHeight+',width='+iWidth; 
	theWin = window.open(a_sUrl, a_sGameID + 'Window', sOptions);
	theWin.focus();
}
*/


