});
if ($Obj.children(settings.tagName + “[name='” + settings.mark + “']”).length > 0) {
topList = $Obj.data(“List”).tL;
leftList = $Obj.data(“List”).lL
} else {
topList.length = 0;
leftList.length = 0;
$Obj.removeData(“List”);
for (var i = 0; i < rows; i++) {
leftList.push(Fwidth * i);
topList.push(0)
}
}
};
var direction = function(elem) {
min = Math.min.apply({},
topList);
minIndex = $.inArray(min, topList);
topList[minIndex] += elem.outerHeight() + settings.margin;
$Obj.css(“height”, Math.max.apply({},
topList))
};
var orient = function() {
$(“#falls div”).each(function(){
$(this).attr(“name”, settings.mark);
})
var timeout = setTimeout(function() {
Olist.each(function() {
var Ol = $(this);
if (Ol.attr(“name”) == settings.mark) {
direction(Ol);
Ol.css({
top: min,
left: leftList[minIndex]
}).fadeIn(settings.speed)
} else {
Ol.remove()
}
})
},
settings.delTime);
$Obj.data(“List”, {
tL: topList,
lL: leftList
})
};
var reset = function() {
init();
Olist = $Obj.children(settings.tagName + “[name='” + settings.mark + “']”);
topList.length = 0;
leftList.length = 0;
for (var i = 0; i < rows; i++) {
leftList.push(Fwidth * i);
topList.push(0)
}
Olist.each(function() {
direction($(this));
$(this).