//===========================
// 基本設定
//===========================
if (location.href.indexOf('/new/')==-1 || location.href.indexOf('/index2.htm')!=-1)
	topMargin = 190;    
else if (location.href.indexOf('/today-sp') != -1)
	topMargin = 200;
else if (location.href.indexOf('/today-show') != -1)
	topMargin = 207;
else
	topMargin = 128;
	
leftMargin = getLeftMargin();
v_layerLength = 24;
v_layerLength2 = 23;
h_layerLength = 85;
path = "/2007/new/oct/14/";  

if (navigator.appName.toLowerCase() == "netscape")
{
	v_layerLength = 25;
	v_layerLength2 = 24;
}
//===========================
// 設定menu
//===========================
obj = new Array(); 

addArray("t","頭版新聞","today-t1.htm",0);
addArray("fo","焦點新聞","today-fo1.htm",0);
addArray("p","政治新聞","today-p1.htm",0);
addArray("so","社會新聞","today-so1.htm",0);
addArray("life","生活新聞","today-life1.htm",0);
addArray("int","國際新聞","today-int1.htm",0);
addArray("speech","自由言論","today-s1.htm",0);
addArray("complain","爆料投訴","today-complain1.htm",0);
addArray("share","讀者分享","today-share1.htm",0);
addArray("love","愛心暖流","today-love1.htm",0);
addArray("e","財經新聞","today-e1.htm",0);
addArray("sp","體育新聞","today-sp1.htm",0);
addArray("health","健康醫療","today-health1.htm",0);
addArray("region","地方新聞","today-taipei1.htm",0);
addArray("show","影視名人","today-show1.htm",0);
addArray("art","藝術文化","today-art1.htm",0);
addArray("supplement","生活副刊","today-fashion1.htm",0);

addArray("c","自由評論","today-s1.htm",1);   
addArray("o","自由廣場","today-o1.htm",1);	

addArray("taipei","台北新聞","today-taipei1.htm",1);
addArray("north","北部新聞","today-north1.htm",1);
addArray("center","中部新聞","today-center1.htm",1);
addArray("south","南部新聞","today-south1.htm",1);

addArray("fashion","流行消費","today-fashion1.htm",1);
addArray("family","家庭親子","today-family1.htm",1);
addArray("article","自由副刊","today-article1.htm",1);
addArray("travel","休閒旅遊","today-travel1.htm",1);
addArray("work","上班一族","today-work1.htm",1);
addArray("gender","兩性異言堂","today-gender1.htm",1);

//===========================
// 建立obj
//===========================
function addArray(type,title,href,layer)
{
	var o = new Object();
	o.name = type;
	o.title = title;
	o.href = href;
	o.h_layer = layer;
	obj = obj.concat(new Array(o));
}

//===========================
// 建立rows
//===========================


rows = new Array(4);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '認識膽固醇';
rows[0].href = 'today-health1.htm';
rows[1].text = '醫藥信箱／母、胎血液循環各自獨立 血型不同 不會有溶血現象';
rows[1].href = 'today-health2.htm';
rows[2].text = '林靜芸專欄／變臉前 別忘先確認精神健康';
rows[2].href = 'today-health3.htm';
rows[3].text = '老阿嬤脊椎斷3節';
rows[3].href = 'today-health4.htm';
$o('health').rows = rows;

rows = new Array(9);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '諾魯總統：與台復交 險遭中國暗算';
rows[0].href = 'today-p1.htm';
rows[1].text = '挖我非洲牆腳 中國加強力道';
rows[1].href = 'today-p1-2.htm';
rows[1].attached=true;
rows[2].text = '扁密集峰會 串緊太平洋島鍊 ';
rows[2].href = 'today-p1-3.htm';
rows[2].attached=true;
rows[3].text = '《星期專論》國家的形影，文化的風貌';
rows[3].href = 'today-p2.htm';
rows[4].text = '一週大事';
rows[4].href = 'today-p3.htm';
rows[5].text = '立委選舉／中選會申請5.5億 併辦2公投';
rows[5].href = 'today-p4.htm';
rows[6].text = '搶攻政黨票 小黨挑戰5％門檻';
rows[6].href = 'today-p5.htm';
rows[7].text = '中間路線強碰 突圍難度高';
rows[7].href = 'today-p5-2.htm';
rows[7].attached=true;
rows[8].text = '李籲支持本土兩黨制';
rows[8].href = 'today-p6.htm';
$o('p').rows = rows;

rows = new Array(19);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '小農大集合 林益生  打造頂級黑翡翠王國';
rows[0].href = 'today-south1.htm';
rows[1].text = '火獅開光 左營萬年季點亮蓮潭';
rows[1].href = 'today-south2.htm';
rows[2].text = '來就是客 真愛碼頭開唱';
rows[2].href = 'today-south3.htm';
rows[3].text = '這幾天…快來看灰面鷲';
rows[3].href = 'today-south4.htm';
rows[4].text = '南科拉長紅 荷蘭興趣高';
rows[4].href = 'today-south5.htm';
rows[5].text = '官田菱角節 千斤菱角吃通海';
rows[5].href = 'today-south6.htm';
rows[6].text = '瑞士草根大使 體驗採菱樂';
rows[6].href = 'today-south6-2.htm';
rows[6].attached=true;
rows[7].text = '府城荷蘭日 繽紛木鞋人氣旺';
rows[7].href = 'today-south7.htm';
rows[8].text = '登革熱拉警報 縣市交界最慘';
rows[8].href = 'today-south8.htm';
rows[9].text = '新豐觀光動線 體驗水之旅';
rows[9].href = 'today-south9.htm';
rows[10].text = '余楊關係破冰 綠營選情加溫';
rows[10].href = 'today-south10.htm';
rows[11].text = '台蒙以詩會友 追求獨立自由';
rows[11].href = 'today-south11.htm';
rows[12].text = '撲殺病媒蚊 化學兵進駐南市';
rows[12].href = 'today-south12.htm';
rows[13].text = '防治登革熱 小記者獻聲';
rows[13].href = 'today-south12-2.htm';
rows[13].attached=true;
rows[14].text = '600進香團 湧入新營太子宮';
rows[14].href = 'today-south13.htm';
rows[15].text = '推入聯公投 市長鐵馬遊街 ';
rows[15].href = 'today-south14.htm';
rows[16].text = '警員愛輔警 攜手走紅毯 ';
rows[16].href = 'today-south15.htm';
rows[17].text = '曾受本報專訪∼   新娘子 當年報考 滿懷熱情';
rows[17].href = 'today-south15-2.htm';
rows[17].attached=true;
rows[18].text = '搶萬元金鍊 換1公克毒品';
rows[18].href = 'today-south16.htm';
$o('south').rows = rows;

rows = new Array(1);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '家車當校車 接送全村學童15年';
rows[0].href = 'today-t1.htm';
$o('t').rows = rows;

rows = new Array(14);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '【客家文化系列報導九∼建築篇】探訪新瓦屋  體會客家樓奧妙';
rows[0].href = 'today-north1.htm';
rows[1].text = '【客家文化系列報導九∼建築篇】竹縣文化局 客家圓樓現代版';
rows[1].href = 'today-north1-2.htm';
rows[1].attached=true;
rows[2].text = '【客家文化系列報導九∼建築篇】客家傳統建築 劉敏耀：內涵傳承不易';
rows[2].href = 'today-north1-3.htm';
rows[2].attached=true;
rows[3].text = '秋時正肥美 來去抓毛蟹';
rows[3].href = 'today-north2.htm';
rows[4].text = '小常識／毛蟹習性';
rows[4].href = 'today-north2-2.htm';
rows[4].attached=true;
rows[5].text = '北台毛蟹何處覓';
rows[5].href = 'today-north2-3.htm';
rows[5].attached=true;
rows[6].text = '台灣絨螯蟹 VS.日本絨螯蟹';
rows[6].href = 'today-north2-4.htm';
rows[6].attached=true;
rows[7].text = '毛蟹料理王／原汁原味 鹽嗆受歡迎';
rows[7].href = 'today-north2-5.htm';
rows[7].attached=true;
rows[8].text = '毛蟹料理王／獨創手法 乾燒一級棒';
rows[8].href = 'today-north2-6.htm';
rows[8].attached=true;
rows[9].text = '北台灣毛蟹名店';
rows[9].href = 'today-north2-7.htm';
rows[9].attached=true;
rows[10].text = '北宜雙城會 探尋兩地遺址';
rows[10].href = 'today-north3.htm';
rows[11].text = '救難機器人，打火英雄先鋒';
rows[11].href = 'today-north4.htm';
rows[12].text = '小泳士，秀出水上救生術';
rows[12].href = 'today-north5.htm';
rows[13].text = '她才車禍骨折，就又難逃死劫';
rows[13].href = 'today-north6.htm';
$o('north').rows = rows;

rows = new Array(9);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '地球科學奧賽 我奪三金一銀';
rows[0].href = 'today-life1.htm';
rows[1].text = '北北基評選教科書 違法恐被撤銷';
rows[1].href = 'today-life2.htm';
rows[2].text = '北市鬥法 罔顧學子權益 ';
rows[2].href = 'today-life2-2.htm';
rows[2].attached=true;
rows[3].text = '三項金氏世界紀錄保持者／瑞士夫妻環球23年 吉普遊台';
rows[3].href = 'today-life3.htm';
rows[4].text = '流感疫情升溫 全家感染漸多';
rows[4].href = 'today-life4.htm';
rows[5].text = '感溫胸罩測乳癌？  醫界質疑';
rows[5].href = 'today-life5.htm';
rows[6].text = '敖過癌苦 火焰試煉  獨眼女郎挺進藝術之路';
rows[6].href = 'today-life6.htm';
rows[7].text = 'Ｂ型血湧進 巴掌仙子有救了';
rows[7].href = 'today-life7.htm';
rows[8].text = '同志大遊行 6色彩虹齊步走';
rows[8].href = 'today-life8.htm';
$o('life').rows = rows;

rows = new Array(13);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '志協少年兄 青春不留白';
rows[0].href = 'today-love1.htm';
rows[1].text = '萬巒老新人 牽手步紅毯';
rows[1].href = 'today-love2.htm';
rows[2].text = '樂活銀髮族  HAPPY DAY';
rows[2].href = 'today-love3.htm';
rows[3].text = '孤老，過戲癮';
rows[3].href = 'today-love4.htm';
rows[4].text = '銀髮夫妻愛相隨 都說「要互相」';
rows[4].href = 'today-love5.htm';
rows[5].text = '關懷弱勢老人 楊金鳳體會「創造被利用價值」的快樂';
rows[5].href = 'today-love6.htm';
rows[6].text = '新營醫院 為獨居老人義診';
rows[6].href = 'today-love7.htm';
rows[7].text = '招待家扶兒 曾振源送愛5年';
rows[7].href = 'today-love8.htm';
rows[8].text = '荒郊3老情感人 志工用愛補山路';
rows[8].href = 'today-love9.htm';
rows[9].text = '感謝家扶 姊妹倆笑看艱辛路';
rows[9].href = 'today-love10.htm';
rows[10].text = '補馬路猝死 遺3名弱勢子女';
rows[10].href = 'today-love11.htm';
rows[11].text = '獎助學金 圓貧童畢旅夢';
rows[11].href = 'today-love12.htm';
rows[12].text = '愛心接棒 助人報師恩';
rows[12].href = 'today-love13.htm';
$o('love').rows = rows;

rows = new Array(10);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '馬稠後科學園區 嘉縣府很積極';
rows[0].href = 'today-center1.htm';
rows[1].text = '三代同堂 百戶孝親家庭獲表揚';
rows[1].href = 'today-center2.htm';
rows[2].text = '鑽石兒女劉蜜 四代重擔一肩扛 ';
rows[2].href = 'today-center2-2.htm';
rows[2].attached=true;
rows[3].text = '快樂 知足 做好事 老人長壽密訣 ';
rows[3].href = 'today-center3.htm';
rows[4].text = '金鑽良緣60年 118對牽手領獎';
rows[4].href = 'today-center4.htm';
rows[5].text = '遛狗不留便 沙鹿公園提供器具';
rows[5].href = 'today-center5.htm';
rows[6].text = '胡志強帶頭 銀髮族談情說愛';
rows[6].href = 'today-center6.htm';
rows[7].text = '轟趴縱慾接龍 愛滋男86變38公斤暴瘦';
rows[7].href = 'today-center7.htm';
rows[8].text = '雜交派對 男同志肛裂 美眉罹性病、懷孕';
rows[8].href = 'today-center7-2.htm';
rows[8].attached=true;
rows[9].text = '偷窺少婦洗澡，被發現竟意圖性侵…娃大哭 嚇退色狼';
rows[9].href = 'today-center8.htm';
$o('center').rows = rows;

rows = new Array(11);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '入聯 與經濟 都辯';
rows[0].href = 'today-o1.htm';
rows[1].text = '幸福經濟怎麼做？';
rows[1].href = 'today-o2.htm';
rows[2].text = '＜李筱鋒專欄＞世上稀有的「國旗」';
rows[2].href = 'today-o3.htm';
rows[3].text = '挪威司機說：Taiwan！';
rows[3].href = 'today-o4.htm';
rows[4].text = '流感疫苗第一課';
rows[4].href = 'today-o5.htm';
rows[5].text = '含不含汞分開用';
rows[5].href = 'today-o6.htm';
rows[6].text = ' ＜台灣大戲院＞  漢奸屠夫vs.亂世豪門';
rows[6].href = 'today-o7.htm';
rows[7].text = '德國之音 發現台灣';
rows[7].href = 'today-o8.htm';
rows[8].text = '從港獨說起';
rows[8].href = 'today-o9.htm';
rows[9].text = '關中邏輯有問題';
rows[9].href = 'today-o10.htm';
rows[10].text = '今日漫畫｜稿約';
rows[10].href = 'today-o11.htm';
$o('o').rows = rows;

rows = new Array(10);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '坐電梯跌出娃娃車  男嬰被夾死 ';
rows[0].href = 'today-so1.htm';
rows[1].text = '警攔檢 驚見”移動軍火庫”';
rows[1].href = 'today-so2.htm';
rows[2].text = '黑牢的"藝"想世界 e路有得瞧';
rows[2].href = 'today-so3.htm';
rows[3].text = '"畫"說死囚劉煥榮 作品飆天價';
rows[3].href = 'today-so3-2.htm';
rows[3].attached=true;
rows[4].text = '與社會接軌 受刑人不想當米蟲';
rows[4].href = 'today-so3-3.htm';
rows[4].attached=true;
rows[5].text = '救摔跤同伴 雙被火車撞死';
rows[5].href = 'today-so4.htm';
rows[6].text = '金雞堂污健保 認罪換緩刑';
rows[6].href = 'today-so5.htm';
rows[7].text = '酒駕肇事 拖行機車4.5公里';
rows[7].href = 'today-so6.htm';
rows[8].text = '熟女劈兩男 同居男友自殘死';
rows[8].href = 'today-so7.htm';
rows[9].text = '老師涉假冒警察 向美容院借錢';
rows[9].href = 'today-so8.htm';
$o('so').rows = rows;

rows = new Array(14);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '國際油價飆漲 盤中破84美元';
rows[0].href = 'today-e1.htm';
rows[1].text = 'YouTube繁體中文版 下月上線';
rows[1].href = 'today-e2.htm';
rows[2].text = 'Goolge副總裁、網路之父 溫瑟夫19日來台演講';
rows[2].href = 'today-e3.htm';
rows[3].text = '勇於顛覆自己  溫瑟夫 擁護IPv6架構';
rows[3].href = 'today-e3-2.htm';
rows[3].attached=true;
rows[4].text = '今年第八次 中國調高存準率兩碼';
rows[4].href = 'today-e4.htm';
rows[5].text = '維京集團決收購北岩銀行';
rows[5].href = 'today-e5.htm';
rows[6].text = '世界華人婦女企管協會「華冠獎」開幕';
rows[6].href = 'today-e6.htm';
rows[7].text = '荷蘭盆栽近期輸台';
rows[7].href = 'today-e7.htm';
rows[8].text = '華南金董座林明成女兒明出閣';
rows[8].href = 'today-e8.htm';
rows[9].text = '赴菲投資 風險較中國低';
rows[9].href = 'today-e9.htm';
rows[10].text = '中韓搶進蘇比克灣 台商不再獨大';
rows[10].href = 'today-e9-2.htm';
rows[10].attached=true;
rows[11].text = '金融風暴十年後  菲、越變黑馬';
rows[11].href = 'today-e9-3.htm';
rows[11].attached=true;
rows[12].text = '女人天下 菲比尋常';
rows[12].href = 'today-e9-4.htm';
rows[12].attached=true;
rows[13].text = '吳玉霞  台菲交流的推手';
rows[13].href = 'today-e9-5.htm';
rows[13].attached=true;
$o('e').rows = rows;

rows = new Array(8);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '五角大廈報告／太空太陽能 美能源新戰略';
rows[0].href = 'today-int1.htm';
rows[1].text = '緬甸秋後算帳／鬍子三兄弟哥大被捕 國際關注';
rows[1].href = 'today-int2.htm';
rows[2].text = '挺軍政府集會 走路工八角美金';
rows[2].href = 'today-int2-2.htm';
rows[2].attached=true;
rows[3].text = '大選「脫」穎而出？波蘭婦女黨下險棋';
rows[3].href = 'today-int3.htm';
rows[4].text = '可穿式電腦 創意無限';
rows[4].href = 'today-int4.htm';
rows[5].text = '濫殺流浪貓犬 手段殘忍 ';
rows[5].href = 'today-int5.htm';
rows[6].text = '人體通訊技術 握手就能交換資訊';
rows[6].href = 'today-int6.htm';
rows[7].text = '《中英對照讀新聞》French woman steals from supermarket 3,500 times 法國女狂偷超市3500次';
rows[7].href = 'today-int7.htm';
$o('int').rows = rows;

rows = new Array(5);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '悠遊卡迷 砸200萬蒐集611版 ';
rows[0].href = 'today-taipei1.htm';
rows[1].text = '一卡凸遍北台 相約年底前';
rows[1].href = 'today-taipei2.htm';
rows[2].text = '綠營指控日勝生案 疑官商勾結';
rows[2].href = 'today-taipei3.htm';
rows[3].text = '公司派涉案 市府︰無法左右';
rows[3].href = 'today-taipei3-2.htm';
rows[3].attached=true;
rows[4].text = '秋意濃 憂鬱症易生憾事';
rows[4].href = 'today-taipei4.htm';
$o('taipei').rows = rows;

rows = new Array(17);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '國聯爭霸戰 洛磯2連勝';
rows[0].href = 'today-sp1.htm';
rows[1].text = '<曼谷公開賽>小詹爭后 對手不是大威';
rows[1].href = 'today-sp2.htm';
rows[2].text = '美聯冠軍戰 紅襪搶投采';
rows[2].href = 'today-sp3.htm';
rows[3].text = '紅襪門神 左右戰局';
rows[3].href = 'today-sp4.htm';
rows[4].text = '控球失準 沙巴西亞5局退場';
rows[4].href = 'today-sp5.htm';
rows[5].text = '老席稱讚 小卡歹勢';
rows[5].href = 'today-sp6.htm';
rows[6].text = '蛇來這套 洛磯不服輸';
rows[6].href = 'today-sp7.htm';
rows[7].text = '不當Men In Black 「衣」樣勇';
rows[7].href = 'today-sp7-2.htm';
rows[7].attached=true;
rows[8].text = '速球小子 最佳苦工 ';
rows[8].href = 'today-sp8.htm';
rows[9].text = '亞錦賽／羅德成瀨善久 擬先發對台';
rows[9].href = 'today-sp9.htm';
rows[10].text = '猛獅狂打 轟垮蛇';
rows[10].href = 'today-sp10.htm';
rows[11].text = '獅單局攻10分 創季後賽紀錄';
rows[11].href = 'today-sp10-2.htm';
rows[11].attached=true;
rows[12].text = '日職季後賽／林威助先發 火力未開';
rows[12].href = 'today-sp11.htm';
rows[13].text = '托瑞傳將留任？ 洋基總裁︰去留未定案';
rows[13].href = 'today-sp12.htm';
rows[14].text = '高中聯賽預賽 南北開打';
rows[14].href = 'today-sp13.htm';
rows[15].text = '淡水商工 來勢洶洶';
rows[15].href = 'today-sp13-2.htm';
rows[15].attached=true;
rows[16].text = '大帝出「撞」況  騎士虛驚';
rows[16].href = 'today-sp14.htm';
$o('sp').rows = rows;

rows = new Array(2);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '國宅人行道下陷 兩單位踢皮球';
rows[0].href = 'today-complain1.htm';
rows[1].text = '嘉市自強街燈移除 市府允近期改善';
rows[1].href = 'today-complain2.htm';
$o('complain').rows = rows;

rows = new Array(20);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '李安導演報失蹤！ 古早人不用手機 沒有伊媚兒 ';
rows[0].href = 'today-show1.htm';
rows[1].text = '孫協志把妹 10秒來電 曾之喬獵男    撒嬌耍ㄌㄨˊ功';
rows[1].href = 'today-show2.htm';
rows[2].text = '胸肌男強襲浴室 陳奕全裸遭搭訕';
rows[2].href = 'today-show3.htm';
rows[3].text = '祝釩剛明天勒戒 享受最後自由';
rows[3].href = 'today-show4.htm';
rows[4].text = '詹仁雄付陳孝萱 每月6萬贍養費？';
rows[4].href = 'today-show5.htm';
rows[5].text = '蘇慧倫憂鬱沒人追 幼齒男也OK';
rows[5].href = 'today-show6.htm';
rows[6].text = '倉木麻衣愛台灣 設計Logo秀熱情';
rows[6].href = 'today-show7.htm';
rows[7].text = '倉木麻衣 狂嗑海鮮好心情';
rows[7].href = 'today-show7-2.htm';
rows[7].attached=true;
rows[8].text = '森山直太朗染金髮 夜會女友人';
rows[8].href = 'today-show8.htm';
rows[9].text = '過希美緊黏杉浦太陽  沙耶子依偎達比修有';
rows[9].href = 'today-show9.htm';
rows[10].text = '唐禹哲脫離老媽掌握  辦房事苦學DIY';
rows[10].href = 'today-show10.htm';
rows[11].text = '仔仔美味走調 變臉不認逃兵';
rows[11].href = 'today-show11.htm';
rows[12].text = '奧蘭多夜店伸魔爪   夜路尬狗仔出車禍';
rows[12].href = 'today-show12.htm';
rows[13].text = '媚兒喜狂吃豐胸餅乾  維多莉亞祭出減肥餐';
rows[13].href = 'today-show13.htm';
rows[14].text = '鳳凰女領大獎︰演媽扮妻最棒';
rows[14].href = 'today-show14.htm';
rows[15].text = '設計美好生活';
rows[15].href = 'today-show15.htm';
rows[16].text = '設計美好生活';
rows[16].href = 'today-show16.htm';
rows[17].text = '黃仲崑露點 尬房思瑜酥胸';
rows[17].href = 'today-show17.htm';
rows[18].text = 'Hermes大開時尚窄門 擴張版圖';
rows[18].href = 'today-show18.htm';
rows[19].text = '關之琳&楊采妮 婚姻路坎坷';
rows[19].href = 'today-show19.htm';
$o('show').rows = rows;

rows = new Array(11);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '長昌北縣同台 強打蘇政績';
rows[0].href = 'today-fo1.htm';
rows[1].text = '推動台東觀光 馬支持設賭場';
rows[1].href = 'today-fo2.htm';
rows[2].text = '扁：明年520交棒謝 無庸置疑';
rows[2].href = 'today-fo3.htm';
rows[3].text = '重提監委 扁：不按國親建議';
rows[3].href = 'today-fo3-2.htm';
rows[3].attached=true;
rows[4].text = '《贏的策略》謝營走中道 智慧取勝';
rows[4].href = 'today-fo4.htm';
rows[5].text = '《贏的策略》馬軍拚生活 主攻經濟';
rows[5].href = 'today-fo5.htm';
rows[6].text = '總統府預算 泛藍鷹派揮刀猛砍';
rows[6].href = 'today-fo6.htm';
rows[7].text = '扁轟馬：笨蛋，不敢講台灣';
rows[7].href = 'today-fo7.htm';
rows[8].text = '謝嗆馬：我們不是豬狗 有得吃就好';
rows[8].href = 'today-fo7-2.htm';
rows[8].attached=true;
rows[9].text = '馬回批：哪個笨蛋 把經濟搞成這樣';
rows[9].href = 'today-fo7-3.htm';
rows[9].attached=true;
rows[10].text = '李：台灣總統大選 中國有屬意人選';
rows[10].href = 'today-fo8.htm';
$o('fo').rows = rows;

rows = new Array(2);
for (i=0; i<rows.length; i++)
  rows[i] = new Object();
rows[0].text = '《自由談》豈可不辯？';
rows[0].href = 'today-f1.htm';
rows[1].text = '《鏗鏘集》「紅軍」個「屁」呀，施明德！';
rows[1].href = 'today-f2.htm';
$o('c').rows = rows;

rows = new Array(2);   
for (i=0; i<rows.length; i++)
	rows[i] = new Object();
rows[0].text = '自由評論　→';
rows[0].subtable = 'c';
rows[0].href = 'today-s1.htm';
rows[1].text = '自由廣場　→';
rows[1].subtable = 'o';
rows[1].href = 'today-o1.htm';
$o("speech").rows = rows;

rows = new Array(4);
for (i=0; i<rows.length; i++)
	rows[i] = new Object();
rows[0].text = '大台北新聞→';
rows[0].subtable = 'taipei';
rows[0].href = 'today-taipei1.htm';
rows[1].text = '北部新聞　→';
rows[1].subtable = 'north';
rows[1].href = 'today-north1.htm';
rows[2].text = '中部新聞　→';
rows[2].subtable = 'center';
rows[2].href = 'today-center1.htm';
rows[3].text = '南部新聞　→';
rows[3].subtable = 'south';
rows[3].href = 'today-south1.htm';
$o("region").rows = rows;

rows = new Array(6);
for (i=0; i<rows.length; i++)
	rows[i] = new Object();
rows[0].text = '流行消費　→';
rows[0].subtable = 'fashion';
rows[0].href = 'today-fashion1.htm';
rows[1].text = '上班一族　→';
rows[1].subtable = 'work';
rows[1].href = 'today-work1.htm';
rows[2].text = '兩性異言堂→';
rows[2].subtable = 'gender';
rows[2].href = 'today-gender1.htm';
rows[3].text = '家庭親子　→';
rows[3].subtable = 'family';
rows[3].href = 'today-family1.htm';
rows[4].text = '自由副刊　→';
rows[4].subtable = 'article';
rows[4].href = 'today-article1.htm';
rows[5].text = '休閒旅遊　→';
rows[5].subtable = 'travel';
rows[5].href = 'today-travel1.htm';
$o("supplement").rows = rows;

//===========================
// 移除沒有rows的obj
//===========================
if (!false)
	$o("supplement").rows = null;

removedCount = 0;
tempObj = new Array();
for (i=0; i<obj.length; i++)
{
	if (obj[i].rows == null)
		removedCount++;
	else
	{
		obj[i].v_layer = i - removedCount;
		tempObj = tempObj.concat(new Array(obj[i]));
	}
}
obj = tempObj;

//===========================
// 建立menu
//===========================
document.write("<table width=130 cellpadding=1 bgcolor=#FFFFFF>");
for (i=0; i<obj.length; i++)
{
	if (obj[i].h_layer == 0) 
	{
		document.write("<tr>");
		document.write("  <td width=10 bgcolor=#E2C89B></td>");
		document.write("  <td background=/2007/images/img_auto/005/tb.gif><div style=font-size:13px;font-family:新細明體;color:#705B33;letter-spacing:2px;text-align:center;padding-top:4px id=menu_"+obj[i].name+" onmouseover=menuOver(this) onmouseout=menuOut() onclick=location.href='"+path+obj[i].href+"'>"+obj[i].title+"　<img src=/2007/images/img_auto/005/parr2.gif></div></td>");  
		document.write("</tr>");
	}
}
document.write("</table>");

//===========================
// 建立table
//===========================
for (i=0; i<obj.length; i++)
{
	if (obj[i].h_layer == 1)
		document.write("<table id=table_"+obj[i].name+" onmouseover=tableOver(this) onmouseout=tableOut() class=m_table2 cellspacing=1 cellpadding=3>");
	else
		document.write("<table id=table_"+obj[i].name+" onmouseover=tableOver(this) onmouseout=tableOut() class=m_table cellspacing=1 cellpadding=3>");
		
	for (var j=0; j<obj[i].rows.length; j++)
	{
		if (obj[i].rows[j].subtable == null)
		{
			if (obj[i].rows[j].attached)
				document.write("<tr><td onMouseOver=rowOver(this) onMouseOut=rowOut(this) onClick=location.href='"+path+obj[i].rows[j].href+"' style=padding-left:20px>&#187; "+obj[i].rows[j].text+"</td></tr>");
			else
				document.write("<tr><td onMouseOver=rowOver(this) onMouseOut=rowOut(this) onClick=location.href='"+path+obj[i].rows[j].href+"'><ul><li>"+obj[i].rows[j].text+"</li></ul></td></tr>");
		}
		else
			document.write("<tr><td id=submenu_"+obj[i].rows[j].subtable+" onMouseOver=submenuOver(this,"+i+","+j+") onClick=location.href='"+path+obj[i].rows[j].href+"'>"+obj[i].rows[j].text+"</td></tr>");
	}
	document.write("</table>");
}

$("table_region").style.width = 100;
$("table_speech").style.width = 100;

if (false)
	$("table_supplement").style.width = 100;

document.write('<div style="margin:0 0 3 2"><a href="http://video.libertytimes.com.tw/channel.php?channal=4" target="_blank" onFocus="this.blur()"><img src="/2007/images/trailer2.gif" border="0"></a></div>');
//===========================
// function
//===========================
var focus_menu, focus_submenu, focus_table,focus_table2;
var timer, protrude1;

function menuOver(menu)
{
	if (focus_menu != null) 
		hide();
	clearTimeout(timer);
		
	focus_menu = menu;
	focus_menu.className = "m_menuOver";
	showTable();
}

function menuOut()
{
	hiding();
}

function tableOver(table)
{
	clearTimeout(timer);
}

function tableOut()
{
	hiding();
}

function rowOver(row)
{
	row.className = "m_rowOver";
}

function rowOut(row)
{
	row.className = "";
}

function showTable()
{
	name = focus_menu.id;
	name = name.replace("menu_","");
	focus_table = $("table_"+name);

	defaultTop = topMargin + v_layerLength * $o(name).v_layer;
	protrude1 = defaultTop - document.body.scrollTop + focus_table.offsetHeight - document.body.clientHeight;
	if (protrude1 > 0)	
		focus_table.style.top = defaultTop-protrude1;
	else
		focus_table.style.top = defaultTop;
		
	focus_table.style.left = $o(name).h_layer*h_layerLength+leftMargin;		

	focus_table.style.visibility = "visible";
}

function hiding()
{	
	clearTimeout(timer);
	timer = setTimeout(hide,600);
}

function hide()
{
	focus_menu.className = "";
	focus_table.style.visibility = "hidden";
	focus_menu = null;
	focus_table = null;
	hide2();
}

function hide2()
{
	if (focus_submenu != null)
	{
		focus_submenu.className = "";
		focus_submenu = null;
	}
	if (focus_table2 != null)
	{
		focus_table2.style.visibility = "hidden";
		focus_table2 = null;
	}
}

function submenuOver(row,v_layer,v_layer2)
{
	hide2();
	focus_submenu = row;
	focus_submenu.className = "m_rowOver";
	showTable2(v_layer,v_layer2);
}

function showTable2(v_layer,v_layer2)
{
	name = focus_submenu.id;
	name = name.replace("submenu_","");
	focus_table2 = $("table_"+name);

	defaultTop = topMargin + v_layerLength * v_layer + v_layerLength2 * v_layer2;
	protrude2 = defaultTop - document.body.scrollTop + focus_table2.offsetHeight - document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			focus_table2.style.top = defaultTop-protrude1;
		else
			focus_table2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			focus_table2.style.top = defaultTop-protrude1;
		else
			focus_table2.style.top = defaultTop;
	}
	
	focus_table2.style.left = $o(name).h_layer*h_layerLength+leftMargin;		

	focus_table2.style.visibility = "visible";
}

function $o(s)
{
	var o;
	for (var i=0; i<obj.length; i++)
	{
		if (obj[i].name == s)
		{
			o = obj[i];
			break;
		}
	}
	return o;
}

function $(s)
{
	return document.getElementById(s);
}

function getLeftMargin()
{
	var left = Math.round((document.body.clientWidth - 960) / 2);  
	if (left < 10) left = 10;
	return left+100;
}

//==================
// 推薦
//==================
var btnClick;
function sendRate(form)
{
	if (btnClick=="vote" && !form.rate[0].checked && !form.rate[1].checked && !form.rate[2].checked)
	{
		alert("請選擇");
		return false;
	}
	else
	{
		window.open('','rateWindow','width=350,height=250,resizable=yes');
		form.btn.value = btnClick;
		return true;
	}
}

//==================
// 字型大小
//==================
function adjustFont(str)
{
	if (str == "big")
	{
		$('newsContent').className = "content_big";
		$('adjustBig').className = "adjustFontHide";
		$('adjustSmall').className = "adjustFontShow";
	}
	else if (str == "small")
	{
		$('newsContent').className = "content";
		$('adjustSmall').className = "adjustFontHide";
		$('adjustBig').className = "adjustFontShow";
	}
}

