function index_hot_blog(){
hot_blog = new Array();
//共有幾個熱門部落
 tmp = new Array();
tmp["blog_id"] 				= "31470";
tmp["blog_hostname"] 		= "jojo778989";
tmp["blog_name"] 			= "[小宛報報]韓劇.韓";
tmp["author_img"] 			= "/myimages/238/31470/author/author.gif";
tmp["blog_description"] 	= "~有熱門韓劇介紹...跟韓星最新消息~";
hot_blog[0] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "7423";
tmp["blog_hostname"] 		= "akane847";
tmp["blog_name"] 			= "懶喵兒滴窩";
tmp["author_img"] 			= "/myimages/255/7423/author/author.gif";
tmp["blog_description"] 	= "";
hot_blog[1] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "2348";
tmp["blog_hostname"] 		= "htfjsw";
tmp["blog_name"] 			= "海豚飛看世界";
tmp["author_img"] 			= "/myimages/44/2348/author/author.gif";
tmp["blog_description"] 	= "行動冒險家";
hot_blog[2] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "18186";
tmp["blog_hostname"] 		= "s70999";
tmp["blog_name"] 			= "石頭無名";
tmp["author_img"] 			= "/myimages/10/18186/author/author.gif";
tmp["blog_description"] 	= "";
hot_blog[3] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "15096";
tmp["blog_hostname"] 		= "grade4";
tmp["blog_name"] 			= "四年級部落格";
tmp["author_img"] 			= "/myimages/248/15096/author/author.gif";
tmp["blog_description"] 	= "四年級聯三拉五的交流天地";
hot_blog[4] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "40350";
tmp["blog_hostname"] 		= "dophine";
tmp["blog_name"] 			= "Dophine 多芬";
tmp["author_img"] 			= "/myimages/158/40350/author/author.gif";
tmp["blog_description"] 	= "把一些收藏很久的文章或者有好內容的篇章，";
hot_blog[5] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "38630";
tmp["blog_hostname"] 		= "yi0127";
tmp["blog_name"] 			= "雲淡風輕自在逍遙";
tmp["author_img"] 			= "/myimages/230/38630/author/author.gif";
tmp["blog_description"] 	= "這個部落格有我的生活記錄、心情點滴，閱讀";
hot_blog[6] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "29024";
tmp["blog_hostname"] 		= "betty178178";
tmp["blog_name"] 			= "《 ♪ 天空與你 /";
tmp["author_img"] 			= "/myimages/96/29024/author/author.gif";
tmp["blog_description"] 	= "【韓劇★公主的男人。決不認輸。守護老闆。";
hot_blog[7] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "106779";
tmp["blog_hostname"] 		= "a0975116609";
tmp["blog_name"] 			= "大園蘆竹土地買賣,農";
tmp["author_img"] 			= "/myimages/27/106779/author/author.gif";
tmp["blog_description"] 	= "專營  航空城蛋黃區,機場專用區,航空產";
hot_blog[8] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "21271";
tmp["blog_hostname"] 		= "cm788847";
tmp["blog_name"] 			= "╭♡ 過往足跡 ♡╮";
tmp["author_img"] 			= "/images/sinaman.gif";
tmp["blog_description"] 	= "等待你出現...  一起去聽浪潮  暢談";
hot_blog[9] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "37238";
tmp["blog_hostname"] 		= "recipe";
tmp["blog_name"] 			= "生活好料理食譜";
tmp["author_img"] 			= "/myimages/118/37238/author/author.gif";
tmp["blog_description"] 	= "減肥食譜、素食食譜、餅乾食譜、咖哩食譜、";
hot_blog[10] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "2476";
tmp["blog_hostname"] 		= "cfw0114";
tmp["blog_name"] 			= "幸福的另一個世界";
tmp["author_img"] 			= "/myimages/172/2476/author/author.gif";
tmp["blog_description"] 	= "用盡一生的氣力，只為了追求bling b";
hot_blog[11] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "23488";
tmp["blog_hostname"] 		= "ivip5885553";
tmp["blog_name"] 			= "申公主佈告欄";
tmp["author_img"] 			= "/myimages/192/23488/author/author.gif";
tmp["blog_description"] 	= "本人已搬家，要留言或看新文章請移駕至=>";
hot_blog[12] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "40898";
tmp["blog_hostname"] 		= "paludarium";
tmp["blog_name"] 			= "水草栽培新世界";
tmp["author_img"] 			= "/myimages/194/40898/author/author.gif";
tmp["blog_description"] 	= "";
hot_blog[13] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "57481";
tmp["blog_hostname"] 		= "sharenews";
tmp["blog_name"] 			= "熱門點點點";
tmp["author_img"] 			= "/images/sinaman.gif";
tmp["blog_description"] 	= "NB / PC.週邊零組件.消費電子.視";
hot_blog[14] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "6276";
tmp["blog_hostname"] 		= "mayyu_doggy";
tmp["blog_name"] 			= "單身女子&哈士奇do";
tmp["author_img"] 			= "/myimages/132/6276/author/author.gif";
tmp["blog_description"] 	= "本部落記錄Mayyu與Doggy的生活點";
hot_blog[15] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "47826";
tmp["blog_hostname"] 		= "icq790605";
tmp["blog_name"] 			= "『快報』";
tmp["author_img"] 			= "/images/sinaman.gif";
tmp["blog_description"] 	= "顧名思義";
hot_blog[16] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "5568";
tmp["blog_hostname"] 		= "a1823145";
tmp["blog_name"] 			= "金門部落";
tmp["author_img"] 			= "/myimages/192/5568/author/author.gif";
tmp["blog_description"] 	= "來金門遊山玩水尋風獅逛坑道看洋樓古厝";
hot_blog[17] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "627";
tmp["blog_hostname"] 		= "millie";
tmp["blog_name"] 			= "Ich bin Mi";
tmp["author_img"] 			= "/myimages/115/627/author/author.gif";
tmp["blog_description"] 	= "＊ Travel ＊ 我的腳走出我的世界";
hot_blog[18] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "451";
tmp["blog_hostname"] 		= "lin_44ping";
tmp["blog_name"] 			= "eau";
tmp["author_img"] 			= "/myimages/195/451/author/author.gif";
tmp["blog_description"] 	= "法國與法文   當然還有其他";
hot_blog[19] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "208";
tmp["blog_hostname"] 		= "cutymouse";
tmp["blog_name"] 			= "小老鼠，上燈台";
tmp["author_img"] 			= "/myimages/208/208/author/author.gif";
tmp["blog_description"] 	= "愛吃愛玩的老鼠喜歡到處吃，也喜歡自己動手";
hot_blog[20] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "92518";
tmp["blog_hostname"] 		= "xyz556";
tmp["blog_name"] 			= "xyz軟體補給站";
tmp["author_img"] 			= "/images/sinaman.gif";
tmp["blog_description"] 	= "xyz556.com";
hot_blog[21] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "98522";
tmp["blog_hostname"] 		= "hotsearch";
tmp["blog_name"] 			= "熱門關鍵搜尋";
tmp["author_img"] 			= "/myimages/218/98522/author/author.gif";
tmp["blog_description"] 	= "蒐集這一刻的熱門,回應找尋的關鍵";
hot_blog[22] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "35340";
tmp["blog_hostname"] 		= "hsing";
tmp["blog_name"] 			= "涂茂興 & NGOs";
tmp["author_img"] 			= "/myimages/12/35340/author/author.gif";
tmp["blog_description"] 	= "【阿興の文化研究部落】任何事都是從一個決";
hot_blog[23] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "26914";
tmp["blog_hostname"] 		= "dodobear";
tmp["blog_name"] 			= "Orzmovies.";
tmp["author_img"] 			= "/myimages/34/26914/author/author.gif";
tmp["blog_description"] 	= "Orzmovies.com彌勒熊SINA";
hot_blog[24] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "45106";
tmp["blog_hostname"] 		= "umbrella";
tmp["blog_name"] 			= "雨傘王";
tmp["author_img"] 			= "/images/sinaman.gif";
tmp["blog_description"] 	= "新年快樂！2012 更快樂！";
hot_blog[25] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "66120";
tmp["blog_hostname"] 		= "ginseng";
tmp["blog_name"] 			= "新文化史部落格";
tmp["author_img"] 			= "/images/sinaman.gif";
tmp["blog_description"] 	= "文化史研究的訊息交流平台";
hot_blog[26] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "234";
tmp["blog_hostname"] 		= "appleibook";
tmp["blog_name"] 			= "投資客日誌";
tmp["author_img"] 			= "/myimages/234/234/author/author.gif";
tmp["blog_description"] 	= "Albert Hung's Invest";
hot_blog[27] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "4775";
tmp["blog_hostname"] 		= "milktea";
tmp["blog_name"] 			= "奶茶的大小事";
tmp["author_img"] 			= "/myimages/167/4775/author/author.gif";
tmp["blog_description"] 	= "";
hot_blog[28] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "96922";
tmp["blog_hostname"] 		= "vemma16888";
tmp["blog_name"] 			= "vemma美商維瑪居";
tmp["author_img"] 			= "/myimages/154/96922/author/author.gif";
tmp["blog_description"] 	= "vemma是富爸爸窮爸爸作者唯一推薦全自";
hot_blog[29] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "33370";
tmp["blog_hostname"] 		= "meet11";
tmp["blog_name"] 			= "春華秋實";
tmp["author_img"] 			= "/myimages/90/33370/author/author.gif";
tmp["blog_description"] 	= "";
hot_blog[30] = tmp;
tmp = new Array();
tmp["blog_id"] 				= "17143";
tmp["blog_hostname"] 		= "atom";
tmp["blog_name"] 			= "原子映象官方部落格";
tmp["author_img"] 			= "/images/sinaman.gif";
tmp["blog_description"] 	= "";
hot_blog[31] = tmp;

//要取幾個熱門部落
var get_hot_blog = new Array();

//如果 hot_blog 篇數小於 get_hot_blog 篇數,就取 hot_blog.length 當總數
var total = 0;
if(hot_blog.length < 8){
	total = hot_blog.length;
}else{
	total = 8;
}

//從 hot_blog 中取出 8 篇放到 get_hot_blog 裡面
for(var i=0;i<total;i++){
	get_hot_blog[i] = hot_blog[Math.ceil(Math.random()*hot_blog.length-1)];
	for(var j=0;j<i;j++){
		if(get_hot_blog[j] == get_hot_blog[i])  i--;
	}
}

if(get_hot_blog.length > 0){
	document.writeln("<div id=\"hotList\" name=\"hotList\" class=\"hots hta\" style=\"display:none;\">");
	for(var i = 0; i < get_hot_blog.length; i++){
		document.writeln("<div class=\"bloghots\">");
		document.writeln("<a href=\"/" + get_hot_blog[i]["blog_hostname"] + "/\"><img src=\"" + get_hot_blog[i]["author_img"] + "\" width=\"65\" height=\"60\" border=\"0\" align=\"left\" /></a>");
		document.writeln("<div class=\"title\"><a href=\"/" + get_hot_blog[i]["blog_hostname"] + "/\">" + get_hot_blog[i]["blog_name"] + "</a></div>");
		document.writeln(get_hot_blog[i]["blog_description"]);
		document.writeln("</div>");
		if ((i+1) % 2 == 0){
			document.writeln("<div class=\"clear\"></div>");
		}
	}
	document.writeln("</div>");
}
}
index_hot_blog();
