// JavaScript Document

$(document).ready(function(){
  
  // hide news text
  $('#news p').hide();
  $('#news h2').wrapInner('<a href="#"></a>');
  
  // display news text after click on headline
  $('#news h2').click(function(){
    $(this).nextAll().toggle();
  });

  // display active anker
  if (document.URL.indexOf('#')>=0) {
    myAnker = document.URL.substring(document.URL.indexOf('#')+1);
    $('#'+myAnker).nextAll().show();
  }
  
})
