function hide_msg(el) {
	document.getElementById(el).style.display = 'none';
	return;
}

function notification_message(data, autoclose, timeout, type, id) {
    var obj = $('<div id="' + id + '" class="hidden ' + type + '">' + data + '</div>');
    
    obj.click( function () {obj.fadeOut('slow');obj.remove().delay(10000);});
    $('#cms_notifications_container').append(obj);
    //obj.fadeIn('slow');
    obj.switchClass( "hidden", "shown", 2000);
    obj.removeAttr('style');
    
    if (autoclose) {
        var to = timeout*1000;
        obj.fadeOut('slow').delay(to);
        obj.remove('slow').delay(to+5000);
    }
}

