﻿function initHideAdvSearch()
{
    $(".advSearchContainer-hide").each( function()
    {
        // put screen back to top
        window.scrollTo(0,0);
    
        $(this).hide();
        
        $(this).removeClass("advSearchContainer-hide");
                
    });
    
    // Only do if inactive
    
    $(".hover").mouseover( function()
    {                            
        if( $(this).attr("src").match("_on") == null )
        {
            $(this).attr( "src", $(this).attr("src").replace( ".gif", "_on.gif" ) );
        }
    });
    
    $(".hover").mouseout( function()
    {
        if( $(this).attr("class").match("active") == null )
        {        
            $(this).attr( "src", $(this).attr("src").replace( "_on.gif", ".gif" ) );        
        }
    });
    
}