// JavaScript Document
function openWorld(baseURL) {
	
	
	var winName = Math.round(9999*Math.random()) + new Date().getTime();
	objWin = window.open("/world.php", winName, "width=740,height=530,location=no,links=no,scrollbars=no,toolbar=no,status=no,menubar=no");
	
	if(!objWin) {
		// this catches the open command from flash registration
		alert("popup blocked!");
		getSwf("registration").openWindowFromSwf("world.php");
	}
	else {
		objWin.screenX = screen.width/2 - 740/2;
		objWin.screenY = screen.height/2 - 530/2;
		objWin.focus();
	}
	
	
	if(baseURL != null)
		window.location = baseURL;
}

function getSwf(id) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[id];
	} 
	else {
		return document[id];
	}
}