//音楽教室トピックス設定("日付;リンク先;文章;newボタンの有無(new入れる場合は「new」といれる)",)
topics_school_array = new Array(
"ハッピー・アンサンブル！;http://www.kawakami-gakki.com/event/happyensemble.html;こちらからどうぞ;new;");


//楽器店トピックス設定("日付;リンク先;文章;newボタンの有無(new入れる場合は「new」といれる)",)
topics_inst_array = new Array(
"9月14日;http://www.kawakami-gakki.com/psa/showroom_chofu.html;調布ピアノショールームOPEN！");

function setupTopicsSchool(pass){
	var topics = "<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\">";
	
	for(var i=0; i < topics_school_array.length; i++){
		var thergothon = topics_school_array[i].split(";");
		
		var newicon = '';
		if(thergothon[3] == "new"){
			newicon = "&nbsp;<IMG SRC=\"" + pass + "images/newicon.gif\" WIDTH=\"27\" HEIGHT=\"10\" ALT=\"new\">";
		}
		
		topics += "<TR>";
		topics += "<TD ALIGN=\"left\" VALIGN=\"middle\"><IMG SRC=\"" + pass + "images/mekong_delta.gif\" WIDTH=\"6\" HEIGHT=\"8\" ALT=\"\"></TD>";
		topics += "<TD ALIGN=\"left\" VALIGN=\"top\" CLASS=\"cap\"><B>" + thergothon[0] + "</B>" + newicon + "</TD>";
		topics += "</TR>";
		topics += "<TR>";
		topics += "<TD><IMG SRC=\"" + pass + "images/spacer.gif\" WIDTH=\"6\" HEIGHT=\"8\" ALT=\"\"></TD>";
		topics += "<TD ALIGN=\"left\" VALIGN=\"top\" CLASS=\"middle\"><A HREF=\"" + pass + thergothon[1] + "\">" + thergothon[2] + "</A></TD>";
		topics += "</TR>";
	}
	
	topics += "</TABLE>";
	
	document.write(topics);
}

function setupTopicsInst(pass){
	var topics = "<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\">";
	
	for(var i=0; i < topics_inst_array.length; i++){
		var thergothon = topics_inst_array[i].split(";");
		
		var newicon = '';
		if(thergothon[3] == "new"){
			newicon = "&nbsp;<IMG SRC=\"" + pass + "images/newicon.gif\" WIDTH=\"27\" HEIGHT=\"10\" ALT=\"new\">";
		}
		
		topics += "<TR>";
		topics += "<TD ALIGN=\"left\" VALIGN=\"middle\"><IMG SRC=\"" + pass + "images/mekong_delta.gif\" WIDTH=\"6\" HEIGHT=\"8\" ALT=\"\"></TD>";
		topics += "<TD ALIGN=\"left\" VALIGN=\"top\" CLASS=\"cap\"><B>" + thergothon[0] + "</B>" + newicon + "</TD>";
		topics += "</TR>";
		topics += "<TR>";
		topics += "<TD><IMG SRC=\"" + pass + "images/spacer.gif\" WIDTH=\"6\" HEIGHT=\"8\" ALT=\"\"></TD>";
		topics += "<TD ALIGN=\"left\" VALIGN=\"top\" CLASS=\"middle\"><A HREF=\"" + pass + thergothon[1] + "\">" + thergothon[2] + "</A></TD>";
		topics += "</TR>";
	}
	
	topics += "</TABLE>";
	
	document.write(topics);
}

