	
	/**********************************************
	* diffh is for growing tables
	*/
	
	
	/**********************************************
	* 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) {
		var maketry = '';
		var div_on = '';
		var div_off = 'none';
		var TempImg='';
		try{
			//alert(area);
			for(var i in topNav) {
				div_on = 'images/menu/over/' + i + '.jpg';
				div_off = 'images/menu/' + i + '.jpg';
				//alert(i);
				if( topNav[i] == area) {
					TempImg =area;
					hardSwap(div_on,i);
				}else {
					hardSwap(div_off,i);
				}
			}
			//alert(TempImg);
		}catch(e){
			maketry = e;
			//alert(e.description);
			//alert(off);
		}
	}
	/** hardSwap(location,id)
	* Ignores TempImg catch and just swaps images
	* location = src of image to swap in
	* id = id of image
	*/	
	function hardSwap(location,id) {	
		imageTempOn = new Image();
		imageTempOn.src = location;
		document.images['' + id  + ''].src= imageTempOn.src;
	}
	
	/** hardSwap(location,id)
	* rememebrs what page you are on for navigation
	*/
	var TempImg = '';	
	function easySwap(location,id) {	
		if(id != TempImg) {
			imageTempOn = new Image();
			imageTempOn.src = location;
			document.images['' + id  + ''].src= imageTempOn.src;
		}else {
			TempImg = id;
		}
	}
	
	/*********************************************/	
	function setClassName(objId, className) {
    	document.getElementById(objId).className = className;
	}
	/*********************************************/	