var slideGallery = function () {
	// ...
}
	// Predotvratqva zastypvaneto na methodite ... 
	slideGallery.prototype.boolActionChecker = true;
	// Containera s thumbovete ...
	slideGallery.prototype.thumbsContainerInstance = '';
	// Containera s infoto za thumbovete ...
	slideGallery.prototype.infoContainerInstance = '';
	// Butona za prevyrtane nadqsno ...
	slideGallery.prototype.rightArrow = '';
	// Butona za prevyrtane nalqvo ...
	slideGallery.prototype.leftArrow = '';
	// Tempoto na skrolirane ...
	slideGallery.prototype.delayScrolling = 10000;
	
	//f -> Premestvam pyrviq element ot steka v nai-zadna poziciq ...
	slideGallery.prototype.moveLi2Right = function () {
		var clone_ = jQuery ('#' + this.thumbsContainerInstance + ' li').first ( 'a' ).clone ();
		this.removeSelectedCSS (clone_);
		clone_.appendTo ('#' + this.thumbsContainerInstance);
	}
	//f -> Premestvam posledniq element ot steka v nai-predna poziciq ...
	slideGallery.prototype.moveLi2Left = function () {
		first_ = jQuery ('#' + this.thumbsContainerInstance + ' li').first ('a');
		last_ = jQuery ('#' + this.thumbsContainerInstance + ' li').last ('a')
		var clone_ = last_.clone ();
		first_.before (clone_);
		return clone_;
	}
	
	//f -> Premahva activniq class ot css-a na elementa i go zamestva s neaktivniq ...
	slideGallery.prototype.removeSelectedCSS = function (element_) {
		inst_ = element_.find ('a');
		name_ = inst_.attr ('class');
		inst_.removeClass (name_);
		newName = name_.replace (/_selected/gi, '');
		inst_.addClass (newName);
	}
	
	//f -> Dobavqm classa, koito selectira elementa ... Kato parametyr se podava samata instanciq kym nego (elementa) ...
	slideGallery.prototype.addSelectedCSS = function (element_) {
		inst_ = element_.find ('a');
		name_ = inst_.attr ('class');
		inst_.removeClass ( name_ );
		inst_.addClass ( name_ + '_selected' );
		//show_info ( name_ + '_info' );
		this.showInfo (name_ + '_info');
	}
	
	slideGallery.prototype.slide2Right = function () {
		if (this.boolActionChecker) {
			mainObj = this;
			elementsLI = jQuery ('#' + this.thumbsContainerInstance + ' li');
			this.boolActionChecker = false;
			this.moveLi2Right ();
			
			jQuery ('#' + this.thumbsContainerInstance).animate ({
				left: '-' + jQuery ('#' + this.thumbsContainerInstance + ' li').first ().width () + 'px'
			});
			
			jQuery ('#' + this.thumbsContainerInstance).queue (function () {
				jQuery ( this ).css ({
					'left': '0px'
				});
				
				elementsLI.first ().remove ();
				//*** Tuk izrichno polzvam druga referenciq, tyi kato v momentnata ne e otrazena procedurata po poremahvaneto na pyrviq element ...
				mainObj.addSelectedCSS (jQuery (elementsLI[1]));
				mainObj.boolActionChecker = true;
				jQuery (this).dequeue ();
			});
		}
	}
	
	slideGallery.prototype.slide2Left = function () {
		if (this.boolActionChecker) {
			mainObj = this;
			elementsLI = jQuery ('#' + this.thumbsContainerInstance + ' li');
			tmpFirsLI = elementsLI.first ();
			tmpLastLI = elementsLI.last ();
			this.boolActionChecker = false;
			
			jQuery ('#' + this.thumbsContainerInstance).css ({
				left: '-' + jQuery ('#' + this.thumbsContainerInstance + ' li').first ().width () + 'px'
			});
			
			var cloned = this.moveLi2Left ();
			
			jQuery ('#' + this.thumbsContainerInstance).animate ({
				left: '0px'
			});
			
			jQuery ('#' + this.thumbsContainerInstance).queue ( function () {
				mainObj.removeSelectedCSS (tmpFirsLI);
				mainObj.addSelectedCSS (cloned);
				tmpLastLI.remove ();
				mainObj.boolActionChecker = true;
				jQuery (this).dequeue ();
			});
		}
	}
	
	//f -> Displayva syotvetnoto info kym menuto ...
	slideGallery.prototype.showInfo = function (className_) {
		jQuery ('#' + this.infoContainerInstance + ' .nav_info_cont').each (function () {
			if (jQuery (this).hasClass ('info_selected')) {
				jQuery (this).removeClass ('info_selected');
			}
			if (jQuery (this).attr ('id') == className_) {
				jQuery (this).addClass ('info_selected');
			}
		});
	}
