Classes.ProduktInfo = new Class();
Classes.ProduktInfo.prototype = {

	images: null,
	activeImg: null,

	__construct: function () {
		this.images = arguments;
		if (this.images[0]) {
			this.switchImg(0);
		}
	},

	switchImg: function (n) {
		this.activeImg = n;
		var e = _e('productImg'), img = this.images[this.activeImg];
		if (e && img) {
			e.src = img.src;
		}
	},
	
	previewImg: function () {
		var img = this.images[this.activeImg];
		if (img) {
			openPreview('', img.full, '');
		} else {
			showMessage(dict('Podgląd niedostępny.'));
		}
	}


};










