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

					setTimeout(function() {
						window.location.href = _url + 'splash';
					}, 1000);
				}
			}
		} else {
			innerFlash();
		}*/
		innerFlash();
	});
}

function innerFlash(){
	// return true;
	if (_flashRedirect) {
		 window.location = _flashUrl;
		return true;
	};
	 $('body').html('<div id="main"><div id="main-media"></div></div>').addClass('flash');
	
	$('#main').css('display', 'block');
	 $('#main-media').media({
	 	version: '8,0', width: '100%', height: '1556', autoplay: true, src: _urlSwf + 'site.swf',	caption: false,
	 	attrs: { id: 'flashSite'},
	 	flashvars: { 'lg': _lg, 'urlBase': _url, 'urlSwf': _urlSwf},
		params: {
	 		allowScriptAccess: 'sameDomain',
	 		bgColor:"#FFFFFF",
	 		quality: 'high'
	 	}
	 });
}

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

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