
function header(number) {
	number = number || 3; //引数 number が指定されていない場合はデフォルトで3を代入する。
	var prefix = '';
	for (var i= 1; i < number; i++) prefix += '../';
	
	document.write('<div id="header">');
	document.write('<div class="left"><a href="' + prefix +'index.html"><img src="'+ prefix +'images/header_title.gif" width="350" height="44" alt="日本アイスクリーム協会" /></a></div>');
	document.write('<div class="header_m mr5"><a href="' + prefix +'sitemap.html"><img src="'+ prefix +'images/header_sitemap.gif" width="74" height="21" alt="サイトマップ" /></a></div>');
	document.write('<div class="header_m"><a href="https://' + location.hostname + '/mailform/inquiry.do"><img src="'+ prefix +'images/header_mail.gif" width="78" height="21" alt="お問い合わせ" /></a></div>');
	document.write('<div class="right"><img src="'+ prefix +'images/header_logo.gif" width="220" height="44" alt="" /></div>');
	document.write('</div>');
} // header()

function footer() {
	document.write('<div id="footer">');
	document.write('<p class="footer_l"><a href="javascript:subwin" onclick="javascript:window.open(\'/privacypolicy.html\', \'privacy\', \'toolbar=0,status=1,scrollbars=1,menubar=0,resizable=no,width=520,height=620\');return false;">プライバシーポリシー</p></a>');
	document.write('<p class="footer_r">2011（C）社団法人 日本アイスクリーム協会</p>');
	document.write('</div>');
} // footer()


/* popup */
function popup(url,windowname,width,height) {
var features="location=no, menubar=no, status=yes, scrollbars=yes, resizable=yes, toolbar=no";
if (width) {
if (window.screen.width > width)
	features+=", left="+(window.screen.width-width)/2;
else width=window.screen.width;
	features+=", width="+width;
}
if (height) {
if (window.screen.height > height)
	features+=", top="+(window.screen.height-height)/2;
else height=window.screen.height;
	features+=", height="+height;
}
window.open(url,windowname,features);
}


function selectNowPage() {
	var np = window.location.href.split('/').reverse()[0];
	$('#leftmenu div a').each(function(){
		if ( $(this).attr('href') == np ) {
			var parent = $(this).parent();
			var parentId = parent.attr('id');
			if (parentId.split('_m').length == 2) parent.attr('id', parentId + 'h');
		}
	});
}

$(function(){
	selectNowPage();
});


function leftmenu_present(number) {
	document.write('<div id="leftmenu">');

if(number==1){
	document.write('<div id="present1_tit"><a href="https://' + location.hostname + '/form/entry.do?fid="><span>応募フォーム</span></a></div>');
	document.write('<div id="present2_tit"><a href="quiz01.html"><span>クイズを見る</span></a></div>');
}
if(number==2){
	document.write('<div id="present1_tit"><a href="https://' + location.hostname + '/form/entry.do?fid="><span>応募フォーム</span></a></div>');
	document.write('<div id="present2_tith"><a href="quiz01.html"><span>クイズを見る</span></a></div>');
	document.write('<div id="quiz_m01"><a href="quiz01.html"><span>赤城乳業株式会社</span></a></div>');
	document.write('<div id="quiz_m02"><a href="quiz02.html"><span>井村屋製菓株式会社</span></a></div>');
	document.write('<div id="quiz_m03"><a href="quiz03.html"><span>江崎グリコ株式会社</span></a></div>');
	document.write('<div id="quiz_m04"><a href="quiz04.html"><span>オハヨー乳業株式会社</span></a></div>');
	document.write('<div id="quiz_m05"><a href="quiz05.html"><span>協同乳業株式会社</span></a></div>');
	document.write('<div id="quiz_m06"><a href="quiz06.html"><span>クラシエフーズ株式会社</span></a></div>');
	document.write('<div id="quiz_m07"><a href="quiz07.html"><span>ハーゲンダッツ ジャパン株式会社</span></a></div>');
	document.write('<div id="quiz_m08"><a href="quiz08.html"><span>フタバ食品株式会社</span></a></div>');
	document.write('<div id="quiz_m09"><a href="quiz09.html"><span>丸永製菓株式会社</span></a></div>');
	document.write('<div id="quiz_m10"><a href="quiz10.html"><span>明治乳業株式会社</span></a></div>');
	document.write('<div id="quiz_m11"><a href="quiz11.html"><span>森永製菓株式会社</span></a></div>');
	document.write('<div id="quiz_m12"><a href="quiz12.html"><span>森永乳業株式会社</span></a></div>');
	document.write('<div id="quiz_m13"><a href="quiz13.html"><span>株式会社ロッテアイス</span></a></div>');
}

	document.write('</div>');
} // leftmenu_present()


function leftmenu_news(number) {
	document.write('<div id="leftmenu">');

if(number==1){
	document.write('<div id="news01_tith"><a href="index.html"><span>Whats New</span></a></div>');
	document.write('<div id="news02_tit"><a href="webcampaign.html"><span>過去のWebキャンペーン</span></a></div>');
}
if(number==2){
	document.write('<div id="news01_tit"><a href="index.html"><span>Whats New</span></a></div>');
	document.write('<div id="news02_tith"><a href="webcampaign.html"><span>過去のWebキャンペーン</span></a></div>');
}

	document.write('</div>');
} // leftmenu_news()


function leftmenu_lineup(number) {
	document.write('<div id="leftmenu">');

if(number==1){
	document.write('<div id="lineup_tith"><a href="index.html"><span>各社おすすめアイスクリーム</span></a></div>');
	document.write('<div id="campaign_tit"><a href="campaign.html"><span>キャンペーン情報</span></a></div>');
}
if(number==2){
	document.write('<div id="lineup_tit"><a href="index.html"><span>各社おすすめアイスクリーム</span></a></div>');
	document.write('<div id="campaign_tith"><a href="campaign.html"><span>キャンペーン情報</span></a></div>');
}

	document.write('</div>');
} // leftmenu_lineup()

function leftmenu_enjoy(number) {
	document.write('<div id="leftmenu">');

if(number==1){
	document.write('<div id="game_tith"><a href="index.html"><span>アイスクリームゲームコーナー</span></a></div>');
	document.write('<div id="song_tit"><a href="song.html"><span>アイスクリームの歌</span></a></div>');
}
if(number==2){
	document.write('<div id="game_tit"><a href="index.html"><span>アイスクリームゲームコーナー</span></a></div>');
	document.write('<div id="song_tith"><a href="song.html"><span>アイスクリームの歌</span></a></div>');
}

	document.write('</div>');
} // leftmenu_lineup()


function leftmenu_cooking(number) {
	document.write('<div id="leftmenu">');

if(number==0){
	document.write('<div id="making_tit"><a href="01/make01.html"><span>失敗しないアイスクリームの作り方</span></a></div>');
	document.write('<div id="make_tit"><a href="02/make02.html"><span>アイスクリームの種類・作り方</span></a></div>');
	document.write('<div id="recipe_tit"><a href="03/recipe01.html"><span>おすすめレ・シ・ピ</span></a></div>');
}
if(number==1){
	document.write('<div id="making_tith"><a href="../01/make01.html"><span>失敗しないアイスクリームの作り方</span></a></div>');
	document.write('<div id="make_tit"><a href="../02/make02.html"><span>アイスクリームの作り方</span></a></div>');
	document.write('<div id="recipe_tit"><a href="../03/recipe01.html"><span>おすすめレ・シ・ピ</span></a></div>');
}
if(number==2){
	document.write('<div id="making_tit"><a href="../01/make01.html"><span>失敗しないアイスクリームの作り方</span></a></div>');
	document.write('<div id="make_tith"><a href="../02/make02.html"><span>アイスクリームの作り方</span></a></div>');
	document.write('<div id="make_m02"><a href="make02.html"><span>フルーツアイスクリーム</span></a></div>');
	document.write('<div id="make_m03"><a href="make03.html"><span>チョコレートアイスクリーム</span></a></div>');
	document.write('<div id="make_m04"><a href="make04.html"><span>和風素材のアイスクリーム</span></a></div>');
	document.write('<div id="make_m05"><a href="make05.html"><span>アイスクリーム ア・ラ・カルト</span></a></div>');
	document.write('<div id="make_m06"><a href="make06.html"><span>シャーベット</span></a></div>');
	document.write('<div id="make_m07"><a href="make07.html"><span>フレーバー</span></a></div>');
	document.write('<div id="make_m08"><a href="make08.html"><span>アイスクリームソース</span></a></div>');
	document.write('<div id="make_m09"><a href="make09.html"><span>トッピング</span></a></div>');
	document.write('<div id="make_m10"><a href="make10.html"><span>アクセサリー</span></a></div>');
	document.write('<div id="make_m11"><a href="make11.html"><span>器</span></a></div>');
	document.write('<div id="recipe_tit"><a href="../03/recipe01.html"><span>おすすめレ・シ・ピ</span></a></div>');
}
if(number==3){
	document.write('<div id="making_tit"><a href="../01/make01.html"><span>失敗しないアイスクリームの作り方</span></a></div>');
	document.write('<div id="make_tit"><a href="../02/make02.html"><span>アイスクリームの作り方</span></a></div>');
	document.write('<div id="recipe_tith"><a href="../03/recipe01.html"><span>おすすめレ・シ・ピ</span></a></div>');
	document.write('<div id="recipe_m01"><a href="recipe01.html"><span>朝のおめざにアイスクリーム</span></a></div>');
	document.write('<div id="recipe_m02"><a href="recipe02.html"><span>ランチタイムのサポートアイス</span></a></div>');
	document.write('<div id="recipe_m03"><a href="recipe03.html"><span>ディナーを彩るアイスクリームデザート</span></a></div>');
	document.write('<div id="recipe_m04"><a href="recipe04.html"><span>ダイエット中のヘルシー＆ビューティーアイス</span></a></div>');
	document.write('<div id="recipe_m05"><a href="recipe05.html"><span>アクティブシニアのアイスクリーム・スマイル</span></a></div>');
}

	document.write('</div>');
} // leftmenu_cooking()


function leftmenu_data(number) {
	document.write('<div id="leftmenu">');

if(number==0){
	document.write('<div id="basic_tit"><a href="01/basic01.html"><span>アイスクリームの基礎知識</span></a></div>');
	document.write('<div id="history_tit"><a href="02/history01.html"><span>アイスクリームの歴史と背景</span></a></div>');
	document.write('<div id="world_tit"><a href="03/world01.html"><span>世界各国のアイスクリーム</span></a></div>');
	document.write('<div id="statistics_tit"><a href="04/statistics01.html"><span>統計情報編</span></a></div>');
	document.write('<div id="hakusho_tit"><a href="05/hakusho01.html"><span>アイスクリーム白書</span></a></div>');
	document.write('<div id="rule_tit"><a href="06/rule01.html"><span>公正競争規約</span></a></div>');
}
if(number==1){
	document.write('<div id="basic_tith"><a href="../01/basic01.html"><span>アイスクリームの基礎知識</span></a></div>');
	document.write('<div id="basic_m01"><a href="basic01.html"><span>アイスクリームの原料は？</span></a></div>');
	document.write('<div id="basic_m02"><a href="basic02.html"><span>アイスクリームはどうやって作られるの？</span></a></div>');
	document.write('<div id="basic_m03"><a href="basic03.html"><span>Webで体験！アイスクリーム工場見学</span></a></div>');
	document.write('<div id="basic_m04"><a href="basic04.html"><span>アイスクリームのおいしさの秘密</span></a></div>');
	document.write('<div id="basic_m05"><a href="basic05.html"><span>アイスクリームの成分表</span></a></div>');
	document.write('<div id="basic_m06"><a href="basic06.html"><span>アイスクリームでおいしく解決</span></a></div>');
	document.write('<div id="basic_m07"><a href="basic07.html"><span>アイスクリームの表示の見方</span></a></div>');
	document.write('<div id="basic_m08"><a href="basic08.html"><span>アイスクリーム類の種類</span></a></div>');
	document.write('<div id="basic_m09"><a href="basic09.html"><span>アイスクリームの保管方法</span></a></div>');
	document.write('<div id="basic_m10"><a href="basic10.html"><span>アイスクリームの賞味期限表示</span></a></div>');
	document.write('<div id="history_tit"><a href="../02/history01.html"><span>アイスクリームの歴史と背景</span></a></div>');
	document.write('<div id="world_tit"><a href="../03/world01.html"><span>世界各国のアイスクリーム</span></a></div>');
	document.write('<div id="statistics_tit"><a href="../04/statistics01.html"><span>統計情報編</span></a></div>');
	document.write('<div id="hakusho_tit"><a href="../05/hakusho01.html"><span>アイスクリーム白書</span></a></div>');
	document.write('<div id="rule_tit"><a href="../06/rule01.html"><span>公正競争規約</span></a></div>');
}
if(number==2){
	document.write('<div id="basic_tit"><a href="../01/basic01.html"><span>アイスクリームの基礎知識</span></a></div>');
	document.write('<div id="history_tith"><a href="../02/history01.html"><span>アイスクリームの歴史と背景</span></a></div>');
	document.write('<div id="history_m01"><a href="history01.html"><span>アイスクリーム前史1</span></a></div>');
	document.write('<div id="history_m02"><a href="history02.html"><span>アイスクリーム前史2</span></a></div>');
	document.write('<div id="history_m03"><a href="history03.html"><span>アイスクリームの伝播1</span></a></div>');
	document.write('<div id="history_m04"><a href="history04.html"><span>アイスクリームの伝播2</span></a></div>');
	document.write('<div id="history_m05"><a href="history05.html"><span>アメリカで発達したアイスクリーム</span></a></div>');
	document.write('<div id="history_m06"><a href="history06.html"><span>あいすくりんの誕生</span></a></div>');
	document.write('<div id="history_m07"><a href="history07.html"><span>アイスクリームの工業化1</span></a></div>');
	document.write('<div id="history_m08"><a href="history08.html"><span>アイスクリームの工業化2</span></a></div>');
	document.write('<div id="history_m09"><a href="history09.html"><span>アイスクリーム時代の到来</span></a></div>');
	document.write('<div id="world_tit"><a href="../03/world01.html"><span>世界各国のアイスクリーム</span></a></div>');
	document.write('<div id="statistics_tit"><a href="../04/statistics01.html"><span>統計情報編</span></a></div>');
	document.write('<div id="hakusho_tit"><a href="../05/hakusho01.html"><span>アイスクリーム白書</span></a></div>');
	document.write('<div id="rule_tit"><a href="../06/rule01.html"><span>公正競争規約</span></a></div>');
}
if(number==3){
	document.write('<div id="basic_tit"><a href="../01/basic01.html"><span>アイスクリームの基礎知識</span></a></div>');
	document.write('<div id="history_tit"><a href="../02/history01.html"><span>アイスクリームの歴史と背景</span></a></div>');
	document.write('<div id="world_tith"><a href="../03/world01.html"><span>世界各国のアイスクリーム</span></a></div>');
	document.write('<div id="world_m01"><a href="world01.html"><span>アメリカ編1</span></a></div>');
	document.write('<div id="world_m02"><a href="world02.html"><span>アメリカ編2</span></a></div>');
	document.write('<div id="world_m03"><a href="world03.html"><span>イタリア編1</span></a></div>');
	document.write('<div id="world_m04"><a href="world04.html"><span>イタリア編2</span></a></div>');
	document.write('<div id="world_m05"><a href="world05.html"><span>ドイツ編</span></a></div>');
	document.write('<div id="world_m06"><a href="world06.html"><span>フランス編</span></a></div>');
	document.write('<div id="statistics_tit"><a href="../04/statistics01.html"><span>統計情報編</span></a></div>');
	document.write('<div id="hakusho_tit"><a href="../05/hakusho01.html"><span>アイスクリーム白書</span></a></div>');
	document.write('<div id="rule_tit"><a href="../06/rule01.html"><span>公正競争規約</span></a></div>');
}
if(number==4){
	document.write('<div id="basic_tit"><a href="../01/basic01.html"><span>アイスクリームの基礎知識</span></a></div>');
	document.write('<div id="history_tit"><a href="../02/history01.html"><span>アイスクリームの歴史と背景</span></a></div>');
	document.write('<div id="world_tit"><a href="../03/world01.html"><span>世界各国のアイスクリーム</span></a></div>');
	document.write('<div id="statistics_tith"><a href="../04/statistics01.html"><span>統計情報編</span></a></div>');
	document.write('<div id="statistics_m01"><a href="statistics01.html"><span>種類別販売物量・金額</span></a></div>');
	document.write('<div id="statistics_m02"><a href="statistics02.html"><span>形態別販売物量・金額</span></a></div>');
	document.write('<div id="statistics_m03"><a href="statistics03.html"><span>輸入実績</span></a></div>');
	document.write('<div id="statistics_m04"><a href="statistics04.html"><span>世界各国の1人当り年間生産量</span></a></div>');
	document.write('<div id="statistics_m05"><a href="statistics05.html"><span>1世帯当りアイスクリーム支出金額</span></a></div>');
	document.write('<div id="hakusho_tit"><a href="../05/hakusho01.html"><span>アイスクリーム白書</span></a></div>');
	document.write('<div id="rule_tit"><a href="../06/rule01.html"><span>公正競争規約</span></a></div>');
}
if(number==5){
	document.write('<div id="basic_tit"><a href="../01/basic01.html"><span>アイスクリームの基礎知識</span></a></div>');
	document.write('<div id="history_tit"><a href="../02/history01.html"><span>アイスクリームの歴史と背景</span></a></div>');
	document.write('<div id="world_tit"><a href="../03/world01.html"><span>世界各国のアイスクリーム</span></a></div>');
	document.write('<div id="statistics_tit"><a href="../04/statistics01.html"><span>統計情報編</span></a></div>');
	document.write('<div id="hakusho_tith"><a href="../05/hakusho01.html"><span>アイスクリーム白書</span></a></div>');
	document.write('<div id="hakusho_m01"><a href="hakusho01.html"><span>表紙</span></a></div>');
	document.write('<div id="hakusho_m02"><a href="hakusho02.html"><span>“とりあえずアイス族”とは？<br />アイスクリーム喫食機会の変化と喫食シーン</span></a></div>');
	document.write('<div id="hakusho_m03"><a href="hakusho03.html"><span>“とりあえずアイス族”さらに増殖！<br />アイスクリーム喫食機会増加要因</span></a></div>');
	document.write('<div id="hakusho_m04"><a href="hakusho04.html"><span>若者世代の、“とりあえずアイス”なシーン</span></a></div>');
	document.write('<div id="hakusho_m05"><a href="hakusho05.html"><span>オトナ世代の、“とりあえずアイス”なシーン</span></a></div>');
	
	document.write('<div id="hakusho_m06"><a href="hakusho06.html"><span>定点調査1 デザート編</span></a></div>');
	document.write('<div id="hakusho_m07"><a href="hakusho07.html"><span>定点調査2 喫食・購入編</span></a></div>');
	document.write('<div id="hakusho_m08"><a href="hakusho08.html"><span>定点調査3 好感度・食べ方編</span></a></div>');
	
	document.write('<div id="hakusho_m99"><a href="hakushobn.html"><span>過去のアイスクリーム白書</span></a></div>');
	document.write('<div id="rule_tit"><a href="../06/rule01.html"><span>公正競争規約</span></a></div>');
}
if(number==6){
	document.write('<div id="basic_tit"><a href="../01/basic01.html"><span>アイスクリームの基礎知識</span></a></div>');
	document.write('<div id="history_tit"><a href="../02/history01.html"><span>アイスクリームの歴史と背景</span></a></div>');
	document.write('<div id="world_tit"><a href="../03/world01.html"><span>世界各国のアイスクリーム</span></a></div>');
	document.write('<div id="statistics_tit"><a href="../04/statistics01.html"><span>統計情報編</span></a></div>');
	document.write('<div id="hakusho_tit"><a href="../05/hakusho01.html"><span>アイスクリーム白書</span></a></div>');
	document.write('<div id="rule_tith"><a href="../06/rule01.html"><span>公正競争規約</span></a></div>');
	document.write('<div id="rule_m01"><a href="rule01.html"><span>アイスクリーム類及び氷菓の表示に関する公正競争規約と公正競争規約施行規則</span></a></div>');
	document.write('<div id="rule_m02"><a href="rule02.html"><span>アイスクリーム類及び氷菓の表示に関する公正競争規約施行細則</span></a></div>');
	document.write('<div id="rule_m03"><a href="rule03.html"><span>アイスクリーム類及び氷菓の表示一覧表</span></a></div>');
	document.write('<div id="rule_m04"><a href="rule04.html"><span>活字の大きさ・種類の一覧表</span></a></div>');
}

	document.write('</div>');
} // leftmenu_data()


function leftmenu_about(number) {
	document.write('<div id="leftmenu">');

if(number==1){
	document.write('<div id="about_tith"><a href="index.html"><span>協会について</span></a></div>');
	document.write('<div id="about_m01"><a href="index.html"><span>協会概要</span></a></div>');
	document.write('<div id="about_m02"><a href="map.html"><span>協会案内図</span></a></div>');
	document.write('<div id="about_m03"><a href="list.html"><span>役員名簿</span></a></div>');
	document.write('<div id="about_m04"><a href="other.html"><span>その他</span></a></div>');
	document.write('<div id="eco_tit"><a href="eco.html"><span>環境への取り組み</span></a></div>');
	document.write('<div id="makerlink_tit"><a href="makerlink.html"><span>メーカー各社へのリンク集</span></a></div>');
	document.write('<div id="link_tit"><a href="link.html"><span>当ホームページへのリンクについて</span></a></div>');
	document.write('<div id="members_tit"><a href="https://' + location.hostname + '/members/main.do" target="_blank"><span>会員メーカー向け情報</span></a></div>');
}
if(number==2){
	document.write('<div id="about_tit"><a href="index.html"><span>協会について</span></a></div>');
		document.write('<div id="eco_tith"><a href="eco.html"><span>環境への取り組み</span></a></div>');
	document.write('<div id="makerlink_tit"><a href="makerlink.html"><span>メーカー各社へのリンク集</span></a></div>');
	document.write('<div id="link_tit"><a href="link.html"><span>当ホームページへのリンクについて</span></a></div>');
	document.write('<div id="members_tit"><a href="https://' + location.hostname + '/members/main.do" target="_blank"><span>会員メーカー向け情報</span></a></div>');
}
if(number==3){
	document.write('<div id="about_tit"><a href="index.html"><span>協会について</span></a></div>');
		document.write('<div id="eco_tit"><a href="eco.html"><span>環境への取り組み</span></a></div>');
	document.write('<div id="makerlink_tith"><a href="makerlink.html"><span>メーカー各社へのリンク集</span></a></div>');
	document.write('<div id="link_tit"><a href="link.html"><span>当ホームページへのリンクについて</span></a></div>');
	document.write('<div id="members_tit"><a href="https://' + location.hostname + '/members/main.do" target="_blank"><span>会員メーカー向け情報</span></a></div>');
}
if(number==4){
	document.write('<div id="about_tit"><a href="index.html"><span>協会について</span></a></div>');
		document.write('<div id="eco_tit"><a href="eco.html"><span>環境への取り組み</span></a></div>');
	document.write('<div id="makerlink_tit"><a href="makerlink.html"><span>メーカー各社へのリンク集</span></a></div>');
	document.write('<div id="link_tith"><a href="link.html"><span>当ホームページへのリンクについて</span></a></div>');
	document.write('<div id="members_tit"><a href="https://' + location.hostname + '/members/main.do" target="_blank"><span>会員メーカー向け情報</span></a></div>');
}

	document.write('</div>');
} // leftmenu_about()





function menu(number) {
	// 引数 number に与えられた数値と対応するメニューをデフォルト選択状態にする。
	var addClass = [
		'',		// index: 0 = 
		'',		// index: 1 = (HOME)
		'',		// index: 2 = present
		'',		// index: 3 = lineup
		'',		// index: 4 = enjoy
		'',		// index: 5 = cooking
		'',		// index: 6 = data
		'',		// index: 7 = about
		'',		// index: 8 = 
		'' 		// index: 9 = 
	];  addClass[number] = ' selected';
	
	var separater = 'html/';	// URLから相対パスを割り出すための基準位置。
	var path = window.location.href.split(separater).reverse()[0];
	var layer = path.split('/').length;	//alert(layer);	// 基準位置からの階層数
	var prefix = '';
	for (var i=1; i<layer; i++) prefix += '../';
	
	var html = [''
,'<!--[if IE 6]>'
,'<script>DD_belatedPNG.fix("#footer, #topnav img, #topnav a.parent, #topnav div.sub, .top_lineup_arrow, .top_news_arrow, img");</script>'
,'<![endif]-->'
,'<script type="text/javascript" src="'+ prefix +'js/googleanalytics.js"></script>'
,'<script type="text/javascript" src="'+ prefix +'js/jquery.hoverIntent.minified.js"></script>'
,'<!-- Begin: メガドロップダウンメニュー -->'
,'<ul id="topnav">'
,'	<li id="tn-home">'
,'		<a class="parent'+ addClass[1] +'" href="'+ prefix +'index.html">HOME</a>'
,'	</li><!--'
,' --><li id="tn-present">'
,'		<a class="parent'+ addClass[2] +'" href="'+ prefix +'present/index.html">クイズ＆プレゼント</a>'
,'		<div class="sub">'
,'		<!-- ここから自由に書く -->'
,'			<div>'
,'				<a href="'+ prefix +'present/quiz1.html"><img src="'+ prefix +'images/mdm/submenus/present/1.png" width="206" height="88" alt="プレゼント1"'
,'				/></a><a href="'+ prefix +'present/quiz2.html"><img src="'+ prefix +'images/mdm/submenus/present/2.png" width="206" height="88" alt="プレゼント2"/></a>'
,'			</div>'
,'		<!-- /ここまで -->'
,'		</div>'
,'	</li><!--'
,' --><li id="tn-lineup">'
,'		<a class="parent'+ addClass[3] +'" href="'+ prefix +'lineup/index.html">おすすめアイスクリーム情報</a>'
,'		<div class="sub">'
,'		<!-- ここから自由に書く -->'
,'			<div>'
,'				<a href="'+ prefix +'lineup/index.html"><img src="'+ prefix +'images/mdm/submenus/lineup/1.png" width="220" height="58" alt="各社おすすめアイスクリーム"'
,'				/></a><a href="'+ prefix +'lineup/campaign.html"><img src="'+ prefix +'images/mdm/submenus/lineup/2.png" width="220" height="54" alt="キャンペーン情報"/></a>'
,'			</div>'
,'		<!-- /ここまで -->'
,'		</div>'
,'	</li><!--'
,' --><li id="tn-enjoy">'
,'		<a class="parent'+ addClass[4] +'" href="'+ prefix +'enjoy/index.html">Enjoy!アイスクリーム</a>'
,'		<div class="sub">'
,'		<!-- ここから自由に書く -->'
,'			<div>'
,'				<a href="'+ prefix +'enjoy/index.html"><img src="'+ prefix +'images/mdm/submenus/enjoy/1.png" width="102" height="101" alt="アイスクリームゲームコーナー"/></a>'
,'				<a href="'+ prefix +'enjoy/song.html"><img src="'+ prefix +'images/mdm/submenus/enjoy/2.png" width="102" height="101" alt="アイスクリームの歌"/></a>'
,'			</div>'
,'		<!-- /ここまで -->'
,'		</div>'
,'	</li><!--'
,' --><li id="tn-cooking">'
,'		<a class="parent'+ addClass[5] +'" href="'+ prefix +'cooking/index.html">作ってみよう！アイスクリーム</a>'
,'		<div class="sub">'
,'		<!-- ここから自由に書く -->'
,'			<div>'
,'				<a href="'+ prefix +'cooking/01/make01.html"><img src="'+ prefix +'images/mdm/submenus/cooking/1.png" width="102" height="101" alt="失敗しないアイスクリームの作り方"/></a>'
,'				<a href="'+ prefix +'cooking/02/make02.html"><img src="'+ prefix +'images/mdm/submenus/cooking/2.png" width="102" height="101" alt="アイスクリームの種類・作り方"/></a>'
,'				<a href="'+ prefix +'cooking/03/recipe01.html"><img src="'+ prefix +'images/mdm/submenus/cooking/3.png" width="102" height="101" alt="おすすめレ・シ・ピ"/></a>'
,'			</div>'
,'		<!-- /ここまで -->'
,'		</div>'
,'	</li><!--'
,' --><li id="tn-data">'
,'		<a class="parent'+ addClass[6] +'" href="'+ prefix +'data/index.html">データライブラリ</a>'
,'		<div class="sub">'
,'		<!-- ここから自由に書く -->'
,'			<div>'
,'				<a href="'+ prefix +'data/01/basic01.html"><img src="'+ prefix +'images/mdm/submenus/data/1.png" width="184" height="37" alt="アイスクリームの基礎知識"'
,'				/></a><a href="'+ prefix +'data/02/history01.html"><img src="'+ prefix +'images/mdm/submenus/data/2.png" width="194" height="37" alt="アイスクリームの歴史と背景"'
,'				/></a><a href="'+ prefix +'data/03/world01.html"><img src="'+ prefix +'images/mdm/submenus/data/3.png" width="184" height="38" alt="世界各国のアイスクリーム"'
,'				/></a><a href="'+ prefix +'data/04/statistics01.html"><img src="'+ prefix +'images/mdm/submenus/data/4.png" width="194" height="38" alt="統計情報編"'
,'				/></a><a href="'+ prefix +'data/05/hakusho01.html"><img src="'+ prefix +'images/mdm/submenus/data/5.png" width="184" height="37" alt="アイスクリーム白書2009"'
,'				/></a><a href="'+ prefix +'data/06/rule01.html"><img src="'+ prefix +'images/mdm/submenus/data/6.png" width="194" height="37" alt="公正競争規約"/></a>'
,'			</div>'
,'		<!-- /ここまで -->'
,'		</div>'
,'	</li><!--'
,' --><li id="tn-about">'
,'		<a class="parent'+ addClass[7] +'" href="'+ prefix +'about/index.html">協会について</a>'
,'		<div class="sub">'
,'		<!-- ここから自由に書く -->'
,'			<div>'
,'				<a href="'+ prefix +'about/index.html"><img src="'+ prefix +'images/mdm/submenus/about/1.png" width="189" height="38" alt="協会について"'
,'				/></a><a href="'+ prefix +'about/link.html"><img src="'+ prefix +'images/mdm/submenus/about/2.png" width="189" height="38" alt="当ホームページへのリンクについて"'
,'				/></a><a href="'+ prefix +'about/eco.html"><img src="'+ prefix +'images/mdm/submenus/about/3.png" width="189" height="38" alt="環境への取り組み"'
,'				/></a><a href="https://' + location.hostname + '/members/main.do" target="_blank"><img src="'+ prefix +'images/mdm/submenus/about/4.png" width="189" height="38" alt="会員メーカー向け情報"'
,'				/></a><a href="'+ prefix +'about/makerlink.html"><img src="'+ prefix +'images/mdm/submenus/about/5.png" width="189" height="38" alt="メーカー各社へのリンク集"'
,'				/></a><img src="'+ prefix +'images/mdm/submenus/about/6.png" width="189" height="38" alt=""/>'
,'			</div>'
,'		<!-- /ここまで -->'
,'		</div>'
,'	</li>'
,'</ul>'
,'<!-- /#topnav -->'
,'<!-- /End: メガドロップダウンメニュー -->'
];
	
	document.write(html.join("\n"));
}

// メガドロップダウンメニューの実行
jQuery(function($){
	function megaHoverOver(){
		$(this).find("div.sub").slideDown('fast').show();
	}
	function megaHoverOut(){ 
	  $(this).find("div.sub").slideUp('fast', function(){ $(this).hide(); });
	}
	$("ul#topnav li").hoverIntent({
		 sensitivity: 2,		// number = sensitivity threshold (must be 1 or higher)
		 over: megaHoverOver,	// function = onMouseOver callback (REQUIRED)
		 interval: 100,			// number = milliseconds for onMouseOver polling interval
		 out: megaHoverOut,		// function = onMouseOut callback (REQUIRED)
		 timeout: 100			// number = milliseconds delay before onMouseOut
	});
});


