//階層の判定
uPath="";

//URLに「program」という文字があるとき
if (document.URL.match(/program/i)) {
	uPath="../";//2階層目と判定
}


//しかし、URLに「oldprogram」という文字があるとき
if (document.URL.match(/oldprogram/i)) {
	uPath="";//1階層目と判定
}

//また、URLに「program.html」という文字があるときも
if (document.URL.match(/program.html/i)) {
	uPath="";//1階層目と判定
}

//URLに「newprogram」という文字があるとき
if (document.URL.match(/newprogram/i)) {
	uPath="../";//2階層目と判定
}

//URLに「newprogram」という文字があるとき
if (document.URL.match(/interview/i)) {
	uPath="../";//2階層目と判定
}

//URLに「newprogram」という文字があるとき
if (document.URL.match(/diary/i)) {
	uPath="../";//2階層目と判定
}

//フッター書き出し
document.write('<div id="footer" class="clearFix">');

document.write('<div class="footerRight">');
document.write('<ul class="submanu">');
document.write('<li><a href="http://twitter.com/nhk_bijutsu" target="_blank" title="NHKサイトを離れます"><img src="'+uPath+'images/bt_twi.gif" alt="美術関連番組ツイッター" width="166" height="59" border="0" class="imgover" /></a></li>');
document.write('<li><a href="http://www.nhk.or.jp/artbs/index.html" target="_blank"><img src="'+uPath+'images/bt_art.gif" alt="おうちでアート" width="166" height="59" border="0" class="imgover" /></a></li>');
document.write('<li><a href="https://www.nhk-ondemand.jp/program/P200800020200000/index.html" target="_blank"><img src="'+uPath+'images/bt_ondemand.gif" alt="見逃しサービス、特選ライブラリーで美の壺をもう一度！NHKオンデマンド" width="166" height="59" border="0" class="imgover" /></a></li>');
document.write('<li><a href="http://www.nhk.or.jp/nichibi/" target="_blank"><img src="'+uPath+'images/bt_nichibi.gif" alt="日曜美術館" width="166" height="59" border="0" class="imgover" /></a></li>');
document.write('</ul>');
document.write('</div>');

document.write('<div class="leftset">');

document.write('<ul class="submanu">');
document.write('<li><a href="http://www.nhk.or.jp/" target="_blank">NHKオンライン</a>&nbsp;｜</li>');
document.write('<li><a href="http://www.nhk.or.jp/privacy/" target="_blank">個人情報保護について</a>&nbsp;｜</li>');
document.write('<li><a href="http://www.nhk.or.jp/toppage/nhk_info/copyright.html" target="_blank">著作権保護について</a>&nbsp;｜</li>');
document.write('<li><a href="http://www.nhk.or.jp/css/" target="_blank">ご意見・ご感想</a></li>');
document.write('</ul>');

document.write('<p class="flashPlugin"><a href="http://get.adobe.com/jp/flashplayer/" target="_blank" title="NHKサイトを離れます"><img src="http://www.nhk.or.jp/tsubo/images/flashplugin.gif" alt="このページをご覧いただくには、Adobe Flash Playerが必要です。お持ちでない方はこちらから Flash Playerをダウンロードしてください。(NHKサイトを離れます)" width="598" height="16" class="imgover" /></a></p>');

document.write('<address><img src="http://www.nhk.or.jp/tsubo/images/copyright.png" alt="copyright NHK(Japan Broadcasting Corporation)  all rights reserved." width="559" height="21" /></address>');

document.write('</div>');

document.write('</div>');
