/* ======================================================================
Take A Look Around | BUT NO PART OF THIS CODE IS TO BE USED WITHOUT PERMISSION
====================================================================== */

/* Popup Window */
function myOpenWindow(winURL, winName, winFeatures, winObj)
	{
	var theWin;
	if (winObj != null)
		{
		if (!winObj.closed) 
			{
			winObj.focus();
			return winObj;
			}
		}
	theWin = window.open(winURL, winName, winFeatures);
	return theWin;
	}

var mkdWin = null;


/* Disclaimer Block */
function disclaimerView(title,str,align) 
	{
	document.write('<div id="disclaimer" style="font-size:100%;padding-top:2px;padding-bottom:2px;text-align:' + align + ';"><strong>' + title + '</strong>' + str + '</div>'); 
	}


/* Gather the user agent */
var user_agent = navigator.userAgent.toLowerCase();


/* Printing */
function printIt()
	{
	if (window.print) 
		{
		setTimeout('window.print();',200);
		}
	else if (user_agent.indexOf("mac") != -1) 
		{
		alert("Press 'Cmd+p' on your keyboard to print.");
		}
	else 
		{
		alert("Press 'Ctrl+p' on your keyboard to print.")
		}
	}


/* Show/Hide a div layer */
function show(layer_id)
	{ 
	document.getElementById(layer_id).style.display = 'block'; 
	}
 function hide(layer)
	{
	document.getElementById(layer_id).style.display = 'none'; 
	}