
	contents_type = "";
	base_url = "";
//////////////////////////////////////////////////////////////////////////////////////////////	
//////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////	
//////////////////////////////////////////////////////////////////////////////////////////////	

function navi_body(x,y,z){
	/////////////////////////////////////////////////////
	now_play = "<img src='http://www.cdjournal.com/image/parts/nowload.gif' class='middle'> 情報を読み込んでいます…";
	
	document.getElementById('treenavi_body').innerHTML = now_play;
	////////////////////////////////////////////////////
	////////////////////////////////////////////////////
	contents_type = y;

	base_url = "http://artist.cdjournal.com/a/" + z + "/" + x;

	////////////////////////////////////////////////////
	/////////////////////////////////////////////////////
	// Mozilla, Firefox, Safari, IE7
	if (window.XMLHttpRequest){
		httpObject_navi = new XMLHttpRequest();
	// IE5, IE6
	} else if (window.ActiveXObject){
		try {
			httpObject_navi = new ActiveXObject("Msxml2.XMLHTTP"); 
		} catch(e) {
			httpObject_navi = new ActiveXObject("Microsoft.XMLHTTP"); 
		}
	}
	///////////////////////////////////////////////	
	// サーバーからデータ到着後に実行する関数
	httpObject_navi.onreadystatechange = display_navi_body;
	///////////////////////////////////////////////	
	// HTTP非同期通信でPHPにアクセス  page
	httpObject_navi.open ("GET", "http://artist.cdjournal.com/a/sub/navi_top.php?no=" + x + "&type=" + y + "&" + (new Date).getTime(), true);
	httpObject_navi.send (null);
}
//////////////////////////////////////////////////////////////////////////////////////////////	
//////////////////////////////////////////////////////////////////////////////////////////////	
// 表示
	function display_navi_body(){
		if(httpObject_navi.readyState == 4 && httpObject_navi.status == 200){
			body_array = decodeURIComponent(httpObject_navi.responseText);

			if(body_array){
				////////////////////////////////////////////////////////////////////////////////////////////////////////////	
				////////////////////////////////////////////////////////////////////////////////////////////////////////////	
				items = body_array.split("\t");
				////////////////////////////////////////////////////////////////////////////////////////////////////////////
				document.getElementById('treenavi_body').innerHTML = items[14];
				
				////////////////////////////////////////////////////////////////////////////////////////////////////////////	
				////////////////////////////////////////////////////////////////////////////////////////////////////////////		
				contents = "";
				////////////////////////////////////////////////////////////////////////////////////////////////////////////	
				////////////////////////////////////////////////////////////////////////////////////////////////////////////	
				// ニュース、リサーチ、タイアップ
				if(contents_type == "news" || contents_type == "knews" || contents_type == "research" || contents_type == "kresearch" || contents_type == "tieup"){
					//////////////////////////////////////////////////////
					// ニュース
					if(items[7] != 0){
						contents = "<a href='" + base_url + "/news/'";
						if(contents_type == "news") contents = contents + " class='on'";
						contents = contents + ">ニュース</a>（" + items[7] + "件）　｜　";
					}
					//////////////////////////////////////////////////////
					// 関連ニュース
					sub_news_total = items[6] - items[7];
				
					if(sub_news_total != 0){
						contents = contents +"<a href='" + base_url + "/knews/'";
						if(contents_type == "knews") contents = contents + " class='on'";
						contents = contents + ">関連ニュース</a>（" + sub_news_total + "件）　｜　";
					}
					//////////////////////////////////////////////////////
					// リサーチ
					if(items[9] != 0){
						contents = contents +"<a href='" + base_url + "/research/'";
						if(contents_type == "research") contents = contents + " class='on'";
						contents = contents + ">リサーチ</a>（" + items[9] + "件）　｜　";
					}
					//////////////////////////////////////////////////////
					// 関連リサーチ
					sub_research_total = items[8] - items[9];
				
					if(sub_research_total != 0){
						contents = contents +"<a href='" + base_url + "/kresearch/'";
						if(contents_type == "kresearch") contents = contents + " class='on'";
						contents = contents + ">関連リサーチ</a>（" + sub_research_total + "件）　｜　";
					}
					//////////////////////////////////////////////////////
					// タイアップ
					if(items[10] != 0){
						contents = contents +"<a href='" + base_url + "/tieup/'";
						if(contents_type == "tieup") contents = contents + " class='on'";
						contents = contents + ">タイアップ</a>（" + items[10] + "件）";
					}
					//////////////////////////////////////////////////////
					document.getElementById('navi_span').innerHTML = contents ;				
				////////////////////////////////////////////////////////////////////////////////////////////////////////////	
				////////////////////////////////////////////////////////////////////////////////////////////////////////////	
				// CD
				} else if(contents_type == "cd" || contents_type == "hi-cd" || contents_type == "kami-cd"){
					//////////////////////////////////////////////////////
					if(items[0] != 0){
						contents = "<a href='" + base_url + "/cd/'";
						if(contents_type == "cd") contents = contents + " class='on'";
						contents = contents + ">CD全件</a>（" + items[0] + "件）　｜　";
					}
					//////////////////////////////////////////////////////
					document.getElementById('navi_disc').innerHTML = contents;			
					//////////////////////////////////////////////////////
					// 差（＝廃盤）がある場合
					if(this_total != 0){
						contents = "<div class='top_about_shoka'><strong class='red'>※ " + items[0] + "件のCD情報のうち" + this_total + "件は廃盤（流通終了）情報です。</strong><div class='m_left'>廃盤作品のレビュー／情報をご覧になるには<a href='http://www.cdjournal.com/main/mycdjpro/'>「MyCDJ Pro - 音楽書架」</a>へのログイン／会員登録が必要です。</div></div>\n";
							
						document.getElementById('haiban_shoka_body').innerHTML = contents;		
					}
				////////////////////////////////////////////////////////////////////////////////////////////////////////////	
				////////////////////////////////////////////////////////////////////////////////////////////////////////////
				// DVD
				} else if(contents_type == "dvd" || contents_type == "blu-ray"){
					//////////////////////////////////////////////////////
					if(items[1] != 0){
						contents = "<a href='" + base_url + "/dvd/'";
						if(contents_type == "dvd") contents = contents + " class='on'";
						contents = contents + ">DVD全件</a>（" + items[1] + "件）　｜　";
					}
					//////////////////////////////////////////////////////
					document.getElementById('navi_disc').innerHTML = contents;		
					//////////////////////////////////////////////////////
					// 差（＝廃盤）がある場合
					if(this_total != 0){
						contents = "<div class='top_about_shoka'><strong class='red'>※ " + items[1] + "件のDVD／Blu-ray情報のうち" + this_total + "件は廃盤（流通終了）情報です。</strong><div class='m_left'>廃盤作品のレビュー／情報をご覧になるには<a href='http://www.cdjournal.com/main/mycdjpro/'>「MyCDJ Pro - 音楽書架」</a>へのログイン／会員登録が必要です。</div></div>\n";
							
						document.getElementById('haiban_shoka_body').innerHTML = contents;		
					}
				////////////////////////////////////////////////////////////////////////////////////////////////////////////	
				////////////////////////////////////////////////////////////////////////////////////////////////////////////
				// レビュー
				} else if(contents_type == "review" || contents_type == "review-cd" || contents_type == "review-dvd" || contents_type == "review-song" || contents_type == "best-song"){
					///////////////////////////////////////////////
					// 試聴記
					if(items[11] != 0){
						contents = "<a href='" + base_url + "/review/'";
						if(contents_type == "review") contents = contents + " class='on'";
						contents = contents + ">試聴記／ミニ・レビュー</a>（" + items[11] + "件）　｜　";
					}
					///////////////////////////////////////////////
					// 音楽書架・CDレビュー
					if(items[3] != 0){
						contents = contents + "<a href='" + base_url + "/review-cd/'";
						if(contents_type == "review-cd") contents = contents + " class='on'";
						contents = contents + ">CDレビュー</a>（" + items[3] + "件）　｜　";
					}
					///////////////////////////////////////////////
					// 音楽書架・DVDレビュー
					if(items[4] != 0){
						contents = contents + "<a href='" + base_url + "/review-dvd/'";
						if(contents_type == "review-dvd") contents = contents + " class='on'";
						contents = contents + ">DVDレビュー</a>（" + items[4] + "件）　｜　";
					}
					///////////////////////////////////////////////
					// 楽曲コメント
					if(items[12] != 0){
						contents = contents + "<a href='" + base_url + "/review-song/'";
						if(contents_type == "review-song") contents = contents + " class='on'";
						contents = contents + ">楽曲コメント</a>（" + items[12] + "件）　｜　";
					}
					///////////////////////////////////////////////
					// 名曲コメント
					if(items[5] != 0){
						contents = contents + "<a href='" + base_url + "/best-song/'";
						if(contents_type == "best-song") contents = contents + " class='on'";
						contents = contents + ">名曲コメント</a>（" + items[5] +"件）";
					}

					//////////////////////////////////////////////////////
					document.getElementById('navi_span').innerHTML = contents;
					//////////////////////////////////////////////////////
					// 試聴記、CDレビュー、DVDレビュー	
					if(contents_type == "review" || contents_type == "review-cd" || contents_type == "review-dvd"){
						sa_total = 0;		
						//////////////////////////////////////////////////////
						// 試聴記
						if(contents_type == "review"){
							if(items[11] != this_total){
								base_total = items[11];
								sa_total = items[11] - this_total;
							}
						//////////////////////////////////////////////////////
						// 音楽書架・CDレビュー
						} else if(contents_type == "review-cd"){
							if(items[3] != this_total){
								base_total = items[3];
								sa_total =items[3] - this_total;
							}
						//////////////////////////////////////////////////////
						// 音楽書架・dvdレビュー
						} else if(contents_type == "review-dvd"){
							if(items[4] != this_total){
								base_total = items[4];
								sa_total = items[4] - this_total
							}
						}
						//////////////////////////////////////////////////////
						// 差（＝廃盤）がある場合
						if(sa_total != 0){
							contents = "<div class='top_about_shoka'><strong class='red'>※ " + base_total + "件のレビューのうち" + sa_total + "件は廃盤（流通終了）作品のものです。</strong><div class='m_left'>廃盤作品のレビュー／情報をご覧になるには<a href='http://www.cdjournal.com/main/mycdjpro/'>「MyCDJ Pro - 音楽書架」</a>へのログイン／会員登録が必要です。</div></div>";
							
							document.getElementById('haiban_shoka_body').innerHTML = contents;		
						}
					}
				}

			}

//		$contents = $cd_total."	".$dvd_total."	".$ongakushoka_total."	".$cdreview_total."	".$dvdreview_total."	".$bestsongreview_total."	".$news_total."	".$main_news_total."	".$research_total."	".$main_research_total."	".$tieup_total."	".$minireview_total."	".$songreview_total."	".$streaming_total."	".$navi_body;

		}
	}

