<!--

//	Adapted from
//	Content-swapping using the DOM
//	Dave Shuck, www.daveshuck.com
//	19 October 2006

function selectLink(element) {
       document.getElementById("link1").className="";
       document.getElementById("link2").className="";
       document.getElementById("link3").className="";
       document.getElementById("link4").className="";
       document.getElementById("link5").className="";
       document.getElementById("link6").className="";
       document.getElementById("link7").className="";
       document.getElementById("link8").className="";
       element.className = "selected";
}



// this function hides the content by assigning a very low z-index
function hideElement(elementId){
	var obj = document.getElementById(elementId);
	document.getElementById(elementId).style.display="none";
}

// this function sends any child objects back into the 'hold' div
function writeContent(swap,container,holder){
	// define the containers
	// this is the display container
	var contentContainer = document.getElementById(container);
	document.getElementById(container).style.display="block";
	// this is a repository for divs not currently in the display
	var contentHolding = document.getElementById(holder);
	// send any children objects currently in the display to the holding div
	while(contentContainer.firstChild) {contentHolding.appendChild(contentContainer.firstChild);}
	// this is the active content
	var contentObject = document.getElementById(swap);
	// put the active content in the display div
	contentContainer.appendChild(contentObject);
}

// this function reloads the page in order to reset to the initial state
function reloadPage(){window.location.reload()}



// creating variables for image elements to be swapped dynamically

var mixedimg = new Image();
mixedimg.src = "/images/uploads/plan_mixeduse.jpg";

// Function to "activate" images.
function imgAct() {

    var unit = document.getElementById("planimg");
    unit.src = "/images/uploads/plan_mixeduse.jpg";

}

// Function to "deactivate" images.
function imgInact() {

    var unit = document.getElementById("planimg");
    unit.src = "/images/uploads/plan_landing.jpg";

}



// -->