
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 antagonist in this fic, while a slapstick character, does attempt to behave like an abusive boyfriend, although he is largely unsuccessful and his intended victim remains well outside the grasp of his intended control throughout the story.  His actions lead directly to his demise.  Twice.  There is also some violence involving wildlife. \
'

var WPFootnote2 = '<span class="WPNormal"><p>footnote test  \
'

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'" );
}
