document.observe('dom:loaded', function(){
 
 $$('.year').invoke('hide');
 $('2012').show();
 
 $$('#pr-nav a').each(function(a) {
    a.observe('click', function(e) {
      Event.stop(e);
  		
  		// select view from news nav    
      $$('#pr-nav li').invoke('removeClassName','selected');
      var newsview = $(this).up('li').id;
      $(newsview).addClassName('selected');
      
      // show selected content
      var showthese = ($(this).readAttribute('href')).substr(1); // get href, minus the hash
      if(showthese=='all') { // if 'all' show everything
      	$$('.year').invoke('show');
      } else {
      	$$('.year').invoke('hide'); // hide everything
      	$(showthese).show(); // show only fmp or bento      	
      }
    }.bindAsEventListener(a));
  })

});

// similar script done for /contact/news/awards/index.html

/*
document.observe('dom:loaded', function(){

  $$('#pr-nav a').each(function(a) {
    a.observe('click', function(e) {
      Event.stop(e);
      
      $$('#pr-nav li').invoke('removeClassName','selected');
      var prview = $(this).up('li').id;
      $(prview).addClassName('selected');
      
    }.bindAsEventListener(a));
  });
  
function year2007(){

   $('2009').hide()
   $('2008').hide()
   $('2007').show();
}

function year2008(){

   $('2009').hide()
   $('2007').hide()
   $('2008').show();
}

function year2009(){
	$('2009').show()
	$('2008').hide()
	$('2007').hide();
}

});
*/
