//配列の定義
var msg = new Array();

//バナー追加時はmsg配列内の内容を追加 ※[]内の数字は間を空けず連番で！
/*雛型
msg[番号] = '<a href="リンク先URI" target="blank"><img src="画像ファイルパス" width="250" height="70" border="0" alt="代替テキスト" /></a>';
*/
msg[0] = '<a href="http://www.sfit.co.jp/pm/contents/makes-kiyosumi/" target="blank"><img src="img/relatedsite/ba_mkiyosumi.gif" width="250" height="70" border="0" alt="メイクスデザイン清澄白河アジールコート" /></a>';

msg[1] = '<a href="http://www.heyagime-campus.com/" target="blank"><img src="img/relatedsite/ba_campus2.gif" width="250" height="70" border="0" alt="ヘヤギメ！キャンパス" /></a>';

msg[2] = '<a href="http://www.wann.jp" target="blank"><img src="img/relatedsite/ba_wann.gif" width="250" height="70" border="0" alt="ペット可賃貸Wann." /></a>';

msg[3] = '<a href="http://www.sfit.co.jp/pm/contents/ragios/shinagawa/" target="blank"><img src="img/relatedsite/ba_ragios.jpg" width="250" height="70" border="0" alt="RAGIOS -レイジオス- 品川" /></a>';

msg[4] = '<a href="http://www.sfit.co.jp/pm/takanawa_project/" target="blank"><img src="img/relatedsite/ba_riz.jpg" width="250" height="70" border="0" alt="新築賃貸マンション「RIZ高輪」" /></a>';

msg[5] = '<a href="http://www.sfit.co.jp/pm/chester/" target="blank"><img src="img/relatedsite/ba_chester.jpg" width="250" height="70" border="0" alt="チェスターシリーズ" /></a>';

msg[6] = '<a href="http://www.sfit.co.jp/pm/pc_ookayama/" target="blank"><img src="img/relatedsite/ba_ookayama.jpg" width="250" height="70" border="0" alt="プレミアムキューブ大岡山" /></a>';

msg[7] = '<a href="http://www.sfit.co.jp/pm/eslead/shibaura/" target="blank"><img src="img/relatedsite/ba_shibaura.jpg" width="250" height="70" border="0" alt="エスリード芝浦ベイサイド" /></a>';

msg[8] = '<a href="http://www.sfit.co.jp/pm/belle-feerique/kugahara/" target="blank"><img src="img/relatedsite/ba_bf_kugahara.jpg" width="250" height="70" border="0" alt="ベルフェリーク久が原" /></a>';

msg[9] = '<a href="http://www.sfit.co.jp/pm/9senzoku/" target="blank"><img src="img/relatedsite/ba_9senzoku.jpg" width="250" height="70" border="0" alt="9senzoku -9senzoku-" /></a>';

msg[10] = '<a href="http://www.sfit.co.jp/pm/pc_omori/" target="blank"><img src="img/relatedsite/ba_PC_omori.jpg" width="250" height="70" border="0" alt="プレミアムキューブ大森" /></a>';

msg[11] = '<a href="http://www.sfit.co.jp/pm/h-kameido/" target="blank"><img src="img/relatedsite/ba_h-kameido.jpg" width="250" height="70" border="0" alt="ハーティー亀戸" /></a>';

msg[12] = '<a href="http://www.heyagime.com/ps/proudflat" target="blank"><img src="img/relatedsite/ba_pfs.jpg" width="250" height="70" border="0" alt="プラウドフラットシリーズ" /></a>';

//乱数の生成および変数へ値を代入
function getNum(){
	val = Math.floor(Math.random() * msg.length);
	return val;
}

var img1,img2,img3;

while (img1 == img2 || img1 == img3 || img2 == img3) {
	img1 = getNum();img2 = getNum();img3 = getNum();
}
