// adds on load events

addLoadListener(init);

function init(){
	// set selected menu marker
	//document.getElementById('menu' + parseFloat(pageNum)).style.backgroundColor='#FFFFFF';
	document.getElementById('menu' + parseFloat(pageNum)).style.color='#EBD5AD';
	document.getElementById('menu' + parseFloat(pageNum)).style.fontStyle='italic';
	document.getElementById('menu' + parseFloat(pageNum)).style.backgroundColor='#985321';


return true;
}
/*
addLoadListener(book);

function book() { // set the form focus
	document.book.email.focus();  // select first field
	
}
*/
function addLoadListener(fn)
{
  if (typeof window.addEventListener != 'undefined')
  {
    window.addEventListener('load', fn, false);
  }
  else if (typeof document.addEventListener != 'undefined')
  {
    document.addEventListener('load', fn, false);
  }
  else if (typeof window.attachEvent != 'undefined')
  {
    window.attachEvent('onload', fn);
  }
  else
  {
    var oldfn = window.onload;
    if (typeof window.onload != 'function')
    {
      window.onload = fn;
    }
    else
    {
      window.onload = function()
      {
        oldfn();
        fn();
      };
    }
  }
}