function $(A){return document.getElementById(A)}function dsp(B,A){if(A==undefined){return B.style.display}else{B.style.display=A}}function sh(B,A){if(A==undefined){if(dsp(B)!="none"&&dsp(B)!=""){return B.offsetHeight}viz=B.style.visibility;B.style.visibility="hidden";o=dsp(B);dsp(B,"block");r=parseInt(B.offsetHeight);dsp(B,o);B.style.visibility=viz;return r}else{B.style.height=A}}s=7;t=10;function ct(A){A=$(A);if(sh(A)>0){v=Math.round(sh(A)/A.s);v=(v<1)?1:v;v=(sh(A)-v);sh(A,v+"px");A.style.opacity=(v/A.maxh);A.style.filter="alpha(opacity="+(v*100/A.maxh)+");"}else{sh(A,0);dsp(A,"none");clearInterval(A.t)}}function et(A){A=$(A);if(sh(A)<A.maxh){v=Math.round((A.maxh-sh(A))/A.s);v=(v<1)?1:v;v=(sh(A)+v);sh(A,v+"px");A.style.opacity=(v/A.maxh);A.style.filter="alpha(opacity="+(v*100/A.maxh)+");"}else{sh(A,A.maxh);clearInterval(A.t)}}function cl(A){if(dsp(A)=="block"){clearInterval(A.t);A.t=setInterval('ct("'+A.id+'")',t)}}function ex(A){if(dsp(A)=="none"){dsp(A,"block");A.style.height="0px";clearInterval(A.t);A.t=setInterval('et("'+A.id+'")',t)}}function cc(B,A){s=B.className.split(/\s+/);for(p=0;p<s.length;p++){if(s[p]==A+B.tc){s.splice(p,1);B.className=s.join(" ");break}}}function Accordian(C,B,A){l=$(C).getElementsByTagName("div");c=[];for(i=0;i<l.length;i++){h=l[i].id;if(h.substr(h.indexOf("-")+1,h.length)=="content"){c.push(h)}}sel=null;for(i=0;i<l.length;i++){h=l[i].id;if(h.substr(h.indexOf("-")+1,h.length)=="header"){C=$(h.substr(0,h.indexOf("-"))+"-content");if(C.id=="test1-content"){C.maxh=117}else{C.style.overflow="hidden";C.maxh=sh(C)}C.s=(B==undefined)?7:B;h=$(h);h.tc=A;h.c=c;h.onclick=function(){for(i=0;i<this.c.length;i++){cn=this.c[i];n=cn.substr(0,cn.indexOf("-"));if((n+"-header")==this.id){ex($(n+"-content"));n=$(n+"-header");cc(n,"__");n.className=n.className+" "+n.tc}else{cl($(n+"-content"));cc($(n+"-header"),"")}}};if(h.className.match(/selected+/)!=undefined){sel=h}}}if(sel!=undefined){sel.onclick()}};