// JavaScript Document

//配列の初期設定
var gmenu = new Array();
var gmenu_key = new Array();
var gmenu_style = new Array();
var gmenu_sub = new Array();


/**** グローバルメニュー　キー ****/
gmenu_key[0] = 'home';
gmenu_key[1] = 'news';
gmenu_key[2] = 'rodo';
gmenu_key[3] = 'kurashi';
gmenu_key[4] = 'gender';
gmenu_key[5] = 'kokusai';
gmenu_key[6] = 'rentai';
gmenu_key[7] = 'info';
gmenu_key[8] = 'gekkanrengo';

/**** アクティブカテゴリ用スタイルシート ****/
gmenu_style['home']    = '<link href="/css/home.css" rel="stylesheet" type="text/css">';
gmenu_style['news']      = '<link href="/css/news.css" rel="stylesheet" type="text/css">';
gmenu_style['rodo']      = '<link href="/css/rodo.css" rel="stylesheet" type="text/css">';
gmenu_style['kurashi']   = '<link href="/css/kurashi.css" rel="stylesheet" type="text/css">';
gmenu_style['gender']     = '<link href="/css/gender.css" rel="stylesheet" type="text/css">';
gmenu_style['kokusai']   = '<link href="/css/kokusai.css" rel="stylesheet" type="text/css">';
gmenu_style['info']      = '<link href="/css/info.css" rel="stylesheet" type="text/css">';
gmenu_style['rentai']    = '<link href="/css/rentai.css" rel="stylesheet" type="text/css">';
gmenu_style['gekkanrengo']    = '<link href="/css/gekkanrengo.css" rel="stylesheet" type="text/css">';



/**** HOMEメニュー ****/
     gmenu_sub['home']  = new Array();
gmenu['home']    = '<a class="MenuBarItemSubmenu" href="/index.html">トップ</a>';
gmenu_sub['home'][0] = '<a href="/rireki/index.html">新着情報</a>';
gmenu_sub['home'][1] = '<a href="/rengo/index.html">連合について</a>'; 
//gmenu_sub['home'][2] =  '<a href="/torikumi/index.html">連合の取り組み</a>';
gmenu_sub['home'][2] =  '<a href="/soudan/index.html">労働相談</a>';
gmenu_sub['home'][3] =  '<a href="/yougo/index.html">労働用語集</a>';
gmenu_sub['home'][4] =  '<a href="/shuppan/index.html">出版物・各種資料</a>';
gmenu_sub['home'][5] =  '<a href="/link/index.html">リンク集</a>';


/**** NEWSメニュー ****/
     gmenu_sub['news']  = new Array();
gmenu['news']    = '<a class="MenuBarItemSubmenu" href="/news/index.html">ニュース</a>';
gmenu_sub['news'][0] = '<a href="/news/kenkai/index.html">連合見解</a>';
gmenu_sub['news'][1] = '<a href="/news/danwa/index.html">事務局長談話</a>'; 
gmenu_sub['news'][2] =  '<a href="/news/rengonews/index.html">連合ニュース</a>';
gmenu_sub['news'][3] =  '<a href="/news/rengotv/index.html">RENGO-TV</a>';
gmenu_sub['news'][4] =  '<a href="/news/column/index.html">会長コラム</a>';


/**** ROUDOメニュー ****/
     gmenu_sub['rodo']  = new Array();
gmenu['rodo']    = '<a class="MenuBarItemSubmenu" href="/roudou/index.html">労働・賃金</a>';
gmenu_sub['rodo'][0] = '<a href="/roudou/shuntou/index.html">春季生活闘争</a>';
gmenu_sub['rodo'][1] = '<a href="/roudou/chingin/index.html">最低賃金</a>'; 
gmenu_sub['rodo'][2] =  '<a href="/roudou/koyou/hiseikiroudou/index.html">非正規雇用問題</a>';
gmenu_sub['rodo'][3] =  '<a href="/roudou/seido/index.html">雇用・労働法制</a>';
gmenu_sub['rodo'][4] =  '<a href="/roudou/kankyou/index.html">労働環境</a>';
gmenu_sub['rodo'][5] =  '<a href="/roudou/roudouanzen/index.html">労働安全衛生</a>';
gmenu_sub['rodo'][6] =  '<a href="/roudou/gaikokujin/index.html">外国人労働者</a>';
gmenu_sub['rodo'][7] =  '<a href="/roudou/chusho/index.html">中小企業の公正取引</a>';


/**** KURASHIメニュー ****/
     gmenu_sub['kurashi']  = new Array();
gmenu['kurashi']    = '<a class="MenuBarItemSubmenu" href="/kurashi/index.html">くらし・政策</a>';
gmenu_sub['kurashi'][0] = '<a href="/kurashi/saftynet/index.html">連合の提案する社会的セーフティネット</a>';
gmenu_sub['kurashi'][1] = '<a href="/kurashi/seisaku/index.html">政策・制度要求と提言/重点政策</a>';
gmenu_sub['kurashi'][2] = '<a href="/kurashi/shakaihoshou.html">社会保障</a>';
gmenu_sub['kurashi'][3] = '<a href="/kurashi/worklifebalance/index.html">目指そう「ワーク・ライフ・バランス社会」</a>';
gmenu_sub['kurashi'][4] = '<a href="/kurashi/zei/index.html">税制</a>';
gmenu_sub['kurashi'][5] = '<a href="/kurashi/index.html#kyouiku">教育</a>';
gmenu_sub['kurashi'][6] = '<a href="/kurashi/index.html#kankyou">環境</a>';
gmenu_sub['kurashi'][7] = '<a href="/kurashi/kinyuu/index.html">金融政策</a>';


/**** WOMANメニュー ****/
     gmenu_sub['gender']  = new Array();
gmenu['gender']    = '<a class="MenuBarItemSubmenu" href="/gender/index.html">働く女性</a>';
gmenu_sub['gender'][0] = '<a href="/gender/info/index.html">インフォメーション</a>';
gmenu_sub['gender'][1] = '<a href="/gender/houritsu/index.html">働く女性に関する法律</a>';
gmenu_sub['gender'][2] = '<a href="/gender/motto/index.html">もっと組合へ！</a>';
gmenu_sub['gender'][3] = '<a href="/gender/w_campaign/index.html">「１＋１＝女性の力」キャンペーン展開中！</a>';
gmenu_sub['gender'][4] = '<a href="/gender/seisaku/index.html">連合男女平等政策</a>';
gmenu_sub['gender'][5] = '<a href="/gender/equality/index.html">ジェンダー平等の推進に向けた国際活動</a>';
gmenu_sub['gender'][6] = '<a href="/gender/library/index.html">ライブラリー</a>';
gmenu_sub['gender'][7] = '<a href="/gender/link/index.html">リンク</a>';



/**** KOKUSAIメニュー ****/
     gmenu_sub['kokusai']  = new Array();
gmenu['kokusai']    = '<a class="MenuBarItemSubmenu" href="/kokusai/index.html">国際活動</a>';
gmenu_sub['kokusai'][0] = '<a href="/kokusai/event/index.html">お知らせ・イベント等</a>';
gmenu_sub['kokusai'][1] = '<a href="/kokusai/news/index.html">国際活動ニュース</a>';
gmenu_sub['kokusai'][2] = '<a href="/kokusai/ilo/index.html">中核的労働基準とILO</a>';
gmenu_sub['kokusai'][3] = '<a href="/kokusai/soshiki/index.html">国際・地域労働組合組織</a>';
gmenu_sub['kokusai'][4] = '<a href="/kokusai/kaihatsukyouryoku/index.html">開発協力活動（NGOとの協働）</a>';
gmenu_sub['kokusai'][5] = '<a href="/kokusai/burma/index.html">ビルマ（ミャンマー）問題への取り組み</a>';
gmenu_sub['kokusai'][6] = '<a href="/kokusai/takokusekikigyou/index.html">多国籍企業問題への対応</a>';
gmenu_sub['kokusai'][7] = '<a href="/kokusai/siryou/index.html">ITUC関連資料</a>';




/**** RENTAIメニュー ****/
     gmenu_sub['rentai']  = new Array();
gmenu['rentai']    = '<a class="MenuBarItemSubmenu" href="/rentai_katsudo/index.html">連帯活動</a>';
gmenu_sub['rentai'][0] = '<a href="/rentai_katsudo/peace/index.html">平和運動</a>';
gmenu_sub['rentai'][1] = '<a href="/rentai_katsudo/campa/index.html">連合・愛のカンパ</a>';
gmenu_sub['rentai'][2] = '<a href="/rentai_katsudo/seinen/index.html">青年活動</a>';
gmenu_sub['rentai'][3] = '<a href="/rentai_katsudo/jinken/index.html">人権問題</a>';
gmenu_sub['rentai'][4] = '<a href="/rentai_katsudo/mayday/index.html">メーデー</a>';




/**** INFOメニュー ****/
     gmenu_sub['info']  = new Array();
gmenu['info']    = '<a class="MenuBarItemSubmenu" href="/info/index.html">インフォメーション</a>';
gmenu_sub['info'][0] = '<a href="/info/event/index.html">イベント案内</a>';
gmenu_sub['info'][1] = '<a href="/info/boshuu/index.html">ただいま募集中</a>';
gmenu_sub['info'][2] = '<a href="/info/shutsuen.html">連合に関するテレビ・ラジオ情報</a>';
gmenu_sub['info'][3] = '<a href="/info/tosho/index.html">図書案内</a>';

/**** GEKKANRENGOメニュー ****/
     gmenu_sub['gekkanrengo']  = new Array();
gmenu['gekkanrengo']    = '<a class="MenuBarItemSubmenu" href="/shuppan/teiki/gekkanrengo/index.html">月刊連合</a>';
/*gmenu_sub['gekkanrengo'][0] = '<a href="/info/event/index.html">イベント案内</a>';
gmenu_sub['gekkanrengo'][1] = '<a href="/info/boshuu/index.html">ただいま募集中</a>';*/


/******************************************************************************
グローバルメニューの出力
******************************************************************************/

function dispGmenu(tab){
	if(tab){
		document.write(gmenu_style[tab]);
	}
document.write('<ul id="GlobalMenuBar" class="MenuBarHorizontal">');
	for(i=0; i<gmenu_key.length; i++){
			document.write('<li id="gmenu_'+gmenu_key[i]+'_id" class="gmenu_'+gmenu_key[i]+'">');
			document.write(gmenu[gmenu_key[i]]);
			document.write('<ul onMouseOver="changeClass(\'gmenu_'+gmenu_key[i]+'_id\',\'gmenu_'+gmenu_key[i]+'_hover\');"  onMouseOut="changeClass(\'gmenu_'+gmenu_key[i]+'_id\',\'gmenu_'+gmenu_key[i]+'\');">');
				for(j=0; j<gmenu_sub[gmenu_key[i]].length; j++){
					document.write('<li class="gmenu_'+gmenu_key[i]+'_'+j+'">'+gmenu_sub[gmenu_key[i]][j]+'</li>');
				}
			document.write('</ul>');
			document.write('</li>');
	}
document.write('</ul>');

/**ソース出力

			document.write('<br />');
			document.write('<br />');
	if(tab){
		document.write('&lt;link href="/css/'+tab+'.css" rel="stylesheet" type="text/css"&gt;');
			document.write('<br />');
	}
document.write('&lt;ul id="GlobalMenuBar" class="MenuBarHorizontal"&gt;');
			document.write('<br />');
	for(i=0; i<gmenu_key.length; i++){
			document.write('&lt;li class="gmenu_'+gmenu_key[i]+'"&gt;');
			document.write('<br />');
			document.write(gmenu[gmenu_key[i]]);
			document.write('<br />');
			document.write('&lt;ul&gt;');
			document.write('<br />');
				for(j=0; j<gmenu_sub[gmenu_key[i]].length; j++){
					document.write('&lt;li class="gmenu_'+gmenu_key[i]+'_'+j+'"&gt;'+gmenu_sub[gmenu_key[i]][j]+'&lt;/li&gt;');
			document.write('<br />');
				}
			document.write('&lt;/ul&gt;');
			document.write('<br />');
			document.write('&lt;/li&gt;');
			document.write('<br />');
	}
document.write('&lt;/ul&gt;');
			document.write('<br />');


**/




//Spryのプルダウンメニューを実行
var GlobalMenuBar = new Spry.Widget.MenuBar("GlobalMenuBar", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});

}







//プルダウン時に親メニューの背景classを変更する
function changeClass(i,c){
 if(document.all) document.all(i).className=c;
 else if(document.getElementById)
  document.getElementById(i).className=c;
}






