
var d = document;
var px = document.layers ? "" : "px";
function gel(id)
{
    return document.getElementById(id);
}
function getScrollHeight()
{
   var h = window.pageYOffset ||
           document.body.scrollTop ||
           document.documentElement.scrollTop;
           
   return h;
}
function findPosition(el) {
	var obj=document.getElementById(el);
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return Array(curleft, curtop);
}
function JSFX_FloatDiv(id)
{
    var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];

    var box_news;

	var pole;

    window[id + "_obj"] = el;

    if(d.layers)el.style=el;
        el.sP=function(ypx)
		{
            this.style.top = ypx+px;
        }
        el.sPLE=function(ypx)
		{
            this.style.left = ypx+px;
        }
       
		el.flt=function()
        {
			if (getScrollHeight() > findPosition('basketCheckPixel')[1])
			{
				this.cy = getScrollHeight() - findPosition('basketCheckPixel')[1];
			}
			else
			{
				//this.cy = findPosition('basketCheckPixel')[1];
				this.cy = 0;
			}
		
		



		//Y
		//document.getElementById('basketCheckPixel').innerHTML=this.cy
		this.sP(this.cy);

		
		//X
		this.cx= findPosition('basketCheckPixel')[0];
		//this.sPLE(this.cx-10);



            //this.sP(1000);
            setTimeout(this.id + "_obj.flt()", 50);
        }

        return el;
    }

