//===========================================================================
//基本設定
//==================== 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(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(10);
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 = '基隆長庚看病 他3年沒見到主治醫師';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '慢病箋釋出率 4年僅10.1％';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '焦點探索／基隆長庚問題 冰山一角';
	rows[9].link = 'today-fo10.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(14);
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 = '紀念228 民進黨嘉市辦晚會';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '蘇起說密使 府斥道聽塗說';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '退休金分期付 國民黨被指違法';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '爆料抹黑 日眾議員請辭';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '橘鷹派抬頭 國親合作拉警報';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '日有條件同意李登輝訪東京';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '避與日衝突 中國暫緩春曉油田投產';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '方仁惠籲台商 自行積極管理';
	rows[11].link = 'today-p12.htm';
																										
	rows[12].text = '政院：謝請辭後 依法不宜再核人事';
	rows[12].link = 'today-p13.htm';
																										
	rows[13].text = '姚嘉文黃虎印 改編歌仔戲劇本';
	rows[13].link = 'today-p14.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 = '什葉派血腥報復 遜尼派至少127死 伊恐爆內戰';
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = '德仁 祝福弟妃紀子懷孕';
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = '俄市場塌頂 壓死49人';
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = '六四政治犯 遭刑求 俞東嶽獲釋已瘋';
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = '日「赤軍女王」 判刑20年';
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = '哥總統大選 阿里亞斯險勝';
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = '《中英對照讀新聞》Ties can spread superbugs 領帶會散播超級細菌';
	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 = '集團收購超商 經營電玩';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '虛擬營業額 詐銀行10億';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '涉收賄 前高院庭長房阿生收押';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '搶匪扮警察 劫走金庫14億';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '8工人合資 中樂透118億';
	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 = '被當神偷 海報喊冤';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '假證掩護 殺人犯賣菜12年';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '媽祖託夢挖寶 蒜田出大蘿蔔';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '搶救癱瘓狗 女大學生挪註冊費';
	rows[10].link = 'today-so11.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'ETC儲值金將調降';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '北桃15萬戶 昨上午正常供水';
	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 = '辦學經費少收30億';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '私大未接受補助 學費可望自訂';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '94學年最Hot科系／資訊、企管、電機 前三名';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '林英傑3局 挨5安';
	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 = '伊古達拉 吃定騎士';
	rows[8].link = 'today-sp9.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 = '今年經濟成長率 上修至4.25%';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '元月外銷訂單逾221億美元';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '國有地標售 標脫率逾9成';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '益通抽籤 台股失血1200億';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '金鼎證員工抗議開發金惡意併購 立委促調查 有無假外資套利';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '零利率尾聲 日圓套利縮手';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '律師擋債合法 催收難上難';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '立法急就章 逼合法催收繳械';
	rows[7].link = 'today-e8.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '中鋼Q2廠盤漲幅 遠低預期';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '仁寶保證 筆電出貨成長5成';
	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 = '《期指觀測站》金融期收紅 穩盤先鋒';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '《國際股市》歐股午盤跌 亞洲漲聲響';
	rows[7].link = 'today-stock8.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 = '韓星賣臉 橫掃亞洲搶錢';
	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 = '奧斯卡準影后 高檔Bra加冕';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '琳西蘿涵結新歡 煞到奧運英雄';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '裴帥當老闆 砸2.8億跨國吸金';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '松浦亞彌偷吃 搞上小池徹平';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = 'w-inds今年巡演 盼登台';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '工作證及時到 不罰Rain了';
	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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '陽明山花季 繽紛登場';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '蛋糕博覽會 色香味俱全';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '圓葉節節菜 水生植物人氣王';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '剝皮寮老街 鄉土教育中心開張';
	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';
																										
	rows[8].text = '誰的毒手？ 華克山莊貓狗紛遇害';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '避孕法聽嘸 外籍新娘生不停';
	rows[9].link = 'today-taipei10.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 = '3小時內 鋁品工廠來兩對鴛鴦賊';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '偷雇主卡盜領 女工照上班';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '噴巴拉刈未防護 老農中毒不治';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '人車在吉安 中縣開單：擅改車體';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '虧妹打群架 1人攔車挨撞命危';
	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(10);
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 = '水上分局掃賭再立功';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '涉洗不法佣金 黃世惠被訴';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '少女跳鼓陣 想退遭毆禁<br>疑少年砸車 押上山毒打';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '幫惡龍租屋 李忠晉2審無罪';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '工寮遭祝融 監工葬身火窟';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '酒駕肇事逃逸 謊報車失竊';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '看病遇警落跑 通緝犯撞車';
	rows[9].link = 'today-center10.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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 = '3大醫學中心呼吸器 1位難求';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '高縣市警心結 傳言紛飛';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '涉栽贓 南市3警交保';
	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 = '被警栽槍 改判';
	rows[5].link = 'today-south6.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '布希總統 請牽成民主';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '現況：等著被統';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '馬英九心中有鬼？';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = 'ＲＯＣ 塗掉 塗掉';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '強制信託須配套';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '女性出頭天';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '笑看馬失前蹄';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '廢統才是中間';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '歡迎台商回巢';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '仇日情結作祟';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '兩種教師聯盟';
	rows[10].link = 'today-o11.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(8);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '好品味　　　→';
		rows[1].submenu = 'living';
		rows[1].link = 'today-living1.htm';
	
		rows[2].text = '家庭兩性　　→';
		rows[2].submenu = 'family';
		rows[2].link = 'today-family1.htm';
	
		rows[3].text = '健康醫療　　→';
		rows[3].submenu = 'medicine';
		rows[3].link = 'today-medicine1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.htm';
	
		rows[5].text = '青春美　　　→';
		rows[5].submenu = 'young';
		rows[5].link = 'today-young1.htm';
	
		rows[6].text = '藝術文化　　→';
		rows[6].submenu = 'art';
		rows[6].link = 'today-art1.htm';
	
		rows[7].text = '休閒旅遊　　→';
		rows[7].submenu = 'travel';
		rows[7].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('living');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('young');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 19;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 20;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 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 = '上陽明山談場櫻花戀吧！';
		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 = '阿里山 戀戀櫻花海';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '3C吹起甜美草莓風';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '粉粉嫩嫩 3C草莓遊樂園';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '春暖花開 花朵圖案<br>家飾品大集合';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '居家迎春意 花心思玩布置';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '生日禮物 一週提案';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '捧著粉紅水晶 向著愛情前進';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,700);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,700);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}