/**
 * @requires   pots.js
 * @version    1.02
 * @updated    2007/11/12
 * @author     inamorix &lt;<a href="mailto:inamorix@metatype.jp">inamorix@metatype.jp</a>&gt;
 * @copyright  Copyright (c) 2007, <a href="http://metatype.jp/">metatype</a>.
 * @license    The MIT-style license.
 */



port.extend({
	/**
	 * @private
	 */
	standby: function () {
		if ($('nav')) {
			location.href.match(/([^\/]+)$/)[1].match(/^([\d]+)/);
			var n = RegExp.$1;
			
			if (typeof(n) == 'undefined') {
				n = location.href.match(/([^\/]+)$/)[1];
			}
			
			$$('div#nav h2 a').each(function (el) {
				if (
					(el.href.indexOf(n + '_') >= 0) ||
					(/howto\.php/.test(el.href) && (n == 'howto.php'))
				) {
					el.parentNode.parentNode.className = 'nav_focus';
				}
			});
		}
	}
});