
		
			// the starting index in the above array.  It should be set to the value of the div which doesn't have the CSS Display property set to "none"		
			function nadjiukljucenu(){
			ukljucena = document.getElementById("uklj");
			vrednost = ukljucena.value;	
			return vrednost;
			}
			
			i=0;
			// the function that performs the fade
			
			function swapFade(nova) {
				stara = nadjiukljucenu();
				
				if(stara == nova) { return none;}
				else{
				
				Effect.Fade(stara, { duration:1, from:1.0, to:0.0 });
				var i = 0;
				if (i == 2) i = 0;
				Effect.Appear(nova, { duration:1, from:0.0, to:1.0 });
				}
			}
			
			function oznaci(nova){
			
			stara = document.getElementById("uklj");
			stara.value = nova;
			
			}
			
			function postavi(nova){
				
				swapFade(nova);
				oznaci(nova);
			}
			
			function next(poslednji){
				stara = document.getElementById("uklj").value;
				var b = stara.substring(5, 7);
				stara = parseInt(b);
				if (stara == poslednji){
					stara=0;
				}
				stara++;
				var nova = "slika"+stara;
				postavi(nova);
		
			}
			function previous(poslednji){
				stara = document.getElementById("uklj").value;
				var b = stara.substring(5,7);
				stara = parseInt(b);
				if (stara == 1){
					stara=poslednji+1;
				}
				stara--;
				var nova = "slika"+stara;
				postavi(nova);
		
			}
			
			// the onload event handler that starts the fading.
			
