// slowdownScroll
function slowdownScroll() {
	if(navigator.appName == "Microsoft Internet Explorer" && document.compatMode == "CSS1Compat") {
	sctop = document.body.parentNode.scrollTop;
	}
	else if(window.pageYOffset){
	sctop = window.pageYOffset;
	} else {
	sctop = document.body.scrollTop;
	}
	
	if(sctop){
	scup = Math.ceil(sctop*.2);
	scrollBy(0,-scup);
	if (sctop-scup) setTimeout("slowdownScroll()",20);
	}
}



// subWin
function subWin(theURL,winName,w,h) {
	wx = w;
	wy = h;
	features = "width="+wx+",height="+wy+",status=no,scrollbars=yes,location=no,menubar=no,resizable=yes";
	window.open(theURL,winName,features);
}



// subWinCenter
function subWinCenter(theURL,winName,w,h) { //v2.0
	wx = w;
	wy = h;
	x = (screen.width  - wx) / 2;
	y = (screen.height - wy) / 2;
	features = "left="+x+",top="+y+",width="+wx+",height="+wy+",status=no,scrollbars=no,location=no,menubar=no";
	window.open(theURL,winName,features);
}



// rollOver
function rollOver() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off.")){
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
					}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", rollOver, false);
} else if(window.attachEvent) {
	window.attachEvent("onload", rollOver);
}