var Accordion=JS.Class({include:Ojay.Observable,initialize:function(E,D,C,B){var A=this.klass.directions[E];this._sections=Ojay(D).map(function(F){return new A(F,C,this,B)},this)},_expandSection:function(A){if(A==this._current){return }if(this._current){this._current.collapse()}this._current=A;this.notifyObservers("sectionexpand",A)},getSections:function(){return this._sections.slice()},extend:{Section:JS.Class({include:JS.State,extend:{EXPANDED:"expanded",COLLAPSED:"collapsed",HOVERED:"hovered",DURATION:0.4,EASING:"easeBoth"},initialize:function(D,C,A,B){this._accordion=A;this._element=Ojay(D);this._element.on("mouseover").addClass(this.klass.HOVERED);this._element.on("mouseout").removeClass(this.klass.HOVERED);this._element.on("click")._(this).expand();this._content=this._element.descendants(C);this._content.setStyle({overflow:"hidden"});if(B){this._dimension=B}},getContainer:function(){return this._element},states:{COLLAPSED:{expand:function(){this._element.replaceClass(this.klass.COLLAPSED,this.klass.EXPANDED);var A={};A[this.direction]={to:this._dimension};if(this._accordion){this._accordion._expandSection(this)}this.setState("EXPANDED");return this._content.animate(A,this.klass.DURATION,{easing:this.klass.EASING})._(this)},toggle:function(){return this.expand()}},EXPANDED:{collapse:function(A){var B={};B[this.direction]={to:0};this.setState("COLLAPSED");var B={};B[this.direction]=(A===false)?0:{to:0};this._element.replaceClass(this.klass.EXPANDED,this.klass.COLLAPSED);if(A!==false){return this._content.animate(B,this.klass.DURATION,{easing:this.klass.EASING})._(this)}else{return this._content.setStyle(B)._(this)}},toggle:function(){return this.collapse()}}}})}});Accordion.extend({HorizontalSection:JS.Class(Accordion.Section,{direction:"width",initialize:function(){this.callSuper();if(!this._dimension){this._dimension=this._content.getWidth()}this._element.addClass(this.klass.COLLAPSED);this.setState("EXPANDED");this.collapse(false)}}),VerticalSection:JS.Class(Accordion.Section,{direction:"height",initialize:function(){this.callSuper();if(!this._dimension){this._dimension=this._content.getHeight()}this._element.addClass(this.klass.COLLAPSED);this.setState("EXPANDED");this.collapse(false)}})});Accordion.extend({directions:{horizontal:Accordion.HorizontalSection,vertical:Accordion.VerticalSection}});var populate=function(B,C){C=C.responseText||C;B=Ojay(B);var A=Ojay(Ojay.HTML.div()).setStyle({height:0,opacity:0,overflow:"hidden"});B.insert(A,"before");A.insert(B);B.setContent(C);A.animate({height:{to:B.getHeight()},opacity:{to:1}},0.5).insert(B,"before").remove()}.curry();var Panel=new JS.Class({initialize:function(A,C,B){this._classes=A;this._block=C;this._HTML=B;this.getHTML()},getHTML:function(){if(this._html){return this._html}var B=this,C=B._classes,E=B._block,D=B._HTML;var A=(typeof E=="function");D=D||Ojay.HTML;this._html=Ojay(D.div({className:"panel "+C},function(F){F.div({className:"panel-c"},function(G){G.div({className:"panel-t"});B._content=Ojay(G.div(function(H){if(A){E(H)}}))});if(!A){B._content.insert(E,"bottom")}F.div({className:"panel-b"},function(G){G.div()})}));return this.getHTML()},setContent:function(){this._content.setContent.apply(this._content,arguments);return this},insert:function(){this._content.insert.apply(this._content,arguments);return this}});PNG={fixRequired:function(){var A=parseInt(navigator.appVersion.split(/MSIE/)[1]);return(A>=5.5&&A<7)},fixAll:function(){if(!PNG.fixRequired()){return }$("img").forEach(function(A){PNG.fix(A.node)})},fix:function(D){if(!PNG.fixRequired()){return }D=$(D).node;if(D){if(D.src.match(/\.png(\?.*)?$/i)){var B=(D.id)?"id='"+D.id+"' ":"";var E=(D.className)?"class='pngfix "+D.className+"' ":"class='pngfix' ";var F=(D.title)?"title='"+D.title+"' ":"title='"+D.alt+"' ";var C="display:inline-block;"+D.style.cssText;if(D.align=="left"){C="float:left;"+C}if(D.align=="right"){C="float:right;"+C}if(D.parentElement.href){C="cursor:hand;"+C}var A="<span "+B+E+F+' style="width:'+D.width+"px; height:"+D.height+"px;"+C+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+D.src+"', sizingMethod='crop');\"></span>";D.outerHTML=A}}},setImageSource:function(A,C){A=$(A).node;if(A){if(A.hasClassName("pngfix")){var B=new Image;B.src=C;A.style.filter=A.style.filter.replace(/(AlphaImageLoader)\(src='[^']*'/,"$1(src='"+C+"'");A.setStyle({width:B.width,height:B.height})}else{A.src=C}}}};Ojay.onDOMReady(function(){PNG.fixAll();var A=Ojay(".click-area");A.on("mouseover",function(C,D){var B=C.descendants("a");if(!B.node){return }C.addClass("click-area-hover");status='Go to "'+B.node.href+'"'});A.on("mouseout",function(C,D){var B=C.descendants("a");if(!B.node){return }C.removeClass("click-area-hover");status=""});A.on("click",function(C,D){var B=C.descendants("a");if(!B.node){return }Ojay.HTTP.GET.redirectTo(B.node.href)})});InfiniteList=new JS.Class({extend:{PER_PAGE:9},initialize:function(A,C,B){this._container=A;this._trigger=C;this._options=B||{};this._options.perPage=this._options.perPage||this.klass.PER_PAGE},getInitialState:function(){return{page:1}},changeState:function(A){this._gotoPage(A.page);return this},setup:function(){this._container=Ojay(this._container);this._trigger=Ojay(this._trigger);this._trigger.on("click",Ojay.stopDefault)._(this).getNext();this._state=this.getInitialState();this._gotoPage(this._state.page);return this},getNext:function(){this.changeState({page:this._state.page+1});return this},getPages:function(){if(!this._options.total){return 0}return(this._options.total/this._options.perPage).ceil()},_gotoPage:function(E){E=Number(E);this._state.page=E;var C=this._trigger.node.innerHTML.stripTags(),A=this.getPages(),B=this._trigger;B.show().setContent(Ojay.HTML.img({src:this.klass.LOADER_IMAGE}));var D=Ojay.URI.parse(this._trigger.node.href);D.setParam("pageNo",1);D.setParam("pageLen",this._options.perPage*E);Ojay.HTTP.GET(D).insertInto(this._container)._(function(F){B[E===A?"hide":"show"]();if(C){B.setContent(F._format(C))}},this)},_format:function(B){var A=this.getPages();var C=(A==this._state.page+1)?(this._options.total-1)%this._options.perPage+1:this._options.perPage;return B.replace(/\d+/g,C)}});var hasFlash=function(){var B=6;if(navigator.appVersion.indexOf("MSIE")!=-1&&navigator.appVersion.indexOf("Windows")>-1){document.write('<script language="VBScript"> \non error resume next \nhasFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & '+B+"))) \n<\/script> \n");if(window.hasFlash!=null){return window.hasFlash}}if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){var A=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;return parseInt(A.charAt(A.indexOf(".")-1))>=B}return false}();String.prototype.normalize=function(){return this.replace(/\s+/g," ")};if(Array.prototype.push==null){Array.prototype.push=function(){var C=0,B=this.length,A=arguments.length;while(C<A){this[B++]=arguments[C++]}return this.length}}if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[];var d,e;if(!a){a=window}if(!b){b=[]}for(var i=0;i<b.length;i++){c[i]="b["+i+"]"}e="a.__applyTemp__("+c.join(",")+");";a.__applyTemp__=this;d=eval(e);a.__applyTemp__=null;return d}}function named(A){return new named.Arguments(A)}named.Arguments=function(A){this.oArgs=A};named.Arguments.prototype.constructor=named.Arguments;named.extract=function(B,A){var E,D;var C=B.length;while(C--){D=B[C];if(D!=null&&D.constructor!=null&&D.constructor==named.Arguments){E=B[C].oArgs;break}}if(E==null){return }for(e in E){if(A[e]!=null){A[e](E[e])}}return };var parseSelector=function(){var C=/^([^#.>`]*)(#|\.|\>|\`)(.+)$/;function D(J,I){var G=J.split(/\s*\,\s*/);var F=[];for(var H=0;H<G.length;H++){F=F.concat(B(G[H],I))}return F}function B(P,O,N){P=P.normalize().replace(" ","`");var M=P.match(C);var L,K,J,I,H,F;var G=[];if(M==null){M=[P,P]}if(M[1]==""){M[1]="*"}if(N==null){N="`"}if(O==null){O=document}switch(M[2]){case"#":H=M[3].match(C);if(H==null){H=[null,M[3]]}L=document.getElementById(H[1]);if(L==null||(M[1]!="*"&&!E(L,M[1]))){return G}if(H.length==2){G.push(L);return G}return B(H[3],L,H[2]);case".":if(N!=">"){K=A(O,M[1])}else{K=O.childNodes}for(J=0,F=K.length;J<F;J++){L=K[J];if(L.nodeType!=1){continue}H=M[3].match(C);if(H!=null){if(L.className==null||L.className.match("(\\s|^)"+H[1]+"(\\s|$)")==null){continue}I=B(H[3],L,H[2]);G=G.concat(I)}else{if(L.className!=null&&L.className.match("(\\s|^)"+M[3]+"(\\s|$)")!=null){G.push(L)}}}return G;case">":if(N!=">"){K=A(O,M[1])}else{K=O.childNodes}for(J=0,F=K.length;J<F;J++){L=K[J];if(L.nodeType!=1){continue}if(!E(L,M[1])){continue}I=B(M[3],L,">");G=G.concat(I)}return G;case"`":K=A(O,M[1]);for(J=0,F=K.length;J<F;J++){L=K[J];I=B(M[3],L,"`");G=G.concat(I)}return G;default:if(N!=">"){K=A(O,M[1])}else{K=O.childNodes}for(J=0,F=K.length;J<F;J++){L=K[J];if(L.nodeType!=1){continue}if(!E(L,M[1])){continue}G.push(L)}return G}}function A(G,F){if(F=="*"&&G.all!=null){return G.all}return G.getElementsByTagName(F)}function E(G,F){return F=="*"?true:G.nodeName.toLowerCase().replace("html:","")==F.toLowerCase()}return D}();var sIFR=function(){var h="http://www.w3.org/1999/xhtml";var g=false;var Z=false;var Y;var U=[];var P=document;var S=P.documentElement;var N=window;var E=P.addEventListener;var D=N.addEventListener;var V=function(){var A=navigator.userAgent.toLowerCase();var C={a:A.indexOf("applewebkit")>-1,b:A.indexOf("safari")>-1,c:navigator.product!=null&&navigator.product.toLowerCase().indexOf("konqueror")>-1,d:A.indexOf("opera")>-1,e:P.contentType!=null&&P.contentType.indexOf("xml")>-1,f:true,g:true,h:null,i:null,j:null,k:null};C.l=C.a||C.c;C.m=!C.a&&navigator.product!=null&&navigator.product.toLowerCase()=="gecko";if(C.m&&A.match(/.*gecko\/(\d{8}).*/)){C.j=new Number(A.match(/.*gecko\/(\d{8}).*/)[1])}C.n=A.indexOf("msie")>-1&&!C.d&&!C.l&&!C.m;C.o=C.n&&A.match(/.*mac.*/)!=null;if(C.d&&A.match(/.*opera(\s|\/)(\d+\.\d+)/)){C.i=new Number(A.match(/.*opera(\s|\/)(\d+\.\d+)/)[2])}if(C.n||(C.d&&C.i<7.6)){C.g=false}if(C.a&&A.match(/.*applewebkit\/(\d+).*/)){C.k=new Number(A.match(/.*applewebkit\/(\d+).*/)[1])}if(N.hasFlash&&(!C.n||C.o)){var a=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;C.h=parseInt(a.charAt(a.indexOf(".")-1))}if(A.match(/.*(windows|mac).*/)==null||C.o||C.c||(C.d&&(A.match(/.*mac.*/)!=null||C.i<7.6))||(C.b&&C.h<7)||(!C.b&&C.a&&C.k<312)||(C.m&&C.j<20020523)){C.f=false}if(!C.o&&!C.m&&P.createElementNS){try{P.createElementNS(h,"i").innerHTML=""}catch(F){C.e=true}}C.p=C.c||(C.a&&C.k<312);return C}();function G(){return{bIsWebKit:V.a,bIsSafari:V.b,bIsKonq:V.c,bIsOpera:V.d,bIsXML:V.e,bHasTransparencySupport:V.f,bUseDOM:V.g,nFlashVersion:V.h,nOperaVersion:V.i,nGeckoBuildDate:V.j,nWebKitVersion:V.k,bIsKHTML:V.l,bIsGecko:V.m,bIsIE:V.n,bIsIEMac:V.o,bUseInnerHTMLHack:V.p}}if(N.hasFlash==false||!P.getElementsByTagName||!P.getElementById||(V.e&&(V.p||V.n))){return{UA:G()}}function W(F){if((!Q.bAutoInit&&(N.event||F)!=null)||!O(F)){return }g=true;for(var A=0,C=U.length;A<C;A++){R.apply(null,U[A])}U=[]}var Q=W;function O(A){if(Z==false||Q.bIsDisabled==true||((V.e&&V.m||V.l)&&A==null&&g==false)||(P.body==null||P.getElementsByTagName("body").length==0)){return false}return true}function M(A){if(V.n){return A.replace(new RegExp("%\d{0}","g"),"%25")}return A.replace(new RegExp("%(?!\d)","g"),"%25")}function I(C,A){return A=="*"?true:C.nodeName.toLowerCase().replace("html:","")==A.toLowerCase()}function L(F,C,A,k,j){var i="";var f=F.firstChild;var d,c,b,a;if(k==null){k=0}if(j==null){j=""}while(f){if(f.nodeType==3){a=f.nodeValue.replace("<","&lt;");switch(A){case"lower":i+=a.toLowerCase();break;case"upper":i+=a.toUpperCase();break;default:i+=a}}else{if(f.nodeType==1){if(I(f,"a")&&!f.getAttribute("href")==false){if(f.getAttribute("target")){j+="&sifr_url_"+k+"_target="+f.getAttribute("target")}j+="&sifr_url_"+k+"="+M(f.getAttribute("href")).replace(/&/g,"%26");i+='<a href="asfunction:_root.launchURL,'+k+'">';k++}else{if(I(f,"br")){i+="<br/>"}}if(f.hasChildNodes()){b=L(f,null,A,k,j);i+=b.u;k=b.s;j=b.t}if(I(f,"a")){i+="</a>"}}}d=f;f=f.nextSibling;if(C!=null){c=d.parentNode.removeChild(d);C.appendChild(c)}}return{"u":i,"s":k,"t":j}}function K(A){if(P.createElementNS&&V.g){return P.createElementNS(h,A)}return P.createElement(A)}function H(F,A,a){var C=K("param");C.setAttribute("name",A);C.setAttribute("value",a);F.appendChild(C)}function B(F,C){var A=F.className;if(A==null){A=C}else{A=A.normalize()+(A==""?"":" ")+C}F.className=A}function J(C){var A=S;if(Q.bHideBrowserText==false){A=P.getElementsByTagName("body")[0]}if((Q.bHideBrowserText==false||C)&&A){if(A.className==null||A.className.match(/\bsIFR\-hasFlash\b/)==null){B(A,"sIFR-hasFlash")}}}function R(u,t,s,q,o,n,m,l,k,j,f,v,d){if(!O()){return U.push(arguments)}J();named.extract(arguments,{sSelector:function(i){u=i},sFlashSrc:function(i){t=i},sColor:function(i){s=i},sLinkColor:function(i){q=i},sHoverColor:function(i){o=i},sBgColor:function(i){n=i},nPaddingTop:function(i){m=i},nPaddingRight:function(i){l=i},nPaddingBottom:function(i){k=i},nPaddingLeft:function(i){j=i},sFlashVars:function(i){f=i},sCase:function(i){v=i},sWmode:function(i){d=i}});var c=parseSelector(u);if(c.length==0){return false}if(f!=null){f="&"+f.normalize()}else{f=""}if(s!=null){f+="&textcolor="+s}if(o!=null){f+="&hovercolor="+o}if(o!=null||q!=null){f+="&linkcolor="+(q||s)}if(m==null){m=0}if(l==null){l=0}if(k==null){k=0}if(j==null){j=0}if(n==null){n="#FFFFFF"}if(d=="transparent"){if(!V.f){d="opaque"}else{n="transparent"}}if(d==null){d=""}var w,b,a,F,C,A,AC,AB,AA;var z=null;for(var x=0,y=c.length;x<y;x++){w=c[x];if(w.className!=null&&w.className.match(/\bsIFR\-replaced\b/)!=null){continue}b=w.offsetWidth-j-l;a=w.offsetHeight-m-k;AC=K("span");AC.className="sIFR-alternate";AA=L(w,AC,v);A="txt="+M(AA.u).replace(/\+/g,"%2B").replace(/&/g,"%26").replace(/\"/g,"%22").normalize()+f+"&w="+b+"&h="+a+AA.t;B(w,"sIFR-replaced");if(z==null||!V.g){if(!V.g){if(!V.n){w.innerHTML=['<embed class="sIFR-flash" type="application/x-shockwave-flash" src="',t,'" quality="best" wmode="',d,'" bgcolor="',n,'" flashvars="',A,'" width="',b,'" height="',a,'" sifr="true"></embed>'].join("")}else{w.innerHTML=['<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" sifr="true" width="',b,'" height="',a,'" class="sIFR-flash"><param name="movie" value="',t,"?",A,'"></param><param name="quality" value="best"></param><param name="wmode" value="',d,'"></param><param name="bgcolor" value="',n,'"></param> </object>'].join("")}}else{if(V.d){AB=K("object");AB.setAttribute("data",t);H(AB,"quality","best");H(AB,"wmode",d);H(AB,"bgcolor",n)}else{AB=K("embed");AB.setAttribute("src",t);AB.setAttribute("quality","best");AB.setAttribute("flashvars",A);AB.setAttribute("wmode",d);AB.setAttribute("bgcolor",n)}AB.setAttribute("sifr","true");AB.setAttribute("type","application/x-shockwave-flash");AB.className="sIFR-flash";if(!V.l||!V.e){z=AB.cloneNode(true)}}}else{AB=z.cloneNode(true)}if(V.g){if(V.d){H(AB,"flashvars",A)}else{AB.setAttribute("flashvars",A)}AB.setAttribute("width",b);AB.setAttribute("height",a);AB.style.width=b+"px";AB.style.height=a+"px";w.appendChild(AB)}w.appendChild(AC);if(V.p){w.innerHTML+=""}}if(V.n&&Q.bFixFragIdBug){setTimeout(function(){P.title=Y},0)}}function T(){Y=P.title}function X(){if(Q.bIsDisabled==true){return }Z=true;if(Q.bHideBrowserText){J(true)}if(N.attachEvent){N.attachEvent("onload",W)}else{if(!V.c&&(P.addEventListener||N.addEventListener)){if(V.a&&V.k>=132&&N.addEventListener){N.addEventListener("load",function(){setTimeout("sIFR({})",1)},false)}else{if(P.addEventListener){P.addEventListener("load",W,false)}if(N.addEventListener){N.addEventListener("load",W,false)}}}else{if(typeof N.onload=="function"){var A=N.onload;N.onload=function(){A();W()}}else{N.onload=W}}}if(!V.n||N.location.hash==""){Q.bFixFragIdBug=false}else{T()}}Q.UA=G();Q.bAutoInit=true;Q.bFixFragIdBug=true;Q.replaceElement=R;Q.updateDocumentTitle=T;Q.appendToClassName=B;Q.setup=X;Q.debug=function(){J(true)};Q.debug.replaceNow=function(){X();Q()};Q.bIsDisabled=false;Q.bHideBrowserText=true;return Q}();if(typeof sIFR=="function"&&!sIFR.UA.bIsIEMac){sIFR.setup()}