/*----------------------------------------------------------
  Leftnavi for interview category
----------------------------------------------------------*/

/*----------------------------------------------------------
  Set Leftnavi name
----------------------------------------------------------*/
var lnaviName = new Array(
	'採用ポリシー',
	'セミナー情報',
	'募集要項',
	'採用・選考フロー',
	'転職者インタビュー',
	'採用FAQ',
	'技術のご紹介'
);

/*----------------------------------------------------------
  Set Leftnavi link
----------------------------------------------------------*/
var lnaviLink = new Array(
	'/employ/career/policy.html',
	'/employ/career/seminar.html',
	'/employ/career/data.html',
	'/employ/career/flow.html',
	'/employ/career/interview/index.html',
	'/employ/career/faq.html',
	'http://web.canon.jp/technology/'
);

/*----------------------------------------------------------
  Set Leftnavi status
----------------------------------------------------------*/
var lnaviStat = new Array(
	'self',
	'self',
	'self',
	'self',
	'self',
	'self',
	'blank'
);


/*----------------------------------------------------------
  Set Loop Max
----------------------------------------------------------*/
var loopMax = lnaviName.length;

/*----------------------------------------------------------
  Set Function
----------------------------------------------------------*/

/*----------------------------------------------------------
  Function : LeftNavi Output
----------------------------------------------------------*/
function Lnavi(setName) {

	var htmlSource = '';

	htmlSource = setHtml(setName);

	document.write(htmlSource);
}


/*----------------------------------------------------------
  Function : setHtml
----------------------------------------------------------*/
function setHtml(setName) {
	var htmlSource = '';
	htmlSource += '<ul>\n';

	for (var i = 0; i < loopMax; i++) {

		if (lnaviName[i] != setName) {
			htmlSource += '<li';
			if(i == loopMax-1){htmlSource += ' class="bottom"';}
			htmlSource += '><a href="';
			htmlSource += lnaviLink[i];
			htmlSource += '"';
			if(lnaviStat[i]=="blank"){htmlSource += ' target="blank"';}
			htmlSource += '>';
			if(lnaviStat[i]=="self"){htmlSource += '<span class="self">';}
			if(lnaviStat[i]=="blank"){htmlSource += '<span class="blank">';}
			htmlSource += lnaviName[i];
			htmlSource += '</span></a></li>\n';
		}else {
			htmlSource += '<li class="current';
			if(i == loopMax-1){htmlSource += ' bottom';}
			htmlSource += '"><a href="';
			htmlSource += lnaviLink[i];
			htmlSource += '"';
			if(lnaviStat[i]=="blank"){htmlSource += ' target="_blank"';}
			htmlSource += '><em>';
			if(lnaviStat[i]=="self"){htmlSource += '<span class="self">';}
			if(lnaviStat[i]=="blank"){htmlSource += '<span class="blank">';}
			htmlSource += lnaviName[i];
			htmlSource += '</span></em></a></li>\n';
		}
	}
htmlSource += '</ul>';
	return htmlSource;
}

