
//window.onload = function() {
 //   hs.preloadImages();
//}
function ZoomIn() {
		map.setCenter(null, 13, G_SATELLITE_MAP) 
}
function ZoomOut() {
		map.setCenter(new GLatLng(53.435719,-2.109375), 6, G_NORMAL_MAP) 
		map.closeInfoWindow();
}
function createMarkerUK(point, postcode, photo,location,countyurl,county,price,id) {  
		
		var html=	'<table class="maptbl">' +
					'<tr>' +
					'<td><a href="'+id+'"><img src="'+photo+'" width="120px" height="90px" border="0" /></a>' +
					'<br />' +
					'</td>' +
					'<td><b>'+price+'</b><br />'+location+'<br />'+county+'<br />'+postcode+'<br />' +
					'<a class="info" href="'+id+'">View&nbsp;Details</a><br />' +
					'<a class="zoomin" href="'+countyurl+'">Zoom In</a></td>' +
					'</tr></table>'
		var marker = new GMarker(point,icon);  
		GEvent.addListener(marker, "click", function() {   
		marker.openInfoWindowHtml(html);
		});  
		return marker;
	}
function createMarkerCounty(point, postcode, photo,location,locationurl,county,price,key,id,propertytype,bedrooms) {  
		
		var html=	'<table class="maptbl">' +
					'<tr>' +
					'<td><a href="'+id+'"><img src="'+photo+'" width="120px" height="90px" border="0" /></a></td>' +
					'<td><b>'+price+'</b><br />'+bedrooms+' bedroom '+propertytype+'<br />'+location+'<br />' +
					'<a class="arrow" href="'+id+'">View&nbsp;Details</a><br />' +
					'</tr></table>'
					//'<a class="zoomin" href="'+locationurl+'">Zoom In</a><br />' +
					//'<a class="zoomout" href="index.asp">Zoom Out</a></td>'
					
		icon = new GIcon(baseIcon);
		icon.image = '/img/icon'+propertytype+'.png';
		var marker = new GMarker(point,icon);  
		GEvent.addListener(marker, "click", function() {   
		marker.openInfoWindowHtml(html);
		});  
		return marker;
	}
function createMarkerLocation(point, postcode, photo,location,countyurl,county,price,key,id,propertytype,bedrooms) {  
		
		var html=	'<table class="maptbl">' +
					'<tr>' +
					'<td><a href="'+id+'"><img src="'+photo+'" width="120px" height="90px" border="0" /></a></td>' +
					'<td><b>'+price+'</b><br />'+bedrooms+' bedroom '+propertytype+'<br />'+location+'<br />' +
					'<a class="arrow" href="'+id+'">View&nbsp;Details</a><br />' +
					'</tr></table>'
					//'<a class="zoomin" href="'+id+'">Zoom In</a><br />' +
					//'<a class="zoomout" href="'+countyurl+'">Zoom Out</a></td>' +
		icon = new GIcon(baseIcon);
		icon.image = '/img/icon'+propertytype+'.png';
		var marker = new GMarker(point,icon);  
		GEvent.addListener(marker, "click", function() {   
		marker.openInfoWindowHtml(html);
		});  
		return marker;
	}
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

function addUnLoadEvent(func) {
	var oldonunload = window.onunload;
	if (typeof window.onunload != 'function') {
	  window.onunload = func;
	} else {
	  window.onunload = function() {
	    oldonunload();
	    func();
	  }
	}
}var lastID = 0;
function SelectImg(id) {
if (lastID > 0) {
document.getElementById(lastID).className = "thumbNormal";
}
document.getElementById(id).className = "thumbSelected";
document.getElementById(0).src = document.getElementById(id).src;
lastID = id;
}
function LoadTrigger() {
SelectImg(1);
}

function OverImg(id) {
	document.getElementById(id).className = "thumbSelected";
}

function OutImg(id) {
	document.getElementById(id).className = "thumbNormal";
}



