var tipsliy; 
var theTopliy = 316; 
var oldliy = theTopliy;
var tipsliyheight = 260;
var height=1170;
function initFloatTips() {
  tipsliy = document.getElementById('divMenu');
  tipsstyle=document.getElementById('divMenu').style;
  
  if(document.body.clientWidth>1024)
      {
        tipsstyle.left = "984px";
      }
      else
      {
        tipsstyle.left = "852px";
      }
  
  moveTips();
};
function moveTips() {
  var ttliy=50;
  if (window.innerHeight) {
    posliy = window.pageYOffset;
  }
  else if (document.documentElement && document.documentElement.scrollTop) {
    posliy = document.documentElement.scrollTop;
  }
  else if (document.body) {
    posliy = document.body.scrollTop;
  }
  //posliy=posliy-tipsliy.offsetTop+theTopliy;
  posliy=posliy-tipsliy.offsetTop+theTopliy;
  posliy=tipsliy.offsetTop+posliy/10;
 
  if (posliy < theTopliy) posliy = theTopliy;
  if(tipsliy.offsetTop>315 && tipsliy.offsetTop<height-tipsliyheight-105)
  {
      if (posliy != oldliy) {
        tipsliy.style.top = posliy+"px";
        ttliy=10;
      }
        if(tipsliy.offsetTop>800)
        {
            tipsliy.style.top="799px";
        }
  }
 
  oldliy = posliy;
  setTimeout(moveTips,ttliy);
}