
// *********************************

$.errorBox = function(text) {
  $.facebox('<h2 class="title icon_warning">Attenzione</h2><span style="font-size: 1em; font-family: verdana, tahoma;">' + text + '</span>')
}

$.successBox = function(text) {
  $.facebox('<h2 class="title icon_check">Operazione completata</h2><span style="font-size: 1em; font-family: verdana, tahoma;">' + text + '</span>')
}


function FaceBookShare() {
 var d=document,f='http://www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php?src=bm&v=4&i=1256315279&u='+e(l.href)+'&t='+e(d.title);1;try{if (!/^(.*\.)?facebook\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z) {a=function() {if (!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p};if (/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0)
}