window.onscroll = function()
{
var c = document.getElementById("caidan");
var l = document.getElementById("l");
var lh = l.style.height;
if(window.scrollY >= parseInt(lh))
{
c.style.position = "fixed";
c.style.top = "0px";
}
else
{
c.style.position = "relative";
}
}