function PreloaderPanel() {
	this.me = this;
}

PreloaderPanel.prototype.notificationsList = [Notifications.SHOW_PRELOADER];
PreloaderPanel.prototype.name = "PreloaderPanel";
PreloaderPanel.prototype.init = function() {

	Phire.placeTemplate("#overlay_preloader", "PreloaderPanel.html #preloader", $.callback(this, this.onInit));
}
PreloaderPanel.prototype.release = function() {
	$("#preloader").delay(300).queue(function() {
		$(this).remove();
		log("remove");
	});
}

PreloaderPanel.prototype.handleNotification = function(notification, data) {

	switch (notification) {

		case Notifications.SHOW_PRELOADER:
			data ? this.init() : this.release();
			break;
	}
};

PreloaderPanel.prototype.onInit = function() {
	reloadImages();
};
