"
+ );
+}
+
+function updateOnBottom() {
+ //check wether user is on bottom of the page
+ if ($('body').height() <= ($(window).height() + $(window).scrollTop())) {
+ getBookmarks();
+ }
+}
+
+function recordClick(event) {
+ $.ajax({
+ url: 'ajax/recordClick.php',
+ data: "url=" + encodeURI($(this).attr('href')),
+ });
+ return false;
+}
+
+function encodeEntities(s){
+ try {
+ return $("