//===========================================================================
//基本設定
//==================== 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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '他，遍訪綠藍領袖 228簽手護台灣';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '高俊明︰馬代表國民黨真心道歉 才有真和解';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '國民黨紀念228 南北都有尷尬場面';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '新聞分析／228和平公義價值 陪著民進黨成長';
	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(11);
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 = '吳澧培：繼續鞭策陳總統廢統';
	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';
																										
	rows[9].text = '廢統衝擊 美盼扁損害管制';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '薄瑞光 出任ＡＩＴ主席';
	rows[10].link = 'today-p11.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
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-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 = '開打稱攻擊沙國煉油廠';
	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 = '《中英對照讀新聞》1-2pm: have breast enlargement 下午一到兩點：來隆乳';
	rows[9].link = 'today-int10.htm';
																										
	rows[10].text = '《中日對照讀新聞》女性&#12399;&#12362;笑&#12356;系男性&#12364;&#12362;好&#12365;＝調&#26619; 調查發現「女性鍾情搞笑男」';
	rows[10].link = 'today-int11.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(12);
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 = '三帶同污 人蛇家族拐越女賣淫';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '兄妹亂倫 父跪醫 打掉5月胎';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '台灣史上最大外匯違規交易案  前瑞銀交易員送辦';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '張錫銘的第一個肉票 毒梟陳登岳250萬保命';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '紀俊毅︰受託狙殺中部重量級民代';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '破中國製盜碟 市值6千萬';
	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';
																										
}
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 = '3至6歲兒童 1週補習不得逾10小時';
	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 = '黃營杉要求徐享崑 黃慶四 留駐桃園';
	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 = '自辦熱身賽兩大危機 長打差 先發缺';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '擒熊 鄭昌明三安搶眼';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '松&#22338;情蒐 想套阿家';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《世界盃24小時超馬》扶桑客 暫居首';
	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 = '《SBL》雙台大演逆轉秀';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《世界高爾夫比洞賽》推桿失準 伍茲抱憾出局';
	rows[7].link = 'today-sp8.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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].link = 'today-e1.htm';
																										
	rows[1].text = 'Housing Go Dutch 鹿特丹 大開眼界<br>前衛住宅 系列報導（1）';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '盆栽感染空間 擁抱黃綠紅';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '運動玩家 引以為傲的養心殿';
	rows[3].link = 'today-e4.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《品牌故事》阿瘦皮鞋 深耕台灣54年 銷售突破1千萬雙';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '多媒體展流血戰開打 筆電削價1萬';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '新興國家 海外併購 打造新的 商業帝國';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '主計處預測 我今年出超200億美元';
	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 = '美6大港口收購案 箭在弦上';
	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';
																										
}
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 = '阿妹遲到罰唱歌 簽名送抱抱';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '脊椎炎+兵役案 Jolin封口 怕跟周董法院見';
	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 = '新時代獸醫 史帝夫有女承衣缽';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '拉法葉 創新佛朗明哥舞';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '春天的華爾滋 韓劇版權費NO.1';
	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 = '凱文科斯納 又彈又唱勞軍';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '娜塔莉光頭秀 一鏡到底不NG';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '威爾法洛 茱兒 哈燒片酬NO.1';
	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(8);
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 = '泰雅民族博物館 原民局接管';
	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 = '高尪公迎香 北投熱鬧非凡';
	rows[7].link = 'today-taipei8.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '小週末齊搖頭 105舞客送辦';
	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 = '錯打電話...罵幹 挨告函送...喊冤';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '社會傳真／竹市交警不幸猝逝 同仁募款';
	rows[4].link = 'today-north5.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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 = '誤闖？ 運將離奇命喪特三道';
	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 = '假結婚前科 真娶妻被拒入境';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '肛交染菜花 援交妹當痔瘡醫';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '罹病撿回命 變弱智又走失';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '妻罹癌症亡 他持獵槍自盡';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '社會傳真／喝爛醉 開車撞上民宅';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-south1.htm';
																										
	rows[1].text = '惡獵 4嫌盜獵保育動物被查';
	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';
																										
	rows[6].text = '騎士失足落水圳 遺體尋獲';
	rows[6].link = 'today-south7.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 = '政經分離 廢統阻力';
	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 = '228全球網路接力秀台灣';
	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 = '吳釗燮vs.劉曉波';
	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 = '停聽看 完美跳槽A計畫';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '漂亮走人<br>大家對你懷念特別多';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '轉職補習班 開課囉';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '簡單爽口好滋味<br>5道蘿蔔變身料理';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '畫眉技巧輕鬆上手<br>表情更靈動';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '狗狗發春季來臨<br>飼主必知私房祕技';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '貓咪發春季來臨<br>飼主必知全解答';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '寵物結紮前後<br>飼主必知錦囊妙記';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '奇怪網拍 什麼都賣<br>越怪越有人氣 不怪還沒人愛';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '莫負好春光 養生好時節';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '微白蛋白 偵測腎臟病變';
		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,700);
}

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,700);
}

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';
}