  function startFixed(){      fixedLAYER('shop','leftTop',396,0)      fixedLAYER('gaiyou','leftTop',488,0)  }  var ie= !!document.all  var n4= !!document.layers  var w3c=!!document.getElementById  var mac45     = navigator.userAgent.indexOf('MSIE 4.5; Mac_PowerPC')  if(document.layers)window.onresize=resizeFunc  function resizeFunc(e){location.reload()}  function iniFunc(){    if(ie&&!(mac45!=-1))window.onscroll = startFixed    startFixed()  }  var tid=new Array()  function fixedLAYER(layName,posString,offSetX,offSetY){    offSetX = parseInt(offSetX,10)    offSetY = parseInt(offSetY,10)    if( posString == 'rightTop' ){           if(ie) offLeft = document.body.clientWidth   + offSetX      else   offLeft = window.innerWidth           + offSetX      if(ie) offTop  =                               offSetY      else   offTop  =                               offSetY    }    else if( posString == 'rightBottom' ){      if(ie) offLeft = document.body.clientWidth   + offSetX      else   offLeft = window.innerWidth           + offSetX      if(ie) offTop  = document.body.clientHeight  + offSetY      else   offTop  = window.innerHeight          + offSetY    }    else if( posString == 'leftBottom' ){      if(ie) offLeft =                               offSetX      else   offLeft =                               offSetX      if(ie) offTop  = document.body.clientHeight  + offSetY      else   offTop  = window.innerHeight          + offSetY    }    else if( posString == 'center' ){      if(ie) offLeft = document.body.clientWidth/2 + offSetX      else   offLeft = window.innerWidth/2         + offSetX      if(ie) offTop  = document.body.clientHeight/2+ offSetY      else   offTop  = window.innerHeight/2        + offSetY    }    else {      if(ie) offLeft =                               offSetX      else   offLeft =                               offSetX      if(ie) offTop  =                               offSetY      else   offTop  =                               offSetY    }    offLeft = parseInt(offLeft)    offTop  = parseInt(offTop)    if(document.all){      var mx = parseInt(document.body.scrollLeft +offLeft)      var my = parseInt(document.body.scrollTop  +offTop)    } else {      var mx = parseInt(self.pageXOffset+offLeft)      var my = parseInt(self.pageYOffset+offTop)    }    moveLAYER(layName,mx,my)    //WinIE以外 opera n4用    if(!(ie&&!mac45) || opr){      clearTimeout(fixedLAYER[layName])      fixedLAYER[layName]=setTimeout("fixedLAYER('"+layName+"','"+posString                   +"','" +offSetX+"','"+offSetY+"')",100)    }  }  function moveLAYER(layName,x,y){            if(document.getElementById){         //Moz,NN6,IE5用        document.getElementById(layName).style.left=x        document.getElementById(layName).style.top=y      }      else if(document.all){        document.all(layName).style.pixelLeft=x    //IE4用        document.all(layName).style.pixelTop=y      }      else if(document.layers)        document.layers[layName].moveTo(x,y)                                                   //NN4用  }//----------var TimerIDfunction hideLAYER(idname){if(document.layers){top.index.main.document.layers[idname].visibility="hide"}else if(document.all){top.index.main.document.all(idname).style.visibility="hidden"}else if(document.getElementById){top.index.main.document.getElementById(idname).style.visibility="hidden"}}function timer1(){TimerID=setTimeout("hideLAYER('shop')",50)}function timer2(){TimerID=setTimeout("hideLAYER('gaiyou')",50)}function showLAYER(idname2){ if(document.layers){top.index.main.document.layers[idname2].visibility="show"}else if(document.all){top.index.main.document.all(idname2).style.visibility="visible"}else if(document.getElementById){top.index.main.document.getElementById(idname2).style.visibility="visible"}clearTimeout(TimerID)}function clearTimer()
{
  clearTimeout(TimerID);
}