/**
 * function of Affilist.
 * write material list.
 */
function write_AffiList_AFS00308(list_count, a8mat)
{
	var UrlArray = new Array(
	<!--$$URL_ARRAY$$-->
      "http://gamnavi.jp/townc/shop.cgi?gamcd=19792&ph=2&s03id=1236&line_start=&catid=",
      "http://gamnavi.jp/townc/shop.cgi?gamcd=19792&ph=2&s03id=1238&line_start=&catid=",
      "http://gamnavi.jp/townc/shop.cgi?gamcd=19792&ph=2&s03id=1220&line_start=&catid=",
<!--$$URL_ARRAY$$-->
	  ""
	);

	var ImgArray = new Array(
	<!--$$IMG_ARRAY$$-->
      "http://www.blogpeople.net/affilist/images/AFS00308_2.gif",
      "http://www.blogpeople.net/affilist/images/AFS00308_1.gif",
      "http://www.blogpeople.net/affilist/images/AFS00308_3.gif",
<!--$$IMG_ARRAY$$-->
	  ""
	);

	var TitleArray = new Array(
	<!--$$TITLE_ARRAY$$-->
      "人気ランキング第一位",
      "人気ランキング第二位",
      "人気ランキング第三位",
<!--$$TITLE_ARRAY$$-->
	  ""
	);

	var DescArray = new Array(
	<!--$$DESC_ARRAY$$-->
      "「本生うどん２人前」　お店の味をそのまま自宅で召し上がっていただけます。適度なコシがあり、喉ごしの良さが自慢です。",
      "「ごま汁本生うどん２人前」　ごま汁は毎日使う分だけをすり鉢で作っている自信の一品。人気急上昇中です！",
      "「謹製半生うどん(お試しセット)」　まずは食べてみないと！という方に初回のみご注文いただけるお得なセットです。",
<!--$$DESC_ARRAY$$-->
	  ""
	);


	if (list_count > UrlArray.length-1) {
		list_count = UrlArray.length-1;
	}

	document.write(
		"<div class=\"bp-loves-AFS00308\" id=\"bp-loves-AFS00308\">"
	);

	for (n = 0; n < list_count; n++) {
		var url = "http://px.a8.net/svt/ejp?a8mat=" + a8mat + "&a8ejpredirect=" + escape(UrlArray[n]);

		document.write(
			"<div class=\"bp-loves-AFS00308-item\" id=\"bp-loves-AFS00308-item\">"+
			"<a href=\"" + url + "\" target=\"_blank\">" +
			"<img src=\"" + ImgArray[n] + "\">"+
			"</a>"+
			"<div class=\"bp-loves-AFS00308-product\" id=\"bp-loves-AFS00308-product\">"+
			"<a href=\"" + url + "\" target=\"_blank\">" + TitleArray[n] + "</a>"+
			"</div>"+
			"<div class=\"bp-loves-AFS00308-product-detail\" id=\"bp-loves-AFS00308-product-detail\">"+
			"<a href=\"" + url + "\" target=\"_blank\">" + DescArray[n] + "</a>"+
			"</div>"+
			"</div>"+
			"<br clear=\"both\">"
		);
	}

	document.write(
		"<div class=\"bp-loves-AFS00308-banner\" id=\"bp-loves-AFS00308-banner\"><a href=\"http://www.blogpeople.net/loves/AFS00308/\" target=\"_blank\"><img src=\"http://www.blogpeople.net/affilist/images/AFS00308_banner.gif\" alt=\"BlogPeople loves AFS00308\" style=\"border:none;\"></a></div>"+
		"<div class=\"bp-loves-AFS00308-poweredby\" id=\"bp-loves-AFS00308-poweredby\"><a href=\"http://member.blogpeople.net/click/?pid=380\" target=\"_blank\">Powered by BlogPeople</a></div>"+
		"</div>"+
		"<img border=\"0\" width=\"1\" height=\"1\" src=\"http://www12.a8.net/0.gif?a8mat=" + a8mat + "\" alt=\"\">"
	);
}

