window.onload = function(e) {
   resetFontSize();
}
	
function getCurrentsize() {
  return currentSize;
}

function setCurrentsize(newsize) {
  currentSize = newsize;

  if ( currentSize > 17 || currentSize < 8) {
     resetFontSize();
  } else {

  if (document.getElementById) 
  {
     // this is the way the standards work
     document.getElementById("story").style.cssText = 'font-size:'+currentSize+'px';
  }  
  else if (document.all)
  {
     // this is the way old msie versions work
     document.all("story").style.cssText = 'font-size:'+currentSize+'px';
  }
  else if (document.layers)
  {
     // this is the way nn4 works
     document.layers("story").style.cssText = 'font-size:'+currentSize+'px';
  }
  }

}

function resetFontSize() {
  currentSize = 12;
  setCurrentsize(currentSize);
}


function fontSizeUp(whichLayer) {
  currentSize++;
  setCurrentsize(currentSize);
}

function fontSizeDown() {
  currentSize--;
  setCurrentsize(currentSize);
}

