
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_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_findObj(n, d) { //v4.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);
  if(!x && document.getElementById) x=document.getElementById(n); 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];}
}

val = new Array();
vals = vals.split("&");
for (i in vals) {
	a = vals[i].split("=");
	val[a[0]] = unescape(a[1]);
}

function openWin2(url){
    	subWin = window.open(url,"products","toolbar=no,location=no,scrollbars=no,resizable=yes,status=no,menubar=no,width=560,height=500");
}

//set on menu by 2nd url path
SetOnMenuBy2ndUrlPath();

var gaiyo = new Array();
gaiyo[1]='<a href="'+dir+'gaiyo/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imagetop1\'\,\'\'\,\''+dir+'common/gaiyo_off.gif\',1)"><img src="'+dir+'common/gaiyo_off.gif" width="98" height="23" alt="概要" border="0" name="Imagetop1"></a>';
gaiyo[2]='<a href="'+dir+'gaiyo/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imagetop1\'\,\'\'\,\''+dir+'common/gaiyo_off.gif\',1)"><img src="'+dir+'common/gaiyo_on.gif" width="98" height="23" alt="概要" border="0" name="Imagetop1"></a>';

var daigaku = new Array();
daigaku[1]='<a href="'+dir+'university/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imagetop2\'\,\'\'\,\''+dir+'common/daigaku_off.gif\',1)"><img src="'+dir+'common/daigaku_off.gif" width="98" height="23"alt="大学" border="0" name="Imagetop2"></a>';
daigaku[2]='<a href="'+dir+'university/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imagetop2\'\,\'\'\,\''+dir+'common/daigaku_off.gif\',1)"><img src="'+dir+'common/daigaku_on.gif" width="98" height="23"alt="大学" border="0" name="Imagetop2"></a>';

var campuslife = new Array();
campuslife[1]='<a href="'+dir+'campus/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imagetop3\'\,\'\'\,\''+dir+'common/can_off.gif\',1)"><img src="'+dir+'common/can_off.gif" width="98" height="23" alt="キャンパスライフ" border="0" name="Imagetop3"></a>';
campuslife[2]='<a href="'+dir+'campus/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imagetop3\'\,\'\'\,\''+dir+'common/can_off.gif\',1)"><img src="'+dir+'common/can_on.gif" width="98" height="23" alt="キャンパスライフ" border="0" name="Imagetop3"></a>';

var daigakuin = new Array();
daigakuin[1]='<a href="'+dir+'guniversity/daigakuin.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imagetop4\'\,\'\'\,\''+dir+'common/in_off.gif\',1)"><img src="'+dir+'common/in_off.gif" width="98" height="23" alt="大学院" border="0" name="Imagetop4"></a>';
daigakuin[2]='<a href="'+dir+'guniversity/daigakuin.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imagetop4\'\,\'\'\,\''+dir+'common/in_off.gif\',1)"><img src="'+dir+'common/in_on.gif" width="98" height="23" alt="大学院" border="0" name="Imagetop4"></a>';

var guniversity = new Array();
guniversity[1]='<a href="'+dir+'s_guniversity/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imagetop5\'\,\'\'\,\''+dir+'common/guni_off.gif\',1)"><img src="'+dir+'common/guni_off.gif" width="98" height="23" alt="専門職大学院" border="0" name="Imagetop5"></a>';
guniversity[2]='<a href="'+dir+'s_guniversity/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imagetop5\'\,\'\'\,\''+dir+'common/guni_off.gif\',1)"><img src="'+dir+'common/guni_on.gif" width="98" height="23" alt="専門職大学院" border="0" name="Imagetop5"></a>';

var jcsw = new Array();
jcsw[1]='<a href="'+dir+'tsushin/index.html" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage(\'Imagetop6\'\,\'\'\,\''+dir+'common/jcsw_off.gif\',1)"><img src="'+dir+'common/jcsw_off.gif" width="98" height="23" alt="通信教育科" border="0" name="Imagetop6"></a>';
jcsw[2]='<a href="'+dir+'tsushin/index.html" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage(\'Imagetop6\'\,\'\'\,\''+dir+'common/jcsw_off.gif\',1)"><img src="'+dir+'common/jcsw_on.gif" width="98" height="23" alt="通信教育科" border="0" name="Imagetop6"></a>';

var enter = new Array();
enter[1]='<a href="'+dir+'enter/index.html" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage(\'Imagetop7\'\,\'\'\,\''+dir+'common/enter_off.gif\',1)"><img src="'+dir+'common/enter_off.gif" width="98" height="23" alt="入学案内" border="0" name="Imagetop7"></a>';
enter[2]='<a href="'+dir+'enter/index.html" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage(\'Imagetop7\'\,\'\'\,\''+dir+'common/enter_off.gif\',1)"><img src="'+dir+'common/enter_on.gif" width="98" height="23" alt="入学案内" border="0" name="Imagetop7"></a>';

document.write('<table border="0" cellspacing="0" cellpadding="0" align="center" summary="outline" width="759" summary="top menu">');
document.write('<tr>');
document.write('<td bgcolor="#999999" width="1"><img src="'+dir+'common/spacer.gif" width="1" height="1" alt=""></td>');
document.write('<td bgcolor="#FFFFFF" width="743"><img src="'+dir+'common/spacer.gif" width="743" height="1" alt=""></td>');
document.write('<td width="15"><img src="'+dir+'common/spacer.gif" width="15" height="1" alt=""></td>');
document.write('</tr><tr>');
document.write('<td bgcolor="#666666" rowspan="2"><img src="'+dir+'common/spacer.gif" width="1" height="1" alt=""></td>');
document.write('<td bgcolor="#FFFFFF" width="743">');
document.write('<table width="720" border="0" cellspacing="0" cellpadding="0" align="center">');
document.write('<tr>');
document.write('<td rowspan="2" width="185"><a href="'+dir+'index.html"><img src="'+dir+'common/logo.gif" width="185" height="46" border="0" alt="日本社会事業大学"></a></td>');
document.write('<td width="307">&nbsp;</td>');
document.write('<td width="228" align="right"></td>');
document.write('</tr><tr>');
document.write('<td width="307" align="right"><a href="'+dir+'index.html">ホーム</a>／<a href="javascript:openWin2(\'\'+dir+\'gaiyo/access_pop12.html\')">アクセスマップ</a>／<a href="'+dir+'gaiyo/feedback.html">お問い合わせ</a></td>');
document.write('<td width="228" align="right"><!--input type="text" name="textfield2"><input type="submit" name="submit2" value="検索"--></td>');
document.write('</tr><tr>');
document.write('<td colspan="3"><img src="'+dir+'common/spacer.gif" width="1" height="30" alt=""></td>');
document.write('</tr></table>');
document.write('<table width="720" border="0" cellspacing="0" cellpadding="0" align="center" summary="menu">');
document.write('<tr>');
document.write("<td width='103'>",gaiyo[val["menu1"]],"</td>"); 
document.write("<td width='103'>",daigaku[val["menu2"]],"</td>"); 
document.write("<td width='103'>",campuslife[val["menu3"]],"</td>"); 
document.write("<td width='103'>",daigakuin[val["menu4"]],"</td>"); 
document.write("<td width='103'>",guniversity[val["menu5"]],"</td>"); 
document.write("<td width='103'>",jcsw[val["menu6"]],"</td>"); 
document.write("<td width='102'>",enter[val["menu7"]],"</td>"); 
document.write('</tr>');
document.write('</table>');
document.write('</td>');
document.write('<td background="'+dir+'common/right_back.gif" valign="TOP" rowspan="2"><img src="'+dir+'common/spacer.gif" width="1" height="1" alt=""></td>');
document.write('</tr>');
document.write('</table>');


function SetOnMenuBy2ndUrlPath()
{
	//
	val["menu1"] = 2;
	val["menu2"] = 2;		
	val["menu3"] = 2;	
	val["menu4"] = 2;
	val["menu5"] = 2;		
	val["menu6"] = 2;	
	val["menu7"] = 2;					
					
	var arr2ndDir = new Array();
	arr2ndDir[1] = "gaiyo";
	arr2ndDir[2] = "university";
	arr2ndDir[3] = "campus";
	arr2ndDir[4] = "guniversity";
	arr2ndDir[5] = "s_guniversity";
	arr2ndDir[6] = "tsushin";
	arr2ndDir[7] = "enter";

	var arrStrUrl = location.href.split('/');

	var i;
	for(i=1;i<=arr2ndDir.length;i++){
		if(arr2ndDir[i] == arrStrUrl[3]){
			val["menu" + i] = 1; 
		}
	}
}
