//2000-200?
function credit01(){
	var hiduke=new Date();
	var d=hiduke.getFullYear();
document.write(d);
}

var hposi;

function getpath(posiinfo){
	if(posiinfo == 0){ hposi = "";}
	else if(posiinfo == 1){ hposi = "../";}
	else if(posiinfo == 2){ hposi = "../../";}

	img = new Array();

	img[0] = new Image; img[0].src = hposi + "cmnimg/eye11.gif";
	img[1] = new Image; img[1].src = hposi + "cmnimg/eye11_f2.gif";
	img[2] = new Image; img[2].src = hposi + "cmnimg/eye12.gif";
	img[3] = new Image; img[3].src = hposi + "cmnimg/eye12_f2.gif";
	img[4] = new Image; img[4].src = hposi + "cmnimg/eye.gif";
	img[5] = new Image; img[5].src = hposi + "cmnimg/eye_f2.gif";
	img[6] = new Image; img[6].src = hposi + "cmnimg/eye.gif";
	img[7] = new Image; img[7].src = hposi + "cmnimg/eye_f2.gif";
	img[8] = new Image; img[8].src = hposi + "../cmnimg/btn01a.gif";
	img[9] = new Image; img[9].src = hposi + "../cmnimg/btn01b.gif";
	img[10] = new Image; img[10].src = hposi + "../cmnimg/btn01c.gif";
	img[11] = new Image; img[11].src = hposi + "cmnimg/eye.gif";
	img[12] = new Image; img[12].src = hposi + "cmnimg/eye_f2.gif";
 	img[13] = new Image; img[13].src = "topimg/tab31.gif";
 	img[14] = new Image; img[14].src = "topimg/tab31_f2.gif";
 	img[15] = new Image; img[15].src = "topimg/tab32.gif";
 	img[16] = new Image; img[16].src = "topimg/tab32_f2.gif";
 	img[17] = new Image; img[17].src = "topimg/tab33.gif";
 	img[18] = new Image; img[18].src = "topimg/tab33_f2.gif";
 	img[19] = new Image; img[19].src = "topimg/tab34.gif";
 	img[20] = new Image; img[20].src = "topimg/tab34_f2.gif";
 	img[21] = new Image; img[21].src = "topimg/tab35.gif";
 	img[22] = new Image; img[22].src = "topimg/tab35_f2.gif";
 	img[23] = new Image; img[23].src = "topimg/tab36.gif";
 	img[24] = new Image; img[24].src = "topimg/tab36_f2.gif";
	img[25] = new Image; img[25].src = "topimg/tab47.gif";
 	img[26] = new Image; img[26].src = "topimg/tab47_f2.gif";
}
function chg_img(imgname,imgstate){  
		document.images[imgname].src=img[imgstate].src;
}

  //0.1秒後にメニューを消します
var timectl

function timehide01(str){
if(str == 0) {
	clearTimeout(timectl);
	timectl = setTimeout("hideLAYER(getLayOj('submenu01'));",100);chg_img('img32',2);	
	} else {
	clrom01(0);
	clearTimeout(timectl);	
	showLAYER(getLayOj('submenu01'));chg_img('img32',3);
	}
}

function timehide02(str){
if(str == 0) {
	clearTimeout(timectl);
	timectl = setTimeout("hideLAYER(getLayOj('submenu02'));",100);chg_img('img33',2);	
	} else {
	clrom01(1);
	clearTimeout(timectl);	
	showLAYER(getLayOj('submenu02'));chg_img('img33',3);
	}
}

function timehide03(str){
if(str == 0) {
	clearTimeout(timectl);
	timectl = setTimeout("hideLAYER(getLayOj('submenu03'));",100);chg_img('img34',2);	
	} else {
	clrom01(2);
	clearTimeout(timectl);	
	showLAYER(getLayOj('submenu03'));chg_img('img34',3);
	}
}



function clrom01(clrstr){
if(clrstr == 0) {
	hideLAYER(getLayOj('submenu02'));hideLAYER(getLayOj('submenu03'));
	} else if(clrstr == 1) {
	hideLAYER(getLayOj('submenu01'));hideLAYER(getLayOj('submenu03'));
	} else if(clrstr == 2) {
	hideLAYER(getLayOj('submenu01'));hideLAYER(getLayOj('submenu02'));
	}
}


//サブメニュー

function subMenu(){


document.write("<div id='submenu01' class='posi-submenu' style='top:120;'><div class='posi-zero' style='z-index:4;'>");
document.write("<table border='0' cellpadding='0' cellspacing='0'>");
document.write("<tr><td><div class='navi3' id='navi3'><a href='"+ hposi +"motomeru/index.html' onMouseOver=timehide01(1); onMouseOut =timehide01(0);>求める人材</a></td></tr>");
document.write("<tr><td><div class='navi3' id='navi3'><a href='"+ hposi +"motomeru/president.html' onMouseOver=timehide01(1); onMouseOut =timehide01(0);>社長メッセージ</a></td></tr>");
document.write("<tr><td><div class='navi3' id='navi3'><a href='"+ hposi +"motomeru/personnel.html' onMouseOver=timehide01(1); onMouseOut =timehide01(0);>人事部メッセージ</a></td></tr>");
document.write("</table></div></div>");

document.write("<div id='submenu02' class='posi-submenu' style='top:152;'><div class='posi-zero' style='z-index:4;'>");
document.write("<table width='120' border='0' cellpadding='0' cellspacing='0'>");
document.write("<tr><td><div class='navi3' id='navi3'><a href='"+ hposi +"guide/index.html' onMouseOver=timehide02(1); onMouseOut =timehide02(0);>募集要項</a></td></tr>");
document.write("<tr><td><div class='navi3' id='navi3'><a href='"+ hposi +"guide/method.html' onMouseOver=timehide02(1); onMouseOut =timehide02(0);>応募方法</a></td></tr>");
document.write("<tr><td><div class='navi3' id='navi3'><a href='"+ hposi +"guide/place.html' onMouseOver=timehide02(1); onMouseOut =timehide02(0);>会場案内</a></td></tr>");
document.write("</table></div></div>");

document.write("<div id='submenu03' class='posi-submenu' style='top:184;'><div class='posi-zero' style='z-index:4;'>");
document.write("<table width='120' border='0' cellpadding='0' cellspacing='0'>");
document.write("<tr><td><div class='navi3' id='navi3'><a href='"+ hposi +"step/index.html' onMouseOver=timehide03(1); onMouseOut =timehide03(0);>教育制度</a></td></tr>");
document.write("<tr><td><div class='navi3' id='navi3'><a href='"+ hposi +"step/training.html' onMouseOver=timehide03(1); onMouseOut =timehide03(0);>新入社員研修</a></td></tr>");
document.write("<tr><td><div class='navi3' id='navi3'><a href='"+ hposi +"step/affairs.html' onMouseOver=timehide03(1); onMouseOut =timehide03(0);>人事制度</a></td></tr>");
document.write("</table></div></div>");
}

//メインメニュー
//posiinfo2==0 セイレンフィールド
//posiinfo2==1 求める人材
//posiinfo2==2 募集要項
//posiinfo2==3 キャリアステップ
//posiinfo2==4 新卒採用トップ
//posiinfo2==5 キャリア採用トップ
//posiinfo2==6 キャリアhttps応募フォーム
//posiinfo2==8 先輩サーチ

function naviMenu(posiinfo2){

if(posiinfo2 != 6){ linkad ="http://www.seiren.com/recruit/" }
//	else { linkad ="http://www.seiren.com/recruit/" }
	else { linkad =hposi }

document.write("<table border='0' cellpadding='0' cellspacing='0' style='vertical-align:top;'>");
document.write("<tr><td width='142' height='10'><img src='"+ hposi +"../cmnimg/btn01d.gif' width='142' height='10'></td></tr>");
document.write("<tr><td><div class='navi' id='navi' style='position:absolute; z-index:2;'>");
document.write("<a href='"+ linkad +"index02.html' onMouseOver=chg_img('img31',9); onMouseOut=chg_img('img31',8);>新卒採用情報</a></div>");
if(posiinfo2 < 6){
	document.write("<div style='position: absolute ; width: 142px; height: 18px; z-index:1; margin-top:1px; margin-bottom:1px; background-color:#3C1474;'>");
	document.write("<img src='"+ hposi +"../cmnimg/spacer.gif' width='142' height='20' alt='' border='0'></div>");
}


	document.write("<img name='img31' src='"+ hposi +"../cmnimg/btn01a.gif' width='142' height='22' alt=''></td></tr>");

	document.write("<tr><td style='background-image:url("+ hposi +"../cmnimg/bg_tab01.gif)'><img src='"+ hposi +"cmnimg/spacer.gif' width='142' height='18'></td></tr>");
if(posiinfo2 < 6){
	document.write("<tr><td><a href='"+ linkad +"field/index.html' target='_blank' onMouseOver=chg_img('img37',1); onMouseOut =chg_img('img37',0);>");
	document.write("<div style='position:absolute; margin-left:15px; margin-top:0px;'>");
	document.write("<img name='img37' src='"+ hposi +"cmnimg/eye11.gif' width='22' height='22' border='0' alt=''></div>");
	if(posiinfo2 == 0){
		document.write("<img src='"+ hposi +"cmnimg/tab41_f2.gif' width='142' height='22' border='0' alt='セーレンフィールド'></a></div></td></tr>");
		} else { 
		document.write("<img src='"+ hposi +"cmnimg/tab41.gif' width='142' height='22' border='0' alt='セーレンフィールド'></a></div></td></tr>");
	}
	document.write("<tr><td><img src='"+ hposi +"cmnimg/spacer.gif' width='142' height='10'></td></tr>");
	
	
	document.write("<tr><td><div class='btn-tab'><a href='"+ linkad +"senior/senior.html' onMouseOver=chg_img('img47',1); onMouseOut =chg_img('img47',0);>");
	document.write("<div style='position:absolute; margin-left:15px; margin-top:0px;'>");
	document.write("<img name='img47' src='"+ hposi +"cmnimg/eye11.gif' width='22' height='22' border='0' alt=''></div>");
	if(posiinfo2 == 5){
		document.write("<img src='"+ hposi +"cmnimg/tab47_f2.gif' width='142' height='22' border='0' alt='先輩サーチ'></a></div></td></tr>");
		} else { 
		document.write("<img src='"+ hposi +"cmnimg/tab47.gif' width='142' height='22' border='0' alt='先輩サーチ'></a></div></td></tr>");
		}
	document.write("<tr><td><img src='"+ hposi +"cmnimg/spacer.gif' width='142' height='10'></td></tr>");


	document.write("<tr><td class='cursorhand' onMouseOver=timehide01(1); onMouseOut =timehide01(0);><a href='"+ linkad +"motomeru/index.html' onMouseOver=chg_img('img32',1); onMouseOut =chg_img('img32',0);>");
	document.write("<div style='position:absolute; margin-left:15px; margin-top:0px;'>");
	document.write("<img name='img32' src='"+ hposi +"cmnimg/eye12.gif' width='22' height='22' border='0' alt=''></div>");
	if(posiinfo2 == 1){
		document.write("<img src='"+ hposi +"cmnimg/tab42_f2.gif' width='142' height='22' border='0' alt='求める人材'></a></td></tr>");
		} else { 
		document.write("<img src='"+ hposi +"cmnimg/tab42.gif' width='142' height='22' border='0' alt='求める人材'></a></td></tr>");
	}
	document.write("<tr><td><img src='"+ hposi +"cmnimg/spacer.gif' width='142' height='10'></td></tr>");

	document.write("<tr><td class='cursorhand' onMouseOver=timehide02(1); onMouseOut =timehide02(0);><a href='"+ linkad +"guide/index.html' onMouseOver=chg_img('img33',1); onMouseOut =chg_img('img33',0);>");
	document.write("<div style='position:absolute; margin-left:15px; margin-top:0px;'>");
	document.write("<img name='img33' src='"+ hposi +"cmnimg/eye12.gif' width='22' height='22' border='0' alt=''></div>");
	if(posiinfo2 == 2){
		document.write("<img src='"+ hposi +"cmnimg/tab43_f2.gif' width='142' height='22' border='0' alt='募集要項'></a></td></tr>");
		} else { 
		document.write("<img src='"+ hposi +"cmnimg/tab43.gif' width='142' height='22' border='0' alt='募集要項'></a></td></tr>");
	}
	document.write("<tr><td><img src='"+ hposi +"cmnimg/spacer.gif' width='142' height='10'></td></tr>");

	document.write("<tr><td class='cursorhand' onMouseOver=timehide03(1); onMouseOut =timehide03(0);><a href='"+ linkad +"step/index.html' onMouseOver=chg_img('img34',1); onMouseOut =chg_img('img34',0);>");
	document.write("<div style='position:absolute; margin-left:15px; margin-top:0px;'>");
	document.write("<img name='img34' src='"+ hposi +"cmnimg/eye12.gif' width='22' height='22' border='0' alt=''></div>");
	if(posiinfo2 == 3){
		document.write("<img src='"+ hposi +"cmnimg/tab44_f2.gif' width='142' height='22' border='0' alt='キャリアステップ'></a></td></tr>");
		} else { 
		document.write("<img src='"+ hposi +"cmnimg/tab44.gif' width='142' height='22' border='0' alt='キャリアステップ'></a></td></tr>");
	}
	document.write("<tr><td><img src='"+ hposi +"cmnimg/spacer.gif' width='142' height='10'></td></tr>");

	
	document.write("<tr><td><div class='btn-tab'><a href='"+ hposi +"index02.html' onMouseOver=chg_img('img41',1); onMouseOut =chg_img('img41',0);>");
	document.write("<div style='position:absolute; margin-left:15px; margin-top:0px;'>");
	document.write("<img name='img41' src='"+ hposi +"cmnimg/eye11.gif' width='22' height='22' border='0' alt=''></div>");
	if(posiinfo2 == 4){
		document.write("<img src='"+ hposi +"cmnimg/tab46_f2.gif' width='142' height='22' border='0' alt='トップ'></a></div></td></tr>");
		} else { 
		document.write("<img src='"+ hposi +"cmnimg/tab46.gif' width='142' height='22' border='0' alt='トップ'></a></div></td></tr>");
		}
	document.write("<tr><td><img src='"+ hposi +"cmnimg/spacer.gif' width='142' height='18'></td></tr>");

	}



document.write("<tr><td><div class='navi' id='navi' style='position:absolute; z-index:2;'>");
document.write("<a href='"+ linkad +"career/index.html' onMouseOver=chg_img('img36',9); onMouseOut=chg_img('img36',8);>キャリア採用情報</a></div>");

if(posiinfo2 >= 6){
	document.write("<div style='position: absolute ; width: 142px; height: 18px; z-index:1; margin-top:1px; margin-bottom:1px; background-color:#3C1474;'>");
	document.write("<img src='"+ hposi +"../cmnimg/spacer.gif' width='142' height='20' alt='' border='0'></div>");
}
	document.write("<img name='img36' src='"+ hposi +"../cmnimg/btn01a.gif' width='142' height='22' alt=''></td></tr>");
//	document.write("<tr><td height='1' valign='top'><img src='"+ hposi +"../cmnimg/btn_top.gif' width='142' height='1' border='0'></td></tr>");


if(posiinfo2 >= 6){




document.write("<tr><td><div class='navi' id='navi' style='position:absolute; z-index:2;'>");
	if(posiinfo2 != 6){
	document.write("<a href='"+ linkad +"career/index.html' onMouseOver=chg_img('img36',9); onMouseOut=chg_img('img36',8);>募集要項</a></div>");
	} else {
	document.write("<div style='display:block; width:142px ; text-indent:5px; font-size: 12px; line-height: 20px; color: #fff; text-align:left;'>募集要項</div></div>");
	}
	if(posiinfo2 == 6){
		document.write("<div style='position: absolute ; width: 142px; height: 18px; z-index:1;'>");
		document.write("<img src='"+ hposi +"../cmnimg/btn01b.gif' width='142' height='22' alt=''></div>");
	}
	document.write("<img name='img36' src='"+ hposi +"../cmnimg/btn01a.gif' width='142' height='22' alt=''></td></tr>");






	document.write("<tr><td><div class='navi' id='navi' style='position:absolute; z-index:2;'>");
	if(posiinfo2 != 7){

	document.write("<a href='https://www.seiren.com/recruit/php/entryform.php' onMouseOver=chg_img('img38',9); onMouseOut=chg_img('img38',8);>応募フォーム</a></div>");
	} else {
	document.write("<div style='display:block; width:142px ; text-indent:5px; font-size: 12px; line-height: 20px; color: #fff; text-align:left;'>応募フォーム</div></div>");
	}

	if(posiinfo2 == 7){
		document.write("<div style='position: absolute ; width: 142px; height: 18px; z-index:1;'>");
		document.write("<img src='"+ hposi +"../cmnimg/btn01b.gif' width='142' height='22' alt=''></div>");
	}
	document.write("<img name='img38' src='"+ hposi +"../cmnimg/btn01a.gif' width='142' height='22' alt=''></td></tr>");





	document.write("<tr><td><div class='navi' id='navi' style='position:absolute; z-index:2;'>");
	if(posiinfo2 != 8){

	document.write("<a href='"+ linkad +"career/career_oubo.html' onMouseOver=chg_img('img39',9); onMouseOut=chg_img('img39',8);>応募方法</a></div>");
	} else {
	document.write("<div style='display:block; width:142px ; text-indent:5px; font-size: 12px; line-height: 20px; color: #fff; text-align:left;'>応募方法</div></div>");
	}

	if(posiinfo2 == 8){
		document.write("<div style='position: absolute ; width: 142px; height: 18px; z-index:1;'>");
		document.write("<img src='"+ hposi +"../cmnimg/btn01b.gif' width='142' height='22' alt=''></div>");
	}
	document.write("<img name='img39' src='"+ hposi +"../cmnimg/btn01a.gif' width='142' height='22' alt=''></td></tr>");
}


document.write("<tr><td height='1' valign='top'><img src='"+ hposi +"../cmnimg/btn_top.gif' width='142' height='1' border='0'></td></tr></table>");
}