//**********************************************************
// Standard rollover code used throughout the site
// Jeff Chew
//**********************************************************

// imagename = name of the image within the jsp file
// imagestate = defines either the on or off state...typically the imagename + "On" or "Off"
function rollover(imagename,imagestate){
	document.images[imagename].src = eval(imagestate).src;
}

function changeStoragetips(imageobj){
    $('div.rightColumn').each( function(){
        $(this).css('display','none');        
    });
    //turn off all of the menu items
    $('div.menuContainer').find('img').each( function(){
        changeImage(this,$(this).attr('class') + 'Off');
    });

    //swap the highlighted menu item to on
    changeImage(imageobj,$(imageobj).attr('class') + 'On');

    $('#' + $(imageobj).attr('class') + 'Content').css('display','block');
}

function changeImage(imageobj,imagestate) {
    imageobj.src = eval(imagestate).src;
}