function loadfunction(navid){
    changeClassByID(navid);
    
}


function nav(myid,hover,topid){
var other_new, other_old;
if(myid!=topid)
  changeClassByID(myid);

if(hover == true){
  other_new='bluepage_ul_2_show';
  other_old='bluepage_ul_2_noshow';
  if(myid!=topid)
    changeClassByID(topid,'hidden');
  }
  else{
    other_new='bluepage_ul_2_noshow';
    other_old='bluepage_ul_2_show';
    changeClassByID(topid,'show');
  }
}




function changeClassByID(id,show){
  if (document.getElementById(id)) {
  var obj=getElementByClassName(document.getElementById(id).className,id);
  if(show == 'hidden'){
    if(obj.className == 'bluepage_ul_2_show')
      obj.className='bluepage_ul_2_noshow';
  }
  else if(show =='show'){
    if(obj.className == 'bluepage_ul_2_noshow') 
      obj.className='bluepage_ul_2_show';
  }else{
    if(document.getElementById(id).className=='bluepage_ul_2_noshow'){
      obj.className='bluepage_ul_2_show';
    }else if(document.getElementById(id).className=='bluepage_ul_2_show'){
      obj.className='bluepage_ul_2_noshow';
    }
  }
  
 } 
  
}



function getElementByClassName(class_name,id)
{
  var obj,ret_obj,teststr;
  obj=document.getElementById(id);
  
    if(obj.className.indexOf(class_name)!=-1)
    {
      teststr=","+obj.className.split(" ").join(",")+",";
      if(teststr.indexOf(","+class_name+",")!=-1)
      {
        ret_obj=obj;
      }
    }

  return ret_obj;
}