function expandBox(e){if(!e.expandId){return false}var h=document.getElementById(e.expandId);var i=typeof(e.changeId)=="undefined"?false:document.getElementById(e.changeId);var b=typeof(e.maxHeight)=="undefined"?h.offsetHeight:e.maxHeight;var f=typeof(e.minHeight)=="undefined"?0:e.minHeight;var a=typeof(e.slideTime)=="undefined"?250:e.slideTime;var c=0;var d="shown";var g=[];var j=this;if(i){g=e.listOfChanges.length==2?e.listOfChanges.concat(e.listOfChanges):e.listOfChanges}if(typeof(e.startOpen)=="undefined"||!e.startOpen){d="hidden";h.style.height=f+"px"}this.hideShown=function(){if(i){i.innerHTML=g[0]}d="hiding";c=a;toggleShowTimeout=setTimeout(function(){j.hideElem(new Date().getTime(),0)},0)};this.hideShowing=function(){d="hiding";clearTimeout(toggleShowTimeout);toggleShowTimeout=false;if(i){i.innerHTML=g[2]}toggleShowTimeout=setTimeout(function(){j.hideElem(new Date().getTime(),a-c)},0)};this.showHiding=function(){d="showing";clearTimeout(toggleShowTimeout);toggleShowTimeout=false;if(i){i.innerHTML=g[3]}toggleShowTimeout=setTimeout(function(){j.showElem(new Date().getTime(),a-c)},0)};this.showHidden=function(){if(i){i.innerHTML=g[1]}d="showing";c=a;toggleShowTimeout=setTimeout(function(){j.showElem(new Date().getTime(),0)},0)};this.toggleOpen=function(){var k=false;if(d=="shown"){this.hideShown();k=true}else{if(d=="showing"){this.hideShowing()}else{if(d=="hiding"){this.showHiding()}else{this.showHidden()}}}if(k){this.shortenCategoryText()}else{this.lengthenCategoryText()}};this.openElm=function(){if(d=="shown"){return}else{if(d=="showing"){return}else{if(d=="hiding"){this.showHiding()}else{this.showHidden()}}}};this.closeElm=function(){if(d=="shown"){this.hideShown()}else{if(d=="showing"){this.hideShowing()}else{if(d=="hiding"){return}else{return}}}};this.hideElem=function(l,k){var m=new Date().getTime()-l;c=(a-k)-m;if(c<=0){clearTimeout(toggleShowTimeout);d="hidden";h.style.height=f+"px";c=0}else{h.style.height=String(Math.round((c/a)*(b-f)+f))+"px";toggleShowTimeout=setTimeout(function(){j.hideElem(l,0)},10)}};this.showElem=function(l,k){var m=new Date().getTime()-l;c=(a-k)-m;if(c<=0){clearTimeout(toggleShowTimeout);d="shown";h.style.height=String(b)+"px";c=0}else{h.style.height=String(b-Math.round((c/a)*(b-f)+f)+f)+"px";toggleShowTimeout=setTimeout(function(){j.showElem(l,0)},10)}};this.getState=function(){return d};this.lengthenCategoryText=function(){var m=document.getElementById("shortDescription");var l=document.getElementById("longDescription");var k=document.getElementById("shortDescriptionOriginal");if(k.innerHTML.length<1){k.innerHTML=m.innerHTML}m.innerHTML=k.innerHTML;if(null!=l){l.style.visibility="visible";l.style.display=""}};this.shortenCategoryText=function(){var p=document.getElementById("shortDescription");var o=document.getElementById("longDescription");var l=document.getElementById("shortDescriptionOriginal");var n=121;var m="";var k=false;var q=(null!=o?o.innerHTML:"");if(l.innerHTML.length<1){l.innerHTML=p.innerHTML}textString=l.innerHTML+" "+q;if(textString.length>n){m=textString.substr(0,n+1);k=true}else{m=textString}if(k&&(!m.charAt(m.length-2).match(/[0-9a-zA-Z.!?,;:\'\"\/\\]/g)||!m.charAt(m.length-1).match(/[0-9a-zA-Z.!?,;:\'\"\/\\]/g))){m=m.substr(0,m.length-1)+" ..."}else{if(k){m=m.substr(0,m.lastIndexOf(" "))+" ..."}else{m=l.innerHTML}}p.innerHTML=m;if(null!=o){o.style.visibility="hidden";o.style.display="none"}};return""};