function makeNiceURL(url) {
	return url
			.toLowerCase() // change everything to lowercase
			.replace(/^\s+|\s+$/g, "") // trim leading and trailing spaces		
			.replace(/[_|\s]+/g, "-") // change all spaces and underscores to a hyphen
			.replace(/[^a-z0-9-]+/g, "") // remove all non-alphanumeric characters except the hyphen
			.replace(/[-]+/g, "-") // replace multiple instances of the hyphen with a single instance
			.replace(/^-+|-+$/g, "") // trim leading and trailing hyphens				
			;
}

function adjustFontSize(selector, mod) {
	var menuFontSize = Number($(selector).css('fontSize').substr(0, $(selector).css('fontSize').length-2));
	menuFontSize += mod;
	$(selector).css('fontSize', menuFontSize);
}

$.fn.textWidth = function(){
  var html_org = $(this).html();
  var html_calc = '<span>' + html_org + '</span>'
  $(this).html(html_calc);
  var width = $(this).find('span:first').width();
  $(this).html(html_org);
  return width;
};

function getPath() { 
	return ''; //http://samples.bigfolio.com/bond/
}

jQuery.log = function( text ){
    if( (window['console'] !== undefined) ){
        console.log( text );
    }
}
