if(typeof document.xGUI != "object"){
	var se = document.getElementsByTagName("script");
	var commonurl;
	for(var i=0; i<se.length;i++){
		if(se[i].src && se[i].src.match(/xGUI\.js(\?.*)?$/)){
			var path = se[i].src.replace(/xGUI\.js(\?.*)?$/,'');
			xGUI = {dir:path}
			xGUIdir = path;
			commonurl=path+'common.js';
			var args = se[i].src.match(/\?(.*)/);
			if(args){
				var args = args[1].split('&');
				for(var j=0; j<args.length; j++){
					args[j] = args[j].split('=');
					xGUI[args[j][0]]=decodeURIComponent(args[j][1]);
				}
			}
			break;
		}
	};
	var httpRequest;
	try{httpRequest = new ActiveXObject('Msxml2.XMLHTTP');}catch(e){};if(!httpRequest){try{httpRequest = new ActiveXObject('Microsoft.XMLHTTP');}catch(e){};}if(!httpRequest){try{httpRequest = new XMLHttpRequest();}catch(e){};}
	httpRequest.open("GET", commonurl, false);
	httpRequest.send(null);
	var __data=httpRequest.responseText;
	__data= __data.replace(/^\s+|\s+$/g,"");
	try{
		if ( window.execScript ){
			window.execScript( __data );
		}else{
			eval.call( window, __data );
		}
	}catch(e){
		throw e;
	};
	xGUI.console('xGUI common loaded!');
}
