	window.onerror=null;
	var agenT = navigator.userAgent.toLowerCase(); 

	var BroW = navigator.appVersion;
	var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
	var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;
	var isMac = (agenT.indexOf("mac")!=-1);
	var brows = "unknown";
	
	var doFlash=false;
	var lowRes=false;	

function detectBrowser(){
	if (document.all) {
  		brows = "IE";
	}else if (document.layers) {
  		brows = "Net";
	}else if (document.getElementById) {
  		brows = "Net6";
	}
}


// used on Netscape
function detectFlash(){
	if (navigator.plugins){					
		if (navigator.plugins["Shockwave Flash 2.0"] 	// yes then is Flash 2 
		|| navigator.plugins["Shockwave Flash"]){	// or flash 3+ installed?

			var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
			// a flash plugin-description looks like this: Shockwave Flash 4.0 r5
			// so we can get the major version by grabbing the character before the period
			var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));

			doFlash = flashVersion == 5;
		}
	}
}

// check visitor screen resolution
function detectRes(){
	if (BroW >= "4") {
  		var x = screen.width; 
  		var y = screen.height;
  		Res = x + "x" + y
	} else {
  		Res = 'unknown'
	}
	if (Res == "640x480"){
		lowRes=true;
	}
}



