// function over riding. Redirecting to Console with Firebug installed.
window.alert = function(message, fallback){
if(fallback)
{
old_alert(message);
return;
}
$(document.createElement('div'))
.attr({title: 'Alert', 'class': 'alert'})
.html(message)
.dialog({ //Needs jquery-ui.min.js
buttons: {OK: function(){$(this).dialog('close');}},
close: function(){$(this).remove();},
draggable: true,
modal: true,
resizable: true,
width: 'auto'
});
};