//preload top nav buttons
what_you_need=new Image();
what_you_need.src="/wedding/nav/what_you_need_over.gif";
register=new Image();
register.src="/wedding/nav/register_over.gif";
event_calendar=new Image();
event_calendar.src="/wedding/nav/event_calendar_over.gif";
//fall_bridal=new Image();
//fall_bridal.src="/wedding/nav/fall_bridal_over.gif";
contact=new Image();
contact.src="/wedding/nav/contact_over.gif";
about=new Image();
about.src="/wedding/nav/about_over.gif";
added=new Image();
added.src="/wedding/nav/added_over.gif";
search=new Image();
search.src="/wedding/nav/search_over.gif";


function displayCats(divNum)
{
	if (getIdProperty("cats" + divNum, "display") == "none" ||
			getIdProperty("cats" + divNum, "display") == null)
	{
		setIdProperty("cats" + divNum, "display", "block");
	}
	else
	{
		setIdProperty("cats" + divNum, "display", "none");
	}
}

function showRegions()
{
	if (getIdProperty("regionBox", "display") == "none" ||
			getIdProperty("regionBox", "display") == null)
	{
		setIdProperty("regionBox", "display", "block");
	}
	else
	{
		setIdProperty("regionBox", "display", "none");
	}
}

//-----------------------------------------------

function getIdProperty( id, property )
{
	var styleObject = document.getElementById( id );
	if (styleObject != null)
	{
	    styleObject = styleObject.style;
	    if (styleObject[property])
	    {
	        return styleObject[ property ];
	    }
	}
}

function setIdProperty( id, property, value )
{
	var styleObject = document.getElementById( id );
	if (styleObject != null)
	{
	    styleObject = styleObject.style;
	    styleObject[ property ] = value;
	}
}

