function Map()
{
	this.version		= 1.0;
	this.checkusersettings = function(){
		 // retrun false only if we know the user has disabled JS
		 if (window.cookiemonster&&cookiemonster.is('javascript','off')){
			 return false;
		 } else {return true;}
	 };	
	this.hdrType		= "default";
	this.features 		= new Array;
	this.roles			= new Array;
	this.variants 		= new Array;
	this.previous		= new Array;
	this.ua				= navigator.userAgent.toLowerCase();
	this.isBB			= (this.ua.match('\\bblackberry'))?true:false;
	this.isIE8b			= (this.ua.match('msie 8.0'))?true:false;
	this.isIE6			= (this.ua.match('msie 6'))?true:false;
	this.isIE7			= (this.ua.match('msie 7'))?true:false;
	this.isIphone 		= (this.ua.match('iphone')||this.ua.match('ipod'))?true:false;
	this.isMac			= (this.ua.match('\\bmac\\b'))?true:false;
	this.isMini			= (this.ua.match('\\bmini\\b'))?true:false;
	this.isMobile		= (this.isBB || this.isMini || this.ua.match('mobile'))?true:false;
	this.isPointerOnly	= (this.ua.match('wii') || this.isIphone)?true:false;
	this.isSafari		= (this.ua.match('safari'))?true:false;
	this.isSymbian		= (this.ua.match('symbian'))?true:false;
	this.isSmallScreen	= (this.ua.match('wii') || this.isIphone)?true:false;
	this.isOldIE		= (document.all && !window.XMLHttpRequest && !this.isIE6 )?true:false;
	this.userAgentCheck = ( !this.isOldIE && !this.isMini && !this.isBB && !this.ua.match('nitro') && !this.ua.match('playstation') && !this.ua.match('konqueror') && !this.ua.match('windows ce') );// turn off on these platforms
	this.jsenabled 		= ( document.getElementById && window.RegExp && (window.addEventListener || window.attachEvent) && (window.XMLHttpRequest || window.ActiveXObject) && (new Array).push ) ? true : false;
	this.isdisabled		= ((window.location.search && window.location.search.match('js=off')) || !this.checkusersettings() )?true:false;
	this.jsenabled  	= (this.jsenabled && this.userAgentCheck && !this.isdisabled);
	this.jsSupportLevel = 0;
	this.jsLevel 		= 0;
	this.init = function(){
		var jssl = 0;
		if (!this.userAgentCheck){this.jsLevel=jssl=0;}
		else if (this.isSymbian || this.isIE6 || this.isIE8b){this.jsLevel=jssl=1;}
		else if (this.isIE7){this.jsLevel=jssl=2;}
		else {this.jsLevel=jssl=3;};
		if (!this.jsenabled){jssl=0;}
		this.jsSupportLevel = jssl;
	};
	this.init();
	this.info=function(){
		var t = "";
		for (name in this){
			if (name=="info"||name=="init"||name=="checkusersettings"||name=="checkimg"){continue;}
			t+= name +":"+ this[name]+"\n";
		}
		return t;
	}
	this.checkimg=function(ops){
		ops = ops || {width:98}
		var src = "/global/lib/ui/i/98x2.png?"+ (new Date().getTime());
		var testImgEnabled = new Image();
		testImgEnabled.test = function(){
			if (testImgEnabled.width == ops.width){
				$("html").addClass("img");
			} else {
				$("html").removeClass("img");
			}
		}
		if (testImgEnabled.addEventListener){
			testImgEnabled.addEventListener('load',testImgEnabled.test,false);
		}else if (testImgEnabled.attachEvent){
			testImgEnabled.attachEvent('onload',testImgEnabled.test);
		}
		testImgEnabled.src=src;
	}
}
var map = new Map();
			
			

