
/*******************************************************

home.js
This js contains code to be on the homepage main.jsp

********************************************************/


	/* called at end of page load, hides the sales and makes the actions area wider */
	function homeLoadNoSales(){
		document.getElementById('salesTd').style.display = 'none';
		document.getElementById('salesTd').nextSibling.style.display = 'none';
		document.getElementById('homeText').width = "405";
		var homeTextSpace = document.getElementById('homeText').children(0);
		while(homeTextSpace.tagName != 'TD'){
			homeTextSpace = homeTextSpace.children(0);
		}
		homeTextSpace.style.width = "0px";
		document.getElementById('actionsTd').width = "660";
		var buttonsTbl = document.getElementById('buttonsTable');

		for(var b=0; b<buttonsTbl.rows(0).cells.length; b++){
			buttonsTbl.rows(0).cells(b).style.width = '125px'
		}
	}
