//
//スワップ　smartRollover
//
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);
}


//
//検索フォーム＿フォーカスすると消える
//

function onFocus(obj){
	if(obj.value == obj.defaultValue){
		obj.value = "";
		obj.style.color='#000000';
	}
}

function onBlur(obj){
	if(obj.value == obj.defaultValue || obj.value == ""){
		obj.value = obj.defaultValue;
		obj.style.color='#999999';
	}
}

//
//別窓＿のし
//
function disp(url){
	window.open(url, "noshi", "width=680,height=600,scrollbars=yes");
}


//
//別窓＿クーポン
//
function disp(url){
	window.open(url, "coupon", "width=680,height=500,scrollbars=yes");
}




