
function title()
{
  relativeTitle('');
}

function relativeTitle(dir)
{
  document.write('<div class="content" style="background-color:white; margin:0px 0px 0px 0px"> ');
  document.write('<span style="margin:0px 50px 0px 0px"><img src="' + dir +'images/logo.gif"></span><img src="' + dir +'images/porsche.gif">')  
  document.write('<h6 style="margin-left: 100px;">New Zealand 924/944/968 Registry</h6>');
  document.write('</div>');
}


function basicComponents()
{
  menu();
  links();
  footer();
}

function relativeLinks(dir)
{
  document.write('<div id="rightnav">');

  document.write('<h3>Try these links</h3>'); 
  document.write('<hr noshade size="1">');
  document.write('<h2><img src="' + dir +'images/arrow.gif" width="12" height="9"><a href="http://www.porsche.co.nz" target="_blank">porsche nz</a><h2>');
  document.write('<h2><img src="' + dir +'images/arrow.gif" width="12" height="9"><a href="http://www.porsche.org.nz" target="_blank">nz porsche club</a><h2>');
  document.write('<h2><img src="' + dir +'images/arrow.gif" width="12" height="9"><a href="http://www.dimmer.net/hosted/944central/" target="_blank">944 central</a><h2>');
  document.write('<h2><img src="' + dir +'images/arrow.gif" width="12" height="9"><a href="http://www.trademe.co.nz/structure/listings/listings_search_results.asp?searchtype=GENERAL&searchstring=porsche+944" target="_blank">trademe</a><h2>');
  document.write('<h2><img src="' + dir +'images/arrow.gif" width="12" height="9"><a href="http://www.clarks-garage.com" target="_blank">clark\'s garage</a><h2>');
  document.write('<h2><img src="' + dir +'images/arrow.gif" width="12" height="9"><a href="http://www.rennlist.com" target="_blank">rennlist</a><h2>');
  
  document.write('<br><h2 style="color:blue;">Post a message on the registry <a href="http://sbonsey.proboards21.com" target="_blank">forum</a>.</h3>'); 
  document.write('</div>');
}

function links()
{
  relativeLinks('');  
}

function footer()
{
  document.write('<div class="content" style="background-color:white; border:0px">');
  document.write('<h4 style="margin-top:5px;margin-bottom:5px">Disclaimer: This site is not associated with Porsche Cars ');
  document.write('in any manner. All pictures and references to the Porsche name, car names, and car likenesses are for ');
  document.write('the purpose of entertainment and reference only.</h4>');
  document.write('<h4 style="text-align:center;margin-top:5px;margin-bottom:5px">© 2007 - all rights reserved</h4>');
  document.write('</div>');
}

function menu()
{
  relativeMenu('');
}

function relativeMenu(dir)
{
   document.write('<div id="leftnav">');
  
   document.write('<h2><a href="' + dir +'index.htm">Home</a></h2>');
   document.write('<h2><a href="' + dir +'history.htm">History</a></h2>');
   document.write('<h2><a href="' + dir +'registry.htm">Registry</a></h2>');
   document.write('<h2><a href="' + dir +'thecars.htm">The Cars</a></h2>');
   document.write('<h2><a href="' + dir +'articles.htm">Articles</a></h2>');
   document.write('<h2><a href="' + dir +'contact.htm">Contact</a></h2>');
            
   document.write('</div>');
}

