﻿// HEADER
function setHeader(lang){
	document.write('<img src="IMAGES/header.gif" alt="NISSAN CHANNEL" width="770" height="77" border="0" usemap="#Map01" />');
	if(lang == "ja"){
		document.write('<map name="Map01" id="Map01"><area shape="rect" coords="30,29,141,45" href="/JP/" alt="日産グローバルTOP" /></map>');
	}else{
		document.write('<map name="Map01" id="Map01"><area shape="rect" coords="30,29,141,45" href="/EN/" alt="NISSAN GLOBAL TOP" /></map>');
	}
} 
// FOOTER
function setFooter(lang){
	plugin_url = new Array();
	if(lang == "ja"){
		plugin_url[0] = 'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW';
		plugin_url[1] = 'http://www.microsoft.com/windows/windowsmedia/player/download/';
		plugin_url[2] = 'http://japan.real.com/player/?lang=jp&loc=jp&src=ext';
		plugin_url[3] = 'http://www.apple.com/jp/quicktime/download/';
	}else{
		plugin_url[0] = 'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW';
		plugin_url[1] = 'http://www.microsoft.com/windows/windowsmedia/player/download/';
		plugin_url[2] = 'http://www.real.com/international/?lang=en';
		plugin_url[3] = 'http://www.apple.com/quicktime/download/';
	}
	text_ary = new Array();
	so = new Array();
	if(lang == "ja"){
		text_ary[0] = "映像をご覧いただくためには、プレーヤーソフトウエアが必要です。下のボタン画像をクリックし、手順に従ってインストールしてください。";
		text_ary[1] = "本サイトに収録されている画像、文書その他データの著作権は日産自動車株式会社に帰属します。<br />本サイトの一部または全部を報道目的以外に日産自動車株式会社に無断で複製、転載、上演、放送等をすることは、著作権者の権利の侵害となりますので禁じられております。";
		so[8] = '<map name="Map02" id="Map02"><area shape="rect" coords="64,21,242,51" href="RSS/jp_channel.xml" alt="RSS for Pod cast" /></map>'
	}else{
		text_ary[0] = "If you want to watch streaming video, you will need the Windows Media Player or Real Audio Player. You can download a free version of the Windows Media Player or Real Audio Player.";
		text_ary[1] = "Copyright of all the images and document data contained in this website belong to Nissan Motor Co., Ltd. Unauthorized duplication or distribution of any data in this website is prohibited. Without our permission, link to this web site is prohibited.";
		so[8] = '<map name="Map02" id="Map02"><area shape="rect" coords="64,21,242,51" href="RSS/en_channel.xml" alt="RSS for Pod cast" /></map>'
	}		
	
	so[0] = '<table width="770" border="0" cellpadding="0" cellspacing="0">';
	so[1] = '<tr>';
	so[2] = '<td><p>'+text_ary[0]+'</p>';
	so[3] = '<div style="margin-left:12px;><a href="'+plugin_url[0]+'" target="_blank"><img src="IMAGES/plugin_btn01.gif" alt="get Flash Player" width="88" height="31" /></a>&nbsp;&nbsp;&nbsp;<a href="'+plugin_url[1]+'" target="_blank"><img src="IMAGES/plugin_btn02.gif" alt="get Windows MediaPlayer" width="88" height="31" /></a>&nbsp;&nbsp;&nbsp;<a href="'+plugin_url[2]+'" target="_blank"><img src="IMAGES/plugin_btn03.gif" alt="get Real Player" width="88" height="31" /></a>&nbsp;&nbsp;&nbsp;<a href="'+plugin_url[3]+'" target="_blank"><img src="IMAGES/plugin_btn04.gif" alt="get QuickTime Player" width="88" height="31" /></a></td>';
	so[4] = '<td width="306"><img src="IMAGES/footerBlock_01_02.gif" alt="RSS:Pod cast is registration" width="306" height="105" border="0" usemap="#Map02" /></td>';
	so[5] = '</tr>';
	so[6] = '</table><hr />';
	so[7] = '<p>'+text_ary[1]+'</p>';
	
	for(i=0; i<=so.length-1; i++){
		document.write(so[i]);
	}
}
