/*-- mouseover --*/
function initRollovers() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		for(var i=0; i < images.length; i++) {
			//　classが"imgover" 且つ 拡張子が".jpg or .gif or .png"の場合以下の処理を行う
			if(images[i].className == 'imgover' && images[i].getAttribute("src").match(/\.jpg || \.gif || \.png/)) {
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace(/\.gif/, "_ov.gif"));
					this.setAttribute("src", this.getAttribute("src").replace(/\.jpg/, "_ov.jpg"));
					this.setAttribute("src", this.getAttribute("src").replace(/\.png/, "_ov.png"));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_ov", ""));
				}
			}
		}
	}
}

function ancfunc() {
	if (!document.getElementById) return
	var aAll = document.getElementsByTagName('a');
	if(aAll){
		for (var i = 0; i < aAll.length; i++) {
			aAll[i].onfocus = function() {
				this.blur();	
			}
		}
	}
}

/*-- CloseBtn
/* ----------------------------------------------------- */
function windowClose() {
  elm = document.getElementById("cls");
  if(!elm)return;
  elm = elm.getElementsByTagName('a')[0];
  elm.onclick = function(){
    window.close();
    return false;
  }
}