<!--
function get_findObj( oName, oFrame, oDoc ) {
	if( !oDoc ) { if( oFrame ) { oDoc = oFrame.document; } else { oDoc = window.document; } }
	if( oDoc[oName] ) { return oDoc[oName]; } if( oDoc.all && oDoc.all[oName] ) { return oDoc.all[oName]; }
	if( oDoc.getElementById && oDoc.getElementById(oName) ) { return oDoc.getElementById(oName); }
	for( var x = 0; x < oDoc.forms.length; x++ ) { if( oDoc.forms[x][oName] ) { return oDoc.forms[x][oName]; } }
	for( var x = 0; x < oDoc.anchors.length; x++ ) { if( oDoc.anchors[x].name == oName ) { return oDoc.anchors[x]; } }
	for( var x = 0; document.layers && x < oDoc.layers.length; x++ ) {
		var theOb = get_findObj( oName, null, oDoc.layers[x].document ); if( theOb ) { return theOb; } }
	if( !oFrame && window[oName] ) { return window[oName]; } if( oFrame && oFrame[oName] ) { return oFrame[oName]; }
	for( var x = 0; oFrame && oFrame.frames && x < oFrame.frames.length; x++ ) {
		var theOb = get_findObj( oName, oFrame.frames[x], oFrame.frames[x].document ); if( theOb ) { return theOb; } }
	return null;
}
function get_changeVisibility( oName, oVis, oFrame ) {
	var theDiv = get_findObj( oName, oFrame ); if( !theDiv ) { return; }
	if( theDiv.style ) { theDiv.style.visibility = oVis ? 'visible' : 'hidden'; } else { theDiv.visibility = oVis ? 'show' : 'hide'; }
}
function get_changeDisplay( oName, oDisp, oFrame ) {
	var theDiv = get_findObj( oName, oFrame ); if( !theDiv ) { return; }
	if( theDiv.style ) { theDiv = theDiv.style; } if( typeof( oDisp ) == 'string' ) { oDisp = oDisp.toLowerCase(); }
	theDiv.display = ( oDisp == 'none' ) ? 'none' : ( oDisp == 'block' ) ? 'block' : ( oDisp == 'inline' ) ? 'inline' : '';
}

function get_setLeft( leftOffset, oName, oDisp, oFrame ) {
	var theDiv = get_findObj( oName, oFrame );
	if( !theDiv )
	{
		return;
	}
	if( theDiv.style )
	{
		theDiv = theDiv.style;
	} 
	theDiv.left = leftOffset + "px";
}


function get_setupArea(oName)
{
	var theDiv = get_findObj( oName );
	if( !theDiv )
	{
			return;
	}
	if( theDiv.style )
	{
		theDiv.style.visibility = 'hidden';
		theDiv.style.display = 'none';
	}
	else
	{
		theDiv.visibility = 'hide';
		theDiv.display = 'none';
	}
	
}

function get_toggleArea(oName)
{

	var theDiv = get_findObj( oName );
	if( !theDiv )
	{
		return;
	}
	if( theDiv.style )
	{
		theDiv.style.visibility = ((theDiv.style.visibility == 'hide') || (theDiv.style.visibility == 'hidden')) ? 'visible' : 'hidden';
		theDiv.style.display = (theDiv.style.display == 'none') ? 'block' : 'none';
	}
	else
	{
		theDiv.visibility = ((theDiv.visibility == 'hide') || (theDiv.visibility == 'hidden')) ? 'show' : 'hide';
		theDiv.display = (theDiv.display == 'none') ? 'block' : 'none';
	}
	
}

function get_hide(oName)
{
	var theDiv = get_findObj( oName );
	if( !theDiv )
	{
			return;
	}
	if( theDiv.style )
	{
		theDiv.style.visibility =  'hidden';
		theDiv.style.display =  'none';
	}
	else
	{
		theDiv.visibility =  'hide';
		theDiv.display =  'none';
	}
	
}

function get_show(oName)
{
	var theDiv = get_findObj( oName );
	if( !theDiv )
	{
			return;
	}
	if( theDiv.style )
	{
		theDiv.style.visibility =  'visible';
		theDiv.style.display = 'block';
	}
	else
	{
		theDiv.visibility = 'show';
		theDiv.display = 'block';
	}
	
}

function positionDivs(mainholder)
{
	var pageWidth;
	var divOffset;
	if (window.innerWidth)
	{
		pageWidth = window.innerWidth;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
	{
		pageWidth = document.documentElement.clientWidth;
	}
	else if (document.body)
	{
		pageWidth = document.body.clientWidth;
	}
	divOffset = parseInt((pageWidth - 770) / 2);
	divOffset = (divOffset < 0)?0:divOffset;
	
	get_setLeft(divOffset, mainholder);
}

function positionHoldingDiv()
{
	positionDivs('pageholder');
}

// setup window object to reposition on load
window.onload=positionHoldingDiv;
window.onresize=positionHoldingDiv;

//-->

