(function(k,n,p,l){function e(a,b){this.name=a;this.type=b;this.uid=null}function m(a,b,c){this.id=a;this.fn=b;this.args=c}var d={};l.define("rcshim");l.rcshim=d;var g={},h={},f=[];e.prototype.id=function(a){this.uid=a;return this};e.prototype.selected=function(){var a;this.uid&&(a=n.getElementById(this.uid))&&("p"===this.type?p.addClass(a,"selected"):a.selected=!0);d.nav.cap&&d.nav.cap.isCap&&"s"===this.type&&d.nav.cap.selected(this.name)};d.nav={primary:function(a){var b=g[a]?g[a]:new e(a,"p");
return g[a]=b},search:function(a){var b=h[a]?h[a]:new e(a,"s");return h[a]=b}};m.prototype.exec=function(){var a,b,c;if("function"!==typeof this.fn){a=this.fn.split(".");c=k;for(b=0;(c=c[a[b++]])&&"undefined"!==typeof a[b];);"function"===typeof c&&(this.fn=c)}this.fn.apply(k,this.args)};d.js={defer:{add:function(a,b,c){f.push(new m(a,b,c))},exec:function(){for(var a,b=[];a=f.shift();)try{a.exec()}catch(c){b.push(a)}f=b},get:function(a){for(var b=0,c;c=f[b++];)if(c.id===a)return c}}}})(window,window.document,
window.YDom,window.LI);