PARKWENG.ui.gallery.Thumbnail = new Class({
	Extends: NETVISION.ui.UIComponent,
	
	_imageId: null,
	
	_active: null,
	
	initialize: function(el,id) {
		this.parent(el);
		
		this._imageId = ("number" === $type(id)) ? id : 0;
		
		this._active = false;
	},
	
	activate: function() {
		var left = this.getPosition(this.getParent('div#pw__galleryImgPreview')).x;
		$('pw__galleryActiveImageIndicator').setStyles({
			"left": left
		});
		
		this._active = true;
	},
	
	deactivate: function() {
		this._active = false;
	},
	
	getImageId: function() {
		return this._imageId;
	},
	
	isActive: function() {
		return this._active;
	},
	
	setActive: function(activate) {
		if(true === activate) {
			this.activate();
		} else {
			this.deactivate();
		}
	} 
});
