/*
6/28/10 rrs
put buttons to go to the top, bottom, and middle of the page, at fixed positions within the window
position : fixed does not work in IE
each of the three strings consists of an anchor element with style, href, and title, enclosing an img element
with onMouseOver and onMouseOut swaps
*/

var isNS, isIE;
if (parseInt(navigator.appVersion) >= 4) {
	isNS = (navigator.appName == "Netscape");
	isIE = (navigator.appName.indexOf ("Microsoft") != -1);
}

/* alert("isNS=" + isNS + ", isIE=" + isIE ); */

if( isNS ) {

var stystr = "style='display:scroll;position:fixed;";
var stystr2 = ";right:5px; outline : none; z-index : 2;'";
var imgstr = "<img border='0' src='";

/* compose the to page bottom string */
var bbstr = "<a " + stystr + "top:5px" + stystr2 + "href='#pbot' title='To page bottom...'>";
bbstr += imgstr + "arrow-down2-40.png' ";
bbstr += "onMouseOver='this.src=\"arrow-down2-50.png\";' onMouseOut='this.src=\"arrow-down2-40.png\";' /></a>";

/* compose the to page middle string */
var mstr = "<a " + stystr + "top:50%" + stystr2 + "href='#pmid' title='To page middle...'>";
mstr += imgstr + "arrow-left2-40.png' ";
mstr += "onMouseOver='this.src=\"arrow-left2-50.png\";' onMouseOut='this.src=\"arrow-left2-40.png\";' /></a>";

/* compose the to page top string */
var tstr = "<a " + stystr + "bottom:5px" + stystr2 + "href='#' title='To page top...'>";
tstr += imgstr + "arrow-up2-40.png' ";
tstr += "onMouseOver='this.src=\"arrow-up2-50.png\";' onMouseOut='this.src=\"arrow-up2-40.png\";' /></a>";

var tbmstr = bbstr + mstr + tstr;

document.write(tbmstr);
}


