// 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";

// img address
img[0] = "http://ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=2419699&pid=878461182";
img[1] = "http://ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=2419699&pid=877938725";

// 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='250' height='250' alt='' />");
document.write("</a></p>");
//document.write("<img src='"+imp[n]+"' width='1' height='1' alt='' />");