function share_to_facebook(url) {
  FB.Connect.showShareDialog(url, function() {}); 
  return false;
}

/* global variable for showing if the notice box is open */
var onDisplay = false;

function notice(message, delay) {
  if(delay == null)
    delay = 2500;
  
  if (!onDisplay) {
    onDisplay = true;
    
    $('#notice').slideDown('fast');

    setTimeout("denotice()", delay);
  }

  $('#notice').html(message);
}

function denotice() {
  if(onDisplay) {
    $('#notice').slideUp('fast', function() {
      onDisplay = false;
    });
  }
}
