'+
' ONLINE';
}
friendOPITd.appendChild(friendOPIDiv);
friendOPITr.appendChild(friendOPITd);
friendTBody.appendChild(friendOPITr);
friendTable.appendChild(friendTBody);
if (false) {
friendListDiv569662397.insertBefore(friendTable, document.getElementById("inviteLink569662397_2"));
} else {
friendListDiv569662397.appendChild(friendTable);
}
}
showViewableFriendsPics569662397();
}
var picWidth = 100; //same as height
var picHeight = 100;
var picHeight = 100;
friendNameSize = 13;
headerPadding = 10;
headerSize = 4;
picPadding = 3;
var friendListDivID569662397 = 'div'+569662397;
var friendListDiv569662397 = document.getElementById(friendListDivID569662397);
var friendListHeight569662397 = document.getElementById(friendListDivID569662397).clientHeight - headerPadding-headerSize; //friendlist padding bottom 10px
var friendListWidth569662397 = document.getElementById(friendListDivID569662397).clientWidth; //friendlist
var numRow569662397 = Math.ceil(friendListHeight569662397 / (picHeight+picPadding*2+friendNameSize)); //it's ok to display extra row
var numPicsPerRow569662397 = Math.floor(friendListWidth569662397 / (picWidth+picPadding*2));
//onscroll
function showViewableFriendsPics569662397(){
var friendListDivID = 'div569662397'; //
var friendListDiv = document.getElementById(friendListDivID);
var scrollTop = friendListDiv.scrollTop; //scroll top
var friendListHeight = friendListDiv.clientHeight - headerPadding-headerSize; //friendlist padding bottom 10px
var friendListWidth = friendListDiv.clientWidth; //friendlist
var newfriendListHeight = friendListHeight + scrollTop;
var safetyFactor = 1+(scrollTop/friendListDiv.scrollHeight);
var paddingFactor = navigator.userAgent.indexOf("MSIE") > -1 ? 8 : 4;
var newNumRow = Math.ceil(safetyFactor*(newfriendListHeight / (picHeight+(picPadding*paddingFactor)+friendNameSize))); //it's ok to display extra row(s)
var newTopNumRow = Math.max(0, Math.floor(scrollTop / (picHeight+(picPadding*paddingFactor)+friendNameSize))-1);
var numPicsPerRow = window['numPicsPerRow569662397']; //reference global numRow for this div
//top.debug(newNumRow+":"+newTopNumRow+":"+numPicsPerRow);
for(i=newTopNumRow*numPicsPerRow; i