// JavaScript Document

$(document).ready(function() {

$('img.learnMore').mouseenter(function (){$(this).attr('src', 'images/learnMoreUp.png');});

$('img.learnMore').mouseleave(function (){$(this).attr('src', 'images/learnMore.png');});

$('#objectives').click(function (){
$('.objectives').show(); $('#objectives').removeClass("about"); $('#objectives').addClass("aboutUp");
$('.challenge').hide(); $('#challenge').removeClass("aboutUp"); $('#challenge').addClass("about");
$('.partners').hide(); $('#partners').removeClass("aboutUp"); $('#partners').addClass("about");
});

$('#challenge').click(function (){
$('.objectives').hide(); $('#objectives').removeClass("aboutUp"); $('#objectives').addClass("about");
$('.challenge').show(); $('#challenge').removeClass("about"); $('#challenge').addClass("aboutUp");
$('.partners').hide(); $('#partners').removeClass("aboutUp"); $('#partners').addClass("about");
});

$('#partners').click(function (){
$('.objectives').hide(); $('#objectives').removeClass("aboutUp"); $('#objectives').addClass("about");
$('.challenge').hide(); $('#challenge').removeClass("aboutUp"); $('#challenge').addClass("about");
$('.partners').show(); $('#partners').removeClass("about"); $('#partners').addClass("aboutUp");
});

$('#resourceFilter').val() == 1;

$('tr').show();

$('#resourceFilter').change(function() {

if ($(this).val() == 1) {$('tr').show();}
else if ($(this).val() == 2) {$('tr').show(); $('tr:not(".financial")').hide();}
else if ($(this).val() == 3) {$('tr').show(); $('tr:not(".operational")').hide();}
else if ($(this).val() == 4) {$('tr').show(); $('tr:not(".cases")').hide();}
else if ($(this).val() == 5) {$('tr').show(); $('tr:not(".legal")').hide();}
else if ($(this).val() == 6) {$('tr').show(); $('tr:not(".mission")').hide();};


});


});
