function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&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 0) { pos = getTop() + initTop; } else { pos = getTop() + getHeight() + initTop; } if (pos > bottomLimit) pos = bottomLimit; if (pos < topLimit) pos = topLimit; interval = top - pos; top = top - interval / 3; obj.style.top = top + 'px'; window.setTimeout(function () { move(); }, 25); } function addEvent(obj, type, fn) { if (obj.addEventListener) { obj.addEventListener(type, fn, false); } else if (obj.attachEvent) { obj['e' + type + fn] = fn; obj[type + fn] = function() { obj['e' + type + fn](window.event); } obj.attachEvent('on' + type, obj[type + fn]); } } addEvent(window, 'load', function () { move(); }); }