$(window).load(function() {
	var total = $('#slider img').length;
	var rand = Math.floor(Math.random()*total);
	$('#slider').nivoSlider({
		effect:'fade',
		slices:15,
		animSpeed:350, //Slide transition speed
		pauseTime:2000,
		startSlide:rand, //Set starting Slide (0 index)
		directionNav:true, //
		directionNavHide:true, //Only show on hover
		controlNav:false, //1,2,3...
		controlNavThumbs:false, //Use thumbnails for Control Nav
        controlNavThumbsFromRel:false, //Use image rel for thumbs
		pauseOnHover:true //Stop animation while hovering
		
	});
});
