//
//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);
}


//
//openwin
//


//ポップアップ
function popup(URL){

	if( window.name == "POP" ){
		var PopWinName = "POP2";
	}
	else{
		var PopWinName = "POP";
	}

	var PROPERTY = "scrollbars=0,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,width=500,height=550";
	var PopWin = window.open(URL,PopWinName,PROPERTY);
	
	PopWin.focus();
	
}


//ポップアップ（現場レポート）
function popreport(URL){

	if( window.name == "POP" ){
		var PopWinName = "POP2";
	}
	else{
		var PopWinName = "POP";
	}

	var PROPERTY = "scrollbars=0,toolbar=0,location=0,directories=1,status=1,menubar=0,resizable=1,width=450,height=470";
	var PopWin = window.open(URL,PopWinName,PROPERTY);
	
	PopWin.focus();
	
}

function popset(URL){

	if( window.name == "POP" ){
		var PopWinName = "POP2";
	}
	else{
		var PopWinName = "POP";
	}

	var PROPERTY = "scrollbars=0,toolbar=0,location=0,directories=1,status=1,menubar=0,resizable=1,width=450,height=520";
	var PopWin = window.open(URL,PopWinName,PROPERTY);
	
	PopWin.focus();
	
}



//ポップアップ（予告ムービー）
function popmovie(URL){

	if( window.name == "POP" ){
		var PopWinName = "POP2";
	}
	else{
		var PopWinName = "POP";
	}

	var PROPERTY = "scrollbars=0,toolbar=0,location=0,directories=1,status=1,menubar=0,resizable=1,width=350,height=390";
	var PopWin = window.open(URL,PopWinName,PROPERTY);
	
	PopWin.focus();
	
}

function popupWebD(URL){

	if( window.name == "POP" ){
		var PopWinName = "POP2";
	}
	else{
		var PopWinName = "POP";
	}

	var PROPERTY = "scrollbars=1,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,width=620,height=620";
	var PopWin = window.open(URL,PopWinName,PROPERTY);
	
	PopWin.focus();
	
}


//
//jump
//

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


