/*******************************************************************************
* Copyright (c) 2008. Fusework Studios, a Division of Rutter Communications	   *
*						Network LLC. All rights reserved.					   *
*******************************************************************************/

/*******************************************************************************
* The following lines of code layout the home page based on the client's 	   *
* browser size and settings.												   *
*******************************************************************************/

var maxWidth = 1160;
var currWidth = maxWidth;

var hcontentLeft = 0;
var hcontentTop = 0;

var leftFinder = 0;

if ((document.body.clientWidth - 4) < currWidth)
	currWidth = document.body.clientWidth - 4;
	
document.getElementById("home-content").style.width = currWidth + "px";
document.getElementById("home-content").style.top = 0;
hcontentTop = 0;
document.getElementById("home-content").style.left = Math.round((document.body.clientWidth/2)-(currWidth/2));
hcontentLeft = Math.round((document.body.clientWidth/2)-(currWidth/2));

// this event will execute in the event the window is resized
window.onresize = function()
{
	var mWidth = 1224;
	var currWidth = maxWidth;
	
	if ((document.body.clientWidth - 4) <= currWidth)
	currWidth = document.body.clientWidth - 4;
	
	document.getElementById("home-content").style.width = currWidth + "px";
	document.getElementById("home-content").style.top = 0;
	document.getElementById("home-content").style.left = Math.round((document.body.clientWidth/2)-(currWidth/2));
	
}