﻿function rollover(whichImage, whichType, status) {
    if (status)
        document.getElementById(whichImage).setAttribute('src', 'images/' + whichImage + '_ro.' + whichType);
    else
        document.getElementById(whichImage).setAttribute('src', 'images/' + whichImage + '_off.' + whichType);
}

function rollover_nav(whichImage, status) {
    if (status)
        document.getElementById('ctl00_' + whichImage).setAttribute('src', 'images/' + whichImage + '_ro.gif');
    else
        document.getElementById('ctl00_' + whichImage).setAttribute('src', 'images/' + whichImage + '_off.gif');
}

var txtZipCode = "ZIP Code";
function resetZipCode() {
    $('#ctl00_txtZipCode').val(txtZipCode);
}

function evalZipCode(value) {
    if ($(value).val() == "")
        resetZipCode();
    else
        txtZipCode = $(value).val();
}

$(document).ready(function () {
    $('#ctl00_txtZipCode').change(function (ev) { evalZipCode(ev.target); });
    $('#ctl00_txtZipCode').focus(function () { $(this).val(""); });
    $('#ctl00_txtZipCode').blur(function () { resetZipCode(); });

    $('#topNav_ISI').overlay({
        mask: {
            color: '#000',
            opacity: 0.60
        },
        top: 180,
        fixed: false,
        oneInstance: false
    });
});
