	// This var REQUIRED here in common.js, as it is referenced from init() in config.js!
var FLASH = false;

function TL_resize()
{
		// Simple simple check to reset the "maxwidth" for IE browsers, if the
		// user resizes his/her browser wider than the desired maximum of 800px!!!
		// Note that I attempted to do this in css, but then I lose my liquid columns!!!
		// This is only a problem PAST 800 px!
		// The # 610 is magical --> 800 - left column - right column (190) ...
/*** Nov 20/09 - tlp - No longer as useful - newer versions of IE ...
	if (navigator.appName == "Microsoft Internet Explorer") {
		w = document.getElementById("Contents").style.width;
		if ((document.body.clientWidth > 1002) || (w > ""))	{
			w = Math.min(document.body.clientWidth - 190, 812);
		      document.getElementById("Contents").style.width = +w+"px";
		}
	}
 ***/
}

function TL_onload() {
/* Feb 21/06 - tlp - Going to use float: left in the Style Sheet to avoid doing
     this messy re-positioning!
		contents_y = document.getElementById("contents").offsetHeight;
		left_y = document.getElementById("left").offsetHeight;
		footer_y = Math.max(contents_y,left_y) + 160;  // 160 for header
		document.getElementById("footer").style.top = +footer_y+"px";
//		alert(document.getElementById("footer").style.top);
//		alert(contents_y+" Left "+left_y+" WIN "+document.body.clientHeight); 
 */
		// Load the menus!
init();
}

function TL_closeiframe() {
//alert(parent.document.getElementById("FlashFrame").style.display);
//	parent.document.getElementById("FlashFrame").style.display="none";
//	parent.document.FlashFrame.style.display="none";
//alert(top.location);
	// Don't assume that the iframe is presently visible ...
	if (parent.document.getElementById("FlashFrame")) {
		parent.document.getElementById("FlashFrame").style.display="none";
	}
		// Make the menuing system appear once again!!!
	parent.menus[0].main.style.display = "";
	parent.menus[0].shadow.style.display = "";
	parent.menus[0].iframe.style.display = "";
	parent.menus[0].siframe.style.display = "";
}

function TL_popup(url) {
	args = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes';
	NewWin = window.open(url, "Popup", args);
}

function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

