// Use jQuery via $j(...)  
//var $j = jQuery.noConflict();  

$(window).load(function() {
	var total = $('#slider img').length;
	var rand = Math.floor(Math.random()*total);
	$('#slider').nivoSlider({
		effect:'fade',
		animSpeed:500,
		pauseTime:7000,
		startSlide:rand,
		directionNav:true, // Next & Prev
		directionNavHide:false, // Only show on hover
		controlNav:true, // 1,2,3...
		controlNavThumbs:false, //Use thumbnails for Control Nav
		keyboardNav:true, //Use left & right arrows
		pauseOnHover:true, //Stop animation while hovering
		captionOpacity:0.8 //Universal caption opacity
	});
});

$(document).ready(function() {
	$('#footer').localScroll({
		duration:500,
		easing:'easeOutCubic'
	});
});

