$(document).ready(function() {
            	
            	$(".body").css("display", "none");
            	$(".main_nav ul").css("display", "none");
            	$(".main_nav ul").fadeIn(250);
            	$(".banner img").css("display", "none");
            	$(".banner img").fadeIn(1000);
            	$(".content").css("display", "none");
            	$(".content").fadeIn(250);
            	$(".body").slideDown(250);
            	
            	$("nav a").addClass("transition");
            	
            	$(".ngg-widget a").attr('rel','shadowbox;player=img')
            	
            	$("a.transition").click(function(event){
        			event.preventDefault();
        			linkLocation = this.href;
        			$(".banner img").fadeOut(250);
        			$(".body").slideUp(250);
            		$(".content").fadeToggle(250);
            		$(".sidebar").fadeToggle(250);
            		$(".main_nav ul").fadeOut(250, redirectPage);
            		
        			
    			});
 
    			function redirectPage() {
        		window.location = linkLocation;
    			}
    		});
