if (!/mobile/i.test(navigator.userAgent)) {
(function() {
	var debug = function() {
		if ((typeof(console) != 'undefined') && (typeof(console.debug) == 'function')) {
			;;; console.debug.apply(console, arguments);
		}
	}

	$(document).ready(function() {
		var highlightAccessKeys = function(node, accesskey) {
			try {
				var text, index, e, done = false;

				if (node.nodeType == 3) {
					// TEXT_NODE
					text = node.nodeValue;
					index = text.toLowerCase().indexOf(accesskey);

					if (index >= 0) {
						$(node).replaceWith(text.substring(0, index)
																+'<span class="accesskey">'+text.substring(index, index+1)+'</span>'
																+text.substring(index+1));
						done = true;
					}
				} else {
					for (e = node.firstChild; e; e = e.nextSibling) {
						if (highlightAccessKeys(e, accesskey)) {
							done = true;
							break;
						}
					}
				}
			} catch (ex) {
				;;; debug('ex', ex);
			}

			return done;
		}

		$('*[accesskey]').each(function() {
			var accesskey = $(this).attr('accesskey').toLowerCase();
			// ;;; debug(this, accesskey);
			highlightAccessKeys(this, accesskey);
		});
	});
}());
}
