//  My sorry-ass Js file.
	
	var slideSpeed = 750;
	var navEasingStyle = "easeOutExpo";
	var fbAnimationSpeed = 1000;
	
	//Page Fades
	//Nav Animation Speed
	var navAnimationSpeed = 250;
	var pageFadeSpeed = 1000;
	var pageLoadDelay = 1000;
	var galleryLoadDelay = 2000;
		
	//IE, unfortunately
	if ( $.browser.msie ) {
		if ( parseInt($.browser.version) >= 7){
			//var slideSpeed = 0;
			//var fbAnimationSpeed = 0;
			var pageFadeSpeed = 0;
		}
	}
	
	function prepNav() {
			
	//Facebook Fan Tag
			
		$(".fb, .tw").css("display","block");
		
		var configFB = {    
		     sensitivity: 4, // number = sensitivity threshold (must be 1 or higher)    
		     interval: 200, // number = milliseconds for onMouseOver polling interval    
		     over: showFB, // function = onMouseOver callback (REQUIRED)    
		     timeout: 400, // number = milliseconds delay before onMouseOut    
		     out: hideFB // function = onMouseOut callback (REQUIRED)    
		};
				
		function showFB() {
			$(this).animate({
				marginLeft:420
			}, fbAnimationSpeed, navEasingStyle);
			$(this).css("z-index", 999);
		}
		
		function hideFB() {
			$(this).animate({
				marginLeft:79
			}, fbAnimationSpeed, navEasingStyle);
			$(this).css("z-index", 888);
		}
		
		$(".fb, .tw").hoverIntent(configFB);
					
	}
	
	function slideNav() {
				
		setTimeout(function() {
			$(".fb").animate({
				marginLeft:79
			},navAnimationSpeed*3, navEasingStyle);
		},750);
		
		setTimeout(function() {
			$(".tw").animate({
				marginLeft:79
			},navAnimationSpeed*3, navEasingStyle);
		},1000);

	}
	
	
	$(document).ready(function() {
		prepNav();
	});

	$(window).load(function() {
		slideNav();
	});
	
// // Sharing Functions
// 
// 	function postTwitter(u) {
// 		window.open( "http://twitter.com/home?status=" + u,'sharer', "toolbar=0,status=0,width=626,height=436"  );
// 		return false;
// 	};
// 	
// 	function postFacebook(u,t) {
// 		window.open('http://www.facebook.com/sharer.php?u='+u+'&t='+t,'sharer','toolbar=0,status=0,width=626,height=436');
// 		return false;
// 	};

	//END SCRIPT
