var CLO={};Ext={};Ext.DomQuery=function(){var cache={},simpleCache={},valueCache={};var nonSpace=/\S/;var trimRe=/^\s*(.*?)\s*$/;var tplRe=/\{(\d+)\}/g;var modeRe=/^(\s?[\/>]\s?|\s|$)/;var clsRes={};function child(p,index){var i=0;var n=p.firstChild;while(n){if(n.nodeType==1){i++;if(i==index){return n}}n=n.nextSibling}return null}function next(d){var n=d.nextSibling;while(n&&n.nodeType!=1){n=n.nextSibling}return n}function prev(d){var n=d.previousSibling;while(n&&n.nodeType!=1){n=n.previousSibling}return n}function clean(d){var n=d.firstChild,ni=-1;while(n){var nx=n.nextSibling;if(n.nodeType==3&&!nonSpace.test(n.nodeValue)){d.removeChild(n)}else{n.nodeIndex=++ni}n=nx}return this}function byClassName(c,a,v){if(!v){return c}var re=clsRes[v];if(!re){re=new RegExp("(?:^|\\s)(?:"+v+")(?:\\s|$)");clsRes[v]=re}var r=[];for(var i=0,ci;ci=c[i];i++){if(re.test(ci.className)){r[r.length]=ci}}return r}function convert(c){if(c.slice){return c}var r=[];for(var i=0,l=c.length;i<l;i++){r[r.length]=c[i]}return r}function attrValue(n,attr){if(!n.tagName&&typeof n.length!="undefined"){n=n[0]}if(!n){return null}if(attr=="for"){return n.htmlFor}if(attr=="class"||attr=="className"){return n.className}return n.getAttribute(attr)||n[attr]}function getNodes(ns,mode,tagName){var result=[],cs;if(!ns){return result}mode=mode?mode.replace(trimRe,"$1"):"";tagName=tagName||"*";if(ns.tagName||ns==document){ns=[ns]}if(mode!="/"&&mode!=">"){for(var i=0,ni;ni=ns[i];i++){cs=ni.getElementsByTagName(tagName);result=concat(result,cs)}}else{for(var i=0,ni;ni=ns[i];i++){var cn=ni.getElementsByTagName(tagName);for(var j=0,cj;cj=cn[j];j++){if(cj.parentNode==ni){result[result.length]=cj}}}}return result}function concat(a,b){if(b.slice){return a.concat(b)}for(var i=0,l=b.length;i<l;i++){a[a.length]=b[i]}return a}function byTag(cs,tagName){if(cs.tagName||cs==document){cs=[cs]}if(!tagName){return cs}var r=[];tagName=tagName.toLowerCase();for(var i=0,ci;ci=cs[i];i++){if(ci.nodeType==1&&ci.tagName.toLowerCase()==tagName){r[r.length]=ci}}return r}function byId(cs,attr,id){if(cs.tagName||cs==document){cs=[cs]}if(!id){return cs}var r=[];for(var i=0,l=cs.length;i<l;i++){var ci=cs[i];if(ci&&ci.id==id){r[r.length]=ci}}return r}function byAttribute(cs,attr,value,op,custom){var r=[],st=custom=="{";var f=Ext.DomQuery.operators[op];for(var i=0,l=cs.length;i<l;i++){var a;if(st){a=Ext.DomQuery.getStyle(cs[i],attr)}else{if(attr=="class"||attr=="className"){a=cs[i].className}else{if(attr=="for"){a=cs[i].htmlFor}else{a=cs[i].getAttribute(attr)}}}if((f&&f(a,value))||(!f&&a)){r[r.length]=cs[i]}}return r}function byPseudo(cs,name,value){return Ext.DomQuery.pseudos[name](cs,value)}var isIE=window.ActiveXObject;var addAttr=isIE?function(n,a,v){n.setAttribute(a,v)}:function(n,a,v){n[a]=v};var getAttr=isIE?function(n,a){return n.getAttribute(a)}:function(n,a){return n[a]};var clearAttr=isIE?function(n,a){n.removeAttribute(a)}:function(n,a,v){delete n[a]};function nodup(cs){if(!cs.length){return cs}addAttr(cs[0],"_nodup",true);var r=[cs[0]];for(var i=1,len=cs.length;i<len;i++){var c=cs[i];if(!getAttr(c,"_nodup")){addAttr(c,"_nodup",true);r[r.length]=c}}for(var i=0,len=cs.length;i<len;i++){clearAttr(cs[i],"_nodup")}return r}function quickDiff(c1,c2){if(!c1.length){return c2}for(var i=0,len=c1.length;i<len;i++){addAttr(c1[i],"_qdiff",true)}var r=[];for(var i=0,len=c2.length;i<len;i++){if(!getAttr(c2[i],"_qdiff")){r[r.length]=c2[i]}}for(var i=0,len=c1.length;i<len;i++){clearAttr(c1[i],"_qdiff")}return r}function quickId(ns,mode,root,id){if(ns==root){var d=root.ownerDocument||root;return d.getElementById(id)}ns=getNodes(ns,mode,"*");return byId(ns,null,id)}return{getStyle:function(el,name){return YAHOO.util.Dom.getStyle(el,name)},compile:function(path,type){while(path.substr(0,1)=="/"){path=path.substr(1)}type=type||"select";var fn=["var f = function(root){\n var mode; var n = root || document;\n"];var q=path,mode,lq;var tk=Ext.DomQuery.matchers;var tklen=tk.length;var mm;while(q&&lq!=q){lq=q;var tm=q.match(/^(#)?([\w-\*]+)/);if(type=="select"){if(tm){if(tm[1]=="#"){fn[fn.length]='n = quickId(n, mode, root, "'+tm[2]+'");'}else{fn[fn.length]='n = getNodes(n, mode, "'+tm[2]+'");'}q=q.replace(tm[0],"")}else{fn[fn.length]='n = getNodes(n, mode, "*");'}}else{if(tm){if(tm[1]=="#"){fn[fn.length]='n = byId(n, null, "'+tm[2]+'");'}else{fn[fn.length]='n = byTag(n, "'+tm[2]+'");'}q=q.replace(tm[0],"")}}while(!(mm=q.match(modeRe))){var matched=false;for(var j=0;j<tklen;j++){var t=tk[j];var m=q.match(t.re);if(m){fn[fn.length]=t.select.replace(tplRe,function(x,i){return m[i]});q=q.replace(m[0],"");matched=true;break}}if(!matched){throw'Error parsing selector, parsing failed at "'+q+'"'}}if(mm[1]){fn[fn.length]='mode="'+mm[1]+'";';q=q.replace(mm[1],"")}}fn[fn.length]="return nodup(n);\n}";eval(fn.join(""));return f},select:function(path,root,type){if(!root||root==document){root=document}if(typeof root=="string"){root=document.getElementById(root)}var paths=path.split(",");var results=[];for(var i=0,len=paths.length;i<len;i++){var p=paths[i].replace(trimRe,"$1");if(!cache[p]){cache[p]=Ext.DomQuery.compile(p);if(!cache[p]){throw p+" is not a valid selector"}}var result=cache[p](root);if(result&&result!=document){results=results.concat(result)}}return results},selectNode:function(path,root){return Ext.DomQuery.select(path,root)[0]},selectValue:function(path,root,defaultValue){path=path.replace(trimRe,"$1");if(!valueCache[path]){valueCache[path]=Ext.DomQuery.compile(path,"simple")}var n=valueCache[path](root);n=n[0]?n[0]:n;var v=(n&&n.firstChild?n.firstChild.nodeValue:null);return(v===null?defaultValue:v)},selectNumber:function(path,root,defaultValue){var v=Ext.DomQuery.selectValue(path,root,defaultValue||0);return parseFloat(v)},is:function(el,ss){if(typeof el=="string"){el=document.getElementById(el)}var isArray=(el instanceof Array);var result=Ext.DomQuery.filter(isArray?el:[el],ss);return isArray?(result.length==el.length):(result.length>0)},filter:function(els,ss,nonMatches){ss=ss.replace(trimRe,"$1");if(!simpleCache[ss]){simpleCache[ss]=Ext.DomQuery.compile(ss,"simple")}var result=simpleCache[ss](els);return nonMatches?quickDiff(result,els):result},matchers:[{re:/^\.([\w-]+)/,select:'n = byClassName(n, null, "{1}");'},{re:/^\:([\w-]+)(?:\(((?:[^\s>\/]*|.*?))\))?/,select:'n = byPseudo(n, "{1}", "{2}");'},{re:/^(?:([\[\{])(?:@)?([\w-]+)\s?(?:(=|.=)\s?['"]?(.*?)["']?)?[\]\}])/,select:'n = byAttribute(n, "{2}", "{4}", "{3}", "{1}");'},{re:/^#([\w-]+)/,select:'n = byId(n, null, "{1}");'},{re:/^@([\w-]+)/,select:'return {firstChild:{nodeValue:attrValue(n, "{1}")}};'}],operators:{"=":function(a,v){return a==v},"!=":function(a,v){return a!=v},"^=":function(a,v){return a&&a.substr(0,v.length)==v},"$=":function(a,v){return a&&a.substr(a.length-v.length)==v},"*=":function(a,v){return a&&a.indexOf(v)!==-1},"%=":function(a,v){return(a%v)==0}},pseudos:{"first-child":function(c){var r=[];for(var i=0,l=c.length;i<l;i++){var ci=c[i];if(!prev(ci)){r[r.length]=ci}}return r},"last-child":function(c){var r=[];for(var i=0,l=c.length;i<l;i++){var ci=c[i];if(!next(ci)){r[r.length]=ci}}return r},"nth-child":function(c,a){var r=[];if(a!="odd"&&a!="even"){for(var i=0,ci;ci=c[i];i++){var m=child(ci.parentNode,a);if(m==ci){r[r.length]=m}}return r}var p;for(var i=0,l=c.length;i<l;i++){var cp=c[i].parentNode;if(cp!=p){clean(cp);p=cp}}for(var i=0,l=c.length;i<l;i++){var ci=c[i],m=false;if(a=="odd"){m=((ci.nodeIndex+1)%2==1)}else{if(a=="even"){m=((ci.nodeIndex+1)%2==0)}}if(m){r[r.length]=ci}}return r},"only-child":function(c){var r=[];for(var i=0,l=c.length;i<l;i++){var ci=c[i];if(!prev(ci)&&!next(ci)){r[r.length]=ci}}return r},empty:function(c){var r=[];for(var i=0,l=c.length;i<l;i++){var ci=c[i];if(!ci.firstChild){r[r.length]=ci}}return r},contains:function(c,v){var r=[];for(var i=0,l=c.length;i<l;i++){var ci=c[i];if(ci.innerHTML.indexOf(v)!==-1){r[r.length]=ci}}return r},checked:function(c){var r=[];for(var i=0,l=c.length;i<l;i++){if(c[i].checked=="checked"){r[r.length]=c[i]}}return r},not:function(c,ss){return Ext.DomQuery.filter(c,ss,true)},odd:function(c){return this["nth-child"](c,"odd")},even:function(c){return this["nth-child"](c,"even")},nth:function(c,a){return c[a-1]},first:function(c){return c[0]},last:function(c){return c[c.length-1]},has:function(c,ss){var s=Ext.DomQuery.select;var r=[];for(var i=0,ci;ci=c[i];i++){if(s(ss,ci).length>0){r[r.length]=ci}}return r},next:function(c,ss){var is=Ext.DomQuery.is;var r=[];for(var i=0,ci;ci=c[i];i++){var n=next(ci);if(n&&is(n,ss)){r[r.length]=ci}}return r},prev:function(c,ss){var is=Ext.DomQuery.is;var r=[];for(var i=0,ci;ci=c[i];i++){var n=prev(ci);if(n&&is(n,ss)){r[r.length]=ci}}return r}}}}();Ext.query=Ext.DomQuery.select;if(!IPC){var IPC={}}var $NS=IPC.NAMESPACE=function(){$A(arguments).each(function(A){if(!IPC[A]){IPC[A]={}}});return true};$NS("CONFIG","DOM","HANDLE");$$=Ext.query;IPC.BrowserDetect=Class.create();IPC.BrowserDetect.addMethods({initialize:function(){this.browser=this.searchString(this.dataBrowser).identity||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS).identity||"an unknown OS";this.activex=this.activeXCheck();this.flash=this.flashCheck()},searchString:function(A){return A.find(function(B){var C=B.string;var D=B.prop;this.versionSearchString=B.versionSearch||B.identity;if(C){if(C.indexOf(B.subString)!=-1){return B.identity}}else{if(D){return B.identity}}}.bind(this))},searchVersion:function(B){var A=B.indexOf(this.versionSearchString);if(A==-1){return }return parseFloat(B.substring(A+this.versionSearchString.length+1))},activeXCheck:function(){return{msie:(window.ActiveXObject&&this.OS=="Windows")?true:false,gecko:(window.GeckoActiveXObject)?true:false}},flashCheck:function(){flashPlayer=testPluginsArray("Shockwave Flash");if(!flashPlayer.installed){if(testForPluginMimeType("application/x-shockwave-flash")){flashPlayer.installed=true}else{for(var A=8;A>0;A--){if(this.activex.msie){try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+A);flashPlayer.installed=true;flashPlayer.version=A;return flashPlayer}catch(B){flashPlayer.installed=false}}else{flashPlayer.installed=false}}}}return flashPlayer},dataBrowser:[{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]});var $USER=new IPC.BrowserDetect();var $B=IPC.DOM.Build={IE_TRANS:{"class":"className","for":"htmlFor"},HTML_TAGS:$w("p div span strong em img table tr td th thead tbody tfoot pre code h1 h2 h3 h4 h5 h6 ul ol li form input textarea legend fieldset select option blockquote cite br hr dd dl dt address a button abbr acronymscript link style bdo ins del object param col colgroup optgroup caption label dfn kbd samp var embed"),eval:function(A){return $(document.createElement("div")).update(A.strip()).down()},node:function(E,A){if(this._string(E)){return document.createTextNode(E)}this.options=$H({xml:false}).merge(A||{});var C;var B=$H(E).keys()[0];var F=$H(E).values()[0];if((!this.options.xml&&this.HTML_TAGS.indexOf(B)>-1)||this.options.xml){C=document.createElement(B);if(F==""){return C}}else{alert("Non-standard HTML tag ("+B+") entered.\nSet xml option to true to use non-standard tags.")}if(F instanceof Array){this._children(F).each(function(G){C.appendChild(G)})}else{if(F instanceof Object){if(F._a||F._c){if(F._a){$H(F._a).each(function(G){if($USER.browser=="Explorer"){if(this.IE_TRANS[G[0]]){C[this.IE_TRANS[G[0]]]=G[1]}else{if(G[0]=="style"){C.style.cssText=G[1]}else{if(/^on.+$/.test(G[0])){C[G[0]]=new Function(G[1])}else{C.setAttribute(G[0],G[1])}}}}else{C.setAttribute(G[0],G[1])}}.bind(this))}if(F._c){try{this._children(F._c).each(function(G){C.appendChild(G)})}catch(D){if(this._string(F._c)){C.appendChild(document.createTextNode(F._c))}}}}else{C.appendChild(this.node(F,this.options))}}else{if(this._string(F)){C.appendChild(document.createTextNode(F))}}}return C},_children:function(A){if(this._string(A)){return document.createTextNode(A)}return A.collect(function(B){return this.node(B,this.options)}.bind(this))},_string:function(A){return(typeof A=="string"||typeof A=="number")}};IPC.CreateDOM=function(obj){if(typeof obj=="string"){return $B.eval(obj)}var dom={};for($_ in obj){dom[$_]=typeof obj[$_]=="string"?$B.eval(obj[$_]):$B.node(obj[$_])}return dom};var $kill=IPC.Destroy=new function(A){return delete A};IPC.DOM.Loader='<div class="ipc-loader"></div>';IPC.Loader=Class.create();IPC.Loader.prototype={initialize:function(A){A=A||document.body;this.DOM=IPC.CreateDOM(IPC.DOM.Loader);this.element=$(A);if(A!=document.body){Element.setStyle(this.element,{position:"relative"})}this.element.appendChild(this.DOM);Element.hide(this.DOM)},destroy:function(){Element.setStyle(this.element,{overflow:"visible"});Element.remove(this.DOM)},hide:function(){Element.setStyle(this.element,{overflow:"visible"});Element.hide(this.DOM)},show:function(){Element.setStyle(this.element,{overflow:"hidden"});Element.show(this.DOM)}};IPC.DOM.ProgressBar={container:'<div class="progress-bar"></div>',label:"<h3></h3>",current:"<span></span>",bar:'<div class="p-bar"><div></div></div>'};IPC.ProgressBar=Class.create();IPC.ProgressBar.addMethods({initialize:function(B,A){this.DOM=IPC.CreateDOM(IPC.DOM.ProgressBar);this.options=$H({labelComplete:"Uploaded"}).merge(A||{});this.DOM.label.update(B);this._createProgressBar()},destroy:function(){Element.remove(this.DOM.container)},update:function(A,B){if(A){if(A>=100){Element.setStyle(Element.down(this.DOM.bar),{width:"auto"});this._handleComplete()}else{Element.setStyle(Element.down(this.DOM.bar),{width:parseInt(A)+"%"})}}if(B){this.DOM.current.update(B)}},_createProgressBar:function(){this.DOM.container.appendChild(this.DOM.label);this.DOM.container.appendChild(this.DOM.bar);this.DOM.container.appendChild(this.DOM.current);this._handleInsertion()},_handleComplete:function(){if(this.options.labelComplete){this.DOM.label.update(this.options.labelComplete)}Element.addClassName(this.DOM.bar,"p-complete")},_handleInsertion:function(){var A=Object.keys(this.options.insertion)[0].replace(/^\w(.*)$/,Object.keys(this.options.insertion)[0].charAt(0).toUpperCase()+"$1");new IPC.Insertion[A](this.DOM.container,Object.values(this.options.insertion)[0])}});IPC.Insertion={Abstract:{initialize:function(element,insertPoint){this.element=$(element)||$B.eval(element);this.insertPoint=$(insertPoint);this.handleInsertion()}},After:Class.create(),Before:Class.create(),Bottom:Class.create(),Top:Class.create()};IPC.Insertion.After.prototype=Object.extend({handleInsertion:function(){this.insertPoint.parentNode.insertBefore(this.element,this.insertPoint.nextSibling)}},IPC.Insertion.Abstract);IPC.Insertion.Before.prototype=Object.extend({handleInsertion:function(){this.insertPoint.parentNode.insertBefore(this.element,this.insertPoint)}},IPC.Insertion.Abstract);IPC.Insertion.Bottom.prototype=Object.extend({handleInsertion:function(){this.insertPoint.appendChild(this.element)}},IPC.Insertion.Abstract);IPC.Insertion.Top.prototype=Object.extend({handleInsertion:function(){this.insertPoint.insertBefore(this.element,this.insertPoint.firstChild)}},IPC.Insertion.Abstract);IPC.UniqueID=Class.create();IPC.UniqueID.addMethods({NAMESPACE:"ipc_sys__",initialize:function(A){this.ns=A||this.NAMESPACE;this.count=0},create:function(){var A=this.ns+this.count;this.count++;return A}});var $UID=new IPC.UniqueID();IPC.CONFIG._namespace="ipc-";IPC.DOM._emptyNode=$B.eval("<span />");IPC.HANDLE._emptyFunction=Prototype.emptyFunction;function testForPluginMimeType(B){try{if(navigator.mimeTypes){return navigator.mimeTypes[B].enabledPlugin}}catch(A){return false}}function testPluginsArray(C){var B={};B.installed=false;if(navigator.plugins&&navigator.plugins.length){for(var A in navigator.plugins){plugin=navigator.plugins[A];if(plugin.name){if(plugin.name.indexOf(C)!==-1){B.installed=true;if(plugin.description){B.version=plugin.description.charAt(plugin.description.indexOf(".")-1)}return B}}}}return B}function createActiveXObject(B){try{return new ActiveXObject(B)}catch(A){return false}}CLO.BoxPager=Class.create();CLO.BoxPager.addMethods({container:null,titleNode:null,titles:[],pages:[],nextAnchor:null,prevAnchor:null,activeIndex:0,options:{},initialize:function(A,B){this.options=$H({}).merge(B||{});this.container=$(A);this.titleNode=this.container.getElementsByTagName("dt")[0];this.titles=$A(this.titleNode.select(".title"));this.pages=$A(this.container.select(".page"));this.nextAnchor=this.titleNode.select(".navRight")[0];this.prevAnchor=this.titleNode.select(".navLeft")[0];Event.observe(this.nextAnchor,"click",this.nextAnchor_onClick.bindAsEventListener(this));Event.observe(this.prevAnchor,"click",this.prevAnchor_onClick.bindAsEventListener(this))},nextAnchor_onClick:function(A){this.activeIndex++;Element.removeClassName(this.titles[this.activeIndex-1],"active");Element.removeClassName(this.pages[this.activeIndex-1],"active");if(this.activeIndex>this.titles.length){this.activeIndex=0}Element.addClassName(this.titles[this.activeIndex],"active");Element.addClassName(this.pages[this.activeIndex],"active");Event.stop(A)},prevAnchor_onClick:function(A){}});IPC.BrowserDetect=Class.create();IPC.BrowserDetect.addMethods({initialize:function(){this.browser=this.searchString(this.dataBrowser).identity||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS).identity||"an unknown OS";this.activex=this.activeXCheck();this.flash=this.flashCheck()},searchString:function(A){return A.find(function(B){var C=B.string;var D=B.prop;this.versionSearchString=B.versionSearch||B.identity;if(C){if(C.indexOf(B.subString)!=-1){return B.identity}}else{if(D){return B.identity}}}.bind(this))},searchVersion:function(B){var A=B.indexOf(this.versionSearchString);if(A==-1){return }return parseFloat(B.substring(A+this.versionSearchString.length+1))},activeXCheck:function(){return{msie:(window.ActiveXObject&&this.OS=="Windows")?true:false,gecko:(window.GeckoActiveXObject)?true:false}},flashCheck:function(){flashPlayer=testPluginsArray("Shockwave Flash");if(!flashPlayer.installed){if(testForPluginMimeType("application/x-shockwave-flash")){flashPlayer.installed=true}else{for(var A=8;A>0;A--){if(this.activex.msie){try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+A);flashPlayer.installed=true;flashPlayer.version=A;return flashPlayer}catch(B){flashPlayer.installed=false}}else{flashPlayer.installed=false}}}}return flashPlayer},dataBrowser:[{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]});var $USER=new IPC.BrowserDetect();function testForPluginMimeType(B){try{if(navigator.mimeTypes){return navigator.mimeTypes[B].enabledPlugin}}catch(A){return false}}function testPluginsArray(C){var B={};B.installed=false;if(navigator.plugins&&navigator.plugins.length){for(var A in navigator.plugins){plugin=navigator.plugins[A];if(plugin.name){if(plugin.name.indexOf(C)!==-1){B.installed=true;if(plugin.description){B.version=plugin.description.charAt(plugin.description.indexOf(".")-1)}return B}}}}return B}function createActiveXObject(B){try{return new ActiveXObject(B)}catch(A){return false}}var $B=IPC.DOM.Build={IE_TRANS:{"class":"className","for":"htmlFor"},HTML_TAGS:$w(["p div span strong em img table tr td th thead tbody tfoot pre code h1 h2 h3 h4 h5 h6 ul ol"," li form input textarea legend fieldset select option blockquote cite br hr dd dl dt address a button"," abbr acronym script link style bdo ins del object param col colgroup optgroup caption label dfn kbd samp var iframe embed"].join("")),eval:function(A){return $(document.createElement("div")).update(A.toString().strip()).down()||document.createTextNode(A.toString().strip())},node:function(obj,options){if(this._string(obj)){return this.eval(obj)}if(TEST.htmlElement(obj)){return $(obj)}if(TEST.textNode(obj)){return obj}this.options=$H({xml:false}).merge(options||{});var el,attr,child;var key=obj.shift();if(obj[0]&&(TEST.object(obj[0].constructor)||obj[0].constructor==Hash)&&!TEST.array(obj[0])){attr=obj.shift()}if(obj[0]&&(TEST.array(obj[0])||this._string(obj[0])||TEST.htmlElement(obj[0]))){child=obj.shift()}if((!this.options.get("xml")&&this.HTML_TAGS.indexOf(key)>-1)||this.options.get("xml")){el=$(document.createElement(key))}else{alert("Non-standard HTML tag ("+key+") entered.\nSet xml option to true to use non-standard tags.");return false}if(attr){$H(attr).each(function(a){if($USER.browser=="Explorer"){if(this.IE_TRANS[a.key]){el[this.IE_TRANS[a.key]]=a.value}else{if(a.key=="style"){el.style.cssText=a.value}else{if(/^on.+$/.test(a.key)){el[a.key]=new Function(a.value)}else{el.setAttribute(a.key,a.value)}}}}else{try{el.setAttribute(a.key,a.value)}catch(e){}}}.bind(this))}if(child){this._children(child).each(function(child){try{el.appendChild(child)}catch(e){console.log(e)}})}return $(el)},_children:function(A){if(TEST.array(A)&&!this._string(A[0])){return A.collect(function(B){return this.node(B,this.options)}.bind(this))}else{return[this.node(A)]}},_string:function(A){return(TEST.string(A)||TEST.number(A))}};String.prototype.toQueryParams=function(B){var A=this.strip().match(/([^?#]*)(#.*)?$/);if(!A){return{}}return A[1].split(B||"&").inject({},function(E,F){if((F=F.split("="))[0]){var C=decodeURIComponent(F[0]);var D=F[1]?decodeURIComponent(F[1]):undefined;if(E[C]!==undefined){if(E[C].constructor!=Array){E[C]=[E[C]]}if(D){E[C].push(D)}}else{E[C]=D}}return E})};CLO.CalendarControl=Class.create();CLO.CalendarControl.addMethods({container:null,prevMonthAnchor:null,nextMonthAnchor:null,calendarTable:null,onBeforeMonthChange:function(A){},onAfterMonthChange:function(A){},onErrorMonthChange:function(A){},initialize:function(A,B){this.container=$(A);this.options=$H({ajaxURL:"_eventCalendar.php",prevMonthAnchorClass:"prev",nextMonthAnchorClass:"next",calendarTableClass:"minicalendar"}).merge(B||{});this.bind()},bind:function(){this.prevMonthAnchor=$$("#"+this.container.id+" a."+this.options.get("prevMonthAnchorClass"))[0];this.nextMonthAnchor=$$("#"+this.container.id+" a."+this.options.get("nextMonthAnchorClass"))[0];this.calendarTable=$$("#"+this.container.id+" table."+this.options.get("calendarTableClass"))[0];Event.observe(this.prevMonthAnchor,"click",this.changeMonth.bindAsEventListener(this));Event.observe(this.nextMonthAnchor,"click",this.changeMonth.bindAsEventListener(this))},changeMonth:function(B){this.onBeforeMonthChange();var A=Event.findElement(B,"a");p=A.href.toQueryParams();var C=new Ajax.Updater(this.container,this.options.get("ajaxURL"),{method:"post",parameters:"month="+p.month+"&year="+p.year,onComplete:this.changeMonth_onComplete.bind(this),onError:this.onErrorMonthChange.bind(this)});Event.stop(B)},changeMonth_onComplete:function(A){this.bind();this.onAfterMonthChange()}});CLO.CalendarLoading=Class.create();CLO.CalendarLoading.addMethods({initialize:function(){this.container=Builder.node("div",{id:"cal-loading"});$("calendarForm").appendChild(this.container)}});CLO.Carousel=Class.create();CLO.Carousel.addMethods({initialize:function(B){this.carouselElemID=B;this.options=Object.extend({numVisible:4,scrollInc:3,animParameters:{},buttonStateHandler:null,animHandler:null,ajaxHandler:null,initDoneHandler:null,queue:"carousel",size:0,prevElementID:"prev-arrow",nextElementID:"next-arrow",ajaxParameters:null,url:null},arguments[1]||{});this.initDone=false;this.animRunning="none";this.requestIsRunning=false;this.animAfterFinish=this.options.animParameters.afterFinish;Object.extend(this.options.animParameters,{afterFinish:this._animDone.bind(this),queue:{position:"end",scope:this.options.queue}});this.prevScroll=this._prevScroll.bindAsEventListener(this);this.nextScroll=this._nextScroll.bindAsEventListener(this);this.onComplete=this._onComplete.bindAsEventListener(this);this.onFailure=this._onFailure.bindAsEventListener(this);Event.observe(this.options.prevElementID,"click",this.prevScroll);Event.observe(this.options.nextElementID,"click",this.nextScroll);var A="carousel-list";this.carouselList=document.getElementsByClassName(A,$(B))[0];this._init()},destroy:function(){Event.stopObserving(this.options.prevElementID,"click",this.prevScroll);Event.stopObserving(this.options.nextElementID,"click",this.nextScroll)},scrollTo:function(A){var B=this.options.scrollInc;this.ignoreNoMoreImages=true;if(A>this.currentIndex){this.options.scrollInc=A-this.currentIndex;this._nextScroll(this)}else{this.options.scrollInc=this.currentIndex-A;this._prevScroll(this)}this.options.scrollInc=B},_init:function(){this.currentIndex=0;if(this.options.url){this._request(this.currentIndex,this.options.numVisible)}else{this._getLiElementSize();this._updateButtonStateHandler(this.options.prevElementID,false);this._updateButtonStateHandler(this.options.nextElementID,this.options.size>this.options.numVisible)}},_prevScroll:function(A){if(this.animRunning!="none"||this.currentIndex==0){return }var B=this.options.scrollInc;if(this.currentIndex-B<0){B=this.currentIndex}this._scroll(B);return false},_nextScroll:function(A){if(this.animRunning!="none"){return false}if(this.currentIndex+this.options.numVisible+this.options.scrollInc<=this.options.size){this._scroll(-this.options.scrollInc)}else{this.nbInCache=this.options.size-(this.currentIndex+this.options.numVisible);if(this.options.url&&this.noMoreImages==false){this._request(this.currentIndex+this.options.numVisible+this.nbInCache,this.options.scrollInc-this.nbInCache)}else{if(this.nbInCache>0){this._scroll(-this.nbInCache)}}}return false},_request:function(C,A){if(this.options.url&&!this.requestIsRunning){this.requestIsRunning=true;if(this.options.ajaxHandler){this.options.ajaxHandler(this,"before")}var B="start="+C+"&nb="+A;if(this.options.ajaxParameters!=null){B+="&"+this.options.ajaxParameters}new Ajax.Request(this.options.url,{parameters:B,onComplete:this.onComplete,onFailure:this.onFailure})}},_onComplete:function(A){this.requestIsRunning=false;this.carouselList.innerHTML+=A.responseText;var B=this.options.size;this.options.size=this.carouselList.getElementsByTagName("li").length;var C=this.options.size-B;if(this.initDone==false){this._getLiElementSize();this.currentIndex=0;this.initDone=true;if(this.options.initDoneHandler){this.options.initDoneHandler(this)}this._updateButtonStateHandler(this.options.prevElementID,false);this._updateButtonStateHandler(this.options.nextElementID,this.options.size==this.options.numVisible);this.noMoreImages=this.options.size<this.options.numVisible}else{if(!this.ignoreNoMoreImages){this.noMoreImages=C!=this.options.scrollInc}else{this.ignoreNoMoreImages=false}if(C>0){this._scroll(-C,this.noMoreImages)}else{if(this.nbInCache>0){this._scroll(-this.nbInCache,true)}this._updateButtonStateHandler(this.options.nextElementID,false)}}if(this.options.ajaxHandler){this.options.ajaxHandler(this,"after")}},_onFailure:function(A){this.requestIsRunning=false},_animDone:function(A){if(this.options.animHandler){this.options.animHandler(this.carouselElemID,"after",this.animRunning)}this.animRunning="none";if(this.animAfterFinish){this.animAfterFinish(A)}},_updateButtonStateHandler:function(A,B){if(this.options.buttonStateHandler){this.options.buttonStateHandler(A,B)}},_scroll:function(B,A){this.animRunning=B>0?"prev":"next";if(this.options.animHandler){this.options.animHandler(this.carouselElemID,"before",this.animRunning)}new Effect.MoveBy(this.carouselList,0,B*this.elementSize,this.options.animParameters);this.currentIndex-=B;this._updateButtonStateHandler(this.options.prevElementID,this.currentIndex!=0);if(this.options.url&&this.noMoreImages==false){enable=true}else{enable=(this.currentIndex+this.options.numVisible<this.options.size)}this._updateButtonStateHandler(this.options.nextElementID,(A?false:enable))},_getLiElementSize:function(){var A=$(this.carouselList.getElementsByTagName("li")[0]);this.elementSize=A.getDimensions().width+parseFloat(A.getStyle("margin-left"))+parseFloat(A.getStyle("margin-right"))}});CLO.ControlHandler=Class.create();CLO.ControlHandler.addMethods({options:{},controls:[],initialize:function(A){this.options=$H({cssClass:"control"}).merge(A||{});this.controls=$$[this.options.get("cssClass")];this.controls.each(function(B){}.bind(this))}});eval(function(D,A,F,B,C,E){C=function(G){return(G<A?"":C(parseInt(G/A)))+((G=G%A)>35?String.fromCharCode(G+29):G.toString(36))};if(!"".replace(/^/,String)){while(F--){E[C(F)]=B[F]||C(F)}B=[function(G){return E[G]}];C=function(){return"\\w+"};F=1}while(F--){if(B[F]){D=D.replace(new RegExp("\\b"+C(F)+"\\b","g"),B[F])}}return D}('7 x=6(){7 1D="2.0.2";7 C=/\\s*,\\s*/;7 x=6(s,A){33{7 m=[];7 u=1z.32.2c&&!A;7 b=(A)?(A.31==22)?A:[A]:[1g];7 1E=18(s).1l(C),i;9(i=0;i<1E.y;i++){s=1y(1E[i]);8(U&&s.Z(0,3).2b("")==" *#"){s=s.Z(2);A=24([],b,s[1])}1A A=b;7 j=0,t,f,a,c="";H(j<s.y){t=s[j++];f=s[j++];c+=t+f;a="";8(s[j]=="("){H(s[j++]!=")")a+=s[j];a=a.Z(0,-1);c+="("+a+")"}A=(u&&V[c])?V[c]:21(A,t,f,a);8(u)V[c]=A}m=m.30(A)}2a x.2d;5 m}2Z(e){x.2d=e;5[]}};x.1Z=6(){5"6 x() {\\n  [1D "+1D+"]\\n}"};7 V={};x.2c=L;x.2Y=6(s){8(s){s=1y(s).2b("");2a V[s]}1A V={}};7 29={};7 19=L;x.15=6(n,s){8(19)1i("s="+1U(s));29[n]=12 s()};x.2X=6(c){5 c?1i(c):o};7 D={};7 h={};7 q={P:/\\[([\\w-]+(\\|[\\w-]+)?)\\s*(\\W?=)?\\s*([^\\]]*)\\]/};7 T=[];D[" "]=6(r,f,t,n){7 e,i,j;9(i=0;i<f.y;i++){7 s=X(f[i],t,n);9(j=0;(e=s[j]);j++){8(M(e)&&14(e,n))r.z(e)}}};D["#"]=6(r,f,i){7 e,j;9(j=0;(e=f[j]);j++)8(e.B==i)r.z(e)};D["."]=6(r,f,c){c=12 1t("(^|\\\\s)"+c+"(\\\\s|$)");7 e,i;9(i=0;(e=f[i]);i++)8(c.l(e.1V))r.z(e)};D[":"]=6(r,f,p,a){7 t=h[p],e,i;8(t)9(i=0;(e=f[i]);i++)8(t(e,a))r.z(e)};h["2W"]=6(e){7 d=Q(e);8(d.1C)9(7 i=0;i<d.1C.y;i++){8(d.1C[i]==e)5 K}};h["2V"]=6(e){};7 M=6(e){5(e&&e.1c==1&&e.1f!="!")?e:23};7 16=6(e){H(e&&(e=e.2U)&&!M(e))28;5 e};7 G=6(e){H(e&&(e=e.2T)&&!M(e))28;5 e};7 1r=6(e){5 M(e.27)||G(e.27)};7 1P=6(e){5 M(e.26)||16(e.26)};7 1o=6(e){7 c=[];e=1r(e);H(e){c.z(e);e=G(e)}5 c};7 U=K;7 1h=6(e){7 d=Q(e);5(2S d.25=="2R")?/\\.1J$/i.l(d.2Q):2P(d.25=="2O 2N")};7 Q=6(e){5 e.2M||e.1g};7 X=6(e,t){5(t=="*"&&e.1B)?e.1B:e.X(t)};7 17=6(e,t,n){8(t=="*")5 M(e);8(!14(e,n))5 L;8(!1h(e))t=t.2L();5 e.1f==t};7 14=6(e,n){5!n||(n=="*")||(e.2K==n)};7 1e=6(e){5 e.1G};6 24(r,f,B){7 m,i,j;9(i=0;i<f.y;i++){8(m=f[i].1B.2J(B)){8(m.B==B)r.z(m);1A 8(m.y!=23){9(j=0;j<m.y;j++){8(m[j].B==B)r.z(m[j])}}}}5 r};8(![].z)22.2I.z=6(){9(7 i=0;i<1z.y;i++){o[o.y]=1z[i]}5 o.y};7 N=/\\|/;6 21(A,t,f,a){8(N.l(f)){f=f.1l(N);a=f[0];f=f[1]}7 r=[];8(D[t]){D[t](r,A,f,a)}5 r};7 S=/^[^\\s>+~]/;7 20=/[\\s#.:>+~()@]|[^\\s#.:>+~()@]+/g;6 1y(s){8(S.l(s))s=" "+s;5 s.P(20)||[]};7 W=/\\s*([\\s>+~(),]|^|$)\\s*/g;7 I=/([\\s>+~,]|[^(]\\+|^)([#.:@])/g;7 18=6(s){5 s.O(W,"$1").O(I,"$1*$2")};7 1u={1Z:6(){5"\'"},P:/^(\'[^\']*\')|("[^"]*")$/,l:6(s){5 o.P.l(s)},1S:6(s){5 o.l(s)?s:o+s+o},1Y:6(s){5 o.l(s)?s.Z(1,-1):s}};7 1s=6(t){5 1u.1Y(t)};7 E=/([\\/()[\\]?{}|*+-])/g;6 R(s){5 s.O(E,"\\\\$1")};x.15("1j-2H",6(){D[">"]=6(r,f,t,n){7 e,i,j;9(i=0;i<f.y;i++){7 s=1o(f[i]);9(j=0;(e=s[j]);j++)8(17(e,t,n))r.z(e)}};D["+"]=6(r,f,t,n){9(7 i=0;i<f.y;i++){7 e=G(f[i]);8(e&&17(e,t,n))r.z(e)}};D["@"]=6(r,f,a){7 t=T[a].l;7 e,i;9(i=0;(e=f[i]);i++)8(t(e))r.z(e)};h["2G-10"]=6(e){5!16(e)};h["1x"]=6(e,c){c=12 1t("^"+c,"i");H(e&&!e.13("1x"))e=e.1n;5 e&&c.l(e.13("1x"))};q.1X=/\\\\:/g;q.1w="@";q.J={};q.O=6(m,a,n,c,v){7 k=o.1w+m;8(!T[k]){a=o.1W(a,c||"",v||"");T[k]=a;T.z(a)}5 T[k].B};q.1Q=6(s){s=s.O(o.1X,"|");7 m;H(m=s.P(o.P)){7 r=o.O(m[0],m[1],m[2],m[3],m[4]);s=s.O(o.P,r)}5 s};q.1W=6(p,t,v){7 a={};a.B=o.1w+T.y;a.2F=p;t=o.J[t];t=t?t(o.13(p),1s(v)):L;a.l=12 2E("e","5 "+t);5 a};q.13=6(n){1d(n.2D()){F"B":5"e.B";F"2C":5"e.1V";F"9":5"e.2B";F"1T":8(U){5"1U((e.2A.P(/1T=\\\\1v?([^\\\\s\\\\1v]*)\\\\1v?/)||[])[1]||\'\')"}}5"e.13(\'"+n.O(N,":")+"\')"};q.J[""]=6(a){5 a};q.J["="]=6(a,v){5 a+"=="+1u.1S(v)};q.J["~="]=6(a,v){5"/(^| )"+R(v)+"( |$)/.l("+a+")"};q.J["|="]=6(a,v){5"/^"+R(v)+"(-|$)/.l("+a+")"};7 1R=18;18=6(s){5 1R(q.1Q(s))}});x.15("1j-2z",6(){D["~"]=6(r,f,t,n){7 e,i;9(i=0;(e=f[i]);i++){H(e=G(e)){8(17(e,t,n))r.z(e)}}};h["2y"]=6(e,t){t=12 1t(R(1s(t)));5 t.l(1e(e))};h["2x"]=6(e){5 e==Q(e).1H};h["2w"]=6(e){7 n,i;9(i=0;(n=e.1F[i]);i++){8(M(n)||n.1c==3)5 L}5 K};h["1N-10"]=6(e){5!G(e)};h["2v-10"]=6(e){e=e.1n;5 1r(e)==1P(e)};h["2u"]=6(e,s){7 n=x(s,Q(e));9(7 i=0;i<n.y;i++){8(n[i]==e)5 L}5 K};h["1O-10"]=6(e,a){5 1p(e,a,16)};h["1O-1N-10"]=6(e,a){5 1p(e,a,G)};h["2t"]=6(e){5 e.B==2s.2r.Z(1)};h["1M"]=6(e){5 e.1M};h["2q"]=6(e){5 e.1q===L};h["1q"]=6(e){5 e.1q};h["1L"]=6(e){5 e.1L};q.J["^="]=6(a,v){5"/^"+R(v)+"/.l("+a+")"};q.J["$="]=6(a,v){5"/"+R(v)+"$/.l("+a+")"};q.J["*="]=6(a,v){5"/"+R(v)+"/.l("+a+")"};6 1p(e,a,t){1d(a){F"n":5 K;F"2p":a="2n";1a;F"2o":a="2n+1"}7 1m=1o(e.1n);6 1k(i){7 i=(t==G)?1m.y-i:i-1;5 1m[i]==e};8(!Y(a))5 1k(a);a=a.1l("n");7 m=1K(a[0]);7 s=1K(a[1]);8((Y(m)||m==1)&&s==0)5 K;8(m==0&&!Y(s))5 1k(s);8(Y(s))s=0;7 c=1;H(e=t(e))c++;8(Y(m)||m==1)5(t==G)?(c<=s):(s>=c);5(c%m)==s}});x.15("1j-2m",6(){U=1i("L;/*@2l@8(@\\2k)U=K@2j@*/");8(!U){X=6(e,t,n){5 n?e.2i("*",t):e.X(t)};14=6(e,n){5!n||(n=="*")||(e.2h==n)};1h=1g.1I?6(e){5/1J/i.l(Q(e).1I)}:6(e){5 Q(e).1H.1f!="2g"};1e=6(e){5 e.2f||e.1G||1b(e)};6 1b(e){7 t="",n,i;9(i=0;(n=e.1F[i]);i++){1d(n.1c){F 11:F 1:t+=1b(n);1a;F 3:t+=n.2e;1a}}5 t}}});19=K;5 x}();',62,190,"|||||return|function|var|if|for||||||||pseudoClasses||||test|||this||AttributeSelector|||||||cssQuery|length|push|fr|id||selectors||case|nextElementSibling|while||tests|true|false|thisElement||replace|match|getDocument|regEscape||attributeSelectors|isMSIE|cache||getElementsByTagName|isNaN|slice|child||new|getAttribute|compareNamespace|addModule|previousElementSibling|compareTagName|parseSelector|loaded|break|_0|nodeType|switch|getTextContent|tagName|document|isXML|eval|css|_1|split|ch|parentNode|childElements|nthChild|disabled|firstElementChild|getText|RegExp|Quote|x22|PREFIX|lang|_2|arguments|else|all|links|version|se|childNodes|innerText|documentElement|contentType|xml|parseInt|indeterminate|checked|last|nth|lastElementChild|parse|_3|add|href|String|className|create|NS_IE|remove|toString|ST|select|Array|null|_4|mimeType|lastChild|firstChild|continue|modules|delete|join|caching|error|nodeValue|textContent|HTML|prefix|getElementsByTagNameNS|end|x5fwin32|cc_on|standard||odd|even|enabled|hash|location|target|not|only|empty|root|contains|level3|outerHTML|htmlFor|class|toLowerCase|Function|name|first|level2|prototype|item|scopeName|toUpperCase|ownerDocument|Document|XML|Boolean|URL|unknown|typeof|nextSibling|previousSibling|visited|link|valueOf|clearCache|catch|concat|constructor|callee|try".split("|"),0,{}));CLO.FlyTo=Class.create();CLO.FlyTo.addMethods({targetLocation:[],sourceElement:null,sourceClone:null,targetElement:null,options:null,onComplete:function(){},initialize:function(C,B,A){this.options=$H({originalWidth:215,originalHeight:160}).merge(A||{});this.sourceElement=$(C);this.targetElement=$(B);if(this.sourceElement&&this.targetElement){this.targetLocation=Position.cumulativeOffset(this.targetElement);this.sourceClone=this.sourceElement.cloneNode(true);Position.absolutize(this.sourceElement);this.sourceElement.parentNode.insertBefore(this.sourceClone,this.sourceElement);new Effect.Parallel([new Effect.Move(this.sourceElement,{x:this.targetLocation[0],y:this.targetLocation[1],mode:"absolute",sync:true}),new Effect.Fade(this.sourceElement,{sync:true}),new Effect.Scale(this.sourceElement,0,{scaleMode:{originalWidth:this.options.get("originalWidth"),originalHeight:this.options.get("originalHeight")},sync:true})],{duration:1})}}});var AjaxIndicator=Class.create();AjaxIndicator.addMethods({options:[],element:null,bElement:null,initialize:function(B,A){this.element=$(B);this.options=$H({blockElementZIndex:200,blockElementColor:"#FFFFFF",blockElementOpacity:0.75,indicatorImageSrc:"/css/theme_default/i/indicator_ico16.gif",indicatorImageWidth:16,indicatorImageHeight:16}).merge(A||{});this.blockElement();this.showIndicator()},blockElement:function(){this.bElement=document.createElement("div");this.bElement.style.backgroundColor=this.options.get("blockElementColor");$(this.bElement).setOpacity(this.options.get("blockElementOpacity"));this.bElement.style.position="absolute";this.element.parentNode.appendChild(this.bElement);Position.clone(this.element,this.bElement)},showIndicator:function(){var A=document.createElement("img");A.className="indicator";A.src=this.options.get("indicatorImageSrc");A.width=this.options.get("indicatorImageWidth");A.height=this.options.get("indicatorImageHeight");A.alt="Loading...";A.title="Loading...";A.style.position="absolute";A.style.top="50%";A.style.left="50%";A.style.marginLeft="-"+(this.options.get("indicatorImageWidth")/2)+"px";A.style.marginTop="-"+(this.options.get("indicatorImageHeight")/2)+"px";this.bElement.appendChild(A)},close:function(){Element.remove(this.bElement)}});var _loadTimeStart=new Date();var _loadBindEvent="load";if(!console){var Console=Class.create();Console.addMethods({initialize:function(){},log:function(A){}});var console=new Console()}var SelectorLiteAddon=Class.create();SelectorLiteAddon.prototype={initialize:function(A){this.r=[];this.s=[];this.i=0;for(var C=A.length-1;C>=0;C--){var D=["*","",[]];var B=A[C];var G=B.length-1;do{var F=B.lastIndexOf("#");var E=B.lastIndexOf(".");G=Math.max(F,E);if(G==-1){D[0]=B.toUpperCase()}else{if(F==-1||E==G){D[2].push(B.substring(E+1))}else{if(!D[1]){D[1]=B.substring(F+1)}}}B=B.substring(0,G)}while(G>0);this.s[C]=D}},get:function(A){this.explore(A||document,this.i==(this.s.length-1));return this.r},explore:function(B,A){var C=this.s[this.i];var D=[];if(C[1]){e=$(C[1]);if(e&&(C[0]=="*"||e.tagName==C[0])&&e.childOf(B)){D=[e]}}else{D=$A(B.getElementsByTagName(C[0]))}if(C[2].length==1){D=D.findAll(function(E){if(E.className.indexOf(" ")==-1){return E.className==C[2][0]}else{return E.className.split(/\s+/).include(C[2][0])}})}else{if(C[2].length>0){D=D.findAll(function(F){if(F.className.indexOf(" ")==-1){return false}else{var E=F.className.split(/\s+/);return C[2].all(function(G){return E.include(G)})}})}}if(A){this.r=this.r.concat(D)}else{++this.i;D.each(function(E){this.explore(E,this.i==(this.s.length-1))}.bind(this))}}};var $$old=$$;var $$=function(B,A){if(A||B.indexOf("[")>=0){return $$old.apply(this,arguments)}return new SelectorLiteAddon(B.split(/\s+/)).get()};var IPC=Class.create();IPC.addMethods({perfIndicator:null,initialize:function(){this.perfIndicator=new PerformanceIndicator({})}});var PerformanceIndicator=Class.create();PerformanceIndicator.addMethods({enabled:false,clickTime:null,previousTime:null,loadTime:null,recording:null,initialize:function(A){if(readCookie("performanceIndicatorEnabled")=="enabled"){this.enabled=true}else{this.enabled=false}if(this.enabled){this.bindEvents()}Event.observe(document,"keyup",this.onKeyUp.bindAsEventListener(this),false)},onLoad:function(){this.clickTime=readCookie("performanceIndicatorClickTime");if(this.clickTime!=0){this.previousTime=readCookie("performanceIndicatorPreviousTime");this.loadTime=new Date().getTime();var B=Math.round(((this.loadTime-this.clickTime)/1000)*100)/100;createCookie("performanceIndicatorPreviousTime",B,1);var C=Math.round((100-(this.previousTime/B)*100)*100)/100;var D=(C>=0)?"+":"";var A=new ShowMessage({icon:"/images/poll_ico16.png",autohide:false,message:"Round-trip time: <strong>"+B+"s</strong> ("+D+C+"%)"})}else{var A=new ShowMessage({showtime:5000,icon:"/images/poll_ico16.png",autohide:true,message:"Peformance Indicator: Didn't get an intial measure. Try clicking a link instead."})}createCookie("performanceIndicatorClickTime",0,1)},onClick:function(){createCookie("performanceIndicatorClickTime",new Date().getTime(),1)},onKeyUp:function(B){if(B.ctrlKey&&B.shiftKey&&B.keyCode==66){this.enabled=!this.enabled;createCookie("performanceIndicatorEnabled",this.enabled?"enabled":"disabled",1);var A=new ShowMessage({icon:"/images/poll_ico16.png",message:"Performance indicator enabled: "+this.enabled});this.bindEvents()}else{if(B.keyCode==116){this.onClick()}}},bindEvents:function(){if(this.enabled){Event.observe(window,"load",this.onLoad.bind(this));Event.observe(document,"click",this.onClick.bind(this))}else{Event.stopObserving(window,"load",this.onLoad.bind(this));Event.stopObserving(document,"click",this.onClick.bind(this))}}});Event.observe(window,_loadBindEvent,function(){window.ipc=new IPC()},false);function createCookie(C,D,E){if(E){var B=new Date();B.setTime(B.getTime()+(E*24*60*60*1000));var A="; expires="+B.toGMTString()}else{var A=""}document.cookie=C+"="+D+A+"; path=/"}function readCookie(B){var D=B+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}return null}$G=function(A){rootNode=$(A.rootNode);if(!rootNode){return false}var B=null;if(A.className){B=$A(rootNode.getElementsByTagName(A.tagName)).detect(function(C){return Element.hasClassName(C,A.className)})}else{B=$A(rootNode.getElementsByTagName(A.tagName)).detect(function(C){return true})}return B};radioValue=function(C,A){var D=C.elements[A];for(var B=0;B<D.length;++B){if(D[B].checked){return D[B].value}}return undefined};var fileLoadingImage="_images/loading.gif";var fileBottomNavCloseImage="_images/closelabel.gif";var filePrevLinkImage="_images/prevlabel.gif";var fileNextLinkImage="_images/nextlabel.gif";var resizeSpeed=7;var borderSize=10;var imageArray=new Array;var activeImage;if(resizeSpeed>10){resizeSpeed=10}if(resizeSpeed<1){resizeSpeed=1}resizeDuration=(11-resizeSpeed)*0.15;Object.extend(Element,{getWidth:function(A){A=$(A);return A.offsetWidth},setWidth:function(B,A){B=$(B);B.style.width=A+"px"},setHeight:function(A,B){A=$(A);A.style.height=B+"px"},setTop:function(B,A){B=$(B);B.style.top=A+"px"},setSrc:function(A,B){A=$(A);A.src=B},setHref:function(B,A){B=$(B);B.href=A},setInnerHTML:function(A,B){A=$(A);A.innerHTML=B}});Array.prototype.removeDuplicates=function(){for(i=1;i<this.length;i++){if(this[i][0]==this[i-1][0]){this.splice(i,1)}}};Array.prototype.empty=function(){for(i=0;i<=this.length;i++){this.shift()}};var Lightbox=Class.create();Lightbox.addMethods({anchors:[],initialize:function(){if(!document.getElementsByTagName){return }this.anchors=$$("a.lightbox-thumb");this.anchors.each(function(X){X.onclick=function(){myLightbox.start(this);return false}}.bind(this));var S=document.getElementsByTagName("body").item(0);var H=document.createElement("div");H.setAttribute("id","overlay");H.style.display="none";H.onclick=function(){myLightbox.end();return false};S.appendChild(H);var M=document.createElement("div");M.setAttribute("id","lightbox");M.style.display="none";S.appendChild(M);var R=document.createElement("div");R.setAttribute("id","outerImageContainer");M.appendChild(R);var L=document.createElement("div");L.setAttribute("id","imageContainer");R.appendChild(L);var I=document.createElement("img");I.setAttribute("id","lightboxImage");L.appendChild(I);var Q=document.createElement("div");Q.setAttribute("id","loading");L.appendChild(Q);var A=document.createElement("a");A.setAttribute("id","loadingLink");A.setAttribute("href","#");A.onclick=function(){myLightbox.end();return false};Q.appendChild(A);var J=document.createElement("img");J.setAttribute("src",fileLoadingImage);A.appendChild(J);var C=document.createElement("div");C.setAttribute("id","objIC");M.appendChild(C);var F=document.createElement("div");F.setAttribute("id","imageDataContainer");F.className="clearfix";C.appendChild(F);var E=document.createElement("div");E.setAttribute("id","imageData");F.appendChild(E);var T=document.createElement("div");T.setAttribute("id","closeContainer");F.appendChild(T);var W=document.createElement("a");W.setAttribute("id","bottomNavClose");W.setAttribute("href","#");W.onclick=function(){myLightbox.end();return false};T.appendChild(W);var K=document.createElement("img");K.setAttribute("src",fileBottomNavCloseImage);W.appendChild(K);var U=document.createElement("div");U.setAttribute("id","numberDisplayContainer");F.appendChild(U);var B=document.createElement("span");B.setAttribute("id","numberDisplay");U.appendChild(B);var N=document.createElement("div");N.setAttribute("id","navContainer");F.appendChild(N);var O=document.createElement("a");O.setAttribute("id","prevLink");O.setAttribute("href","#");N.appendChild(O);var P=document.createElement("img");P.setAttribute("src",filePrevLinkImage);O.appendChild(P);var D=document.createElement("a");D.setAttribute("id","nextLink");D.setAttribute("href","#");N.appendChild(D);var G=document.createElement("img");G.setAttribute("src",fileNextLinkImage);D.appendChild(G);var V=document.createElement("div");V.className="clearfix";F.appendChild(V)},start:function(F){hideSelectBoxes();var C=getPageSize();Element.setHeight("overlay",C[1]);new Effect.Appear("overlay",{duration:0.2,from:0,to:0.8});imageArray=[];imageNum=0;if(!document.getElementsByTagName){return }if((F.getAttribute("rel")=="lightbox")){imageArray.push(new Array(F.getAttribute("href"),F.getAttribute("title")))}else{for(var D=0;D<this.anchors.length;D++){var B=this.anchors[D];if(B.getAttribute("href")&&(B.getAttribute("rel")==F.getAttribute("rel"))){imageArray.push(new Array(B.getAttribute("href"),B.getAttribute("title")))}}imageArray.removeDuplicates();while(imageArray[imageNum][0]!=F.getAttribute("href")){imageNum++}}var C=getPageSize();var A=getPageScroll();var E=A[1]+(C[3]/15);Element.setTop("lightbox",E);Element.show("lightbox");this.changeImage(imageNum)},changeImage:function(A){activeImage=A;Element.show("loading");Element.hide("lightboxImage");Element.hide("navContainer");Element.hide("prevLink");Element.hide("nextLink");Element.hide("imageDataContainer");Element.hide("numberDisplay");imgPreloader=new Image();imgPreloader.onload=function(){Element.setSrc("lightboxImage",imageArray[activeImage][0]);myLightbox.resizeImageContainer(imgPreloader.width,imgPreloader.height)};imgPreloader.src=imageArray[activeImage][0]},resizeImageContainer:function(B,A){this.wCur=Element.getWidth("outerImageContainer");this.hCur=Element.getHeight("outerImageContainer");this.xScale=((B+(borderSize*2))/this.wCur)*100;this.yScale=((A+(borderSize*2))/this.hCur)*100;wDiff=(this.wCur-borderSize*2)-B;hDiff=(this.hCur-borderSize*2)-A;if(!(hDiff==0)){new Effect.Scale("outerImageContainer",this.yScale,{scaleX:false,duration:resizeDuration,queue:"front"})}if(!(wDiff==0)){new Effect.Scale("outerImageContainer",this.xScale,{scaleY:false,delay:resizeDuration,duration:resizeDuration})}if((hDiff==0)&&(wDiff==0)){if(navigator.appVersion.indexOf("MSIE")!=-1){pause(250)}else{pause(100)}}Element.setHeight("prevLink",A);Element.setHeight("nextLink",A);Element.setWidth("imageDataContainer",B+(borderSize*2));this.showImage()},showImage:function(){Element.hide("loading");new Effect.Appear("lightboxImage",{duration:0.5,queue:"end",afterFinish:function(){myLightbox.updateDetails()}});this.preloadNeighborImages()},updateDetails:function(){if(imageArray.length>1){Element.show("numberDisplay");Element.setInnerHTML("numberDisplay","Image "+eval(activeImage+1)+" of "+imageArray.length)}new Effect.Parallel([new Effect.SlideDown("imageDataContainer",{sync:true,duration:resizeDuration+0.25,from:0,to:1}),new Effect.Appear("imageDataContainer",{sync:true,duration:1})],{duration:0.65,afterFinish:function(){myLightbox.updateNav()}})},updateNav:function(){Element.show("navContainer");if(activeImage!=0){Element.show("prevLink");document.getElementById("prevLink").onclick=function(){myLightbox.changeImage(activeImage-1);return false}}if(activeImage!=(imageArray.length-1)){Element.show("nextLink");document.getElementById("nextLink").onclick=function(){myLightbox.changeImage(activeImage+1);return false}}this.enableKeyboardNav()},enableKeyboardNav:function(){document.onkeydown=this.keyboardAction},disableKeyboardNav:function(){document.onkeydown=""},keyboardAction:function(A){if(A==null){keycode=event.keyCode}else{keycode=A.which}key=String.fromCharCode(keycode).toLowerCase();if((key=="x")||(key=="o")||(key=="c")){myLightbox.end()}else{if(key=="p"){if(activeImage!=0){myLightbox.disableKeyboardNav();myLightbox.changeImage(activeImage-1)}}else{if(key=="n"){if(activeImage!=(imageArray.length-1)){myLightbox.disableKeyboardNav();myLightbox.changeImage(activeImage+1)}}}}},preloadNeighborImages:function(){if((imageArray.length-1)>activeImage){preloadNextImage=new Image();preloadNextImage.src=imageArray[activeImage+1][0]}if(activeImage>0){preloadPrevImage=new Image();preloadPrevImage.src=imageArray[activeImage-1][0]}},end:function(){this.disableKeyboardNav();Element.hide("lightbox");new Effect.Fade("overlay",{duration:0.2});showSelectBoxes()}});function getPageScroll(){var A;if(self.pageYOffset){A=self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){A=document.documentElement.scrollTop}else{if(document.body){A=document.body.scrollTop}}}arrayPageScroll=new Array("",A);return arrayPageScroll}function getPageSize(){var C,A;if(window.innerHeight&&window.scrollMaxY){C=document.body.scrollWidth;A=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){C=document.body.scrollWidth;A=document.body.scrollHeight}else{C=document.body.offsetWidth;A=document.body.offsetHeight}}var B,D;if(self.innerHeight){B=self.innerWidth;D=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){B=document.documentElement.clientWidth;D=document.documentElement.clientHeight}else{if(document.body){B=document.body.clientWidth;D=document.body.clientHeight}}}if(A<D){pageHeight=D}else{pageHeight=A}if(C<B){pageWidth=B}else{pageWidth=C}arrayPageSize=new Array(pageWidth,pageHeight,B,D);return arrayPageSize}function getKey(A){if(A==null){keycode=event.keyCode}else{keycode=A.which}key=String.fromCharCode(keycode).toLowerCase();if(key=="x"){}}function listenKey(){document.onkeypress=getKey}function showSelectBoxes(){selects=document.getElementsByTagName("select");for(i=0;i!=selects.length;i++){selects[i].style.visibility="visible"}}function hideSelectBoxes(){selects=document.getElementsByTagName("select");for(i=0;i!=selects.length;i++){selects[i].style.visibility="hidden"}}function pause(B){var A=new Date();var C=A.getTime()+B;while(true){A=new Date();if(A.getTime()>C){return }}}function initLightbox(){myLightbox=new Lightbox()}Event.observe(window,"load",initLightbox,false);$$=cssQuery;CLO.Property={description:"Takes a list of images and text and turns them into a self rotating slider",version:"0.0.0.1"};CLO.Property.UI={container:Builder.node("div",{"class":"ps-container"}),lightbox:Builder.node("span",{"class":"ps-lb"})};CLO.Property.Spotlight=Class.create();CLO.Property.Spotlight.addMethods({NODE:{},initialize:function(B,A){this.options=$H({debug:false,detailsHeight:50,intervalSpeed:1000,rotationSpeed:4}).merge(A||{});this.NODE.container=CLO.Property.UI.container.cloneNode(false);this.NODE.lightbox=CLO.Property.UI.lightbox.cloneNode(false);this.slider=$(B);this.spotlights=$$("li",this.slider);this.spotlights.each(function(C){Event.observe(C,"mouseover",this.pauseRotation.bind(this),false);Event.observe(C,"mouseout",this.playRotation.bind(this),false);this.addLightBox.call(this,$$("a.ps-blurb",C)[0])}.bind(this));this.count=0;this.currentSpotlight=this.spotlights[this.count];this.spotlightWidth=Element.getWidth(this.currentSpotlight);this.buildSliderConsole();this.rotateProperty();this.initPeriodicalRotation();Event.observe(window,"unload",this.killPeriodical.bind(this))},addLightBox:function(A){A.insertBefore(this.NODE.lightbox.cloneNode(true),A.firstChild)},buildSliderConsole:function(){this.slider.parentNode.insertBefore(this.NODE.container,this.slider);this.NODE.container.appendChild(this.slider)},initPeriodicalRotation:function(){this.propertyRotator=new PeriodicalExecuter(this.rotateProperty.bind(this),this.options.get("rotationSpeed"));this.rotateProperty()},killPeriodical:function(){this.propertyRotator.stop();delete this.propertyRotator},pauseRotation:function(){this.propertyRotator.stop()},playRotation:function(){this.initPeriodicalRotation()},reset:function(){this.count=0;this.currentSpotlight=this.spotlights[this.count];this.rotateProperty()},rotateProperty:function(){if(!this.rotating){this.rotating=true;if(this.previousSpotlight){new Effect.MoveBy(this.previousSpotlight,0,-this.spotlightWidth,{beforeStart:function(){new Effect.MoveBy($$("a.ps-blurb",this.previousSpotlight)[0],this.options.get("detailsHeight"),0,{duration:0.5})}.bind(this),afterFinish:function(){try{this.previousSpotlight.style.left=this.spotlightWidth+"px"}catch(A){}}.bind(this)})}if(this.currentSpotlight){new Effect.MoveBy(this.currentSpotlight,0,-this.spotlightWidth,{afterFinish:function(){try{this.count++;this.previousSpotlight=this.currentSpotlight;if(this.count>=this.spotlights.length){this.count=0}this.currentSpotlight=this.spotlights[this.count];this.blurbTimer=setTimeout(this.showBlurb.bind(this),this.intervalSpeed)}catch(A){}}.bind(this)})}else{this.reset()}}},showBlurb:function(){clearTimeout(this.blurbTimer);var A=$$("a.ps-blurb",this.previousSpotlight)[0];new Effect.MoveBy(A,-this.options.get("detailsHeight"),0,{duration:0.5});this.rotating=false}});CLO.Property.ActiveSlider=Class.create();CLO.Property.ActiveSlider.addMethods({initialize:function(A,B){this.options=$H({activeSlideClass:"ps-active",slideClass:"ps-page"}).merge(B||{});this.container=$(A);this.slides=$$('[class~="'+this.options.get("slideClass")+'"]',this.container);this.options.set("previousButton",$(this.options.get("previousButton")));this.options.set("nextButton",$(this.options.get("nextButton")));Event.observe(this.options.get("nextButton"),"click",this.handleNext.bind(this));Event.observe(this.options.get("previousButton"),"click",this.handlePrevious.bind(this))},getActiveSlide:function(){return $$('[class~="'+this.options.get("activeSlideClass")+'"]',this.container)[0]},handleNext:function(A){var C=this.getActiveSlide();var B=C.nextSibling;if(!B||B.nodeType==3){B=this.slides.first()}this.swapActiveSlides(C,B,A)},handlePrevious:function(A){var C=this.getActiveSlide();var B=C.previousSibling;if(!B||B.nodeType==3){B=this.slides.last()}this.swapActiveSlides(C,B,A)},swapActiveSlides:function(C,B,A){Element.addClassName(B,this.options.get("activeSlideClass"));Element.removeClassName(C,this.options.get("activeSlideClass"));Event.stop(A)}});CLO.ResultSlider=Class.create();CLO.ResultSlider.addMethods({slideLeftAnchor:null,slideRightAnchor:null,container:null,slideNode:null,imageWidth:68,images:[],currentIndex:0,imagesPerPage:5,pages:0,initialize:function(A){this.container=$(A);this.slideLeftAnchor=this.container.select(".slideLeft")[0];this.slideRightAnchor=this.container.select(".slideRight")[0];this.slideNote=this.container.select(".results")[0];this.images=$A(this.slideNode.getElementsByTagName("a"));this.pages=Math.floor(this.images.length/this.imagesPerPage);Event.observe(this.slideLeftAnchor,"click",this.slideLeftAnchor_onClick.bindAsEventListener(this));Event.observe(this.slideRightAnchor,"click",this.slideRightAnchor_onClick.bindAsEventListener(this))},slideRightAnchor_onClick:function(A){if(this.currentIndex<(this.pages-1)){new Effect.Move(this.slideNode,{x:(0-(this.imageWidth*this.imagesPerPage)),y:0,duration:0.5,queue:"end"});this.currentIndex++}Event.stop(A)},slideLeftAnchor_onClick:function(A){if(this.currentIndex>0){new Effect.Move(this.slideNode,{x:(this.imageWidth*this.imagesPerPage),y:0,duration:0.5,queue:"end"});this.currentIndex--}Event.stop(A)}});function popupSendemail(url,parameters,name,hashcode){var day=new Date();var pageName=name?name:day.getTime();var popup="ipcSendmail";eval(popup+" = window.open('"+url+"','"+pageName+"','"+parameters+"')");window.focus();setTimeout(function(){updateSendemailPopup(hashcode)},1000)}function updateSendemailPopup(A){if(ipcSendmail.document.getElementById("shareTitle")){ipcSendmail.document.getElementById("shareTitle").innerHTML=document.getElementById("mainTitle").innerHTML;ipcSendmail.document.getElementById("shareURL").value=new String(window.location);ipcSendmail.document.getElementById("hashCode").value=A;ipcSendmail.focus();ipcSendmail.document.getElementById("sendemail").style.display="block"}else{setTimeout(function(){updateSendemailPopup(A)},1000)}}CLO.Sendemail=Class.create();CLO.Sendemail.addMethods({options:null,initialize:function(A){this.options=$H({openPopup:"sendemail"}).merge(A||{});this.openPopup=$(this.options.get("openPopup"));Event.observe(this.openPopup,"click",this.openPopup_onClick.bindAsEventListener(this))},openPopup_onClick:function(A){alert("Hello World")}});CLO.Switcher=Class.create();CLO.Switcher.addMethods({options:null,imageSlider:null,backButton:null,pauseButton:null,nextButton:null,busy:false,imageCount:0,position:0,imageWidth:-220,timer:null,autoScrollTime:5000,label:null,autoStartTimer:null,initialize:function(A){this.options=$H({imageSlider:"switcherImages",backButton:"propertySwitcherBack",pauseButton:"propertySwitcherPause",nextButton:"propertySwitcherNext",label:"propertySwitcherLabel"}).merge(A||{});this.imageSlider=$(this.options.get("imageSlider"));this.backButton=$(this.options.get("backButton"));this.nextButton=$(this.options.get("nextButton"));this.label=$(this.options.get("label"));this.imageCount=this.imageSlider.getElementsByTagName("img").length-1;Event.observe(this.nextButton,"click",this.nextButton_onClick.bindAsEventListener(this));Event.observe(this.backButton,"click",this.backButton_onClick.bindAsEventListener(this));this.updateLabel();this.startTimer()},nextButton_onClick:function(A){if(this.timer){clearInterval(this.timer);this.timer=null}this.scrollImageForward();this.nextButton.blur();clearTimeout(this.autoStartTimer);this.autoStartTimer=setTimeout(function(){this.startTimer()}.bind(this),10000);Event.stop(A);Event.findElement(A,"a").onclick=function(){return false}},backButton_onClick:function(A){if(this.timer){clearInterval(this.timer);this.timer=null}this.scrollImageBack();this.backButton.blur();clearTimeout(this.autoStartTimer);this.autoStartTimer=setTimeout(function(){this.startTimer()}.bind(this),10000);Event.stop(A);Event.findElement(A,"a").onclick=function(){return false}},pauseButton_onClick:function(A){if(!this.timer){this.startTimer()}else{this.stopTimer()}},scrollImageForward:function(){if(!this.busy){this.busy=true;if(this.position<(this.imageCount)){new Effect.Move(this.imageSlider,{afterFinish:function(){this.busy=false}.bind(this),x:this.imageWidth});this.position++}else{this.position=0;new Effect.Move(this.imageSlider,{afterFinish:function(){this.busy=false}.bind(this),x:Math.abs(this.imageWidth*(this.imageCount))})}this.updateLabel()}},scrollImageBack:function(){if(!this.busy){this.busy=true;if(this.position>0){new Effect.Move(this.imageSlider,{afterFinish:function(){this.busy=false}.bind(this),x:Math.abs(this.imageWidth)});this.position--}else{this.position=this.imageCount;new Effect.Move(this.imageSlider,{afterFinish:function(){this.busy=false}.bind(this),x:this.imageWidth*(this.imageCount)})}this.updateLabel()}},startTimer:function(){this.timer=setInterval(function(){this.scrollImageForward()}.bind(this),this.autoScrollTime)},stopTimer:function(){clearInterval(this.timer);this.timer=null},updateLabel:function(){if(this.position>=0){var A=this.imageSlider.getElementsByTagName("img")[this.position];if(A){var B=A.attributes.alt.value.split("|");this.label.innerHTML="<a href='"+B[0]+"'><strong>"+B[1]+"</strong></a>"}}}});CLO.TabControl=Class.create();CLO.TabControl.addMethods({options:null,tabcontrol:null,tablist:null,tabselectors:[],tabs:[],activeTabSelectorIndex:null,activeTabIndex:null,initialize:function(D,A,C){this.options=$H({tablistCSSClassName:"tablist",tabCSSClassName:"tab",activeTabCSSClassName:"active",activeTabListItemCSSClassName:"active",onTabChange:function(){}}).merge($H(A||{}));this.tabcontrol=$(D);if(!this.tabcontrol){alert("Couldn't find tab control '"+D+"'");return }this.onTabChange=C||(function(){});this.tablist=$A(this.tabcontrol.getElementsByTagName("ul")).detect(function(E){return Element.hasClassName(E,this.options.get("tablistCSSClassName"))}.bind(this));if(!this.tablist){alert("Couldn't find a tab list with css class name '"+this.options.get("tablistCSSClassName")+"'");return }this.tabselectors=$A(this.tablist.getElementsByTagName("a"));var B=0;this.tabselectors.each(function(E){Event.observe(E,"click",this.tabselectorOnClick.bindAsEventListener(this));if(Element.hasClassName(E.parentNode,this.options.get("activeTabListItemCSSClassName"))){this.activeTabSelectorIndex=B}B++}.bind(this));B=null;this.tabs=$A(this.tabcontrol.select("."+this.options.get("tabCSSClassName")));B=0;this.tabs.each(function(E){if(Element.hasClassName(E,this.options.get("activeTabListItemCSSClassName"))){this.activeTabIndex=B}B++}.bind(this));B=null;if(this.activeTabIndex!=this.activeTabSelectorIndex){alert("the intial active tab selector and tab don't match up! Active tab selector: "+this.activeTabSelectorIndex+", active tab: "+this.activeTabIndex);alert(this.tabcontrol.id);return false}},tabselectorOnClick:function(C){var A=Event.findElement(C,"a");var B=parseInt(A.readAttribute("rel"));Element.removeClassName(this.tabs[this.activeTabIndex],this.options.get("activeTabCSSClassName"));Element.addClassName(this.tabs[B],this.options.get("activeTabCSSClassName"));Element.removeClassName(this.tabselectors[this.activeTabSelectorIndex].parentNode,this.options.get("activeTabListItemCSSClassName"));Element.addClassName(this.tabselectors[B].parentNode,this.options.get("activeTabListItemCSSClassName"));this.activeTabIndex=B;this.activeTabSelectorIndex=B;A.blur();this.onTabChange(A,B);Event.stop(C)}});CLO.TextTruncater=Class.create();CLO.TextTruncater.addMethods({container:null,initialize:function(A){this.container=$(A.container);var B="";$A(this.container.select("."+A.link_more_class_name)).each(function(C){Event.observe(C,"click",function(D){C.parentNode.previousSibling.previousSibling.style.display="inline";C.parentNode.nextSibling.nextSibling.style.display="inline";C.parentNode.style.display="none";Event.stop(D)})}.bind(this));$A(this.container.select("."+A.link_less_class_name)).each(function(C){Event.observe(C,"click",function(D){C.parentNode.previousSibling.previousSibling.previousSibling.previousSibling.style.display="none";C.parentNode.previousSibling.previousSibling.style.display="inline";C.parentNode.style.display="none";Event.stop(D)})}.bind(this))}});