//****************************************************************************//
// expand, show, and hide functions are used by all tab boxes, should be the
//    same everywhere, so we should just need one copy of these functions in
//    one javascript file somewhere.
//****************************************************************************//

function expand(x)
{
if (document.getElementById(x).style.display == 'none') 
	{
	document.getElementById(x).style.display = ''
	}
else if (document.getElementById(x).style.display == '')
	{
	document.getElementById(x).style.display = 'none';
	} 
}

function show(x)
{
//alert("Calling show("+x+")");
if (document.getElementById(x).style.display == 'none') 
	{
	document.getElementById(x).style.display = ''
	return false;
	}
return false;
}

function hide(x)
{
//alert("Calling hide("+x+")");
if (document.getElementById(x).style.display == '')
	{
	document.getElementById(x).style.display = 'none';
	return false;
	} 
}

//****************************************************************************//
// Javascript functions for the blog/forum/reader pix box.
//****************************************************************************//

function show_blogs()
{
show('blogs');
hide('forums');
hide('readerpix');
}

function show_forums()
{
hide('blogs');
show('forums');
hide('readerpix');
}

function show_readerpix()
{
hide('blogs');
hide('forums');
show('readerpix');
}

//****************************************************************************//
// Javascript functions for the events promo box.
//    show_events, show_movies, and show_restaurants functions should also be 
//    the same everywhere, unless you have two tabbed event boxes on a page 
//    (which shouldn't happen).  So it looks like you should be able to just 
//    place these with the show, hide, etc. in a javascript file somewhere.
//****************************************************************************//

function show_events()
{
show('events');
//hide('movies');
hide('restaurants');
}

function show_movies()
{
hide('events');
//show('movies');
hide('restaurants');
}

function show_restaurants()
{
hide('events');
//hide('movies');
show('restaurants');
}