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 getURL_Date(link){

	today 	=	new Date();
	YYYY	=	today.getFullYear();
	MM	=	today.getMonth() + 1;
		if(MM < 10) MM="0" + MM;
		//2桁整形
	DD	=	today.getDate();
		if(DD < 10) DD="0" + DD;
		//2桁整形

	todayvalue	=	(YYYY + '-' + MM + '-' + DD ); 
	//整形した文字列をハイフンつなぎでtodayvalueに格納

	url = link + todayvalue;
	//リンク用URLに渡す

	location.href	=	url;
}



