var BookmarksHelper = function() {

return {

AddAnchor : function(obj) {

if (window.sidebar) {

window.sidebar.addPanel(document.title, obj.href, '');

return false;

} else if ((window.opera) &&
(window.print)) {

obj.setAttribute('rel', 'sidebar');
obj.setAttribute('title', document.title);

return true;

} else if (document.all) {

window.external.AddFavorite(obj.href, document.title);

return false;

} else {

alert('To bookmark this page, close this dialog and press\n\n\tCtrl + D');

return false;
}
}
};
}();
