function g(o){return document.getElementById(o);} 
function HoverLi(n){ 
for(var i=1;i<=4;i++){g('tb_'+i).className='normaltab';g('tbc_0'+i).className='undis';}g('tbc_0'+n).className='dis';g('tb_'+n).className='hovertab'; 
} 


function addLoadEvent(func){
  var oldf = window.onload;
  if(typeof window.onload != 'function'){
   window.onload =  func;
  }
  else{
   window.onload = function(){
    oldf();
    func();
   }
  }
}
function showDetail(){
 if(!document.getElementById||!document.getElementById("galleryItem")) return false;
 var obj = document.getElementById("galleryItem");
 var items = obj.childNodes;
 for(var i=0; i<items.length; i++){
  items[i].onmouseover=function(){
   for(var t=0; t<items.length; t++){
    items[t].className="";
   }
   this.className="now";
  }
 }
}
addLoadEvent(showDetail);



