function $(b){return document.getElementById(b);}function dsp(d,e){if(e==undefined){return d.style.display;}else{d.style.display=e;}}function sh(d,e){if(e==undefined){if(dsp(d)!="none"&&dsp(d)!=""){return d.offsetHeight;}viz=d.style.visibility;d.style.visibility="hidden";o=dsp(d);dsp(d,"block");r=parseInt(d.offsetHeight);dsp(d,o);d.style.visibility=viz;return r;}else{d.style.height=e;}}s=7;t=10;function ct(b){b=$(b);if(sh(b)>0){v=Math.round(sh(b)/b.s);v=(v<1)?1:v;v=(sh(b)-v);sh(b,v+"px");b.style.opacity=(v/b.maxh);b.style.filter="alpha(opacity="+(v*100/b.maxh)+");";}else{sh(b,0);dsp(b,"none");clearInterval(b.t);}}function et(b){b=$(b);if(sh(b)<b.maxh){v=Math.round((b.maxh-sh(b))/b.s);v=(v<1)?1:v;v=(sh(b)+v);sh(b,v+"px");b.style.opacity=(v/b.maxh);b.style.filter="alpha(opacity="+(v*100/b.maxh)+");";}else{sh(b,b.maxh);clearInterval(b.t);}}function cl(b){if(dsp(b)=="block"){clearInterval(b.t);b.t=setInterval('ct("'+b.id+'")',t);}}function ex(b){if(dsp(b)=="none"){dsp(b,"block");b.style.height="0px";clearInterval(b.t);b.t=setInterval('et("'+b.id+'")',t);}}function cc(d,e){s=d.className.split(/\s+/);for(p=0;p<s.length;p++){if(s[p]==e+d.tc){s.splice(p,1);d.className=s.join(" ");break;}}}function Accordian(g,d,f){l=$(g).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"){g=$(h.substr(0,h.indexOf("-"))+"-content");g.style.display="none";g.style.overflow="hidden";g.maxh=sh(g);g.s=(d==undefined)?7:d;h=$(h);h.tc=f;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();}}