/*document.open();
document.write("<ul id='ad'>");
document.write("<li><a href='/redirect/index.php?id=elleseine' class='popup' rel='nofollow'><img src='http://ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=2654455&pid=879111638' alt='エルセーヌ' width='234' height='60' class='ov' /></a></li>");
document.write("<li><a href='/redirect/index.php?id=slim' class='popup' rel='nofollow'><img src='http://ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=2654455&pid=879111642' alt='スリムビューティハウス' width='234' height='60' class='ov' /></a></li>");
document.write("<li><a href='/redirect/index.php?id=tokyo-bdc' class='popup' rel='nofollow'><img src='http://ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=2654455&pid=879111643' alt='エステティックTOKYO BDC' width='234' height='60' class='ov' /></a></li>");
document.write("</ul>");
document.close();
*/


var kazu = 16; // データ数
var hyouji = 1; // 表示データ数
hako = new Array(kazu);
for (i=0;i<=kazu;i++) {hako[i]=0;} // チェックフラグ初期化

// random
jmp = new Array();
img = new Array();
width = new Array();
height = new Array();

// to link
jmp[0] = "/redirect/index.php?id=elleseine";
jmp[1] = "/redirect/index.php?id=slim";
jmp[2] = "/redirect/index.php?id=minami-aoyama";
jmp[3] = "/redirect/index.php?id=granmore";
jmp[4] = "/redirect/index.php?id=diet-center";
jmp[5] = "/redirect/index.php?id=masayo";
jmp[6] = "/redirect/index.php?id=ginza-calla";
jmp[7] = "/redirect/index.php?id=miss-paris";
jmp[8] = "/redirect/index.php?id=truque-bridal";
jmp[9] = "/redirect/index.php?id=truque";
jmp[10] = "/redirect/index.php?id=pluson";
jmp[11] = "/redirect/index.php?id=piubello";
jmp[12] = "/redirect/index.php?id=takanoyuri2";
jmp[13] = "/redirect/index.php?id=btb";
jmp[14] = "/redirect/index.php?id=tbc2";
jmp[15] = "/redirect/index.php?id=tbc3";
jmp[16] = "/redirect/index.php?id=";
//jmp[17] = "/redirect/index.php?id=";
//jmp[18] = "/redirect/index.php?id=";
//jmp[19] = "/redirect/index.php?id=";


// img address
img[0] = "http://www.accesstrade.net/at/r.html?rk=010045lh0079p4";
img[1] = "http://ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=2654455&pid=879111642";
img[2] = "http://www.accesstrade.net/at/r.html?rk=0100503a0079p4";
img[3] = "http://www.accesstrade.net/at/r.html?rk=010066rw0079p4";
img[4] = "http://www.accesstrade.net/at/r.html?rk=01003oa70079p4";
img[5] = "http://www.accesstrade.net/at/r.html?rk=01005pim0079p4";
img[6] = "http://www.accesstrade.net/at/r.html?rk=01005gzq0079p4";
img[7] = "http://www.accesstrade.net/at/r.html?rk=01002azk0079p4";
img[8] = "http://www.accesstrade.net/at/r.html?rk=01003ueb0079p4";
img[9] = "http://www.accesstrade.net/at/r.html?rk=01003uek0079p4";
img[10] = "http://www.accesstrade.net/at/r.html?rk=010028oz0079p4";
img[11] = "http://www.accesstrade.net/at/r.html?rk=010030wg0079p4";
img[12] = "http://www.accesstrade.net/at/r.html?rk=01004srv0079p4";
img[13] = "http://www.accesstrade.net/at/r.html?rk=01006e3t0079p4";
img[14] = "http://ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=2654455&pid=879133975";
img[15] = "http://ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=2654455&pid=879133967";
img[16] = "";
//img[17] = "";
//img[18] = "";
//img[19] = "";


// width size
width[0] = "234";
width[1] = "234";
width[2] = "234";
width[3] = "234";
width[4] = "234";
width[5] = "234";
width[6] = "234";
width[7] = "234";
width[8] = "234";
width[9] = "234";
width[10] = "234";
width[11] = "234";
width[12] = "234";
width[13] = "234";
width[14] = "234";
width[15] = "234";


// height size
height[0] = "60";
height[1] = "60";
height[2] = "60";
height[3] = "60";
height[4] = "60";
height[5] = "60";
height[6] = "60";
height[7] = "60";
height[8] = "60";
height[9] = "60";
height[10] = "60";
height[11] = "60";
height[12] = "60";
height[13] = "60";
height[14] = "60";
height[15] = "60";


document.open();
document.write("<ul id='ad'>");
if(hyouji<=kazu) {
for (i=1;i<=hyouji;i++) {
do {
var rand = Math.floor(Math.random()*kazu); 
}
while ( 0<hako[rand] );
n = Math.floor(Math.random()*jmp.length);
document.write("<li style='list-style:none;'><a href='"+jmp[n]+"' target='_blank' rel='nofollow'>");
document.write("<img src='"+img[n]+"' width='234' height='60' alt='' />");
document.write("</a></li>");
hako[rand]=+1;
}
}
document.write("</ul>");
document.close();
