function DetectSiteClosed() {
	var timeStart = 6 * 60 * 60 * 1000;
	var timeEnd = 18 * 60 * 60 * 1000;
	var currentDate = new Date();
	var timeMs = 0;
	timeMs += currentDate.getHours() * 60 * 60 * 1000;
	timeMs += currentDate.getMinutes() * 60 * 1000;
	timeMs += currentDate.getSeconds() * 1000;
	timeMs += currentDate.getMilliseconds();
	
	var isClosed = (timeMs > timeStart && timeMs < timeEnd);
	
	return isClosed;
}

function popup(urlValue) {
	var isMac = (navigator.appVersion.indexOf('Mac') != -1);
	var url, windowWidth, windowHeight, windowX, windowY;
	url = urlValue + "";
	windowWidth = (url.substr(0,4) == "http")? 964 : 500;
	windowHeight = 550;
	windowX = (screen.availWidth - windowWidth) / 2;
	windowY = (screen.availHeight - windowHeight) / 2;
	var newPop = window.open(url, "asylum626_window", "left="+windowX+",top="+windowY+",width=" + windowWidth + ",height=" + windowHeight + ",toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=1");
				
	if(!newPop) {
		getSwf("asylum626").openWindowFromSwf(url);
	} else {
		newPop.moveTo(windowX,windowY);
		if (newPop.focus) newPop.focus();
	}

	return false;
}

function sendStat(statPage) {
	pageTracker._trackPageview(statPage);
	uRemoteTracker(statPage);
}