//===========================================================================
//基本設定
//==================== 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','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-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(7);
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 = '查怪客 比對逾500人DNA';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '專家看法／洪致文：台鐵應修訂規章';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = 'ETC案起訴宋乃午 求刑12年';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '交部：ETC現階段繼續營運';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '檢調指控護航 宋稱是助人';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '規格為何鬆綁、誰決定 檢調再追';
	rows[6].link = 'today-fo7.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 = '中國毛巾傾銷 經部認定產業損害成立';
	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';
																										
}
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 = '抗議就業法 法國25萬學生火爆示威';
	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 = '《中英對照讀新聞》Power cuts could make plonk of South Africa\'s wine 限電可能重擊南非葡萄酒';
	rows[5].link = 'today-int6.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(13);
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 = '中國進口原料 製迷姦偽藥';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '白費150萬裝潢 屋主開價460萬求售';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '拚治安 蘇揆:非為選總統';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '46名中國偷渡犯 拿偽證登台打工';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '疑老公包二奶 斷他禍根';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '1張測驗卷 破車禍逃逸案';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '醫療奉獻獎／晁金名 沿海窮人守護神';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '傷心媽媽願挨500針 懷孕把她生回來';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '癌逝醫師遺愛 不忘醫業';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '愛心湧現 新輪椅給湧憲';
	rows[12].link = 'today-so13.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《WBC》奇蹟 墨西哥淘汰老美';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '天佑日本／起死回生那一刻 日本隊歡聲雷動';
	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 = '《HBL》新榮 海山 破老二魔咒';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '職棒17年 今開打 牛蛇搶頭彩';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '50萬就能玩 一案建商橫行';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = 'HOT 量能主流 鎖定新成屋';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '力麒村上 三鐵共構 增值國際社區';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '台北官邸 新板特區 百年抗震豪宅';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '薰衣草 透天總價 不到400萬';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '總太觀闊 溫暖、省能建築、更有人味';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '上品 高素質住戶 第一排視野';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '低總價 買氣旺';
	rows[7].link = 'today-e8.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '大同接班確定 林蔚山接董座';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '今年經濟成長 寶華院調高至4.3%';
	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 = '廣達三洋 合產液晶電視';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '聯電股利紅利 全縮水';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '太陽能概念股 大放光芒';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '光寶科取得敦揚經營權';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '《期指觀測站》破底危機 下週或可解除';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '歐股午盤漲 日本勁揚';
	rows[10].link = 'today-stock11.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 = '鐵軌遭破壞 南迴莒光號 3車廂翻覆';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '血拚高檔貨 開車違規<br>吳辰君 泣婦復仇';
	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 = '阿妹續留華納 機會大增';
	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 = '仲間賣唱進第7';
	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 = '郭靜純王信貴 5月7日大婚';
	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 = 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 = '附中畢業party：搖滾吧！大孩子';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '指考加考公民與社會 反彈聲浪高漲 家長協會：饒了孩子吧';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '公立泳池 6月底無障礙';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '清潔員招考 77歲老爹16歲少女拚了';
	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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '1車翻3車吊 中山高塞1小時';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '驚險閃對撞 轎車卡鐵軌驚魂';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '被通緝16年 涉毒夫妻酒駕洩底';
	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';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '兩岸魚貨交易 海巡攔截30噸';
	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 = '北港馬達竊案 逮10賊';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '豐原計程車搶匪 落網';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '社會傳真／挽回歧途兒 母自殺獲救';
	rows[5].link = 'today-center6.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '橫行南高雄 黑衣飛車雙盜落網';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '偽造發票 高縣15人涉案 7人到案';
	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 = '變體千元鈔 被誤認假鈔';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '涉賄選 林龍瑞等6人起訴';
	rows[5].link = 'today-south6.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '請溫家寶照照鏡子';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '新憲法 多語文';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '中村夫婦怎麼受得了';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '台灣髒亂成性？';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '走在沒有路的海邊';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '阿扁不如到圓山';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '考公民好事一樁';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '消基會專反美商？';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '蒙娜麗莎點金術';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '衛生飲食才是補';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '杜老大';
	rows[10].link = 'today-o11.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(8);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '好品味　　　→';
		rows[1].submenu = 'living';
		rows[1].link = 'today-living1.htm';
	
		rows[2].text = '家庭兩性　　→';
		rows[2].submenu = 'family';
		rows[2].link = 'today-family1.htm';
	
		rows[3].text = '健康醫療　　→';
		rows[3].submenu = 'medicine';
		rows[3].link = 'today-medicine1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.htm';
	
		rows[5].text = '青春美　　　→';
		rows[5].submenu = 'young';
		rows[5].link = 'today-young1.htm';
	
		rows[6].text = '藝術文化　　→';
		rows[6].submenu = 'art';
		rows[6].link = 'today-art1.htm';
	
		rows[7].text = '休閒旅遊　　→';
		rows[7].submenu = 'travel';
		rows[7].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('living');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('young');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 19;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 20;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 12;
	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-weekly1.htm';
																											
		rows[1].text = '漫步龍洞 聽濤觀奇景';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '吮指回味 哈披薩';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '美麗蕾絲 穿出性感華麗';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '清潔洗臉 妳做對了嗎？';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '醫學美容太神奇<br>洋醫師賣配方 諾貝爾加持';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '模擬戰爭現場直擊<br>BB 槍生存遊戲 打得火熱';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '青春不老 從心做起';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '吃點糖 快樂又健康';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '不想得乳癌？ 那就減肥吧！';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '大地之母給你力量<br>精神充沛 活力百倍';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '狂戀烈燄 在愛情面前';
		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';
}