var gAgent = navigator.userAgent.toLowerCase()
var gWindows = ( (gAgent.indexOf( "win" ) != -1 ) || ( gAgent.indexOf( "16bit" ) != -1 ) )
var gIE = ( gAgent.indexOf( "msie" ) != -1 )
var bInlineFloats = ( gWindows && gIE && ( parseInt( navigator.appVersion ) >= 4 ) )
var floatwnd = 0

var WPFootnote1 = '<span class="WPNormal"><p>The starship Voyager is trying to find a way home after being hurled seventy thousand light years from Earth by a technologically superior alien calling himself the Caretaker.  This turned their six week mission in the Badlands into a potentially lifelong journey through the Delta Quadrant.  Captain Kathryn Janeway is busy using a Starfleet protocol pertaining to shipboard fraternization to deny herself happiness, while not enforcing any such regulations with regards to the rest of the crew.  First officer Commander Chakotay is a member of a fictitious Native American tribe based loosely on the Mayan.  Chakotay, Henley, and several dozen other current members of the crew were previously members of the Maquis, a group of illegal freedom fighters protesting the terms of a treaty with the hostile Cardassians, which placed innocent Federation settlers in a so-called demilitarized zone and cost thousands of lives when the Cardassians proved less than honorable.</p>\
</span>'

var WPFootnote2 = '<span class="WPNormal"><p>This work of fiction contains discussions of religion, with opinions expressed by characters including a non-denominational Christian of the twenty-fourth century, an atheist, a spiritual individual of fictional and therefore generalized Native American background, and an open minded scientist who believes in something vague and unspecified.  Every reader is certain to disagree with some or all of them.  Please read this with the Vulcan concept of IDIC in mind.  Significant effort has been made to ground this fic firmly within Star Trek canon.  Statements of fact made by characters are fact within the Star Trek universe.  No major character is portrayed as accepting belief systems that they do not hold in canon.  The beliefs of the lower decks characters were carefully considered for plausibility in light of available canon material.</p>\
</span>'

function WPShow( WPid, WPtext )
{
  if( bInlineFloats )
    eval( "document.all." + WPid + ".style.visibility = 'visible'" );
  else
  {
    if( floatwnd == 0 || floatwnd.closed )
      floatwnd = window.open( "", "comment", "toolbars=0,width=600,height=200,resizable=1,scrollbars=1,dependent=1" );
    floatwnd.document.open( "text/html", "replace" );
    floatwnd.document.write( "<html><head>\r\n" );
    floatwnd.document.write( "<style> p { margin-top:0px; margin-bottom:1px; } </style>\r\n" );
    floatwnd.document.write( "</head><body>\r\n" );
    floatwnd.document.write( WPtext );
    floatwnd.document.write( '<br><a href="javascript: self.close()">Close</a>');
    floatwnd.document.write( "</body></html>" );
    floatwnd.document.close();
    floatwnd.focus();
  }
}

function WPHide( WPid )
{
  if( bInlineFloats )
    eval( "document.all." + WPid + ".style.visibility = 'hidden'" );
}
