<!-- // Author moko@design.ru; edited by shurk@flynet.ru

  var sPath="/img/menu/";
  
  v=parseInt(navigator.appVersion.substring(0,1));
  timeout=0; stored=0;


  function preload(file){
    image=new Image();
    image.src=sPath+file+".gif";
  }

  if (v>=3){
    for (i=1; i<=5; i++) preload(i+"s");
        }
  
  function show(what){
    if (v>=3 && what>0) {
      timeout=0;
      if (what!=stored) clear(0); 
      stored=what;
      document.images["im"+stored].src=sPath+stored+"s.gif";
              }
  }

  function clear(how){
    if (v>=3 && stored>0) {
      document.images["im"+stored].src=sPath+stored+".gif";
     }
  }

  function hide(){
    if (v>=3 && stored>0) {
      timeout=1;
      window.setTimeout('if (timeout>0) clear(1)',100);
    }
  }

