var NaviCnt = 7;
var Pglink;
if( Pglink == 'i'){
	Linkdir = '.';
}else{
	Linkdir = '..';
}
LinkImg = new Array('<img src="http://raku.homepage.biglobe.ne.jp/biz/images/parts/image/icon_a_mi_01.gif" border="0">','<img src="http://raku.homepage.biglobe.ne.jp/biz/images/parts/image/icon_a_mi_01.gif" border="0">','<img src="http://raku.homepage.biglobe.ne.jp/biz/images/parts/image/icon_a_mi_01.gif" border="0">','<img src="http://raku.homepage.biglobe.ne.jp/biz/images/parts/image/icon_a_mi_01.gif" border="0">','<img src="http://raku.homepage.biglobe.ne.jp/biz/images/parts/image/icon_a_mi_01.gif" border="0">','<img src="http://raku.homepage.biglobe.ne.jp/biz/images/parts/image/icon_a_mi_01.gif" border="0">','<img src="http://raku.homepage.biglobe.ne.jp/biz/images/parts/image/icon_a_mi_01.gif" border="0">');
PageID = new Array(Linkdir+'/',Linkdir+'/41684980/',Linkdir+'/19918737/',Linkdir+'/35473819/',Linkdir+'/95101895/',Linkdir+'/35694097/',Linkdir+'/74384765/');
PageTitle = new Array('北陸総合調査室','ご案内','調査の流れ','調査項目','法人向け調査','リンク集','リンク集2');
PageComment = new Array('インデックス','','','','','','警察、弁護士会');
document.write('<style>\n');
document.write('.title_td {margin:5px; background-color:#6699FF; color:#FFFFFF; font-size:small; font-weight: bolder; }\n');
document.write('.link_td {margin:5px; background-color:6699FF;}\n');
document.write('.link_elem {color:#FFFFFF; font-size:x-small; none}\n');
document.write('.comment_elem {color:#FFFFFF; font-size:x-small; none}\n');
document.write('</style>\n');
var TitleImage = false;
var TdTag = '<td valign="top" align="left" nowrap>';
var LinkTag = '<a href="%LINK%"%TARGET%><span class="link_elem">%LINK_TITLE%</span></a><br>\n';
var CommTag = '<span class="comment_elem">%LINK_COMMENT%</span><br>\n';
var ImgTag = '<a href="%LINK%"%TARGET%>%IMG%</a><br>\n';
var Spacer = 'http://raku.homepage.biglobe.ne.jp/biz/images/parts/1pix.gif';
document.write('<table cellspacing="0" cellpadding="0" border="0">\n');
document.write('<tbody>\n');
document.write('<tr>\n');
document.write('<td valign="top" align="left" class="link_td">\n');
document.write('<table cellspacing="0" cellpadding="0" border="0">\n');
document.write('<tbody>\n');
document.write('<tr>\n');
document.write('<td valign="top" align="left" class="title_td">');
if ( TitleImage ) {
	document.write(TitleImage);
}
document.write('</td>\n');
document.write('</tr>\n');
document.write('<tr>\n');
document.write('<td valign="top" align="left" class="title_td"></td>\n');
document.write('</tr>\n');
for ( n=0; n<NaviCnt; n++ ) {
	document.write('<tr>\n');
	var ImgTagOut = '';
	var LinkTagOut = '';
	var CommTagOut = '';
	document.write(TdTag);
	if ( LinkImg[n] ) {
		ImgTagOut = ImgTag.replace('%LINK%',PageID[n]);
		ImgTagOut = ImgTagOut.replace('%IMG%',LinkImg[n]);
		if ( ImgTagOut.indexOf('.php?',0) > 0 ) {
			if ( ImgTagOut.indexOf('tools.php?',0) > 0) {
				ImgTagOut = ImgTagOut.replace('%TARGET%','target="tools_"');
			}else{
				ImgTagOut = ImgTagOut.replace('%TARGET%','target="_blank"');
			}
		} else {
			ImgTagOut = ImgTagOut.replace('%TARGET%','');
		}
		document.write(ImgTagOut);
	}
	if ( PageTitle[n] ) {
		LinkTagOut = LinkTag.replace('%LINK%',PageID[n]);
		LinkTagOut = LinkTagOut.replace('%LINK_TITLE%',PageTitle[n]);
		if ( LinkTagOut.indexOf('.php?',0) > 0 ) {
			if ( LinkTagOut.indexOf('tools.php?',0) > 0) {
				LinkTagOut = LinkTagOut.replace('_IMAGE','_TITLE');
				LinkTagOut = LinkTagOut.replace('%TARGET%','target="tools_"');
			}else{
				LinkTagOut = LinkTagOut.replace('%TARGET%','target="_blank"');
			}
		} else {
			LinkTagOut = LinkTagOut.replace('%TARGET%','');
		}
		document.write(LinkTagOut);
	}
	if ( LinkImg[n] || PageTitle[n] ) {
		CommTagOut = CommTag.replace('%LINK_COMMENT%',PageComment[n]);
		document.write(CommTagOut);
	}
	document.write('</td>\n');
	document.write('</tr>\n');
}
document.write('</tbody>\n');
document.write('</table>\n');
document.write('</td>\n');
document.write('<td align="left" valign="top"><img src="' + Spacer+ '" width="20" height="1"></td>');

