//-------------------- floating DIV --------------------------

var NS = (navigator.appName.indexOf("Netscape") != -1);
var d = document;

function JSFX_FloatDiv(id, sx, sy)
{
	var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
	var px = document.layers ? "" : "px";
	window[id + "_obj"] = el;
	if(d.layers) el.style = el;
	el.cx = el.sx = sx; el.cy = el.sy = sy;

	el.sP=function(x,y){
		this.style.left=x+px; this.style.top=y+px;
	};

  el.makeStatic=function() {
		var pX, pY;
		pX = (this.sx >= 0) ? 0 : NS ? innerWidth : 
					document.documentElement && document.documentElement.clientWidth ? 
					document.documentElement.clientWidth : document.body.clientWidth;
		pY = NS ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? 
					document.documentElement.scrollTop : document.body.scrollTop;
		if (this.sy<0) 
			pY += NS ? innerHeight : document.documentElement && document.documentElement.clientHeight ? 
					document.documentElement.clientHeight : document.body.clientHeight;

		this.style.left = pX + sx; 
		this.style.top = pY + sy;
    setTimeout(this.id + "_obj.makeStatic()", 1);
  }

	el.floatIt=function()	{
		var pX, pY;
		pX = (this.sx >= 0) ? 0 : NS ? innerWidth : 
					document.documentElement && document.documentElement.clientWidth ? 
					document.documentElement.clientWidth : document.body.clientWidth;
		pY = NS ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? 
					document.documentElement.scrollTop : document.body.scrollTop;
		if (this.sy<0) 
			pY += NS ? innerHeight : document.documentElement && document.documentElement.clientHeight ? 
					document.documentElement.clientHeight : document.body.clientHeight;

    //increase 2 to 8 to slow down animation
		this.cx += (pX + this.sx - this.cx)/2;  this.cy += (pY + this.sy - this.cy)/2;
		this.sP(this.cx, this.cy);
		setTimeout(this.id + "_obj.floatIt()", 1);
	}
	el.style.visibility = 'visible';
	return el;
}
//JSFX_FloatDiv("f1", -180, 20).floatIt();   top right
//JSFX_FloatDiv("f1", -180, -80).floatIt();  bottom right


//-------------------- Find In Page - By Mike Hall (MHall75819@aol.com) --------------------------

var NS4 = (document.layers);    // Which browser?
var IE4 = (document.all);
var win = window;    // window to search.
var n   = 0;

function findInPage(str) {
var txt, i, found;
if (str == "") return false;

// Find next occurance of the given string on the page, wrap around to the start of the page if necessary.
if (NS4) {
  // Look for match starting at the current point. If not found, rewind back to the first match.
  if (!win.find(str))
    while(win.find(str, false, true))
      n++;
  else
    n++;

  // If not found in either direction, give message.
  if (n == 0) alert("Not found.");
}
if (IE4) {
  txt = win.document.body.createTextRange();
  // Find the nth match from the top of the page.
  for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
    txt.moveStart("character", 1);
    txt.moveEnd("textedit");
  }

  // If found, mark it and scroll it into view.
  if (found) {
    txt.moveStart("character", -1);
    txt.findText(str);
    txt.select();
    txt.scrollIntoView();
    n++;
  }

  // Otherwise, start over at the top of the page and find first match.
  else {
    if (n > 0) {
      n = 0;
      findInPage(str);
    } else
      alert("Not found.");
  }
}
return false;
}

