function initEcAd(LName,RName) { document.all.NowAd_left.style.posTop = -100; document.all.NowAd_left.style.visibility = 'visible'; document.all.NowAd_left.style.position = 'absolute'; document.all.NowAd_right.style.posTop = -100; document.all.NowAd_right.style.visibility = 'visible'; document.all.NowAd_right.style.position = 'absolute'; MoveLeftLayer(LName); MoveRightLayer(RName); } function MoveLeftLayer(LName) { var x = 5; var y = 50; LeftName=LName; eval("var diff = (document.body.scrollTop + y - document.all." + LeftName + ".style.posTop)*.40"); var y = document.body.scrollTop + y - diff; eval("document.all." + LeftName + ".style.posTop = y"); eval("document.all." + LeftName + ".style.posLeft = x"); setTimeout("MoveLeftLayer(LeftName);", 20); } function MoveRightLayer(RName) { var x = 5; var y = 50; RightName=RName; eval("var diff = (document.body.scrollTop + y - document.all." + RightName + ".style.posTop)*.40"); var y = document.body.scrollTop + y - diff; eval("document.all." + RightName + ".style.posTop = y"); eval("document.all." + RightName + ".style.posRight = x"); setTimeout("MoveRightLayer(RightName);", 20); } if (window.screen){ var widths = screen.width; var imgw=80; var imgh=480; var display=1; if(widths<835){ display=0 imgw=40; imgh=240; } } var str=''; if (display==1){ str="¹Ø±Õ

" +"¹Ø±Õ
"; } document.write(str); initEcAd('NowAd_left','NowAd_right'); document.write("
¹Ø±Õ
");var xPos = 20; var yPos = document.body.clientHeight; var step = 1; var delay = 30; var height = 0; var Hoffset = 0; var Woffset = 0; var yon = 0; var xon = 0; var pause = true; var interval; img.style.top = yPos; function changePos() { width = document.body.clientWidth; height = document.body.clientHeight; Hoffset = img.offsetHeight; Woffset = img.offsetWidth; img.style.left = xPos + document.body.scrollLeft; img.style.top = yPos + document.body.scrollTop; if (yon) { yPos = yPos + step; } else { yPos = yPos - step; } if (yPos < 0) { yon = 1; yPos = 0; } if (yPos >= (height - Hoffset)) { yon = 0; yPos = (height - Hoffset); } if (xon) { xPos = xPos + step; } else { xPos = xPos - step; } if (xPos < 0) { xon = 1; xPos = 0; } if (xPos >= (width - Woffset)) { xon = 0; xPos = (width - Woffset); } } function start() { img.visibility = 'visible'; interval = setInterval('changePos()', delay); } start();