// TREND PLOT FUNCTIONS

function trendurlswitch() {
    imglink = '/data/seaice_index/images/n_plot_hires.png';

    var selectedTrend = document.selectTrendForm.selectTrend.selectedIndex;

    if (selectedTrend == 0) {
        imglink = '/data/seaice_index/images/n_plot_hires.png';
    } 
    else if (selectedTrend == 1) {
        imglink = '/data/seaice_index/images/s_plot_hires.png';
    }
    else if (selectedTrend == 2) {
        imglink = '/data/seaice_index/images/daily_images/N_timeseries.png';
    }
    else if (selectedTrend == 3) {
        imglink = '/data/seaice_index/images/daily_images/S_timeseries.png';
    }

    return imglink;
};


function changeImage() {
    document.getElementById('trendImage').src=document.selectTrendForm.selectTrend.options[document.selectTrendForm.selectTrend.selectedIndex].value;
    document.getElementById('trendImage').width='250';
    document.getElementById('trendImage').alt='Click to view high-res image.';
};


// OTHER MENU JUMPER

function MM_jumpMenu(targ,selObj,restore) { //v3.0
    eval(targ + '.location="' + selObj.options[selObj.selectedIndex].value 
              + '"');
    if (restore) {
        selObj.selectedIndex = 0;
    }
};
