//Master Javascript file for lonslair.com
//version:   1.0
//author:   Bryan Lademann
//email:     hi@bryanlademann.com
//website:   http://www.bryanlademann.com

/*============================*/


google.load("jquery", "1");
google.load("jqueryui", "1");

google.setOnLoadCallback(function(){ 
		
		
		
//Creates smooth scrolling for jump links
	
	jQuery("a.anchorLink").click(function () {	
		elementClick = $(this).attr("href")
		destination = $(elementClick).offset().top;
		jQuery("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, 1100 );
		return false;
	})



	jQuery("a[rel='prettyPhoto']").prettyPhoto({
		animationSpeed: 'normal', /* fast/slow/normal */
		padding: 40, /* padding for each side of the picture */
		opacity: 0.45, /* Value betwee 0 and 1 */
		showTitle: false, /* true/false */
		allowresize: false, /* true/false */
		counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'dark_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
		callback: function(){}
	})
								  
}); // End onLoadCallBack