<!--

ns = (document.getElementById && !document.all) ? 1:0;
ie = (document.all) ? 1:0;

//*** Preload mouseover images in menu.
img1 = new Image();
img1.src = "/pics/menu/home_on.png";
img2 = new Image();
img2.src = "/pics/menu/companyinfo_on.png";
img3 = new Image();
img3.src = "/pics/menu/availableobjects_on.png";
img4 = new Image();
img4.src = "/pics/menu/ourproperties_on.png";
img5 = new Image();
img5.src = "/pics/menu/errorreport_on.png";
img6 = new Image();
img6.src = "/pics/menu/contactus_on.png";


//*** Used by onmouseover/out in menu.
function swapImg(E)
{
  if (ns)
  {
    el = E.target;
    E.stopPropagation();
  }
  if (ie)
  {
    el = E.srcElement;
    E.cancelBubble = 1;
  }

  var old_suffix = '_off';
  var new_suffix = '_on';

  if (el.src.indexOf('_on') != -1)
  {
    old_suffix = '_on';
    new_suffix = '_off';
  }
    
  el.src = el.src.replace(old_suffix, new_suffix);
}


//*** Used by property map page to highlight a square on the map.
function property_highlight(idno)
{
  document.getElementById('property_'+idno).style.border = "1px solid black";
  document.getElementById('propertylink_'+idno).style.color = "#777777";
}


//*** Used by property map page to un-highlight a square on the map.
function property_off(idno)
{
  document.getElementById('property_'+idno).style.border = "none";
  //*** Color here should be same as in a.propertylist in primula.css.
  document.getElementById('propertylink_'+idno).style.color = "#E04959";
}


//*** Used by object and property pages to show an image full-sized.
function showPic(id)
{
  window.open('/img.php?id='+id, 'Bild', 'width=280, height=340, location=0, personalbar=0, menubar=0, toolbar=0, status=0, scrollbars=1, resizable=1');
}

//-->

