//===========================================================================
//基本設定
//==================== 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','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'));
}
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(\'../../../pnews/Pnews0513.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/2005/pnews/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(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '汪道涵病逝上海 享壽90';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '美自由之家副總裁促台灣把民主傳中國';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '法部規劃 搖頭或highＫ 統統送勒戒';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '斬斷源頭 毒價飆漲';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '一時快活 花容貌變毒骷髏';
	rows[4].link = 'today-fo5.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '化解認同危機 扁應標舉方向';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '翁金珠關懷之旅 明澎湖出發';
	rows[2].link = 'today-p3.htm';
	rows[2].type = '民進黨主席補選';
																										
	rows[3].text = '民視持股 蔡同榮稱已出清';
	rows[3].link = 'today-p4.htm';
	rows[3].type = '民進黨主席補選';
																										
	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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-int1.htm';
																										
	rows[1].text = '閏秒 2006年晚1秒報到';
	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 = '《中英對照讀新聞》Is ours a virtual reality? 宇宙一切僅是虛擬實境？';
	rows[6].link = 'today-int7.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女子';
	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 = '照顧癱孫10年 拇指不成形';
	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 = '仿製阿里山米酒 拒罰5億敗訴';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '假地院詐真地院 不爽被抓包 訂燒仙草伺候';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '飛車連環搶 8旬婦也遭殃';
	rows[8].link = 'today-so9.htm';
	rows[8].type = '毒鴛鴦';
																										
	rows[9].text = '偷車搶錢 加油鬼祟洩底';
	rows[9].link = 'today-so10.htm';
	rows[9].type = '毒鴛鴦';
																										
	rows[10].text = '越娘陪酒 沒脫衣仍違法';
	rows[10].link = 'today-so11.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '國道電子收費難上路 解鈴還須繫鈴人';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '台北車展首日 六萬人先睹為快';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '轉世活佛黃英傑 昨陞座';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '揮桿耍帥甩個頭 賠掉視力';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '捐肝救女 愛與孝交戰';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = 'ＡＢ膠好利 苦命工人滿手膿';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '嘉義有個猶太 耶誕老公公';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '健行勸募 正心中學用腳行善';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '大紅布條高高掛 另類告別式慶重生';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '沒帶餐具上學 不准吃飯';
	rows[10].link = 'today-life11.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 = '卡特火大 猛灌51分';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '大帝變小弟 本季新低14分';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《桌球國手選拔賽》14歲陳建安 最幼齒國手';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '火爆火辣平安夜 教頭發脾氣';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《奧林匹克冬季游泳分齡賽》83歲泳者 耶誕驅寒';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '鋒吹草動 熊忐忑';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《諸羅山盃國際軟式少棒賽》日本女強投 12K加全壘打';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '北／大台北房市 精華區看俏';
	rows[0].link = 'today-e1.htm';
	rows[0].type = '2006房市大預測';
																										
	rows[1].text = '中／中科帶動唱 明年最看好';
	rows[1].link = 'today-e2.htm';
	rows[1].type = '2006房市大預測';
																										
	rows[2].text = '南／建設將完成 價量趨穩定';
	rows[2].link = 'today-e3.htm';
	rows[2].type = '2006房市大預測';
																										
	rows[3].text = '透天／軟硬體升級 保障多e點';
	rows[3].link = 'today-e4.htm';
	rows[3].type = '社區 永保安康';
																										
	rows[4].text = '社區／無人化管理 月省1.7萬';
	rows[4].link = 'today-e5.htm';
	rows[4].type = '社區 永保安康';
																										
	rows[5].text = '豪宅／人員自培訓 應變更有力';
	rows[5].link = 'today-e6.htm';
	rows[5].type = '社區 永保安康';
																										
	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(10);
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 = '明年全球原油需求 成長2.2%';
	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 = '4年來第一次 美元將出現年度升值';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '日本股市 投資吸引力加分';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '48歲林殿方 半導體業資歷23年';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '推動公共建設 目標4.5%';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '受惠貿易成長 最少3.96%';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '成長動能延續 可逾4.5%';
	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(15);
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 = '女F4 Tiffany 腋下有皺褶 奶疑作假';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '阮經天日記 獨家曝光';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '李大齊黏TT 周迅等著當台灣媳婦';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '夏禕赴海基會 申請老父來台過年';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '天后嗆聲 花蝴蝶笑傲翹臀珍';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '強叔度蜜月 水都笑對狗仔';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '醜小鴨變大明星 矬樣俗斃斃';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '唯美藝伎 章子怡舞動日本人';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '裴帥狠賺外匯 韓流大力士';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '成宥利遭退貨 不跳華爾滋';
	rows[14].link = 'today-show15.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(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 = '原味平安夜 願7000高砂義勇亡靈安息';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '台北花卉展 絢麗燈場';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '超大布袋戲 看頭十足';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '關懷喜憨兒 紅豆姊傳手藝';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '山地聖誕之夜 寒風中原音競唱';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '信福路再坍方 最快週一單線通車';
	rows[7].link = 'today-taipei8.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 = '攜槍毒遇臨檢 2恍神男栽了';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '組織犯罪集團 舉證不足輕判';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '一氧化碳中毒 母子4人獲救';
	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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '財務糾紛被擄 發簡訊救命';
	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 = '替夫送禮盒 陳燕治判刑4月';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '氣窗盜潛入 水電行損失生財工具';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '社會傳真／中市逮10女賣淫 中國女 罹子宮頸癌還接客';
	rows[5].link = 'today-center6.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 = '聖誕夜搞轟趴？警方加強取締';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '加工自殺 丈夫函送';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '車內自殺 高市2起';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '刺背案嫌犯 法官裁定羈押';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '女子陳屍陽台 研判自殺';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '南市中西區火警 2人輕傷';
	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(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 = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(10);
	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 = '廚房就是染坊';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '創意雜貨小鋪';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '只要一條項鍊<br>隨時都像換新衣';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '甜美風VS.創意派<br>毛線高手來過招';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '小胸out out<br>海咪咪up up';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '做個鋪床高手';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '以認養代替購買<br>等你把牠領回家';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '窮酸皮夾';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '禮物發票好貼心喔';
		rows[9].link = 'today-weekly10.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';
}