window.fh_add_hover_effect = function(img_selector) {
	jQuery(img_selector).mouseenter(function(evt) {
		var instance = this;
		var item = jQuery(instance);
		var source = item.attr("src");
		var hover_source = source.replace(/\/images\/menu/, "/images/hover_menu");
		item.data("original_source", source);
		item.data("hover_source", hover_source);
		item.attr("src", hover_source);
	});

	jQuery(img_selector).mouseleave(function (evt) {
		var instance = this;
		var item = jQuery(this);
		item.attr("src", item.data("original_source"));
	});
}

window.fh_email_this_page = function() {
	var page = "emailwindow.php?email=" + window.location.href;
	var width = 220;
	var height = 468;
	var left = (screen.width - width ) / 2;
	var top = (screen.height - height) / 2;

	var w = window.open(page, "", "width=" + width + ",height=" + height + ",left=" + left + ",top=" + top);
	if (w) {
		if (w.focus) {
			w.focus();
		}
		return true;
	}

	return false;
}

