var ecInfomation = function()
{
	this.datas = new Array;
	
	this.set = function(setDate , setText , setHref)
	{
		this.datas.push({date : setDate , text : setText , href : setHref});
	}
	this.output = function()
	{
		for(var i = 0; i < this.datas.length; i++)
		{
			var output = "<dt><!--{DATE}--></dt><dd><!--{TEXT}--></dd>";
			
			if(this.datas[i]["href"] != "")
			{
				output = output.replace(/<!--{TEXT}-->/g,'<a href="' + this.datas[i].href + '"><!--{TEXT}--></a>');
			}
			output = output.replace(/<!--{DATE}-->/g , this.datas[i].date);
			output = output.replace(/<!--{TEXT}-->/g , this.datas[i].text);
			document.write(output);
		}
	}
}
var ecInfo = new ecInfomation;
ecInfo.set("2012.02.03" , "<font color=green>直送　【玄米麹１Ｋｇ】手前味噌キット、本日より1回目出荷分、ご注文受付始めました〜！</font>" , "http://www.brown.co.jp/ec/wsdb_temp.cgi?template=temp_multi_prod.html&code=2000&line=10")
ecInfo.set("2012.01.13" , "<font color=darkred>「季節のおすすめお菓子」</font>チョコ味の焼き菓子を追加しました！" , "http://www.brown.co.jp/ec/wsdb_temp.cgi?template=temp_multi_prod.html&code=1000&line=10")
ecInfo.set("2012.01.10" , "直送の玄米＆白米は本日より通常通りに、ご注文を受付いたします。どうぞご利用下さい。" , "http://www.brown.co.jp/ec/wsdb_temp.cgi?template=temp_multi_prod.html&code=2001&line=10")
ecInfo.set("2012.01.05" , "<font color=green>「1/10(火）まで！送料キャンペーン実施中！」</font><BR>￥5250以上の商品お買い上げで、弊社送料サービスとなります（通常は￥7350、直送品送料は該当しません）どうぞ、ご利用下さい！" , "http://www.brown.co.jp/ec/wsdb_temp.cgi?template=temp_index.html")
ecInfo.set("2012.01.04" , "<font color=darkred>新年あけましておめでとうございます。本年もオンラインショッピングをよろしくお願い致します。</font>直送商品以外は通常出荷をしております。どうぞご利用下さい。" , "")
//___output___
ecInfo.output();

