function accordion(aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka){var la=null;var ma=xGetElementById(aa);if(!ma)return null;if(null==ia)ia=0;var na=0;var oa=0;var pa=xGetElementsByClassName(ba,ma);for(var i=0;i<pa.length;i++){var qa=xGetElementsByClassName(ca,pa[i]);if((null==qa)&&(1!=qa.length))return null;oa+=xHeight(qa[0]);pa[i].header=qa[0];pa[i].header.onclick=headerClick;pa[i].header.onmouseover=mouseOver;pa[i].header.onmouseout=mouseOut;pa[i].header.hoverBgColor=ea;pa[i].header.hoverTextColor=fa;pa[i].header.regularBgColor=ga;pa[i].header.regularTextColor=ha;pa[i].header.panel=pa[i];pa[i].accordion=this;pa[i].showPanel=ja;pa[i].hidePanel=ka;var ra=xGetElementsByClassName(da,pa[i]);if((null==ra)&&(1!=ra.length))return null;xDisplay(ra[0],"block");if(na<xHeight(ra[0]))na=xHeight(ra[0]);xDisplay(ra[0],"none");pa[i].contentPanel=ra[0];if(i==ia)showThePanel(pa[i]);else hideThePanel(pa[i]);}
var sa=oa+na;this.setStartPanel=function(ta){showThePanel(pa[ta]);}
function headerClick(){var ua=this.panel;var va=ua.contentPanel.style;if(va.display=='none')showThePanel(ua);else{if((null!=this.panel.accordion.currentExpandedPanel)&&(this.panel!=this.panel.accordion.currentExpandedPanel))hideThePanel(this.panel.accordion.currentExpandedPanel);else hideThePanel(this.panel);}}
function showThePanel(wa){if(null!=wa.accordion.currentExpandedPanel)hideThePanel(wa.accordion.currentExpandedPanel,"none");xDisplay(wa.contentPanel,"block");wa.accordion.currentExpandedPanel=wa;if(null!=wa.showPanel)wa.showPanel(wa);}
function hideThePanel(xa){xDisplay(xa.contentPanel,"none");if(xa==xa.accordion.currentExpandedPanel)xa.accordion.currentExpandedPanel=null;if(null!=xa.hidePanel)xa.hidePanel(xa);}
function mouseOver(){this.style.backgroundColor=this.hoverBgColor;this.style.color=this.hoverTextColor;}
function mouseOut(){this.style.backgroundColor=this.regularBgColor;this.style.color=this.regularTextColor;}
this.getHeight=function(){return sa;}
this.onUnload=function(){if(!xIE4Up||!ma)return;for(i=0;i<pa.length;++i){header=pa[i].header;if(header){header.onclick=null;header.panel=null;}
accordion=null;ja=null;ka=null;}}}