
function rollover() {
	if (!document.getElementsByTagName) return false;
	var image = document.getElementsByTagName("img");
	for (i=0; i<image.length; i++) {
		if (image[i].getAttribute("src").match(/_off\./)){
	 		image[i].onmouseover = function() {
	 			this.setAttribute("src", this.getAttribute("src").replace("_off.","_ov."));
	 		}
	 		image[i].onmouseout = function() {
	 			this.setAttribute("src", this.getAttribute("src").replace("_ov.","_off."));
	 		}
		}
	}
}

function pulldown() {
	if (!document.getElementsByTagName) return false;
	var list = document.getElementsByTagName("li");
	for (i=0; i<list.length; i++) {
		if(list[i].className.match("pull01")) {
			list[i].onmouseover = function() {
				this.className = "down01";
			}
			list[i].onmouseout = function() {
				this.className = "pull01";
			}
		}
		if(list[i].className.match("pull02")) {
			list[i].onmouseover = function() {
				this.className = "down02";
			}
			list[i].onmouseout = function() {
				this.className = "pull02";
			}
		}
	}
}

function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	}else {
		window.onload = function() {
		oldonload();
		func();
		}
	}
}

addLoadEvent(rollover);
addLoadEvent(pulldown);
