function setContent(contNum)
{
	contDiv = document.getElementById('contentDiv');

	divs = contDiv.getElementsByTagName('div');

	for (i = 0; i < divs.length; ++i)
	{
		divs[i].style.display = 'none';
	}
	document.getElementById('item' + contNum).style.display = "block";

}

function openWindow(url) {
  var leftValue = (screen.width - 750) / 2;
  var topValue = (screen.height - 500) / 2;
  var newWindow = window.open(url, "", "toolbar=0, scrollbars=1, resizable=0, width=750, height=500, left=" + leftValue + ", top=" + topValue + "");
}

function preview(url, width, height) {
  var leftValue = (screen.width - width) / 2;
  var topValue = (screen.height - height) / 2;
  var newWindow = window.open(url, "", "toolbar=0, scrollbars=0, resizable=0, width=" + width + ", height=" + height + ", left=" + leftValue + ", top=" + topValue + "");
}

function findUsOver(text) {
  document.getElementById('findUsText').style.visibility = 'visible';
  document.getElementById('findUsText').innerHTML = text;
}