// JavaScript Document
/*自定义获取Class函数，解决低版本IE不支持的问题*/
document.getElementsByClassName = function(){
var tTagName ="*";
if(arguments.length > 1){
   tTagName = arguments[1];
}
if(arguments.length > 2){
   var pObj = arguments[2]
}
else{
   var pObj = document;
}
var objArr = pObj.getElementsByTagName(tTagName);
var tRObj = new Array();
for(var i=0; i<objArr.length; i++){
   if(objArr[i].className == arguments[0]){
    tRObj.push(objArr[i]);
   }
}
return tRObj;
}

/*软件框背景变色*/
function softbj() {
var tr=document.getElementsByClassName("software")
for(i=0;i<tr.length;i++){
    tr[i].index=i
    tr[i].style.background="#FFFFFF"
    tr[i].onmouseover=function(){this.style.background="#EBF6FD"}<!--热点背景色-->
    tr[i].onmouseout=function(){this.style.background="#FFFFFF"}
}
}
/*以下为斑马线变色
tr[i].style.background=(i%2==0)?"#FEFBEC":"#F4F8FB"
tr[i].onmouseover=function(){this.style.background="#FFFF99"}<!--热点背景色-->
tr[i].onmouseout=function(){this.style.background=(this.index%2==0)?"#FEFBEC":"#F4F8FB"}
*/

/*侧栏背景变色*/
function sidebj() {
var tr=document.getElementsByClassName("sidebar")
for(i=0;i<tr.length;i++){
    tr[i].index=i
    tr[i].style.background="#FFFFFF"
    tr[i].onmouseover=function(){this.style.background="#FFFFC8"}<!--热点背景色-->
    tr[i].onmouseout=function(){this.style.background="#FFFFFF"}
}
}
