//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
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','living','family','medicine','article','young','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(15);
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';
																										
	rows[8].text = '馬：當家的鬧事 世界罕見';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '抓不軌 懸賞500萬元';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '夠狠！ 挑下坡路段，難煞車…';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '查道疏漏？ 枋寮所否認';
	rows[11].link = 'today-fo12.htm';
																										
	rows[12].text = '內獅眾壯丁 爬車廂救人';
	rows[12].link = 'today-fo13.htm';
																										
	rows[13].text = '2度遇翻車 越南新娘亡';
	rows[13].link = 'today-fo14.htm';
																										
	rows[14].text = '南迴線搶通 停班全額退費';
	rows[14].link = 'today-fo15.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台大教授 羅昌發 任WTO爭端解決成員';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '馬將不提國防政策 美學者失望';
	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';
																										
	rows[6].text = '關說、行賄 不只一家廠商 檢調本週還有一波大約談…';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '政策搖擺 消基會籲退機保障權益';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = 'ＢＯＴ伙伴 漸行漸遠';
	rows[8].link = 'today-p9.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-int1.htm';
																										
	rows[1].text = '美澳日安全對話 關切中國擴武';
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = '七合一疫苗 可望5年內問世';
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = '電視錄影拉火車 7死10傷';
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = '名人A片熱賣 業者欲罷不能';
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = '米洛塞維奇 歸葬塞國';
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = '《中日對照讀新聞》European toilet paper gets passionate 歐洲衛生紙變得熱情';
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = '《中日對照讀新聞》愛子&#12373;&#12414;、&#12399;&#12376;&#12417;&#12390;&#12398;&#12487;&#12451;&#12474;&#12491;&#12540;&#12521;&#12531;&#12489;体&#39443; 愛子小公主初次暢遊迪士尼';
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '小6坐檯妹 寫信感謝警方 「我真的知道錯了」';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '前議員開脫衣酒店 更一審判刑1年6月';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '中國辣妹淫窟 大學生二訪銷魂';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '越勞控訴 仲介毒打迫遣返';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '破全國最大賭博網站';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '左營眷村奇人 看自由時報上癮 18年來不出國';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '愛心牛肉攤老闆 8年每月存1萬 捐贈百萬救護車';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '寶島行善團 修繕積福德';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '設跳蚤市場 盈餘金助學';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '愛心顧客鼓勵 殘障彩券販邁步';
	rows[9].link = 'today-so10.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '機器人館 只看不做 不准走';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '自行車道「非常道」 執法分道';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = 'RU-486 美又傳2死案例';
	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 = '治癲癇不停藥 預後佳';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '腦及肌腱黃瘤病 揪出突變基因';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《WBC》日韓硬碰硬 上原對徐在應';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《WBC》下屆亞洲區預賽 我可能主辦';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '蛇狂轟屠牛';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '泰山1000安';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '蘇建榮林宗男 最有緣的麻吉';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《BenQ uBa》八強開打 體面的一天';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '活塞犯上 尼克撿到';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《F1》大馬站 費希切拉擎桿位';
	rows[7].link = 'today-sp8.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
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-e1.htm';
																										
	rows[1].text = '房市風向球 代銷業哈燒';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '北中南代銷 超級比一比';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '玩互動 與它與牠的樂趣空間';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '雙併麗舍 double創藝秀';
	rows[4].link = 'today-e5.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '愛馬仕香水 來台邂逅';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '李康智 中國夢醒更踏實';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '熱門新興行業--網拍麻豆 穿出美麗賺進MONEY';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '晶圓大廠 搶進設計領域';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '轉投資公司有賺錢 陸續計劃上市上櫃';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '上銀科技獎 成大蘇雅玲奪金';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '東元 前進七大市場 期待三年有成';
	rows[7].link = 'today-stock8.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 = 'ETC案週三前 不提公益方案 交部將與遠通解約';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
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-show1.htm';
																										
	rows[1].text = '房祖名 煞到阿姊徐若瑄';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '阿妹有了∼當媽念頭 向小S取經';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '言承旭 吞蒸蜜蜂救嗓？';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '何豪傑 和家馨 婚後只做1次';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '5566開唱 季芹討婆婆歡心';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '觀月雛乃自爆 打野戰春光外洩';
	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 = '布裘3人婚禮 媒體海陸空緊盯';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '權相宇全裸秀蠶蛹 金荷娜狂笑';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '裴勇俊 崔智友榮登韓流帝后';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '香取慎吾本周來台西遊';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '葉全真桃花旺 談戀愛別婚頭';
	rows[14].link = 'today-show15.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(6);
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 = '陽明山花鐘歡度一支花生日';
	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 = '7萬餘公司 未設退休金監委會';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '歐晉德不排除接副市長';
	rows[5].link = 'today-taipei6.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
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-north1.htm';
																										
	rows[1].text = '男闖警局：報告長官 我是偷渡犯';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '飛象過河 頭份警破新竹地下兵工廠';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '向錢莊借45萬 還百萬還欠2000萬';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '醉女鬧跳海 運將、巡佐聯手勸回';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '社會傳真／男子吃喪家免錢飯 還偷金箔';
	rows[5].link = 'today-north6.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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-center1.htm';
																										
	rows[1].text = '外人談健保 台灣人好福利';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '偷馬達被逮 陳家豐逕行送監';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '李正河案 2單位都稱無疏失';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '投縣公墓火警連傳 消防員疲於奔命';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '與客車擦撞 騎士1死1重傷';
	rows[5].link = 'today-center6.htm';
	rows[5].type = '社會傳真';
																										
	rows[6].text = '消防員破門 救出燒炭男子';
	rows[6].link = 'today-center7.htm';
	rows[6].type = '社會傳真';
																										
	rows[7].text = '國中女懷孕 父母誤認發胖';
	rows[7].link = 'today-center8.htm';
	rows[7].type = '社會傳真';
																										
	rows[8].text = '毆妻判離婚 賭漢上訴駁回';
	rows[8].link = 'today-center9.htm';
	rows[8].type = '社會傳真';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
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-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 = '10公斤安毒 被攔截';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '瓷器夾毒 闖關失敗';
	rows[5].link = 'today-south6.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '318鬧事？ 果然北京！';
	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';
																										
	rows[10].text = '輓聯匾額 開課如何';
	rows[10].link = 'today-o11.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	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].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '好品味　　　→';
		rows[1].submenu = 'living';
		rows[1].link = 'today-living1.htm';
	
		rows[2].text = '家庭兩性　　→';
		rows[2].submenu = 'family';
		rows[2].link = 'today-family1.htm';
	
		rows[3].text = '健康醫療　　→';
		rows[3].submenu = 'medicine';
		rows[3].link = 'today-medicine1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.htm';
	
		rows[5].text = '青春美　　　→';
		rows[5].submenu = 'young';
		rows[5].link = 'today-young1.htm';
	
		rows[6].text = '藝術文化　　→';
		rows[6].submenu = 'art';
		rows[6].link = 'today-art1.htm';
	
		rows[7].text = '休閒旅遊　　→';
		rows[7].submenu = 'travel';
		rows[7].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('living');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('young');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 19;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 20;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '主婦Power 勇猛出擊  主婦省錢撇步大曝光！';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '省電撇步 看緊你的荷包  家庭省電撇步大曝光！';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '小氣財神 A出好本領  上班族省錢撇步大曝光！';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '卡神、卡油、卡省錢  信用卡省錢撇步大曝光！';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '省得刻骨 花得開心 大學生省錢撇步大曝光！';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '作客金門 百年古厝給你住';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '懷舊驚豔 金門古意遊';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '許我一個草莓夢幻屋！';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '3C也能開運？且聽星座專家告訴你';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '選對3C商品 讓你好運一整年';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '緊張又刺激的網路小遊戲<br>眼明手快 我最行！';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '料理電玩讓你聞香而來<br>女孩子也能玩得很起勁！';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	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';
}