function pop( name,url,width,height,params,returnVal ) {
	args="width="+width+",height="+height+",resizable=no,"+params; 

	remote=window.open( url,name,args );

	if ( remote != null ) {
		if ( remote.opener == null )
			remote.opener = self;
	}

	remote.focus();

	if (returnVal == 1)
		return remote;
}

function openClose(url) {
 window.open(url,"","width=700,height=600,top=25,left=25,toolbar=no,location=no,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=no");
 window.close();
}



function launchPopup(id,url)
{
	window.scrollTo(0,0);
	document.getElementById('gameshell').style.display="block";
	document.getElementById('game').src=url;
	document.getElementById('gamecontent').style.display="block";
}

function closePopup(id,url)
{
	document.getElementById('game').src=url;
	document.getElementById('gameshell').style.display="none";
	document.getElementById('gamecontent').style.display="none";
}

function launchBadge(id,url)
{
	window.scrollTo(0,0);
	document.getElementById('badgeshell').style.display="block";
	document.getElementById('badge').src=url;
	document.getElementById('badgecontent').style.display="block";
}

function closeBadge(id,url)
{
	document.getElementById('badge').src=url;
	document.getElementById('badgeshell').style.display="none";
	document.getElementById('badgecontent').style.display="none";
}
