/*****************************************/
/*****************************************/
/** The village of GINGA -Java Script-  **/
/**  by REIMA...http://www.weed.bne.jp/ **/
/*****************************************/
/*****************************************/

/*******************/
/** Common Config **/
/*******************/
var u_agent =navigator.userAgent;

/*************/
/** Options **/
/*************/
//document.write("<scr"+"ipt src=\"/www.js\"></scr"+"ipt>");
//document.write("<input type=\"hidden\" id=\"cp_form\" value=\"Welcome to The village of GINGA!!\">");

/********************/
/** Random Message **/
/********************/
function weedb_mes(){
	run_tmes	=new Array();
	run_tmes[0]	="友情があった…彼はそれを信じ続けた…";
	run_tmes[1]	="無限大の勇気を武器に…走り出した小さな戦士！！";
	run_tmes[2]	="男なら…闘え！誇りと共に…！！";
	run_tmes[3]	="若き力よ…奥羽の未来を切り開け！";
	run_tmes[4]	="躍動する若き力…正義の心！！";
	run_tmes[5]	="悲しみを背負い…男達は強くなる！！";
	run_tmes[6]	="正義の力に限界はない！！";
	run_tmes[7]	="父への思いを力に変えて…！！";
	run_tmes[8]	="迷わず行け！未来を託されし勇者達よ！！";
	run_tmes[9]	="決して忘れない…親と子の永遠の絆を！";
	run_tmes[10]	="行く道は一つ…！！";
	run_tmes[11]	="いつの日も明日を信じて…";
	run_tmes[12]	="友のため…そして未来のため…！";
	run_tmes[13]	="信じること、そして踏み出すこと…、それが何かを変える！";
	run_tmes[14]	="進め！終わりなき正義への道を！！";
	run_tmes[15]	="勇者は走る！明日を掴むために…！！";
	run_tmes[16]	="炸裂せよ！受け継がれし伝説の牙！！";
	run_tmes[17]	="大地に刻め！勇者の道を！！";
	run_tmes[18]	="この瞳に迷いなし！！";
	run_tmes[19]	="この命尽きようとも！！";
	run_tmes[20]	="見せつけろ！奥羽戦士の心意気！！";
	run_tmes[21]	="まだ見ぬ父を夢に見て……";
	run_tmes[22]	="いつだって頼れる仲間がそばにいる！！";
	run_tmes[23]	="決して色褪せぬ伝説の「魂」！！";
	run_tmes[24]	="明日を信じ、己を信じ、今は進む！茨の道を…！！";
	run_tmes[25]	="戦うたびに強くなる！大きくなる！！";
	run_tmes[26]	="決して諦めない！！それが奥羽魂！！";
	run_tmes[27]	="父と仲間と共に…";
	runs_run =Math.floor(Math.random()*run_tmes.length);
	document.write(run_tmes[runs_run]);
}

/******************/
/** Random Image **/
/******************/
function weedb_img(){
	ginga_imaxno ="22";
	ginga_imaxno++;
	runs_runi =Math.floor(Math.random()*ginga_imaxno);
	if(runs_runi == "0"){
		runs_runi ="1";
	}
	//document.write("<!--[if gte vml 1]>");
	//document.write("<v:shape id=\"_x0000_i1027\" type=\"#_x0000_t75\" style='width:230;height:230'>");
	//document.write("<v:imagedata src=\"./load_img.php?m=t&f=weed"+runs_runi+".jpg\" o:title=\"0\"/>");
	//document.write("<o:lock v:ext=\"edit\" cropping=\"t\"/>");
	//document.write("</v:shape><![endif]-->");

	if(u_agent.indexOf('MSIE')>=0&&u_agent.indexOf('Win')>=0){
		document.all.topimg.background="./load_img.php?m=t&f=weed"+runs_runi+".jpg";
	}else{
		document.all.topimg.background="./load_img.php?m=t&f=weed1.jpg";
	}
}

/***************/
/** Key Check **/
/***************/
function key_check(){
	cp_form.createTextRange().execCommand('Copy');
}

/******************/
/** Open Windows **/
/*:****************/
function ginga_win_open(win_name){
	if(win_name == "eizou"){
		showModelessDialog("/ginga/movie.htm","ginga_eizou_win","status:no;dialogWidth:326px;dialogHeight:265px;edge:raised;unsdorned:no;help:no;scroll:no;");
	}
	if(win_name == "ongaku"){
		alert("『銀牙 -流れ星 銀-』の音楽は\nJASRACの影響で配信中止になりました。ｍ（_ _）ｍ");
		//showModelessDialog("/ginga/music.htm","ginga_ongaku_win","status:no;dialogWidth:400px;dialogHeight:300px;edge:raised;unsdorned:no;help:no;scroll:no;");
	}
}

/****************/
/** Script Run **/
/****************/
//window.document.onkeydown=key_check;

