//      Watermark
//      By Mark Morley (mark@islandnet.com)
//
//      A watermark is an image and/or a chunk of HTML code that will always
//      appear on your page in the same location, even if the user scrolls
//      or resizes the page.  Typically you see watermarks in the lower
//      right hand corner where they are the least likely to disrupt the
//      display.

// Define the height and with of your image or html block here (in pixels).

var height = 92;
var width = 112;

// You can set vpos to "top", "center", or "bottom".  Set hpos to "left",
// "center", or "right".  This defines the location of your watermark on
// the page.

var vpos = "bottom";
var hpos = "right";

function watermark()
{
   if( navigator.appName == "Netscape" )
   {
      n = window.pageYOffset;
      if( vpos == "bottom" )
         n += window.innerHeight - (height + 15);
      else if( vpos == "center" )
         n += window.innerHeight / 2 - (height + 15) / 2;
      document.watermark.top = n;
      n = window.pageXOffset;
      if( hpos == "right" )
         n += window.innerWidth - (width + 15);
      else if( hpos == "center" )
         n += window.innerWidth / 2 - (width + 15) / 2;
      document.watermark.left = n;
   }
   else if( navigator.appVersion.indexOf( "MSIE" ) != -1 )
   {
      n = document.body.scrollTop;
      if( vpos == "bottom" )
         n += document.body.clientHeight - height;
      else if( vpos == "center" )
         n += document.body.clientHeight / 2 - height / 2;
      document.all.watermark.style.top = n;
      n = document.body.scrollLeft;
      if( hpos == "right" )
         n += document.body.clientWidth - width;
      else if( hpos == "center" )
         n += document.body.clientWidth / 2 - width / 2;
      document.all.watermark.style.left = n;
   }
   setTimeout( "watermark()", 100 );
}
