function shownews() {
   var node = document.getElementById('newspane');
   var button = node.parentNode.firstChild;
   while (button.nodeName != 'BUTTON') button = button.nextSibling;
    
   var show = (node.style.display == 'none');
   if (show) {  
      createCookie('hidenews',false);
      node.style.display = 'block';
      var text = 'hide';
      button.replaceChild(document.createTextNode(text), button.firstChild);       
   } else {
      createCookie('hidenews',true);
      node.style.display = 'none';      
      var text = 'show';
      button.replaceChild(document.createTextNode(text), button.firstChild);       
   }   
}
function rendernews() {
   var hidenews = readCookie('hidenews');
   var node = document.getElementById('newspane');
   node.style.display = (hidenews)?'none':'block';
   var button = node.parentNode.firstChild;
   while (button.nodeName != 'BUTTON') button = button.nextSibling;
   var text = (hidenews)?'show':'hide';
   button.replaceChild(document.createTextNode(text), button.firstChild);       
}  
