/**
 * @author nakacs1
 * This is a jQuery solution to fix the IE form button rollover/hover issue. 
 * http://docs.jquery.com/Events/hover
**/
 $(function() {
 	// apply to all the input buttons using the 'buttonGH' CSS
	$('input.buttonGH').hover( function() { $(this).attr("class", "buttonGH_hover") },function() { $(this).attr("class", "buttonGH") } );
	$('input.buttonGHcancel').hover( function() { $(this).attr("class", "buttonGHcancel_hover") },function() { $(this).attr("class", "buttonGHcancel") });
	$('input.buttonGHgo').hover( function() { $(this).attr("class", "buttonGHgo_hover") },function() { $(this).attr("class", "buttonGHgo") });
	$('input.search-go').hover( function() { $(this).attr("class", "search-go_hover") },function() { $(this).attr("class", "search-go") });
});

/**
	Adding old nav onload script functions that a lot of the pre 10/1/10 pages call on the body tag -- these are no longer used in the new nav -- remove from pages as you find them
**/
function toggle(section) { }; 
function imageToggle(sectionArrowID, downArrowSrc, rightArrowSrc, sectionID) {};

/**
 * @author alletx3
 * jQuery to set default text on search go button
**/
$(document).ready(function()
{
    $(".defaultText").focus(function(srcc)
    {
        if ($(this).val() == $(this)[0].title)
        {
            $(this).removeClass("defaultTextActive");
            $(this).val("");
        }
    });
    
    $(".defaultText").blur(function()
    {
        if ($(this).val() == "")
        {
            $(this).addClass("defaultTextActive");
            $(this).val($(this)[0].title);
        }
    });
    $(".defaultText").focus(); // may need to remove this if elements on page need focus on page load, this is here now because of FF caching behavior
    $(".defaultText").blur();
});
 
/**
Please note there is a second copy of this on the mychart server. Please update it or see the Member clinical team to update it.

 - RM 
**/
