var eb_shown_buzar = false;
var shii = 1;
var left;

function bshowme()
{
  if ( 9000 - document.body.clientWidth >0 )
  {
    setInterval("bscroll()", 35);
  }
    bscroll();

    bpositt();
    document.getElementById("buzar").style.visibility = "visible";
}

function bpositt()
{
    document.getElementById("buzar").style.left = 0;
    if (document.all)
    {
        document.getElementById("buzar").style.top = (document.body.scrollTop + document.body.clientHeight - 35);
    }
    else
    {
        document.getElementById("buzar").style.top = (document.body.clientHeight - 35);
    }
    document.getElementById("buzar").style.width = document.body.clientWidth ;
}

function sshoww()
{
    if ( ((document.body.clientWidth < 600 || document.body.clientHeight < 300) && document.body.clientWidth) ||  (eb_shown_buzar==true)  )
          {
             return;
          }

    if (window.attachEvent)
    {
        document.getElementById("buzar").style.position = "absolute";
        window.attachEvent("onscroll", bpositt);
        window.attachEvent("onresize", bpositt);
    }
    else
    {
        document.getElementById("buzar").style.position = "fixed";
        window.addEventListener("resize", bpositt, 1);
    }

    document.getElementById("buzzz").style.left = document.body.clientWidth - document.body.clientWidth * 0.70;

   setTimeout("bshowme()", 1000);

   eb_shown_buzar=true;
}


function bscroll()
{
    if  (document.all || document.getElementById)
    {
        left = parseInt(document.getElementById("buzzz").style.left);
        document.getElementById("buzzz").style.left = left - shii ;

        if ( (Math.abs(left) >= 9000 - document.body.clientWidth)   )
        {
            document.getElementById("buzzz").style.left = (-shii);
        }
    }
}

