/**********曾锦加入判断浏览器版本**********************/
var Sys = {}; 
var ua = navigator.userAgent.toLowerCase(); 
if (window.ActiveXObject) 
Sys.ie = ua.match(/msie ([\d.]+)/)[1] 
else if (document.getBoxObjectFor) 
Sys.firefox = ua.match(/firefox\/([\d.]+)/)[1] 
else if (window.MessageEvent && !document.getBoxObjectFor) 
Sys.chrome = ua.match(/chrome\/([\d.]+)/)[1] 
else if (window.opera) 
Sys.opera = ua.match(/opera.([\d.]+)/)[1] 
else if (window.openDatabase) 
Sys.safari = ua.match(/version\/([\d.]+)/)[1]; 



/****************此方法为只在firfox下使用********************************/
function checkSys(ThLen){ //左菜单根据右边自适应高度
	//if(Sys.ie) document.write('IE: '+Sys.ie); 
if(Sys.firefox && document.getElementById('tabmenu')!=null) document.getElementById('tabmenu').style.height=document.body.scrollHeight-ThLen;
//if(Sys.chrome) //document.write('Chrome: '+Sys.chrome); 
//if(Sys.opera) //document.write('Opera: '+Sys.opera); 
//if(Sys.safari) //document.write('Safari: '+Sys.safari); 
}


function checkSysHeight(THeight){ //左菜单固定高度

if(Sys.firefox && document.getElementById('tabmenu')!=null) document.getElementById('tabmenu').style.height=THeight;

}


function checkSysIframeHeight(THeight){//iframe里设置menu高度(只支持父子级)

if(Sys.firefox && parent.document.getElementById('tabmenu')!=null) {parent.document.getElementById('tabmenu').style.height=THeight};

}
/**********判断浏览器版本结束******************/
