if(typeof (Browser)==="undefined"){
	Browser={};
}
Browser.detect={
	getAgent:function(){
		return navigator.userAgent.toLowerCase();
	},
	isMac:function(M){
		var U=M||this.getAgent();
		return !!U.match(/mac/i);
	},
	isWin:function(M){
		var U=M||this.getAgent();
		return !!U.match(/win/i);
	},
	isWin2k:function(M){
		var U=M||this.getAgent();
		return this.isWin(U)&&(U.match(/nt\s*5/i));
	},
	isWinVista:function(M){
	   var U=M||this.getAgent();
	   return this.isWin(U)&&(U.match(/nt\s*6/i));
	},
	isOpera:function(M){
		var U=M||this.getAgent();
		return !!U.match(/opera/i);
	},
	isIE:function(M){
		var U=M||this.getAgent();
		return !!U.match(/msie/i);
	},
	isFirefox:function(M){
		var U=M||this.getAgent();
		return !!U.match(/firefox/i);
	}
};
