/*
(C) 2004 ryanturner.com
god.bless();
*/
function resizeIt()
{
	var page = document.getElementById('page');
	page.style.marginLeft =(document.body.offsetWidth-655)/2 + "px";
	var nav = document.getElementById('navcontainer');
	var pagePos =  FindXYWH(page);
	var navPos = FindXYWH(nav);
	//alert("PAGE:" + pagePos.x + "," + pagePos.y);
	//alert("NAV:" + navPos.x + "," + navPos.y);
	//alert(pagePos.x + pagePos.w + 10);
	//alert((document.body.offsetWidth-pagePos.w)/2);
	if (navigator.userAgent.indexOf("moz")!=-1)
	{
		//nav.style.position = 'static';
	}
	else
	{
		//nav.style.position = 'fixed';
	}
	if(pagePos.h<870)
	{
		document.getElementById('copy').style.height="600px";
	}
	nav.style.left = pagePos.x + pagePos.w -175 + "px";
	page.focus;
}

//*** This code is copyright 2002-2003 by Gavin Kistner and Refinery Inc.; www.refinery.com
//*** It is covered under the license viewable at http://phrogz.net/JS/_ReuseLicense.txt
//*** Reuse or modification is free provided you abide by the terms of that license.
//*** (Including the first two lines above in your source code satisfies the conditions.)


// Find the x,y location in pixels for a relatively positioned object
// returns an object with .x and .y properties.
function FindXY(obj){
	var x=0,y=0;
	while (obj!=null){
		x+=obj.offsetLeft-obj.scrollLeft;
		y+=obj.offsetTop-obj.scrollTop;
		obj=obj.offsetParent;
	}
	return {x:x,y:y};
}

// Find the x,y location in pixels for a relatively positioned object
// returns an object with .x, .y, .w (width) and .h (height) properties.
function FindXYWH(obj){
	var objXY = FindXY(obj);
	return objXY?{ x:objXY.x, y:objXY.y, w:obj.offsetWidth, h:obj.offsetHeight }:{ x:0, y:0, w:0, h:0 };
}