/*----------------------------------------
Name: common.js
Date Created:2009/00/00 [ID]
Last Updated:2009/00/00 [ID]
----------------------------------------*/
function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_out\\."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_out.", "_over."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_over.", "_out."));
				}
			}
		}
	}
}
if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}


//ポップアップ共通ウィンドウ
function openPopup() {
	var w = window.open("", "popup", "width=620,height=500,scrollbars=1,resizable=1,toolbar=0,menubar=0,location=0,status=0");
	if((w == window) || w.closed) { w.focus();} else {w.focus();}
	return(false);
}
//品質保証について
function openQuality() {
	var w = window.open("", "quality", "width=620,height=500,scrollbars=1,resizable=1,toolbar=0,menubar=0,location=0,status=0");
	if((w == window) || w.closed) { w.focus();} else {w.focus();}
	return(false);
}


