// Parsing Script
function parseSearchString()
{
        var pairs=unescape(location.search.substring(1).replace(/\+/g," ")).split('&');
        for (var i=0;i<pairs.length;i++){
                var pair = pairs[i].split('=');
                this[pair[0]]=pair[1];
        }
}
var search = new parseSearchString();

for (o in search) 

var menu = (search[o]);

if (menu == "aboutapao") { 
		showStartTable();
		showAboutAPAOSelect();
		showMeetingsCollapsed();		
		showCommitteesCollapsed();		
		showActivitiesCollapsed();		
		showMemberDirCollapsed();		
		showNewsCollapsed();		
  		showCloseTable(); 
}

else if (menu == "meetings") {
		showStartTable();
		showAboutAPAOCollapsed();		
		showMeetingsSelect();
		showCommitteesCollapsed();		
		showActivitiesCollapsed();		
		showMemberDirCollapsed();
		showNewsCollapsed();				
  		showCloseTable();  
}

else if (menu == "committees") {
		showStartTable();
		showAboutAPAOCollapsed();		
		showMeetingsCollapsed();		
		showCommitteesSelect();
		showActivitiesCollapsed();		
		showMemberDirCollapsed();		
		showNewsCollapsed();		
  		showCloseTable();  
}
else if (menu == "activities") {
		showStartTable();
		showAboutAPAOCollapsed();		
		showMeetingsCollapsed();		
		showCommitteesCollapsed();		
		showActivitiesSelect();
		showMemberDirCollapsed();		
		showNewsCollapsed();		
  		showCloseTable();  
}
else if (menu == "memberdir") {
		showStartTable();
		showAboutAPAOCollapsed();		
		showMeetingsCollapsed();		
		showCommitteesCollapsed();		
		showActivitiesCollapsed();		
		showMemberDirSelect();
		showNewsCollapsed();		
  		showCloseTable();  
}
else if (menu == "news") {
		showStartTable();
		showAboutAPAOCollapsed();
		showMeetingsCollapsed();
		showCommitteesCollapsed();
		showActivitiesCollapsed();
		showMemberDirCollapsed();
		showNewsSelect();
  		showCloseTable();
}

else {
		showStartTable();
		showAboutAPAOCollapsed();
		showMeetingsCollapsed();
		showCommitteesCollapsed();
		showActivitiesCollapsed();
		showMemberDirCollapsed();
		showNewsCollapsed();
  		showCloseTable();
}



//*********************************************************************************
//*                                                                               *
//* BEGIN TABLE FUNCTION                                                          *
//*                                                                               *
//*********************************************************************************

function showStartTable() {
		document.write ('<TABLE WIDTH="210" BORDER="0" CELLPADDING="0" CELLSPACING="0">');
}

function showCloseTable() {
		document.write ('</TABLE>');
}

//*********************************************************************************
//*                                                                               *
//* BEGIN ABOUT APAO FUNCTION                                                     *
//*                                                                               *
//*********************************************************************************

function showAboutAPAOCollapsed() {
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/1x1pixel.gif" WIDTH="43" HEIGHT="28" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" class="mainmenu"><a href="aboutAPAO.html?menu=aboutapao">About APAO</a></TD>');		
		document.write ('		<TD width="24"><IMG SRC="images/1x1pixel.gif" WIDTH="24" HEIGHT="28" ALT=""></TD>');		
		document.write ('	</TR>');
}

function showAboutAPAOSelect() {
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/menuHighlight.gif" WIDTH="43" HEIGHT="28" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" bgcolor="#ffffff" class="mainmenu">About APAO</TD>');		
		document.write ('		<TD width="24" bgcolor="#ffffff"><IMG SRC="images/downArrow.gif" WIDTH="24" HEIGHT="28" ALT=""></TD>');		
		document.write ('	</TR>');
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/1x1pixel.gif" WIDTH="43" HEIGHT="20" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" class="submenu"><a href="mission.html?menu=aboutapao">Mission Statement</a></TD>');		
		document.write ('		<TD width="24"><IMG SRC="images/1x1pixel.gif" WIDTH="24" HEIGHT="20" ALT=""></TD>');		
		document.write ('	</TR>');
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/1x1pixel.gif" WIDTH="43" HEIGHT="20" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" class="submenu"><a href="officers.html?menu=aboutapao">Officers</a></TD>');		
		document.write ('		<TD width="24"><IMG SRC="images/1x1pixel.gif" WIDTH="24" HEIGHT="20" ALT=""></TD>');		
		document.write ('	</TR>');		
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/1x1pixel.gif" WIDTH="43" HEIGHT="20" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" class="submenu"><a href="council.html?menu=aboutapao">Council Members</a></TD>');		
		document.write ('		<TD width="24"><IMG SRC="images/1x1pixel.gif" WIDTH="24" HEIGHT="20" ALT=""></TD>');		
		document.write ('	</TR>');		
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/1x1pixel.gif" WIDTH="43" HEIGHT="20" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" class="submenu"><a href="bylaws.html?menu=aboutapao">Bylaws</a></TD>');		
		document.write ('		<TD width="24"><IMG SRC="images/1x1pixel.gif" WIDTH="24" HEIGHT="20" ALT=""></TD>');		
		document.write ('	</TR>');
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/1x1pixel.gif" WIDTH="43" HEIGHT="20" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" class="submenu"><a href="constitution.html?menu=aboutapao">Constitution</a></TD>');		
		document.write ('		<TD width="24"><IMG SRC="images/1x1pixel.gif" WIDTH="24" HEIGHT="20" ALT=""></TD>');		
		document.write ('	</TR>');		
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/1x1pixel.gif" WIDTH="43" HEIGHT="20" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" class="submenu"><a href="structure.html?menu=aboutapao">Structure</a></TD>');		
		document.write ('		<TD width="24"><IMG SRC="images/1x1pixel.gif" WIDTH="24" HEIGHT="20" ALT=""></TD>');		
		document.write ('	</TR>');
}


//*********************************************************************************
//*                                                                               *
//* BEGIN MEETINGS FUNCTION                                                       *
//*                                                                               *
//*********************************************************************************

function showMeetingsCollapsed() {
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/1x1pixel.gif" WIDTH="43" HEIGHT="28" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" class="mainmenu"><a href="meetings.htm?menu=meetings">Meetings &amp; Locations</a></TD>');		
		document.write ('		<TD width="24"><IMG SRC="images/1x1pixel.gif" WIDTH="24" HEIGHT="28" ALT=""></TD>');		
		document.write ('	</TR>');
}

function showMeetingsSelect() {
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/menuHighlight.gif" WIDTH="43" HEIGHT="28" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" bgcolor="#ffffff" class="mainmenu">Meetings &amp; Locations</TD>');		
		document.write ('		<TD width="24" bgcolor="#ffffff"><IMG SRC="images/rightArrow.gif" WIDTH="24" HEIGHT="28" ALT=""></TD>');		
		document.write ('	</TR>');
}

//*********************************************************************************
//*                                                                               *
//* BEGIN COMMITTEES FUNCTION                                                     *
//*                                                                               *
//*********************************************************************************

function showCommitteesCollapsed() {
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/1x1pixel.gif" WIDTH="43" HEIGHT="28" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" class="mainmenu"><a href="committees.html?menu=committees">Committees</a></TD>');		
		document.write ('		<TD width="24"><IMG SRC="images/1x1pixel.gif" WIDTH="24" HEIGHT="28" ALT=""></TD>');		
		document.write ('	</TR>');
}

function showCommitteesSelect() {
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/menuHighlight.gif" WIDTH="43" HEIGHT="28" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" bgcolor="#ffffff" class="mainmenu">Committees</TD>');		
		document.write ('		<TD width="24" bgcolor="#ffffff"><IMG SRC="images/rightArrow.gif" WIDTH="24" HEIGHT="28" ALT=""></TD>');		
		document.write ('	</TR>');
}


//*********************************************************************************
//*                                                                               *
//* BEGIN ACTIVITIES FUNCTION                                                     *
//*                                                                               *
//*********************************************************************************

function showActivitiesCollapsed() {
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/1x1pixel.gif" WIDTH="43" HEIGHT="28" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" class="mainmenu"><a href="activities.html?menu=activities">Activities</a></TD>');		
		document.write ('		<TD width="24"><IMG SRC="images/1x1pixel.gif" WIDTH="24" HEIGHT="28" ALT=""></TD>');		
		document.write ('	</TR>');
}

function showActivitiesSelect() {
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/menuHighlight.gif" WIDTH="43" HEIGHT="28" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" bgcolor="#ffffff" class="mainmenu">Activities</TD>');		
		document.write ('		<TD width="24" bgcolor="#ffffff"><IMG SRC="images/rightArrow.gif" WIDTH="24" HEIGHT="28" ALT=""></TD>');		
		document.write ('	</TR>');
}



//*********************************************************************************
//*                                                                               *
//* BEGIN MEMBER DIRECTORY FUNCTION                                               *
//*                                                                               *
//*********************************************************************************


function showMemberDirCollapsed() {
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/1x1pixel.gif" WIDTH="43" HEIGHT="28" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" class="mainmenu"><a href="memberDirectory.html?menu=memberdir">Member Directory</a></TD>');		
		document.write ('		<TD width="24"><IMG SRC="images/1x1pixel.gif" WIDTH="24" HEIGHT="28" ALT=""></TD>');		
		document.write ('	</TR>');
}

function showMemberDirSelect() {
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/menuHighlight.gif" WIDTH="43" HEIGHT="28" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" bgcolor="#ffffff" class="mainmenu">Member Directory</TD>');		
		document.write ('		<TD width="24" bgcolor="#ffffff"><IMG SRC="images/rightArrow.gif" WIDTH="24" HEIGHT="28" ALT=""></TD>');		
		document.write ('	</TR>');
}

//*********************************************************************************
//*                                                                               *
//* BEGIN NEWS FUNCTION                                                           *
//*                                                                               *
//*********************************************************************************

function showNewsCollapsed() {
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/1x1pixel.gif" WIDTH="43" HEIGHT="28" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" class="mainmenu"><a href="news.html?menu=news">News &amp; Events</a></TD>');		
		document.write ('		<TD width="24"><IMG SRC="images/1x1pixel.gif" WIDTH="24" HEIGHT="28" ALT=""></TD>');		
		document.write ('	</TR>');
}

function showNewsSelect() {
		document.write ('	<TR>');		
		document.write ('		<TD width="43"><IMG SRC="images/menuHighlight.gif" WIDTH="43" HEIGHT="28" ALT=""></TD>');		
		document.write ('		<TD align="right" width="143" bgcolor="#ffffff" class="mainmenu">News &amp; Events</TD>');		
		document.write ('		<TD width="24" bgcolor="#ffffff"><IMG SRC="images/rightArrow.gif" WIDTH="24" HEIGHT="28" ALT=""></TD>');		
		document.write ('	</TR>');
}



