function bookmark(anchor){
    try {
        if(window.external) {
            window.external.AddFavorite(anchor.getAttribute('href'), anchor.getAttribute('title'));
            return false;
        }
        return true;
    } catch(e) {}
}
$(document).ready(function() {
    try {
        $("#favourites a").click(function(){
           return bookmark(this);
        });
        $("a[rel^='prettyPhoto']").prettyPhoto();
    } catch(e) {}
});


