var theURL;
function zoomIn() {
  newZoom= parseInt(oZoom.style.zoom)+10+'%'
      oZoom.style.zoom =newZoom;
  } 
function zoomOut() {
  newZoom= parseInt(oZoom.style.zoom)-10+'%'
      oZoom.style.zoom =newZoom;
  } 
 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_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function gotosite(site){if (site != ""){opener.document.location=site}}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
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_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 switchrow(obj,x,y){
	if(x==1){obj.className='memindexFA'+y;}
	else{obj.className='memindexFB'+y;}
}
function chrow(obj,x){
	if(x==1){obj.className='chrow';}
	else{obj.className='';}
}


//相簿--自動相簿與設定
var bannerAD=new Array();
var bannerADlink=new Array();
var bannerTitle=new Array();
var bannerTime=new Array();
var adNum=0;
var lock = true;
var preloadedimages=new Array()
   for (i=0;i<bannerAD.length;i++){
     preloadedimages[i]=new Image();
     preloadedimages[i].src=bannerAD[i];
   }
function changeTrans(k){
 if(k==1){
	theTimer=setTimeout("changeTrans(1)", 4000);
 }
 else if(k==2){
	bannerADrotator.filters[0].GradientSize = 0.5;
	bannerADrotator.filters[0].Motion ="forward";
	bannerADrotator.filters[0].WipeStyle = 0;
	theTimer=setTimeout("changeTrans(2)", 4000);
 }
  else if(k==3){
	bannerADrotator.filters[0].StretchStyle = "PUSH";
	theTimer=setTimeout("changeTrans(3)", 4000);
}
 else if(k==4){
	bannerADrotator.filters[0].overlap = 1.0;
	theTimer=setTimeout("changeTrans(4)", 4000);
	}
	bannerADrotator.filters[0].Apply();		
	if(adNum<bannerAD.length-1)adNum++;
    else adNum=0;
	document.images.bannerADrotator.src=bannerAD[adNum];
    document.images.bannerADrotator.alt=bannerTitle[adNum];
    document.getElementById('cmlname').innerText=bannerTitle[adNum]; 
	bannerADrotator.filters[0].Play(); 
}
function setTransition(){
   if (document.all)
      bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
	  bannerADrotator.filters.revealTrans.stop(); 
	  bannerADrotator.filters.revealTrans.apply();
}
function playTransition(){
   if (document.all)
      bannerADrotator.filters.revealTrans.play();
}
function stopTransition(){
   if (document.all)
      bannerADrotator.filters.revealTrans.stop();
}
function autoAd(n){
if(n==1){
   if(adNum<bannerAD.length-1)adNum++;
      else adNum=0;
   setTransition();
   document.images.bannerADrotator.src=bannerAD[adNum];
   document.getElementById('cmlname').innerText=bannerTitle[adNum];
   document.images.bannerADrotator.alt=bannerTitle[adNum];
   <!--document.getElementById('cmltime').innerText=bannerTime[adNum];-->
   playTransition();
   theTimer=setTimeout("autoAd(1)", 3000);
   }
else if(n==2){
	  if(adNum<bannerAD.length-1)adNum++;
      else adNum=0;
   setTransition();
   document.images.bannerADrotator.src=bannerAD[adNum];
   document.images.bannerADrotator.alt=bannerTitle[adNum];
   document.getElementById('cmlname').innerText=bannerTitle[adNum];
   playTransition();
   theTimer=setTimeout("autoAd(2)", 4000);
	}
}
function jump2url(){
   jumpUrl=bannerADlink[adNum];
   jumpTarget='_self';
   if (jumpUrl != ''){
      if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
      else location.href=jumpUrl;
   }
}
function displayBannerMsg(n) {
if(n==1){
   document.getElementById('cmlname').innerText=bannerTitle[adNum];
   <!--document.getElementById('cmltime').innerText=bannerTime[adNum];-->
   document.returnValue = true;
  }
else if(n==2){
   document.getElementById('cmlname').innerText=bannerTitle[adNum];
   document.getElementById('bannerADrotator').alt=bannerTitle[adNum];
   document.returnValue = true;
  }
}
function displayStatusMsg() { 
   window.status='瀏覽'+bannerTitle[adNum];
   document.returnValue = true;
}
//相簿--手動相簿子功能
function backward(n){
if(n==1){
  if (adNum>0)adNum--;
  else adNum=bannerAD.length-1;
  setTransition();
  document.images.bannerADrotator.src=bannerAD[adNum];
  playTransition();
  displayBannerMsg(1);
  displayStatusMsg();
  }
  else if(n==2){
  if (adNum>0)adNum--;
  else adNum=bannerAD.length-1;
  setTransition();
  document.images.bannerADrotator.src=bannerAD[adNum];
  playTransition();
  displayBannerMsg(2);
  }
  else if(n==3){
  if (adNum>0)adNum--;
  else adNum=bannerAD.length-1;
  bannerADrotator.filters[0].Apply();
  document.images.bannerADrotator.src=bannerAD[adNum];
  bannerADrotator.filters[0].Play();
  displayBannerMsg(2);
  }
}
function forward(n){
if(n==1){
  if (adNum<bannerAD.length-1){adNum++;}
  else if(adNum=bannerAD.length-1) {adNum=0;}
  setTransition();
  document.images.bannerADrotator.src=bannerAD[adNum];
  playTransition();
  displayBannerMsg(1);
  displayStatusMsg();
  }
else if(n==2){
  if (adNum<bannerAD.length-1){adNum++;}
  else if(adNum=bannerAD.length-1) {adNum=0;}
  setTransition();
  document.images.bannerADrotator.src=bannerAD[adNum];
  playTransition();
  displayBannerMsg(2);
  }
else if(n==3){
  if (adNum<bannerAD.length-1){adNum++;}
  else if(adNum=bannerAD.length-1) {adNum=0;}
  bannerADrotator.filters[0].Apply();
  document.images.bannerADrotator.src=bannerAD[adNum];
  bannerADrotator.filters[0].Play();
  displayBannerMsg(2);
  }
}
function ssplay(){
	document.images.splay.src="images/but_playon.gif";
	document.images.spause.src="images/but_pauseoff.gif";
	document.images.sstop.src="images/but_stopoff.gif";
	}
function adpause(n){
if(n==1){
        if (lock == true) {
        lock = false;
        clearTimeout(theTimer);
        stopTransition();
        document.images.sildemanu.src="images/slidemanu2.gif";
        document.images.sildemanu.alt="開始自動播放";
		document.getElementById('pauselink').alt="開始自動播放";
		document.getElementById('pauselink').title="開始自動播放";
        }
        else if (lock == false) {
        lock = true;
        document.images.sildemanu.src="images/slidemanu.gif";
        document.images.sildemanu.alt="暫停自動播放";
		document.getElementById('pauselink').alt="暫停自動播放";
		document.getElementById('pauselink').title="暫停自動播放";
        theTimer=setTimeout("autoAd(1)", 4000);
        if (adNum<bannerAD.length-1){adNum++;}
        else if(adNum=bannerAD.length-1) {adNum=0;}
        setTransition();
        document.images.bannerADrotator.src=bannerAD[adNum];
        playTransition();
        displayBannerMsg(1);
        displayStatusMsg();
        }
	}
else if(n==2){
	    clearTimeout(theTimer);
        stopTransition();
      	document.images.splay.src="images/but_playoff.gif";
	    document.images.spause.src="images/but_pauseon.gif";
	    document.images.sstop.src="images/but_stopoff.gif";
    }
else if(n==3){
	    clearTimeout(theTimer);
         bannerADrotator.filters[0].stop();
      	document.images.splay.src="images/but_playoff.gif";
	    document.images.spause.src="images/but_pauseon.gif";
	    document.images.sstop.src="images/but_stopoff.gif";
    }
}
function adstop(n){
if(n==2){
	clearTimeout(theTimer);
    stopTransition();
	document.images.bannerADrotator.src=bannerAD[1];
    document.getElementById('cmlname').innerText=bannerTitle[1];
    document.getElementById('bannerADrotator').alt=bannerTitle[1];
	document.images.splay.src="images/but_playoff.gif";
	document.images.spause.src="images/but_pauseoff.gif";
	document.images.sstop.src="images/but_stopon.gif";
	}
else if(n==3){
	clearTimeout(theTimer);
    bannerADrotator.filters[0].stop();
	document.images.bannerADrotator.src=bannerAD[1];
    document.getElementById('cmlname').innerText=bannerTitle[1];
    document.getElementById('bannerADrotator').alt=bannerTitle[1];
	document.images.splay.src="images/but_playoff.gif";
	document.images.spause.src="images/but_pauseoff.gif";
	document.images.sstop.src="images/but_stopon.gif";
	}
}
function adswitch(t){
if(t != ""){
	document.images.bannerADrotator.src=bannerAD[t];
    document.getElementById('cmlname').innerText=bannerTitle[t];
    document.getElementById('bannerADrotator').alt=bannerTitle[t];
	this.className='picon';
	location.href="#slidertop";
    }
else if(t==0){
	document.images.bannerADrotator.src=bannerAD[0];
    document.getElementById('cmlname').innerText=bannerTitle[0];
    document.getElementById('bannerADrotator').alt=bannerTitle[0];
	this.className='picon';
	location.href="#slidertop";
	}
	}

//週聯播橫向捲動功能
var weektheme=new Array();
var weekthemelink=new Array();
var weekthemeTitle=new Array();
var weekthemeNum=0;

function initweek(n){
document.getElementById('weekimg'+n).src=weektheme[n-1];
document.getElementById('weekimg'+n).alt=weekthemeTitle[n-1];
document.getElementById('weekurl'+n).href=weekthemelink[n-1];
}
function weekchange(n){
if(n==1){
	weekimg1.filters[0].Duration = 0.1;
	weekimg2.filters[0].Duration = 0.2;
	weekimg3.filters[0].Duration = 0.5;}
else {
	weekimg1.filters[0].Duration = 0.5;
	weekimg2.filters[0].Duration = 0.2;
	weekimg3.filters[0].Duration = 0.1;}
	weekimg1.filters[0].Apply();
	weekimg1.filters[0].SlideStyle = "PUSH";
	weekimg1.filters[0].Play();
	weekimg2.filters[0].Apply();
	weekimg2.filters[0].SlideStyle = "PUSH";
	weekimg2.filters[0].Play();
	weekimg3.filters[0].Apply();
	weekimg3.filters[0].SlideStyle = "PUSH";
	weekimg3.filters[0].Play();
}
function weekback(){
 if (weekthemeNum<=weektheme.length-3 && weekthemeNum>=2) {
    weekthemeNum--;
	document.images.weekimg1.src=weektheme[weekthemeNum];
	document.images.weekimg1.alt=weekthemeTitle[weekthemeNum];
	document.getElementById('weekurl1').href=weekthemelink[weekthemeNum];
	document.images.weekimg2.src=weektheme[weekthemeNum+1];
	document.images.weekimg2.alt=weekthemeTitle[weekthemeNum+1];
	document.getElementById('weekurl2').href=weekthemelink[weekthemeNum+1];
	document.images.weekimg3.src=weektheme[weekthemeNum+2];
	document.images.weekimg3.alt=weekthemeTitle[weekthemeNum+2];
	document.getElementById('weekurl3').href=weekthemelink[weekthemeNum+2];
    weekchange(2);}
   else if (document.images.weekimg3.src=weektheme[2]) {
   weekthemeNum=0;
	document.images.weekimg1.src=weektheme[0];
	document.images.weekimg1.alt=weekthemeTitle[0];
	document.getElementById('weekurl1').href=weekthemelink[0];
	document.images.weekimg2.src=weektheme[1];
	document.images.weekimg2.alt=weekthemeTitle[1];
	document.getElementById('weekurl2').href=weekthemelink[1];
	document.images.weekimg3.src=weektheme[2];
	document.images.weekimg3.alt=weekthemeTitle[2];
	document.getElementById('weekurl3').href=weekthemelink[2];
    MM_popupMsg('已到第1筆資料了哦！');}
}
function weekfore(){
  if (weekthemeNum<weektheme.length-3){
    weekthemeNum++;
	document.images.weekimg1.src=weektheme[weekthemeNum];
	document.images.weekimg1.alt=weekthemeTitle[weekthemeNum];
	document.getElementById('weekurl1').href=weekthemelink[weekthemeNum];
	document.images.weekimg2.src=weektheme[weekthemeNum+1];
	document.images.weekimg2.alt=weekthemeTitle[weekthemeNum+1];
	document.getElementById('weekurl2').href=weekthemelink[weekthemeNum+1];
	document.images.weekimg3.src=weektheme[weekthemeNum+2];
	document.images.weekimg3.alt=weekthemeTitle[weekthemeNum+2];
	document.getElementById('weekurl3').href=weekthemelink[weekthemeNum+2];
    weekchange(1);}
  else if(document.images.weekimg3.src=weektheme[weektheme.length-1]) {
   weekthemeNum=weektheme.length-3;
	document.images.weekimg1.src=weektheme[weektheme.length-3];
	document.images.weekimg1.alt=weekthemeTitle[weektheme.length-3];
	document.getElementById('weekurl1').href=weekthemelink[weekthemeNum-3];
	document.images.weekimg2.src=weektheme[weektheme.length-2];
	document.images.weekimg2.alt=weekthemeTitle[weektheme.length-2];
	document.getElementById('weekurl2').href=weekthemelink[weekthemeNum-2];
    document.images.weekimg3.src=weektheme[weektheme.length-1];
    document.images.weekimg3.alt=weekthemeTitle[weektheme.length-1];
	document.getElementById('weekurl3').href=weekthemelink[weekthemeNum-1];
    MM_popupMsg('已是最後1筆資料了哦！');}
}

//地圖顯示功能
function submap(imgobject,imgurl){
	imgobject.filters[0].Apply();
	imgobject.src = imgurl;
	imgobject.filters[0].Play();
}
// 會滑動的主題選單(Outlook Like)
function MFXinitMenu(){
IE = document.all ? 1:0;
NN = document.layers ? 1:0;
HIDDEN = (NN) ? 'hide' : 'hidden';
VISIBLE = (NN) ? 'show' : 'visible';
myLayer=new Array();
mySpeed=10;
subLeft=0;
closes=true;
myLayer[0]=(NN) ? document.MFX0 : document.all.MFX0.style;
myLayer[1]=(NN) ? document.MFX1 : document.all.MFX1.style;
myLayer[2]=(NN) ? document.MFX2 : document.all.MFX2.style;
myLayer[3]=(NN) ? document.MFX3 : document.all.MFX3.style;
myLayer[4]=(NN) ? document.MFX4 : document.all.MFX4.style;
myLayer[5]=(NN) ? document.MFX5 : document.all.MFX5.style;
running=false;
whichOpen=-1;
lastMain=myLayer.length-2;
MFXmain=new Array();
for(i=0; i<myLayer.length; i++){
mainORsub= i % 2;
MFXmain[i] = mainORsub ? 0:1;
}
myTop=new Array();
myLeft=new Array();
myHeight=new Array();
myWidth=new Array();
mySlide=new Array();
for(i=0; i<myLayer.length; i++){
if(NN&&MFXmain[i]){
if(i==0){
myTop[i]=myLayer[i].top;
myLeft[i]=myLayer[i].left;}
else{
myLeft[i]=myLeft[i-2];
myTop[i]=myTop[i-2]+myHeight[i-2];}
myHeight[i]=myLayer[i].clip.height;
myWidth[i]=myLayer[i].clip.width;
myLayer[i].left=myLeft[i];
myLayer[i].top=myTop[i];
myLayer[i].visibility=VISIBLE;}
if(NN&&!MFXmain[i]){
myTop[i]=myTop[i-1]+myHeight[i-1];
myLeft[i]=myLeft[i-1];
myHeight[i]=myLayer[i].clip.height;
myWidth[i]=myLayer[i].clip.width;
mySlide[i]=myTop[i]+myHeight[i];
myLayer[i].left=myLeft[i]+subLeft;
myLayer[i].top=myTop[i];}
if(IE&&MFXmain[i]){
if(i==0){
myLeft[i]=myLayer[i].pixelLeft;
myTop[i]=myLayer[i].pixelTop;}
else{
myLeft[i]=myLeft[i-2];
myTop[i]=myTop[i-2]+myHeight[i-2];}
myHeight[i]=myLayer[i].pixelHeight;
myWidth[i]=myLayer[i].pixelWidth;
myLayer[i].left=myLeft[i];
myLayer[i].top=myTop[i];
myLayer[i].visibility=VISIBLE;}
if(IE&&!MFXmain[i]){
myTop[i]=myTop[i-1]+myHeight[i-1];
myLeft[i]=myLeft[i-1];
myHeight[i]=myLayer[i].pixelHeight;
myWidth[i]=myLayer[i].pixelWidth;
myLayer[i].pixelLeft=myLeft[i]+subLeft;
myLayer[i].pixelTop=myTop[i];
mySlide[i]=myTop[i]+myHeight[i];
}
}
}
function MFXrunMenu(myName,newspeed){
ieStep=0;
thereS=false;
thereC=false;
if(newspeed>0){mySpeed=newspeed;}
first=myName;
if(whichOpen==-1&&!running&&MFXmain[myName]&&!(whichOpen==myName)){
running=true;
if(NN){
myLayer[myName+1].clip.height=0;
myLayer[myName+1].visibility=VISIBLE;
}
if(IE){
myLayer[myName+1].clip= "rect(" + ("auto") +" "+ ("auto") +" "+ (0) +" "+ ("auto") +")";
myLayer[myName+1].visibility=VISIBLE;
}
MFXopenMenuS(myName);
MFXopenMenuC(myName);
}
if(whichOpen>=0&&!running&&!(whichOpen==myName)){
running=true;
second=whichOpen;
ieStep1=myHeight[second+1];
thereCS=false;
thereCC=false;
MFXcloseMenuS(second);
MFXcloseMenuC(second);
}
if(whichOpen>=0&&!running&&whichOpen==myName&&closes){
running=true;
second=whichOpen;
ieStep1=myHeight[second+1];
thereCS=false;
thereCC=false;
MFXcloseMenuS(second);
MFXcloseMenuC(second);
	}
}
function MFXstopCloseS(myName){
running=false;
thereCS=true;
if(closes&&first==whichOpen){whichOpen=-1;}
else{whichOpen=-1;
MFXrunMenu(first);
}
}
function MFXstopOpenS(myName){
running=false;
thereS=true;
if(IE){myLayer[myName+1].clip= "rect(" + ("auto") +" "+ ("auto") +" "+ ("auto") +" "+ ("auto") +")";}
whichOpen=myName;
}
function MFXopenMenuS(myName){
myStep=mySpeed;
if(NN&&!thereS&&!(first==lastMain)){
if(myLayer[first+2].top+myStep>mySlide[first+1]){
myStep=mySlide[first+1]-myLayer[first+2].top;
}
for(i=first+2; i<myLayer.length; i+=2){
myLayer[i].top+=myStep;
}
if(myLayer[first+2].top==mySlide[first+1]){
MFXstopOpenS(first)
}
if(running)setTimeout('MFXopenMenuS(first)',10);
}
if(IE&&!thereS&&!(first==lastMain)){
if(myLayer[first+2].pixelTop+myStep>mySlide[first+1]){
myStep=mySlide[first+1]-myLayer[first+2].pixelTop;
}
for(i=first+2; i<myLayer.length; i+=2){

myLayer[i].pixelTop+=myStep;
}
if(myLayer[first+2].pixelTop==mySlide[first+1]){
MFXstopOpenS(first)
}
if(running)setTimeout('MFXopenMenuS(first)',10);
}
}
function MFXopenMenuC(myName){
myStep=mySpeed;
if(NN&&!thereC){
if ((myLayer[first+1].clip.height+myStep)>myHeight[first+1]){
myLayer[first+1].clip.height=myHeight[first+1]
}
if(myLayer[first+1].clip.height==myHeight[first+1]){
thereC=true;
whichOpen=first;
MFXstopOpenS(first)

}else{
myLayer[first+1].clip.height+=myStep;

}
if(running)setTimeout('MFXopenMenuC(first)',10);
}
if(IE&&!thereC){
ieStep+=myStep;
myLayer[myName+1].clip= "rect(" + ("auto") +" "+ ("auto") +" "+ (ieStep) +" "+ ("auto") +")";

if(ieStep>=myHeight[first+1]){
thereC=true;
whichOpen=first;
MFXstopOpenS(first)
}
if(running)setTimeout('MFXopenMenuC(first)',10);
}
}
function MFXcloseMenuS(myName){
myStep=mySpeed;
if(NN&&!thereCS&&!(second==lastMain)){
if(myLayer[second+2].top-myStep<myTop[second+2]){
myStep=myLayer[second+2].top-myTop[second+2];
}
for(i=second+2; i<myLayer.length; i+=2){
myLayer[i].top-=myStep;

}
if(myLayer[second+2].top==myTop[second+2]){
MFXstopCloseS(second);
}
if(running)setTimeout('MFXcloseMenuS(second)',10);
}
if(IE&&!thereCS&&!(second==lastMain)){
if(myLayer[second+2].pixelTop-myStep<myTop[second+2]){
myStep=myLayer[second+2].pixelTop-myTop[second+2];
}
for(i=second+2; i<myLayer.length; i+=2){
myLayer[i].pixelTop-=myStep;

}
if(myLayer[second+2].pixelTop==myTop[second+2]){
MFXstopCloseS(second);
}
if(running)setTimeout('MFXcloseMenuS(second)',10);
}
}
function MFXcloseMenuC(myName){
myStep=-mySpeed;
ieStep1-=mySpeed;
if(NN&&!thereCC){
if ((myLayer[second+1].clip.bottom+myStep)<0){
myLayer[second+1].clip.bottom=0;
}
if(myLayer[second+1].clip.bottom==0){
thereCC=true;

if(second==lastMain)MFXstopCloseS(second);
}else{
myLayer[second+1].clip.bottom+=myStep;

}
if(running)setTimeout('MFXcloseMenuC(second)',10);
}
if(IE&&!thereCC){
if(ieStep1<=0){
myLayer[myName+1].clip= "rect(" + ("auto") +" "+ ("auto") +" "+ (0) +" "+ ("auto") +")";
thereCC=true;
if(second==lastMain)MFXstopCloseS(second);
}else{
myLayer[myName+1].clip= "rect(" + ("auto") +" "+ ("auto") +" "+ (ieStep1) +" "+ ("auto") +")";

}
if(running)setTimeout('MFXcloseMenuC(second)',10);
}
}

//換圖
function initswitch(){
	document.getElementById('recover').value=1;
	document.getElementById('imgselect1').className='picon';
}

function imgswitch(n){
	var k=document.getElementById('recover').value;
	var iurl=window.event.srcElement.src;
	var itext=window.event.srcElement.alt;
	document.getElementById('imgselect'+k).className='';
	document.getElementById('changeimg').src=iurl;
	document.getElementById('changetext').innerText=itext;
	window.event.srcElement.className='picon';
	document.getElementById('recover').value=n;
}

//模擬多層選項
function CloseClicked()
	{window.returnValue = '';
	window.close()	}
	
var dropShow=false;
var currentID;
function dropdown(el){
if(dropShow){
dropFadeOut()
}else{
currentID=el
el.style.visibility="visible"
dropFadeIn()
}
}
function dropFadeIn(){
if(currentID.filters.alpha.opacity<100){
currentID.filters.alpha.opacity+=20
fadeTimer=setTimeout("dropFadeIn()",50)
}else{
dropShow=true
clearTimeout(fadeTimer)
}
}
function dropFadeOut(){
if(currentID.filters.alpha.opacity>0){
clearTimeout(fadeTimer)
currentID.filters.alpha.opacity-=20
fadeTimer=setTimeout("dropFadeOut()",50)
}else{
dropShow=false
currentID.style.visibility="hidden"
}
}
function dropdownHide(){
if(dropShow){
dropFadeOut()
dropShow=false
}
}
function hiLight(el){
if(dropShow){
for(i=0;i<el.parentElement.childNodes.length;i++){
el.parentElement.childNodes(i).className="link_record0"
}
el.className="link_record1"
}
}
function mainLight(el,x){
if(x==1){el.className="link_record1";}
else el.className="link_record0";
}
function subLight(el,x){
if(x==1){el.className="link_subrecord1";}
else el.className="link_subrecord0";
}
function CheckMe(el){
el.parentElement.parentElement.childNodes(0).childNodes(0).childNodes(0).childNodes(0).childNodes(0).childNodes(0).innerHTML=el.innerHTML
}
document.onclick=dropdownHide;

//新聞隨顯圖
function showbox(d,N){
	var menu=document.all.boxContainer;
	var newX = window.event.x-200*N + document.body.scrollLeft;
	var newY = window.event.y-200+ document.body.scrollTop;
  if (menu.style.display == "")  {menu.style.display = "none" }
  else {menu.style.display = "";menu.style.pixelLeft = newX;menu.style.pixelTop = newY;}
  document.getElementById("detail").innerHTML='<img src='+d+' >';
  boxContainer.style.display="";
}

function closed1() {
document.all.boxContainer.style.display="none"
}




