var font = "";

var ad = new Array();

ad[0] = ["B003EO8WYU","【PSP】08/05 テイルズオブファンタジア なりきりダンジョンX"];
ad[1] = ["B003LVY5CE","【PS3】07/08 白騎士物語 -光と闇の覚醒-"];
ad[2] = ["B003M69TPQ","【PS3】08/19 アナザーセンチュリーズエピソード R"];
ad[3] = ["B00361FKX2","【Xbox360】06/24 モンスターハンター フロンティア オンライン ビギナーズパッケージ"];
ad[4] = ["B003CN64UM","【PSP】08/26 モンハン日記 ぽかぽかアイルー村"];
ad[5] = ["B002M76PD0","【PS3】07/29 戦国BASARA3"];
ad[6] = ["B003PPE5F8","【Xbox360】08/26 俺の嫁 あなただけの花嫁"];
ad[7] = ["B003H9LKYG","【Wii】07/15 ドラゴンクエスト モンスターバトルロードビクトリー"];
ad[8] = ["B0038JCXVE","【PS3】07/01 BLAZBLUE -CONTINUUM SHIFT-"];
ad[9] = ["B003NCWWG2","【NDS】07/29 仮面ライダーバトル ガンバライドカードバトル大戦"];
ad[10] = ["B003L215S0","【PS3】07/15 実況パワフルプロ野球2010"];
ad[11] = ["B002S51SC4","【NDS】07/08 牧場物語 ふたごの村"];
ad[12] = ["B003IKOIHK","【PSP】09/22 クロヒョウ 龍が如く新章"];
ad[13] = ["B003PGQ00K","【Wii】07/08 Wii パーティー"];
ad[14] = ["B003PGQ028","【NDS】07/15 ファイアーエムブレム 新・紋章の謎"];
ad[15] = ["B003AQBAUU","【PSP】07/29 初音ミク -Project DIVA- 2nd"];
ad[16] = ["B003DSGZBY","【PS3】06/24 トトリのアトリエ アーランドの錬金術士2"];

//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);
