// Cahnges the content of a page

function activateContent(sender) 
{
   //Deselect all buttons
   $('div.buttonsSelector img').each(function() {
        this.src = this.src.replace('Light_Selected.png','Light.png');       
    });

   //Select the active button
   sender.src = sender.src.replace('Light.png','Light_Selected.png');    
   
   //Hide the existing selected content li
   $('ul.contentSelector li.show').removeClass('show');
   
    //Show the selected content li
    var contentId = sender.id.replace('img','li');
        
    var selectedContent = $("#" + contentId);    
    selectedContent.addClass('show');
}

