var font = "";

var ad = new Array();

ad[0] = ["B001Q3LKYA","【PS3】04/16 ファイナルファンタジーVII アドベントチルドレン コンプリート"];
ad[1] = ["B000E9NHVQ","【PSP】04/29 ペルソナ"];
ad[2] = ["B001MYKLIY","【PSP】04/29 うたわれるもの ポータブル"];
ad[3] = ["B001EYTO26","【PSP】07/02 初音ミク -プロジェクト ディーヴァ-"];
ad[4] = ["B001U0Q16G","【NDS】04/18 ポケモン不思議のダンジョン 空の探検隊"];
ad[5] = ["B0017PBWW2","【NDS】05/28 逆転検事"];
ad[6] = ["B000WM1OXS","【NDS】05/30 キングダム ハーツ 358/2 Days"];
ad[7] = ["B000LXD7HO","【NDS】07/11 ドラゴンクエストIX 星空の守り人"];
ad[8] = ["B001T9OVD8","【Wii】04/23 モンスターハンターG"];
ad[9] = ["B001GNBW8Y","【Wii】06/04 アークライズ ファンタジア"];
ad[10] = ["B001XCW6R4","【PS3】06/25 ロロナのアトリエ アーランドの錬金術師"];
ad[11] = ["B001P30BM8","【PSP】04/30 とらドラ・ポータブル! "];
ad[12] = ["B001R4BA02","【Xbox360】04/30 Xブレード"];
ad[13] = ["B001RNNHCC","【PS2】04/29 実況パワフルメジャーリーグ2009"];
ad[14] = ["B001RNNHD6","【PSP】05/14 グローランサー"];
ad[15] = ["B001IDYGA8","【PS3】05/28 真・三國無双5 Empires"];

//ad[6] = ["","【NDS】"];
//ad[7] = ["","【PSP】"];

var style = new Array();

style[0] = " style=background:ddeeff;color:5599ff;font-size:11pt><b>";
style[1] = " style=background:ffffde;color:orange;font-size:11pt><b>";
style[2] = " style=background:ffdede;color:red;font-size:11pt><b>";
style[3] = " style=background:ffdeff;color:ff00ff;font-size:11pt><b>";
style[4] = " style=background:deffde;color:green;font-size:11pt><b>";

function random(){
	var no = Math.floor(Math.random()*style.length);
	font = style[no];
}

function random2(){
	var no = Math.floor(Math.random()*ad.length);
	html = "";
	html += "<a href=http://www.amazon.co.jp/exec/obidos/ASIN/";
	html += ad[no][0];
	html += "/gamedaihouko-22/ref=nosim";
	html += font;
	html += ad[no][1];
	html += "予約受付中！</b></a>";
}

random();
random2();
document.writeln(html);
