jmp = new Array();
img = new Array();
img2 = new Array();
alt = new Array();
doc = new Array();
alt2 = new Array();

// ジャンプ先のアドレス(数字は画像と対応)
jmp[0] = "publish.html#book";
jmp[1] = "publish.html#cdrom";
//jmp[2] = "files/jma.pdf";
//jmp[3] = "javascript:void(0)";
//jmp[4] = "javascript:void(0)";

// 画像のアドレス(数字はジャンプ先のアドレスと対応)
img[0] = "img/belt_book01.jpg";
img[1] = "img/belt_cd01.jpg";
//img[2] = "img/jma.jpg";
//img[3] = "img/img3.jpg";
//img[4] = "img/img4.jpg";

img2[0] = "../img/belt_book01.jpg";
img2[1] = "../img/belt_cd01.jpg";
//img2[2] = "../img/jma.jpg";
//img2[3] = "../img/img3.jpg";
//img2[4] = "../img/img4.jpg";

alt[0] = "ベルト伝動・精密搬送の実用設計";
alt[1] = "ベルト伝動技術論文集2007";
//alt[2] = "テクノフロンティア2010";
//alt[3] = "3";
//alt[4] = "4";

doc[0] = "ベルト伝動・精密搬送の実用設計<br>発売中";
doc[1] = "ベルト伝動技術論文集2007<br>発売中";
//doc[2] = "日本能率協会<br>テクノフロンティア2010";
//doc[3] = "ランダムに情報を表示できます　F5で確認できます";
//doc[4] = "ランダムに情報を表示できます　F5で確認できます";

alt2[0] = "0";
alt2[1] = "1";
//alt2[2] = "2";
//alt2[3] = "3";
//alt2[4] = "4";

function setImg(){
l = Math.floor(Math.random()*jmp.length);
m = (l+1)%jmp.length;
//n = (l+2)%jmp.length;
document.write("<div class=ad>");
document.write("<a href='"+jmp[l]+"' target=_new>");
document.write("<img src='"+img[l]+"' alt='"+alt[l]+"' width=160 height=160>");
document.write("<br>");
document.write(doc[l]);
document.write("</a>");
document.write("</div>");
document.write("<div class=ad>");
document.write("<a href='"+jmp[m]+"' target=_new>");
document.write("<img src='"+img[m]+"' alt='"+alt[m]+"' width=160 height=160>");
document.write("<br>");
document.write(doc[m]);
document.write("</a>");
document.write("</div>");
//document.write("<div class=ad>");
//document.write("<a href='"+jmp[n]+"' target=_new>");
//document.write("<img src='"+img[n]+"' alt='"+alt[n]+"' width=160 height=160>");
//document.write("<br>");
//document.write(doc[n]);
//document.write("</a>");
//document.write("</div>");
}
function setImg_en(){
l = Math.floor(Math.random()*jmp.length);
m = (l+1)%jmp.length;
n = (l+2)%jmp.length;
document.write("<div class=ad>");
document.write("<a href='"+jmp[l]+"'>");
document.write("<img src='"+img2[l]+"' alt='"+alt2[l]+"' width=160 height=160>");
document.write("</a>");
document.write("</div>");
document.write("<div class=ad>");
document.write("<a href='"+jmp[m]+"'>");
document.write("<img src='"+img2[m]+"' alt='"+alt2[m]+"' width=160 height=160>");
//document.write("</a>");
//document.write("</div>");
//document.write("<div class=ad>");
//document.write("<a href='"+jmp[n]+"'>");
//document.write("<img src='"+img2[n]+"' alt='"+alt2[n]+"' width=160 height=160>");
//document.write("</a>");
//document.write("</div>");
}
