var current_img = 0;
var image = new Array();
function maz()
	{
		if(document.getElementsByClassName("image_detail")) {
			image = document.getElementsByClassName("image_detail");		
			for(i=0; i < image.length-1; i++) {
				image[i].style.display = "none";
			}		
			 current_img = image.length-1;
		}
	}
function change_img(next_img)
	{
	 
	 if (current_img != next_img)
		{
	        new Effect.Fade(image[current_img], { duration: 0.4 });
	        new Effect.Appear(image[next_img], { duration: 0.9 });	        
			current_img = next_img;	
		}
	}


