nid = location.pathname.substr(11,7);
nnum = location.pathname.substr(12,7);
if(nnum<=93355){
	ndir = "new1004"
}else if(nnum<=93360){
	ndir = "new1006"
}else if(nnum<=93472){
	ndir = "new1007"
}else if(nnum<=94061){
	ndir = "new1008"
}else if(nnum<=94501){
	ndir = "new1009"
}else if(nnum<=95115){
	ndir = "new1010"
}else if(nnum<=96347){
	ndir = "new1011"
}else if(nnum<=97678){
	ndir = "new1012"
}else if(nnum<=98455){
	ndir = "new1101"
}else if(nnum<=99517){
	ndir = "new1102"
}else if(nnum<=100305){
	ndir = "new1103"
}else if(nnum<=101203){
	ndir = "new1104"
}else if(nnum<=102065){
	ndir = "new1105"
}else if(nnum<=103100){
	ndir = "new1106"
}else if(nnum<=103957){
	ndir = "new1107"
}else if(nnum<=104448){
	ndir = "new1108"
}else if(nnum<=105321){
	ndir = "new1109"
}else if(nnum<=105894){
	ndir = "new1110"
}else if(nnum<=106657){
	ndir = "new1111"
}else if(nnum<=107166){
	ndir = "new1112"
}else if(nnum<=108298){
	ndir = "new1201"
}else{
	ndir = "new1202"
}


cnid = location.search.substr(5,7);
cndir = location.search.substr(17,7);


function MakeWin(url,x,y) {
	x_size = x;
	y_size = y;
	target_name = 'Help';
	var attb = 'toolbar=no,location=no,directories=no,status=no,enubar=no,scrollbars=no,resizable=yes,width=' + x_size + ',height=' + y_size;
	subWin=window.open(url,target_name,attb);

	var check = ((navigator.appName.charAt(0) == "M") && (navigator.appVersion.charAt(0) <= 3));
	if (!check) {subWin.focus();}
}


monym = "<div style=\"padding:5px;\"><center><select class=\"monym\" onchange=\"location.href = this.options[selectedIndex].value\" ><option selected>掲載期間</option><option value=\"./201201.html\">2012年1月</option><option value=\"./201112.html\">2011年12月</option><option value=\"./201111.html\">2011年11月</option><option value=\"./201110.html\">2011年10月</option><option value=\"./201109.html\">2011年9月</option><option value=\"./201108.html\">2011年8月</option><option value=\"./201107.html\">2011年7月</option><option value=\"./201106.html\">2011年6月</option><option value=\"./201105.html\">2011年5月</option><option value=\"./201104.html\">2011年4月</option><option value=\"./201103.html\">2011年3月</option><option value=\"./201102.html\">2011年2月</option></select></center></div>";

monradio = "<div style=\"padding:5px;\"><center><select class=\"monradio\" onchange=\"location.href = this.options[selectedIndex].value\" ><option selected>対象期間</option><option value=\"./radio1112.html\">Dec. 2011</option><option value=\"./radio1111.html\">Nov. 2011</option><option value=\"./radio1110.html\">Oct. 2011</option><option value=\"./radio1109.html\">Sep. 2011</option><option value=\"./radio1108.html\">Aug. 2011</option><option value=\"./radio1107.html\">July 2011</option><option value=\"./radio1106.html\">June 2011</option><option value=\"./radio1105.html\">May 2011</option><option value=\"./radio1104.html\">Apr. 2011</option><option value=\"./radio1103.html\">Mar. 2011</option><option value=\"./radio1102.html\">Feb. 2011</option><option value=\"./radio1101.html\">Jan. 2011</option></select></center></div>";


function tree(num){
	for(memnum=1;memnum<=num;memnum++){
		if(document.getElementById('member'+memnum)){
//			if(document.getElementById('member'+memnum).style.display == "none"){
				document.getElementById('member'+memnum).style.display = "block";
//			}else{
//				document.getElementById('member'+memnum).style.display = "none";
//			}
		}
	}
}


function JacketList(){
	Jacket=new Array("3555","3599","3120","2906","2920","3052","3031","3929","3035","3789","3354","3265","3448","3340","3732","3347","3339","3384","3411","3424","3423","3881","3897","3508","3484","3536","3637","3826","3813","3838","3837","3965","4018","4146","4145","4006","4118","4106","4218","4241","4320","4326","4410","4324","4417","4451","4444","4517","4558","4585","4597","4677","4680","4683","4713","4804","4780","4860","4872","4950","4849","4969","4723","4981","5045","5009","5081","5020","5111","5133","5224","5232","5300","5308","5332","5380","5468","5550","5641","5684","5813","5838","5847","5861","5875","6000","6112","6121","6139","6419","6502","6527","6591","6553","6630","6665","6748","6819","6828","6836","7080","7084","7148","7165","7172","7211","7289","7721","7727","7733","7737","7741");
	flag=new Array(Jacket.length);
	var n=0;
	while(n<9){
		j=Math.floor(Math.random()*Jacket.length);
		if(flag[j]!=0){
			document.write("<image src=../../musicmon/img2/m000"+Jacket[j]+".jpg width=60 height=60 hspace=1>");
			n++;
			flag[j]=0;
		}
	}
}

function mstore(ArtistID){
	document.write("<a href=\"http://db.musicmanstore.net:8080/fmi/xsl/musicmanstore/sound_list.xsl?-db=musicmanstore&-lay=WEB&-max=20&-sortfield.1=sale&-sortfield.2=package_type&-sortfield.3=packageID&-sortfield.4=track&-sortorder.1=descend&-sortorder.2=descend&-sortorder.3=descend&artistID="+ArtistID+"&-find\" target=\"_blank\">");
}



$(document).ready(function(){
	$('div#mmonnews').load('/cgi-bin/musicmon/view4_new.cgi');
});


/*--Twitter Trackbacks--*/
/* 	Twitter Trackbacks Widget v1.0
	Blog : http://www.moretechtips.net
	Project: http://code.google.com/p/twitter-trackbacks-widget/
	Copyright 2009 [Mike @ moretechtips.net] 
	Licensed under the Apache License, Version 2.0 
	(the "License"); you may not use this file except in compliance with the License. 
	You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */
(function($){$.fn.twitterTrackbacks=function(allOptions){var defaults={debug:0,url:"",url_querystring:0,n:10,show_n:1,inf_only:0,inf_tip:0,stay_time:5000,enter_time:200,exit_time:200,animate:"opacity",show_avatar:1,show_author:0,show_date:1,image_width:48,reply:"reply",retweet:"retweet",topsy_author_url:0,header:"",info:'<a class="ttw-info" title="get Twitter Trackbacks Widget!" target="_blank" href="http://www.moretechtips.net/">.i</a>'};allOptions=$.extend({},defaults,allOptions);return this.each(function(){var div=$(this);var count=0,ul=null,vp=-1,startI=-1,endI=-1;var op=allOptions;var effectParams=new Object;var topsyURL="";var requested=function(json){if(!json.response.list){if(op.debug){div.html('<b style="color:red">Error: '+(json.response.errors?json.response.errors.join(","):"unkown")+"</b>")}return}var rs=json.response.list;count=rs.length;if(count==0){return}topsyURL=json.response.topsy_trackback_url;ul=$('<ul class="ttw-inner"></ul>').appendTo(div.html(op.header));for(var i=0;i<count;i++){addLI(rs[i])}if(op.show_n>0){fadeIn()}};var addLI=function(x){var uname=x.author.url.replace("http://twitter.com/","");var id="";if(x.permalink_url){id=x.permalink_url.replace("http://twitter.com/"+uname+"/status/","")}else{x.author.photo_url="http://cdn2.topsy.com/asset/master.16412.82c193e596/img/twitter_user.png"}if(!x.author.influence_level){x.author.influence_level=0}var li=$("<li"+(op.show_n>0?' style="display:none"':"")+' class="ttw-inf-'+x.author.influence_level+'">'+(op.show_avatar?'<span class="ttw-author-img"><a href="'+(op.topsy_author_url?x.author.topsy_author_url:x.author.url)+'" title="'+x.author.name+(op.inf_tip?" [influence level: "+x.author.influence_level+"/10]":"")+'"><img src="'+x.author.photo_url+'" height="'+op.image_width+'" width="'+op.image_width+'" border="0"/></a></span>':"")+'<span class="ttw-body">'+(op.show_author?'<strong><a href="'+(op.topsy_author_url?x.author.topsy_author_url:x.author.url)+'">'+x.author.name+"</a></strong>":"")+'<span class="ttw-content">'+x.content+'</span><span class="ttw-meta">'+(op.show_date?'<a class="ttw-date" href="'+(x.permalink_url?x.permalink_url:topsyURL)+'">'+x.date_alpha+"</a>":"")+(op.reply&&id?' - <a class="ttw-reply" href="http://twitter.com/home?status=@'+uname+"%20&in_reply_to_status_id="+id+"&in_reply_to="+uname+'">'+op.reply+"</a>":"")+(op.retweet?' - <a class="ttw-retweet" href="http://twitter.com/home?status='+encodeURIComponent("RT @"+uname+" "+x.content)+'">'+op.retweet+"</a>":"")+(op.info?" - "+op.info:"")+"</span></span></li>").appendTo(ul);var cont=$("span.ttw-content",li);cont.html(linkify(cont.html()))};var fadeOut=function(){$("li",ul).eq(startI).fadeOut(op.exit_time,fadeIn);if(op.show_n>1){$("li",ul).slice(startI+1,endI).fadeOut(op.exit_time)}};var fadeIn=function(){vp++;if(vp*op.show_n>=count){vp=0}startI=vp*op.show_n;endI=(vp+1)*op.show_n;$("li",ul).eq(startI).animate(effectParams,op.enter_time,"linear",fadeStill);if(op.show_n>1){$("li",ul).slice(startI+1,endI).animate(effectParams,op.enter_time,"linear")}};var fadeStill=function(){ul.animate({opacity:1},op.stay_time,"linear",fadeOut)};var linkify=function(d){return d.replace(/\bhttps?\:\/\/\S+/gi,function(b){var c="";b=b.replace(/(\.*|\?*|\!*)$/,function(m,a){c=a;return""});return'<a class="ttw-link" href="'+b+'">'+((b.length>25)?b.substr(0,24)+"...":b)+"</a>"+c}).replace(/\B\@([A-Z0-9_]{1,15})/gi,'@<a class="ttw-at" href="http://twitter.com/$1">$1</a>').replace(/\B\#([A-Z0-9_]+)/gi,'<a class="ttw-hashtag" href="http://search.twitter.com/search?q=%23$1">#$1</a>')};var request=function(){var data={url:op.url,infonly:op.inf_only,perpage:op.n};$.ajax({url:"http://otter.topsy.com/trackbacks.js",data:data,success:requested,dataType:"jsonp"})};var init=function(){if(div.attr("options")){try{op=eval("("+div.attr("options")+")")}catch(e){div.html('<b style="color:red">'+e+"</b>");return}op=$.extend({},defaults,op)}effectParams[op.animate]="show";if(!op.url){op.url=location.protocol+"//"+location.host+location.pathname+(op.url_querystring?location.search:"")}request()};init()})}})(jQuery);jQuery(document).ready(function(){jQuery("div.twitter-trackbacks").twitterTrackbacks()});
/*--/Twitter Trackbacks--*/


	$(document).ready(function(){
		$('div.tweet-trackbacks').twitterTrackbacks({
			url:document.URL
			,n:5
			,show_n:0
			,inf_tip:1
		});
	});


function topsy(){document.write('<a class="rf icon" href="http://topsy.com/'+window.location.host+window.location.pathname+window.location.search+'" target="_blank"><small>&#187; もっと見る</small></a>');}

function topsy2(){document.write('<a class="rf icon" href="http://topsy.com/'+window.location.host+window.location.pathname+window.location.search+'" target="_blank">&#187; もっと見る</a>');}
