	var images = new Array(); 
	FS = {
		i: 0,
		items: new Array(),
		
		loadImage: function(i)
		{
			var elem = document.getElementById('stageImage');
			var st = document.getElementById('fotoshowfooter');
			var zoom = document.getElementById('zoom');
			elem.src = this.items[i].src;
			st.innerHTML = this.items[i].st;
			elem.style.marginLeft = Math.round((375 - this.items[i].width) / 2) + "px";
			this.i = i;
		},

		loadBig: function(i)
		{
			var elemBig = document.getElementById('stageImageBig');
			var layerBig = document.getElementById('fotoshowbig');
			var stBig = document.getElementById('fotoshowfooterbig');
			layerBig.style.visibility = "visible";
			elemBig.src = this.items[this.i].srcBig;
			stBig.innerHTML = this.items[this.i].st;
			layerBig.style.width = Number((this.items[this.i].width * 2) + 30) + "px";
			layerBig.style.height = Number((this.items[this.i].height *2) + 70) + "px";
			/*elemBig.style.marginLeft = Math.round((375 - this.items[this.i].width) / 2) + "px";*/
		},
		
		loadNext: function()
		{
			var n = this.i + 1;
			if(n >= this.items.length)
			{
				n = 0;
			}
			this.loadImage(n);
		},

		loadPrevious: function()
		{
			var n = this.i - 1;
			if(n < 0)
			{
				n = this.items.length - 1;
			}
			this.loadImage(n);
		},
		
		setItems: function(arr)
		{
			this.items = arr;
		},

		addItem: function(obj)
		{
			this.items[this.items.length] = obj;
		}
	};
	