//印刷ウィンドウを開く
function disp(url){ 
window.open(url, "window_name", "width=425,height=353,scrollbars=yes");
} 
function disp_ll(url){ 
window.open(url, "window_name", "width=340,height=314,scrollbars=no");
}
function disp_news(url){ 
window.open(url, "window_name", "width=350,height=414,scrollbars=no");
} 
function disp_profile(url){ 
window.open(url, "window_name", "width=300,height=314,scrollbars=no");
}  
function int_f(url){ 
window.open(url, "window_name", "width=250,height=200,scrollbars=no");
}
function CloseWin(){
    window.close();
} 

//ロールオーバー
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."));
				}
			}
		}
	}
}

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