//===========================================================================
//基本設定
//==================== 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','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'));
}
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(12);
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 = '扁嫂介入金改？ 三金控駁斥';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '賣署桃院長？ 侯勝茂否認';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '賭上一億 葉國一駁邱毅';
	rows[11].link = 'today-fo12.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '治水預算 卡立院';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '國親強推 選舉考量多';
	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 = '發行78年 中央日報停刊';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '台灣搜救隊 誤植為中國';
	rows[5].link = 'today-p6.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(6);
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 = "《中英對照讀新聞》Bible Student Charged in Phone Sex Case 聖經學生被控涉及色情電話案";
	rows[5].link = 'today-int6.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 = '騙徒偽造貿易憑證 詐貸逾7億';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '沒有「倒」理 新車車主抗議';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '4年半才裁決 無照酒駕 4萬免繳';
	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 = '狗老師入獄 教化人心';
	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(15);
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 = '高鐵雲林段兩側1.5公里 擬強制休耕';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '高鐵台中-高雄試車 時速300公里';
	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 = '健保4年超徵眷口數保費255億';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '划舟包粽立蛋 全台慶端午';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '日本也過端午節 日子不一樣';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '教師更難考 現職恐資遣';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '中國查獲毒童裝、毒奶瓶';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = 'PMMA、Clobenzorex列管制藥品';
	rows[12].link = 'today-life13.htm';
																										
	rows[13].text = '毒癮愛滋感染者阿哲 死後現身說法';
	rows[13].link = 'today-life14.htm';
																										
	rows[14].text = '報稅 今最後一天';
	rows[14].link = 'today-life15.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《2006世界盃足球賽》王者傳奇';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '太陽烤牛排 扳平';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '日攻破後防 德只能逼和';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '王建民 明晨先發戰老虎';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '快樂獅 八連勝';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '關鍵球失誤 謝淑薇淘汰';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《台灣高球希望巡迴賽》果嶺濕軟難發揮 六人並列領先';
	rows[6].link = 'today-sp7.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '敏感科技保護法 6成廠商支持';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '科保法 刻不容緩';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = 'Xbox PC跨平台遊戲 台灣領先';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '興票改名 兆豐金統一名號';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '公股代表薪酬 經續會將討論';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '重大消息定義新規範 6月上路';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '《國情密碼》河川污染改善不佳 北港溪惡化';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '美元對歐元、日圓 止跌回穩';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '拓展銀髮產業 貿協將率團訪歐';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '產紡協會 成立能源發展基金';
	rows[9].link = 'today-e10.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '亞股全黑 印度重挫3.60%';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '詢圈抽籤 將改同步進行';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '歐盟RoHS指令 衝擊電子業';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '面板業第四季復甦';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '創見、威剛 後市看俏';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = 'IPS提高高階面板產能';
	rows[5].link = 'today-stock6.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 = '扁宣示：黨政權力下放';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'J.H戀係金A 網友目擊 周董Hebe4/5同遊倫敦';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = 'J.H戀 MV勾搭 緋聞倒帶全紀錄';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = 'Jolin豐唇娃娃 力拚本尊';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '26歲彈頭 再當大學新鮮人';
	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 = '言言10日反菸 當戒菸大使';
	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 = '丹尼爾李孝莉 相約赴美爆緋聞';
	rows[12].link = 'today-show13.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》為何只要直航而不要民生福祉？';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》包公斬陳世美？';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》鞏固領導中心，然後呢？';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(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 = '愛心蛙募款 1.5萬隻狂飆基隆河';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '板土線通車首日 營運順利';
	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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '為500元 找錢鬧糾紛 攤販告女客';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '妻陷賄選官司 分居夫奔走重獲芳心';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '單親爸爸病故 3智障子無依';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '掃蕩地下錢莊 基警將全面清查';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '假車禍偷天換日 竊車賊被逮';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '私設反射鏡遭噴漆 疑為風水爭議掀波';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '基隆 旅美男子返台 就挨詐';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '桃園 荒廢公寓賣淫 女被罰';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '桃園 藉酒裝警借錢 進警局';
	rows[8].link = 'today-north9.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 = '3人困沙洲 消防員搭人橋解危';
	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 = '3蒙面盜入室打劫 夫婦驚魂';
	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 = '13人坦承送、收禮 但無關選舉';
	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(8);
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 = '神奇擲筊 銅板4立';
	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 = '漁工涉殺船長 4人被捕';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '假應徵真行竊 涉案40起';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '廢鹽灘捉魚玩 男子溺斃';
	rows[7].link = 'today-south8.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(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 = '同甘不共苦';
	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(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(3);
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 = '第三次世界大戰 電玩開打';
	rows[2].link = 'today-fashion3.htm';
																										
}
menu = null;

menu = getMenu('family');
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-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 = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '吞雲吐霧 非帥氣';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '胎兒頸部透明層測量<br>也可篩檢先天性心臟病';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '提前接受色覺篩檢<br>給孩子彩色的人生';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '慢性腎臟病危害<br>大家不能不謹腎';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '爸媽常吵架<br>暗傷子女情緒';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '頸椎痠又麻<br>可能是後頸神經痛';
	rows[5].link = 'today-medicine6.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '幽他一默';
	rows[0].link = 'today-article1.htm';
																										
	rows[1].text = '玉蘭花';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '湖海';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '午後的圖書館';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '報紙消失的時代';
	rows[4].link = 'today-article5.htm';
																										
	rows[5].text = '在德國的釀酒廠念詩<br>夏宇、北島現身2006年柏林詩歌節';
	rows[5].link = 'today-article6.htm';
																										
	rows[6].text = '透過詩「與死者協商」';
	rows[6].link = 'today-article7.htm';
																										
	rows[7].text = '獎勵文學地誌書寫';
	rows[7].link = 'today-article8.htm';
																										
	rows[8].text = '反叛駭俗的新寫實主義大師';
	rows[8].link = 'today-article9.htm';
																										
	rows[9].text = '少年的咒術<br>走進《魂斷威尼斯》';
	rows[9].link = 'today-article10.htm';
																										
	rows[10].text = '新聞短波';
	rows[10].link = 'today-article11.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '媒體殺人！《目擊者》雜誌檢討蘋果日報';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '操弄「性、醜聞、血腥」讀者愛看？';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '前蘋果日報記者 控訴報社操弄新聞';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '踢踏舞訓練美姿儀態 《愛爾蘭之虎》帶來熱潮';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '台北賓館六月四日對外開放';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '繪本改編成兒童歌仔戲  海山戲館推新戲';
	rows[5].link = 'today-art6.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '體驗溫布頓網球賽魅力<br>英國全民休閒風';
	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';
}