/*
 * Navigation and appearance script for Farscape Australia
 * Author: Natalie Witt AKA The Admiral
 * Site: http://farscapeaustralia.iwarp.com/
 */

//variable declarations
var metaText, styleText, htmlHeadBody, htmlTopText, htmlBotText, htmlBodyEnd, lastModDate, quoteText, copyrightDate;
//var thequote = quotes;
//var newWind;

//variable instantiation
metaText = "";
styleText = "";
htmlHeadBody = "";
htmlTopText = "";
htmlBotText = "";
htmlBodyEnd = "";
lastModDate = getLastModDate();
//quoteText = getaQuote();
copyrightDate = getDateCopyright();


metaText = '<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1">\n';
metaText += '<META NAME="TITLE" CONTENT="Farscape Australia Club">\n';
metaText += '<META NAME="DESCRIPTION" content="Farscape Australia the first club for Australian fans of Farscape (Scapers). Home of the Farscape Personality Test and Farscapology. Inside you\'ll find community resources such as message boards, chats, email lists, your own free club email address, links to other Farscape web sites, downloadable images, sounds, fan fiction and art, games, and more.">\n';
metaText += '<META NAME="KEYWORDS" content="farscape, australia, farscape australia, farscape club, club, community, entertainment, personality test, message board, chat, email list, email address, download, images, sound, fan fiction, fan art, links, web sites, member join, competition, games, television, tv, series, ben browder, anthony simcoe, virginia hey, claudia black, lani tupu, jonathan hardy, gigi edgley, wayne pygram, john crichton, zotoh zhaan, aeryn sun, ka d\'argo, scorpius, chiana, rygel, pilot, moya, bialar crais">\n';
metaText += '<META NAME="OWNER" CONTENT="theadmiral@farscapeaustralia.iwarp.com">\n';
metaText += '<META NAME="AUTHOR" CONTENT="Natalie Witt">\n';
metaText += '<META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="English">\n';
metaText += '<META HTTP-EQUIV="VW96.OBJECT TYPE" CONTENT="Homepage">\n';
metaText += '<META NAME="RATING" CONTENT="General">\n';
metaText += '<META NAME="ROBOTS" CONTENT="index,follow">\n';
metaText += '<META NAME="REVISIT-AFTER" CONTENT="4 weeks">\n';

styleText = '<style type="text/css" src="http://farscapeaustralia.iwarp.com/style.css"></style>\n';

htmlHeadBody = '</head>\n';
htmlHeadBody += '<body bgcolor="#000000" text="#ffffff" link="cornflowerblue" leftmargin="0" topmargin="0" rightmargin="2">\n';

htmlTopText += '<!--navigation table start-->\n';
htmlTopText += '<table border="0" cellpadding="0" cellspacing="0" width="100%">\n';
htmlTopText += '  <tr>\n';
htmlTopText += '<!-- Shim row, height 1. -->\n';
htmlTopText += '   <td><img src="http://farscapeaustralia.iwarp.com/images/nav/shim.gif" width="31" height="1" border="0"></td>\n';
htmlTopText += '   <td><img src="http://farscapeaustralia.iwarp.com/images/nav/shim.gif" width="96" height="1" border="0"></td>\n';
htmlTopText += '   <td><img src="http://farscapeaustralia.iwarp.com/images/nav/shim.gif" width="21" height="1" border="0"></td>\n';
htmlTopText += '   <td><img src="http://farscapeaustralia.iwarp.com/images/nav/shim.gif" width="28" height="1" border="0"></td>\n';
htmlTopText += '   <td><img src="http://farscapeaustralia.iwarp.com/images/nav/shim.gif" width="442" height="1" border="0"></td>\n';
htmlTopText += '   <td><img src="http://farscapeaustralia.iwarp.com/images/nav/shim.gif" width="1" height="1" border="0"></td>\n';
htmlTopText += '  </tr>\n';
htmlTopText += '  <tr valign="top"><!-- row 1 -->\n';
htmlTopText += '   <td><img name="neural_r1_c1" src="http://farscapeaustralia.iwarp.com/images/nav/neural_r1_c1.jpg" width="31" height="98" border="0"></td>\n';
htmlTopText += '   <td colspan="2"><img name="neural_r1_c2" src="http://farscapeaustralia.iwarp.com/images/nav/neural_r1_c2.jpg" width="117" height="98" border="0"></td>\n';
htmlTopText += '   <td><img name="neural_r1_c4" src="http://farscapeaustralia.iwarp.com/images/nav/neural_r1_c4.jpg" width="28" height="98" border="0"></td>\n';
htmlTopText += '   <td><img name="neural_r1_c5" src="http://farscapeaustralia.iwarp.com/images/nav/neural_r1_c5.jpg" width="442" height="98" border="0"></td>\n';
htmlTopText += '   <td><img src="http://farscapeaustralia.iwarp.com/images/nav/shim.gif" width="1" height="98" border="0"></td>\n';
htmlTopText += '  </tr>\n';
htmlTopText += '  <tr valign="top"><!-- row 2 -->\n';
htmlTopText += '   <td><img name="neural_r2_c1" src="http://farscapeaustralia.iwarp.com/images/nav/neural_r2_c1.jpg" width="31" height="33" border="0"></td>\n';
htmlTopText += '   <td colspan="2"><img name="neural_r2_c2" src="http://farscapeaustralia.iwarp.com/images/nav/neural_r2_c2.jpg" width="117" height="33" border="0"></td>\n';
htmlTopText += '   <td><img name="neural_r2_c4" src="http://farscapeaustralia.iwarp.com/images/nav/neural_r2_c4.jpg" width="28" height="33" border="0"></td>\n';
htmlTopText += '   <td rowspan="5" width="100%" height="447">\n';
htmlTopText += '     <!--content table start-->\n';
htmlTopText += '     <table border="0" cellpadding="0" cellspacing="0">\n';
htmlTopText += '       <tr><td>\n';

htmlBotText = '       </td></tr>\n';
htmlBotText += '     </table>\n';
htmlBotText += '     <!--content table end-->\n';
htmlBotText += '   </td>\n';
htmlBotText += '   <td><img src="http://farscapeaustralia.iwarp.com/images/nav/shim.gif" width="1" height="33" border="0"></td>\n';
htmlBotText += '  </tr>\n';
htmlBotText += '  <tr valign="top"><!-- row 3 -->\n';
htmlBotText += '   <td><img name="neural_r3_c1" src="http://farscapeaustralia.iwarp.com/images/nav/neural_r3_c1.jpg" width="31" height="305" border="0"></td>\n';
htmlBotText += '   <td rowspan="2" colspan="2" align="center" width="117" height="371"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH=103 HEIGHT=348> <PARAM NAME=movie VALUE="http://farscapeaustralia.iwarp.com/images/nav/flat.swf?tarframe=_self&exbackground=969696&makenavfield0=Home&makenavurl0=http://farscapeaustralia.iwarp.com/home.html&makenavfield1=About FA&makenavurl1=http://farscapeaustralia.iwarp.com/about.html&makenavfield2=Community&makenavurl2=http://farscapeaustralia.iwarp.com/community.html&makenavfield3=Downloads&makenavurl3=http://farscapeaustralia.iwarp.com/downloads.html&makenavfield4=Fan Corner&makenavurl4=http://farscapeaustralia.iwarp.com/fancorner.html&makenavfield5=Fun Zone&makenavurl5=http://farscapeaustralia.iwarp.com/funzone.html&makenavfield6=Membership&makenavurl6=http://farscapeaustralia.iwarp.com/join.html&makenavfield7=Command&makenavurl7=http://farscapeaustralia.iwarp.com/ccmember.html&makenavfield8=News&makenavurl8=http://farscapeaustralia.iwarp.com/news.html&makenavfield9=Resources&makenavurl9=http://farscapeaustralia.iwarp.com/resources.html&makenavfield10=The Episodes&makenavurl10=http://farscapeaustralia.iwarp.com/theeps.html&makenavfield11=Guestbook&makenavurl11=http://books.dreambook.com/theadmiral/farscapeaust.sign.html&makenavfield12=Rings/Awards&makenavurl12=http://farscapeaustralia.iwarp.com/rings.html&makenavfield13=Contact&makenavurl13=http://farscapeaustralia.iwarp.com/contact.html&makenavfield14=Search&makenavurl14=http://farscapeaustralia.iwarp.com/search.html&makenavfield15=Site Index&makenavurl15=http://farscapeaustralia.iwarp.com/siteindex.html&makenavfield16=Copyright&makenavurl16=http://farscapeaustralia.iwarp.com/copyright.html"> <PARAM NAME=loop VALUE=false> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=scale VALUE=noborder> <PARAM NAME=salign VALUE=LT> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="http://farscapeaustralia.iwarp.com/images/nav/flat.swf?tarframe=_self&exbackground=969696&makenavfield0=Home&makenavurl0=http://farscapeaustralia.iwarp.com/home.html&makenavfield1=About FA&makenavurl1=http://farscapeaustralia.iwarp.com/about.html&makenavfield2=Community&makenavurl2=http://farscapeaustralia.iwarp.com/community.html&makenavfield3=Downloads&makenavurl3=http://farscapeaustralia.iwarp.com/downloads.html&makenavfield4=Fan Corner&makenavurl4=http://farscapeaustralia.iwarp.com/fancorner.html&makenavfield5=Fun Zone&makenavurl5=http://farscapeaustralia.iwarp.com/funzone.html&makenavfield6=Membership&makenavurl6=http://farscapeaustralia.iwarp.com/join.html&makenavfield7=Command&makenavurl7=http://farscapeaustralia.iwarp.com/ccmember.html&makenavfield8=News&makenavurl8=http://farscapeaustralia.iwarp.com/news.html&makenavfield9=Resources&makenavurl9=http://farscapeaustralia.iwarp.com/resources.html&makenavfield10=The Episodes&makenavurl10=http://farscapeaustralia.iwarp.com/theeps.html&makenavfield11=Guestbook&makenavurl11=http://books.dreambook.com/theadmiral/farscapeaust.sign.html&makenavfield12=Rings/Awards&makenavurl12=http://farscapeaustralia.iwarp.com/rings.html&makenavfield13=Contact&makenavurl13=http://farscapeaustralia.iwarp.com/contact.html&makenavfield14=Search&makenavurl14=http://farscapeaustralia.iwarp.com/search.html&makenavfield15=Site Index&makenavurl15=http://farscapeaustralia.iwarp.com/siteindex.html&makenavfield16=Copyright&makenavurl16=http://farscapeaustralia.iwarp.com/copyright.html" loop=false menu=false quality=high scale=noborder salign=LT wmode=transparent bgcolor=#000000 WIDTH=103 HEIGHT=348 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT></td>\n';
htmlBotText += '   <td><img name="neural_r3_c4" src="http://farscapeaustralia.iwarp.com/images/nav/neural_r3_c4.jpg" width="28" height="305" border="0"></td>\n';
htmlBotText += '   <td><img src="http://farscapeaustralia.iwarp.com/images/nav/shim.gif" width="1" height="305" border="0"></td>\n';
htmlBotText += '  </tr>\n';
htmlBotText += '  <tr valign="top"><!-- row 4 -->\n';
htmlBotText += '   <td><img name="neural_r4_c1" src="http://farscapeaustralia.iwarp.com/images/nav/neural_r4_c1.jpg" width="31" height="66" border="0"></td>\n';
htmlBotText += '   <td><img name="neural_r4_c4" src="http://farscapeaustralia.iwarp.com/images/nav/neural_r4_c4.jpg" width="28" height="66" border="0"></td>\n';
htmlBotText += '   <td><img src="http://farscapeaustralia.iwarp.com/images/nav/shim.gif" width="1" height="66" border="0"></td>\n';
htmlBotText += '  </tr>\n';
htmlBotText += '  <tr valign="top"><!-- row 5 -->\n';
htmlBotText += '   <td rowspan="2"><img name="neural_r5_c1" src="http://farscapeaustralia.iwarp.com/images/nav/neural_r5_c1.jpg" width="31" height="43" border="0"></td>\n';
htmlBotText += '   <td width="96" height="29" align="center" class="small">Last Updated<br>' + lastModDate + '</td>\n';
htmlBotText += '   <td rowspan="2" colspan="2"><img name="neural_r5_c3" src="http://farscapeaustralia.iwarp.com/images/nav/neural_r5_c3.jpg" width="49" height="43" border="0"></td>\n';
htmlBotText += '   <td><img src="http://farscapeaustralia.iwarp.com/images/nav/shim.gif" width="1" height="29" border="0"></td>\n';
htmlBotText += '  </tr>\n';
htmlBotText += '  <tr valign="top"><!-- row 6 -->\n';
htmlBotText += '   <td><img name="neural_r6_c2" src="http://farscapeaustralia.iwarp.com/images/nav/neural_r6_c2.jpg" width="96" height="14" border="0"></td>\n';
htmlBotText += '   <td><img src="http://farscapeaustralia.iwarp.com/images/nav/shim.gif" width="1" height="14" border="0"></td>\n';
htmlBotText += '  </tr>\n';
htmlBotText += '  <!--random quote start-->\n';
htmlBotText += '  <tr valign="top">\n';
htmlBotText += '    <td colspan="6" id="tdsmall" align="center">\n';
htmlBotText += '    Can\'t see the flash navbar? Visit the text-based <a href="http://farscapeaustralia.iwarp.com/siteindex.html">site index</a>.\n';
//htmlBotText += '    <hr>\n';
//htmlBotText += '    <ISML TYPE="file" SRC="http://farscapeaustralia.iwarp.com/quotescript.txt" LINE="random">\n';
//htmlBotText += '      <script type=text/javascript src=quotes/quotes1.js></script>\n';
//htmlBotText += quoteText + '</blockquote></td>\n';
htmlBotText += '    </td>\n';
htmlBotText += '  </tr>\n';
htmlBotText += '  <!--random quote end-->\n';
htmlBotText += '</table>\n';
htmlBotText += '<!--navigation table end-->\n';
htmlBotText += '<table border="0" align="center"><tr><td id="tdsmall" valign="center" align="center">';
htmlBotText += '&copy; 2001' + copyrightDate;
htmlBotText += '<a href="http://www16.brinkster.com/talie/">Numbat Creations <img src="images/numbat.gif" width="68" height="57" border="0" align="center"></a></p>\n';
htmlBotText += '</td></tr></table>\n';

htmlBodyEnd = '</body>';

/*
function writeWind () {
  spawn = open('','','width=750,height=500,scrollbars=yes');
  spawn.document.clear();
  spawn.document.open();
	spawn.document.writeln('<HTML><HEAD><TITLE>Nav Trial</TITLE>');
	spawn.document.writeln(metaText);
	spawn.document.writeln(styleText);
	spawn.document.writeln(htmlTopText);
	spawn.document.writeln('content goes in here');
	spawn.document.writeln(htmlBotText);
	spawn.document.writeln('</HTML>');
	spawn.document.close();
} //end function
*/

//function declarations
function writeTop () {
  document.writeln( metaText );
  document.writeln( styleText );
  document.writeln( htmlHeadBody );
  document.writeln( htmlTopText );
} //end function

function writeBottom () {
  document.writeln( htmlBotText );  
  document.writeln( htmlBodyEnd );
} //end function

function writeHomeTop () {
  document.writeln( metaText );
  document.writeln( styleText );
  document.writeln( htmlHeadBody );
} //end function

function writeHomeMidTop () {
  document.writeln( htmlTopText );
} //end function

function writeHomeMidBot () {
  document.writeln( htmlBotText );
} //end function

function getLastModDate() {
  var lastMod, date, dayNum, month, monthStr, year;
  monthStr = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
  lastMod = document.lastModified;
  date = new Date(lastMod);
  dayNum = date.getDate();
  month = date.getMonth();
  year = date.getFullYear();
  if(lastMod != 0) {
    return (dayNum + " " + monthStr[month] + " " + year);
  }
  else {
    return (" ");
  }
} //end function

/*
function get_random(maxNum) {
  if (Math.random && Math.round) {
    var ranNum= Math.round(Math.random()*(maxNum-1));
    ranNum+=1;
    return ranNum;
  }
  else {
    today = new Date();
    hours = today.getHours();
    mins  = today.getMinutes();
    secn  = today.getSeconds();
    if (hours==19)
      hours=18;
    var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
    return ranNum;
  }
} //end function

function getaQuote() {
  //var quote,
  var maxQuotes, whichQuote;
  //quote = quotes;
  maxQuotes  = thequote.length;
  whichQuote = get_random(maxQuotes);
  whichQuote--;

  return thequote[whichQuote];
} //end function
*/

function getDateCopyright () {
  var date = new Date();
  if (date.getFullYear() != "2001")
    return ( "-" + date.getFullYear() + " " );
  else
    return " ";
} //end function
