// JavaScript Document
                    function menu(strcurrentpage, category){

	/*Layout for Foundation part of menu if current page is Foundation*/

	if(strcurrentpage == 'foundation'){
	
				
		/*Begin column 1*/
			
					
		document.write("<table border='0' width='140' cellpadding='0' cellspacing='0'>");

			document.write("<tr valign='top' bgcolor='#FFDE00'>");

				document.write("<td width='140'><img src='../images/menu/spacer.gif' width='140' height='75' border='0'></td>");

			document.write("</tr>");
		
			document.write("<tr valign='top' bgcolor='#FFDE00'>");
			
			if (category == 'link'){

			    document.write("<td width='140'><img name='about' border='0' src='../images/menu/f_foundation_down.gif' width='140' height='25' alt='About WSCS'></td>");

            }

            else{

                document.write("<td width='140'><a href='../foundation/index.html'><img name='about' border='0' src='../images/menu/f_foundation_down.gif' width='140' height='25' alt='About WSCS'></a></td>");

            }

			document.write("</tr>");
			
            document.write("<tr valign='top' bgcolor='#FFDE00'>");

            document.write("<td width='140' bgcolor='#FFDE00'>");

				document.write("<table width='135' cellpadding='0' cellspacing='0'>");

					document.write("<tr valign='top'>");

						if (category == 'q&a'){

							document.write("<td valign='top' align='right' width='135' class='sidenav_nolink'>Questions & Answers</td>");

						}

						else{

							document.write("<td valign='top' align='right'><a href='../foundation/legacy_q&a.html' class='sidenav'>Questions & Answers</a></td>");

						}

		            document.write("</tr>");
					
					document.write("<tr>");
					
					document.write("<td><img src='../images/menu/spacer.gif' width='1' height='5' alt='' border='0'></td>");

					document.write("</tr>");
	
					document.write("<tr valign='top'>");

						if (category == 'giving'){

							document.write("<td valign='top' align='right' width='135' class='sidenav_nolink'>Methods of Giving</td>");

						}

						else{

							document.write("<td valign='top' align='right'><a href='../foundation/giving.html' class='sidenav'>Methods of Giving</a></td>");

						}

		            document.write("</tr>");
					
					document.write("<tr>");
					
					document.write("<td><img src='../images/menu/spacer.gif' width='1' height='5' alt='' border='0'></td>");

					document.write("</tr>");
	
					document.write("<tr valign='top'>");

						if (category == 'links'){

							document.write("<td valign='top' align='right' width='135' class='sidenav_nolink'>Links</td>");

						}

						else{

							document.write("<td valign='top' align='right'><a href='../foundation/links.html' class='sidenav'>Links</a></td>");

						}

		            document.write("</tr>");

					document.write("<tr>");
					
					document.write("<td><img src='../images/menu/spacer.gif' width='1' height='5' alt='' border='0'></td>");

					document.write("</tr>");
	
					document.write("<tr valign='top'>");

						if (category == 'literature'){

							document.write("<td valign='top' align='right' width='135' class='sidenav_nolink'>Campaign Literature</td>");

						}

						else{

							document.write("<td valign='top' align='right'><a href='../foundation/literature.html' class='sidenav'>Campaign Literature</a></td>");

						}

		            document.write("</tr>");

					document.write("<tr>");
					
					document.write("<td><img src='../images/menu/spacer.gif' width='1' height='5' alt='' border='0'></td>");

					document.write("</tr>");
					
					document.write("<tr valign='top'>");

						if (category == 'travel'){

							document.write("<td valign='top' align='right' width='135' class='sidenav_nolink'>Travel Service</td>");

						}

						else{

							document.write("<td valign='top' align='right'><a href='../foundation/travel_service.html' class='sidenav'>Travel Service</a></td>");

						}

		            document.write("</tr>");

					document.write("<tr>");
					
					document.write("<td><img src='../images/menu/spacer.gif' width='1' height='5' alt='' border='0'></td>");

					document.write("</tr>");
					
			    	document.write("</table>");

        document.write("</tr>");

		}

	else{

		/*Layout for Home part of menu if current page is NOT Home*/

		/*Begin column 1*/
			
			document.write("<table border='0' width='140' cellpadding='0' cellspacing='0'>");

			document.write("<tr valign='top' bgcolor='#FFDE00'>");

				document.write("<td width='140'><img src='../images/menu/spacer.gif' width='140' height='75' border='0'></td>");

			document.write("</tr>");

			document.write("<tr valign='top' bgcolor='#FFDE00'>");
		
			document.write("<td width='140' bgcolor='#F2FDF5'><a href='../foundation/index.html' onMouseOut='MM_swapImgRestore()' onMouseOver='MM_swapImage(\"document.foundation\",\"document.foundation\",\"../images/menu/f_foundation_down.gif\",1)'><img name='home' border='0' src='../images/menu/f_foundation_up.gif' width='140' height='25' alt='Welcome to West Side Christian School'></a></td>");

			document.write("</tr>");
			
			}
			
	/*Layout for Home part of menu if current page is Home*/

    if(strcurrentpage == 'home'){

		document.write("<tr valign='top' bgcolor='#FFDE00'>");

        if (category == 'link'){

			document.write("<td width='140'><img name='home' border='0' src='../images/menu/f_home_down.gif' width='140' height='25' alt='WSCS'></td>");

        }

        else{

            document.write("<td width='140'><a href='../wscs/index.html'><img name='home' border='0' src='../images/menu/f_home_down.gif' width='140' height='25' alt='WSCS'></a></td>");

        }

        document.write("</tr>");

        }

    else{

		/*Layout for Home part of menu if current page is NOT Home*/

		document.write("<tr valign='top' bgcolor='#FFDE00'>");

		document.write("<td width='140'><a href='../wscs/index.html' onMouseOut='MM_swapImgRestore()' onMouseOver='MM_swapImage(\"document.home\",\"document.home\",\"../images/menu/f_home_down.gif\",1)'><img name='home' border='0' src='../images/menu/f_home_up.gif' width='140' height='25' alt='WSCS'></a></td>");

        document.write("</tr>");

        }
			
document.write("</table>");			

 }  
 