var browser={name:"",prefix:"",isIE:!1,versionIE:"",supportHTML5:!0,isFlash:!1,detect:function(){browser.checkFlash();var b=navigator.userAgent.toLowerCase().match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)||[null,"unknown",0];browser.name="version"==b[1]?b[3]:b[1];switch(browser.name){case "safari":browser.prefix="Webkit";break;case "firefox":browser.prefix="Moz";break;case "opera":browser.prefix="O";break;case "ie":browser.prefix="ms";browser.isIE= !0;if(document.all&&!document.querySelector)browser.supportHTML5=!1,browser.versionIE=7;if(document.all&&document.querySelector&&!document.getElementsByClassName)browser.supportHTML5=!1,browser.versionIE=8;if(document.all&&document.querySelector&&document.getElementsByClassName&&!window.atob)browser.versionIE=9;if(document.all&&document.querySelector&&document.getElementsByClassName&&window.atob)browser.versionIE=10,browser.prefix="ms";break;case "chrome":browser.prefix="Webkit";break;case "unknown":browser.prefix= "webkit"}},checkFlash:function(){var b=0,a=null;if("undefined"!=typeof navigator.plugins&&"object"==typeof navigator.plugins["Shockwave Flash"]){if((a=navigator.plugins["Shockwave Flash"].description)&&!("undefined"!=typeof navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&!navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin))a=a.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),b=parseInt(a.replace(/^(.*)\..*$/,"$1"),10)}else if("undefined"!=typeof window.ActiveXObject)try{var c= new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(c&&(a=c.GetVariable("$version")))a=a.split(" ")[1].split(","),b=parseInt(a[0],10)}catch(d){}if(0!=b)browser.isFlash=!0},setEvent:function(b,a,c){browser.supportHTML5?b.addEventListener(a,c,!1):b.attachEvent("on"+a,c,!1)}};browser.detect();