
var numOfAwardPages = 3;
var awardPageSubBanners = new Array( "innovation_sub_banner", "negotiation_sub_banner", 
                                     "organizationIssue_sub_banner", "trust_sub_banner",
                                     "teachingExcellence_sub_banner");

var awards = new Array ( "teachingExcellenceAward", "innovationAward1", "innovationAward2", 
                         "negotiationAward1", "negotiationAward2", "negotiationAward3",
                         "organizationalIssueAward1", "trustAward1", "trustAward2",
                         "organizationalIssueAward2" );

function resetAwardPage()
{
    for( var i=0; i<awardPageSubBanners.length; i++)
        document.getElementById( awardPageSubBanners[i] ).style.display = "none";
    for( var i=0; i<awards.length; i++)
        document.getElementById( awards[i] ).style.display = "none";
        
    document.getElementById( "awardsBackMenu" ).style.display = "none";        
    $("#accomplishmentIndex").fadeIn();
}

function showAward( awardIndex )
{

    switch ( awardIndex )
    {
        case 1:
            $("#accomplishmentIndex").fadeOut( "slow", function() {
                $("#accomplishmentContent, #innovation_sub_banner, #innovationAward1, #innovationAward2, #awardsBackMenu").fadeIn();
             });
             break;    
        case 2:
            $("#accomplishmentIndex").fadeOut( "slow", function() {
                $("#accomplishmentContent, #negotiation_sub_banner, #negotiationAward1, #negotiationAward2, #negotiationAward3, #awardsBackMenu").fadeIn();
             });
             break;    
        case 3:
            $("#accomplishmentIndex").fadeOut( "slow", function() {
                $("#accomplishmentContent, #organizationIssue_sub_banner, #organizationalIssueAward1, #organizationalIssueAward2, #awardsBackMenu").fadeIn();
             });
             break;    
        case 4:
            $("#accomplishmentIndex").fadeOut( "slow", function() {
                $("#accomplishmentContent, #trust_sub_banner, #trustAward1, #trustAward2, #awardsBackMenu").fadeIn();
             });
             break;
        case 5:
            $("#accomplishmentIndex").fadeOut( "slow", function() {
                $("#accomplishmentContent, #teachingExcellence_sub_banner, #teachingExcellenceAward, #awardsBackMenu").fadeIn();
             });
             break;             
    }
    

}
