// JavaScript Document
//桃屋用　ランダムピックアッププログラム(ver.2.0)

//呼び出す画像のアドレスを数列に格納
kdeta= new Array(
"やえこ","kagoshima/yaeko-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/yaeko/index.html",
"あいこ","kagoshima/aiko-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/aiko/index.html",
"ゆいか","kagoshima/yuika-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/yuika/index.html",
"あつこ","kagoshima/atsuko-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/atsuko/index.html",
"かんな","kagoshima/kanna-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/kanna/index.html",
"れみ","kagoshima/remi-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/remi/index.html",
"すみれ","kagoshima/sumire-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/sumire/index.html",
"れいこ","kagoshima/reiko-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/reiko/index.html",
"えり","kagoshima/eri-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/eri/index.html",
"ことの","kagoshima/kotono-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/kotono/index.html",
"ちさ","kagoshima/chisa-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/chisa/index.html",
"きみか","kagoshima/kimika-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/kimika/index.html",
"はづき","kagoshima/hazuki-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/hazuki/index.html",
"りんか","kagoshima/rinka-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/rinka/index.html",
"まみ","kagoshima/mami-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/mami/index.html",
"さよこ","kagoshima/sayoko-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/sayoko/index.html",
"とわ","kagoshima/towa-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/towa/index.html",
"はじめ","kagoshima/hajime-s.jpg","http://www.h-momoya.com/kagoshima/kagoshima/girl/hajime/index.html",
"けい","kagoshima/kei_s.gif","http://www.h-momoya.com/kagoshima/kagoshima/girl/kei/index.html",
"end"
);
k = kdeta.length-1;
kt = k/3;

function opw(x) { //ウィンドウ呼び出し関数
  theURL=add[x];
  window.open(theURL,"girl","width=600,height=650");
}

function rand(){//乱数をa,b,cに格納
	a=Math.floor(Math.random()*kt);
	b=Math.floor(Math.random()*kt);
	c=Math.floor(Math.random()*kt);
		do{b=Math.floor(Math.random()*kt);}
	   while(a==b);
	do{c=Math.floor(Math.random()*kt);}
	   while(a==c||b==c);
an = a*3; ap = an+1; aad = an+2;
bn = b*3; bp = bn+1; bad = bn+2;
cn = c*3; cp = cn+1; cad = cn+2;
//ここからドキュメントの書き出し
    document.write("<table width='270' hight='120'cellspacing='2'><tr><td width=90 align='center'><a href='",kdeta[aad],"'><img class='wframe' src=face/",kdeta[ap]," border=0 width=80 hight=105></a><br><span class='rec_txt2'>",kdeta[an],"<br></span></td><td width=90 align='center'><a href='",kdeta[bad],"'><img class='wframe' src=face/",kdeta[bp]," border=0 width=80 hight=105></a><br><span class='rec_txt2'>",kdeta[bn],"<br></span></td><td width=90 align='center'><a href='",kdeta[cad],"'><img class='wframe' src=face/",kdeta[cp]," border=0 width=80 hight=105></a><br><span class='rec_txt2'>",kdeta[cn],"<br></span></td></table>");
}