function Show(id)
{
	a = document.getElementById(id);
	if(a.style.display=='none') { a.style.display=''; }
}
function NShow(id)
{
	a = document.getElementById(id);
	if(a.style.display=='') { a.style.display='none'; }
}


function doNext(){
//Do whatever...
}

$(document).ready(function(){
	window.setInterval(function(){
		var img = $('#rotateSplash img');

		for (var i=0;i<img.length;i++)
		{			
			if ($(img[i]).css('display')!='none')
			{
				if (i==img.length-1) 
						$(img[0]).next('img').fadeIn('slow',function(){
							  $(img[i]).fadeOut('slow'); });
					else
						$(img[i]).next('img').fadeIn('slow',function(){
							  $(img[i]).fadeOut('slow'); });		
				return;				
			}
		}
	},2000);
	/*window.setInterval(function(){
		$('#splash01').fadeOut('slow',function(){
			$('#splash02').fadeIn('slow',function(){
				$('#splash02').fadeOut('slow',function(){
					$('#splash03').fadeIn('slow',function(){
						$('#splash03').fadeOut('slow',function(){ 
							$('#splash04').fadeIn('slow',function(){
								$('#splash04').fadeOut('slow',function(){
									$('#splash05').fadeIn('slow',function(){
										$('#splash05').fadeOut('slow',function(){
											$('#splash06').fadeIn('slow',function(){
												$('#splash06').fadeOut('slow',function(){
													$('#splash01').fadeIn('slow');
												});
											});
										});
									});
								});																  
							});
						});					
					});
				});
			});		
		});
	},7000);*/
	window.setInterval(function(){
		var img = $('#montain img');

		for (var i=0;i<img.length;i++){
			
			if ($(img[i]).css('display')!='none'){				
				$(img[i]).fadeOut('slow',function(){
					if (i==img.length-1) 
					$(img[0]).next('img').fadeIn('slow');
					else
					$(img[i]).next('img').fadeIn('slow');
				});
				
				return;				
			}
		}
	},4000);
	
});
