// Placing Copyright Statement //
// Version V1.0.0, 03/06/2007 WBM. //
// Copyright Design Atom 2007, www.designatom.com//

// Insert Transparent images to bend the text
function fctCopyright() {
	// Calculate the location for the Copyright Statement. This needs to be below the 
	// left, middle and right content areas (div)
	
	// Retrieve the height and top of the left side div
	var LeftHeight = document.getElementById("contentleft").offsetHeight;
	var LeftTop = document.getElementById("contentleft").offsetTop;
	
	// Retrieve the height and top of the middle content div
	var MainHeight = document.getElementById("contentmain").offsetHeight;
	var MainTop = document.getElementById("contentmain").offsetTop;
	
	// Retrieve the height and top of the right side div 
	// Use the region containing the text
	// var RightHeight = document.getElementById("contentright").offsetHeight;
	// var RightTop = document.getElementById("contentright").offsetTop;
	
	// Create an array with the lower edge positions and retrieve the largest
	// arrLowerEdge = new Array((LeftHeight+LeftTop),(MainHeight+MainTop),(RightHeight+RightTop));
	arrLowerEdge = new Array((LeftHeight+LeftTop),(MainHeight+MainTop));
	function sortNumbers(a,b) {return b - a} 
	arrLowerEdge.sort(sortNumbers)
	
	// Place the copyright statement and make it visible
	document.all.copyright.style.top = arrLowerEdge[0] + MainTop + 20;
	document.all.copyright.style.visibility = "visible";
}
