// JavaScript Document
$(window).load(function() {
	var total = $('#slider img').length;
	var rand = Math.floor(Math.random()*total);						
	$('#slider').show()
	$('#slider').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		startSlide: rand,		
		pauseTime:3500
	});	
	var total2 = $('#slider2 img').length;
	var rand2 = Math.floor(Math.random()*total);	
	$('#slider2').show()
	$('#slider2').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		startSlide: rand2,		
		pauseTime:3500
	});	
	var total3 = $('#slider3 img').length;
	var rand3 = Math.floor(Math.random()*total);	
	$('#slider3').show()
	$('#slider3').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		startSlide: rand3,		
		pauseTime:3500
	});	
	var total4 = $('#slider4 img').length;
	var rand4 = Math.floor(Math.random()*total);	
	$('#slider4').show()	
	$('#slider4').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		startSlide: rand4,		
		pauseTime:3500
	});	
	var total5 = $('#slider5 img').length;
	var rand5 = Math.floor(Math.random()*total);	
	$('#slider5').show()
	$('#slider5').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		startSlide: rand5,		
		pauseTime:3500
	});	
	var total6 = $('#slider6 img').length;
	var rand6 = Math.floor(Math.random()*total);	
	$('#slider6').show()
	$('#slider6').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		startSlide: rand6,		
		pauseTime:3500
	});		
	var total7 = $('#slider7 img').length;
	var rand7 = Math.floor(Math.random()*total);	
	$('#slider7').show()
	$('#slider7').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		startSlide: rand7,		
		pauseTime:3500
	});		
	var total8 = $('#slider8 img').length;
	var rand8 = Math.floor(Math.random()*total);	
	$('#slider8').show()
	$('#slider8').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		startSlide: rand8,		
		pauseTime:3500
	});		
	var total9 = $('#slider9 img').length;
	var rand9 = Math.floor(Math.random()*total);	
	$('#slider9').show()
	$('#slider9').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		startSlide: rand9,		
		pauseTime:3500
	});		
	var total10 = $('#slider10 img').length;
	var rand10 = Math.floor(Math.random()*total);	
	$('#slider10').show()
	$('#slider10').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		startSlide: rand10,		
		pauseTime:3500
	});	
	var total11 = $('#slider11 img').length;
	var rand11 = Math.floor(Math.random()*total);	
	$('#slider11').show()
	$('#slider11').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		startSlide: rand11,		
		pauseTime:3500
	});	
	var total12 = $('#slider12 img').length;
	var rand12 = Math.floor(Math.random()*total);	
	$('#slider12').show()	
	$('#slider12').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		startSlide: rand12,		
		pauseTime:3500
	});		
	var total13 = $('#slider13 img').length;
	var rand13 = Math.floor(Math.random()*total);	
	$('#slider13').show()
	$('#slider13').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		startSlide: rand13,		
		pauseTime:3500
	});			
	var total15 = $('#slider15 img').length;
	var rand15 = Math.floor(Math.random()*total);	
	$('#slider15').show()
	$('#slider15').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		startSlide: rand15,		
		pauseTime:3500
	});	
	var total16 = $('#slider16 img').length;
	var rand16 = Math.floor(Math.random()*total);	
	$('#slider16').show()
	$('#slider16').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		startSlide: rand16,
		pauseTime:3500
	});
	$('#slider17').show()
	$('#slider17').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		pauseTime:3500
	});	
	$('#slider18').show()
	$('#slider18').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		pauseTime:3500
	});		
	$('#slider19').show()
	$('#slider19').nivoSlider({
		effect:'sliceDownLeft',
		captionOpacity:0.65,
		directionNavHide:false, //Only show on hover
		controlNav:false,
		pauseTime:3500
	});			
});

