
if (isMobile()) {
	window.location.href = 'mobile';
} else if (!DetectFlashVer(8, 0, 0)) {
	window.location.href = 'no-flash';
} else {
	$(document).ready(function(){
		if (isNewWindow()) {
			if (window.opener) {
				innerFlash();
				window.opener.location.href = 'splash';
				var windowWidth = getWindowWidth();
				var windowHeight = getWindowHeight();
				window.moveTo((screen.width / 2) - (windowWidth / 2 )+ 4, (screen.height / 2) - (windowHeight / 2 )+ 30);
			} else {
				checkWindow();
				setTimeout(function() {
					window.location.href = 'splash';
				}, 10000);
			}
		} else {
			innerFlash();
		}		
	});
}

function isMobile(){
	if (screen.width < 400){
		return true;
	}
}


function isNewWindow(){
	if ((screen.width > maxWidth || screen.width <= minWidth) || (screen.height > maxHeight || screen.height <= minHeight)){
		return true;
	}
}