$(function(){



});
   // Notify block
   var timeout;
   function removeNotify() {
      clearTimeout(timeout);
      if($('.bar').length) { $('.bar').fadeOut('fast',function(){ $(this).remove(); }); }	
   }
   
   function notify(msg, type)
   {
      type = typeof(type) != 'undefined' ? type : 'suc';
      timeout = setTimeout(function() {removeNotify();}, 3000);
      var n = $(document.createElement('div')).addClass('bar').addClass(type);
      n.append($(document.createElement('p')).html(msg));
      $('body').append(n).fadeIn('fast');
   }
