

$(document).ready(function() {
    $('#trop-year').change( function() {
        $("#trop-year option:selected").each( function () {
            document.location = tropicsPrefix + 'archive/' + $(this).text() + '.html';
        });
    });

    $('#trop-storms').change( function() {
        $("#trop-storms option:selected").each( function () {
            document.location = tropicsPrefix  + $(this).val() + '.html';
        });
    });



    $('.archive-row').click( function() {

        var stormID = $(this).attr('stormID');
        if (stormID) {
            document.location = tropicsPrefix  + stormID+ '.html';
        }

    });


    // monthly summary
    $('#trop-summary-year').change( function() {
        $("#trop-summary-year option:selected").each( function () {
            document.location = tropicsPrefix + 'summary/' + $(this).val() + '.html';
        });
    });


});



