_indexProducts = {
	"2012": [
		{
			title: "テルマエ・ロマエ<br />（1月放送）",
			url: "http://www.thermae-anime.jp/",
			img: "img/index_product/product_thermae.jpg"
		},
		{
			title: "ブラック★ロックシューター<br />（2月放送）",
			url: "http://www.noitamina-brs.jp/",
			img: "img/index_product/product_brs.jpg"
		},
		{
			title: "坂道のアポロン<br />（4月放送）",
			url: "http://www.noitamina-apollon.com/",
			img: "img/index_product/product_apollon.jpg"
		},
		{
			title: "つり球<br />（4月放送）",
			url: "http://www.tsuritama.com/",
			img: "img/index_product/product_tsuritama.jpg"
		}
	],
	"2011": [
		{
			title: "フラクタル<br />（1月放送）",
			url: "http://fractale.noitamina.tv/",
			img: "img/index_product/product_fractale.jpg"
		},
		{
			title: "放浪息子<br />（1月放送）",
			url: "http://www.houroumusuko.jp/index.html",
			img: "img/index_product/product_hourou.jpg"
		},
		{
			title: "Ｃ<br />（4月放送）",
			url: "http://www.noitamina-control.jp/",
			img: "img/index_product/product_c.jpg"
		},
		{
			title: "あの日見た花の名前を<br />僕達はまだ知らない。<br />（4月放送）",
			url: "http://www.anohana.jp/",
			img: "img/index_product/product_anohana.jpg"
		},
		{
			title: "うさぎドロップ<br />（7月放送）",
			url: "http://www.usagi-drop.tv/",
			img: "img/index_product/product_usagidrop.jpg"
		},
		{
			title: "NO.6<br />（7月放送）",
			url: "http://www.NO-6.jp/",
			img: "img/index_product/product_no6.jpg"
		},
		{
			title: "UN-GO<br />（10月放送）",
			url: "http://www.un-go.com/",
			img: "img/index_product/product_un-go.jpg"
		},
		{
			title: "ギルティクラウン<br />（10月放送）",
			url: "http://www.guilty-crown.jp/",
			img: "img/index_product/product_guilty.jpg"
		}
	],
	"2010": [
		{
			title: "海月姫",
			url: "product/kuragehime.php",
			img: "img/index_product/product_kuragehime.jpg"
		},
		{
			title: "TVドラマ もやしもん",
			url: "http://moyashimon.noitamina.tv/",
			img: "img/index_product/product_moyashidorama.jpg"
		},
		{
			title: "屍鬼",
			url: "http://www.okiagari.net/",
			img: "img/index_product/product_shiki.jpg"
		},
		{
			title: "四畳半神話大系",
			url: "http://yojouhan.noitamina.tv/",
			img: "img/index_product/product_yojouhan.jpg"
		},
		{
			title: "さらい屋五葉",
			url: "http://www.goyou-anime.jp/",
			img: "img/index_product/product_goyou.jpg"
		},
		{
			title: "のだめカンタービレ フィナーレ",
			url: "product/nodamefinal.php",
			img: "img/index_product/product_nodamef.jpg"
		}
	],
	"2009": [
		{
			title: "空中ブランコ",
			url: "product/buranko.php",
			img: "img/index_product/product_buranko.jpg"
		},
		{
			title: "東京マグニチュード8.0",
			url: "product/m8.php",
			img: "img/index_product/product_m8.jpg"
		},
		{
			title: "東のエデン",
			url: "product/eden.php",
			img: "img/index_product/product_eden.jpg"
		},
		{
			title: "源氏物語千年紀 Genji",
			url: "product/genji.php",
			img: "img/index_product/product_genji.jpg"
		}
	],
	"2008": [
		{
			title: "のだめカンタービレ　巴里編",
			url: "product/nodameparis.php",
			img: "img/index_product/product_nodamep.jpg"
		},
		{
			title: "西洋骨董洋菓子店～アンティーク～",
			url: "product/seiyo.php",
			img: "img/index_product/product_seiyo.jpg"
		},
		{
			title: "図書館戦争",
			url: "product/toshokan.php",
			img: "img/index_product/product_toshokan.jpg"
		},
		{
			title: "墓場鬼太郎",
			url: "product/hakaba.php",
			img: "img/index_product/product_hakaba.jpg"
		}
	],
	"2007": [
		{
			title: "もやしもん",
			url: "product/kamosuzo.php",
			img: "img/index_product/product_moyashi.jpg"
		},
		{
			title: "モノノ怪",
			url: "product/mononoke.php",
			img: "img/index_product/product_mononoke.jpg"
		},
		{
			title: "のだめカンタービレ",
			url: "product/nodame1.php",
			img: "img/index_product/product_nodame1.jpg"
		}
	],
	"2006": [
		{
			title: "働きマン",
			url: "product/hataraki.php",
			img: "img/index_product/product_hataraki.jpg"
		},
		{
			title: "ハチミツとクローバーII",
			url: "product/hachikuro2.php",
			img: "img/index_product/product_hachikuro2.jpg"
		},
		{
			title: "獣王星",
			url: "product/jyuohsei.php",
			img: "img/index_product/product_jyuohsei.jpg"
		},
		{
			title: "怪 ～ayakashi～",
			url: "product/ayakashi.php",
			img: "img/index_product/product_ayakashi.jpg"
		}
	],
	"2005": [
		{
			title: "ハチミツとクローバー",
			url: "product/hachikuro1.php",
			img: "img/index_product/product_hachikuro1.jpg"
		},
		{
			title: "Paradise Kiss",
			url: "http://anime.excite.co.jp/pkiss/",
			img: "img/index_product/product_paradicekiss.jpg"
		}
	]
};


//_indexProductsFormat = '<li class="%RIGHT%">%LINK%<a href="%URL%">%/LINK%<img src="%IMG%" class="%LINK%swap%/LINK%" /><br />%TITLE%%LINK%</a>%/LINK%</li>';
_indexProductsFormat = '<li class="%RIGHT%">%LINK%<a href="%URL%">%/LINK%<img src="%IMG%" class="%LINK%opaover%/LINK%" /><br />%TITLE%%LINK%</a>%/LINK%</li>';

/********************
* 作品一覧表示
*/
function showProucts( year, column ){
	
//	if( !column ) column = 4;
	
	var yearList = _indexProducts[year];
	
	for( var i=0; i<yearList.length; i++ ){
		
		var product = yearList[i];
		var format = _indexProductsFormat;
		
		if( product.url ){
			format = format.split('%URL%').join(product.url);
			format = format.split(/%\/?LINK%/).join('');
		}else{
			format = format.replace(/%LINK%.+?%\/LINK%/g,'');
		}
		format = format.split('%IMG%').join(product.img);
		format = format.split('%TITLE%').join(product.title);
		
		// 折り返しならクラス名指定
		if( (i+1) % column == 0 ){
			format = format.split('%RIGHT%').join("right");
		}else{
			format = format.split('%RIGHT%').join("");
		}
		
		document.write( format );
	}
}


