// JavaScript Document
if(navigator.userAgent.indexOf("MSIE 5.") >= 0){ 
	// 表示しない	
}else if(navigator.userAgent.indexOf("MSIE 6.") >= 0){ 
	// 表示しない	
}else{
	document.write("<font color=red>新機能</font> 気になる「言葉」をなぞって検索") ;
}

var hlines=new Array(); //表示する記事の候補
hlines[0]=["http://www.47news.jp/47topics/e/199911.php", "東日本大震災"];
hlines[1]=["http://www.47news.jp/47topics/", "コラム「日めくり」"];
//hlines[2]=["http://www.47news.jp/AccessAnal/index.html","ランキング"];
hlines[2]=["http://www.47news.jp/47topics/","47トピックス"];
//hlines[3]=["http://www.47news.jp/47topics/e/171203.php","地球人間模様"];
//hlines[4]=["http://www.47news.jp/AccessAnal/index.html","その５"];
//hlines[5]=["http://www.47news.jp/AccessAnal/index.html","その６"];
//hlines[6]=["http://www.47news.jp/AccessAnal/index.html","その７"];
//hlines[7]=["http://www.47news.jp/AccessAnal/index.html","その８"];

var dispNum=3; //表示する件数

var randomNum=new Array();
var isDubling=1;
for(i=0;i<dispNum;i++){
	randomNum[i]=Math.floor(Math.random()*hlines.length);
	while(isDubling){
		isDubling=0;
		for(k=0;k<i;k++){
			if(randomNum[i]==randomNum[k]){
				randomNum[i]=Math.floor(Math.random()*hlines.length);
				isDubling=1;
				break;
			}
		}
	}
	isDubling=1;
	document.write("｜" + "<a href='" + hlines[randomNum[i]][0] + "'>"+ hlines[randomNum[i]][1] + "</a>");
	
}

