﻿//判断浏览器的内核
window.env=new function(){
    this.isOpera=(window.opera&&navigator.userAgent.match(/opera/gi))?true:false;
    this.isIE=(!this.isOpera&&document.all&&navigator.userAgent.match(/msie/gi))?true:false;
    this.isSafari=(!this.isIE&&navigator.userAgent.match(/safari/gi))?true:false;
    this.isGecko=(!this.isIE&&navigator.userAgent.match(/gecko/gi))?true:false;
    this.isFirefox=(!this.isIE&&navigator.userAgent.match(/firefox/gi))?true:false;
};