
<!-- Hide from old browsers


//  USE THE FOLLOWING VARIABLE TO CONFIGURE FRAMES TO SEARCH
//  (SELF OR CHILD FRAME)
//  If you want to search another frame, change from "self" to
//  the name of the target frame:
//  e.g., var frametosearch = 'main'
//var frametosearch = 'main';
var frametosearch = self;

var logowidth=100; // width of page search div in pixels
var Hoffset=10; // number of pixels from right side of browser window
var Voffset=47; // number of pixels from top of browser window
var script_location = "http://nickeysurf.com/dev-syd"; // used by this script to locate images

var isItvisible=0;
var hideTimer = null;
var pagesearchinterval = null;


/******************************************
* Find In Page Script -- Submitted/revised by Alan Koontz (alankoontz@REMOVETHISyahoo.com)
* Visit Dynamic Drive (http://www.dynamicdrive.com/) for full source code
* This notice must stay intact for use
******************************************/
//  revised by Alan Koontz -- May 2003
var TRange = null;
var dupeRange = null;
var TestRange = null;
var win = null;

var div_pos = (is_ie7) ? 'fixed' : 'absolute';
//var div_pos = 'fixed';
//var div_pos = 'absolute';

// the following defines the search dialog div
if (!((is_ie4up && is_mac) || (is_gecko) || (is_opera)) && (document.all || document.getElementById)) {
	document.write('\n<div align="center" class="pagesearch_block" style="position:'+div_pos+'; left:5px; visibility:hidden;" id="pagesearchlogo">');
	document.write('<div class="pagesearch_topbar">');
	document.write('<a href="javascript:hidepagesearch()" title="Close page search"><img src="'+script_location+'/close_n.gif" ');
	document.write('width=11 height=11 hspace=1 vspace=2 border=0 alt="x" align="right"></a></div>');
	document.write('Search Phrase<br>\n<form name="form1" class="inline" onSubmit="search(document.form1, frametosearch); return false">');
	document.write('<input type="text" name="findthis" class="pagesearch" title="Press \'ALT s\' after clicking submit to repeatedly search page"><br>\n');
	document.write('<input type="submit" value="Search" class="pagesearch" ACCESSKEY="s"><br>');
	document.write('<img src="'+script_location+'/blank.gif" width=2 height=5 hspace=0 vspace=0 border=0 alt="">');
	document.write('<\/form>');
	document.write('</div>\n');
	
	var pagesearch_obj = is_ie4up ? document.all.pagesearchlogo : document.getElementById ? document.getElementById("pagesearchlogo") : document.pagesearchlogo;
	
// below writes the link to pagesearch
	document.write('<a href="javascript:showpagesearch();" title="Click to search this page"><img src="'+script_location+'/icon-pagesearch.png" width="16" height="16" hspace="0" vspace="0" border="0" alt="- Click to search this page -" align="absmiddle"><\/a>');

	}

function search(whichform, whichframe) {
//  TEST FOR IE5 FOR MAC (NO DOCUMENTATION)
//  TEST FOR NAV 6 (NO DOCUMENTATION)
//  TEST FOR Opera (NO DOCUMENTATION)
	if ((is_ie4up && is_mac) || (is_gecko && (is_rev <1)) || (is_opera)) return;
//  INITIALIZATIONS FOR FIND-IN-PAGE SEARCHES
	if(whichform.findthis.value!=null && whichform.findthis.value!='') {
		str = whichform.findthis.value;
		win = whichframe;
		var frameval=false;
		if(win!=self) {
			frameval=true;  // this will enable Nav7 to search child frame
			win = parent.frames[whichframe];
			}
		}
	else return;  //  i.e., no search string was entered
	var strFound;
//  NAVIGATOR 4 SPECIFIC CODE
	if(is_nav4 && (is_minor < 5)) {
		strFound=win.find(str); // case insensitive, forward search by default

//  There are 3 arguments available:
//  searchString: type string and it's the item to be searched
//  caseSensitive: boolean -- is search case sensitive?
//  backwards: boolean --should we also search backwards?
//  strFound=win.find(str, false, false) is the explicit
//  version of the above
//  The Mac version of Nav4 has wrapAround, but
//  cannot be specified in JS
		}
//  NAVIGATOR 7 and Mozilla rev 1+ SPECIFIC CODE (WILL NOT WORK WITH NAVIGATOR 6)
	if (is_gecko && (is_rev >= 1)) {
		if(frameval!=false) win.focus(); // force search in specified child frame
		strFound=win.find(str, false, false, true, false, frameval, false);
//  The following statement enables reversion of focus 
//  back to the search box after each search event 
//  allowing the user to press the ENTER key instead
//  of clicking the search button to continue search.
//  Note: tends to be buggy in Mozilla as of 1.3.1
//  (see www.mozilla.org) so is excluded from users 
//  of that browser.
		if (is_not_moz)  whichform.findthis.focus();

//  There are 7 arguments available:
//  searchString: type string and it's the item to be searched
//  caseSensitive: boolean -- is search case sensitive?
//  backwards: boolean --should we also search backwards?
//  wrapAround: boolean -- should we wrap the search?
//  wholeWord: boolean: should we search only for whole words
//  searchInFrames: boolean -- should we search in frames?
//  showDialog: boolean -- should we show the Find Dialog?
		}
	if (is_ie4up) {
// EXPLORER-SPECIFIC CODE revised 5/21/03
		if (TRange!=null) {
			TestRange=win.document.body.createTextRange();
			if (dupeRange.inRange(TestRange)) {
				TRange.collapse(false);
				strFound=TRange.findText(str);
				if (strFound) {
//the following line added by Mike and Susan Keenan, 7 June 2003
					win.document.body.scrollTop = win.document.body.scrollTop + TRange.offsetTop;
					TRange.select();
					}
				}
			else {
				TRange=win.document.body.createTextRange();
				TRange.collapse(false);
				strFound=TRange.findText(str);
				if (strFound) {
//the following line added by Mike and Susan Keenan, 7 June 2003
					win.document.body.scrollTop = TRange.offsetTop;
					TRange.select();
					}
				}
			}
		if (TRange==null || strFound==0) {
			TRange=win.document.body.createTextRange();
			dupeRange = TRange.duplicate();
			strFound=TRange.findText(str);
			if (strFound) {
//the following line added by Mike and Susan Keenan, 7 June 2003
				win.document.body.scrollTop = TRange.offsetTop;
				TRange.select();
				}
			}
		}
	if (!strFound) alert ("String '"+str+"' not found!") // string not found
	}

function positionit() {
	 var dsocleft=is_ie4up? document.body.scrollLeft : pageXOffset;
	 var dsoctop=is_ie4up? document.body.scrollTop : pageYOffset;
	 var window_width=is_ie4up? document.body.clientWidth : window.innerWidth-20;
	 if (is_ie4up||document.getElementById) {
		 pagesearch_obj.style.left=parseInt(dsocleft)+parseInt(window_width)-logowidth-Hoffset+'px';
		 pagesearch_obj.style.top=parseInt(dsoctop)+5+Voffset+'px';
		}
	}

function hidepagesearch() {
	pagesearch_obj.style.visibility="hidden";
	clearInterval(pagesearchinterval);
	isItvisible=0;
	}

function showpagesearch() {
	 if(! isItvisible) {
		 positionit();
		 pagesearch_obj.style.visibility="visible";
		 isItvisible=1;
		 pagesearchinterval=setInterval("positionit()",50);
		 document.form1.findthis.focus();
		}
	}

//if (!((is_ie4up && is_mac) || (is_gecko) || (is_opera)) && (document.all || document.getElementById)) {
//	positionit();
//	pagesearch_obj.style.visibility="hidden";
//	}

// -->
