//PR用バナー表示―――――――――

function randomLoad() {
// ランダムに画像を表示する
link = new Array();
jmp = new Array();
img = new Array();
alt = new Array();
trg = new Array();

// リンク可否 1の場合On 0の場合Off
link[0] = "1";
link[1] = "1";
link[2] = "1";
link[3] = "1";
link[4] = "1";
//link[4] = "1";

// ジャンプ先のアドレス(数字は画像と対応)
jmp[0] = "/chikusa/access/index.shtml";
jmp[1] = "/sakura/index.shtml";
jmp[2] = "/chikusa/details/oneyear/index.shtml";
jmp[3] = "/chikusa/search/index.shtml";
jmp[4] = "/chikusa/location/360_view/index.shtml";

// ターゲット指定
trg[0] = "_self";
trg[1] = "_blank";
trg[2] = "_self";
trg[3] = "_self";
trg[4] = "_self";

// 画像のアドレス(数字はジャンプ先のアドレスと対応)
img[0] = "/chikusa/image/bnr_model.jpg";
img[1] = "/chikusa/image/bnr_sakura.jpg";
img[2] = "/chikusa/image/bnr_oneyear.jpg";
img[3] = "/chikusa/image/bnr_new_service.jpg";
img[4] = "/chikusa/image/bnr_360.jpg";

// 画像のAlt文
alt[0] = "内覧会開催中!!";
alt[1] = "和食処　千種　さくら 和の趣きで彩る、寛ぎの空間";
alt[2] = "ワンイヤーもご用意しております。";
alt[3] = "新サービス追加！ワンイヤーフロアの入居者様限定特典。ペット入居が可能！自転車無料レンタル！";
alt[4] = "360°View 居室からの眺望をご覧頂けます。";

n = Math.floor(Math.random()*jmp.length);
if (link[n] == 1) {

    // リンク可否　で On　の場合　aタグと一緒に書き出し
	document.write("<a href='"+jmp[n]+"' target='"+trg[n]+"'>");
	document.write("<img src='"+img[n]+"' width='269' height='125' alt='"+alt[n]+"'>");
	document.write("</a>");

} else {
    // リンク可否 Offの場合 imageタグのみ書き出し
	document.write("<img src='"+img[n]+"' width='269' height='125' alt='"+alt[n]+"'>");
} 

}



