function SwapTab(id)
{
	clickedTab = document.getElementById(id);
	tab1 = document.getElementById("p34");
	tab2 = document.getElementById("r");
	tab3 = document.getElementById("b");
	tab1.className = "";
	tab2.className = "";
	tab3.className = "";	
	clickedTab.className = "hl";
	if (id=="b")
	{
		invisibleForm = document.getElementById("property");
		invisibleForm.style.display = "none";
		focusedForm = document.getElementById("broker");
		focusedForm.style.display = 'block';
	}
	else
	{
		invisibleForm = document.getElementById("broker");
		invisibleForm.style.display = "none";
		focusedForm = document.getElementById("property");
		focusedForm.style.display = 'block';
	}
}

function destSwap(id)
{
	clickedTab = document.getElementById(id);
	tab1 = document.getElementById("property");
	tab2 = document.getElementById("info");
	tab3 = document.getElementById("broker");
	tab1.className = "";
	tab2.className = "";
	tab3.className = "";	
	clickedTab.className = "hl";
	if (id=="property")
	{
		invisibleFormOne = document.getElementById("brokerHolder");
		invisibleFormTwo = document.getElementById("infoHolder");
		focusedForm = document.getElementById("propertyHolder");
	}
	else if (id=="info")
	{
		invisibleFormOne = document.getElementById("brokerHolder");
		invisibleFormTwo = document.getElementById("propertyHolder");
		focusedForm = document.getElementById("infoHolder");
	}
	else
	{
		invisibleFormOne = document.getElementById("infoHolder");
		invisibleFormTwo = document.getElementById("propertyHolder");
		focusedForm = document.getElementById("brokerHolder");
	}
	invisibleFormOne.style.display = "none";
	invisibleFormTwo.style.display = "none";	
	focusedForm.style.display = 'block';	
}

function display(id)
{
clickedID = "ul" + id;
clickedSection = document.getElementById(clickedID);

	if (clickedSection.style.display == "block")
	{
		clickedSection.style.display = "none";
	}
	else 
	{
		clickedSection.style.display = "block";
	}
}


sfHoverRight = function()
		{
			var x = cssQuery("ul[id='regionSideBar']");
			var sfEls = cssQuery("li", x);
			for (var i=0; i<sfEls.length; i++)
			{
				sfEls[i].onmouseover=function() {
					this.className+=" sfhoverRight";
					hideDropDown();
				}
				sfEls[i].onmouseout=function() {
					//this.className=this.className.replace(new RegExp(" sfhoverRight\\b"), "");
					this.className="";
					showDropDown();
				}
			}
		}

if (window.attachEvent) window.attachEvent("onload", sfHoverRight);