function getElement(elementName) {
	// thanks to http://www.netlobo.com/div_hiding.html
	if (window.document.getElementById) {
		// this is the way the standards work
		thiselement = window.document.getElementById(elementName);
		return true;
	} else if (window.document.all) {
		// this is the way old msie versions work
		thiselement = window.document.all[elementName];
		return true;
	} else if (window.document.layers) {
		// this is the way nn4 works
		thiselement = window.document.layers[elementName];
		return true;
	}
		return false;
}
//
function checkDivHeight() {
	// make sure that the footer lines up with the 6px high repeating image
	// the repeating background image MUST be vertically aligned from the top for this to work
	if (getElement('FooterWrapper')) {
		thisDivHeight = document.body.scrollHeight;
    heightDifference = (11-(thisDivHeight%6));
    thiselement.style.paddingBottom = heightDifference+'px';
  }
}