$(function() {
    // run the code in the markup!
    $('td pre code').each(function() {
        eval($(this).text());
    });
});

 $(function() {
        $('.shot a').lightBox();
    });
	
	 
$(document).ready(function(){
  $('a[href*=#]').click(function() {
 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
 && location.hostname == this.hostname) {
   var $target = $(this.hash);
   $target = $target.length && $target
   || $('[name=' + this.hash.slice(1) +']');
   if ($target.length) {
  var targetOffset = $target.offset().top;
  $('html,body')
  .animate({scrollTop: targetOffset}, 1000);
    return false;
   }
 }
  });
});

$(document).ready(function(){
	$('#photos').galleryView({
	    panel_width: 368,
	    panel_height: 257,
	    frame_width: 30,
	    frame_height: 30,
	    overlay_color: '#444',
	    overlay_text_color: '#444',
	    caption_text_color: '#444',
	    background_color: 'transparent',
	    overlay_opacity: 0,
 		overlay_height: 50,
	    border: 'none',
	    nav_theme: 'light',
	    easing: 'easeInOutQuad',
	    pause_on_hover: true
	});
});
