

        function createMarker(point,icon,thei,html) {
            var marker = new GMarker(point, icon);
            GEvent.addListener(marker, "click", function() {
             marker.openInfoWindowHtml(html);
             list_row_unselect();

             });
             gmarkers[thei] = marker;
            return marker;
        }

      function myclick(i) {
        GEvent.trigger(gmarkers[i], "click");
      }

function all_menus_off(){

$('find_div').style.display = 'none';
$('view_div').style.display = 'none';
$('buy_div').style.display = 'none';
$('sell_div').style.display = 'none';

}

function menu_on(the_div){

the_div.style.display = 'inline';

}


function list_row_unselect(){


 if ($('list_row_selected')) $('list_row_selected').id = '';

}


function move_building_type_div(){


span_obj = document.getElementById("b_span");
div_obj = document.getElementById("building_type_div");

x = GetX(span_obj);
y = GetY(span_obj);

w = GetWidth(div_obj);
h = GetHeight(div_obj);

div_obj.style.left = x - 9 + 'px';
div_obj.style.top = y - 134 + 'px';

//div_obj.style.visibility = 'visible';


}



function fade_tip_divo(){

//document.getElementById('tip_divo').style.visibility = 'hidden'

//_fade_tip_divo_timeset = window.setTimeout("document.getElementById('tip_divo').style.visibility = 'hidden'",500);


}






//==========Get Width ofHTML element===============
function GetWidth (obj){

  var width = obj.offsetWidth;
  return width;

}



//==========Get Height of HTML element=============
function GetHeight (obj){

  var height = obj.offsetHeight;
  return height;

}


//==========Get Coords of HTML element=============

function GetX (obj){
  var x = 0;
  do{
    x += obj.offsetLeft;
    obj = obj.offsetParent;
  }
  while (obj);
  return x;
}

function GetXat (obj, elm){

  var x = 0;
  while (obj){
    x += obj.offsetLeft;
    obj = obj.offsetParent;
    }
    if (obj == elm)
    return x;
  return x - cmGetX (elm);


}


function GetY (obj){
  var y = 0;
  do{
    y += obj.offsetTop;
    obj = obj.offsetParent;
  }
  while (obj);
  return y;
}

//----------End Get Coords of HTML element---------


