var ContentReplacer_contentsArr2 = new Array();
var ContentReplacer_counter2 = 0;
var ContentReplacer_contentCount2 = 0;


function replaceContents2(contentIDs_arr,time_delay){
	
	if(parseInt(time_delay)<3) time_delay = 3;

	
	var i = 0;
	
	
	for(an_id in contentIDs_arr){
		
		ContentReplacer_contentsArr2[i] = document.getElementById(contentIDs_arr[an_id]);
		
		if(i==0){
			$(ContentReplacer_contentsArr2[i]).fadeIn('slow',function(){i++;});
			//ContentReplacer_contentsArr2[i].style.display = 'block';
		}
		else{
			$(ContentReplacer_contentsArr2[i]).fadeOut('slow',function(){i++;});
			//ContentReplacer_contentsArr2[i].style.display = 'none';
		}
		//i++;
	}
	
	
	ContentReplacer_contentCount2 = contentIDs_arr.length;
	
	
	window.setInterval(ContentReplacer_replace2,time_delay*1000);
	
}//end function replaceContents2()


var ContentReplacer_replace2 = function(){
	$(ContentReplacer_contentsArr2[ContentReplacer_counter2]).fadeOut('slow', function(){
		ContentReplacer_counter2++;
		if(ContentReplacer_counter2==ContentReplacer_contentCount2) ContentReplacer_counter2 = 0;
		$(ContentReplacer_contentsArr2[ContentReplacer_counter2]).fadeIn('slow');
		
		});
	
}//

