
  
  
  function history_change(mid, mid2){

    if ( history_active ){
      document.getElementById(history_active).className = 'history_history_hidden';
      
    }
    if ( historym_active ){
      document.getElementById(historym_active).className = 'historymenuf';
      
    }    
    document.getElementById(mid).className = 'hicone_history';
    document.getElementById(mid2).className = 'historymenufactive';
    history_active = mid;
    historym_active = mid2;
  }
  
  function historym_change (path, mid){

    if ( historymenuactive != mid){
      document.getElementById(mid).src = path;
    }
  }
  
  function historym_setactive(path, mid, c){
    
    document.getElementById(historymenuactive).src = historymenuactivepath;
    historymenuactive = mid;
    historymenuactivepath = path;
    
    
    document.getElementById('menuelement'+c).className='flefthistory_active';
    document.getElementById('menuelement'+historymenuactivediv).className='flefthistory';
    historymenuactivediv = c;
    
  }
  
  function historymenuline ( mid, dir){

  
      document.getElementById('historymenuline'+mid).style.visibility = 'hidden';
      mid = mid + dir;
      document.getElementById('historymenuline'+mid).style.visibility = 'visible';
  }  