//------------------------------------------------------------------------------
//	ロールオーバー設定
//------------------------------------------------------------------------------

ImgName = new Array('head_nav_01','head_nav_02','head_nav_03','head_nav_04','head_nav_05','head_nav_06');
ImgStat = new Array('','_o');

B = new Array();

if(document.images)for( j = 0 ; j < ImgStat.length ; j++ ){
	for( i = 0 ; i < ImgName.length ; i++ ){
		B[ j*ImgName.length + i ] = new Image();
		B[ j*ImgName.length + i ].src = '../common/img/' + ImgName[i] + ImgStat[j] +'.jpg';
	}
}


function ChangeImg(i,j){
	if((document.images)&&(B[ j*ImgName.length + i ].src)){
		document.images[ImgName[i]].src = B[ j*ImgName.length + i ].src ;
	}
}

tbl_url = new Array('../challenge/index.html','../life/index.html','../idea/index.html','../ouen/index.html','../event/index.html','http://www.team-6.jp/hamax/kids/');
tbl_alt = new Array('私のチャレンジ宣言','1人1日1kg CO2削減生活！','みんなのCO2削減アイデア','「1人1日1kg CO2削減」応援キャンペーン協賛企業','イベント・キャンペーン情報','こどもチャレンジ宣言');
tbl_width = new Array('113','112','113','113','113','112','112');



//------------------------------------------------------------------------------
//	naviの設定
//	(0,1)後ろの数字は　0＝RO画像が表示されてリンク無／1＝RO画像リンク有
//------------------------------------------------------------------------------
function Navigation(t,k){
document.write('<table width="860" border="0" cellspacing="0" cellpadding="0" align="center" id="head">');
document.write('<tr>');
document.write('<td colspan="17"><img src="../common/img/spacer.gif" alt="" width="1" height="2"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><img src="../common/img/spacer.gif" alt="" width="15" height="1"></td>');
document.write('<td><h1><a href="../index.html?sf=1"><img src="../common/img/head_title.jpg" alt="めざせ！ 1人、1日、1kg CO2削減" width="137" height="61"></a></h1></td>');
document.write('<td><img src="../common/img/spacer.gif" alt="" width="15" height="1"></td>');
	for(i=0; i<6; i++){
		if(i==t){
			if(k==0){
				document.write('<td>');
				document.write('<img src="../common/img/',ImgName[i],'_o.jpg" height ="61" width="',tbl_width[i],'" alt="',tbl_alt[i],'" border="0">');
				document.write('</td>');
				document.write('<td><img src="../common/img/spacer.gif" alt="" width="3" height="1"></td>');
			}else{
				document.write('<td><a href="',tbl_url[i],'">');
				document.write('<img src="../common/img/',ImgName[i],'_o.jpg" height ="61" width="',tbl_width[i],'" alt="',tbl_alt[i],'" border="0">');
				document.write('</a></td>');
				document.write('<td><img src="../common/img/spacer.gif" alt="" width="3" height="1"></td>');
			}
		}else{
			document.write('<td>');
			document.write('<a href="',tbl_url[i],'" onMouseOver="ChangeImg(',i,',1)" onMouseOut="ChangeImg(',i,',0)">');
			document.write('<img src="../common/img/',ImgName[i],'.jpg" height ="61" width="',tbl_width[i],'" alt="',tbl_alt[i],'" border="0" name="',ImgName[i],'">');
			document.write('</a>');
			document.write('</td>');
			document.write('<td><img src="../common/img/spacer.gif" alt="" width="3" height="1"></td>');
		}
	}
document.write('</tr>');
document.write('<tr>');
document.write('<td colspan="17"><img src="../common/img/spacer.gif" alt="" width="1" height="4"></td>');
document.write('</tr>');
document.write('</table>');
}
