
// ----------------------------------------------
// 広告表示用スクリプト
// ----------------------------------------------
function randAD(){
	// ランダムに画像を表示する
	jmp = new Array();
	img = new Array();
	alt = new Array();
	// ジャンプ先のアドレス（数字は画像と対応）（Flashはswf内に記述）
	 jmp[0] = "http://www.rakuten.ne.jp/gold/andit/";
	 jmp[1] = "http://www.kansai-girlsstyle.net/dokumo/";

	// 画像のアドレス([x]の数字はジャンプ先のアドレスと対応)
	 img[0] = "images/ad/andit201103.jpg";
	 img[1] = "images/ad/dokumo.jpg";

	// ALT(Flashの時は無し)
	 alt[0] = "and it";
	 alt[1] = "読者モデル大募集!!";

	// 画像 or Flash の判定
    n = Math.floor(Math.random()*jmp.length);
	if(!alt[n]){
		document.write(img[n]);
	}else{
		document.write("<a href='"+jmp[n]+"' target='_blank' oncontextmenu=\"return false\">");// 右クリック不可（Macは無理）
		document.write("<img src='"+img[n]+"' border='0' alt='"+alt[n]+"' name='ad' id='ad'>");
		document.write("</a>");
	}
}


