    //<![CDATA[

function hideMenu( name )
{

	var el = 
    document.all ? document.all[name] // IE4+
    : document.getElementById ? document.getElementById(name) // NN6</pre>
    :null;

	if ( el != null )
	{
		while (el.hasChildNodes())
    		el.removeChild(el.lastChild);
  	}

}

function showActive( name, marker )
{
	var el = 
    document.all ? document.all[name] // IE4+
    : document.getElementById ? document.getElementById(name) // NN6</pre>
    :null;

	if ( el != null )
	{
		//el.className="current"
		//el.disabled=true
		
		var text;
		var a = el.firstChild;
		var t = a.firstChild;
		text = t.data;
		el.removeChild(el.firstChild);
    	
				
		var pNode = document.createElement("P");
		pNode.className="menu";
  		el.appendChild(pNode);
		var textNode = document.createTextNode(text);
		pNode.appendChild(textNode);
		
		if ( marker )
		{
			var mark =document.createTextNode(">");
			pNode.appendChild(mark);
		}
	}	
}

function activePage( top, sub1, l1, sub2, l2 )
{
	showActive( top, false );
	if ( sub1 != "buyersMenu" )
		hideMenu( "buyersMenu" );
	if ( sub1 != "sellersMenu" )
		hideMenu( "sellersMenu" );
	if ( sub1 != "communityMenu" )
		hideMenu( "communityMenu" )
	if ( sub1 != "visitorMenu" )
		hideMenu( "visitorMenu" );
	if ( sub1 != "contactMenu" )
		hideMenu( "contactMenu" );
	
	showActive( l1, l2==null )
	
	//if ( sub1 == "communityMenu" )
	//{
	//	if ( sub2 != "mapMenu" )
	//		hideMenu( "mapMenu" );
	//	
	//	showActive( l2, true );
	//}
}

var weatherpopup = null;

function showweatherpopup() {

	if ( weatherpopup != null )
	{
		weatherpopup .close() ;
	}

	args="width=350,height=350,resizable=no,scrollbars=no,status=0";
   
   weatherpopup =window.open('weathertoday.htm','weather',args);
	if (weatherpopup != null) {
	    if (weatherpopup.opener == null)
		weatherpopup.opener = self;
	}
}
    //]]>

