$(document).ready(function(){
	$(".tabs > li").click(function(e){
		switch(e.target.id){
			case "coursesearch":
				//change status &amp;amp;amp; style menu
				$("#coursesearch").addClass("active");
				$("#adsearch").removeClass("active");
				//display selected division, hide others
				$("div.coursesearch").fadeIn();
				$("div.adsearch").css("display", "none");
			break;
			case "adsearch":
				//change status &amp;amp;amp; style menu
				$("#coursesearch").removeClass("active");
				$("#adsearch").addClass("active");
				//display selected division, hide others
				$("div.adsearch").fadeIn();
				$("div.coursesearch").css("display", "none");
			break;
			case "announcements":
				//change status &amp;amp;amp; style menu
				$("#announcements").addClass("active");
				$("#news").removeClass("active");
				$("#events").removeClass("active");
				//display selected division, hide others
				$("div.announcements").fadeIn();
				$("div.news").css("display", "none");
				$("div.events").css("display", "none");
			break;
			case "news":
				//change status &amp;amp;amp; style menu
				$("#announcements").removeClass("active");
				$("#news").addClass("active");
				$("#events").removeClass("active");
				//display selected division, hide others
				$("div.news").fadeIn();
				$("div.announcements").css("display", "none");
				$("div.events").css("display", "none");
			break;
			case "events":
				//change status &amp;amp;amp; style menu
				$("#announcements").removeClass("active");
				$("#news").removeClass("active");
				$("#events").addClass("active");
				//display selected division, hide others
				$("div.events").fadeIn();
				$("div.announcements").css("display", "none");
				$("div.news").css("display", "none");
			break;
		}
		//alert(e.target.id);
		return false;
	});
	        var biggestHeight = 0;  
        //check each of them  
        $('.equal_height').each(function(){  
            //if the height of the current element is  
            //bigger then the current biggestHeight value  
            if($(this).height() > biggestHeight){  
                //update the biggestHeight with the  
                //height of the current elements  
                biggestHeight = $(this).height();  
            }  
        });  
        //when checking for biggestHeight is done set that  
        //height to all the elements  
        $('.equal_height').height(biggestHeight);  
      
    }); 

