/*--------------------------------------------
	グローバル関数設定
--------------------------------------------*/
/*var jspath = "/common/js/";*/

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.", "_ov."));}
images[i].onmouseout = function() {this.setAttribute("src", this.getAttribute("src").replace("_ov.", "_off."));}}}
}
}

if(window.addEventListener) {window.addEventListener("load", rollover, false);}
else if(window.attachEvent) {window.attachEvent("onload", rollover);}



// 初期化
function init() {	
	getAlternate();
}

/*function end() {	
	leave();
	site.end();
}*/

function end(){
	leave();
}

window.onload = init;
window.onunload = end;
/*window.onunload = end;*/

/*--------------------------------------------
	インクルードするJS設定
--------------------------------------------*/
/*JSファイルを格納するディレクトリ*/
var uri="/common/js/";

/*以下のfile[*]の設定*/
function myfile(n) {
        this.length = n;
        	for (i = 0; i < n; i++) {
		this[i] = null;
		}
}

/*呼び出したいjs-file*/
var n = 4;
var file = new myfile(n);
file[0] = "css_switch.js";
file[1] = "jquery.js";
file[2] = "yuga.js";
file[3] = "preload.js";

/*head内にてscript呼び出し*/
for (i = 0; i <n; i++) {
 document.write('<script type="text/javascript" src="',uri,file[i],'"></script>');
}


function pop01(theURL,winName,features) { 
  window.open(theURL , "popwin" , "resizable=yes,menubar=no,directories=no,status=yes,location=no,scrollbars=yes,toolbar=no,width=720,height=620"); 
}

function pop02(theURL,winName,features) { 
  window.open(theURL , "popwin" , "resizable=yes,menubar=no,directories=no,status=yes,location=no,scrollbars=yes,toolbar=no,width=720,height=700"); 
}

function pop03(theURL,winName,features) { 
  window.open(theURL , "popwin" , "resizable=yes,menubar=no,directories=no,status=yes,location=no,scrollbars=yes,toolbar=no,width=720,height=300"); 
}

function popkakekin(theURL) { 
  var kakekinWin = window.open(theURL,"SHISAN", "resizable=yes,menubar=no,directories=no,status=yes,location=no,scrollbars=yes,toolbar=no,width=920,height=700"); 
  kakekinWin.focus();
}

function popkakekin2(theURL) { 
  var kakekinWin = window.open(theURL,"SHISAN", "resizable=yes,menubar=no,directories=no,status=yes,location=no,scrollbars=yes,toolbar=no,width=648,height=700"); 
  kakekinWin.focus();
}


function popmain(theURL) { 
  var popMain = window.open(theURL,"FROMSHISAN"); 
  popMain.focus();
}