///////////////////////////////////////////
///	『 JAVASCRIPTライブラリ 』	///
///		第一電子株式会社	///
///	Copyright (C) 2005		///
///	DaiichiDenshi Corporation.	///
///	All Rights Reserved.		///
///////////////////////////////////////////

//////////////
// 月日取得 //
//////////////
atDate = new Date();
atMonth = atDate.getMonth()+1;
atDate = atDate.getDate();

//////////////////////
//イメージプレロード//
//////////////////////
//data = new Array("img1.jpg","img2.jpg","img3.jpg","img4.jpg");
//prImg= new Array();
//for (i=0; i<data.length; i++)
//{
//	prImg[i] = new Image();
//	prImg[i].src = data[i];
//}

///////////////////////
// 直前のURLチェック //
///////////////////////
function checkURL(){
	nxtURL = 'http://www./';		//ジャンプ先のURL指定
	myURL = document.URL;			//現在のURL取得
	myHOST = location.hostname;		//ホスト名の取得
	oldURL = document.referrer;		//ジャンプ元のURL取得
	oldHOST = oldURL.substring(7,19);	//substring(http://の文字数,ドメインまでの文字数)
	if(oldHOST != myHOST || oldHOST == 0){location.href(nxtURL);}
}

//////////////////////
// ファイル名の取得 //
//////////////////////
function GetFileName(file_url){
	file_url = file_url.substring(file_url.lastIndexOf("/")+1,file_url.length)
	//拡張子も取り除く場合は次の行のコメントアウトをはずしてください
	//file_url = file_url.substring(0,file_url.indexOf("."));
	return file_url;
MyFile = GetFileName(location.href);
}

////////////////////////////
// ポップアップウインドウ //
////////////////////////////
//【HTML記述例】popWin('表示させるアドレス',ウィンドウの幅,ウインドウの高さ,スクロールバーON/OFF);
function popWin(url,w,h,s){
	window.open(url, 'win','width='+ w +',height='+ h +',scrollbars=' + s + ',status=0,directories=0,menubar=0,resizable=1,toolbar=0,fullscreen=0,dependent=1');
}

//////////////////////////////
// オンマウスオーバーボタン //
//////////////////////////////
//ULink = new Array();
//for (i = 0; i <= 7; i++) {ULink[i] = new Image();ULink[i].src='images/btn_head_'+i+'on.gif'; }
//
//function LinkI(n){ document.images['Link' + n].src = ULink[n].src; }
//function LinkO(n){ document.images['Link' + n].src = 'images/btn_head_' + n + 'off.gif'; }

////////////////////////
// プルダウンメニュー //
////////////////////////
function DM(tag) {
	if ( document.getElementById ) {
		if ( document.getElementById(tag).style.visibility == "hidden" ){
			document.getElementById(tag).style.visibility = "visible"; }
		else { document.getElementById(tag).style.visibility = "hidden"; }
	}
	if ( document.layers ) {
		if ( document.layers[tag].visibility == "hide" ){
			document.layers[tag].visibility = "show"; }
		else { document.layers[tag].visibility= "hide"; }
	}
}

function DMoff(tag) {
	if ( document.getElementById ) {
		if ( document.getElementById(tag).style.visibility == "visible" ){
			document.getElementById(tag).style.visibility = "hidden"; }
		else { document.getElementById(tag).style.visibility = "hidden"; }
	}
	if ( document.layers ) {
		if ( document.layers[tag].visibility == "show" ){
			document.layers[tag].visibility = "hide"; }
		else { document.layers[tag].visibility= "hide"; }
	}
}
function DMon(tag) {
	if ( document.getElementById ) {
		if ( document.getElementById(tag).style.visibility == "hidden" ){
			document.getElementById(tag).style.visibility = "visible"; }
		else { document.getElementById(tag).style.visibility = "visible"; }
	}
	if ( document.layers ) {
		if ( document.layers[tag].visibility == "hide" ){
			document.layers[tag].visibility = "show"; }
		else { document.layers[tag].visibility= "show"; }
	}
}


// ヘッダーメニュー //
function head_menu(){
MyFile = GetFileName(location.href);
	document.write('<table border="0" width="800" cellpadding="0" cellspacing="0" class="head_menu">');
	document.write('<tr>');
//	document.write('    <th bgcolor="#0EBBF3"><img src="../image/menu_btn_h01.gif" height="21" border="0" alt="播州織とは" onMouseOver="DMon(\'tag1\');" onMouseOut="DMoff(\'tag1\');"></th>');
//	document.write('    <th bgcolor="#E6979C"><img src="../image/menu_btn_h02.gif" height="21" border="0" alt="播州織工業組合" onMouseOver="DMon(\'tag2\');" onMouseOut="DMoff(\'tag2\');"></th>');
//	document.write('    <th bgcolor="#1CB479"><img src="../image/menu_btn_h03.gif" height="21" border="0" alt="企業紹介" onMouseOver="DMon(\'tag3\');" onMouseOut="DMoff(\'tag3\');"></th>');
	document.write('    <th bgcolor="#E6979C"><a href="../profile/index.html"><img src="../image/menu_btn_h02.gif" height="21" border="0" alt="播州織工業組合"></a></th>');
	document.write('    <th bgcolor="#0EBBF3"><a href="../about/introduction.html"><img src="../image/menu_btn_h01.gif" height="21" border="0" alt="播州織とは"></a></th>');
	document.write('    <th bgcolor="#1CB479"><a href="../intro/enterprise.html"><img src="../image/menu_btn_h03.gif" height="21" border="0" alt="企業紹介"></a></th>');
	document.write('    <th bgcolor="#F3A783"><a href="../cgi-bin/update/update.cgi?dir=topics"><img src="../image/menu_btn_h04.gif" height="21" border="0" alt="トピックス"></a></th>');
	document.write('    <th bgcolor="#FAB826"><a href="../sightseeing/guide_map.html"><img src="../image/menu_btn_h05.gif" height="21" border="0" alt="周辺観光ガイド"></a></th>');
	document.write('    <th bgcolor="#0194D7"><a href="../link/index.html"><img src="../image/menu_btn_h06.gif" height="21" border="0" alt="リンク集"></a></th>');
	document.write('    <th bgcolor="#00B1A5"><a href="../inquiry/index.html"><img src="../image/menu_btn_h07.gif" height="21" border="0" alt="お問い合わせ"></a></th>');
	document.write('    <th bgcolor="#C65C5E"><a href="../index.html"><img src="../image/menu_btn_h08.gif" height="21" border="0" alt="INDEX"></a></th>');
	document.write('</tr>');
	document.write('</table>');
if(document.title == 'はじめに 〜 播州織工業組合'){ document.write('<div style="background-color:#0EBBF3;">　</div>'); }
else if(document.title == 'あゆみ 〜 播州織工業組合'){ document.write('<div style="background-color:#0EBBF3;">　</div>'); }
else if(document.title == '播州織ができるまで 〜 播州織工業組合'){ document.write('<div style="background-color:#0EBBF3;">　</div>'); }
else if(document.title == '概要 〜 播州織工業組合'){ document.write('<div style="background-color:#E6979C;">　</div>'); }
else if(document.title == '用語集 〜 播州織工業組合'){ document.write('<div style="background-color:#E6979C;">　</div>'); }
else if(document.title == '各種統計表 〜 播州織工業組合'){ document.write('<div style="background-color:#E6979C;">　</div>'); }
else if(document.title == '企業紹介 〜 播州織工業組合'){ document.write('<div style="background-color:#1CB479;">　</div>'); }
else if(document.title == '会員の広場 〜 播州織工業組合'){ document.write('<div style="background-color:#1CB479;">　</div>'); }
else if(document.title == 'トピックス 〜 播州織工業組合'){ document.write('<div style="background-color:#f3a783;">　</div>'); }
else if(document.title == 'ファッションショー 〜 播州織工業組合'){ document.write('<div style="background-color:#f3a783;">　</div>'); }
else if(document.title == 'リンク集 〜 播州織工業組合'){ document.write('<div style="background-color:#0194D7;">　</div>'); }
else if(document.title == '周辺観光ガイド 〜 播州織工業組合'){ document.write('<div style="background-color:#FAB826;">　</div>'); }
else if(document.title == 'お問い合わせ 〜 播州織工業組合'){ document.write('<div style="background-color:#00B1A5;">　</div>'); }
else if(MyFile == 'cbbs.cgi'){ document.write('<div style="background-color:#1CB479;">　</div>'); }
}

// フッター //
function footer(){
	document.write('<hr size="1" style="border-top:1px dashed #999999;">');
	document.write('<div align="center" style="font-size:110%;padding:2px;color:#606A85;font-weight:bold;"><img src="../image/point_01.gif" align="absolute"> 播州織工業組合 <img src="../image/point_01.gif" align="absolute"></div>\n');
	document.write('<div align="center">〒677-0033　兵庫県西脇市鹿野町267番地の6</div>\n');
	document.write('<div align="center">TEL:0795-22-1881　FAX:0795-22-7883</div>\n');
	document.write('<div align="center">e-mail:<a href="mailto:oriren@silver.ocn.ne.jp">oriren@silver.ocn.ne.jp</a></div>\n');
}

