/* Enables top 10 nav mouseover effect for IE 6 */
function initTop10Nav()
{
	if (navigator.userAgent.indexOf("MSIE 6") != -1) {

		var nav = document.getElementById("top10Nav");
		if (nav)
		{
			var nodes = nav.getElementsByTagName("td");
			for (var i = 0; i < nodes.length; i++)
			{		
				nodes[i].onmouseover = function () 
				{
					if (this.className == "one") 
					{
						this.style.backgroundColor = "#E5E5BA";
						this.style.color = "#555";		
						this.nextSibling.style.backgroundColor = "#ffc";
						if (this.nextSibling.nextSibling)
							this.nextSibling.nextSibling.style.backgroundColor = "#ffc";
					}
					else if (this.className == "two")
					{
						this.previousSibling.style.backgroundColor = "#E5E5BA";
						this.previousSibling.style.color = "#555";		
						this.style.backgroundColor = "#ffc";
						if (this.nextSibling)
							this.nextSibling.style.backgroundColor = "#ffc";
					}
					else if (this.className == "three")
					{
						this.previousSibling.previousSibling.style.backgroundColor = "#E5E5BA";
						this.previousSibling.previousSibling.style.color = "#555";		
						this.previousSibling.style.backgroundColor = "#ffc";
						this.style.backgroundColor = "#ffc";
					}
				}
	
				nodes[i].onmouseout = function ()
				{
					if (this.className == "one") 
					{
						this.style.backgroundColor = "#7c7c7c";
						this.style.color = "#CBCBCB";		
						this.nextSibling.style.backgroundColor = "#dadada";
						if (this.nextSibling.nextSibling)
							this.nextSibling.nextSibling.style.backgroundColor = "#dadada";
					}
					else if (this.className == "two")
					{
						this.previousSibling.style.backgroundColor = "#7c7c7c";
						this.previousSibling.style.color = "#CBCBCB";
						this.style.backgroundColor = "#dadada";
						if (this.nextSibling)
							this.nextSibling.style.backgroundColor = "#dadada";
					}
					else if (this.className == "three")
					{
						this.previousSibling.previousSibling.style.backgroundColor = "#7c7c7c";
						this.previousSibling.previousSibling.style.color = "#CBCBCB";							
						this.previousSibling.style.backgroundColor = "#dadada";
						this.style.backgroundColor = "#dadada";
					}
				}
			}
		}
	}
}	   
  
function shareButton(u) {
	var dest = u.replace("URL",escape(window.location.href));
	window.open(dest);
}


/*
function stateTabSwitch(obj) {
	if (obj.parentNode.id == "tab-data") {
		document.getElementById("tab-data").className = "active first";
		document.getElementById("tab-realtor").className = "realtor";			
		document.getElementById("data-tables").style.display = "block";
		document.getElementById("realtor-content").style.display = "none";					
	} else if (obj.parentNode.id == "tab-realtor") {
		document.getElementById("tab-data").className = "first";
		document.getElementById("tab-realtor").className = "realtorActive";
		document.getElementById("data-tables").style.display = "none";		
		document.getElementById("realtor-content").style.display = "block";					
	}
} 
*/




/* addEvent() from bluemodule.js */
addEvent(window, "load", initTop10Nav, false);