function FitModule() {
}

FitModule.prototype.notificationsList = [];
FitModule.prototype.name = "FitModule";

FitModule.prototype.release = function() {

}

FitModule.prototype.init = function() {

	Phire.placeTemplate("#content", "FitIntro.html #fit", $.callback(this, this.onInit));
	Phire.sendNotification(Notifications.NAV_STATE, "fit");
}
/************************************
 *  Start
 *************************************/

FitModule.prototype.onInit = function() {

	$("#fit_back").click(function() {
		Phire.sendNotification(Notifications.SHOW_MODULE, {
			module : "MainModule"
		});
	});
	$("#fit_interview_intro").click(function() {
		Phire.sendNotification(Notifications.SHOW_MODULE, {
			module : "FitInterviewModule",
			data : "intro"
		});
	});
	$("#fit_interview_outro").click(function() {
		Phire.sendNotification(Notifications.SHOW_MODULE, {
			module : "FitInterviewModule",
			data : "outro"
		});
	});

	$("#fit_interview_video").hover(function() {
		$("#fit_interview_video_image").css("background-image", "url(./img/fit/video_button_rollover.jpg)");
		$("#fit_interview_video_label").css("color", "#000");
		$("#fit_bubble").fadeIn("fast");
	}, function() {
		$("#fit_interview_video_image").css("background-image", "url(./img/fit/video_button_copy.jpg)");
		$("#fit_interview_video_label").css("color", "#FFF");
		$("#fit_bubble").hide();
	});
	var x = 149;
	var y = -15;

	switch(BrowserDetect.browser) {
		case "Opera":
			x = 152;
			break;
		case "Explorer":
			x = 147;
			if(BrowserDetect.version < 9) {
				x = 152;
				$("#fit_interview_video_label").css("margin-top", "-31px");
				$("#fit_interview_video_image").css("background-image", "url(./img/fit/video_button_copy_ie7.jpg)");
				$("#fit_interview_video").hover(function() {
					$("#fit_interview_video_image").css("background-image", "url(./img/fit/video_button_rollover_ie7.jpg)");
					$("#fit_interview_video_label").css("color", "#000");
					$("#fit_bubble").fadeIn("fast");
				}, function() {
					$("#fit_interview_video_image").css("background-image", "url(./img/fit/video_button_copy_ie7.jpg)");
					$("#fit_interview_video_label").css("color", "#FFF");
					$("#fit_bubble").hide();
				});
			}
			break;
		case "Firefox":
			x = 150;
			y = -14;
			break;
		case "Chrome":
			break;
	}
	$("#fit_interview_video").css("left", x);
	$("#fit_interview_video").css("top", y);

	$("#fit_interview_video").click(function() {
		Phire.sendNotification(Notifications.SHOW_MODULE, {
			module : "VideoModule"
		});
	});
	$("#fit_bubble").hide();
	UserInfo.inTest = false;
	reloadImages();
};

