//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','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-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'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.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 class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La 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(10);
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 = '近60年頭一遭空軍一號出訪 扁：元首外交一大步';
	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 = '轉機諾魯 花個十來天稀鬆平常';
	rows[9].link = 'today-fo10.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-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 = '228劊子手 陳儀密檔 國防部拒公布';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '競逐大位 希拉蕊目標2012?';
	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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
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-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 = "《中英對照讀新聞》Court rejects suit over right to sex 法院駁回性生活權訴訟";
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(18);
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 = '死神常駐 10危險路段奪命';
	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 = '「脫衣拳」色誘廚師 偷拍裸照勒索';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '養子敗家產 判准終止收養';
	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 = '父冤死53年 政府文件僅交代變死';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '靈堂佔路停棺逾期 法辦孝子';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '夭壽毒狗客 流竄823公園';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '台中市可愛動物園區再被爆 宛如地獄收容所';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '腦麻女出遊  慈父清障礙';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '李正雄   打球、開車一樣行';
	rows[14].link = 'today-so15.htm';
																										
	rows[15].text = '李瑞南  送6萬個愛心麵包';
	rows[15].link = 'today-so16.htm';
																										
	rows[16].text = '闢圖書館  福海宮爺爺了遺願';
	rows[16].link = 'today-so17.htm';
																										
	rows[17].text = '幫弱智女   南韓牧師當自家事';
	rows[17].link = 'today-so18.htm';
																										
}
menu = null;

menu = getMenu('life');
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 = '弱勢揮別失業 耕出希望夢田';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '垃圾費隨袋徵收 8縣市擬明年實施';
	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';
																										
	rows[8].text = '入秋第一道鋒面 週三報到';
	rows[8].link = 'today-life9.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 9;
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-sp1.htm';
																										
	rows[1].text = '掃皇 建仔打頭陣 YES主播：安啦';
	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';
																										
	rows[7].text = '雨神暗助 阿格西喘口氣';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '魏筠潔 摘今年首冠';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = 'IPT世界8號球公開賽 冠軍50萬美金 撞壇天價';
	rows[9].link = 'today-sp10.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '人民幣上週升幅  年來最大';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '類比IC設計 高盛喊進';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = 'APEC財長會 本週越南登場';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '勤龍、飛雅、九德、鼎太 將停止買賣';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '陳淑蓉團隊 年創1.3億業績';
	rows[5].link = 'today-e6.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 = '印尼漁工叛變  台籍船長落海1天倖存';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(16);
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 = '莫文蔚馮德倫 9月度蜜月？';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = 'w-inds.離台 桃園機場險暴動';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '周華健飆淚開唱 粉絲撐傘聽到底';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '海灘型男 No.1 潘士弘身材一級棒';
	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 = '簡沛恩古錐 學英文逛超商';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '動畫影展好A 狂吹性愛奇想';
	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 = '卡門辣倒伊娃 泳奪冠軍';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '章子怡低胸赴「宴」 怕出糗拒落英語';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '一年之初博滿堂采 粉絲發問逗鄭有傑';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '柴崎幸 妻夫木聰 明春步紅毯';
	rows[15].link = 'today-show16.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 = 10;
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 = 10;
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 = '國際牛肉麵節 65家店飆人氣';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '樹木黑死病 蔓延台北市';
	rows[7].link = 'today-taipei8.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 11;
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 = '捐救護車 1年1輛 不分景氣';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '小隊長查冒貸8個月 卷宗比人高';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '盜剪工廠電纜失風 棄車落跑';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '盜剪台電高壓電纜 3嫌送辦';
	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 = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '商人吃完宵夜 5煞棒棍轟頭';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '豐原傳4搶案 警局旁照搶';
	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 = '搶奪皮包 2搶嫌送辦';
	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';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '冒牌檢察官   詐走3百多萬元';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '假車禍真詐財 屏東傳多起';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '假警 擄妓勒贖 改重判7年';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '李昌鈺籲倒扁靜坐 和平結束';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '每天走萬步 屏基新運動';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '小兄弟海邊溺水 1死1失蹤';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '偷女生內衣 少男笑說好奇啦';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '卡債逼死人 鎖店老闆燒炭亡';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '提款遭尾隨 肩掛皮包被搶走';
	rows[8].link = 'today-south9.htm';
																										
	rows[9].text = '捕獸夾傷腳 流浪狗恐須截肢';
	rows[9].link = 'today-south10.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 = '革命2.0';
	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 = 'BOT平價旅館平議';
	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 = 12;
	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 = 12;
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 = '珠寶的拜占庭遊記';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '秋冬髮色 深棕主流';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '06\' 07\' 秋冬第一波Defoliation  秋天．枯葉風';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '國產本田Civic 2.0 進口福斯Jetta 2.0 TDI<br>汽柴油小型房車大對抗';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
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 = '職場熄燈 生活號正響';
	rows[0].link = 'today-family1.htm';
																										
	rows[1].text = '丈夫騙我前妻偷人 其實偷腥的是他';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '筆記隨身帶 寫作不設防';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '消費大事週報';
	rows[3].link = 'today-family4.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 14;
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 = '巴金森氏症 手術治療也見效';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '中耳炎多年不癒  應先診斷是否為腫瘤';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '孕期做做毛巾操  對媽咪、寶寶都好';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '夜貓族懂保養 才不會虛';
	rows[3].link = 'today-medicine4.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 15;
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-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';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 16;
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-art1.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 17;
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;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	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';
}