  var num = 2;
  var iRFloating_ary = new Array(num);

  iRFloating_ary[0] = '';
  iRFloating_ary[1] = '<img border=0 src="edm/10-01-12/images/98759872.gif" width="90" height="200">';

  //¶Ã¼Æ¨ú2Åã¥Ü
  var r1 = Math.floor(Math.random() * num);
  var r2 = Math.floor(Math.random() * num);

  if(r1 == r2){
    r2 = (r1+1) % num;
  }

  adWidth = 60;
  adHeight = 100;
 
  document.write('<DIV id="iRFloating" name="iRFloating" style="position:absolute;top:265;left:960"><table><tr><td align="right" width="'+adWidth+'" valign="bottom"></td></tr><tr><td valign="top"><div id="iRFloating_R" name="iRFloating_L">'+iRFloating_ary[r1]+'</div></td></tr></table></DIV>');

  document.write('<DIV id="iRFloating2" name="iRFloating2" style="position:absolute;top:265;left:60"><table><tr><td align="left" valign="bottom"></td></tr><tr><td valign="top"><div id="iRFloating_L" name="iRFloating_L">'+iRFloating_ary[r2]+'</div></td></tr></table></DIV>');

  nowX = 0;
  nowY = 1000;
  nowX2 = 1000;
  nowY2 = 0;
  fad_style = document.getElementById("iRFloating").style;
  fad_style2 = document.getElementById("iRFloating2").style;
  wHeight = window.innerHeight;
  
  function zoom(t){
    obj = document.getElementById("iRFloating_"+t);
    if(obj.style.display=="block" || "" == obj.style.display)
    {
      obj.style.display="none";
    }
    else if(obj.style.display=="none")
    {
      obj.style.display="block";
    }
  }

  function fadIni()
  {
      innerWidth = document.body.clientWidth;
      innerHeight = document.body.clientHeight;
  
      edge = (innerWidth-800)/2;
  
      if( edge > adWidth )
      {
          posX = edge + 800;
      }
      else
      {
          posX = innerWidth-adWidth;
      }
  
      posY = 200;
  
      if( edge > adWidth )
      {
          posX2 = (innerWidth-840)/2 - adWidth - 5;
      }
      else
      {
          posX2 = 0;
      }
  
      posY2 = 200;
  }
  function fadRefresh()
  {
      offsetX = posX + document.body.scrollLeft - nowX;
      offsetY = posY + document.body.scrollTop - nowY;
      nowX += offsetX / 5;
      nowY += offsetY / 5;
      fad_style.left = nowX;
      fad_style.top = nowY;
  
      offsetX2 = posX2 + document.body.scrollLeft - nowX2;
      offsetY2 = posY2 + document.body.scrollTop - nowY2;
      nowX2 += offsetX2 / 5;
      nowY2 += offsetY2 / 5;
      fad_style2.left = nowX2;
      fad_style2.top = nowY2;
  
      floatID = setTimeout("fadRefresh()", 20 );
  }
  
  function fadStart()
  {
      fadIni();
      window.onresize=fadIni;
      fadRefresh();
  }
  
  window.onload=fadStart;

