Function.prototype.method=function(_1,_2){
this.prototype[_1]=_2;
return this;
};
if(typeof SystemDetectionManager=="undefined"){
SystemDetectionManager=function(_3){
function Constructor(){
this.manager=(_3)?_3:this;
this.ua=navigator.userAgent.toLowerCase();
this.platform;
this.osversion;
this.browser;
this.version;
this.aol;
}
with(Constructor){
method("getInfo",function(){
this.aol=(this.detect("aol"))?true:false;
if(!this.browser){
if(this.detect("safari")){
this.browser="safari";
}
if(this.detect("firefox")){
this.browser="firefox";
}
if(this.detect("msie")){
this.browser="ie";
}
if(this.detect("netscape")){
this.browser="nn";
}
}
if(!this.version){
switch(this.browser){
case "ie":
var _4=this.ua.substr(this.ua.indexOf("msie"),9).split(" ");
this.version=parseFloat(_4[1]);
break;
case "firefox":
var _5=this.ua.substr(this.ua.indexOf("firefox"),11).split("/");
this.version=parseFloat(_5[1]);
break;
case "safari":
var _6=this.ua.substr(this.ua.indexOf("safari"),10).split("/");
this.version=parseInt(_6[1]);
if(parseInt(_6[1])>400){
this.version=2;
}
break;
case "nn":
var _7=this.ua.substr(this.ua.indexOf("netscape"),12).split("/");
this.version=parseFloat(_7[1]);
break;
}
}
this.platform=(this.detect("win"))?"win":((this.detect("mac"))?"mac":"unknown");
if(!this.osversion){
if(this.detect("win95")||this.detect("windows 95")){
this.osversion="95";
}
if(this.detect("win98")||this.detect("windows 98")){
this.osversion="98";
}
if(this.detect("winnt")||this.detect("windows nt")){
this.osversion="nt";
}
if(this.detect("win 9x 4.90")){
this.osversion="me";
}
if(this.detect("windows nt 5.0")||this.detect("windows 2000")){
this.osversion="2000";
}
if(this.detect("windows nt 5.1")||this.detect("windows xp")){
this.osversion="xp";
}
if(this.detect("windows nt 5.2")){
this.osversion="dotnet";
}
if(this.detect("os x")||this.detect("osx")||this.detect("mac_powerpc")){
this.osversion="10";
}
}
var _8=new Array();
_8["aol"]=this.aol;
_8["os"]=this.platform;
_8["osversion"]=this.osversion;
_8["browser"]=this.browser;
_8["browserversion"]=this.version;
return _8;
});
method("detect",function(_9){
return this.ua.indexOf(_9)+1;
});
}
return new Constructor();
};
}
if(typeof systemDetectionManager=="undefined"){
systemDetectionManager=new SystemDetectionManager();
}


