/*
使用法:
<script language="JavaScript" charset="Shift-JIS" src="http://www.asmusic.jp/scripts/omnishop_affiliate.js"></script>

横型
OMNISHOP_affiliate(タイトル,リンク先URL,パッケージ画像,状態,価格,説明);

縦型
OMNISHOP_affiliate2(タイトル,リンク先URL,パッケージ画像,状態,価格,説明);


例:

OMNISHOP_affiliate('ウソツキと犬神憑き','http://omnishop.kogado.com/item.php?id=114&ct=1&kw=','http://www.asmusic.jp/data/photo/package_inugami.jpg','新品','8,980','プラグイン無し');

OMNISHOP_affiliate('ソルフェージュ〜La finale〜','http://omnishop.kogado.com/item.php?id=113&ct=1&kw=','http://www.asmusic.jp/data/photo/package_solfage_lafinale.jpg','新品','6,300','ミュージックアクション新作');

OMNISHOP_affiliate('POWER DoLLS1','http://omnishop.kogado.com/item.php?id=111&ct=1&kw=','http://www.asmusic.jp/data/photo/package_pd1.jpg','新品','8,980','プラグイン無し');

OMNISHOP_affiliate('妖ノ宮 初回限定版','http://omnishop.kogado.com/item.php?id=107&ct=1&kw=','http://www.asmusic.jp/data/photo/package_ayashi.jpg','新品','7,980','プラグイン無し');

OMNISHOP_affiliate('シンフォニック＝レイン 普及版','http://omnishop.kogado.com/item.php?id=97&ct=1&kw=','http://www.asmusic.jp/data/photo/package_srvp.jpg','新品','5,980','ミュージックアクション廉価版');

OMNISHOP_affiliate('パレドゥレーヌ','http://omnishop.kogado.com/item.php?id=89&ct=1&kw=','http://www.asmusic.jp/data/photo/package_palais_de_reine.jpg','新品','8,980','プラグイン付き');

OMNISHOP_affiliate('ＡＳラビィ☆愛蔵版','http://omnishop.kogado.com/item.php?id=80&ct=1&kw=','http://www.asmusic.jp/data/photo/package_asrabbie.jpg','新品','8,800','ミュージックアクション');

*/

function OMNISHOP_affiliate(title,url,image,status,price,desc)
{
	var alt=title.replace('<br>',' ');
	document.open();
	document.writeln('<table>');
	document.writeln('<tr><td nowrap>');
	document.writeln('<a href="'+url+'" target="_TOP"><img src="'+image+'" border=0 alt="'+alt+'"></A>');
	document.writeln('</td><td nowrap align="center">');
	document.writeln('<span style="font-size:10px;">');
	document.writeln('<a href="'+url+'" target="_TOP">'+title+'</a><br>');
	document.writeln('工画堂スタジオ<br>');
	document.writeln(status+' <span style="color:chocolate;">￥'+price+'</span><br>');
	document.writeln('<a href="'+url+'" target="_TOP" style="text-decoration: none;"><span style="color:deeppink;">'+desc+'</span><br>');
	document.writeln('</span></a>');
	document.writeln('<a href="'+url+'" target="_TOP"><img src="http://www.asmusic.jp/data/photo/OMNISHOP_affiliate.gif" border=0 alt="OMNISHOPアフィリエイト(笑)"></a><br>');
	document.writeln('</span></td></tr>');
	document.writeln('</table>');
	document.close();
};
function OMNISHOP_affiliate2(title,url,image,status,price,desc)
{
	var alt=title.replace('<br>',' ');
	document.open();
	document.writeln('<table>');
	document.writeln('<tr><td nowrap align="center">');	document.writeln('<a href="'+url+'" target="_TOP"><img src="'+image+'" border=0 alt="'+alt+'"></a>');
	document.writeln('</td></tr><tr><td align="center">');
	document.writeln('<span style="font-size:10px;">');
	document.writeln('<a href="'+url+'" target="_TOP">'+title+'</a><br>');
	document.writeln('工画堂スタジオ<br>');
	document.writeln(status+' <span style="color:chocolate;">￥'+price+'</span><br>');
	document.writeln('<a href="'+url+'" target="_TOP" style="text-decoration: none;"><span style="color:deeppink;">'+desc+'</span><br>');
	document.writeln('</span></a>');
	document.writeln('<a href="'+url+'" target="_TOP"><img src="http://www.asmusic.jp/data/photo/OMNISHOP_affiliate.gif" border=0 alt="OMNISHOPアフィリエイト(笑)"></a><br>');
	document.writeln('</span></td></tr>');
	document.writeln('</table>');
	document.close();
};

