/********* Page Search *********/

var TRange=null

function findString (str) {
 if (parseInt(navigator.appVersion)<4) return;
 var strFound;
 if (window.find) {

  // CODE FOR BROWSERS THAT SUPPORT window.find
  
  strFound=self.find(str);
  
  if (strFound && !window.getSelection().anchorNode) strFound=self.find(str)
  
  if (!strFound) {
   strFound=self.find(str,0,1)
   while (self.find(str,0,1)) continue
  }
 }
 else if (navigator.appName.indexOf("Microsoft")!=-1) {

  // EXPLORER-SPECIFIC CODE

  if (TRange!=null) {
   TRange.collapse(false)
   strFound=TRange.findText(str)
   if (strFound) TRange.select()
  }
  if (TRange==null || strFound==0) {
   TRange=self.document.body.createTextRange()
   strFound=TRange.findText(str)
   if (strFound) TRange.select()
  }
 }
 else if (navigator.appName=="Opera") {
  alert ("Opera browsers not supported, sorry...")
  return;
 }
 if (!strFound) alert ("String '"+str+"' not found!")
 return;
}

/********* Conditionally Stickyness *********/

window.onscroll = function()
{
	if( window.XMLHttpRequest ) { // IE 6 doesn't implement position fixed nicely...
		if (document.documentElement.scrollTop > 110 || self.pageYOffset > 110) {
			document.getElementById('stickyform').style.position = 'fixed'; 
			document.getElementById('stickyform').style.top = '0';
		} else {
			document.getElementById('stickyform').style.position = 'absolute'; 
			document.getElementById('stickyform').style.top = 'auto';
		}
	}
}