	//alert(indextable.clientWidth);

function setupPage() {	

	var pWidth=DaytonWeb.clientWidth;

	var PageWidth=DaytonWeb.clientWidth;



	var SpecialsHeight=specials.clientHeight;



	var hciHeight = headercompanyinfo.clientHeight;

	

	// Get Center Point of Page. This is used for centering images on the page

	var CenterPnt = PageWidth/2;

	

	// Get Logo mesasurements

	//var LogoWidth=daytonlogoimage.width;

	//var LogoCntr=LogoWidth/2;

	//var LogoLeft=(CenterPnt-LogoCntr);

	

	// Get Footer mesasurements

	var FooterImageWidth = FooterImage.width;

	var FooterCopyRightWidth = FooterCopyRight.width;

	var FooterCopyRightCntr = FooterCopyRightWidth/2;

	var FooterImageCntr = FooterImageWidth/2;

	var FooterImageleft = CenterPnt - FooterImageCntr;

	var FooterCopyRightLeft = CenterPnt - FooterCopyRightCntr;

	

	// Setup the Header section

	header.style.width=0;

	header.style.width=PageWidth;

	//daytonlogo.style.width=LogoWidth;

	//daytonlogo.style.left=LogoLeft;

	specials.width=PageWidth;

	specials.height=SpecialsHeight;



	// Setup the main part of the page

	maindoc.style.width=0;

	indextable.style.width=0;

	indextable.style.width=header.clientWidth;

	//alert(content.clientWidth);

	nav.style.width="10%";

	maindoc.style.width=content.clientWidth*.90;



	// Setup the Footer

	footer.style.width=0;

	footer.style.width=PageWidth;

	FooterImage.style.left = FooterImageleft;

	FooterCopyRight.style.width = 0;

	FooterCopyRight.style.width = FooterImageWidth;

}



function doResize() {

	setupPage();

}



setupPage();


