//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = true;
path = '';
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('生活週報'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
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 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="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '布希以避免「對抗」 暗批中國';
	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';
																										
}
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 = '蘇揆4理由 重申不承認中國學歷';
	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';
																										
}
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 = "日96名國會議員 參拜靖國神社";
	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 = "GPS手機 幫媽媽找小孩";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "《中英對照讀新聞》Russian cult leader charged with fraud 俄國密教領袖遭詐欺罪起訴";
	rows[5].link = 'today-int6.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '5子吻別 1碗麵媽媽含笑走';
	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 = '得標金額神準 官商2人收押';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '冒刊援交毀人名節 女作家陳燁判賠20萬';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '準大學生開刀治病 竟變智障 一審獲賠2700萬 二審剩672萬';
	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 = '照護61歲癱兒 91歲老媽無怨';
	rows[10].link = 'today-so11.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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 = '北縣想借錢建捷運 如意算盤難撥';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '蹺課特蒐隊 新社4少 找回迷失同窗';
	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 = 10;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '改判之後 牛轉戰局';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '陳金鋒 首盜成功';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '洋基保五 建仔擔重任';
	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 = '《SBL》達欣裕隆 開紅盤';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '全中運揭幕 火力大放送';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '奧運培訓隊練兵';
	rows[7].link = 'today-sp8.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '中國「砂」手&#37927; 我加強採砂因應';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '今年經濟成長 中經院上修至4.17%';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '中經院︰油價若續漲 保四困難';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '大摩預估 台股今年高點7650';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '根留台灣 南台紡研聯盟成立';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '經濟好轉 3月失業率降至3.87%';
	rows[5].link = 'today-e6.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '週線連四紅 外資狂買158億';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '全年EPS至少60元 宏達電盤中破千元';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '外資圈︰面板股逢低均是買點';
	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 = 'Google首季獲利成長60%';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '第1季獲利 新光金EPS1.76元';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '《期指觀測站》資金熱絡 持續多頭格局';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '歐股午盤上揚 日股收高';
	rows[9].link = 'today-stock10.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 = '出國練舞拍MV Jolin先燒3600萬';
	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 = '主持金曲等無人  東風跳腳';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '江霞轟小野 節目製作費灌水10倍';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '安達祐實 老媽脫衣賣肉尬女兒';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = 'Maggie Q被爆 訂婚帶球跑';
	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 = '油價飆 計程車費喊漲2成5';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '油電複合 市府省油4車上路';
	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(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 = '認罪繳善款 仿冒金酒判緩刑';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '逃稅10年被拘管 隔天速繳清';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '神探採菸蒂DNA擒賊';
	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';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '偷骨灰罈勒贖 15贓物全找回';
	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 = '六合彩簽賭站 哇！1年賭資逾6億';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '偷遍北、桃電纜 警開槍逮3嫌';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '廢棄魚塭捕魚 6外勞判無罪';
	rows[5].link = 'today-center6.htm';
	rows[5].type = '社會傳真';
																									
	rows[6].text = '簡訊報職棒明牌 警：別回電';
	rows[6].link = 'today-center7.htm';
	rows[6].type = '社會傳真';
																									
	rows[7].text = '毒蟲犯案 毒癮來襲…都招了';
	rows[7].link = 'today-center8.htm';
	rows[7].type = '社會傳真';
																									
	rows[8].text = '老爸賣帳戶 國一兒子捲入詐欺';
	rows[8].link = 'today-center9.htm';
	rows[8].type = '社會傳真';																									
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '升戰旗 鄭成功文化節動起來';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '古蹟連溼地 高縣要你好看';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '賭場帶著走 筆電當賭具';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '拚證照 工研院產業學院開班';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '中正三路派出所 2年折損4所長';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '吸金潛逃變身被逮';
	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';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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';
																										
}
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(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
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('medicine');
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('article');
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('art');
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('travel');
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;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '漫遊 自然風光<br>豐原 東勢 沿途玩透透';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '相招去谷關<br>泡湯 賞景 嘗美食 一次享受';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = 'UP UP 美胸計畫大出擊';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '神啊 請給我蜜桃美胸';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '太平公主 吃這味<br>明星豐胸私房秘笈大公開';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '何嘉文<br>睫毛彎彎 漂亮百變秘訣';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '菜鳥買表看過來<br>多問、多看就是不吃虧';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '在專門店買表 三大優點報你知';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '今天就是0422世界地球日<br>8種方法愛地球！';
		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;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	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-house1.htm';
																											
		rows[1].text = '遠距監工 科技幫大忙';
		rows[1].link = 'today-house2.htm';
																											
		rows[2].text = '透天老屋600萬變美術館';
		rows[2].link = 'today-house3.htm';
																											
		rows[3].text = '用養生概念 打造會呼吸的家';
		rows[3].link = 'today-house4.htm';
																											
		rows[4].text = '愛情好風水';
		rows[4].link = 'today-house5.htm';
																											
		rows[5].text = '巴黎16區 把千坪公園當窗景';
		rows[5].link = 'today-house6.htm';
																											
		rows[6].text = '中科大未來 眺望投資前景';
		rows[6].link = 'today-house7.htm';
																											
		rows[7].text = '高博館 跟科博館做鄰居';
		rows[7].link = 'today-house8.htm';
																											
		rows[8].text = '交屋前如何測試住家水管暢通？';
		rows[8].link = 'today-house9.htm';
																											
		rows[9].text = '傳統與現代接軌 品味中西混搭風';
		rows[9].link = 'today-house10.htm';
																											
		rows[10].text = '從荷蘭小記者 到世界建築大師';
		rows[10].link = 'today-house11.htm';
																											
		rows[11].text = '沒有建築執照的預售屋 可以付簽約金嗎?';
		rows[11].link = 'today-house12.htm';
																											
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}