﻿var originalHeight;

$(document).ready(function () {

	// Define what happens when the textbox comes under focus
	// Remove the watermark class and clear the box
	$('.SearchTextInTitle').focus(function () {

		$(this).filter(function () {

			// We only want this to apply if there's not 
			// something actually entered
			return $(this).val() == "" || $(this).val() == "SEARCH"

		}).removeClass("WatermarkOn").val("");

	});

	// Define what happens when the textbox loses focus
	// Add the watermark class and default text
	$('.SearchTextInTitle').blur(function () {

		$(this).filter(function () {

			// We only want this to apply if there's not
			// something actually entered
			return $(this).val() == ""

		}).addClass("WatermarkOn").val("SEARCH");

	});

});


/* X-RM Tooltip in footer (shows location info */
$(document).ready(function () {
    $('#footerLocation').hide();
    $('#footerXRM').mouseenter(function () { $('#footerLocation').fadeIn(300) });
    $('#footerXRM').mouseleave(function () { $('#footerLocation').fadeOut(300) });
});
