text: // TODO maybe add boolean bFadeIn and bFadeOut to control whether or now hide/show and fadein/out should be used
  Alert = {};
  var timer;
  
  Alert.setAlert = function (title, message, type, selector){
    window.clearTimeout(timer);
    $('#alert-'+selector).addClass(type);
    $('#alert-'+selector+' .close').live('click',function(){
      $(this).parent().hide();
    });
    $('#alert-title-'+selector).html(title);
    $('#alert-message-'+selector).html(message);
    $('#alert-'+selector).fadeIn(1000, function(){
      timer=window.setTimeout(function() {
        $('#alert-'+selector).fadeOut(500, function(){
          $('#alert-'+selector).removeClass(type);
          $('#alert_title-'+selector).html('');
          $('#alert_message-'+selector).html('');
          $('#alert-'+selector).hide(); 
        });
      }, 2000);
    });
  }
  