/*¸õµ¡*/
/*var mySetMark = true;
var URL = "/BCP_PageDesign/F000_DM/D2009_05/event/ad19/default.html";
if( mySetMark == true )
{ window.open(URL,'','status=1, location=0, menubar=0, scrollbars=no, top=40, left=100, width=550px, height=315px'); }*/

/*»ä­·¤½§i*/
/*var mySetMark = true;
var URL = "http://tour.colatour.com.tw/typhoon/typhoon.htm";
if( mySetMark == true )
{ window.open(URL,'','status=1, location=0, menubar=0, scrollbars=yes, top=100, left=300, width=620px, height=500px'); }*/

/*¯B¤ô¦L*/
var NS; if (navigator.appName == 'Netscape') NS = true; else NS = false;
  function xhome_0movepic_1(n,w,h,x,y,px,py,mx,my)
  { this.name  = n;  this.W = w; this.H = h; this.X = x; this.Y =y; this.my = my; this.mx = mx;
    this.mytmp = my; this.mxtmp = mx; this.posX = px; this.PosY =py;}
  function xhome_0movepic_W() { var iw; if (NS) iw = innerWidth;  else iw = document.body.clientWidth;  return iw;}
  function xhome_0movepic_H() { var ih; if (NS) ih = innerHeight; else ih = document.body.clientHeight; return ih;}
  function xhome_0movepic_F1() {if (xhome_0movepic_C(xhome_0movepic.name)) xhome_0movepic_F(xhome_0movepic);}
  function xhome_0movepic_F(wm)
  { var barW=1; var barH=1;
    if (NS) { if (document.height > innerHeight) barW =0; if (document.width > innerWidth) barH = 0;}
    wm.posX = ((xhome_0movepic_W() - wm.W) - barW) * (wm.X/100);
    wm.posY = ((xhome_0movepic_H() - wm.H) - barH) * (wm.Y/100);
  }
  function xhome_0movepic_G(name)
  { var xb,wMark;
    if (NS) { xb = name; if (document.getElementById) {wMark = document.getElementById(xb);wMark=wMark.style;}
	                      else {wMark = document.layers[xb];}}
    else { wMark = eval('document.all.xhome_0movepic_area.style');}
  return wMark;}
  function xhome_0movepic_R1() {if (xhome_0movepic_C(xhome_0movepic.name)) xhome_0movepic_R(xhome_0movepic);}
  function xhome_0movepic_R(wm)
  { var wMark; var ih = xhome_0movepic_H(); var iw = xhome_0movepic_W();
    wMark = xhome_0movepic_G(wm.name);
	 wMark.width = wm.W; wMark.height = wm.H;
    wMark.left = wm.posX + (NS?pageXOffset:document.body.scrollLeft);
    wMark.top  = wm.posY + (NS?pageYOffset:document.body.scrollTop);
    if (wm.my   == 1 )  wm.posY++;       else if (wm.my == -1) wm.posY--;
    if (wm.posY  > ih)  wm.posY = -wm.H; else if (wm.posY < -wm.H) wm.posY = ih;
    if (wm.mx   == 1 )  wm.posX++;       else if (wm.mx == -1) wm.posX--;
    if (wm.posX  > iw)  wm.posX = -wm.W; else if (wm.posX < -wm.W) wm.posX = iw;
  }
  function xhome_0movepic_C(nn)
  { if ( document.getElementById && document.getElementById(nn)) return true;
    else if( NS && document.layers[nn] ) return true;
	     else if( NS == false && document.all[nn] ) return true;
             else return false;}
  function xhome_0movepic_MOut(o)  
  { if ( !o.name) o.name = o.id;
    xhome_0movepic.mx = xhome_0movepic.mxtmp;
    xhome_0movepic.my = xhome_0movepic.mytmp;}
  function xhome_0movepic_MOver(o)
  { if ( !o.name) o.name = o.id;
    xhome_0movepic.mx = 0;
    xhome_0movepic.my = 0;}
  var xhome_0movepic = new xhome_0movepic_1('xhome_0movepic_area',70,90,96,25,0,0,0,1);
  var FDiv = '<a href="/BCP_PageDesign/F000_DM/D2007_04/event/ad63/default21.html?ctype=B&cid=tf&oid=water01" target=_blank><img src="/BCP_PageDesign/F000_Product/F000_Portal/adbanner/bn-r74.gif" border="0"></a>';
  if (NS && ! document.getElementById)
	   { document.writeln("<layer name ='xhome_0movepic_area' id='xhome_0movepic_area' onMouseOver='xhome_0movepic_MOver(this)' onMouseOut='xhome_0movepic_MOut(this)'>");
        document.writeln(FDiv);document.writeln("</layer>");}
  else{ document.writeln("<div id='xhome_0movepic_area' style='position:absolute;visibility:visible' onMouseOver='xhome_0movepic_MOver(this)' onMouseOut='xhome_0movepic_MOut(this)'>");
        document.writeln(FDiv);document.writeln("</div>");}
  xhome_0movepic_F1();
  window.onresize=xhome_0movepic_F1;
  setInterval ("xhome_0movepic_R1()",50);