	var i_path = "i/";
	foto = new Object();
	foto.main = new Object();
	foto.main.front = new Array(new Image(), new Image());
	foto.main.front[0].src = i_path + "foto_main_front.jpg";
	foto.main.front[1].src = i_path + "foto_main_front_o.jpg";
	foto.main.back = new Array(new Image(), new Image());
	foto.main.back[0].src = i_path + "foto_main_back.jpg";
	foto.main.back[1].src = i_path + "foto_main_back_o.jpg";
	foto.main.top = new Array(new Image(), new Image());
	foto.main.top[0].src = i_path + "foto_main_top.jpg";
	foto.main.top[1].src = i_path + "foto_main_top_o.jpg";
	foto.main.side = new Array(new Image(), new Image());
	foto.main.side[0].src = i_path + "foto_main_side.jpg";
	foto.main.side[1].src = i_path + "foto_main_side_o.jpg";
	foto.thumb = new Object();
	foto.thumb.front = new Array(new Image(), new Image());
	foto.thumb.front[0].src = i_path + "foto_thumb_front.gif";
	foto.thumb.front[1].src = i_path + "foto_thumb_front_o.gif";
	foto.thumb.back = new Array(new Image(), new Image());
	foto.thumb.back[0].src = i_path + "foto_thumb_back.gif";
	foto.thumb.back[1].src = i_path + "foto_thumb_back_o.gif";
	foto.thumb.top = new Array(new Image(), new Image());
	foto.thumb.top[0].src = i_path + "foto_thumb_top.gif";
	foto.thumb.top[1].src = i_path + "foto_thumb_top_o.gif";
	foto.thumb.side = new Array(new Image(), new Image());
	foto.thumb.side[0].src = i_path + "foto_thumb_side.gif";
	foto.thumb.side[1].src = i_path + "foto_thumb_side_o.gif";
	
	var current = "front";
	
	function mainMO(mo){
		document.images.main.src = foto.main[current][mo].src;
	}
	
	function mainClick(){
		var path = document.location.pathname;
			path = path.substring(0, path.lastIndexOf("/")+1);
		var largeImg = path+i_path+"foto_large_"+current+".jpg";
		var win = window.open("../popup.htm?"+largeImg,"large_view","width=597, height=485");
			win.focus();
	}
	
	function thumbMO(id, mo){
		document.images["thumb_"+id].src = foto.thumb[id][mo].src;
	}
	
	function thumbClick(id){
		var i = document.images.main;
		setBlend(i);
		i.src = foto.main[id][0].src;
		startBlend(i);
		current = id;
	}
	
	function setBlend(o){
		if (document.all) { 
      		o.style.filter="blendTrans(duration=1)"; 
      		o.filters.blendTrans.Apply(); 
    	}    	
	}
	
	function startBlend(o){
		if (document.all) { o.filters.blendTrans.Play(); } 
	}