$(document).ready(function(){

// SuperFish Menus
	$("ul.sf-menu").superfish({
		autoArrows: false,
		dropShadows: true,
		speed: 0
	});
	
// Searchbox 
	var searchBox = $("#keywords");
	var defaultText = "Search St. Mary's";
	
	// Set the default text
	searchBox.attr("value", defaultText);
	
	searchBox.focus(function(e){
		$(this).addClass("active");
		if($(this).attr("value") == defaultText) $(this).attr("value", "");
	});
	searchBox.blur(function(e){
		if($(this).attr("value") == "") $(this).removeClass("active").attr("value", defaultText);
	});
	
// Flash Objects
	//$('#intro').flash({
	//	swf: 'common/flash/SMA_home.swf',
	//	height: 245,
	//	width: 850	
	//});
	$('#intro').flashembed({src: 'common/flash/SMA_home.swf', wmode: 'opaque'});
	
	
// Tell-a-Friend Form
	//$("a#email-page").colorbox({width:"392px", inline:true, href:"#tell-a-friend"}); 
	$("#page-tools a[rel]").overlay();
});