Browser=new Object();
////////////////////////////////////////////////////////////
	Browser.hasFlash=function(version) {
		return true;
	} 
////////////////////////////////////////////////////////////
	Browser.reportFlash=function(version) {
	} 
////////////////////////////////////////////////////////////
	var Launcher=new Object();
	Launcher.filesLoaded=0;
////////////////////////////////////////////////////////////
Launcher.register=function(name) {
	this.filesLoaded++;
	if (this.jsList.length==this.filesLoaded) {
		init2();
		setLoadIndicator(false);
	} else {
		this.appendNextScript();
	}
}
////////////////////////////////////////////////////////////
Launcher.lockLinks=function() {
	for (var i=0;i<document.links.length;i++) {
		if (document.links[i].className != "xlink" )
			document.links[i].href = "#";
	}
}
////////////////////////////////////////////////////////////
function setLoadIndicator(state) {
	var win=document.getElementById("init_pane");
	
	if (state==true)
		win.style.visibility="visible";
	else
		win.style.visibility="hidden";
}
////////////////////////////////////////////////////////////
function performInit() {

	Launcher.lockLinks();
	
	var onsub= function() {
		return false;
	};
	
	Launcher.jsList=["DOMUtils",
	"global",
	"DocumentFragment",
	"easing",
	"EventBroadcaster",
	"FrameBroadcaster",
	"MouseBroadcaster",
	"DragBar",
	"CButton",
	"Request",
	"Flash",
	"AnimationManager",
	"Animation",
	"ScrollPane",
	"SoundBox",
	"AnimationStyle",
	"DisplayObject",
	"Container",
	"Menu",
	"Win",
	"BottomBar",
	"App",
	"AppManager",
	"ContactApp",
	"InsulterApp",
	"FlashDetailWin",
	"FlashThumbWin",
	"FlashViewerApp",
	"InfoWin",
	"BlogApp",
	"PicViewerApp",
	"AboutApp",
	"RowLayout",
	"GridLayout",
	"main"];

	setLoadIndicator(true);

	Launcher.appendNextScript();
}
////////////////////////////////////////////////////////////
Launcher.appendNextScript=function() {
//	if ( this.filesLoaded>= Launcher.jsList.length)
//		return;

	var atScript=document.createAttribute("language");	
	atScript.nodeValue="JavaScript";
	var atType=document.createAttribute("type");
	atType.nodeValue="text/javascript";

	var atSrc=document.createAttribute("src");
	atSrc.nodeValue="script/" + Launcher.jsList[this.filesLoaded] + ".js";
	
	var script=document.createElement("script");
	
	script.setAttributeNode(atScript);
	script.setAttributeNode(atType);
	script.setAttributeNode(atSrc);
	document.body.appendChild(script);
}
////////////////////////////////////////////////////////////
function init() {

	if(!document.getElementById || !document.createTextNode) {
		return;
	}
	
		performInit();
}
////////////////////////////////////////////////////////////


