<!-- When placing script into an external file remove any <script> & </script> tags from the file -->
<!-- The following is the original start of the script, when in the html file: <script type="text/javascript"> -->


<!-- The following script provides the paypal rollover effect to the paypal form buttons -->

<!--
var base;       // default display
var str1,str2;  // breakdown of the string

function Click (obj1) {   // change image to click value
  if (!obj1.src) return;  // does browser support this
  base = str1 + "3." + str2;
}

function Out (obj1) {     // restore image
  if (!obj1.src) return;  // make sure browser supports this
  obj1.src = base;
}

function Over (obj1) {    // change image to rollover value
var indx;
  if (!obj1.src) return;  // make sure browser supports this
  base = obj1.src;                      // current file name
  indx = base.lastIndexOf (".");        // where spec code is
  str1 = base.substring (0, indx - 1);  // 1st part of string
  str2 = base.substring (indx + 1);     // last part of string
  obj1.src = str1 + "2." + str2;        // build new file name 
}

var imgsx = new Array ();   // throw-away just to load images
function PreCache () {      // precache all unref'ed images
var i;
  if (!document.images) return;   // does browser support this?
  for (i=0; i<arguments.length; i++) {  // process all args
    imgsx[i] = new Image ();      // set up new image space
    imgsx[i].src = arguments[i];  // ref image to force load
  }
}

function Rotate (nam1, img1, secs, nr, cnt) {  // slide-show
var nam = new Array ();
var f1,f2,f3,f2p1,ncnt;
var obj = document.images[nam1];
  if (cnt < 1 || !obj.src) return;
  obj.src = img1;
  nam = img1.split (".");  // start the breakout
  f1  = nam[0].substring(0, nam[0].length-1);
  f2  = nam[0].substring(nam[0].length-3);
  if (isNaN (f2)) f2 = nam[0].substring(nam[0].length-2);
  if (isNaN (f2)) f2 = nam[0].substring(nam[0].length-1);
  f3  = nam[1];
  if (f2 >= nr) f2 = 0;
  f2p1 = f1 + escape(f2*1.0 + 1) + "." + f3;
  ncnt = escape (cnt - 1);
  setTimeout ("Rotate ('" + nam1 + "','" + f2p1 + "'," + secs + "," + nr + "," + ncnt + ")", secs*1000);
}

function RotateF (nam1, img1, secs, nr, cnt) {  // fade slide-show
var nam = new Array ();
var f1,f2,f3,f2p1,ncnt;
var obj = document.images[nam1];
  if (cnt < 1 || !obj.src) return;
  if (document.all) {  // do special stuff with IE
    obj.style.filter="blendTrans(duration=2)";
    obj.filters.blendTrans.Apply();
  }
  obj.src = img1;      // stuff the image
  if (document.all) {
    obj.filters.blendTrans.Play()
  }
  nam = img1.split (".");  // start the breakout
  f1  = nam[0].substring(0, nam[0].length-1);
  f2  = nam[0].substring(nam[0].length-3);
  if (isNaN (f2)) f2 = nam[0].substring(nam[0].length-2);
  if (isNaN (f2)) f2 = nam[0].substring(nam[0].length-1);
  f3  = nam[1];
  if (f2 >= nr) f2 = 0;
  f2p1 = f1 + escape(f2*1.0 + 1) + "." + f3;
  ncnt = escape (cnt - 1);
  setTimeout ("RotateF ('" + nam1 + "','" + f2p1 + "'," + secs + "," + nr + "," + ncnt + ")", secs*1000);
}

//-->

<!-- When placing script into an external file remove any <script> & </script> tags from the file -->
<!-- The following is the original start of the script, when in the html file: </script> -->

<!-- The above script provides the paypal rollover effect to the paypal form buttons -->

