//ロールオーバー
function smartRollover() {
	if(document.getElementsByTagName) {

		var chacheImage = new Array();
		var ci = 0;

		function imageSet( img ){
			if(img.getAttribute("src").match("_off."))
			{
				img.onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				img.onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}

				//キャッシュする
				chacheImage[ ci ] = new Image();
				chacheImage[ ci ].src = img.getAttribute("src").replace("_off.", "_on.");
				ci++;
			}
		}


		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) 
			imageSet( images[i] );


		var inputs = document.getElementsByTagName("input");

		for( var i=0; i<inputs.length; i++ ){
			if( inputs[i].type == "image" )
				imageSet( inputs[i] );
		}


	}
}
if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
} else {
	window.onload = smartRollover;
}


//プライバシーポリシー
function Wpp(url_name) {
	window.open(url_name,"_blank","TOOLBAR=0,SCROLLBARS=1,RESIZABLE=0,HEIGHT=410,WIDTH=510");
}

