//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
path = '';
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('生活週報'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '總統府高層：連胡、宋胡會 僅一中沒各表';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '綠營籲 扁馬再會拚經濟';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '丁遠超：連戰不會傳話胡錦濤';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '牽制中國 日倡設東亞自貿區';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '世貿組織談判 我推動全面降關稅';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '日中爭一哥 東亞共同體路難行';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '首相熱門接班人 連番轟胡';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '溫家寶訪斐濟 拉攏南太島國';
	rows[7].link = 'today-fo8.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '金管會大動作 開發金併購案 疑涉內線交易 移送偵辦';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '4000字澄清稿 駁10大指控';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '迎賓軍禮 移府前舉行';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '被指委託炒股 陳哲男要告';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '蘇揆嚴厲交辦獻金疑案';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '三中完成交易 國民黨下目標中投';
	rows[5].link = 'today-p6.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "塔克辛辭職 暫代泰總理";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "反就業法 法發動百萬人示威";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "日人紓壓 催淚道具熱賣";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "獨子被綁架 慈母偵探揪出嫌犯";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "生化電子人 眼明手快又強壯";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "自體細胞培育膀胱 成功植回人體";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "破紀錄 英男子 9年吃4萬顆搖頭丸";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "日本 無線上網機器人";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "伊朗超現代飛船亮相";
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = "《中英對照讀新聞》Doctor's bedside manner still what counts 醫生在病榻旁的態度還是最重要的因素";
	rows[9].link = 'today-int10.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '車禍串證 西施目擊戳破';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '多車輾婦人致死 前車肇逃 後車吃官司';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '毒醫師利慾薰心 <img src='+path+'imgtoday/word0812.jpg border=0>想更有錢';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '新MOTEL 搞轟趴 搖頭族愛嘗鮮';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '基隆嶼 傳靈異 日本兵唱軍歌';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '嘉義殯儀館 錄到不明飄浮光體';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '新店變電所氣爆 6傷';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '妻兒3人困火場 逃出男痛哭';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '子債父背 拾荒夫妻銬進法庭';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '國中生拾金不昧 外勞薪水袋原封送警';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '她的牽掛 請總統照顧孩子';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '瑪利亞的天使 童樣好典範';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '不捨老鄉情 老兵逢節一定到';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '感念榮民恩 村長自願當孝子';
	rows[13].link = 'today-so14.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '如此遊客 長城上比賽車<br>全球暖化 南極鯨快沒了';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '保護遺跡 多走路少搭車';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '全球戒菸賽 衛署零補助';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '書包15公斤 小學生壓力沈重';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '教育部推動修法 補習班 可兼營課後照顧';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '用愛心彌補斷層 總統深刻感受';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '消基會調查：公園遊具 33％壞了';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '赤腹山雀 私生活  曝光';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '中國拜香 致癌風險高';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '水質優養化 鳳山水庫最嚴重';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '北部傍晚有雨 掃墓別忘雨具';
	rows[10].link = 'today-life11.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '隊友挺強森 建仔羨慕';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '象熊 一場亂鬥';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '佛大 冠全美';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '陳嘉宏打蛇 硬挺史帝夫';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '郭泓志出師不利 兩責失';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '台維斯盃 寶島四少負傷抗韓';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '惡漢巴克利 名人堂登榜';
	rows[6].link = 'today-sp7.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '國內外利差續擴大 台幣Q2看貶';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '環保擋駕 台灣面臨水荒';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '股東大會前 兆豐金將收購20％台企銀';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '接管農漁會重設信用部 放款限縮';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = 'HP亞洲PC市佔率 緊追聯想';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '支票背面簽名 附帶清償責任';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '車市戰況烈 1.6L不到48萬';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = 'IMF看好全球經濟成長';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '金價創25年來新高';
	rows[8].link = 'today-e9.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '有價證券信託 節稅新歡';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '信託服務 可為你量身訂做';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '台幣擺脫頹勢 升1.14角';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '人民幣緩升 傳歐盟支持';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '全球資金 流向亞洲股市';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '《理財Q&A》投資基金 幾乎不課稅';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '手機出貨調升 LED亮起來';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '億光宏齊佰鴻 大補';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '華寶3月營收創新高';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '簡學仁回任世界先進總經理';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '新貨效應 工業電腦首季發威';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '研通聯陽 接棒當主將';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = 'Q2台股多走淡 選股不選市';
	rows[12].link = 'today-stock13.htm';
																										
	rows[13].text = '《期指觀測站》多頭格局 短期不變';
	rows[13].link = 'today-stock14.htm';
																										
	rows[14].text = '《國際股市 》歐股午盤跌 日股小挫';
	rows[14].link = 'today-stock15.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '最大K毒集團 醫師是毒梟';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '康康泡妹 開KQ車去QK 同床一夜沒辦事';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = 'Jolin膀胱無力 坐著排隊辦美簽';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '粉絲挺阿妹 募款拍MV';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '林志穎送專輯 林心如拗手錶';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '馬景濤逞雄風 強抱陳德容';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '婚變？哈林：烏龍 脊椎側彎？范范：亂講';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '3輔導金國片 都搞斷背情';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '葉雯遺書吐心聲 金士傑淚眼無言';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '賈靜雯夜夜狂操 暴瘦縮奶';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '琳西變身女超人 貝琴薩破壞好事';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '阿湯哥今夏補票 買新車娶悅凱蒂';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '木村3億豪宅動工 破婚變流言';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = 'Rain飆淚 全靠亡母幫忙';
	rows[12].link = 'today-show13.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》應以台灣為中心思考台灣的經濟與將來';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》不可亂表';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》敵意之門';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '溫泉浴室強制投保意外險';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '即時交通資訊 e網打盡';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '管教有法循 可讓學生罰站';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '利用身分證產生器 盜刷被逮';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '捐乳媽媽 守護早產兒';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '校園活動多 小朋友樂透';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '大坪林站下設油槽 住戶火大';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '反下水道BOT案 淡水人不惜抗爭';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '電線頻遭竊 北大特區夜好黑';
	rows[8].link = 'today-taipei9.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '空屋闢毒窟 孕婦照吸毒';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '國道攔超速 逮毒蟲破AB車';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '切割號碼拼接車牌 毒蟲就逮';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '替代役男偷毒販賣 判11年6月';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '醉漢鬧警局 還涉襲警';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '離家婦同志畸戀 為性、金錢反目';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '社會傳真／抓通緝犯起出槍毒 ２人送辦';
	rows[6].link = 'today-north7.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '定點供針頭 衛署行文盼警放過毒蟲';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '擄鴿勒贖 擒獲傅海堂等6嫌';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '疑她外遇 醋夫砍妻10幾刀';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '建議醫師月休4天 顧及醫療品質';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '5000元賣帳號 她被送辦';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '塞肛運毒 2人判無期徒刑';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '萍水相逢飲酒 女子遭性侵棄竹林';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '人狗混戰 主人被判刑';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '肇事逃逸 駕駛招供了';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '催電話費 詐騙耍花招';
	rows[9].link = 'today-center10.htm';
																										
	rows[10].text = '屢獲無罪 走私客栽了';
	rows[10].link = 'today-center11.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '國中軟式棒球賽 五福國中PK勝強敵';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '雞鳴狗盜 專竊寵物店 嫌犯投案';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '體貼環境 嘉明湖蓋向陽山屋 盼減少污染';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '販毒次數難心證 女子無罪';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '環保公司潑酸案 4嫌被收押';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '男警劈腿被投訴 檢方查證屬實';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '棺木店業者被綁 再查一關係人';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '弟弟落水失蹤 胞兄找尋撞死';
	rows[7].link = 'today-south8.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《曹長青專欄》馬英九熊貓般的智商';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '誰說民眾厭煩修憲？';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '雪山隧道？ 先問歐晉德';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '查贓車拿獎金 有創意';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '猶太 納粹 清明節';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '醫院老闆必讀';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '馬主席叩應';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '原來主要敵人是…';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '總統 別說一中各表';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '請勿消費往生祖孫';
	rows[9].link = 'today-o10.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '這樣才4好男人';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '男人愛美 百貨稱王';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '寶石系裝扮 閃亮現身';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = 'MSN8.0繁體版開始測試  新增離線留言 介面簡單化';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '主管情緒化 看我接招!';
	rows[0].link = 'today-family1.htm';
																										
	rows[1].text = '為了一輛摩托車<br>和男友父親鬧翻';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '防治肺癌 先遠離油煙';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '謝謝妳搶走他';
	rows[3].link = 'today-family4.htm';
																										
	rows[4].text = '竹筍炒肉絲';
	rows[4].link = 'today-family5.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '孕婦 也能很性福';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '副食品加得好<br>寶寶頭好壯壯';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '改善糖尿病併發症<br>中西醫雙管齊下';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '老婦妄想水遭污染<br>環局出馬 打開心結';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '心導管 能緩解心絞痛<br>降低心肌梗塞再發生';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '父捐肝救女 葉小妹慶重生';
	rows[5].link = 'today-medicine6.htm';
																										
	rows[6].text = '新肝寶貝回娘家<br>鼓勵病童 鼓吹捐肝';
	rows[6].link = 'today-medicine7.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '作家的藏所';
	rows[0].link = 'today-article1.htm';
																										
	rows[1].text = '墓園風景';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '八仙會';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '歷史教育與愛國主義';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '無時差旅程';
	rows[4].link = 'today-article5.htm';
																										
	rows[5].text = '《現在詩04》';
	rows[5].link = 'today-article6.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '兩廳院圖利特定廠商？<br>立委陳瑩爆料 帳蓬藝術節如ETC弊案翻版';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '身兼三職 平珩多所閃失<br>外界質疑聲不斷 回歸體制是要務';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '燃燒吧!地板 驚豔即興秀';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '冰原來的禮物 珍貴長毛象標本入藏台博館';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '樹木高聳 布景多變化  音樂劇《小熊維尼》創造迷人景象';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '重拾舊回憶 國中圖展童玩';
	rows[5].link = 'today-art6.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '英國赫立聖島尋奇';
	rows[0].link = 'today-travel1.htm';
																										
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}
