var currentSection="my1-pane",tabTag="-tab",paneTag="-pane"; function ScrollSection(a,b,d){if(currentSection!=a){lastSection=currentSection;currentSection=a;sectionTab=currentSection.split("-")[0]+tabTag;document.getElementById(sectionTab).className="active";if(lastSection){lastTab=lastSection.split("-")[0]+tabTag;document.getElementById(lastTab).className="inactive"}theScroll=document.getElementById(b);position=findElementPos(document.getElementById(a));if(d!=""){offsetPos=findElementPos(document.getElementById(d));position[0]-=offsetPos[0]}scrollStart(theScroll, theScroll.scrollLeft,position[0])}} function ScrollArrow(a,b,d,e){toolbarElem=document.getElementById(b);delete toolbarNames;toolbarNames=[];if(toolbarElem.hasChildNodes()){b=toolbarElem.childNodes;for(var c=0;c<b.length;c++)toolbarElem.childNodes[c].tagName=="LI"&&toolbarNames.push(toolbarElem.childNodes[c].id.split("-")[0])}else alert(b+" has no <li> - Elements.");for(c=0;c<toolbarNames.length;c++)if(toolbarNames[c]==currentSection.split("-")[0])gotoTab=a=="left"?c-1<0?toolbarNames[toolbarNames.length-1]:toolbarNames[c-1]:c+1>toolbarNames.length- 1?toolbarNames[0]:toolbarNames[c+1];ScrollSection(gotoTab+paneTag,d,e)}var scrollanim={time:0,begin:0,change:0,duration:0,element:null,timer:null};function scrollStart(a,b,d){if(scrollanim.timer!=null){clearInterval(scrollanim.timer);scrollanim.timer=null}scrollanim.time=0;scrollanim.begin=b;scrollanim.change=d-b;scrollanim.duration=25;scrollanim.element=a;scrollanim.timer=setInterval("scrollHorizAnim();",15)} function scrollHorizAnim(){if(scrollanim.time>scrollanim.duration){clearInterval(scrollanim.timer);scrollanim.timer=null}else{move=sineInOut2(scrollanim.time,scrollanim.begin,scrollanim.change,scrollanim.duration);scrollanim.element.scrollLeft=move;scrollanim.time++}}function sineInOut2(a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b}function findElementPos(a){var b=0,d=0;do{b+=a.offsetLeft;d+=a.offsetTop}while(a=a.offsetParent);return[b,d]};
