<!--
var old;
var memold;
var subold;
	if(document.layers) {
		window.captureEvents(Event.MOUSEDOWN);
		window.onmousedown=do_out; }
	else {
		document.onmouseup=do_out; }

function show_layer(x) {
	if(document.layers)
		document.layers[x].visibility="show";
	else
		document.all[x].style.visibility="visible";
	}

function hide_layer(x) {
	if(document.layers)
		document.layers[x].visibility="hide";
	else
		document.all[x].style.visibility="hidden";
	}

function do_menu(Item) {
	if(!old)
		old=memold;
	if(old!=Item) {
		show_layer(Item);
		old=Item; }
	else
		old="";
	}

function do_check(x) {
	if(old && old!=x) {
		hide_layer(old);
		show_layer(x);
		old=x; }
	do_submenu();
	}

function do_out() {
	if(old)
		hide_layer(old);
	memold=old;
	old="";
	do_submenu();
	}

function do_submenu(x) {
	if(subold) {
		hide_layer(subold);
		subold=""; }
	if(x) {
		show_layer(x);
		subold=x; }
	}
// -->

////////////////////////////////////////// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

      var smcol  = '#d0d8df';
      var hmcol  = '#f0f8ff';
      var sm2col = '#ffe0e0';
      var hm2col = '#d0c0c0';
      var num=0;
      var lasto=-1;
      var lastoc;
      var menuw=100;

      
      function sm(o){
        if(lasto != -1) lasto.style.backgroundColor = lastoc;
        
        o.style.backgroundColor = smcol;

        lasto  = o;
        lastoc = hmcol;
      }

      function hm(o){
        o.style.backgroundColor = hmcol;
      }

      function sm2(o){        
        if(lasto != -1) lasto.style.backgroundColor = lastoc;

        o.style.backgroundColor = sm2col;

        lasto  = o;
        lastoc = hm2col;       
      }

      function hm2(o){
        o.style.backgroundColor = hm2col;
      }

      function vis(n){
        for(i=1; i<=num; i++){
          if(n == i){
            document.getElementById('submenu'+i).style.display = "block";
          }else{
            document.getElementById('submenu'+i).style.display = "none";
          }
        }
      }


      function getTop(obj)
      {
        res = obj.offsetTop;
        while (obj = obj.offsetParent)
          res += obj.offsetTop;
        return res;
      }


      function mbegin(w){
        menuw=w;

        document.write("<div style='position: absolute; display: none; left: 600px; width: "+w+"px;' id='pbm1' onmouseover='showm();' onmouseout='hidem();' >");
        document.write("<table border='0' cellpadding='0' cellspacing='0' width='"+w+"'  bgcolor='"+hmcol+"'>"); 
      }

      function mend(){
        document.write("</table>");
        document.write("</div>");
      }

      function menu(name, href){
        document.write("<tr><td width='"+menuw+"px' style='cursor:hand; cursor:pointer; background-color: "+hm2col+"' onmouseover='sm2(this);' onmouseout='hm2(this)'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='"+href+"'>"+name+"</a></td></tr>");
      }


      function showm(){
        p = document.getElementById('pbm1');

        p.style.top = getTop(document.getElementById('pbm'))+'px';
        p.style.display = 'block';

        is_hide = false;
      }


      var hide_time=false;
      var is_hide=false;

      function pbmhide()
      {
        if(is_hide){
          p = document.getElementById('pbm1');
          p.style.display = 'none';
        }

        hide_time = false;
      }

      function hidem(){       
        if(hide_time) return;
        is_hide = true;
        setTimeout("pbmhide()", 100);
      }
      


  mbegin(300);
    menu('Голосеевский', '/sale/flat/goloseevskiy.html');
    menu('Дарницкий', '/sale/flat/darnitskiy.html');
//    menu('Деснянский');
//    menu('Днепровский');
//    menu('Оболонский');
//    menu('Печерский');
//    menu('Подольский');
    menu('Святошинский', '/sale/flat/svyatoshinskiy.html');
//    menu('Соломенский');
//    menu('Шевченковский');
   mend();

