/*$(window).load(function() {
	$('#slider').nivoSlider({
		effect:'sliceDown', //Specify sets like: 'fold,fade,sliceDown'
		slices:15,
		animSpeed:500,
		pauseTime:5000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:true, //Next & Prev
		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
		controlNavThumbsSearch: '.jpg', //Replace this with...
		controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
		keyboardNav:true, //Use left & right arrows
		pauseOnHover:true, //Stop animation while hovering
		manualAdvance:false, //Force manual transitions
		captionOpacity:0.8, //Universal caption opacity
		beforeChange: function(){},
		afterChange: function(){},
		slideshowEnd: function(){} //Triggers after all slides have been shown
	});
	
	$('#slider2').nivoSlider({
		effect:'sliceDownLeft', //Specify sets like: 'fold,fade,sliceDown'
		slices:15,
		animSpeed:500,
		pauseTime:5000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:true, //Next & Prev
		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
		controlNavThumbsSearch: '.jpg', //Replace this with...
		controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
		keyboardNav:true, //Use left & right arrows
		pauseOnHover:true, //Stop animation while hovering
		manualAdvance:false, //Force manual transitions
		captionOpacity:0.8, //Universal caption opacity
		beforeChange: function(){},
		afterChange: function(){},
		slideshowEnd: function(){} //Triggers after all slides have been shown
	});
});*/

$(document).ready(function(){
function animate (argument) {
		$("#image1").fadeIn(1000,function(){
			$("#image2").fadeIn(1000,function(){
				$("#image3").fadeIn(1000,function(){
					setTimeout(function() {
						$("#image1").fadeOut(1000);
						$("#image2").fadeOut(1000);
						$("#image3").fadeOut(1000,function(){
							$("#image4").fadeIn(1000,function(){
								$("#image5").fadeIn(1000,function(){
									$("#image6").fadeIn(1000,function(){
										setTimeout(function() {
											$("#image4").fadeOut(1000);
											$("#image5").fadeOut(1000);
											$("#image6").fadeOut(1000,function(){
												$("#image7").fadeIn(1000,function(){
													$("#image8").fadeIn(1000,function(){
														$("#image9").fadeIn(1000,function(){
															setTimeout(function() {
																$("#image7").fadeOut(1000);
																$("#image8").fadeOut(1000);
																$("#image9").fadeOut(1000,function(){
																	setTimeout(function(){
																		$("#image10").fadeIn(1000,function(){
																			$("#image11").fadeIn(1000,function(){
																				$("#image12").fadeIn(1000,function(){
																					setTimeout(function() {
																						$("#image10").fadeOut(1000);
																						$("#image11").fadeOut(1000);
																						$("#image12").fadeOut(1000,function(){
																							$("#image13").fadeIn(1000,function(){
																								$("#image13b").fadeIn(1000,function(){
																									$("#image14").fadeIn(1000,function(){
																										setTimeout(function() {
																											$("#image13").fadeOut(1000);
																											$("#image13b").fadeOut(1000);
																											$("#image14").fadeOut(1000,function(){
																												animate();
																											});				
																										}, 2000);
																									});	
																								});
																							});
																						});				
																					}, 2000);
																				});
																			});
																		});	
																	});
																});				
															}, 2000);
														});
													});
												});
											});				
										}, 2000);
									});
								});
							});
						});				
					}, 2000);
				});
			});
		});
	}
	animate();
	});