// JavaScript Document
//桃屋用　ランダムピックアッププログラム

//呼び出す画像のアドレスを数列に格納
images= new Array(
"toyama/mutsumi-s.jpg",
"toyama/mami-s.jpg",
"toyama/akane-s.jpg",
"toyama/chiharu-s.jpg",
"toyama/hirono-s.jpg",
"toyama/yukiko-s.jpg",
"toyama/misaki-s.jpg",
"toyama/yuuna-s.jpg",
"toyama/kokoro-s.jpg",
"toyama/miyako-s.jpg",
"toyama/satomi_s.jpg",
"toyama/chiharu-s.jpg",
"toyama/maki-s.jpg"
);
//呼び出す富山htmlのアドレスを数列に格納
add= new Array(
"http://www.h-momoya.com/toyama/toyama/girl/mutsumi/index.html",
"http://www.h-momoya.com/toyama/toyama/girl/mami/index.html",
"http://www.h-momoya.com/toyama/toyama/girl/akane/index.html",
"http://www.h-momoya.com/toyama/toyama/girl/chiharu/index.html",
"http://www.h-momoya.com/toyama/toyama/girl/hirono/index.html",
"http://www.h-momoya.com/toyama/toyama/girl/yukiko/index.html",
"http://www.h-momoya.com/toyama/toyama/girl/misaki/index.html",
"http://www.h-momoya.com/toyama/toyama/girl/yuuna/index.html",
"http://www.h-momoya.com/toyama/toyama/girl/kokoro/index.html",
"http://www.h-momoya.com/toyama/toyama/girl/miyako/index.html",
"http://www.h-momoya.com/toyama/toyama/girl/satomi/index.html",
"http://www.h-momoya.com/toyama/toyama/girl/chiharu/index.html",
"http://www.h-momoya.com/toyama/toyama/girl/maki/index.html"
);

//女性の名前と年齢を数列に格納
names= new Array(
"むつみ",
"まみ",
"あかね",
"ちはる",
"ひろの",
"ゆきこ",
"みさき",
"ゆうな",
"こころ",
"みやこ",
"さとみ",
"ちはる",
"まき"
);
/*
function opw(x) { //ウィンドウ呼び出し関数
  theURL=add[x];
  window.open(theURL,"girl","width=600,height=650");
}
*/

function rand(){//乱数をa,b,cに格納
	a=Math.floor(Math.random()*images.length);
	b=Math.floor(Math.random()*images.length);
	c=Math.floor(Math.random()*images.length);
		do{b=Math.floor(Math.random()*images.length);}
		while(a==b);
		do{c=Math.floor(Math.random()*images.length);}
		while(a==c||b==c);
//ここからドキュメントの書き出し
    document.write("<table width='270' hight='120'><tr><td width=90 align='center'><a href='",add[a],"'><img class='wframe' src=face/",images[a]," border=0 width=80 hight=105></a><br><font color=yellow><b>",names[a],"<br></b></font></td><td width=90 align='center'><a href='",add[b],"'><img class='wframe' src=face/",images[b]," border=0 width=80 hight=105></a><br><font color=yellow><b>",names[b],"<br></b></font></td><td width=90 align='center'><a href='",add[c],"'><img class='wframe' src=face/",images[c]," border=0 width=80 hight=105></a><br><font color=yellow><b>",names[c],"<br></b></font></td></table>");
}
