/********************************************

The Catalyst Schools
jQuery Initialization

Version: 1.0
Required Plugins: none
Author: Poccuo (http://www.poccuo.com)        	

*******************************************/

$(document).ready(function(){

	// Extended Entries on Tables
	$('.tableList_wrapper .showMore').hide();
	$('.tableList_wrapper .showMore_toggle').show();

	$('.showMore_toggle').click(function() {
		$(this).hide();
		var parent = $(this).parent();
		parent.children('.showMore').slideDown(150);
		return false;
	});
	
	// Extended Entries on Tables
	$('.faq .answer').hide();

	$('.faq .question').click(function() {
		var parent = $(this).parent();
		parent.children('.answer').slideToggle(150);
		return false;
	});
	
	// Make School Divs Clickable
	$(".school_button").each(function(i, item) {

		//link
		$(item).find("h2 a").each(function(j, link) {

			$(item).attr('link', link);

			$(item).click(function() {
				window.location = $(this).attr('link');
				return false;
			});

			return false;
		});

		//pointer
		if ($(item).find("h2 a").length > 0) {
			$(item).css('cursor', 'pointer');
			$(item).children().css('cursor', 'pointer');
		}
	});
	

		
	// Enable ScrollTo on All Anchor Links
	$.localScroll();
 
 });