$(document).ready(function() {

	//FADE IN FOR PAGES THAT DO NOT WHIZZ ON AND OFF
	$('#contenta').hide();
		$('#contenta').fadeIn('slow');
		
	//tooltip menu items
	$("#nav a").append("<em></em>");
	
	$("#nav a").hover(function() {
		$(this).find("em").animate({opacity: "show", right: "68"}, "slow");
		var hoverText = $(this).attr("title");
	    $(this).find("em").text(hoverText);
	}, function() {
		$(this).find("em").animate({opacity: "hide", right: "85"}, "fast");
	});
	
	//end tooltip	
	
	
	

	
	//LOAD CONTENT

	 $('a.load').click(function(load){  
       
     var toLoad = $(this).attr('href')+' #content';  
    $('#content').animate({left:1000},'fast').fadeOut('fast',loadContent);  
      
     $('#wrapper').append('<span id="load">LOADING...</span>');  
      
     function loadContent() {  
         $('#content').load(toLoad,'',showNewContent())  
     }  
     function showNewContent() {
	 	  
         $('#content').fadeIn('fast').animate({left:0},'fast');  
     }  
    // function hideLoader() {  
        // $('#load').fadeOut('normal');  
     //}
     return false;  
       
     }); 
	 //load

});




	//GALLERY LIGHTBOX
    $(function() {
        $('#pics a').lightBox();
    });
	
	
	//GALLERY PICS FADE
	$(function() {
		$("#pics img").css("opacity", 0.6);

	$("#pics img").hover(function(){
		$(this).stop().fadeTo("fast", 1.0);
	},function(){
		$(this).stop().fadeTo("fast", 0.6);
	});
	});