var prevFontSize = "1";
var currFontSize = "1";
function resizeObjects () {
	var resizeWatchID = document.getElementById("resizeWatch");
	if (uaVersion != "ie6" && uaVersion != "ie7") {
		prevFontSize = currFontSize;
		currFontSize = window.getComputedStyle(resizeWatchID, "").fontSize;
		//alert("Called " + prevFontSize + " " + currFontSize);
	}
	
	/*
	// Get objects
	var pageID = document.getElementById("page");
	var leftcolumnID = document.getElementById("leftcolumn");
	var contentID = document.getElementById("content");
	var rightcolumnID = document.getElementById("rightcolumn");
	var shadowID = document.getElementById("shadow");
	
	// Set width of content to the width of page minus the left & right columns
	contentID.style.width = (pageID.clientWidth - (leftcolumnID.clientWidth + rightcolumnID.clientWidth + 6)) + "px";
	
	// Adjust height to auto for all objects (aids with size up & down)
	leftcolumnID.style.height = "auto";
	contentID.style.height = "auto";
	rightcolumnID.style.height = "auto";
	
	// Get height of objects
	var h1 = leftcolumnID.offsetHeight;
	var h2 = contentID.offsetHeight;
	var h3 = rightcolumnID.offsetHeight;
	
	// Get largest value
	var maxHeight = Math.max(h1, h2, h3) + "px";
	
	// Set all objects to maxHeight
	leftcolumnID.style.height = maxHeight;
	contentID.style.height = maxHeight;
	rightcolumnID.style.height = maxHeight;
	shadowID.style.height = maxHeight;
	
	//alert("size: " + h1 + " | " + h2 + " | " + h3);
	*/
}

//	Function: watchObject
//	Parameters: object (div), property (clientWidth), func (function to call)
//	Example:
//		var watchInterval = setInterval("watchObject('page', 'clientWidth', resizeObjects())", 100);
function watchObject (object, property, func) {
	// Create watch object
	var target = document.getElementById(object);
	
	// Watch property function
	// Call function if true
	target.watch("watchProperty", function (id, oldval, newval) {
		if (oldval != newval) {
			eval(func)();
		}
		
		return newval;
	});
	
	// Property to watch
	target.watchProperty = target[property];
}


if (!document.all) {
	//var watchInterval = setInterval("watchObject('page', 'clientWidth', 'resizeObjects')", 200);
}

