
function btSearcher(){
    $('a.findPhone, a.findPhone_fr').click(function(){
        $('#Searcher').slideDown();
        return false;
    });
    
   /*
 $('#Searcher input.search').hover(function(){
        var imgPath = $(this).attr('src');
        $(this).attr({
            'src': imgPath.replace('.gif', '_on.gif')
        })
    }, function(){
        var imgPath = $(this).attr('src');
        $(this).attr({
            'src': imgPath.replace('_on.gif', '.gif')
        })
    });
*/
    
}


$('a.popDisclaimer').click(function(){
    $('div.disclaimerPopup').show();
    return false;
});

$('a.PopUpClose').click(function(){
    $('div.disclaimerPopup').hide();
    return false;
});

function boxSlide(){

    $(window).scroll(function(){
        var previewOffset = getYOffset() + 150;
        $('div.disclaimerPopup').stop().animate({
            'top': previewOffset
        }, 400, "swing");
    });
}

function getYOffset(){
    var pageY;
    if (typeof(window.pageYOffset) == 'number') {
        pageY = window.pageYOffset;
    }
    else {
        pageY = document.documentElement.scrollTop;
    }
    return pageY;
}

function tableFunctions(){
    $('table.bt_results tr:even').addClass('even');
    $('table.bt_results tr td:last-child').css({
        'width': '400px'
    });
}

tableFunctions();

boxSlide();

btSearcher();


