/*
 * 
 *
 * 
 * 
 * 
 *
 *
 * 
 */
 
 
 	var mainColNormalWidth = 686;
 	var mainColExpandedWidth = 917;
 	
 	modeMax = 4;
 
 	var clickAction = 0;
 
 	 function lefthandResize()
 	{
 		if(document.getElementById("mainLeftCol").className == 'mainLeftColExpanded')
 			{
 				document.getElementById("mainLeftCol").className = "mainLeftColCollapsed";	
 				document.getElementById("mainCol").style.width = mainColExpandedWidth + 'px';
 			}	
		else 		
 			{
 				document.getElementById("mainLeftCol").className = "mainLeftColExpanded";
 				document.getElementById("mainCol").style.width = mainColNormalWidth + 'px';
 			}	 			
 		
 	}	 
 	
 	 function changeMode(arg1)
 	{
		for(i=0; i <= modeMax; i++)
			{
				document.getElementById("mainMiddle" + i).style.display = "none";
			} 		
			
		document.getElementById("mainMiddle" + arg1).style.display = "block";
		
		// BREADCRUMB CRAP
		
		bc = new Array('','<span class="headerLight">&#187;</span> <a href="javascript: changeMode(4);">Manage Properties</a> <span class="headerLight">&#187;</span> <span class="headerLight">1234 Runnymede Road</span>','<span class="headerLight">&#187;</span> <a href="javascript: changeMode(4);">Administrative Options</a>','<span class="headerLight">&#187;</span> <span class="headerLight">Help</span>','<span class="headerLight">&#187;</span> <a href="javascript: changeMode(4);">Manage Properties</a>','five')
		changeBreadCrumb(bc[arg1]);		
 	} 	
 	
		 function Hover_Button(obj,bool)
		{
		 // This function allows a quick and easy way to hover over "buttons", or any image
		 // that has an "on" and "off" state for mouseovers.  It does require that
		 // the ID of the image be called the name of the image WITHOUT the "_on.gif" and
		 // "_off.gif" ending, and that CLASS="button".  Also, images must be GIFs.
		 //
		 // Example of caller:
		 //		<img src="../images_1/grabber_off.gif" id="grabber" class="button" 
		 //			 onmouseover="Hover_Button(this,1)"  onmouseout="Hover_Button(this,0)">
		 
		 if(bool==0)
		 	{
		 	 document.getElementById(obj.id).src="../images/" + obj.id + "_off.gif"
		 	}
		 else
		 	{
		 	 document.getElementById(obj.id).src="../images/" + obj.id + "_on.gif"
		 	}	
		} 	
		
		 function Hover_Option(obj,bool)
		{
		 
		 if(bool==0)
		 	{
		 	 obj.className = 'optionOff';
		 	}
		 else
		 	{
		 	 obj.className = 'optionOn';
		 	}	
		} 		
		
		
 		
		
		
		
		 function changeBreadCrumb(arg1)
		{
			document.getElementById("breadCrumb").innerHTML = arg1;
		}		
		
		function widgetExpandCollapse(arg1)
		{
			tempState = document.getElementById(arg1).style.display;
			if(tempState == 'none')
				document.getElementById(arg1).style.display = 'block';
			else
				document.getElementById(arg1).style.display = 'none';
		}	
		