// JavaScript Document
var mod = 0;	

$(document).ready(function(){
					
						   
						   $('#s1').fadeIn('slow',function()
							{
								var func = function(){setTimeout(function()
								{
									
									
									mod+=1;
									if(mod==6)
									{
									 mod=1
									
									}
									nxtmod=parseInt(mod)+1;	
									$('#s'+mod).fadeOut('slow',function(){});
									if(nxtmod==6){nxtmod=1};
									$('#s'+nxtmod).fadeIn('slow',function(){if(mod==6){mod=0};func()});
									
								},5000);}
								func();
							});

	/*var fun =function ()
							 {
								 setTimeout(function()
													 {
														 mod+=1;
														 if(mod==6)
														 {
															 mod=1
														 }
												fadein = function()
												{					
													var scrNo=mod;
													
													$('#s'+scrNo).fadeIn('slow', function(){
																					
																																				setTimeout(function ()
																																									 {
																																										fadeout(scrNo);
																																										$('#s'+scrNo).fadeOut('slow', function() 
																																																			   { 																																																			  
																								
																																																			   });
																																									 },5000);
																																			
																					});
												}
											
												
												fadein();
												fadeout = function(scrNo)
												{
													var mod = scrNo+1;
												
													('#s'+mod).fadeIn('slow',function(){
																																			  setTimeout(function ()
																																								   {
																																									
																																										fadein();
																																									   $('#s'+mod).fadeOut('slow', function()
																																																		 {
																																																			 
																																																		 });
																																									  
																																								   },5000);
																																		
																					});
												
												}	
							 fun()
													 },5000);
							 }

							 fun();									
*/
});
