//===========================================================================
//基本設定
//==================== 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(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 = '蘇斥軍購預算5年毫無討論';
	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 = '最新一季ACNielsen閱報率大幅領先／自由時報最受讀者肯定';
	rows[6].link = 'today-fo7.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '史上第一次境外討國產 ２檢將赴瑞士 追拉案佣金';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '陳瑞仁正式暫調北檢 國務費案  偵結在即';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '國安局澄清 第一家庭入出境 依禮遇通關';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '冬瓜菊風波 陳菊總部︰不道歉 一定告';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '退選北高市長？ 台聯駁南社 將參選到底';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '北市長選舉 用人不當說 謝揚言告郝';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '討黨產大聯盟成立 上千社團參與';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '中正紀念堂 民間團體促改名';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '蔣介石定位 學者：應撇開對立性迷思';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '施搞運動 簡錫&#22566;批拉得慢';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '第三勢力 蘇進強：與李登輝無關';
	rows[10].link = 'today-p11.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "外交斡旋奏效 北韓近期重返六方會談";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "H5N1新變種 疾管局：克流感有效";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "青春享瘦之鑰 科學家找到了";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "《國際索隱》與盧武鉉切割？南韓執政黨鬧分家";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "美期中選舉 民主黨女刺客上陣";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "日總人口 首度負成長";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "英科學家創舉 培育出迷你肝臟塊";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "菲女抗議美強暴犯";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中英對照讀新聞》Make no mistake︰don't \"bank\" on Kazakh money 不要出錯：哈薩克鈔票不可靠";
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(18);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '警員肇逃 叫老爸頂罪';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '國道警撞死人案 採證初判 警車挨撞釀禍';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '前永和分局長 求刑15年';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '石門分駐所 爆警包庇賭場';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '植物人求償 遭指短命要太多';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '身分證舊換新 偽證趁機換真證';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '談判遭放槍 男子爆頭亡';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '認識3月 奉子婚3天 為二手菸離';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '花蓮5口命案／疑劉志勤妻 現身祭子女';
	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';
																										
	rows[12].text = '中國假漁工案 2度聲押被駁 檢抗告成功';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '打火英雄救家人 水果妹謝恩';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '雞婆兄妹 守護山城老人';
	rows[14].link = 'today-so15.htm';
																										
	rows[15].text = '全國首創─苗栗溫馨郵 免費專車載老殘';
	rows[15].link = 'today-so16.htm';
																										
	rows[16].text = '馬拉邦山 400歲老人植楓';
	rows[16].link = 'today-so17.htm';
																										
	rows[17].text = '救國團志工 一做30年';
	rows[17].link = 'today-so18.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '保留老風華 古樓歷久彌新';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '恐怖！奶粉罐錫蓋「粉」毒';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '高鐵倒車訓練 出軌50公分';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '中油今漲0.3元 消基會揚言遊說凍預算';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '張國煒捐股 淡出長榮';
	rows[5].link = 'today-life6.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '松&#22338; 前進大聯盟';
	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';
																										
	rows[7].text = '尼克擺平布朗合約 釋出羅斯';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = 'NBA \'06∼07新球季 新鮮開戰';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '新球季 觀戰新指標';
	rows[9].link = 'today-sp10.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '國人投資境外基金 破1.1兆元';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '市場區隔  購物中心苦尋利基';
	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 = '全國電子總經理蔡振豪 徜徉紅酒天地';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '渣打銀行 獲竹商銀95.4%股權';
	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';
																										
	rows[10].text = '紡織業要重油 中油指供應未缺';
	rows[10].link = 'today-e11.htm';
																										
	rows[11].text = '再生能源使用 水力發電最普遍';
	rows[11].link = 'today-e12.htm';
																										
	rows[12].text = '地價稅今起開徵';
	rows[12].link = 'today-e13.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '投資MBS/ABS 變身大房東';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '摩根富林明放眼2007年股債配置／歐股美債雙核心 多元佈局上選';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '搶購便宜黃金 中信局8日標售';
	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 = '矽晶圓三雄 Q3獲利熱力四射';
	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';
																										
	rows[11].text = '歐股午盤漲跌互見 俄下挫';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '股訊要覽';
	rows[12].link = 'today-stock13.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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '八卦冷水坑爆紅 伍佰飆車逗鬧熱';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '冷水坑事件網路燒 揶揄支持對嗆';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '尹乃菁繼續閃 躲火線避風頭';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '暴龍騎駱駝曬黑臉 沙漠寒風中小便';
	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 = '影后瑞絲 醫護兵萊恩 終結7年婚姻';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '詹姆斯墨里森燒聲 專輯熱銷還母債';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = 'Rain死忠粉絲 不甘當冤大頭';
	rows[9].link = 'today-show10.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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '免費接駁公車 4公所苦撐';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '北市府玩數字遊戲 停車位爆量 你信嗎?';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '800萬紀念悠遊卡 只有800張';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '婦幼院區新生 低價回饋';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '景點人氣王 行天宮NO.1';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '外勞「星」情故事 最愛蔡依林';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '舊照、素描 看盡林家花園滄桑';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '民調唱高調 藍營議員比低調';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '郝龍斌 區政說分明 要求首長財產信託';
	rows[8].link = 'today-taipei9.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 = '撞死人落跑 車燈碎片揪回';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '國道攔國光號 2拖板車司機判刑';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '30分鐘之差 警曾錯找對象';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '嘿咻抵車資被拒 女毒蟲傷人判刑';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '《社會觀測站》假警察性侵少女 被判判6年';
	rows[6].link = 'today-north7.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 = '扮農夫埋伏12小時 活逮搶汽車惡盜';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '太平山區反射鏡 新裝20支被偷18支';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '單親家庭只有24000戶 議員不相信';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '書迷蔡文卿割愛 贈書6千本';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '台北牛肉麵節 葉記拚人氣王';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '小主人尋狗 ㄅㄆㄇ標特徵';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '柑林隧道延長140公尺 年底發包';
	rows[7].link = 'today-center8.htm';
																										
}
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 = '假綁架 林園中學20多人遭電話恐嚇';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '大樹1家長被騙10萬元';
	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';
																										
	rows[6].text = '電話詐騙 冒名王森榮';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '盜用MS OFFICE軟體 倢通科技涉侵權';
	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(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 = '過40歲才學台語';
	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(5);
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';
																										
	rows[3].text = '百貨週年慶 加碼第2波<br>鎖定 女鞋 女靴 特賣會';
	rows[3].link = 'today-fashion4.htm';
																										
	rows[4].text = '電子字典在手<br>學語言事半功倍';
	rows[4].link = 'today-fashion5.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
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 = '親子共讀4招 提升閱讀力';
	rows[0].link = 'today-family1.htm';
																										
	rows[1].text = '同事對我性騷擾  隱忍反而丟工作';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '訓練耐心 從5分鐘開始';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '選保母 5要點必備';
	rows[3].link = 'today-family4.htm';
																										
	rows[4].text = '訓練耐心 從5分鐘開始';
	rows[4].link = 'today-family5.htm';
																										
	rows[5].text = '婚姻講座';
	rows[5].link = 'today-family6.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '秋意濃  輪狀病毒警報響';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '煮熟也難去神經毒  不明深海魚 食不得也';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '減輕換季過敏症狀  起床時要注重保暖';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '清潔針具計畫週年  有效降低愛滋感染率';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '癌症講座';
	rows[4].link = 'today-medicine5.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
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-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 = '愛讀書《鏡花園》';
	rows[5].link = 'today-article6.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 = '梅門賞廳書畫陶藝聯展<br>邵幼軒與張大千「師生合作畫」曝光';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '陳秋盛客席長榮樂團<br>郭維斌獨奏';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '兩廳院廣場藝術節<br>吉普賽管樂演出爵士調';
	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 = '沙勞越自然生態之旅  馬來西亞婆羅洲';
	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';
}