<!-- // sub window open
function S_WINOpen(url,WName){
			window.open(url,WName,'width=810,height=590,left=1,top=1,screenX=1,screenY=1,scrollbars=1,menubar=0,directories=0,toolbar=0,location=0,resizable=1,dependent=1');
}
//-->

<!-- // sub window open (new)
function pop(url,wName,w,h){
	window.open(url,wName,'width='+ w + ',height='+ h + ',left=1,top=1,screenX=1,screenY=1,scrollbars=0,menubar=0,directories=0,toolbar=0,location=0,resizable=0,dependent=1');
}
//-->



<!-- // auto rollover for specific elements
function smartRollover() {
	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."));
				}
			}
		}

		var input = document.getElementsByTagName("input");

		for(var i=0; i < input.length; i++) {
			if(input[i].getAttribute("type").match("image"))
			{
				input[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				input[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}
//-->


