$(document).ready(function() {
    $('div#page>div#menu>table>tbody>tr td>img').mouseover(function() {
        var s = $(this).attr('src');
        s = s.replace('_off', '_on');
        $(this).attr('src', s);
    }).mouseout(function() {
        var s = $(this).attr('src');
        s = s.replace('_on', '_off');
        $(this).attr('src', s);
    });
    $('div#page>div#menu>table>tbody>tr td').mouseover(function() {
        $(this).find('ul').show();
    }).mouseout(function() {
        $(this).find('ul').hide();
    });
    $('#search').focus(function() { if ($(this).val() == 'Search') { $(this).val(''); } }).blur(function() { if ($(this).val() == '') { $(this).val('Search'); } });
    $('#searchForm').submit(function() {
        var url = 'http://search.efiglobal.com/search?q=' + $('#search').val() + '&btnG=Search+EFI+Global%2C+Inc.&sort=date%3AD%3AL%3Ad1&output=xml_no_dtd&oe=UTF-8&ie=UTF-8&client=default_frontend&proxystylesheet=default_frontend&site=Public';
        window.location = url;
        return false;
    });
    $('#mainBody,#mainBodyInner').css('height', ((window.innerHeight != null ? window.innerHeight : document.documentElement.clientHeight) - 199) + 'px');
    $(window).bind('resize', function() {
        $('#mainBody,#mainBodyInner').css('height', ((window.innerHeight != null ? window.innerHeight : document.documentElement.clientHeight) - 199) + 'px');
    });
    $('.required').parent().prev().prev().text('*');
    $('#menu>table>tbody>tr td>ul>li').click(function() { window.location = $(this).attr('title'); });
    $('#mainBodyInner table').each(function() {
       // $('<caption>Click first column to view or upload files.</caption>').appendTo(this);
    });
    $('#logintable>caption').text('');
    //$('div.rows>table>tbody>tr:odd').css('backgroundColor', '#ccc');
});
function hide() {
    $('#filelist').hide();
    return false;
}
