/*
	Affiliate Park ランダムジェネレータ (type1 ver1.0)	08/06/19
*/

// 	※2009年９月30日サービス終了につき機能停止　（09/09/21）

function Affipa() {
	sAD = new Array(16);
	sAD[0] = '<a href="http://ad.affipa.ne.jp/LK00001004/PS00001201/click.cgi" target="_blank"><img src="http://imp.affipa.ne.jp/LK00001004/PS00001201/image.cgi" border="0" width="100" height="60"></a>';
	sAD[1] = '<a href="http://ad.affipa.ne.jp/LK00011522/PS00001201/click.cgi" target="_blank"><img src="http://imp.affipa.ne.jp/LK00011522/PS00001201/image.cgi" border="0" width="100" height="60"></a>';
	sAD[2] = '<a href="http://ad.affipa.ne.jp/LK00016719/PS00001201/click.cgi" target="_blank"><img src="http://imp.affipa.ne.jp/LK00016719/PS00001201/image.cgi" border="0" width="100" height="60"></a>';
	sAD[3] = '<a href="http://ad.affipa.ne.jp/LK00002215/PS00001201/click.cgi" target="_blank"><img src="http://imp.affipa.ne.jp/LK00002215/PS00001201/image.cgi" border="0" width="100" height="60"></a>';
	sAD[4] = '<a href="http://ad.affipa.ne.jp/LK01457005/PS00001201/click.cgi" target="_blank"><img src="http://imp.affipa.ne.jp/LK01457005/PS00001201/image.cgi" border="0" width="100" height="60"></a>';
	sAD[5] = '<a href="http://ad.affipa.ne.jp/LK02894902/PS00001201/click.cgi" target="_blank"><img src="http://imp.affipa.ne.jp/LK02894902/PS00001201/image.cgi" border="0" width="100" height="60"></a>';
	sAD[6] = '<a href="http://ad.affipa.ne.jp/LK02894925/PS00001201/click.cgi" target="_blank"><img src="http://imp.affipa.ne.jp/LK02894925/PS00001201/image.cgi" border="0" width="100" height="60"></a>';
	sAD[7] = sAD[1];
	sAD[8] = sAD[2];
	sAD[9] = sAD[4];
	sAD[10] = sAD[5];
	sAD[11] = sAD[5];
	sAD[12] = sAD[5];
	sAD[13] = sAD[6];
	sAD[14] = sAD[6];
	sAD[15] = sAD[6];
	var nAD, nR, nL;
	nAD = -1;
	for (nL = 1; nL <= 0; nL++) {		// Active：nL <= 2
		nR = Math.random();
		if (nR == 1) { nR = Math.random() * 0.9999 }
		nR = Math.floor(nR * 16);
		if (nR == nAD) {
			nR += 1;
			nR %= 16;
		}
		document.write(sAD[nR]);
		nAD = nR;
		if (nL == 1) { document.write('<BR><BR style="line-height: 8px">') }
	}
}
