// JavaScript Document

function printPage()
{
	openWindow("basslakeprint", 850, 600, window.location.href + "?print=true");

}

function openWindow(argName, argWidth, argHeight, argUrl)
{
    var owtop = ((window.screen.availHeight - argHeight) / 2);
    var owleft = ((window.screen.availWidth - argWidth) / 2);
	
    window.open(argUrl, argName, "width=" + argWidth + ",height=" + argHeight + ",left=" + owleft + ",top=" + owtop + ",scrollbars=yes,resizable=yes,menubar=yes");
}

window.onload = function()
{
	if (window.location.href.indexOf("print=true") != -1)
	{
		awmHideMenu("MainMenu");
		
		var mainTableObj = document.getElementById("mainTable");
		var leftTableObj = document.getElementById("leftTable");
		var printLinkObj = document.getElementById("printLink");
		var basslakeLogoObj = document.getElementById("basslake_logo");



		if (mainTableObj != null)
		{
			mainTableObj.style.width = "580px";
		}
		if (leftTableObj != null)
		{
			leftTableObj.innerHTML = "";
			//leftTableObj.style.visibility = "hidden";
			leftTableObj.style.width = "0px";
		}
		
		if (printLinkObj != null)
		{
			printLinkObj.style.display = "none";
		}
		
		if (basslakeLogoObj != null)
		{
			basslakeLogoObj.style.display = "none";
		}
		
		var linkObjects = document.getElementsByTagName("A");
		
		for (i = 0; i < linkObjects.length; i++)
		{
			//linkObjects[i].href = linkObjects[i].href + "?print=true";
		}
		
		window.print();
	}
	else
	{
		
	}
	//alert("moo");
	
}

