var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);
/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/
return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();(function(){var G=YAHOO.util.Dom,F=YAHOO.util.Event,I=YAHOO.util.Anim;var A=function(L,K){L=G.get(L);K=K||{};if(!L){L=document.createElement(this.CONFIG.TAG_NAME)}if(L.id){K.id=L.id}YAHOO.widget.AccordionView.superclass.constructor.call(this,L,K);this.initList(L,K);this.refresh(["id","width","hoverActivated"],true)};var D="panelClose";var E="panelOpen";var B="afterPanelClose";var J="afterPanelOpen";var C="stateChanged";var H="beforeStateChange";YAHOO.widget.AccordionView=A;YAHOO.extend(A,YAHOO.util.Element,{initAttributes:function(K){A.superclass.initAttributes.call(this,K);var L=(YAHOO.env.modules.animation)?true:false;this.setAttributeConfig("id",{writeOnce:true,validator:function(M){return(/^[a-zA-Z][\w0-9\-_.:]*$/.test(M))},value:G.generateId(),method:function(M){this.get("element").id=M}});this.setAttributeConfig("width",{value:"400px",method:function(M){this.setStyle("width",M)}});this.setAttributeConfig("animationSpeed",{value:0.7});this.setAttributeConfig("animate",{value:L,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("collapsible",{value:false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("expandable",{value:false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("effect",{value:YAHOO.util.Easing.easeBoth,validator:YAHOO.lang.isString});this.setAttributeConfig("hoverActivated",{value:false,validator:YAHOO.lang.isBoolean,method:function(M){if(M){F.on(this,"mouseover",this._onMouseOver,this,true)}else{F.removeListener(this,"mouseover",this._onMouseOver)}}});this.setAttributeConfig("_hoverTimeout",{value:500,validator:YAHOO.lang.isInteger})},CONFIG:{TAG_NAME:"UL",ITEM_WRAPPER_TAG_NAME:"LI",CONTENT_WRAPPER_TAG_NAME:"DIV"},CLASSES:{ACCORDION:"yui-accordionview",PANEL:"yui-accordion-panel",TOGGLE:"yui-accordion-toggle",CONTENT:"yui-accordion-content",ACTIVE:"active",HIDDEN:"hidden",INDICATOR:"indicator"},_idCounter:"1",_hoverTimer:null,_panels:null,_opening:false,_closing:false,_ff2:(YAHOO.env.ua.gecko>0&&YAHOO.env.ua.gecko<1.9),_ie:(YAHOO.env.ua.ie<8&&YAHOO.env.ua.ie>0),_ARIACapable:(YAHOO.env.ua.ie>7||YAHOO.env.ua.gecko>=1.9),initList:function(O,K){G.addClass(O,this.CLASSES.ACCORDION);this._setARIA(O,"role","tree");var N=[];var Q=O.getElementsByTagName(this.CONFIG.ITEM_WRAPPER_TAG_NAME);for(var M=0;M<Q.length;M++){if(G.hasClass(Q[M],"nopanel")){N.push({label:"SINGLE_LINK",content:Q[M].innerHTML.replace(/^\s\s*/,"").replace(/\s\s*$/,"")})}else{if(Q[M].parentNode===O){for(var P=Q[M].firstChild;P&&P.nodeType!=1;P=P.nextSibling){}if(P){for(var R=P.nextSibling;R&&R.nodeType!=1;R=R.nextSibling){}N.push({label:P.innerHTML,content:(R&&R.innerHTML)})}}}}O.innerHTML="";if(N.length>0){this.addPanels(N)}if((K.expandItem===0)||(K.expandItem>0)){var L=this._panels[K.expandItem].firstChild;var R=this._panels[K.expandItem].firstChild.nextSibling;G.removeClass(R,this.CLASSES.HIDDEN);if(L&&R){G.addClass(L,this.CLASSES.ACTIVE);L.tabIndex=0;this._setARIA(L,"aria-expanded","true");this._setARIA(R,"aria-hidden","false")}}this.initEvents()},initEvents:function(){if(true===this.get("hoverActivated")){this.on("mouseover",this._onMouseOver,this,true);this.on("mouseout",this._onMouseOut,this,true)}this.on("click",this._onClick,this,true);this.on("keydown",this._onKeydown,this,true);this.on("panelOpen",function(){this._opening=true},this,true);this.on("panelClose",function(){this._closing=true},this,true);this.on("afterPanelClose",function(){this._closing=false;if(!this._closing&&!this._opening){this._fixTabIndexes()}},this,true);this.on("afterPanelOpen",function(){this._opening=false;if(!this._closing&&!this._opening){this._fixTabIndexes()}},this,true);if(this._ARIACapable){this.on("keypress",function(K){var L=G.getAncestorByClassName(F.getTarget(K),this.CLASSES.PANEL);var M=F.getCharCode(K);if(M===13){this._onClick(L.firstChild);return false}})}},_setARIA:function(L,K,M){if(this._ARIACapable){L.setAttribute(K,M)}},_collapseAccordion:function(){G.batch(this._panels,function(L){var K=this.firstChild.nextSibling;if(K){G.removeClass(L.firstChild,this.CLASSES.ACTIVE);G.addClass(K,this.CLASSES.HIDDEN);this._setARIA(K,"aria-hidden","true")}},this)},_fixTabIndexes:function(){var M=this._panels.length;var K=true;for(var L=0;L<M;L++){if(G.hasClass(this._panels[L].firstChild,this.CLASSES.ACTIVE)){this._panels[L].firstChild.tabIndex=0;K=false}else{this._panels[L].firstChild.tabIndex=-1}}if(K){this._panels[0].firstChild.tabIndex=0}this.fireEvent(C)},addPanel:function(N,M){var L=document.createElement(this.CONFIG.ITEM_WRAPPER_TAG_NAME);G.addClass(L,this.CLASSES.PANEL);if(N.label==="SINGLE_LINK"){L.innerHTML=N.content;G.addClass(L.firstChild,this.CLASSES.TOGGLE);G.addClass(L.firstChild,"link")}else{var K=document.createElement("span");G.addClass(K,this.CLASSES.INDICATOR);var P=L.appendChild(document.createElement("A"));P.id=this.get("element").id+"-"+this._idCounter+"-label";P.innerHTML=N.label||"";P.appendChild(K);if(this._ARIACapable){if(N.href){P.href=N.href}}else{P.href=N.href||"#toggle"}P.tabIndex=-1;G.addClass(P,this.CLASSES.TOGGLE);var Q=document.createElement(this.CONFIG.CONTENT_WRAPPER_TAG_NAME);Q.innerHTML=N.content||"";G.addClass(Q,this.CLASSES.CONTENT);L.appendChild(Q);this._setARIA(L,"role","presentation");this._setARIA(P,"role","treeitem");this._setARIA(Q,"aria-labelledby",P.id);this._setARIA(K,"role","presentation")}this._idCounter++;if(this._panels===null){this._panels=[]}if((M!==null)&&(M!==undefined)){var O=this.getPanel(M);this.insertBefore(L,O);var R=this._panels.slice(0,M);var T=this._panels.slice(M);R.push(L);for(i=0;i<T.length;i++){R.push(T[i])}this._panels=R}else{this.appendChild(L);if(this.get("element")===L.parentNode){this._panels[this._panels.length]=L}}if(N.label!=="SINGLE_LINK"){if(N.expand){if(!this.get("expandable")){this._collapseAccordion()}G.removeClass(Q,this.CLASSES.HIDDEN);G.addClass(P,this.CLASSES.ACTIVE);this._setARIA(Q,"aria-hidden","false");this._setARIA(P,"aria-expanded","true")}else{G.addClass(Q,"hidden");this._setARIA(Q,"aria-hidden","true");this._setARIA(P,"aria-expanded","false")}}var S=YAHOO.lang.later(0,this,function(){this._fixTabIndexes();this.fireEvent(C)})},addPanels:function(L){for(var K=0;K<L.length;K++){this.addPanel(L[K])}},removePanel:function(K){this.removeChild(G.getElementsByClassName(this.CLASSES.PANEL,this.CONFIG.ITEM_WRAPPER_TAG_NAME,this)[K]);var N=[];var O=this._panels.length;for(var M=0;M<O;M++){if(M!==K){N.push(this._panels[M])}}this._panels=N;var L=YAHOO.lang.later(0,this,function(){this._fixTabIndexes();this.fireEvent(C)})},getPanel:function(K){return this._panels[K]},getPanels:function(){return this._panels},openPanel:function(K){var L=this._panels[K];if(!L){return false}if(G.hasClass(L.firstChild,this.CLASSES.ACTIVE)){return false}this._onClick(L.firstChild);return true},closePanel:function(K){var L=this._panels;var O=L[K];if(!O){return false}var N=O.firstChild;if(!G.hasClass(N,this.CLASSES.ACTIVE)){return true}if(this.get("collapsible")===false){if(this.get("expandable")===true){this.set("collapsible",true);for(var M=0;M<L.length;M++){if((G.hasClass(L[M].firstChild,this.CLASSES.ACTIVE)&&M!==K)){this._onClick(N);this.set("collapsible",false);return true}}this.set("collapsible",false)}}this._onClick(N);return true},_onKeydown:function(L){var N=G.getAncestorByClassName(F.getTarget(L),this.CLASSES.PANEL);var O=F.getCharCode(L);var M=this._panels.length;if(O===37||O===38){for(var K=0;K<M;K++){if((N===this._panels[K])&&K>0){this._panels[K-1].firstChild.focus();return }}}if(O===39||O===40){for(var K=0;K<M;K++){if((N===this._panels[K])&&K<M-1){this._panels[K+1].firstChild.focus();return }}}},_onMouseOver:function(K){F.stopPropagation(K);var L=F.getTarget(K);this._hoverTimer=YAHOO.lang.later(this.get("_hoverTimeout"),this,function(){this._onClick(L)})},_onMouseOut:function(){if(this._hoverTimer){this._hoverTimer.cancel();this._hoverTimer=null}},_onClick:function(T){var Q;if(T.nodeType===undefined){Q=F.getTarget(T);if(!G.hasClass(Q,this.CLASSES.TOGGLE)&&!G.hasClass(Q,this.CLASSES.INDICATOR)){return false}if(G.hasClass(Q,"link")){return true}F.preventDefault(T);F.stopPropagation(T)}else{Q=T}var R=Q;var O=this;function S(V,X){if(O._ie){var W=G.getElementsByClassName(O.CLASSES.ACCORDION,O.CONFIG.TAG_NAME,V);if(W[0]){G.setStyle(W[0],"visibility",X)}}}function P(W,Y){var Z=this;function e(h,f){if(!G.hasClass(f,Z.CLASSES.PANEL)){f=G.getAncestorByClassName(f,Z.CLASSES.PANEL)}for(var g=0,j=f;j.previousSibling;g++){j=j.previousSibling}return Z.fireEvent(h,{panel:f,index:g})}if(!Y){if(!W){return false}Y=W.parentNode.firstChild}var b={};var c=0;var a=(!G.hasClass(W,this.CLASSES.HIDDEN));if(this.get("animate")){if(!a){if(this._ff2){G.addClass(W,"almosthidden");G.setStyle(W,"width",this.get("width"))}G.removeClass(W,this.CLASSES.HIDDEN);c=W.offsetHeight;G.setStyle(W,"height",0);if(this._ff2){G.removeClass(W,"almosthidden");G.setStyle(W,"width","auto")}b={height:{from:0,to:c}}}else{c=W.offsetHeight;b={height:{from:c,to:0}}}var d=(this.get("animationSpeed"))?this.get("animationSpeed"):0.5;var X=(this.get("effect"))?this.get("effect"):YAHOO.util.Easing.easeBoth;var V=new I(W,b,d,X);if(a){if(this.fireEvent(D,W)===false){return }G.removeClass(Y,Z.CLASSES.ACTIVE);Y.tabIndex=-1;S(W,"hidden");Z._setARIA(W,"aria-hidden","true");Z._setARIA(Y,"aria-expanded","false");V.onComplete.subscribe(function(){G.addClass(W,Z.CLASSES.HIDDEN);G.setStyle(W,"height","auto");e("afterPanelClose",W)})}else{if(e(E,W)===false){return }S(W,"hidden");V.onComplete.subscribe(function(){G.setStyle(W,"height","auto");S(W,"visible");Z._setARIA(W,"aria-hidden","false");Z._setARIA(Y,"aria-expanded","true");Y.tabIndex=0;e(J,W)});G.addClass(Y,this.CLASSES.ACTIVE)}V.animate()}else{if(a){if(e(D,W)===false){return }G.addClass(W,Z.CLASSES.HIDDEN);G.setStyle(W,"height","auto");G.removeClass(Y,Z.CLASSES.ACTIVE);Z._setARIA(W,"aria-hidden","true");Z._setARIA(Y,"aria-expanded","false");Y.tabIndex=-1;e(B,W)}else{if(e(E,W)===false){return }G.removeClass(W,Z.CLASSES.HIDDEN);G.setStyle(W,"height","auto");G.addClass(Y,Z.CLASSES.ACTIVE);Z._setARIA(W,"aria-hidden","false");Z._setARIA(Y,"aria-expanded","true");Y.tabIndex=0;e(J,W)}}return true}var K=(R.nodeName.toUpperCase()==="SPAN")?R.parentNode.parentNode:R.parentNode;var N=G.getElementsByClassName(this.CLASSES.CONTENT,this.CONFIG.CONTENT_WRAPPER_TAG_NAME,K)[0];if(this.fireEvent(H,this)===false){return }if(this.get("collapsible")===false){if(!G.hasClass(N,this.CLASSES.HIDDEN)){return false}}else{if(!G.hasClass(N,this.CLASSES.HIDDEN)){P.call(this,N);return false}}if(this.get("expandable")!==true){var U=this._panels.length;for(var M=0;M<U;M++){var L=G.hasClass(this._panels[M].firstChild.nextSibling,this.CLASSES.HIDDEN);if(!L){P.call(this,this._panels[M].firstChild.nextSibling)}}}if(R.nodeName.toUpperCase()==="SPAN"){P.call(this,N,R.parentNode)}else{P.call(this,N,R)}return true},toString:function(){var K=this.get("id")||this.get("tagName");return"AccordionView "+K}})})();YAHOO.register("accordionview",YAHOO.widget.AccordionView,{version:"0.99",build:"33"});function NumberFormat(A,B){this.VERSION="Number Format v1.5.4";this.COMMA=",";this.PERIOD=".";this.DASH="-";this.LEFT_PAREN="(";this.RIGHT_PAREN=")";this.LEFT_OUTSIDE=0;this.LEFT_INSIDE=1;this.RIGHT_INSIDE=2;this.RIGHT_OUTSIDE=3;this.LEFT_DASH=0;this.RIGHT_DASH=1;this.PARENTHESIS=2;this.NO_ROUNDING=-1;this.num;this.numOriginal;this.hasSeparators=false;this.separatorValue;this.inputDecimalValue;this.decimalValue;this.negativeFormat;this.negativeRed;this.hasCurrency;this.currencyPosition;this.currencyValue;this.places;this.roundToPlaces;this.truncate;this.setNumber=setNumberNF;this.toUnformatted=toUnformattedNF;this.setInputDecimal=setInputDecimalNF;this.setSeparators=setSeparatorsNF;this.setCommas=setCommasNF;this.setNegativeFormat=setNegativeFormatNF;this.setNegativeRed=setNegativeRedNF;this.setCurrency=setCurrencyNF;this.setCurrencyPrefix=setCurrencyPrefixNF;this.setCurrencyValue=setCurrencyValueNF;this.setCurrencyPosition=setCurrencyPositionNF;this.setPlaces=setPlacesNF;this.toFormatted=toFormattedNF;this.toPercentage=toPercentageNF;this.getOriginal=getOriginalNF;this.moveDecimalRight=moveDecimalRightNF;this.moveDecimalLeft=moveDecimalLeftNF;this.getRounded=getRoundedNF;this.preserveZeros=preserveZerosNF;this.justNumber=justNumberNF;this.expandExponential=expandExponentialNF;this.getZeros=getZerosNF;this.moveDecimalAsString=moveDecimalAsStringNF;this.moveDecimal=moveDecimalNF;this.addSeparators=addSeparatorsNF;if(B==null){this.setNumber(A,this.PERIOD)}else{this.setNumber(A,B)}this.setCommas(true);this.setNegativeFormat(this.LEFT_DASH);this.setNegativeRed(false);this.setCurrency(false);this.setCurrencyPrefix("$");this.setPlaces(2)}function setInputDecimalNF(A){this.inputDecimalValue=A}function setNumberNF(A,B){if(B!=null){this.setInputDecimal(B)}this.numOriginal=A;this.num=this.justNumber(A)}function toUnformattedNF(){return(this.num)}function getOriginalNF(){return(this.numOriginal)}function setNegativeFormatNF(A){this.negativeFormat=A}function setNegativeRedNF(A){this.negativeRed=A}function setSeparatorsNF(B,C,A){this.hasSeparators=B;if(C==null){C=this.COMMA}if(A==null){A=this.PERIOD}if(C==A){this.decimalValue=(A==this.PERIOD)?this.COMMA:this.PERIOD}else{this.decimalValue=A}this.separatorValue=C}function setCommasNF(A){this.setSeparators(A,this.COMMA,this.PERIOD)}function setCurrencyNF(A){this.hasCurrency=A}function setCurrencyValueNF(A){this.currencyValue=A}function setCurrencyPrefixNF(A){this.setCurrencyValue(A);this.setCurrencyPosition(this.LEFT_OUTSIDE)}function setCurrencyPositionNF(A){this.currencyPosition=A}function setPlacesNF(B,A){this.roundToPlaces=!(B==this.NO_ROUNDING);this.truncate=(A!=null&&A);this.places=(B<0)?0:B}function addSeparatorsNF(D,E,A,C){D+="";var F=D.indexOf(E);var G="";if(F!=-1){G=A+D.substring(F+1,D.length);D=D.substring(0,F)}var B=/(\d+)(\d{3})/;while(B.test(D)){D=D.replace(B,"$1"+C+"$2")}return D+G}function toFormattedNF(){var L;var M=this.num;var A;var B=new Array(2);if(this.roundToPlaces){M=this.getRounded(M);A=this.preserveZeros(Math.abs(M))}else{A=this.expandExponential(Math.abs(M))}if(this.hasSeparators){A=this.addSeparators(A,this.PERIOD,this.decimalValue,this.separatorValue)}else{A=A.replace(new RegExp("\\"+this.PERIOD),this.decimalValue)}var F="";var K="";var E="";var J="";var H="";var D="";var G="";var C="";var N=(this.negativeFormat==this.PARENTHESIS)?this.LEFT_PAREN:this.DASH;var I=(this.negativeFormat==this.PARENTHESIS)?this.RIGHT_PAREN:this.DASH;if(this.currencyPosition==this.LEFT_OUTSIDE){if(M<0){if(this.negativeFormat==this.LEFT_DASH||this.negativeFormat==this.PARENTHESIS){J=N}if(this.negativeFormat==this.RIGHT_DASH||this.negativeFormat==this.PARENTHESIS){H=I}}if(this.hasCurrency){F=this.currencyValue}}else{if(this.currencyPosition==this.LEFT_INSIDE){if(M<0){if(this.negativeFormat==this.LEFT_DASH||this.negativeFormat==this.PARENTHESIS){K=N}if(this.negativeFormat==this.RIGHT_DASH||this.negativeFormat==this.PARENTHESIS){G=I}}if(this.hasCurrency){E=this.currencyValue}}else{if(this.currencyPosition==this.RIGHT_INSIDE){if(M<0){if(this.negativeFormat==this.LEFT_DASH||this.negativeFormat==this.PARENTHESIS){K=N}if(this.negativeFormat==this.RIGHT_DASH||this.negativeFormat==this.PARENTHESIS){G=I}}if(this.hasCurrency){D=this.currencyValue}}else{if(this.currencyPosition==this.RIGHT_OUTSIDE){if(M<0){if(this.negativeFormat==this.LEFT_DASH||this.negativeFormat==this.PARENTHESIS){J=N}if(this.negativeFormat==this.RIGHT_DASH||this.negativeFormat==this.PARENTHESIS){H=I}}if(this.hasCurrency){C=this.currencyValue}}}}}A=F+K+E+J+A+H+D+G+C;if(this.negativeRed&&M<0){A='<font color="red">'+A+"</font>"}return(A)}function toPercentageNF(){nNum=this.num*100;nNum=this.getRounded(nNum);return nNum+"%"}function getZerosNF(A){var C="";var B;for(B=0;B<A;B++){C+="0"}return C}function expandExponentialNF(B){if(isNaN(B)){return B}var D=parseFloat(B)+"";var G=D.toLowerCase().indexOf("e");if(G!=-1){var A=D.toLowerCase().indexOf("+");var E=D.toLowerCase().indexOf("-",G);var F=D.substring(0,G);if(E!=-1){var C=D.substring(E+1,D.length);F=this.moveDecimalAsString(F,true,parseInt(C))}else{if(A==-1){A=G}var C=D.substring(A+1,D.length);F=this.moveDecimalAsString(F,false,parseInt(C))}D=F}return D}function moveDecimalRightNF(C,B){var A="";if(B==null){A=this.moveDecimal(C,false)}else{A=this.moveDecimal(C,false,B)}return A}function moveDecimalLeftNF(C,B){var A="";if(B==null){A=this.moveDecimal(C,true)}else{A=this.moveDecimal(C,true,B)}return A}function moveDecimalAsStringNF(D,E,A){var I=(arguments.length<3)?this.places:A;if(I<=0){return D}var B=D+"";var F=this.getZeros(I);var H=new RegExp("([0-9.]+)");if(E){B=B.replace(H,F+"$1");var G=new RegExp("(-?)([0-9]*)([0-9]{"+I+"})(\\.?)");B=B.replace(G,"$1$2.$3")}else{var C=H.exec(B);if(C!=null){B=B.substring(0,C.index)+C[1]+F+B.substring(C.index+C[0].length)}var G=new RegExp("(-?)([0-9]*)(\\.?)([0-9]{"+I+"})");B=B.replace(G,"$1$2$4.")}B=B.replace(/\.$/,"");return B}function moveDecimalNF(D,C,B){var A="";if(B==null){A=this.moveDecimalAsString(D,C)}else{A=this.moveDecimalAsString(D,C,B)}return parseFloat(A)}function getRoundedNF(A){A=this.moveDecimalRight(A);if(this.truncate){A=A>=0?Math.floor(A):Math.ceil(A)}else{A=Math.round(A)}A=this.moveDecimalLeft(A);return A}function preserveZerosNF(C){var B;C=this.expandExponential(C);if(this.places<=0){return C}var A=C.indexOf(".");if(A==-1){C+=".";for(B=0;B<this.places;B++){C+="0"}}else{var E=(C.length-1)-A;var D=this.places-E;for(B=0;B<D;B++){C+="0"}}return C}function justNumberNF(E){newVal=E+"";var D=false;if(newVal.indexOf("%")!=-1){newVal=newVal.replace(/\%/g,"");D=true}var B=new RegExp("[^\\"+this.inputDecimalValue+"\\d\\-\\+\\(\\)eE]","g");newVal=newVal.replace(B,"");var F=new RegExp("["+this.inputDecimalValue+"]","g");var C=F.exec(newVal);if(C!=null){var A=newVal.substring(C.index+C[0].length);newVal=newVal.substring(0,C.index)+this.PERIOD+A.replace(F,"")}if(newVal.charAt(newVal.length-1)==this.DASH){newVal=newVal.substring(0,newVal.length-1);newVal="-"+newVal}else{if(newVal.charAt(0)==this.LEFT_PAREN&&newVal.charAt(newVal.length-1)==this.RIGHT_PAREN){newVal=newVal.substring(1,newVal.length-1);newVal="-"+newVal}}newVal=parseFloat(newVal);if(!isFinite(newVal)){newVal=0}if(D){newVal=this.moveDecimalLeft(newVal,2)}return newVal}DJAverages.Utils=function(){var A={decimalPlaces:{standard:2,divisor:9}};function B(E,C){var D;if(!D){D=new NumberFormat(0);D.setSeparators(false)}D.setNumber(E);D.setPlaces(C||A.decimalPlaces.standard);if(E===""){return null}else{return D.toFormatted()}}return{date:function(C){return new Date(C).format("j-M-Y")},decimalFormat:function(C){return B(C)},changeFormat:function(F){var E=B(F);var D="neutral";if(E>0){D="up"}else{if(E<0){D="down"}}var C='<span class="'+D+'">'+E+"</span>";return C},changeIcon:function(G,D){var C=(D==="large")?"lg":"sm";var F=B(G);var E="/images/blank.gif";if(F>0){E="/images/icons/generic/tick-up-"+C+".gif"}else{if(F<0){E="/images/icons/generic/tick-down-"+C+".gif"}}return E},divisorFormat:function(C){return B(C,A.decimalPlaces.divisor)},peRatioFormat:function(C){if(C===-999999){return'<span class="neutral">NMF</span>'}else{return B(C)}},getQueryParams:function(F){var D={};var G=location.search.substring(1).split("&");for(var E=0;E<G.length;E++){var C=G[E].split("=");D[C[0]]=C[1]}if(F){return D[F]}return D},getCookie:function(E){var F=document.cookie.indexOf(E+"=");var C=F+E.length+1;if((!F)&&(E!=document.cookie.substring(0,E.length))){return null}if(F==-1){return null}var D=document.cookie.indexOf(";",C);if(D==-1){D=document.cookie.length}return unescape(document.cookie.substring(C,D))},setCookie:function(D,G,C,I,F,H){var E=D+"="+escape(G)+((C)?";expires="+C.toGMTString():"")+((I)?";path="+I:"")+((F)?";domain="+F:"")+((H)?";secure":"");document.cookie=E},Dom:function(){return Ext.DomHelper},alert:function(G){var F=G.message||null;var E=G.type||"info";var D=G.buttons||Ext.Msg.OK;if(F){var H="Info";var C=Ext.Msg.INFO;switch(E.toLowerCase()){case"warning":H="Warning";C=Ext.Msg.WARNING;break;case"question":H="Question";C=Ext.Msg.QUESTION;break;case"error":H="Error";C=Ext.Msg.ERROR;break}Ext.Msg.show({title:H,msg:F,buttons:D,icon:C})}},createDownloadWin:function(D){var C=D||"download-frame";var E=Ext.getDom(C);if(!E){E=Ext.DomHelper.insertAfter(document.body,{tag:"iframe",id:C,width:0,height:0,frameborder:0,style:"display:none;"})}return E},popUpWindow:function(F,J,I,E){var D=I||1024;var H=E||595;var C="height="+H+",width="+D+",status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=0,scrollbars=0";var G=J||"popup";window.open(F,G,C)},pagination:function(H,F){var J=parseInt(H);var C={meta:{usePrev:(F==1)?false:true,useNext:(F==J)?false:true},data:[]};var D,G=false;for(var E=1;E<=J;E++){if(E==1||E==J||E==F||E==F+1||(F==1&&E==3)||(F==J&&E==J-3)||(E==F-1&&F-1>0)){var I={label:E,className:(E==F)?"active":""};C.data.push(I)}else{if(E<F&&!D){D=true;var I={label:"...",className:"empty"};C.data.push(I)}else{if(E>F&&!G){G=true;var I={label:"...",className:"empty"};C.data.push(I)}}}}return C},trim:function(D,C){return this.ltrim(this.rtrim(D,C),C)},ltrim:function(D,C){C=C||"\\s";return D.replace(new RegExp("^["+C+"]+","g"),"")},rtrim:function(D,C){C=C||"\\s";return D.replace(new RegExp("["+C+"]+$","g"),"")}}}();Array.prototype.remove=function(C,B){var A=this.slice((B||C)+1||this.length);this.length=C<0?this.length+C:C;return this.push.apply(this,A)};var baseTargetUrl=top.location.protocol+"//"+top.location.host+top.location.pathname+top.location.search;var quoteModuleURL=top.location.protocol+"//"+top.location.host+"/?view=investor-tools&page=quote";var access=["90630","91926"];Ext.QuickTips.init();Ext.BLANK_IMAGE_URL="/js/lib/ext/2.2/resources/images/default/s.gif";Ext.ns("DJAverages.Report.Base");Ext.ns("DJAverages.Media");Ext.ns("DJAverages.PressReleases");DJAverages.Navigation=function(){var A={container:{popup:"a.popup"}};function B(D,C){D.preventDefault();DJAverages.Utils.popUpWindow(C.href)}return{init:function(){Ext.select(A.container.popup).on("click",B)}}}();$(document).ready(DJAverages.Navigation.init);DJAverages.Charts=function(){var D={container:{home:"#home-intraday",inner:"#content",chart:{full:".djiChartFull",simple:".djiChartSimple"}},options:{compile:true,regx:"ext"},proxy:{template:{simple:"/includes/chart/simple.html",full:"/includes/chart/full.html"},indexData:{url:"/DataService/v2/Intraday.cfc",baseParams:{method:"getIndexDetails",ticker:"",full:true}},indexDataByFamily:{url:"/DataService/v2/Intraday.cfc",baseParams:{method:"getIndexDetailsByFamily",familyId:""}}},overviewURL:{DJC:"composite",DJI:"industrial",DJT:"transportation",DJU:"utility"},shortName:{DJC:"Composite",DJI:"Industrial",DJT:"Transportation",DJU:"Utility",GDOW:"The Global Dow"},chart:{frequency:{"1dy":"1mi","5dy":"15mi","1mo":"1dy","3mo":"1dy","1yr":"1wk","5yr":"1wk","10yr":"1mo"}}};var G,J;function I(P){var N=P.target;var O=$(N);var M,R;if(O.hasClass("download")){P.preventDefault();J.src=N.href}else{var Q=O.parents(".chart-full");if(Q.length){R=Q[0].id;if(O.parents(".chartView").length){M=O.parents(".chartView")[0].id}else{if(O.hasClass("chartView")){M=N.id}}}if(M&&R){P.preventDefault();L({view:M,ticker:R})}}}function A(R){var O=R.target;var P=$(O);var N=7;var M="1dy";var S=P.parents(".chart")[0].id;var Q=false;if(P.hasClass("chartView")){M=P[0].id;Q=true}else{if(P.parents(".chartView").length){M=P.parents(".chartView")[0].id;Q=true}}if(M&&S&&Q){R.preventDefault();L({view:M,ticker:S,size:N})}}function L(Q){$("#"+Q.ticker+" #controls li").removeClass("selected");var O=$("#"+Q.ticker+" #controls #"+Q.view);O.addClass("selected");var P=Q.ticker.split("-");var M=Q.size||8;var N=C(P[0],P[1],M,Q.view);$("#"+Q.ticker+" .chartImg").hide().html(N).fadeIn()}function H(M){J=DJAverages.Utils.createDownloadWin();G=new Ext.Template(M).compile();var N=$(D.container.chart.full)[0].id;D.proxy.indexDataByFamily.baseParams.familyId=N;$.post(D.proxy.indexDataByFamily.url,D.proxy.indexDataByFamily.baseParams,function(T){var R=[];var S=T.data;for(var Q=0;Q<S.length;Q++){var O=E(S[Q]);var P={title:O.shortname,html:G.applyTemplate(O)};R.push(P)}new Ext.TabPanel({renderTo:"home-intraday",frame:true,tabWidth:75,enableTabScroll:true,width:410,autoHeight:true,activeTab:0,defaults:{autoScroll:false,autoHeight:true,autoWidth:true,xtype:"panel"},items:R})},"json")}function E(M){var N={overview:D.overviewURL[M.symbol],chartId:M.bigchartsid,chartImg:C(M.symbol,M.bigchartsid),ticker:M.symbol,name:M.indexname,shortname:D.shortName[M.symbol],last:DJAverages.Utils.decimalFormat(M.price),netChange:DJAverages.Utils.changeFormat(M.netchange),pctChange:DJAverages.Utils.changeFormat(M.percentagechange),changeIcon:DJAverages.Utils.changeIcon(M.netchange),open:DJAverages.Utils.decimalFormat(M.openprice),high:DJAverages.Utils.decimalFormat(M.high),low:DJAverages.Utils.decimalFormat(M.low),volume:M.volume,high52:DJAverages.Utils.decimalFormat(M.high52),low52:DJAverages.Utils.decimalFormat(M.low52),ytd:DJAverages.Utils.changeFormat(M.ytdnetchange),pctYtd:DJAverages.Utils.changeFormat(M.ytdpctchange),pctChangeIcon:DJAverages.Utils.changeIcon(M.ytdnetchange)};return N}function K(M){G=$.template(M,D.options);$(D.container.chart.simple).each(function(N,O){D.proxy.indexData.baseParams.ticker=O.id;$.post(D.proxy.indexData.url,D.proxy.indexData.baseParams,F,"json")})}function F(M,O){if(O=="success"&&M.size){var N=M.data[0];$("#"+N.symbol).append(G,{overview:D.overviewURL[N.symbol],chartId:N.bigchartsid,chartImg:C(N.symbol,N.bigchartsid,7),ticker:N.symbol,view:DJAverages.Utils.getQueryParams("view").toLowerCase(),name:N.indexname,last:DJAverages.Utils.decimalFormat(N.price),netChange:DJAverages.Utils.changeFormat(N.netchange),pctChange:DJAverages.Utils.changeFormat(N.percentagechange),changeIcon:DJAverages.Utils.changeIcon(N.netchange,"large"),ytd:DJAverages.Utils.changeFormat(N.ytdnetchange),pctYtd:DJAverages.Utils.changeFormat(N.ytdpctchange)})}}function C(P,M,O,R){var R=(R)?R:"1dy";var O=(O)?O:8;var N="http://chart.bigcharts.com/custom/djindexes-com/big.chart?type=256&ma=3&maval=100&style=2281&rightfill=0&uf=8192&sid="+M+"&symb="+P+"&size="+O+"&time="+R+"&freq="+D.chart.frequency[R];var Q='<img src="'+N+'" border="0" />';return Q}function B(){if(console){console.debug(arguments)}}return{init:function(){if($(D.container.home).length&&$(D.container.chart.full).length){$(D.container.home).click(I);$.get(D.proxy.template.full,H,"html")}if($(D.container.inner).length&&$(D.container.chart.simple).length){$(D.container.inner).click(A);$.get(D.proxy.template.simple,K,"html")}}}}();$(document).ready(DJAverages.Charts.init);DJAverages.InvestorTools=function(){var A="DJI";var E=DJAverages.Utils.getCookie("prevsymbol");var C;function D(G){var F=0;switch(G){case"DJI":F=1;break;case"DJT":F=2;break;case"DJU":F=3;break;default:F=0;break}return F}function B(){var J="none";var I=C[0].symbol;var H=0;var G=0;var F=false;I.options.length=0;for(ind in symbols){for(s in symbols[ind]){if(s==A){J=ind;break}}}if(J=="none"){J=A}if(J!="select"){C[0].indices.options.selectedIndex=D(J);I.options[I.options.length]=new Option("Select Company","."+J);for(s in symbols[J]){I.options[I.options.length]=new Option(symbols[J][s],s);if(s==E){G=I.options.length-1}if(s==A){H=I.options.length-1;F=true}}C[0].symbol.selectedIndex=(F==true)?H:G;if(F==true){DJAverages.Utils.setCookie("prevsymbol",I.value);C[0].targetURL.value=baseTargetUrl+"&indices="+J}}else{I.options[I.options.length]=new Option("Select Company","select")}}return{init:function(){C=$("#quoteLookup");if(C.length){var F=DJAverages.Utils.getQueryParams("qm_symbol");if(F){A=F.split(".");A=A[A.length-1]}C[0].targetURL.value=baseTargetUrl;C[0].indices.selectedIndex=D(A);B()}},switchIndices:function(){if(C[0].indices.selectedIndex>0){var F=C[0].symbol;F.options.length=0;F.options[F.options.length]=new Option("Select Company","select");C[0].targetURL.value=baseTargetUrl+"&indices="+C[0].indices.value;C[0].symbol[C[0].symbol.selectedIndex].value="."+C[0].indices.value;C[0].submit()}}}}();$(document).ready(DJAverages.InvestorTools.init);DJAverages.Search=function(){var I=DJAverages.Utils.getQueryParams("criteria")||"";var H=Ext.get("search-form-inline");var A=Ext.getDom("search-criteria");var S=Ext.get("search-pagination-top");var M=Ext.get("search-pagination-bottom");var Q=Ext.get("search-results");var P=10;var R,G,J,E,D,N;function K(){A.value=unescape(I);U();T();B();O()}function U(){J=new Ext.Template("<li>",'<span class="title"><a href="{url}" title="{title}">{title}</a></span><br/>','<span class="summary">{abstract}</span><br/>','<span class="dispurl">{dispurl}</span><br/>',"</li>").compile();E=new Ext.Template('<a class="{className}" href="#{label}">{label}</a>').compile()}function T(){G=Ext.DomHelper.append("subnav",[{tag:"div",id:"spinner"}],true);R=Ext.DomHelper.append("subnav",[{tag:"div",id:"search-status"}],true)}function B(){Ext.select(".pagination").on("click",function(X){X.preventDefault();F(X.target)});H.on("submit",function(X){X.preventDefault();I=A.value;O()});Ext.Ajax.on("beforerequest",function(){G.setVisible(true);C("")});Ext.Ajax.on("requestcomplete",function(){G.setVisible(false)});Ext.Ajax.on("requestexception",function(){G.setVisible(false);C("An error occurred while searching... please try again",true)})}function F(Y){var X=parseInt(Y.text);if(X){var Z=(X*N)-N;O(Z)}}function O(Y){L();var X=parseInt(Y);Ext.Ajax.request({url:"/DataService/v2/Search.cfc",params:{method:"search",criteria:unescape(I),start:(X)?X:0},success:W})}function L(){Q.dom.innerHTML="";S.dom.innerHTML="";M.dom.innerHTML=""}function W(Z){try{var Y=Ext.decode(Z.responseText);var a=Y.ysearchresponse;if(a.responsecode==="200"){var c=parseInt(a.count);C(((c===0)?"No":c)+" match"+((c!=1)?"es":"")+" found");if(c){var X=parseInt(a.start);var g=parseInt(a.totalhits);var f=a.resultset_web;C(g+" match"+((c!=1)?"es":"")+" found");for(var b=0;b<f.length;b++){J.append(Q,f[b])}V(g,c,X)}else{R.addClass("error")}}else{C("An error occurred while retrieving your results... please try again",true)}}catch(d){C("An error occurred... please try again",true)}}function V(a,Z,c){D=a;N=Z;if(a>Z){var a=Math.ceil(a/P);var b=Math.ceil(c/P)+1;var X=DJAverages.Utils.pagination(a,b);for(var Y=0;Y<X.data.length;Y++){E.append(S,X.data[Y]);E.append(M,X.data[Y])}}}function C(Y,X){R.removeClass("error");R.dom.innerHTML=Y;if(X){R.addClass("error")}}return{init:function(){if(Q&&I!==""){K()}}}}();Ext.onReady(DJAverages.Search.init,DJAverages.Search);DJAverages.ComponentList=function(){function B(){var C=new Array("industrial","transportation","utility");for(var D=0;D<C.length;D++){try{if(DJAverages.Utils.getQueryParams("view").toLowerCase()==C[D]){return D}}catch(E){return 0}}return 0}var A={container:"component-list",options:{expandItem:B(),collapsible:true,expandable:false,width:"95%",animate:true}};return{init:function(){var C=$("#"+A.container);if(C.length){new YAHOO.widget.AccordionView(A.container,A.options);C.fadeIn()}}}}();$(document).ready(DJAverages.ComponentList.init);DJAverages.PressReleases.PreviousList=function(){return{init:function(){if(Ext.get("year-tabs")){var A=new Ext.TabPanel({renderTo:"year-tabs",autoShow:true,activeTab:0,frame:true,defaults:{autoHeight:true},items:[{contentEl:"tab2009",title:"2009"},{contentEl:"tab2008",title:"2008"},{contentEl:"tab2007",title:"2007"},{contentEl:"tab2006",title:"2006"},{contentEl:"tab2005",title:"2005"},{contentEl:"tab2004",title:"2004"},{contentEl:"tab2003",title:"2003"},{contentEl:"tab2002",title:"2002"},{contentEl:"tab2001",title:"2001"}]})}}}}();Ext.onReady(DJAverages.PressReleases.PreviousList.init,DJAverages.PressReleases.PreviousList);DJAverages.SubscriptionDialog=function(){var B;if(!B){B=new Ext.Window({title:"IMPORTANT - Notice of Fee-based Service",modal:true,width:535,height:500,shadow:true,closeAction:"hide",contentEl:Ext.get("terms-text"),autoScroll:true,animateTarget:"popup-terms",buttons:[{text:"Accept",handler:function(){top.location.href="/?view=subscription&page=upgrades"}},{text:"Cancel",handler:function(){B.hide()}}]})}var A=function(){B.show()};return{init:function(){if(Ext.get("popup-terms")){Ext.get("popup-terms").on("click",A)}}}}();Ext.onReady(DJAverages.SubscriptionDialog.init);DJAverages.Milestones=function(){function A(){var D=["milestones","dailynetgains","dailypercentgains","dailynetlosses","dailypercentlosses","bestyears","worstyears","downloads"];var E=["Milestones","Daily Net Gains","Daily Percent Gains","Daily Net Losses","Daily Percent Losses","The Dow's Best Years","The Dow's Worst Years","Available Downloads"];var B=[];for(var C=0;C<D.length;C++){if(!Ext.isEmpty(Ext.get(D[C]))){B[B.length]={contentEl:D[C],title:E[C]}}}return B}return{init:function(){if(Ext.get("milestones-main")){var B=new Ext.TabPanel({renderTo:"milestones-main",autoShow:true,activeTab:0,frame:true,width:950,defaults:{autoHeight:true},items:A()})}}}}();Ext.onReady(DJAverages.Milestones.init,DJAverages.Milestones);function onTemplateLoaded(A){DJAverages.Media.VideoSelection.setAPI(A)}DJAverages.Media.Webinars=function(){function A(){switch(DJAverages.Utils.getQueryParams("go")){case"webinars":return"Webinars";case"audio":return"Audio";default:return"Video Presentations"}}return{init:function(){if(Ext.get("webinarPanels")){var B=new Ext.Panel({layout:"accordion",renderTo:"webinarPanels",width:973,autoHeight:true,defaults:{autoHeight:true},layoutConfig:{fill:true,collapseFirst:true,animate:true,titleCollapse:true},items:[{contentEl:"pane1",title:A(),iconCls:"accordionpanel-icons"}]})}}}}();Ext.onReady(DJAverages.Media.Webinars.init,DJAverages.Media.Webinars);DJAverages.Media.VideoSelection=function(){var A;function C(){return A}function B(E){var D=window.brightcove.getExperience(E);A={player:D.getModule(APIModules.VIDEO_PLAYER),content:D.getModule(APIModules.CONTENT)};A.content.addEventListener(window.BCContentEvent.VIDEO_LOAD,function(F){A.player.loadVideo(F.video.id)})}return{init:function(){Ext.select('[@class="video-link"]').on("click",function(F,E,D){F.preventDefault();C().content.getVideoAsynch(E.id)})},setAPI:function(D){B(D)}}}();Ext.onReady(DJAverages.Media.VideoSelection.init,DJAverages.Media.VideoSelection);