﻿var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
var pageTracker = _gat._getTracker("UA-7839221-1");
pageTracker._trackPageview();
} catch(err) {}

function mmLoadMenus() {
  if (window.mm_menu_0115211818_0) return;
  window.mm_menu_0115213559_0 = new Menu("root",125,18,"",12,"#666666","#FFFFFF","#DBDBDB","#999999","left","middle",3,0,200,-5,7,true,true,true,0,false,true);
  mm_menu_0115213559_0.addMenuItem("最新消息","location='../news/news.aspx?NTC=H'");
  mm_menu_0115213559_0.addMenuItem("招標資訊","location='../news/news.aspx?NTC=D'");
  mm_menu_0115213559_0.addMenuItem("人才招募","location='../news/news.aspx?NTC=P'");
   mm_menu_0115213559_0.hideOnMouseOut=true;
   mm_menu_0115213559_0.bgColor='#FFFFFF';
   mm_menu_0115213559_0.menuBorder=1;
   mm_menu_0115213559_0.menuLiteBgColor='#DBDBDB';
   mm_menu_0115213559_0.menuBorderBgColor='#DBDBDB';
        window.mm_menu_0116102557_0 = new Menu("root",125,18,"",12,"#666666","#FFFFFF","#DBDBDB","#999999","left","middle",3,0,200,-5,7,true,true,true,0,false,true);
  mm_menu_0116102557_0.addMenuItem("遺失物查詢","window.open('http://service.tra.gov.tw/tw/LostProperty/index.aspx', '_blank');");
  mm_menu_0116102557_0.addMenuItem("車票資訊","window.open('http://service.tra.gov.tw/tw/CP/11333/tickets-1.aspx', '_blank');");
  mm_menu_0116102557_0.addMenuItem("免費服務電話","window.open('http://service.tra.gov.tw/tw/CP/11338/hotline.aspx', '_blank');");
  mm_menu_0116102557_0.addMenuItem("團體票、專列預訂單","window.open('http://service.tra.gov.tw/tw/CP/11336/groupticket.aspx', '_blank');");
  mm_menu_0116102557_0.addMenuItem("語音操作說明","window.open('http://service.tra.gov.tw/tw/CP/11335/voiceticketing-1.aspx', '_blank');");
  mm_menu_0116102557_0.addMenuItem("常用表單下載","window.open('http://service.tra.gov.tw/tw/forms/index.aspx', '_blank');");
  mm_menu_0116102557_0.addMenuItem("行李托運、包裹資訊","window.open('http://service.tra.gov.tw/tw/CP/11345/freightservice-1.aspx', '_blank');");
  mm_menu_0116102557_0.addMenuItem("乘客安全指南","window.open('http://service.tra.gov.tw/tw/CP/11423/security-8.aspx', '_blank');");
  mm_menu_0116102557_0.addMenuItem("旅運設施無障礙空間","window.open('http://service.tra.gov.tw/tw/CP/11337/accessibility.aspx', '_blank');");
  mm_menu_0116102557_0.addMenuItem("常見問答","window.open('http://service.tra.gov.tw/TW/faq/UIFaq/', '_blank');");
  mm_menu_0116102557_0.addMenuItem("消費者資訊專區","location='../traveler/service_1.aspx'");
  mm_menu_0116102557_0.addMenuItem("本局商標授權","location='../traveler/service_5.aspx'");  
   mm_menu_0116102557_0.hideOnMouseOut=true;
   mm_menu_0116102557_0.bgColor='#FFFFFF';
   mm_menu_0116102557_0.menuBorder=1;
   mm_menu_0116102557_0.menuLiteBgColor='#DBDBDB';
   mm_menu_0116102557_0.menuBorderBgColor='#DBDBDB';
window.mm_menu_0116110210_0 = new Menu("root",125,18,"",12,"#666666","#FFFFFF","#DBDBDB","#999999","left","middle",3,0,200,-5,7,true,true,true,0,false,true);
  mm_menu_0116110210_0.addMenuItem("停車場標租","location='../rent/rent-1.aspx'");
  mm_menu_0116110210_0.addMenuItem("一般空地標租","location='../rent/rent-2.aspx'");
  mm_menu_0116110210_0.addMenuItem("倉庫標租","location='../rent/rent-3.aspx'");
  mm_menu_0116110210_0.addMenuItem("辦公室商場標租","location='../rent/rent-4.aspx'");
  mm_menu_0116110210_0.addMenuItem("會議室出租","location='../rent/rent-5.aspx'");
  mm_menu_0116110210_0.addMenuItem("基地台位置出租","location='../rent/rent-6.aspx'");
  mm_menu_0116110210_0.addMenuItem("廣告出租業務","location='../rent/rent-7.aspx'");
  mm_menu_0116110210_0.addMenuItem("不動產出售業務","location='../rent/rent-8.aspx'");
   mm_menu_0116110210_0.hideOnMouseOut=true;
   mm_menu_0116110210_0.bgColor='#FFFFFF';
   mm_menu_0116110210_0.menuBorder=1;
   mm_menu_0116110210_0.menuLiteBgColor='#DBDBDB';
   mm_menu_0116110210_0.menuBorderBgColor='#DBDBDB';
      window.mm_menu_0116110438_0 = new Menu("root",126,18,"",12,"#666666","#FFFFFF","#DBDBDB","#999999","left","middle",3,0,200,-5,7,true,true,true,0,false,true);
  mm_menu_0116110438_0.addMenuItem("運務段/車站專區","window.open('http://service.tra.gov.tw/tw/stations/stations.aspx', '_blank');");
  mm_menu_0116110438_0.addMenuItem("運務段/車站聯絡資訊","window.open('http://service.tra.gov.tw/tw/CP/11368/callstations-1.aspx', '_blank');");
  mm_menu_0116110438_0.addMenuItem("貨運及電話","window.open('http://service.tra.gov.tw/tw/CP/11343/freight-1.aspx', '_blank');");
  mm_menu_0116110438_0.addMenuItem("各站營業里程","window.open('http://service.tra.gov.tw/tw/CP/11366/mileages-1.aspx', '_blank');");
   mm_menu_0116110438_0.hideOnMouseOut=true;
   mm_menu_0116110438_0.bgColor='#FFFFFF';
   mm_menu_0116110438_0.menuBorder=1;
   mm_menu_0116110438_0.menuLiteBgColor='#DBDBDB';
   mm_menu_0116110438_0.menuBorderBgColor='#DBDBDB';
window.mm_menu_0116110627_0 = new Menu("root",125,18,"",12,"#666666","#FFFFFF","#DBDBDB","#999999","left","middle",3,0,200,-5,7,true,true,true,0,false,true);
  mm_menu_0116110627_0.addMenuItem("局長簡介","location='../intro/introduction-1.aspx'");
  mm_menu_0116110627_0.addMenuItem("臺鐵組織","location='../intro/introduction-2.aspx'");
  mm_menu_0116110627_0.addMenuItem("臺鐵大事紀","location='../intro/introduction-3.aspx'");
  mm_menu_0116110627_0.addMenuItem("臺鐵之展望","location='../intro/introduction-4.aspx'");
  mm_menu_0116110627_0.addMenuItem("臺灣鐵路路線建造史","location='../intro/introduction-5.aspx'");
  mm_menu_0116110627_0.addMenuItem("臺灣鐵路電訊","location='../intro/introduction-6.aspx'");
  mm_menu_0116110627_0.addMenuItem("影音專區","location='../intro/media_01low.aspx'");
mm_menu_0116110627_0.addMenuItem("鐵路改善工程專案","location='../intro/introduction-8.aspx'");
   mm_menu_0116110627_0.hideOnMouseOut=true;
   mm_menu_0116110627_0.bgColor='#FFFFFF';
   mm_menu_0116110627_0.menuBorder=1;
   mm_menu_0116110627_0.menuLiteBgColor='#DBDBDB';
   mm_menu_0116110627_0.menuBorderBgColor='#DBDBDB';
    window.mm_menu_0116110835_0 = new Menu("root",125,18,"",12,"#666666","#FFFFFF","#DBDBDB","#999999","left","middle",3,0,200,-5,7,true,true,true,0,false,true);
  mm_menu_0116110835_0.addMenuItem("政府公開資訊專區","location='../admin/admin-5.aspx'");
  mm_menu_0116110835_0.addMenuItem("為民服務專區","location='../admin/admin-6.aspx'");
  mm_menu_0116110835_0.addMenuItem("本局政府出版品","location='../admin/admin-3.aspx'");
  mm_menu_0116110835_0.addMenuItem("勞安專區","location='../admin/admin-4.aspx'");
   mm_menu_0116110835_0.hideOnMouseOut=true;
   mm_menu_0116110835_0.bgColor='#FFFFFF';
   mm_menu_0116110835_0.menuBorder=1;
   mm_menu_0116110835_0.menuLiteBgColor='#DBDBDB';
   mm_menu_0116110835_0.menuBorderBgColor='#DBDBDB';

mm_menu_0116110835_0.writeMenus();
} // mmLoadMenus()

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function ChangeTopMenuPic(value)
{
	document.getElementById("TopMenuPic_01").src = "pic/menu01.gif";
	document.getElementById("TopMenuPic_02").src = "pic/menu02.gif";
	document.getElementById("TopMenuPic_03").src = "pic/menu03.gif";
	document.getElementById("TopMenuPic_04").src = "pic/menu04.gif";
	document.getElementById("TopMenuPic_05").src = "pic/menu05.gif";
	document.getElementById("TopMenuPic_06").src = "pic/menu06.gif";
	
	
	if(value == 1)
	{
		document.getElementById("TopMenuPic_01").src = "pic/menu01_d.gif";
	}
	if(value == 2)
	{
		document.getElementById("TopMenuPic_02").src = "pic/menu02_d.gif";
	}
	if(value == 3)
	{
		document.getElementById("TopMenuPic_03").src = "pic/menu03_d.gif";
	}
	if(value == 4)
	{
		document.getElementById("TopMenuPic_04").src = "pic/menu04_d.gif";
	}
	if(value == 5)
	{
		document.getElementById("TopMenuPic_05").src = "pic/menu05_d.gif";
	}
	if(value == 6)
	{
		document.getElementById("TopMenuPic_06").src = "pic/menu06_d.gif";
	}
}

function MenuFocus(TableCell)
{
	TableCell.style.backgroundColor = "#FFFFFF";
	TableCell.style.color = "#FFFFFF";
}
		
function MenuBlur(TableCell,color)
{
	TableCell.style.backgroundColor = color;
	TableCell.style.color = "#FFFFFF";
}
		
function FocusLinkColor(Link)
{
	Link.style.color = "#000000";
}
		
function BlurLinkColor(Link)
{
	Link.style.color = "#000000";
}

function SetBackAll()
{
   if(document.getElementById('MenuFrame01') != null)
   {
		document.getElementById('MenuFrame01').style.display	=	"none";
   }
   if(document.getElementById('MenuFrame02') != null)
   {
		document.getElementById('MenuFrame02').style.display	=	"none";
   }
   if(document.getElementById('MenuFrame03') != null)
   {
		document.getElementById('MenuFrame03').style.display	=	"none";
   }
   if(document.getElementById('MenuFrame04') != null)
   {
		document.getElementById('MenuFrame04').style.display	=	"none";
   }
   if(document.getElementById('MenuFrame05') != null)
   {
		document.getElementById('MenuFrame05').style.display	=	"none";
   }
   if(document.getElementById('MenuFrame06') != null)
   {
		document.getElementById('MenuFrame06').style.display	=	"none";
   }
}

function SetPosition(v1,v2)
{
    SetBackAll();
	if(document.getElementById(v1))
	{
		document.getElementById(v1).style.display = '';
		if(navigator.userAgent.indexOf("Firefox") != -1)
		{
			document.getElementById(v1).style.top	=	document.getElementById(v2).offsetTop+110 +"px";
		}
		else if(navigator.userAgent.indexOf("MSIE 7.0") != -1)
		{
			document.getElementById(v1).style.top	=	document.getElementById(v2).offsetTop+110;
		}
		else
		{
			document.getElementById(v1).style.top	=	document.getElementById(v2).offsetTop+110;
		}
    }
}

function SetBack(v1)
{
	document.getElementById(v1).style.display = 'none';
}