

function sysOnLoad() {
	setTimeout("killBackgroundFlash();", 1000);
	//setTimeout("killBackground();", 1000);
}


function killBackground() {
	var objDoc_Section = document.getElementById('fullscreen');
	if ( objDoc_Section ) {
		objDoc_Section.style.visibility = 'hidden';
	}
//	Navigation
	loadFlashSection("assets/flash/navigation/navigation.swf?pLocation=home&showPinkyPonk=true&showSky=true", "page-header", 788, 285, true);
	loadFlashSection("assets/flash/navigation/home_blue.swf", "navi-but-flt-blue", 145, 135, true);
	loadFlashSection("assets/flash/navigation/home_red.swf", "navi-but-flt-red", 145, 140, true);
//	loadFlashSection("assets/flash/navigation/home_news.swf", "navi-but-flt-pink", 145, 140, true);
	loadFlashSection("assets/flash/navigation/home_register.swf", "navi-but-flt-pink", 145, 140, true);
//	Homepage 
	loadFlashSection("assets/flash/homepage/homepage.swf", "page-media-homepage", 465, 670, true);
}


function killBackgroundFlash() {
	var objDoc_Section = document.getElementById('content');
	if ( objDoc_Section ) {
			objDoc_Section.style.background = 'none';
	}
}

function loadFlashSection(strSWF, strDIV, intWidth, intHeight, bitTrans) {
	var fo = new FlashObject(strSWF, strDIV + "x", intWidth, intHeight, "7", "#000000");
	fo.addParam("allowScriptAccess", "always");    				
	fo.addParam("menu", "false");
//	fo.addParam("flashVars", "pLocation=home");
	fo.addParam("wmode", "transparent");
	var written = fo.write(strDIV);
}

function wallpaperWindow(strURL) {
	var w = 640;
	var h = 500;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	var uploadWin = window.open(strURL, 'uploadWindow', 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,resizable=0');
	uploadWin.focus();
}

