	/**********************************************
	* diffh is for growing tables
	*/
	function resizeOuter(id,h,diffh,mode) {
		mainArea = getEl(id); // switch between parent and iframe
		//alert(mainArea);
		iframePos = 0; // position of iframe relative to the standard 0/0 left/top position
		relHeight =  147 + 85; // relative height of iframe compared to page (323 is the header height and 91 is the footer height)
		
		if(h) {
			c = getEl('content');
			c.style.height = Math.abs(parseInt(h));
			mainArea.style.height = Math.abs(parseInt(h) + iframePos);
			if(!is.ie) {
				b = getEl('btag');
				b.style.height = Math.abs(parseInt(h) + (relHeight + iframePos));
			}
			
		}else {
			if(is.ie) {
				h = mainArea.scrollHeight;
				btagH = parseInt(parent.document.body.clientHeight) - (relHeight + iframePos); // difference of top and bottom (91px + 323px - 165) // seee index.php for these values
			}else {
				h = mainArea.offsetHeight;
				//btagH = parseInt(parent.getEl('btag').offsetHeight);
				
				/** FIX MOZILLA - Bug: PAGE extends past BODY and BODY does not resize to fit entire PAGE **/
				btagH = parseInt(parent.document.body.clientHeight); // window height to fix the mozilla height bug
				//if(windowH > btagH) {
				//	btagH = windowH;
				//}
				// END FIX
				
				btagH = btagH - (relHeight + iframePos); // difference of top and bottom (91px + 323px - 165) // seee index.php for these values
			}
			
			/** ****
			*	FIX Unused space Bug : Large window is resized by user to a smaller window, the page should take back the extended space if it can 
			*		1. use js var "contentH" (content iframe height) and compare it to "h"
			* *****/
			//if(windowH > btagH) {
			//	btagH = windowH;
			//}
			
			
			if(parseInt(h) < btagH) { 
				h = btagH;
			}
			parent.resizeOuter(id,h);
		}
	}
	
	/**********************************************
	* Switch the named classes for different background images ect.
	*	This function is called from the iframe.php to control the index.php environment based on area
	*	(area,cmd)
	*		area:	the php querystring $_GET['area']
	*		cmd: 	any extra commands for future implementation
	*/
	function changeEnvironment(area) {

		for(var i = 0; i < menuAr.length; i++) {
			on = 'images/menu/over/' + menuAr[i] + '.jpg';
			off = 'images/menu/' + menuAr[i] + '.jpg';
			
			if(menuAr[i] == area) {
				TempImg =area;
				hardSwap(on,menuAr[i]);
			}else {
				hardSwap(off,menuAr[i]);
			}
		}
	}