/* jQuery calls and functions */

$(function(){ 
	/* the pages menu */
	$("#menu ul").css({display: "none"}); // Opera Fix 
	$("#menu li").hover(function(){ 
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).fadeIn(320); 
		},
		function(){ 
			$(this).find('ul:first').css({visibility: "hidden"});
		}
	);
	
	/* remove annoying <title> tags from menu <a>s */
	$("#menu a").removeAttr("title");
	
	/* opacity transition for #respond */
	$("#respond").fadeTo(0, 0.2); 				// fade on page load
	$("#respond").hover(function(){ 
		$(this).stop().fadeTo("slow", 1.0); 	// fade in on hover
	},function(){
   		$(this).stop().fadeTo("slow", 0.2); 	// fade out again
	});
	
	/* fix z-index for IE7 */
	var zIndexNumber = 1000;
	$('div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
});


