


<!-- Macromedia Dreamweaver Rollover Scripts -->


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

<!-- Pop-up window Script -->

function productpopup(url)
{
  var myOpts = 'height=900,width=600,directories=no,location=no,menubar=no,status=yes,titlebar=no,toolbar=no,scrollbars=yes,resizeable=yes';
  window.open(url, 'prodshot', myOpts);
}

/*
BrowserDetector()
Parses User-Agent string into useful info.

Source: Webmonkey Code Library
(http://www.hotwired.com/webmonkey/javascript/code_library/)

Author: Richard Blaylock
Author Email: blaylock@wired.com

Usage: var bd = new BrowserDetector(navigator.userAgent);
*/

// Utility function to trim spaces from both ends of a string
function Trim(inString) {
  var retVal = "";
  var start = 0;
  while ((start < inString.length) && (inString.charAt(start) == ' ')) {
    ++start;
  }
  var end = inString.length;
  while ((end > 0) && (inString.charAt(end - 1) == ' ')) {
    --end;
  }
  retVal = inString.substring(start, end);
  return retVal;
}

function BrowserDetector(ua) {

// Defaults
  this.browser = "Unknown";
  this.platform = "Unknown";
  this.version = "";
  this.majorver = "";
  this.minorver = "";

  uaLen = ua.length;

// ##### Split into stuff before parens and stuff in parens
  var preparens = "";
  var parenthesized = "";

  i = ua.indexOf("(");
  if (i >= 0) {
    preparens = Trim(ua.substring(0,i));
        parenthesized = ua.substring(i+1, uaLen);
        j = parenthesized.indexOf(")");
        if (j >= 0) {
          parenthesized = parenthesized.substring(0, j);
        }
  }
  else {
    preparens = ua;
  }

// ##### First assume browser and version are in preparens
// ##### override later if we find them in the parenthesized stuff
  var browVer = preparens;

  var tokens = parenthesized.split(";");
  var token = "";
// # Now go through parenthesized tokens
  for (var i=0; i < tokens.length; i++) {
    token = Trim(tokens[i]);
        //## compatible - might want to reset from Netscape
        if (token == "compatible") {
          //## One might want to reset browVer to a null string
          //## here, but instead, we'll assume that if we don't
          //## find out otherwise, then it really is Mozilla
          //## (or whatever showed up before the parens).
        //## browser - try for Opera or IE
    }
        else if (token.indexOf("MSIE") >= 0) {
      browVer = token;
    }
    else if (token.indexOf("Opera") >= 0) {
      browVer = token;
    }
        //'## platform - try for X11, SunOS, Win, Mac, PPC
    else if ((token.indexOf("X11") >= 0) || (token.indexOf("SunOS") >= 0) ||
(token.indexOf("Linux") >= 0)) {
      this.platform = "Unix";
        }
    else if (token.indexOf("Win") >= 0) {
      this.platform = token;
        }
    else if ((token.indexOf("Mac") >= 0) || (token.indexOf("PPC") >= 0)) {
      this.platform = token;
        }
  }

  var msieIndex = browVer.indexOf("MSIE");
  if (msieIndex >= 0) {
    browVer = browVer.substring(msieIndex, browVer.length);
  }

  var leftover = "";
  if (browVer.substring(0, "Mozilla".length) == "Mozilla") {
    this.browser = "Netscape";
        leftover = browVer.substring("Mozilla".length+1, browVer.length);
  }
  else if (browVer.substring(0, "Lynx".length) == "Lynx") {
    this.browser = "Lynx";
        leftover = browVer.substring("Lynx".length+1, browVer.length);
  }
  else if (browVer.substring(0, "MSIE".length) == "MSIE") {
    this.browser = "IE";
    leftover = browVer.substring("MSIE".length+1, browVer.length);
  }
  else if (browVer.substring(0, "Microsoft Internet Explorer".length) ==
"Microsoft Internet Explorer") {
    this.browser = "IE"
        leftover = browVer.substring("Microsoft Internet Explorer".length+1,
browVer.length);
  }
  else if (browVer.substring(0, "Opera".length) == "Opera") {
    this.browser = "Opera"
    leftover = browVer.substring("Opera".length+1, browVer.length);
  }

  leftover = Trim(leftover);

  // # Try to get version info out of leftover stuff
  i = leftover.indexOf(" ");
  if (i >= 0) {
    this.version = leftover.substring(0, i);
  }
  else
  {
    this.version = leftover;
  }
  j = this.version.indexOf(".");
  if (j >= 0) {
    this.majorver = this.version.substring(0,j);
    this.minorver = this.version.substring(j+1, this.version.length);
  }
  else {
    this.majorver = this.version;
  }


} // function BrowserCap


<!-- Please keep copyright lines in place without changes.
//   Copyright 2000 William and Mari Bontrager
//   Copyright 2003 Bontrager Connection, LLC
//
// For more information and instructions, please
//    see the "Double Click Trapper" article at
//    http://willmaster.com/possibilities/archives


// When the form's submit button is clicked a second
//    time, the click trap is set. Here, specify how
//    many seconds the trap exist before it's released.

TrapClicksForHowManySeconds = 10;

// If the user clicks the submit button and causes a
//    trap, or clicks when a trip is set, you may spawn
//    an alert box with a message. If you do want to
//    spawn the alert box, specify the message between
//    the quotation marks. Otherwise, leave it blank.
//(Blank is two consecutive quotation mark characters,
//    with nothing between them.)
// Note: If you use any quotation marks in the message
//       itself, those must be preceeded with a back-slash
//       character. Example: "My name is \"tall\", okay?"

AlertBoxMessage = "One click is sufficient. The server should respond momentarily.\n\n\nClick the \"OK\" button.";

// If the user clicks the submit button and causes a trap,
//    or clicks when a trip is set, you may spawn a popup
//    box. If you want to spawn the popup box, specify
//    the URL of the web page to insert into the popup.
//    Otherwise, leave it blank. You may also specify
//    the height of the popup and the width of the popup.

PopUpBoxURL = "";
PopUpBoxHeight = 0;
PopUpBoxWidth = 0;

// If you want the submit button to change its text when
//    it is clicked, specify the name you assigned to the
//    form, the name you assigned to the submit button
//    form field, and the new text for the submit button.
//    Otherwise, leave at least one of these blank.

NameOfForm = "mainform";
NameOfSubmitButton = "action";
NewTextForSubmitButton = "Processing...";

// ////////////////////////////////////////// //
// NO CUSTOMIZATION REQUIRED BELOW THIS POINT //
// ////////////////////////////////////////// //

TrapTime = 0;
DoubleClickTrapperCounter = 0;

function DoubleClickTrapperAction(formButton) 
{

  DoubleClickTrapperCounter++;
  DoubleClickTrapperButton(formButton);
  var trapTheClick = false;
  if(DoubleClickTrapperCounter > 1 ) { trapTheClick = true; }
  if(trapTheClick == true) 
  {
    if(TrapTime == 0) 
    {
      var tDate = new Date;
      TrapTime = tDate.valueOf();
    }
    else 
    {
      var tDate = new Date;
      var localTrapTime = tDate.valueOf();
      if((localTrapTime - TrapTime) > (TrapClicksForHowManySeconds * 1000)) 
      {
        TrapTime = 0;
        trapTheClick = false;
        DoubleClickTrapperCounter = 0;
      }
    }
  }

  var valueToReturn = true;

  if(trapTheClick == true) 
  {
    valueToReturn = false;
    DoubleClickTrapperAlert();
  }
  
  return valueToReturn;
} // end of function DoubleClickTrapperAction()


function DoubleClickTrapperButton(formButton) 
{
  var newtext = StripSpaces(NewTextForSubmitButton);
  if(formButton.length > 0 && newtext.length > 0) 
  {
    var s = 'document.' + formButton + ".value = '" + NewTextForSubmitButton + "'";   
    eval(s);
    
  }
} // end of function DoubleClickTrapperButton()

function DoubleClickTrapperAlert() 
{
  var message = StripSpaces(AlertBoxMessage);
  if(message.length > 0) { alert(AlertBoxMessage); }
} // end of function DoubleClickTrapperAlert()

function StripSpaces(s) 
{
  while(s.indexOf(' ') == 0) { s = s.substr(1); }
  return s;
} // end of function StripSpaces()


function ReverseDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}
