function openWin(){
	resizeTo(1160,845);
}


//ロールオーバー
function rollover(){
	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"));
				}
			}
		}
	}
}

//IE以外 ※addEventListenerはonはいらない
if(window.addEventListener) {
window.addEventListener("load", rollover, false);
}
//IE用 ※attachEventはonイベントを使う
else if(window.attachEvent){
window.attachEvent("onload", rollover);
}




//addLoadEvent ※window.onloadのためのライブラリー
function addLoadEvent(func){
	var oldload = window.onload;
	if(typeof window.onload != 'function'){
		window.onload = func;
	}else{
		window.onload = function(){
			oldload();
			func();
		}
	}
}

