function quickEscape(){
	document.getElementById('coverup').style.display="block";
        window.location = "http://www.google.com";
}
function erjBrowser(){
        document.demotedIE8 = false;
	var bIsIE=(navigator.appName=='Microsoft Internet Explorer' ? true : false);
	var bIsFF=( (navigator.userAgent).indexOf('Firefox')>-1 ? true : false);
	var bIsSF=( ((navigator.userAgent).indexOf('Safari')>-1) && ((navigator.userAgent).indexOf('Chrome')<0) ? true : false);
	var bIsChrome=( (navigator.userAgent).indexOf('Chrome')>-1 ? true : false);
	var bIsOpera=( (navigator.userAgent).indexOf('Opera')>-1 ? true : false);
	var bIsWebKit=( (((navigator.userAgent).toLowerCase().indexOf('webkit')>-1) || (bIsOpera==true)) ? true : false );
	var bIsOther=( (!bIsIE) && (!bIsFF) && (!bIsSF) ? true : false );
	var name=( bIsIE==true ? navigator.appName : ( bIsFF==true ? 'Firefox' : ( bIsSF==true ? 'Safari' : ( bIsChrome==true ? "Chrome" : ( bIsOpera==true ? "Opera" : navigator.appName )))));
	var tmp=(navigator.userAgent).split("/");
	var version=parseFloat( ( bIsIE==true ? navigator.appVersion.substring( (navigator.appVersion.indexOf("MSIE")) + 5) : ( (bIsFF==true)||(bIsOpera==true) ? tmp[(tmp.length - 1)] : ( bIsSF==true ? tmp[(tmp.length - 2)] : ( bIsChrome==true ? tmp[(tmp.length - 2)] : navigator.appVersion ) ) ) ) ).toFixed(2);
	
	if( (bIsIE === true) && (version > 7)) {
		try{
			HTMLDocument.prototype.this_does_not_exist = 1;
		} catch(e) {
			version = 7;
			document.demotedIE8 = true;
		}
	}
	
	//alert(version+"\nav: "+navigator.appVersion+"\nua: "+navigator.userAgent);
	//parseFloat()
	
	this.getBrowser = function (){
		var tmpB={
			"name":name,
			"version":version
		};
		return tmpB;
		//var tmpArray=new Array();
		//tmpArray['name']=name;
		//tmpArray['version']=version;
		//return tmpArray;
	};
	
	this.isFirefox = function (){
		return bIsFF;
	};
	
	this.isSafari = function (){
		return bIsSF;
	};
	
	this.isIE = function (){
		return bIsIE;
	};
	
	this.isOpera = function(){
		return bIsOpera;
	};
	
	this.isChrome = function(){
		return bIsChrome;
	};
	
	this.isWebKit = function(){
		return bIsWebKit;
	};
	
	this.isOther = function(){
		return bIsOther;
	};
	
	this.Version = function(){
		return version;
	};
	
	this.eval = function(udef_javascript_code){
		try{
			if(!empty(udef_javascript_code)){
				if( window.execScript ){window.execScript(udef_javascript_code);}else if( window.exec ){window.exec(udef_javascript_code);}else if( ERJ_BROWSER_GLOBAL_SCOPE.eval ){ERJ_BROWSER_GLOBAL_SCOPE.eval(udef_javascript_code);}else{eval(udef_javascript_code);}
			}
		}catch(e){}};
	
	this.sleep = function(udef_seconds){
		udef_seconds = udef_seconds * 1000;
		var start = (new Date()).getTime();
		while(!( (((new Date()).getTime()) - (start)) > udef_seconds)) {};};
	
	this.onLoadMagic = function(udef_javascript_function){
		if(bIsIE==true){
			window.attachEvent("onload", udef_javascript_function);
		}else{
			window.addEventListener("load", udef_javascript_function, false);
		}
	};
	
	this.onUnLoadMagic = function(udef_javascript_function){
		if(bIsIE==true){
			window.attachEvent("onunload", udef_javascript_function);
		}else{
			window.addEventListener("unload", udef_javascript_function, false);
		}
	};
	
	this.removeOnLoadMagic = function(udef_javascript_function){
		if(bIsIE==true){
			window.detachEvent("onload", udef_javascript_function);
		}else{
			window.removeEventListener("load", udef_javascript_function, false);
		}
	};
	
	this.removeOnUnLoadMagic = function(udef_javascript_function){
		if(bIsIE==true){
			window.detachEvent("onunload", udef_javascript_function);
		}else{
			window.removeEventListener("unload", udef_javascript_function, false);
		}
	};
	
	this.loadJavascript = function( udef_js, udef_attributes ){
		var attributes=( (udef_attributes==null) || (udef_attributes==undefined) || (!isArray(udef_attributes)) ? null : udef_attributes);
		attributes['language']='javascript';
		var script = document.erjCreateElement('script', attributes);
		document.getElementsByTagName('head')[0].appendChild(script);
		return script;
	};
	
	this.parseURI = function(sourceUri){
		if( (sourceUri==null) || (sourceUri==undefined) ) sourceUri=window.location.href;
		var uriPartNames = ["source","protocol","authority","domain","port","path","directoryPath","fileName","query","anchor"];
		var uriParts = new RegExp("^(?:([^:/?#.]+):)?(?://)?(([^:/?#]*)(?::(\\d*))?)?((/(?:[^?#](?![^?#/]*\\.[^?#/.]+(?:[\\?#]|$)))*/?)?([^?#/]*))?(?:\\?([^#]*))?(?:#(.*))?").exec(sourceUri);
		var uri = {};
		for(var i = 0; i < 10; i++){
			uri[uriPartNames[i]] = (uriParts[i] ? uriParts[i] : "");
		}    
		// Always end directoryPath with a trailing backslash if a path was present in the source URI
		// Note that a trailing backslash is NOT automatically inserted within or appended to the "path" key
		if(uri.directoryPath.length > 0){
			uri.directoryPath = uri.directoryPath.replace(/\/?$/, "/");
		}
		uri["pagebase"]=(""+uri["protocol"]+"://"+uri["domain"]+uri["directoryPath"]);
		return uri;
	};
}

/*
var browser=new erjBrowser();

	if(browser.isIE() || browser.isFirefox()) {
		alert("Click OK then:\n\nPress Ctrl-Shift-P to start private browsing!");
	} else if(browser.isChrome()) {
		alert("Click OK then:\n\nPress Ctrl-Shift-N to start private browsing!");
	} else if(browser.isSafari()) {
		alert("Click OK then:\n\nGo to Edit->Private Browsing to start private browsing!");
	} else {
		alert("Your browserdoes not support private browsing!\n\nWE HIGHLY SUGGEST YOU CLEAR YOUR HISTORY AFTER YOUR VISIT!");
	}
*/
