﻿$(document).ready(function(){
	 //$("a#chaptersLink").click(function(){
		//$("ul#chapterList").toggle("slow");
		//$("a.chapterLink").click(function(){
			//$(this).next("div.chapterInfo").toggle("slow");
		 //});
	 //});
	 $("a.chapterLink").click(function(){
		$(this).next("div.chapterInfo").toggle("slow");
	 });
	 $("a#groupsLink").click(function(){
	    $("ul#groupsMore").toggle("slow");
	 });
	 $("a#serviceLink").click(function(){
	    $("ul#serviceMore").toggle("slow");
	 });
	 $("a#newsLink").click(function(){
	    $("ul#newsMore").toggle("slow");
	 });
	 $("a#eventLink").click(function(){
	    $("div#eventMore").toggle("slow");
	 });
	 $("a#featureLink").click(function(){
	    $("ul#featureMore").toggle("slow");
	 });
	 $("a#photoLink").click(function(){
	    $("table#photoMore").toggle("slow");
	 });
	 $("a#greatLink").click(function(){
	    $("ul#greatMore").toggle("slow");
	 });
	 $("a#stateselect").click(function(){
	    $("table#states").toggle("fast");
	 });
	 $("a#toolselect").click(function(){
	    $("table#membertools").toggle("fast");
	 });
	 $("img#searchbtn").click(function(){
		 $("table#searchoptions").toggle("fast");
	 });
	 $("a.srch").click(function(){
		var text = $("#searchtext").val();
		var search = $(this).id();
		commenceSearch(text, search);
	 });
 });

 function commenceSearch(text, search)
 {
	if (search == "sisters")
	{
		location.href = "membersearch.aspx";
	}
	if (search == "site")
	{
		location.href = "searchalumnaecontent.aspx?search=" + text;
	}
	if (search == "web")
	{
		location.href = "http://www.goodsearch.com/Search.aspx?Keywords=" + text;
	}
 }
