var window_background="white";var window_border="blue";var text_color="black";var title_color="white";var window_width=200;var window_height=150;var mozilla_opt=1;var start_at=0;var ie=(document.all)
if(window.find)
var nav=1;else
var nav=0;var t=0;var sel;var range;if(!ie)
{document.captureEvents(Event.MOUSEDOWN|Event.MOUSEMOVE|Event.MOUSEUP);}
document.onmousedown=MouseDown;document.onmousemove=MouseMove;document.onmouseup=MouseUp;var mousex=0;var mousey=0;if(ie)
{var txt=document.body.createTextRange();var bookmark=new Array();}
var finds=0;function findit()
{var string=document.getElementById('fwtext').value;if(ie)
{bookmark[finds]=txt.getBookmark();if(string)
if(txt.findText(string))
{txt.select();txt.scrollIntoView();txt.collapse(false);test.innerHTML="Found";}
else
test.innerHTML="Not found";}
else
{if(finds>0)
{sel=window.getSelection();if(sel.rangeCount>0)sel.removeAllRanges();sel.addRange(range);}
if(string!="")
test.innerHTML=window.find(string,false,false);sel=window.getSelection();range=sel.getRangeAt(0);}
finds++;}
function findprev()
{var string=document.getElementById('fwtext').value;if(ie)
{if(finds<2)
return;finds=finds-2;txt.moveToBookmark(bookmark[finds]);findit();}
else
{if(finds>0)
{sel=window.getSelection();if(sel.rangeCount>0)sel.removeAllRanges();sel.addRange(range);}
if(string!="")
test.innerHTML=window.find(string,false,true);sel=window.getSelection();range=sel.getRangeAt(0);}}
function checkkey(e)
{var keycode;if(window.event)
keycode=window.event.keyCode;else
keycode=e.which;if(keycode==13)
{if(ie)
document.getElementById('btn').focus();findit();}}
function show()
{if(ie||mozilla_opt==1)
{var textbox=document.getElementById('fwtext');findwindow.style.visibility='visible';textbox.focus();t=setInterval('move_window();',500);document.onkeydown=checkkey;}
else
window.find();}
function hide()
{findwindow.style.visibility='hidden';clearTimeout(t);document.onkeydown=null;}
function resettext()
{if(ie)
{txt=document.body.createTextRange();txt.moveStart("character",start_at);}
finds=0;}
function move_window()
{fwtop=parseFloat(findwindow.style.top);fwleft=parseFloat(findwindow.style.left);fwheight=parseFloat(findwindow.style.height);if(document.documentElement.scrollTop)
current_top=document.documentElement.scrollTop;else
current_top=document.body.scrollTop;if(document.documentElement.clientHeight)
{if(document.documentElement.clientHeight>document.body.clientHeight)
current_bottom=document.body.clientHeight+current_top;else
current_bottom=document.documentElement.clientHeight+current_top;}
else
current_bottom=document.body.clientHeight+current_top;if(document.documentElement.scrollLeft)
current_left=document.documentElement.scrollLeft;else
current_left=document.body.scrollLeft;if(document.documentElement.clientWidth)
{if(document.documentElement.clientWidth>document.body.clientWidth)
current_right=document.body.clientWidth+current_left;else
current_right=document.documentElement.clientWidth+current_left;}
else
current_right=document.body.clientWidth+current_left;if(fwtop<current_top)
{findwindow.style.top=current_top+'px';}
else if(fwtop>current_bottom-fwheight)
{findwindow.style.top=current_bottom-fwheight+'px';}
if(fwleft<current_left||fwleft>current_right)
{findwindow.style.left=current_left+'px';}}
function MouseDown(e)
{if(over==1)
DivID='findwindow';if(over)
{if(ie)
{objDiv=document.getElementById(DivID);objDiv=objDiv.style;mousex=event.offsetX;mousey=event.offsetY;}
else
{objDiv=document.getElementById(DivID);mousex=e.layerX;mousey=e.layerY;return false;}}}
function MouseMove(e)
{if(document.documentElement.scrollTop)
current_top=document.documentElement.scrollTop;else
current_top=document.body.scrollTop;if(document.documentElement.scrollLeft)
current_top=document.documentElement.scrollLeft;else
current_left=document.body.scrollLeft;if(objDiv)
{if(ie)
{objDiv.pixelLeft=event.clientX-mousex+current_left;objDiv.pixelTop=event.clientY-mousey+current_top;return false;}
else
{objDiv.style.left=(e.pageX-mousex)+'px';objDiv.style.top=(e.pageY-mousey)+'px';return false;}}}
function MouseUp()
{objDiv=null;}
document.write('<DIV ID="findwindow" STYLE="position:absolute'
+';left: 0px; top: 0px'
+';visibility: hidden'
+';background-color: '+window_background
+';border: 2px solid '+window_border
+';width: '+window_width+'px'
+';height: '+window_height+'px'
+';color: '+text_color
+';padding: 0px'
+';font-size: 14px'
+';"'
+'>');document.write('<DIV STYLE="text-align: center'
+';width: '+(window_width-20)+'px'
+';cursor: move'
+';color: '+title_color
+';border: 1px solid '+text_color
+';background-color: '+window_border
+';float: left'
+';" onmouseover="over=1;" onmouseout="over=0;">'
+'Find Window</DIV>');document.write('<DIV onClick="hide();" STYLE="text-align: center'
+';width: '+(16)+'px'
+';cursor: default'
+';font-weight: bold'
+';background-color: red'
+';border: 1px solid '+text_color
+';float: right'
+';">'
+'X'
+'</DIV><BR>\n');document.write('<DIV ID="window_body" STYLE="padding: 5px;">'
+'Type in text to find: '
+'<INPUT TYPE="text" SIZE="25" MAXLENGTH="25" ID="fwtext"'
+' onChange="resettext();">'
+'<INPUT TYPE="button" VALUE="Find Prev" onClick="findprev();">'
+'<INPUT ID="btn" TYPE="button" VALUE="Find Next" onClick="findit();">'
+'</DIV>\n'
+'<DIV ID="test"><BR></DIV>');document.write('</DIV>');document.write('<INPUT TYPE="button" VALUE="Find on this page..."'
+' onClick="show();">');var findwindow=document.getElementById('findwindow');var over=0;var objDiv=null;var DivID=null;var test=document.getElementById('test');