$(document).ready(function(){$.browser.msie&&$.browser.version=="6.0"&&$("ul li:first-child").addClass("first-child")});function inherits(a,e){function d(){}d.prototype=e.prototype;a.prototype=new d;a.prototype.constructor=a}function EventEmitter(){this._events={}}EventEmitter.prototype.on=function(a,e){var d=this._events[a];d||(d=[],this._events[a]=d);d.push(e)}; EventEmitter.prototype.emit=function(a){var e=this._events[a];if(e){arguments=Array.prototype.slice.call(arguments,1);for(var d=0;d<e.length;d++)e[d].apply(this,arguments)}};function Timer(a,e){this._running=!1;this._intervalID=null;this._delay=a;this._callback=e}Timer.prototype.start=function(){if(!this._running)this._intervalID=window.setInterval(this._callback,this._delay),this._running=!0};Timer.prototype.stop=function(){if(this._running)window.clearInterval(this._intervalID),this._running=!1}; Timer.prototype.restart=function(){this._running&&(this.stop(),this.start())};function initNonEmptyTextHandlers(){$(".non-empty").each(function(){this.defaultValue=this.value;$(this).addClass("non-empty-empty");$(this).focus(function(){if(this.value==this.defaultValue)this.value="",$(this).removeClass("non-empty-empty")});$(this).blur(function(){if(!this.value.length)$(this).addClass("non-empty-empty"),this.value=this.defaultValue})})} function noselect(a){$(a).css({"-moz-user-select":"none"}).bind("selectstart",function(a){a.preventDefault()})}function createLoadingElement(a,e){var d=document.createElement("div");d.style.textAlign="center";d.style.fontSize="x-small";var g=new Image;g.src=e||"presentation/loading.gif";g.style.border="0";d.appendChild(g);d.appendChild(document.createElement("br"));d.appendChild(document.createTextNode(a));return d} (function(a){function e(b){var a=/^([^:\/?#]+):\/\/(([^@\/?#]*)@)?([^:\/?#]*)(:([0123456789]*))?([^?#]*)(\?([^#]*))?(#(.*))?/g,c={},b=a.exec(b);a.lastIndex=0;if(!b)return null;c.scheme=b[1];c.userinfo=b[3];c.hostname=b[4];c.port=b[6];c.path=b[7];c.query=b[9];c.fragment=b[11];c.host=c.hostname;c.port&&(c.host+=":"+c.port);return c}function d(b,a){b=b.split("/");a=a.split("/");if(b.length>a.length)return!1;for(var c=0;c<b.length;c++)if(b[c]!=a[c])return!1;return!0}function g(b){b.charAt(b.length-1)== "/"&&(b=b.substring(0,b.length-1));return b}function i(b){if(b==f)return!0;for(var a in h)if(b==h[a])return!0;return!1}var f="",j=document.getElementsByTagName("base");j.length&&(f=e(j[0].href)||{path:""},f=g(f.path));var h=[f+"/index.htm",f+"/index.php"];a.parseAbsoluteURL=e;a.highlightNavigation=function(a,f){var c=window.location.pathname,c=g(c);$(a).each(function(){var a=e(this.href);if(a&&a.host==window.location.host)if(a.path=g(a.path),a.path==c)f.apply(this,[]);else{var b=i(a.path);i(c)&&b? f.apply(this,[]):!b&&d(a.path,c)&&f.apply(this,[])}})};a.eachMatchURL=function(a,d,c){var f=d.host,h=g(d.pathname),j=i(h);$(a).each(function(){var a=e(this.href);if(a&&a.host==f)a.path=g(a.path),(a.path==h||j&&i(a.path))&&c.apply(this,[])})}})(this);
