//urlpass = 'http://kfcj-pre.seasoning.co.jp/';
//urlpass = 'http://kfcj-pre2.seasoning.co.jp/';
urlpass = 'http://japan.kfc.co.jp/';

if(navigator.appVersion.charAt(0) >= "3") {
	var img = new Array();
	img[0] = new Image();  img[0].src = urlpass + "img/out_b.gif";
	img[1] = new Image();  img[1].src = urlpass + "img/news_b.gif";
	img[2] = new Image();  img[2].src = urlpass + "img/ir_b.gif";
	img[3] = new Image();  img[3].src = urlpass + "img/hot-fresh_b.gif";
	img[4] = new Image();  img[4].src = urlpass + "img/comm_b.gif";
	img[5] = new Image();  img[5].src = urlpass + "img/par_b.gif";
	img[6] = new Image();  img[6].src = urlpass + "img/his_b.gif";
	img[7] = new Image();  img[7].src = urlpass + "img/qa_b.gif";
	img[8] = new Image();  img[8].src = urlpass + "img/rec_b.gif";
	img[9] = new Image();  img[9].src = urlpass + "img/store_b.gif";
	img[8] = new Image();  img[8].src = urlpass + "img/rec_b.gif";
	img[9] = new Image();  img[9].src = urlpass + "img/store_b.gif";
	img[20] = new Image();  img[20].src = urlpass + "img/using_b.gif";
	img[21] = new Image();  img[21].src = urlpass + "img/security_b.gif";
	img[22] = new Image();  img[22].src = urlpass + "img/report_b.gif";
	img[23] = new Image();  img[23].src = urlpass + "img/environment_b.gif";

	//2008/12/15追加---------------------------
	img[24] = new Image();  img[24].src = urlpass + "img/healthy_b.gif";
	//2008/12/15追加---------------------------

	img[10] = new Image();  img[10].src = urlpass + "img/out_a.gif";
	img[11] = new Image();  img[11].src = urlpass + "img/news_a.gif";
	img[12] = new Image();  img[12].src = urlpass + "img/ir_a.gif";
	img[13] = new Image();  img[13].src = urlpass + "img/hot-fresh_a.gif";
	img[14] = new Image();  img[14].src = urlpass + "img/comm_a.gif";
	img[15] = new Image();  img[15].src = urlpass + "img/par_a.gif";
	img[16] = new Image();  img[16].src = urlpass + "img/his_a.gif";
	img[17] = new Image();  img[17].src = urlpass + "img/qa_a.gif";
	img[18] = new Image();  img[18].src = urlpass + "img/rec_a.gif";
	img[19] = new Image();  img[19].src = urlpass + "img/store_a.gif";
	img[200] = new Image();  img[200].src = urlpass + "img/using_a.gif";
	img[210] = new Image();  img[210].src = urlpass + "img/security_a.gif";
	img[220] = new Image();  img[220].src = urlpass + "img/report_a.gif";
	img[230] = new Image();  img[230].src = urlpass + "img/environment_a.gif";
	
	//2008/12/15追加---------------------------
	img[240] = new Image();  img[240].src = urlpass + "img/healthy_a.gif";
	//2008/12/15追加---------------------------
	
}
	
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}

}
function changeImages() {

	if (document.images && (preloadFlag == true)) {

		for (var i=0; i<changeImages.arguments.length; i+=2) {

			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];

		}

	}

}
var preloadFlag = false;

function preloadImages() {

	if (document.images) {

		bar_01_ImageMap_02_over = newImage("images/bar_01-ImageMap_02_over.gif");

		bar_01_ImageMap_03_over = newImage("images/bar_01-ImageMap_03_over.gif");

		bar_01_ImageMap_05_over = newImage("images/bar_01-ImageMap_05_over.gif");

		bar_01_ImageMap_04_over = newImage("images/bar_01-ImageMap_04_over.gif");

		preloadFlag = true;

	}

}function Mover(nam,num) {
	if(navigator.appVersion.charAt(0) >= "3") {
		document.images[nam].src = img[num].src;
	}
}

function Mout(nam,num) {
	document.images[nam].src = img[num].src;
}
function OPENWINDOW(url, w, h){
window.open(url,"openwindow",'toolbar=0,location=0,scrollbars=1,menubar=0,width=' + w + ',height=' + h + ',resizable=1');
}
function Navi (url, naviname, overnum, outnum, type) {

	this.url = url;

	this.naviname = naviname;

	this.overnum = overnum;

	this.outnum = outnum;

	this.type = type;

}//Pagebottom//
function HBMENU(urlpass) {
if(urlpass == void(0)){urlpass = '../'};
document.write(

'<DIV align="center">'+

'<img src="' + urlpass + '' + urlpass + 'img/space.gif" WIDTH="1" HEIGHT="30">'+

'<table border="0" cellpadding="0" cellspacing="0" width="450">'+

'<tr><td><img src="' + urlpass + 'img/space.gif" WIDTH="1" HEIGHT="1"></td></tr>'+

'<tr><td bgcolor="#dddddd"><img src="' + urlpass + 'img/space.gif" WIDTH="1" HEIGHT="1"></td></tr>'+

'</table>'+

'<img src="' + urlpass + 'img/space.gif" WIDTH="1" HEIGHT="15"><br>'+

'<a href="' + urlpass + 'outline/index.html" target="_top" class="link3">会社概要</a>'+

'&nbsp;|&nbsp;'+

'<a href="' + urlpass + 'news/index.html" target="_top" class="link3">ニュースリリース</a>'+

'&nbsp;|&nbsp;'+

'<a href="' + urlpass + 'kessan/ir.html" target="_top" class="link3">財務データ・IR情報</a>'+

'&nbsp;|&nbsp;'+

'<a href="' + urlpass + 'safetysafe/kfcj/02a.html" target="_blank" class="link3">おいしさへの取り組み</a>'+

'&nbsp;|&nbsp;'+

'<a href="' + urlpass + 'environment/index.html" target="_top" class="link3">環境への取り組み</a>'+

//2008/12/15変更---------------------------
//'<br>'+
'&nbsp;|&nbsp;'+
//2008/12/15変更---------------------------
//2008/12/15追加---------------------------
'<a href="' + urlpass + 'healthy/index.html" target="_top" class="link3">食育への取り組み</a>'+
'&nbsp;|&nbsp;'+
//2008/12/15追加---------------------------


'<a href="' + urlpass + 'social/index.html" target="_top" class="link3">社会活動</a>'+

'&nbsp;|&nbsp;'+

'<a href="' + urlpass + 'report/index.html" target="_top" class="link3">社会環境レポート</a>'+

'&nbsp;|&nbsp;'+

'<a href="' + urlpass + 'partner/index.html" target="_top" class="link3">パートナーシップ</a>'+

'&nbsp;|&nbsp;'+

'<a href="' + urlpass + 'store/index.html" target="_top" class="link3">店舗開発</a>'+

'&nbsp;|&nbsp;'+

'<a href="' + urlpass + 'tale/index.html" target="_top" class="link3">カーネル物語</a>'+

'&nbsp;|&nbsp;'+

'<a href="' + urlpass + 'qa/index.html" target="_top" class="link3">Q&amp;A</a>'+

'&nbsp;|&nbsp;'+

'<a href="' + urlpass + 'recruit/index.html" target="_top" class="link3">採用情報</a>'+

//2008/12/15変更---------------------------
//'<br>'+
'&nbsp;|&nbsp;'+
//2008/12/15変更---------------------------

'<a href="' + urlpass + 'using/index.html" target="_top" class="link3">ご利用にあたって</a>'+

'&nbsp;|&nbsp;'+

'<a href="' + urlpass + 'security/index.html" target="_top" class="link3">個人情報保護方針</a>'+

'<br><br>'+

'<span class="copy">'+

'Copyright&copy; 2000-2010 KENTUCKY FRIED CHICKEN JAPAN LTD.'+

'<br>All Rights Reserved.'+

'<img src="' + urlpass + 'img/space.gif" width="10" height="1">'+

'<img src="' + urlpass + 'img/kfcjlogo.gif" width="220" height="10">'+

'</span><br>'+

'<img src="' + urlpass + 'img/space.gif" width="1" height="10">'+

'</DIV>'

);
}
//メインメニュー部//

function HLEFT(urlpass) {

if(urlpass == void(0)){urlpass = './'};
sco = "'";
document.write(
'<a href="' + urlpass + 'outline/index.html" onMouseOver="Mover(' + sco + 'out' + sco + ',10),show(0);" onMouseOut="Mout(' + sco + 'out' + sco + ',0),hide(0);" target="_top"><img src="' + urlpass + 'img/out_b.gif" WIDTH="175" HEIGHT="29" border="0" name="out"></a><br>'+

'<a href="' + urlpass + 'news/index.html" onMouseOver="Mover(' + sco + 'news' + sco + ',11),show(1);" onMouseOut="Mout(' + sco + 'news' + sco + ',1),hide(1);" target="_top"><img src="' + urlpass + 'img/news_b.gif" WIDTH="175" HEIGHT="29" border="0" name="news"></a><br>'+

'<a href="' + urlpass + 'kessan/ir.html" target="_top" onMouseOver="Mover(' + sco + 'ir' + sco + ',12),show(2);" onMouseOut="Mout(' + sco + 'ir' + sco + ',2),hide(2);"><img src="' + urlpass + 'img/ir_b.gif" WIDTH="175" HEIGHT="29" border="0" name="ir"></a><br>'+

'<a href="' + urlpass + '/safetysafe/kfcj/02a.html" target="_blank" onMouseOver="Mover(' + sco + 'hot-fresh' + sco + ',13)" onMouseOut="Mout(' + sco + 'hot-fresh' + sco + ',3)"><img src="' + urlpass + 'img/hot-fresh_b.gif" WIDTH="175" HEIGHT="29" border="0" name="hot-fresh"></a><br>'+

'<a href="' + urlpass + 'environment/index.html" target="_top" onMouseOver="Mover(' + sco + 'environment' + sco + ',230),show(23);" onMouseOut="Mout(' + sco + 'environment' + sco + ',23),hide(23);"><img src="' + urlpass + 'img/environment_b.gif" WIDTH="175" HEIGHT="29" border="0" name="environment"></a><br>'+

//2008/12/15変更---------------------------
'<a href="' + urlpass + 'healthy/index.html" target="_top" onMouseOver="Mover(' + sco + 'healthy' + sco + ',240)" onMouseOut="Mout(' + sco + 'healthy' + sco + ',24)"><img src="' + urlpass + 'img/healthy_b.gif" WIDTH="175" HEIGHT="29" border="0" name="healthy"></a><br>'+
//2008/12/15変更---------------------------

'<a href="' + urlpass + 'social/index.html" target="_top" onMouseOver="Mover(' + sco + 'comm' + sco + ',14),show(4);" onMouseOut="Mout(' + sco + 'comm' + sco + ',4),hide(4);"><img src="' + urlpass + 'img/comm_b.gif" WIDTH="175" HEIGHT="29" border="0" name="comm"></a><br>'+

'<a href="' + urlpass + 'report/index.html" target="_top" onMouseOver="Mover(' + sco + 'report' + sco + ',220)" onMouseOut="Mout(' + sco + 'report' + sco + ',22)"><img src="' + urlpass + 'img/report_b.gif" WIDTH="175" HEIGHT="29" border="0" name="report"></a><br>'+

'<a href="' + urlpass + 'partner/index.html" target="_top" onMouseOver="Mover(' + sco + 'par' + sco + ',15),show(5);" onMouseOut="Mout(' + sco + 'par' + sco + ',5),hide(5);"><img src="' + urlpass + 'img/par_b.gif" WIDTH="175" HEIGHT="29" border="0" name="par"></a><br>'+

'<a href="' + urlpass + 'store/index.html" target="_top" onMouseOver="Mover(' + sco + 'store' + sco + ',19),show(9);" onMouseOut="Mout(' + sco + 'store' + sco + ',9),hide(9);"><img src="' + urlpass + 'img/store_b.gif" WIDTH="175" HEIGHT="29" border="0" name="store"></a><br>'+

'<a href="' + urlpass + 'tale/index.html" target="_top" onMouseOver="Mover(' + sco + 'his' + sco + ',16),show(6);" onMouseOut="Mout(' + sco + 'his' + sco + ',6),hide(6);"><img src="' + urlpass + 'img/his_b.gif" WIDTH="175" HEIGHT="29" border="0" name="his"></a><br>'+

'<a href="' + urlpass + 'qa/index.html" target="_top" onMouseOver="Mover(' + sco + 'qa' + sco + ',17),show(7);" onMouseOut="Mout(' + sco + 'qa' + sco + ',7),hide(7);"><img src="' + urlpass + 'img/qa_b.gif" WIDTH="175" HEIGHT="29" border="0" name="qa"></a><br>'+

'<a href="' + urlpass + 'recruit/index.html" target="_top" onMouseOver="Mover(' + sco + 'rec' + sco + ',18),show(8);" onMouseOut="Mout(' + sco + 'rec' + sco + ',8),hide(8);"><img src="' + urlpass + 'img/rec_b.gif" WIDTH="175" HEIGHT="29" border="0" name="rec"></a>'+

'<a href="' + urlpass + 'using/index.html" target="_top" onMouseOver="Mover(' + sco + 'using' + sco + ',200),show(20);" onMouseOut="Mout(' + sco + 'using' + sco + ',20),hide(20);"><img src="' + urlpass + 'img/using_b.gif" WIDTH="175" HEIGHT="29" border="0" name="using"></a>'+

'<a href="' + urlpass + 'security/index.html" target="_top" onMouseOver="Mover(' + sco + 'security' + sco + ',210),show(21);" onMouseOut="Mout(' + sco + 'security' + sco + ',21),hide(21);"><img src="' + urlpass + 'img/security_b.gif" WIDTH="175" HEIGHT="29" border="0" name="security"></a>'

);}

function HLEFT_F (naviname){
	var sco = "'";

	if(urlpass == void(0)){ urlpass = './' };
	//設定

	var navidatas = new Array();


	//2008/12/15変更---------------------------
	/*
	navidatas[0] = new Navi('outline/index.html', 'out', 10, 0);
	navidatas[1] = new Navi('news/index.html', 'news', 11, 1);
	navidatas[2] = new Navi('kessan/ir.html', 'ir', 12, 2);
	navidatas[3] = new Navi('safetysafe/kfcj/02a.html', 'hot-fresh', 13, 3, 1);
	navidatas[4] = new Navi('environment/index.html', 'environment', 230, 23);
	navidatas[5] = new Navi('social/index.html', 'comm', 14, 4);
	navidatas[6] = new Navi('report/index.html', 'report', 220, 22,2);
	navidatas[7] = new Navi('partner/index.html', 'par', 15, 5);
	navidatas[8] = new Navi('store/index.html', 'store', 19, 9);
	navidatas[9] = new Navi('tale/index.html', 'his', 16, 6);
	navidatas[10] = new Navi('qa/index.html', 'qa', 17, 7);
	navidatas[11] = new Navi('recruit/index.html', 'rec', 18, 8);
	navidatas[12] = new Navi('using/index.html', 'using', 200, 20);
	navidatas[13] = new Navi('security/index.html', 'security', 210, 21);
	*/
	
	navidatas[0] = new Navi('outline/index.html', 'out', 10, 0);
	navidatas[1] = new Navi('news/index.html', 'news', 11, 1);
	navidatas[2] = new Navi('kessan/ir.html', 'ir', 12, 2);
	navidatas[3] = new Navi('safetysafe/kfcj/02a.html', 'hot-fresh', 13, 3, 1);
	navidatas[4] = new Navi('environment/index.html', 'environment', 230, 23);	
	
	navidatas[5] = new Navi('healthy/index.html', 'healthy', 240, 24);
	
	navidatas[6] = new Navi('social/index.html', 'comm', 14, 4);
	navidatas[7] = new Navi('report/index.html', 'report', 220, 22,2);
	navidatas[8] = new Navi('partner/index.html', 'par', 15, 5);
	navidatas[9] = new Navi('store/index.html', 'store', 19, 9);
	navidatas[10] = new Navi('tale/index.html', 'his', 16, 6);
	navidatas[11] = new Navi('qa/index.html', 'qa', 17, 7);
	navidatas[12] = new Navi('recruit/index.html', 'rec', 18, 8);
	navidatas[13] = new Navi('using/index.html', 'using', 200, 20);
	navidatas[14] = new Navi('security/index.html', 'security', 210, 21);
    //2008/12/15変更---------------------------

	for(var i = 0; i < navidatas.length; i++) {
		document.write('<tr><td><img src="/img/leftmenu_space.gif" WIDTH="1" HEIGHT="3"></td></tr>');
		if(navidatas[i].naviname == naviname) {
			if(navidatas[i].type == 2) {
				document.write('<tr><td><a href="' + urlpass + navidatas[i].url + '" target="_top" onMouseOver="show(' + navidatas[i].outnum + ');" onMouseOut="hide(' + navidatas[i].outnum + ');"><img src="' + urlpass + 'img/' + navidatas[i].naviname + '_a.gif" WIDTH="175" HEIGHT="29" border="0" name="' + navidatas[i].naviname + '"></a></td></tr>');
			} else {
				document.write('<tr><td><a href="' + urlpass + navidatas[i].url + '" onMouseOver="show(' + navidatas[i].outnum + ');" onMouseOut="hide(' + navidatas[i].outnum + ');"><img src="' + urlpass + 'img/' + navidatas[i].naviname + '_a.gif" WIDTH="175" HEIGHT="29" border="0" name="' + navidatas[i].naviname + '"></a></td></tr>');
			}
		} else {

			if(navidatas[i].type == 1) {
				document.write('<tr><td><a href="' + urlpass + navidatas[i].url + '" target="_blank" onMouseOver="Mover(' + sco + navidatas[i].naviname + sco + ',' + navidatas[i].overnum + ')" onMouseOut="Mout(' + sco + navidatas[i].naviname + sco + ',' + navidatas[i].outnum + ')"><img src="' + urlpass + 'img/' + navidatas[i].naviname + '_b.gif" WIDTH="175" HEIGHT="29" border="0" name="' + navidatas[i].naviname + '"></a></td></tr>');
			} else if(navidatas[i].type == 2){
				document.write('<tr><td><a href="' + urlpass + navidatas[i].url + '" target="_top" onMouseOver="Mover(' + sco + navidatas[i].naviname + sco + ',' + navidatas[i].overnum + '),show(' + navidatas[i].outnum + ');" onMouseOut="Mout(' + sco + navidatas[i].naviname + sco + ',' + navidatas[i].outnum + '),hide(' + navidatas[i].outnum + ');"><img src="' + urlpass + 'img/' + navidatas[i].naviname + '_b.gif" WIDTH="175" HEIGHT="29" border="0" name="' + navidatas[i].naviname + '"></a></td></tr>');
			} else {
				document.write('<tr><td><a href="' + urlpass + navidatas[i].url + '" onMouseOver="Mover(' + sco + navidatas[i].naviname + sco + ',' + navidatas[i].overnum + '),show(' + navidatas[i].outnum + ');" onMouseOut="Mout(' + sco + navidatas[i].naviname + sco + ',' + navidatas[i].outnum + '),hide(' + navidatas[i].outnum + ');"><img src="' + urlpass + 'img/' + navidatas[i].naviname + '_b.gif" WIDTH="175" HEIGHT="29" border="0" name="' + navidatas[i].naviname + '"></a></td></tr>');
			}
//			alert('<tr><td><a href="' + urlpass + navidatas[i].url + '" target="AAA" onMouseOver="Mover(' + sco + navidatas[i].naviname + sco + ',' + navidatas[i].overnum + '),show(' + navidatas[i].outnum + ');" onMouseOut="Mout(' + sco + navidatas[i].naviname + sco + ',' + navidatas[i].outnum + '),hide(' + navidatas[i].outnum + ');"><img src="' + urlpass + 'img/' + navidatas[i].naviname + '_b.gif" WIDTH="175" HEIGHT="29" border="0" name="' + navidatas[i].naviname + '"></a></td></tr>');

		}	}
}

function opn_Win(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}


