function popwin(url, width, height){
	var attributes = "width=" + width + ",height=" + height + ",resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=no";
	newwindow=window.open(url,'newwin',attributes);
	if (window.focus) {newwindow.focus()}
	return false;
}


function changeClass(id) 
{
	
	// first clear all existing styles
	document.getElementById('overview').className = "";
	document.getElementById('history').className = "";
	document.getElementById('services').className = "";
	document.getElementById('safety').className = "";
	
	// highlight the active link
	document.getElementById(id).className = "active";
	
	
	// hide all the copy blocks
	document.getElementById('overview_copy').style.display = "none";
	document.getElementById('history_copy').style.display = "none";
	document.getElementById('services_copy').style.display = "none";
	document.getElementById('safety_copy').style.display = "none";
	
	// show the selected copy block
	selectedCopy = document.getElementById(id + "_copy");
	selectedCopy.style.display = "block";
}

function enlargeImage(imgName) 
{
	
	newImage = new Image();
	newImage.src = "../images/portfolio/" + imgName;
	
	document.getElementById('popMainImage').src = newImage.src;
}