// Image Swap
function showPic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('placeholder').src = whichpic.href; 
		re = /thumb/gi;
		document.getElementById('popuplink').href = whichpic.href.replace(re, "preview"); 
		document.getElementById('popuplink').className = whichpic.className; 
		if (whichpic.title) { 
			document.getElementById('placeholder').alt = whichpic.title; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}
// Popup
function popUp (thisURL) { 
	if (document.getElementById) { 
		width = "550";
		height = thisURL.className;
		window.open(thisURL.href, "popUp", "resizable,width="+width+",height="+height+""); 
		return false; 
	} else { 
		return true; 
	} 
}

//Make entire featured property area clickable

function clickable(){
  var featured = document.getElementById("featured");
  if(document.getElementById("featured")){
		featured.onclick = featuredredirect;
  }
}
function featuredredirect(){
	window.location="property-featured.html"; 
}
function homeredirect(){
	window.location="index.html"; 
}

window.onload = function(){
  clickable();
}

