/* Author:

/* Setup "Global" Vars */

/* Functions */
$(document).ready(function(){			
	
		// Navigation
		$('#top_nav > nav > ul > li > a').click(function() { // When you click a nav item...
			var whatWasClicked = $(this).attr('href'); //...take it's href value for the anchor...
			var whereToGo = $(whatWasClicked).offset().top; //...set it's value relative to the top...
			$('#top_nav a').parent().removeClass('current'); //...remove all .current classes...
			$(this).parent().addClass('current'); //...add back in the class for the item that was clicked...
			$("html,body").stop().animate({scrollTop: whereToGo},500); //...animate to the anchor location...
			return false; //...and finally, prevent the default click action (removes the blink)
		});
		
		// Portfolio area gallery view (via ColorBox)
		$('.gallery').colorbox({
			rel:'gallery1', 
			transition:'fade',
		});
			// ...minor manual tweak to have the nav buttons show up on hover
			/*
				$('#cboxContent').hover(function(){
					$('#cboxNext').fadeToggle();
					$('#cboxPrevious').fadeToggle();
				});
			*/
	
});








