function addLoadEvent(func) {
	var oldonload = window.onload;
	if(typeof window.onload != 'function') {
		window.onload = func;
	}else{
		window.onload = function() {
			oldonload();
			func();
		}
	}
}
function writeFlash() {
	if(!document.getElementById) return false;
	if(!document.getElementById('flashcontent')) return false;
	var so = new SWFObject("sandbox.swf", "site", "760", "605", "8", "transparent");
	so.addParam("scale", "noscale");
	so.addParam("salign","lt");
	so.addParam("menu","false");
	so.addParam("wmode", "transparent");
	so.write("flashcontent");
	
}
addLoadEvent(writeFlash);