/*
 * File: apme.visuals.js
 * Author: Jo�o Fonseca (j.fonseca@netcabo.pt)
 */
var apme = apme || {};

apme.visuals = {
	hideVideo : function() {
		$("#video_container").hide();
	},
	showVideo : function() {
		$("#video_container").show();
	},
	deleteOverlay : function() {
		var that = this;
		$("#simple_overlay").fadeOut(1000, function() {
			$(this).remove();
			that.showVideo();
		});
	},
	createOverlay : function() {
		this.deleteOverlay();
		this.hideVideo();
		$("body").append(
				"<div id=\"simple_overlay\" style=\"display:none;\"></div>");
		$("#simple_overlay").css("height", $(document).height()).css("width",
				$(document).width()).fadeIn(1000);
	},
	createBox : function(id) {
		$("#" + id).remove();
		$("body").append('<div id="' + id + '"></div >');
		return $("#" + id);
	}
};

