/*------------------------- 実行処理 -------------------------*/
// フルスクリーン化
var FullScreenSwitch;

FullScreenSwitch = false;

if(FullScreenSwitch){
	self.moveTo(0,0) 
	self.resizeTo(screen.availWidth,screen.availHeight);
}

// スタイルシートの適用
var CSSSwitch;

CSSSwitch = false;

if(CSSSwitch){
		if (document.layers){ // Netscape Communicator ver.4
			document.write("<link rel=\"stylesheet\" href=\"css/nc4.css\">");
		}
		else if (!document.all && document.getElementById){ // Netscape Communicator ver.6 以降
			document.write("<link rel=\"stylesheet\" href=\"css/nc6.css\">");
		}
		else if( document.all && !document.getElementById){ // Internet Explorer ver.4
			document.write("<link rel=\"stylesheet\" href=\"css/ie4.css\">");
		}
		else if (document.all && document.getElementById){ // Internet Explorer ver.5 以降
			document.write("<link rel=\"stylesheet\" href=\"css/ie5.css\">");
		}
		else{ // その他
			window.alert("表示が適切でないかもしれませんが、悪しからずご了承下さい。");
		}
}
/*------------------------------------------------------------*/

/*----------------------- サブルーチン -----------------------*/

// PreLoadExe(n) => 画像のプリロード
//  n => 読み込む画像のあるディレクトリ(文字列)
// 任意の引数 => 読み込む画像のファイル名(文字列)
function PreLoadExe(n){
	var n;

	if (-1 == n.indexOf("/",n.length-1)){
		n +=  "/";
	}

	ImageArray = new Array();
	for (i=1;i<PreLoadExe.arguments.length;i++){
		ImageArray[i-1] = new Image();
		ImageArray[i-1].src = n + PreLoadExe.arguments[i];
	}
}

// ImageSwap(n,m) => 画像スワップ
//  n => スワップさせる画像のオブジェクト名(文字列)
//  m => スワップ後の画像のファイル名(文字列)
function ImageSwap(n,m){
	var n;
	var m;

	document[n].src = m;
}

// WindowOpen(n,m,w,h) => ポップアップウィンドウのオープン
// n(文字列) = ファイル名
// m(文字列) = window名
// w(文字列) = windowの幅
// h(文字列) = windowの高さ
function WindowOpen(n,m,width,height){
	var W = width;
	var H = height;
	W = parseInt(W);
	H = parseInt(H);
	if(navigator.platform.charAt(0) == "W"){
		W += 16;
		H += 16;
	}
	W = W.toString();
	H = H.toString();
	window.open(n,m,"toolbar=0,location=0,status=0,resizable=1,scrollbars=1,width="+W+",height="+H);
}


// Spacer(n) => 自動調整のスペーサ
//  n => スペーサまでのオフセット値
function Spacer(n){
	// ローカル変数の宣言
	var DocumentHeight;

	if (document.all){
		DocumentHeight = document.body.clientHeight;
	}
	else if (document.layers){
		DocumentHeight = innerHeight;
	}
	else if (!document.all && document.getElementById){
		DocumentHeight = innerHeight;
	}
	else {
		DocumentHeight = 0 ;
	}
	if(navigator.platform.charAt(0) == "W"){
		DocumentHeight += 3;
	}
	if (DocumentHeight){
			document.write("<table border='0' cellspacing='0' cellpadding='0' height='",parseInt(DocumentHeight)-n,"'>");
			document.write("<tr><td>&nbsp;</td></tr>");
			document.write("</table>");
		}
	}
/*------------------------------------------------------------*/