// JavaScript Document
/*//---------------------------------------------*/
/*// Name: SITENAME - Default Scripts			 */
/*// Language: JavaScript						 */
/*//---------------------------------------------*/


/*//---------------------------------------------*/
/*// Name: InitializeSite()						 */
/*// Desc: Entry Point for Onload Event			 */
/*//---------------------------------------------*/

function InitializeSite()
{
	if ( window.location.href.match( /^https:/i ) )
		siteRoot = secureSiteRoot;
}

/*//---------------------------------------------*/
/*// Name: SetHeight()							 */
/*// Desc: Sets height of main container on load */
/*//---------------------------------------------*/

function SetHeight(id)
{
	if (document.getElementById) {
		document.getElementById(id).style.height = "0px";
	} else if (document.layers) {
		document.layer['id'].style.height = "0px";
	} else if (document.all) {
		eval("document.all."+id+".style.height") = "0px";
	} else {
		return null;
	}

	var height = 0;	
	if (!height)
		height = 0;
	if (height < document.body.scrollHeight)
		height = document.body.scrollHeight;
	if (height < document.body.offsetHeight)
		height = document.body.offsetHeight;

	if (height < window.innerHeight)
		height = window.innerHeight;
	if (height < document.body.clientHeight)
		height = document.body.clientHeight;
	if (document.all) {
		eval("document.all."+id+".style.height") = height+"px";
	} else if (document.layers) {
		document.layer['id'].style.height = height+"px";
	} else if (document.getElementById) {
		document.getElementById(id).style.height = height+"px";
	} else {
		return null;
	}
}

/*//---------------------------------------------*/
/*// Declare/Define Global Variables			 */
/*//---------------------------------------------*/

var secureSiteRoot = "https://clients3.bannerview.com/~PLANNAME";