$.fn.disableLink = function () {
	this.each(function(){
		var events = $(this).data('events');
//		alert(events);
		if(typeof(events) == 'undefined')
		{
			$(this).css('cursor','default').click(function(){return false;});
			var cssProperties = {
				'text-decoration' : $(this).css('text-decoration'),
				'background-color' : $(this).css('background-color'),
				'color' : $(this).css('color')};
			$(this).hover(function(){
				$(this).css(cssProperties);
			});
		}
	});

};
$(document).ready(function() {
	$('a[href=#]').disableLink();	
});
