// random
jmp = new Array();
img = new Array();
imp = new Array();

// to link
jmp[0] = "/houkei/redirect/index.php?id=ueno";
jmp[1] = "/houkei/redirect/index.php?id=yamanote";
jmp[2] = "/houkei/redirect/index.php?id=satsuki";

// img address
img[0] = "http://ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=2419699&pid=876807304";
img[1] = "http://ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=2419699&pid=877938720";
img[2] = "http://www20.a8.net/svt/bgt?aid=100311754384&wid=001&eno=01&mid=s00000008640001006000&mc=1";

// impression
/*imp[0] = "http://track.affiliate-b.com/lead/f570O/a10366H/r5955Q";
imp[1] = "http://track.affiliate-b.com/lead/y590B/a10366H/e7260m";*/
//imp[2] = "http://track.affiliate-b.com/lead/P60q/a10366H/98296";

n = Math.floor(Math.random()*jmp.length);
document.write("<p><a href='"+jmp[n]+"' target='_blank'>");
document.write("<img src='"+img[n]+"' width='468' height='60' alt='' />");
document.write("</a></p>");
//document.write("<img src='"+imp[n]+"' width='1' height='1' alt='' />");