// This is the on load of every page.
$(document).ready( function() {
	$.fn.add_layer = function(bg, params) {
		$(this).each( function() {

			s = $(this).extend( {}, params || {});

			$last = ($(this).find('.add_background:last').length > 0 ? $(this).find('.add_background:last') : $(this));
			$last.html('<div class="add_background"><div>' + $last.html() + '</div></div>');
			$last = $(this).find('.add_background:last');
			$last.css( {
				'background' :bg,
				'width' :'100%',
				'height' :'100%'
			});

			$last = $(this).find('.add_background div:last');

			if (s.insideCss) {
				$last.css(s.insideCss);
			}
			if (s.insideClass)
				$last.addClass(s.insideClass);
		});
	}

	// Hide answers
	$(".faqAnswerWrap").hide();

	// Bind mouseOvers in for the mainPage boxes.
	/*
	$(".mainPageBox").bind("mouseenter", function() {
		$(".mainPageBoxLongBody", this).slideDown(250);
	}).bind("mouseleave", function() {
		$(".mainPageBoxLongBody", this).slideUp(250);
	});
	*/
	
	

	// Hide firefox modal div.
	$("#firefoxModal").hide();

	});

/*
function openFirefoxAlphaSignup() {
	$("#firefoxModal").modal( {
		onClose : function(dialog) {
			dialog.data.fadeOut('fast', function() {
				dialog.container.slideUp('normal', function() {
					dialog.overlay.fadeOut('fast', function() {
						$.modal.close(); // must call this!
						});
				});
			});
		}
	});

}
*/

