/* Declare a namespace for the site */
var Site = window.Site || {};

/* Create a closure to maintain scope of the '$'
   and remain compatible with other frameworks.  */
(function($) {
	
	//same as $(document).ready();
	$(function() {
		
		

	});


	$(function() {
		$("div.menu li")
			.mouseover(function() { 
				if(!$(this).hasClass("selected"))
					$(this).css("background-color","#eeeeee");
			})
			.mouseout(function() {
				if(!$(this).hasClass("selected"))
					$(this).css("background-color","transparent");
			});
	});

	// When the document loads do everything inside here ...
	$(document).ready(function(){
		// When a link is clicked
		$("a.tab").click(function () {
			// switch all tabs off
			$(".active").removeClass("active");
			// switch this tab on
			$(this).addClass("active");
			// slide all content up
			$(".tab_content").slideUp();
			// slide this content up
			var content_show = $(this).attr("title");
			$("#"+content_show).slideDown();		  
		});
	
	});

	$(window).bind("load", function() {
		
		
	
	});
	
})(jQuery);
