    var slideTime = 700;
    var floatAtBottom = false;

    function sonadezi_floating_init()
    {
        //xMoveTo('floating_banner_right', 800 - (1024-screen.width), 0);
        xMoveTo('floating_banner_right', 1024 , 0);
        winOnResize(); // set initial position
        xAddEventListener(window, 'resize', winOnResize, false);
        xAddEventListener(window, 'scroll', winOnScroll, false);
    }
    function winOnResize() {
        checkScreenWidth();
        winOnScroll(); // initial slide
    }
    function winOnScroll() {
      var y = xScrollTop();
      if (floatAtBottom) {
        y += xClientHeight() - xHeight('floating_banner_left');
      }

      xSlideTo('floating_banner_left', (screen.width - (810-778) - 770)/2-115 , y, slideTime);
      xSlideTo('floating_banner_right', (screen.width - (810-778) + 800)/2+8, y, slideTime);
    }

    function checkScreenWidth()
    {
        if( screen.width <= 800 )
        {
            document.getElementById('floating_banner_left').style.display = 'none';
            document.getElementById('floating_banner_right').style.display = 'none';
        }
    }