function imgSwap(imgID, hideID){
	var nextID = imgID+1;
	imgTimeout = document.getElementById("ShowroomCfgTimeout").value+'000';
	
	var showDiv = document.getElementById('showroom'+imgID);
	var showNext = document.getElementById('showroom'+nextID);
	var hideDiv = document.getElementById('showroom'+hideID);
	if ( imgID==2 ) {
		hideID=1;	
	}
	hideID++;
	imgID++;
	
	if ( showDiv ) {
		showDiv.style.visibility = 'visible';
	}
	if ( hideDiv ){
		hideDiv.style.visibility = 'hidden';
	}
	if( showNext == null ){
		hideID = imgID-1;
		imgID = 1;
	} 
	setTimeout(function(){imgSwap(imgID, hideID)}, imgTimeout);
}
