function splash() {
	$('<div id="splash"><div id="splashInner"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="splash" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" /><param name="movie" value="/swf/splash.swf" /><param name="loop" value="false" /><param name="quality" value="high" /><param name="salign" value="r" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffcc" /><embed src="/swf/splash.swf" loop="false" quality="high" salign="r" wmode="transparent" bgcolor="#ffffcc" width="100%" height="100%" name="splash" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></div></div>').appendTo('body');
	resizeSplash();
}
function removeSplash() {
	var splash = document.getElementById('splash');
	document.body.removeChild(splash);
}
function removeSplashBackground() {
	var splash = document.getElementById('splash');
	splash.style.backgroundColor = 'transparent';
}
function resizeSplash() {
	var ratio = document.documentElement.clientWidth / document.documentElement.clientHeight;
	if ( ratio > 1024/768 ) {
		var splashInner = document.getElementById('splashInner');
		var h = parseInt((ratio - 1024/768) * 100 + 100);
		splashInner.style.height = h+'%';
		var top = parseInt((h / 100 * document.documentElement.clientHeight - document.documentElement.clientHeight) / 2);
		splashInner.style.top = '-'+top+'px';
	} else {
		var splashInner = document.getElementById('splashInner');
		var w = parseInt((1024/768 - ratio) * 100 + 100);
		splashInner.style.width = w+'%';
		splashInner.style.right = '0px';
	}
}
$(document).ready(function() { 
	
	var anchors = document.getElementsByTagName('a');
	for (var i=0;i<=anchors.length;i++) {
		if (anchors[i] != undefined) {
			anchors[i].setAttribute('onfocus', 'this.blur()');
		}
	}
});
