<!-- Begin
function header_corplogo ( ishome ) {
  if ( ishome != 1 ) {
    document.write('<a href="index.html">');
  }
  document.write('<img src="images/PTGames_logo_small.gif" alt="PT Games" border="0" height="145" width="112">');
  if ( ishome != 1 ) {
    document.write ('</a>');
  }
}

function header_d20logo ( isd20 ) {
  if ( isd20 != 1 ) {
    document.write('<a href="http://www.rpgnow.com/product_info.php?products_id=55437&filters=0_2890_0&free=1">');
  }
  document.write('<img src="images/OGL_Logo_small.gif" alt="OGL" border="0" hspace="10" vspace="10" height="102" width="121">');
  if ( isd20 != 1 ) {
  document.write('</a>');
  }
}

function button_link ( pagename ) {
  document.write('<a href="', pagename, '.html"');
}

function navbar_button ( pagename, btnnum, btnpath, alttext, classpath ) {
  button_link(pagename);
  document.write(' onmouseover="swapimage(ImageArray, ', btnnum, ', 1);"');
  document.write(' onmouseout="swapimage(ImageArray, ', btnnum, ', 0);"');
  document.write('>');
  document.write('<img SRC="', btnpath, '" ');
  document.write(' name="Button', btnnum, '" ');
  document.write(' alt="', alttext, '" ');
  document.write(' border=0 ');
  document.write(' class="', classpath, '" ');
  document.write(' id="Button', btnnum, '"');
  document.write('>');
  document.write('</a>');
}

function navbar_buttons (pagename) {
  document.write('<p  class="navbar">');
  navbar_button('index', 0, 'images/home.png', 'Home Page', 'images/home1.png');
  navbar_button('products', 1, 'images/products.png', 'Products', 'images/products1.png');
  navbar_button('Settings', 3, 'images/settings.png', 'Settings', 'images/settings1.png');
  navbar_button('FreeStuff', 4, 'images/freestuff.png', 'Stuff', 'images/freestuff1.png');
  navbar_button('Links', 5, 'images/links.png', 'Links', 'images/links1.png');
  navbar_button('about', 6, 'images/about.png', 'About', 'images/about1.png');
  navbar_button('contact', 7, 'images/contact.png', 'Contact', 'images/contact1.png');
  navbar_button('sitemap', 8, 'images/sitemap.png', 'Site Map', 'images/sitemap1.png');
  document.write('</p>');
}

function navbar_sub ( pagename ) {
  document.write('<p class="navbar">');
  navbar_button('Settings', 0, 'images/settings.png', 'Settings', 'images/settings1.png');
  navbar_button('index', 1, 'images/home.png', 'Home Page', 'images/home1.png');
  navbar_button('TheContinentofTerra', 2, 'images/terra.png', 'Terra', 'images/terra1.png');
  navbar_button('TheDarkContinent', 3, 'images/darkc.png', 'Dark Cont.', 'images/darkc1.png');
  document.write('</p>');
}

function pagename_link ( pagename, title ) {
  button_link(pagename);
  document.write('>', title, '</a>');
}

function copyright_notice () {
  document.write('<p class="notice">');
  document.write('This web page is Copyright &copy; 2003-2010 by PT Games, Inc. All Rights Reserved.');
  document.write('</p>');
}

function footer_links ( pagename ) {
  document.write('<p class="footer">');
  pagename_link('index', 'Home Page');
  document.write(' | ');
  pagename_link('about', 'About Us')
  document.write(' | ');
  pagename_link('contact', 'Contact Us');
  document.write(' | ');
  pagename_link('products', 'Products');
  document.write(' | ');
  pagename_link('sitemap', 'Site Map');
  document.write(' | ');
  pagename_link('Settings', 'Settings');
  document.write(' | ');
  pagename_link('FreeStuff', 'Free Stuff');
  document.write(' | ');
  pagename_link('Links', 'Links');
  document.write(' | ');
  pagename_link('newsarchive', 'News Archive');
  document.write('</p>');
}

function footer_sublinks ( pagename ) {
  document.write('<p class="footer">');
  pagename_link('Settings', 'Settings');
  document.write(' | ');
  pagename_link('index', 'Home Page');
  document.write(' | ');
  pagename_link('TheContinentofTerra', 'The Continent of Terra');
  document.write(' | ');
  pagename_link('TheDarkContinent', 'The Dark Continent');
  document.write('</p>');
}

function host_footer () {
  document.write('<p class="notice">Hosted by RPGShelf</p>');
}

function footer_content ( pagename, issub ) {
  document.write('<br>');
  copyright_notice();
  document.write('<br>');
  if ( issub == 1 ) {
    footer_sublinks(pagename);
  }
  else {
    footer_links(pagename);
  }
  document.write('<br>');
  host_footer();
  document.write('<br>');
}
// End -->
