﻿ssn_glider = function(id, x, y, w, h) {
    var control = $("#" + id); 
    if (!control) return;  this.id = id; 
    
    var px = window.opera? 0: "px";
    
	this.x = x || 0;	if (x) control.css("left",this.x);
	this.y = y || 0;	if (y) control.css("top",this.y);
	if(w) control.width(w); if (h) control.height(h);
	
    $(window).scroll(function (){              
        control.animate({top:($(window).scrollTop()+this.y)+"px" },{queue: false, duration: 300});    
    }); 
}


