function open_window(target,win_name,win_width,win_height) {
if (window.name == win_name) {
	window.location = target;
	return;
}
if (win_width > screen.width)   win_width = screen.width;
if (win_height > screen.height) win_height = screen.height;
var offset_left = (screen.width - win_width) / 2;
var offset_top  = (screen.height - win_height) / 2;
if (win_height > 100) {
win_height      = win_height - 100;
}
var win_cfg     = "status=1,scrollbars=1,resizable=1,width=" + win_width + ",height=" + win_height + ",left=" + offset_left + ",top=" + offset_top;
openwin         = window.open(target,win_name,win_cfg);
openwin.opener  = self; 
openwin.focus(win_name);
}
function startList() {
  if (document.all&&document.getElementById) {
    navRoot = document.getElementById("top_nav");
    for (i=0; i<navRoot.childNodes.length; i++) {
      node = navRoot.childNodes[i];
      if (node.nodeName=="LI") {
        node.onmouseover=function() {
          this.className+=" over";
        }
        node.onmouseout=function() {
          this.className=this.className.replace(" over", "");
        }
      }
    }
  }
}

function getmap(){
  document.multimap.src = 'http://www.multimap.com/clients/gif.cgi?client=wolseley&amp;width=300&amp;height=230&amp;pc=' + map_pc +'&amp;icon=justb&amp;scale=' + mapscale ;
  if(document.all) {
  	var ob = document.all['mapControl'];
  } else if(document.getElementById) {
  	var ob = document.getElementById('mapControl');
  } else {
  	var ob = document.layers['mapControl'];
  }
  ob.style.display = 'block';
}

function zoomIn(){
  if (mapscale == scales[0]) { window.alert("You are already zoomed in to the most detailed level available."); }
  else { for (n = 0; n < scales.length; n++) {
    if (scales[n] == mapscale) {n--; mapscale = scales[n]; break; }
    }
  }
}

function zoomOut(){
  if (mapscale == scales[scales.length-1]) { window.alert("You are already zoomed out to the furthest level available."); }
  else { for (n = 0; n < scales.length; n++) {
    if (scales[n] == mapscale) {n++; mapscale = scales[n]; break; }
    }
  }
}
