//ポップアップ　ここから
function newWin(url, target, wW, wH, attr) {
	var toolbar = attr.charAt(0);
	var location = attr.charAt(1);
	var directories = attr.charAt(2);
	var status = attr.charAt(3);
	var menubar = attr.charAt(4);
	var resizable = attr.charAt(5);
	var scrollbars = (attr.charAt(6) == '1') ? 'yes':'0';
	var win_attr = 'toolbar='+toolbar+',location='+location+',directories='+directories+',status='+status+',menubar='+menubar+',resizable='+resizable+',scrollbars='+scrollbars+',width='+wW+',height='+wH;
	newWindow=open(url, target, win_attr);
}
//ポップアップ　ここまで



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."));
				}
			}
		}
	}
}


function init() {
	smartRollover();

	var form = document.getElementById("naToContactForm");
	form.onclick = function(){
		newWin(this.href, this.target, 650, 800, '0001011')
		return false;
	};
}

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

