	
	var sideState = -1;
	
	function setSidebarSession(sideURL)
	{
		//make call to server to set session state of sidebar
		xmlHttp=GetXMLHttpObject(handleHttpReturn_sidebar)
		xmlHttp.open("GET",sideURL, true)
		xmlHttp.send(null)
		

	}


	
	// Function to Show/Hide Sidebar
	function showHideSideBar(theMode)
	{
	
		
		var elem = document.getElementById("site-sidebar");
		var image = document.getElementById("site-sidebar-arrowID");
		var elemAjax = document.getElementById("site-sidebar-ajax-pane");
		
		var bodyDivElem = document.getElementById("site-pagecontent");
		
		
		if(theMode == 1 || (theMode == -1 && elem.style.display == "none"))
		{	
			elem.style.display = "inline";
			
			image.src = "/images/side/left_arrow.gif";
			
			
			elemAjax.style.width = '15px';
			elemAjax.style.height = '400px';
			elemAjax.style.paddingLeft = '0px';
			
			bodyDivElem.style.width = '535px';
			bodyDivElem.style.paddingLeft = '5px';
			
			sideState = 0;
			
		}
			
		else
		{
			
			elem.style.display = 'none';
			image.src = "/images/side/right_arrow.gif";
		
			
			elemAjax.style.width = '15px';
			elemAjax.style.height = '400px';
			elemAjax.style.paddingLeft = '0px';
			
			bodyDivElem.style.width = '737px';
			bodyDivElem.style.paddingLeft = '5px';
			sideState = 1;			

			
		}
		
		return true;
	}
	
	
	
	
	function handleHttpReturn_sidebar()
	{
	
		if(xmlHttp.readyState == 4 || xmlHttp.readyState == "complete")
		{
			
			if(xmlHttp.responseText == 'no')
			{
				showHideSideBar(0);
				
			}
			else if(xmlHttp.responseText == 'yes')
			{
				showHideSideBar(1);	
				
			
			}
		}
		
		return;
	}