function menu_init(target){
	for(i = 0; i < document.getElementById(target).getElementsByTagName('ul')[0].childNodes.length; i++){

		document.getElementById(target).getElementsByTagName('ul')[0].childNodes[i].onmouseover = function show_submenu() {
			var target = this;
			for(i = 0; i < target.parentNode.childNodes.length; i++) {
             if(target.parentNode.childNodes[i].nodeName == "LI") {
                 if (target.parentNode.childNodes[i].getElementsByTagName('ul')[0]) {
										 target.parentNode.childNodes[i].getElementsByTagName('ul')[0].style.display = "none";
                 }
             }
    	}
			target.className = "active";
			if (target.getElementsByTagName('ul')[0]) target.getElementsByTagName('ul')[0].style.display = "block";
			clearInterval(target.hide_id);
		}

		document.getElementById(target).getElementsByTagName('ul')[0].childNodes[i].onmouseout = function hide_submenu() {
			var target = this;
			target.className = "";
			function hide() {
				 if (target.getElementsByTagName('ul')[0]) {
						 target.getElementsByTagName('ul')[0].style.display = "none";
         }
				clearInterval(target.hide_id);
			}
			target.hide_id = setInterval(hide, 0);
		}
	}
}
function addfav()
   {
   if (document.all)
      {
      window.external.AddFavorite
      ("http://www.motoscoot.cz","Motoscoot a.s.")
      }
   }
   
function popitup(url) {
	newwindow=window.open(url,'name','height=260,width=200');
	if (window.focus) {newwindow.focus()}
	return false;
}

function popitup2(url) {
	newwindow=window.open(url,'name','height=570,width=600');
	if (window.focus) {newwindow.focus()}
	return false;
}



