function browerCheck() { var version = navigator.appVersion; if(version.indexOf("MSIE") > 0) { var ie = version.slice(version.indexOf("MSIE") + 5, version.indexOf("MSIE") + 6); if(ie == "9"){ return 9; } else if (ie == "8"){ return 8; } else if(ie == "7"){ return 7; } else if(ie == "6"){ return 6; } else if(ie == "5"){ return 5; } return "MSIE"; } if(isFirefox=version.indexOf("Firefox")>0){ return "Firefox"; } if(isSafari=version.indexOf("Safari")>0) { return "Safari"; } if(isCamino=version.indexOf("Camino")>0){ return "Camino"; } if(isMozilla=version.indexOf("Gecko/")>0){ return "Gecko"; } }