function send() {
	var t = window.open("tools/sendToFriend.php?sourceUrl=" + escape(window.location), "STF", "width=370, height=380, scrollbars=no");
} // <end> send()
function displayNewsletter(ID) {
	var t = window.open("index.php?action=displayNewsletter&ID=" + ID, "NL", "width=685, height=700, scrollbars=yes");
} // <end> send()
function toggleContent(layerName, titleText) {
	var allLayers = Array("awards", "expertOn", "personalInfo");
	for(var i=0;i<allLayers.length;i++) {
		document.getElementById(allLayers[i]).style.display = "none";
	}
	document.getElementById(layerName).style.display = "block";
	document.getElementById("contentTitle").innerHTML = titleText;
}
function showImage(path, containerID) {
	document.getElementById(containerID).src = "UserFiles/Image/estate/" + path;
	return false;
}
function showMap(lat, lon) {
	var t = window.open("index.php?action=showMap&lat=" + lat + "&lon=" + lon, "STF", "width=500, height=330, scrollbars=no");
}

var slideShowCounter = 0;
var slideShowRunner = true;
var imageContainerID;
function slideShow(stopStart, icID) {
	imageContainerID = icID;
	slideShowRunner = stopStart;
	if (slideShowRunner == true) {
		var igi = document.getElementById("imageGalleryIterator_" + imageContainerID).getElementsByTagName("a");
		cImage = igi[slideShowCounter].getAttribute("href")
		document.getElementById(imageContainerID).src = "UserFiles/Image/estate/" + cImage;
		slideShowCounter++;
		if (slideShowCounter > (igi.length-1)) slideShowCounter=0
		t = setTimeout('slideShow(slideShowRunner, imageContainerID)', 3000)
	}
}