<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}
//-->



<!--

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function jump(sel) {
if (sel.options[sel.selectedIndex].value) {
window.open(sel.options[sel.selectedIndex].value, "_blank");
}
}
//-->













//-------------------------------------------------------------------
// ブラウザ情報設定
// Dom_mac 	macの場合					true
// Dom_win 	winの場合					true
// Dom_IE 	IEの場合					true
// Dom_IE4 	IE4の場合					true
// Dom_IE45 IE4.5の場合					true
// Dom_IE5	IE5の場合					true
// Dom_IE55	IE5.5の場合					true
// Dom_IE6	IE6以上の場合				true
// Dom_NN4	Netscape4の場合				true
// Dom_NN47	Netscape4.7の場合(Default)	true
// Dom_NN6	Netscape6以上の場合			true
// Dom_NN60	Netscape6.0の場合			true
// Dom_NN61	Netscape6.1の場合			true
//-------------------------------------------------------------------
var Dom_IE4		= false;
var Dom_IE5		= false;
var Dom_IE55	= false;
var Dom_IE6		= false;
var Dom_NN4		= false;
var Dom_NN47	= false;
var Dom_NN6		= false;
var Dom_NN60	= false;
var Dom_NN61	= false;

//Mac or Win判定
var Dom_mac = false;
var Dom_win = false;

Dom_mac=navigator.userAgent.indexOf('Mac')!=-1;
if(!Dom_mac){
	Dom_win = true;
}

//NN or IE判定
var Dom_IE = false;
var Dom_NN = false;

Dom_IE= navigator.userAgent.indexOf('MSIE') != -1;
if(!Dom_IE){
	Dom_NN= navigator.userAgent.indexOf('Mozilla') != -1;
}


if(Dom_IE){
	//IE Version判定
	Dom_IE4= navigator.userAgent.indexOf('MSIE 4') != -1;
	Dom_IE5= navigator.userAgent.indexOf('MSIE 5') != -1;
	if(Dom_IE5){
		Dom_IE55= navigator.userAgent.indexOf('MSIE 5.5') != -1;
		if(Dom_IE55){
			Dom_IE5 = false;
		}
	}
	Dom_IE6= navigator.userAgent.indexOf('MSIE 6') != -1;
	//IE4.x,5.x,6.x以外のIEはIE4として処理
	if(Dom_IE4 != true && Dom_IE5 != true && Dom_IE55 != true && Dom_IE6 != true){
		Dom_IE4=true;
	}
}
else if(Dom_NN){
	//NN Version判定
	Dom_NN4= navigator.userAgent.indexOf('Mozilla/4') != -1;
	if(Dom_NN4){
		Dom_NN47= navigator.userAgent.indexOf('Mozilla/4.7') != -1;
		if(Dom_NN47){
			Dom_NN4 = false;
		}
	}
	//Netscape6.2以上の場合Dom_NN6はtrue
	Dom_NN6= navigator.userAgent.indexOf('Netscape6') != -1;
	if(Dom_NN6){
		Dom_NN60= navigator.userAgent.indexOf('Netscape6/6.0') != -1;
		Dom_NN61= navigator.userAgent.indexOf('Netscape6/6.1') != -1;
	}
	//NN4.x,6.x以外のNNはNN6として処理
	if(Dom_NN4 != true && Dom_NN47 != true && Dom_NN6 != true){
		Dom_NN6=true;
	}
}
else{
	//IE,NN以外のブラウザはNetscape4.7と認識
	Dom_NN47= true;
}

//-------------------------------------------------------------------
// ＤＨＴＭＬ
//-------------------------------------------------------------------
var N_loaded = true;
var N_tid;
var N_selectedNo ='1';
var N_hideSwich = 'false';
var prefecture;

document.cookie = "expires=1-Jan-1997 00:00:00; domain=www.interlink.or.jp;";



//-------------------------------------------------------------------
// X
//-------------------------------------------------------------------
var posStatic_menu1 = 389;
var posStatic_menu2 = 487;
var posStatic_menu3 = -5;
var posStatic_menu4 = 358;
var posStatic_menu5 = 476;
var posStatic_menu6 = 596;
var posStatic_menu7 = 620;

//-------------------------------------------------------------------
// table幅
//-------------------------------------------------------------------
var width_table=786;

//-------------------------------------------------------------------
// ウィンドウサイズ取得
//-------------------------------------------------------------------
function getWindowWidth ()
{
	if( Dom_NN6 || Dom_NN4 || Dom_NN47 ) return window.innerWidth;
	if( Dom_IE6 || Dom_IE55 || Dom_IE5 || Dom_IE4 ) return document.body.clientWidth;
	return 0;
}



//-------------------------------------------------------------------
// メニューレイヤ
//-------------------------------------------------------------------
function moveDivTo(div,left,top)
{
	if( Dom_NN6 ){
		div.style.left=left+'px';
		div.style.top =top +'px';
		return;
	}
	if( Dom_IE6 || Dom_IE55 ||Dom_IE5 || Dom_IE4 ){
		div.style.pixelLeft=left;
		div.style.pixelTop =top;
		return;
	}

	if( Dom_NN4 || Dom_NN47 ){
		div.moveTo(left,top);
		return;
	}
}



//-------------------------------------------------------------------
// レイヤ
//-------------------------------------------------------------------
function getDivName(div)
{
	if( Dom_NN6 || Dom_IE6 || Dom_IE55 || Dom_IE5 || Dom_IE4 ){
		return div.id;
	}

	if( Dom_NN47 || Dom_NN4 ){
		return div.name;
	}
	
	return '';
}



//-------------------------------------------------------------------
// レイヤ中央
//-------------------------------------------------------------------
function moveCenterX(No){
	var pos;
	var w_width;
	var layerName ='menu' + No;
	var div=getDivObjName(layerName);

	// 座標計算
	// ※計算式
	// （現在のウィンドウサイズ − メニューテーブルのサイズ）÷ ２
	//									＋ 各メニューのＸ座標のオフセット
	w_width=Math.floor(getWindowWidth());
	if( w_width > width_table ){
		pos=Math.floor((w_width-width_table)/2)+eval('posStatic_menu' + No);
	}
	else{
		pos=eval('posStatic_menu' + No);
	}

	// レイアの移動
	moveDivTo(div,pos,83);
}




function getDivObjName(nm){
	if( Dom_NN6 || Dom_IE6 || Dom_IE55 || Dom_IE5 ){
		return document.getElementById(nm);
	}

	if( Dom_IE4 ){
		return document.all(nm);
	}

	if( Dom_NN47 || Dom_NN4 ){
		var str='';

		for( var i=1; i<arguments.length; i++ ){
			s+='document.layers.'+arguments[i]+'.';
		}

		return eval(s+'document.layers.'+nm);
	}
	return null;
}



//-------------------------------------------------------------------
// URL
//-------------------------------------------------------------------
function N_changeUrl (url)
{
	location.href = url;
}

//-------------------------------------------------------------------
// URL
//-------------------------------------------------------------------
function N_changeUrl2 (url)
{
    var top_w = window.top ;
	top_w.location.href = url;
}




function N_showMenu(No){
	var N_obj;
	var N_obj2;
	
	if(N_loaded){
		N_hideSwich = 'true';
		
		// 表示中のレイヤを隠す
		N_hideMenu();
		
		N_layerName ='menu' + No;

		// 表示中のメニュー番号を保持
		N_selectedNo = No;

		// メニューをセンターへ表示
		moveCenterX(N_selectedNo);

		N_obj = getDivObjName(N_layerName);

		N_obj2 = getDivObjName('iframe_3');

		// 表示属性の設定
		if( Dom_NN4 ){
			N_obj.visibility='show';
			N_obj2.visibility='hide';
		}
		else if(Dom_IE55 || Dom_IE6){
			N_obj.style.visibility='visible';
		}
		else if( Dom_IE5 || Dom_IE4 ){
			N_obj.style.visibility='visible';
			N_obj2.style.visibility='hidden';
		}
		else if( Dom_NN6 ){
			N_obj.style.visibility='visible';
			N_obj2.style.visibility='hidden';
		}
	}
}





function N_hideMenu()
{
	var N_obj;
	var N_obj2;

	// 表示中のメニュー番号より該当するレイヤ名を生成
	N_layerName = 'menu' + N_selectedNo;
	N_obj = getDivObjName(N_layerName);
	N_obj2 = getDivObjName('iframe_3');

	if(N_tid){
		//タイマクリア
		clearTimeout(N_tid);
	}

	if (N_hideSwich == 'true'){
		// 表示属性の設定
		if( Dom_NN4 ){
			N_obj.visibility = 'hide';
			N_obj2.visibility='show';
		}
		else if(Dom_IE55 || Dom_IE6){
			N_obj.style.visibility='hidden';
		}
		else if( Dom_IE5 || Dom_IE4 ){
			N_obj.style.visibility='hidden';
			N_obj2.style.visibility='visible';
		}
		else if( Dom_NN6 ){
			N_obj.style.visibility='hidden';
			N_obj2.style.visibility='visible';
		}
	}
}



function N_hideMenu2()
{
	var N_obj2;
	N_obj2 = getDivObjName('iframe_3');
	N_obj2.style.visibility='visible';
}



//-----------------------------------------------------------
// time
//-----------------------------------------------------------
function N_menuCloseTimer(No)
{
	if(N_loaded){
		N_selectedNo = No;
		N_hideSwich = 'true'

		if(N_tid){
			// タイマクリア
			clearTimeout(N_tid);
		}

		// タイマセット
		N_tid=setTimeout('N_hideMenu();',400);
	}
}



//-----------------------------------------------------------
// レイヤ部分にマウスオンした時
//-----------------------------------------------------------
function N_swichOFF()
{
	N_hideSwich = 'false'
}

//
