// JavaScript Document

	function borderAdjust() {
	/* Adjust positioning of border, to cater for extra large body layer */


		var bgBottom, bgLeft, bgLeftImg, bgRightImg;
		var bodyHolder, mnuBoxMidLeft;
		var newTop


		//Set up all the relevant objects
		bgBottom = document.getElementById("bgBottom");
		bodyHolder = document.getElementById("bodyHolder");
		bgLeft = document.getElementById("bgLeft");
		bgLeftImg = document.getElementById("bgLeftImg");
		bgRightImg = document.getElementById("bgRightImg");
		mnuBoxMidLeft = document.getElementById("mnuBoxMidLeft");
		//alert(bgBottom.style.top);
	
		//Grab the top and height properties of bodyHolder as a number
		//alert("bodyHolder's Top: " + bodyHolder.style.top);
		newTop = parseInt(bodyHolder.style.top.slice(0, -2), 10)
		newHeight = parseInt(bodyHolder.style.height.slice(0, -2), 10);
		message = "newTop: " + newTop + " " + "newHeight: "  + newHeight;
		//alert(message);
		//set the top of bgBottom the top + height and append px for accruacy.
		bgBottom.style.top = newTop + newHeight + 'px';
		//alert(bgBottom.style.top);
		
		
		bgLeft.style.height = newTop + newHeight + 'px';
		bgLeftImg.style.height = bgLeft.style.height;
		bgRightImg.style.height = bgLeft.style.height;
		
		newTop = parseInt(bodyHolder.style.top.slice(0, -2), 10)

		bgBottomTop = parseInt(bgBottom.style.top.slice(0, -2), 10);
		mnuBoxMidLeftTop = parseInt(mnuBoxMidLeft.style.top.slice(0, -2), 10);
		mnuBoxMidLeft.style.height = bgBottomTop - mnuBoxMidLeftTop - 4 + "px";
		
	}
