
//Menu items
		$(function() {
			$("#accordion").accordion({event: "mouseover"});
		});

/* Facebox
		$(function() {
					$('a[rel*=facebox]').facebox(); 
				$.facebox.settings.opacity = 0.3
		});
*/// Loads up the various functions we are going to use
$(document).ready(function(){
	popup('a[rel*=facebox]');
});

//Manages all of the popup windows using facebox
function popup(Elem) {
	$(Elem).click(function(){
			var theUrl = this.href.split("#")
			var addr = (theUrl[0] + " #" + theUrl[1] + " > *");
//		if (this.rel == "facebox") {
			var c = $("<div id='" + theUrl[1] + "'><div  style='text-align:center;'><img src='/facebox/loading.gif' /></div></div>");
//		};
			$(c).load(addr, function(){
				jQuery.facebox(c);
				$.facebox.settings.opacity = 0.4
			});
			return false;
	});
};