var macc = function () {
	//private members
	var $ = function (id) {
		return document.getElementById(id);
	};
	var east, west, north, south, center;
		
	var applyStyles = function (node, styles) {
		for (var x in styles) {
			node.style[x] = styles[x];
		}
	};
	
	//public interface
	return {
		init : function () {
			east = $('east');
			west = $('west');
			north = $('north');
			south = $('south');
			center = $('center');
		},
		hideEast : function () {
			applyStyles($('searchbox'), {display: 'none'});
			applyStyles($('secondnav'), {display: 'none'});
			applyStyles($('sheast'), {display: 'block'});
			applyStyles($('hieast'), {display: 'none'});
			applyStyles(east, {width: '7px', borderWidth: '0px'});
			applyStyles(center, {width: '645px'});
		},
		showEast : function () {
			applyStyles($('searchbox'), {display: 'block'});
			applyStyles($('secondnav'), {display: 'block'});
			applyStyles($('sheast'), {display: 'none'});
			applyStyles($('hieast'), {display: 'block'});
			applyStyles(east, {width: '160px', borderWidth: '1px'});
			applyStyles(center, {width: '490px'});
		}
	}
}();
window.onload = function () {
	macc.init();
};