var educationArray;var currentIndex=0;var totalPages=0;function EducationObject(B,D,A,E,C){this.m_school=B;this.m_studentcount=D;this.m_website=A;this.m_educationclimate=E;this.m_gradessupported=C}function addEducationObject(C,B,F,A,G,E){if(educationArray==null){educationArray=[20]}var D=new EducationObject(B,F,A,G,E);educationArray.push(D)}function repaintEducationArea(B){var F=document.getElementById("education:school");var A=document.getElementById("education:student");var E=document.getElementById("education:website");
var G=document.getElementById("education:climate");var D=document.getElementById("education:grade");var C='<span id="education:moveLeft" onclick="javascript:moveLeft();" class="lazysusanarrow">&#x25C4;&nbsp;</span>'+truncate(B.m_school,40);C+='<span id="education:moveRight" onclick="javascript:moveRight();" class="lazysusanarrow">&nbsp;&#x25BA;</span>';F.innerHTML=C;A.innerHTML=B.m_studentcount;if(B.m_website==null||B.m_website==""||B.m_website=="N/A"){E.innerHTML="N/A"}else{E.innerHTML='<a title="'+B.m_website+'" href="'+B.m_website+'" target="_blank">'+truncate(stripProtocol(B.m_website),30)+"</a>"
}G.innerHTML=B.m_educationclimate;D.innerHTML=B.m_gradessupported}function truncate(B,A){var C=A;if(B!=null&&B!=""){if(B.length>A){var B=B.substring(0,C);B+="..."}}return B}function stripProtocol(A){if(A!=null&&A!=""){A=A.replace("http://","");A=A.replace("https://","");A=A.replace("www.","")}return A}function moveLeft(){this.currentIndex--;var A=educationArray[currentIndex];if(A!=null){repaintEducationArea(A)}if(currentIndex==1&&totalPages>0){document.getElementById("education:moveLeft").style.visibility="hidden";
document.getElementById("education:moveRight").style.visibility="visible"}}function moveRight(){this.currentIndex++;if(this.currentIndex>(educationArray.length)){this.currentIndex=educationArray.length}var A=educationArray[currentIndex+1];if(A!=null){repaintEducationArea(A)}if(this.currentIndex==(totalPages-2)){document.getElementById("education:moveRight").style.visibility="hidden";document.getElementById("education:moveLeft").style.visibility="visible"}}function calculateCollegeEducated(I,E,B,J,D,C,H){var F=I+E+B+J+D+C+H;
var A=D+C+H;var H=A/F;var G=Math.round(H*100);document.getElementById("collegeGrads").innerHTML=G+"%"}function showArrows(A){if(A==0){document.getElementById("education:moveLeft").style.visibility="hidden";document.getElementById("education:moveRight").style.visibility="hidden"}if(A>0){document.getElementById("education:moveLeft").style.visibility="hidden";document.getElementById("education:moveRight").style.visibility="visible"}this.totalPages=A};
