/*
 * jQuery channels module v1.0.0 - http://www.onlinetvcast.com/
 *
 *
 */

// FIXME: глобальный рефакторинг

  (function($) {
 	function Module_Channels(options) {
 		var defaults = {};
        this.options = $.extend(defaults, options);
 		
 		// Переопределяем метод (до вызова construct)
 		this.construct = function() {
 			this.setCustomZone();
 			this.setSliderPanel();
        	this.setCommentsPanel();
        	this.setSliderCarousel();
        	this.activateDecorateSourcePanel();
        	this.bindActions();
        	this.setAutoQueue();
 		},
 		 		
 		this.bindActions = function() {
 			var self = this;
			self.bindCustomZoneActions();
			self.bindRegistrationForm();
			self.bindLoginForm();
        	self.bindSendToFriends();
        	self.bindSendBrokenVideo();
        	self.bindAddVideoForm();
        	self.bindSampleForm();
        	self.bindShowProfile();
        	self.bindForgotPassword();
        	self.bindAutoQueueAction();
 		}
 	}
 	 	 	
 	$.extend(Module_Channels.prototype, $.Module_TV_prototype());
 	
 	$.Module_Channels = function(options) {
 		return new Module_Channels(options);
 	};
 
 })(jQuery);
