(function($){
  myPage = function() {

//test urls
	// also test noSubNav one we might be coming from another page in the site
	if ($.url.param("noSubNav") == "true") { $("body").addClass("noSubNav"); }

	if ($.url.param("noNavigation") == "true") { $("body").addClass("noNavigation"); }

//add click functions
	$("a").click(function() {
		var mref = this.href;
		this.href = mref + "?noNavigation=" + $("body").hasClass("noNavigation").toString() + "&noSubNav=" + $("body").hasClass("noSubNav").toString() + "&bt=false";
		//set bt to false because we must test later on if the window is too small
	});
	// showing hiding the text behind the images
	$("a.hoverHide").hover(
	function () {
		$(this).children("img.hoverHide").fadeOut("slow");
        },function(){
		$(this).children("img.hoverHide").delay(400).fadeIn("slow");
	});
	$("a.indexImage").hover(
	function () {
		$(this).children("img.hoverHide").fadeOut("slow");
        },function(){
		$(this).children("img.hoverHide").delay(400).fadeIn("slow");
	});

// set tab
	$("#navigationTab").click(function() {
		$("body").toggleClass("noNavigation");
  });
 };
})(jQuery);


