function fTemplateOnLoad() {
	fTemplateStretchBackground();
}

function fTemplateStretchBackground() {	
	var x;
	var y;

	var test1 = document.body.scrollHeight;
	var test2 = document.body.offsetHeight;


	if (test1 > test2) {
		// all but Explorer Mac
		x = document.body.scrollWidth;
		y = document.body.scrollHeight;
	} else {
		// Explorer Mac
		// would also work in Explorer 6 Strict, Mozilla and Safari
		x = document.body.offsetWidth;
		y = document.body.offsetHeight;
	}


	// stretch the left bar to the page height
	var objFloatLeftDiv = document.getElementById("divFloatLeft");

	var strTemp = objFloatLeftDiv.style.height;
	if (strTemp.substr( strTemp.length - 2, 2 ) == "px") {
		strTemp = strTemp.substr(0, strTemp.length - 2);
	}	
	var intHeight = parseInt(strTemp);
 
	objFloatLeftDiv.style.height = y + "px";

	// *** alert( "x:" + x + "\ny:" + y + "\nintHeight:" + intHeight + "\n" + objFloatLeftDiv.style.height);
};


// ********* ********* ********* ********* *********
// xGetComputedStyle, Copyright 2001-2005 Michael Foster (Cross-Browser.com)
// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL

function fTemplateGetComputedStyle(objTarget, strProperty, blnReturnInteger)	{
	var objStyle;
	var objView = document.defaultview;
	var strResult = "undefined";
	
	if (objView && objView.getComputedStyle) {
		objStyle = objView.getComputedStyle(objTarget, "");
		if (objStyle) {
			strResult = objStyle.getPropertyValue(strProperty);
		};
	} else if (objTarget.currentStyle) {
		var arrProperty = strProperty.split("-");
		strProperty = arrProperty[0];
		for (var i=1; i<arrProperty.length; i++) {
			strChar = a[i].charAt(0);
			strProperty += a[i].replace(strChar, strChar.toUpperCase());
		};
		strResult = objTarget.currentStyle(strProperty);
	} else {
		return null;
	};
	return blnReturnInteger ? (parseInt(strResult) || 0) : strResult;
};