$(document).ready(function(){	
	$('.nav li').hover(function(){
		$(this).addClass('hover');
	}, function(){
		$(this).removeClass('hover');
	});

        $(document).ajaxError(function(event, request, settings){
            errorDialog("Error requesting page " + settings.url);
        });
});
function errorDialog(message){
    //alert(message);
}
