window.g_arrMousePos=[];window.g_arrMouseOffset=[];window.g_arrAccordions=[];window.g_arrAni=[];window.HELPER=new helper();window.g_iDrag;window.ie=navigator.appName=="Microsoft Internet Explorer"&&(!window.opera);window.ie6=false
/*@cc_on || @_jscript_version < 5.7 @*/
;function getAnimatioByName(a){for(var b=0;b<window.g_arrAni.length;b++){if(window.g_arrAni[b].strFriendlyName==a){return window.g_arrAni[b]}}return false}function getAnimatioByGuid(a){for(var b=0;b<window.g_arrAni.length;b++){if(window.g_arrAni[b].strGuid==a){return window.g_arrAni[b]}}return false}function initAccordion(){var b,g,d=-1,e=-1,c,f=[],a;a=document.getElementsByTagName("div");for(b=0;b<a.length;b++){if(a[b].className.indexOf("accordionGroup")!=-1){d++;g_arrAccordions[d]=-1;f=a[b].getElementsByTagName("div");for(g=0;g<f.length;g++){if(f[g].className.indexOf("accordionItem")!=-1){e++;c=new animatio(f[g],"accordionItem_"+d+"_"+e,false);c.iAccordionGroup=d;c.iAccordionItem=e;c.iFullHeight=c.oNewElement.offsetHeight-40;c.setStyle("overflow","hidden");c.setStyle("height",17);c.setStyle("height",c.iFullHeight);c.animate(["height"],[17],25,easeOutCirc);window.HELPER.hookEvent(f[g].getElementsByTagName("h3")[0],"click",aniEVENT_onclickAccordion)}}}}}function aniEVENT_onclickAccordion(d){var b=window.HELPER.getEventTarget(d);while(!HELPER.notNull(b.oAni)){b=b.parentNode}if(HELPER.notNull(b.oAni)){var c=25;var g=b.oAni;var a=g_arrAccordions[g.iAccordionGroup];switch(g.getStyle("height")){case 17:g.enqueue("animate",[["['height']"],["['auto']"],1,linearTween],10);g.animate(["height"],[g.iFullHeight],c,easeInCirc);if(a!=-1&a!=g.iAccordionItem){var f=getAnimatioByName("accordionItem_"+g.iAccordionGroup+"_"+a);if(f.bInProgress){f.stop(true)}else{f.setStyle("height",f.iFullHeight)}f.animate(["height"],[17],c,easeOutCirc)}g_arrAccordions[g.iAccordionGroup]=g.iAccordionItem;break;default:g.setStyle("height",g.iFullHeight);g.animate(["height"],[17],c,easeOutCirc);g_arrAccordions[g.iAccordionGroup]=-1;break}}}function getZoomImages(){var e=document.getElementsByTagName("img");var b=new Array();var c;var a;var d;for(i=0;i<e.length;i++){d=e[i].className.split(" ");for(n=0;n<d.length;n++){a=d[n].indexOf("zoom-");if(a!=-1){c=d[n].substring(a+5);b[n]=new Image();b[n].onload=setZoom;b[n].src=c;b[n].oThumbnail=e[i]}l_iPos2=d[n].indexOf("morph-");if(l_iPos2!=-1){c=d[n].substring(l_iPos2+6);b[n]=new Image();b[n].onload=setMorph;b[n].src=c;b[n].oThumbnail=e[i]}}}}function setZoom(){var a=this.oThumbnail;var b=this;window.HELPER.hookEvent(a,"mouseover",function(){hoverimage(a,b.src,b.width,b.height)})}function hoverimage(e,d,a,c){var b=new animatio(e);b.setStyle("margin",0);b.zoom(c,a,d,0);window.HELPER.hookEvent(b.oNewElement,"mouseout",function(){b.stop();b.fadeToRestore()});window.HELPER.hookEvent(b.oNewElement,"click",function(){b.fadeToRestore()})}function setMorph(){var a=this.oThumbnail;var b=this;window.HELPER.hookEvent(a,"mouseover",function(){morphimage(a,b.src)})}function morphimage(c,b){if(!notNull(c.oAni)){var a=new animatio(c);a.oNewElement.src=b;a.oElement.style.visibility="visible";a.setStyle("opacity",0);a.animate(["opacity"],[1],15,easeOutSine);window.HELPER.hookEvent(a.oNewElement,"mouseout",function(){a.oNewElement.oAni.fadeOut(6,true)})}}function animatio(p_varElement,p_strFriendlyName,p_bUseClone){if(typeof p_bUseClone=="undefined"){p_bUseClone=true}this.id=window.g_arrAni.length;window.g_arrAni[this.id]=this;this.arrStart=[];this.arrCurrent=[];this.arrChange=[];this.arrSteppings=[];this.arrImages=[];this.arrImagesHref=[];this.arrPlaylist=[];this.iTimeout=-1;this.bDragable=false;this.bInProgress=false;this.strGuid=window.HELPER.guid();this.oElement=window.HELPER.getElement(p_varElement);this.arrStartPos=window.HELPER.getPosition(this.oElement);if(p_bUseClone){this.oNewElement=this.oElement.cloneNode(true);this.oElement.style.visibility="hidden";window.document.body.appendChild(this.oNewElement);with(this.oNewElement){id=this.strGuid;style.cursor="";style.position="absolute";style.left=this.arrStartPos[0]+"px";style.top=this.arrStartPos[1]+"px";style.width=offsetWidth+"px";style.height=offsetHeight+"px";setAttribute("onclick",null);setAttribute("ondblclick",null);setAttribute("onmouseover",null);setAttribute("onmouseout",null);setAttribute("onmousedown",null);setAttribute("onmouseup",null);setAttribute("onkeydown",null);setAttribute("onkeypress",null);setAttribute("onkeyup",null);setAttribute("onload",null);setAttribute("onunload",null);setAttribute("onbeforeunload",null);setAttribute("onfocus",null);setAttribute("onblur",null)}}else{this.oNewElement=this.oElement}this.strFriendlyName=p_strFriendlyName;this.oElement.oAni=this;this.oNewElement.oAni=this}animatio.prototype.animate=aniAnimate;animatio.prototype.next=aniNext;animatio.prototype.stop=aniStop;animatio.prototype.enqueue=aniEnqueue;animatio.prototype.getStyle=aniGetStyle;animatio.prototype.setStyle=aniSetStyle;animatio.prototype.getHoverState=aniGetHoverState;animatio.prototype.getPosition=aniGetPosition;animatio.prototype.setPosition=aniSetPosition;animatio.prototype.setOpacity=aniSetOpacity;animatio.prototype.enableDrag=aniEnableDrag;animatio.prototype.disableDrag=aniDisableDrag;animatio.prototype.setSrc=aniSetSrc;animatio.prototype.move=aniMove;animatio.prototype.fadeOut=aniFadeOut;animatio.prototype.fadeIn=aniFadeIn;animatio.prototype.shrinkV=aniShrinkVertical;animatio.prototype.shrinkH=aniShrinkHorizontal;animatio.prototype.pulsate=aniPulsate;animatio.prototype.zoom=aniZoom;animatio.prototype.fadeToRestore=aniFadeToRestore;animatio.prototype.restore=aniRestoreElement;function aniAnimate(e,a,c,d){if(this.bInProgress&HELPER.notNull(this.arrProperties)){this.iTime++;for(var b=0;b<this.arrProperties.length;b++){switch(HELPER.getType(this.arrCurrent[b])){case"array":this.arrCurrent[b][0]=parseInt(this.funcTransition(this.iTime,this.arrStart[b][0],this.arrChange[b][0],this.iFrames));this.arrCurrent[b][1]=parseInt(this.funcTransition(this.iTime,this.arrStart[b][1],this.arrChange[b][1],this.iFrames));this.arrCurrent[b][2]=parseInt(this.funcTransition(this.iTime,this.arrStart[b][2],this.arrChange[b][2],this.iFrames));break;case"number":this.arrCurrent[b]=this.funcTransition(this.iTime,this.arrStart[b],this.arrChange[b],this.iFrames);break;case"string":break}this.setStyle(this.arrProperties[b],this.arrCurrent[b])}if(this.iTime<this.iFrames){this.iTimeout=window.setTimeout("window.g_arrAni["+this.id+"].animate();",10)}else{window.clearTimeout(this.iTimeout);this.arrStart=[];this.arrCurrent=[];this.arrChange=[];this.arrSteppings=[];this.arrProperties=[];this.bInProgress=false;this.next()}}else{if(!this.bInProgress&HELPER.notNull(e)){this.bInProgress=true;this.iTime=0;this.arrProperties=e;this.arrValues=a;this.iFrames=c;this.funcTransition=d||this.funcTransition||easeInOutSine;for(var b=0;b<this.arrProperties.length;b++){this.arrStart[b]=this.getStyle(this.arrProperties[b]);switch(HELPER.getType(this.arrValues[b])){case"array":this.arrValues[b]=HELPER.hexToRGB(this.arrValues[b]);this.arrChange[b]=[parseFloat(this.arrValues[b][0]-this.arrStart[b][0]),parseFloat(this.arrValues[b][1]-this.arrStart[b][1]),parseFloat(this.arrValues[b][2]-this.arrStart[b][2])];this.arrSteppings[b]=[this.arrChange[b][0]/this.iFrames,this.arrChange[b][1]/this.iFrames,this.arrChange[b][2]/this.iFrames,];this.arrCurrent[b]=new Array().concat(this.arrStart[b]);break;case"string":this.arrChange[b]="";this.arrSteppings[b]="";this.arrCurrent[b]=this.arrValues[b];this.setStyle(this.arrProperties[b],this.arrValues[b]);break;default:this.arrChange[b]=this.arrValues[b]-this.arrStart[b];this.arrSteppings[b]=this.arrChange[b]/this.iFrames;this.arrCurrent[b]=this.arrStart[b];break}}this.iTimeout=window.setTimeout("window.g_arrAni["+this.id+"].animate();",10)}}}function aniNext(){if(window.HELPER.getType(this.arrPlaylist[0])=="array"){var d=this.arrPlaylist.shift();var a=d[0];var c=window.HELPER.notNull(d[1])?d[1].join(","):"";var e=d[2]||0;var b=window.HELPER.notNull(d[3])?getAnimatioByName(d[3]).id:this.id;if(window.HELPER.notNull(b)){window.setTimeout("window.g_arrAni["+b+"]."+a+"("+c+");",e)}if(b!=this.id){this.next()}}}function aniStop(a){window.clearTimeout(this.iTimeout);this.bInProgress=false;this.arrStart=[];this.arrCurrent=[];this.arrChange=[];this.arrSteppings=[];this.arrProperties=[];this.arrValues=[];if(a){this.arrPlaylist=[]}}function aniEnqueue(c,d,a,b){this.arrPlaylist.push([c,d,a,b])}function aniGetStyle(a){var b=String(this.oNewElement.style[a]);if(b.indexOf("px")!=-1){return parseInt(b)}if(a=="backgroundColor"||a=="borderColor"){a="color"}switch(a){case"opacity":if(isNaN(parseFloat(b))){return 1}return parseFloat(b)||1;case"width":return b||this.oNewElement.offsetWidth;case"height":return b||this.oNewElement.offsetHeight;case"color":return HELPER.hexToRGB(b);default:return b||0}}function aniSetStyle(a,b){switch(a){case"opacity":return this.setOpacity(b);break;case"float":a=(window.ie)?"styleFloat":"cssFloat";break;case"width":if(b<0){b=0}break;case"height":if(b<0){b=0}break}if(window.HELPER.getType(b)=="array"){b="rgb("+b[0]+","+b[1]+","+b[2]+")"}else{if(window.HELPER.getType(b)=="number"&a!="zIndex"){b+="px"}}this.oNewElement.style[a]=b}function aniGetHoverState(){var b=HELPER.getScrollOffset();var c=(g_arrMousePos[0]+b[0]>=this.arrStartPos[0]&g_arrMousePos[0]+b[0]<=(this.arrStartPos[0]+this.oNewElement.offsetWidth));var a=(g_arrMousePos[1]+b[1]>=this.arrStartPos[1]&g_arrMousePos[1]+b[1]<=(this.arrStartPos[1]+this.oNewElement.offsetHeight));if(c&a){return true}else{return false}}function aniGetPosition(){var b=this.getStyle("left");var a=this.getStyle("top");return[b,a]}function aniSetPosition(b,a){this.setStyle("left",b+"px");this.setStyle("top",a+"px")}function aniSetOpacity(a){if(window.ie){this.oNewElement.runtimeStyle.filter="Alpha(opacity="+a*100+")";if(window.HELPER.notNull(this.oNewElement.src)){if(this.oNewElement.src.indexOf(".png")!=-1){this.setStyle("background","white")}}}this.oNewElement.style.opacity=a;if(a==0){this.oNewElement.style.visibility="hidden"}else{if(this.oNewElement.style.visibility!="visible"){this.oNewElement.style.visibility="visible"}}}function aniEnableDrag(){this.bDragable=true;if(window.ie){window.HELPER.hookEvent(this.oNewElement,"dragstart",aniEVENT_ondragstart)}window.HELPER.hookEvent(this.oNewElement,"mousedown",aniEVENT_onmousedownStartDrag);window.HELPER.hookEvent(this.oNewElement,"mouseup",aniEVENT_onmouseupEndDrag)}function aniDisableDrag(){this.bDragable=false;window.HELPER.unhookEvent(this.oNewElement,"mousedown",aniEVENT_onmousedownStartDrag);window.HELPER.unhookEvent(this.oNewElement,"mouseup",aniEVENT_onmouseupEndDrag)}function aniEVENT_ondragstart(a){return false}function aniEVENT_onmousedownStartDrag(b){b.cancelBubble=true;if(b.preventDefault){b.preventDefault()}else{b.returnValue=false}window.HELPER.hookEvent(document,"mousemove",aniEVENT_onmousemoveDrag);var a=window.HELPER.getEventTarget(b);while(!a.oAni){a=a.parentNode}if(!window.ie){a.oAni.animate(["opacity"],[0.7],5,easeInOutSine)}window.g_iDrag=a.oAni.id;window.g_arrMouseOffset=[parseInt(a.style.left)-window.g_arrMousePos[0],parseInt(a.style.top)-window.g_arrMousePos[1]];return false}function aniEVENT_onmouseupEndDrag(b){var a=window.HELPER.getEventTarget(b);while(!a.oAni){a=a.parentNode}if(!window.ie){a.oAni.animate(["opacity"],[1],5,easeInOutSine)}window.g_iDrag=-1;window.HELPER.unhookEvent(document,"mousemove",aniEVENT_onmousemoveDrag)}function aniEVENT_onmousemoveDrag(a){if(window.g_arrAni[window.g_iDrag]){window.g_arrAni[window.g_iDrag].setPosition(window.g_arrMousePos[0]+window.g_arrMouseOffset[0],window.g_arrMousePos[1]+window.g_arrMouseOffset[1])}else{window.g_iDrag=-1;window.HELPER.unhookEvent(document,"mousemove",aniEVENT_onmousemoveDrag)}}function aniSetSrc(a){this.oNewElement.src=a;this.next()}function aniMove(b,a,c){if(!this.bInProgress){var f=b-parseInt(this.getStyle("left"));var d=a-parseInt(this.getStyle("top"));var e=c||4;var g=Math.round(Math.sqrt(f*f+d*d)/e);this.animate(["left","top"],[b,a],g)}}function aniFadeOut(a,b){if(!this.bInProgress){a=a||2;var c=Math.round(this.getStyle("opacity")/(a/100));this.animate(["opacity"],[0],c);if(b==1){this.enqueue("restore")}}}function aniFadeIn(a){if(!this.bInProgress){a=a||2;var b=Math.round((1-this.getStyle("opacity"))/(a/100));this.animate(["opacity"],[1],b)}}function aniShrinkVertical(){if(!this.bInProgress){var b=this.getStyle("height");var a=this.getStyle("marginTop");this.animate(["height","marginTop"],[0,b/2+a],30)}}function aniShrinkHorizontal(){if(!this.bInProgress){var a=this.getStyle("width");var b=this.getStyle("marginLeft");this.animate(["width","marginLeft"],[0,a/2+b],30)}}function aniPulsate(){if(!this.bInProgress){this.enqueue("animate",[["['opacity']"],["[0]"],20,easeInOutSine],0);this.enqueue("animate",[["['opacity']"],["[0.8]"],20,easeInOutSine],0);this.enqueue("animate",[["['opacity']"],["[0]"],20,easeInOutSine],0);this.enqueue("animate",[["['opacity']"],["[0.8]"],20,easeInOutSine],0);this.enqueue("animate",[["['opacity']"],["[0]"],20,easeInOutSine],0);this.enqueue("animate",[["['opacity']"],["[1]"],20,easeInOutSine],0);this.next()}}function aniZoom(a,e,b,c){this.oNewElement.src=b;var d=this.getPosition();var k=window.HELPER.getPageSize();var g=(e-this.getStyle("width"))/2;var f=(a-this.getStyle("height"))/2;var j=d[0]-g;var h=d[1]-f;if((j+e)>k[0]){j=k[0]-e-20}if((h+a)>k[1]){h=k[1]-a-20}if(j<0){j=20}if(h<0){h=20}this.animate(["width","height","left","top"],[e,a,j,h],30,easeInOutSine)}function aniFadeToRestore(){if(!this.bInProgress){var b=20;var e=this.arrStartPos[0];var d=this.arrStartPos[1];var a=this.oElement.offsetWidth;var c=this.oElement.offsetHeight;this.animate(["opacity","left","top","width","height"],[0.5,e,d,a,c],b,easeInOutSine);this.enqueue("restore")}}function aniRestoreElement(){if(this.iTimeout!=null){window.clearTimeout(this.iTimeout);this.iTimeout=null}if(window.HELPER.notNull(this.oNewElement)){window.document.body.removeChild(this.oNewElement);this.oElement.oAni=null;g_arrAni[this.id]=-1}this.oElement.style.visibility="visible"}function helper(){hookEvent(window,"load",getZoomImages);hookEvent(window,"load",initAccordion);hookEvent(document,"mousemove",getMousePosition)}helper.prototype.getType=getType;helper.prototype.notNull=notNull;helper.prototype.getElement=getElement;helper.prototype.getPosition=getPosition;helper.prototype.getPageSize=getPageSize;helper.prototype.getScrollOffset=getScrollOffset;helper.prototype.guid=guid;helper.prototype.random=randomNumber;helper.prototype.hookEvent=hookEvent;helper.prototype.unhookEvent=unhookEvent;helper.prototype.getEvent=getEvent;helper.prototype.getEventTarget=getEventTarget;helper.prototype.hexToRGB=hexToRGB;function getType(b){if(!this.notNull(b)){return false}if(b.htmlElement){return"element"}var a=typeof b;if(a=="object"&&b.nodeName){switch(b.nodeType){case 1:return"element";case 3:return(/\S/).test(b.nodeValue)?"textnode":"whitespace"}}if(a=="object"||a=="function"){switch(b.constructor){case Array:return"array";case RegExp:return"regexp"}if(typeof b.length=="number"){if(b.item){return"collection"}if(b.callee){return"arguments"}}}return a}function notNull(a){return(a!=undefined)}function getElement(a){switch(this.getType(a)){case"element":return a;case"string":return document.getElementById(a)}}function getPosition(a){var b=l_iTop=0;if(a.offsetParent){b=a.offsetLeft;l_iTop=a.offsetTop;while(a=a.offsetParent){b+=a.offsetLeft;l_iTop+=a.offsetTop}}return[b,l_iTop]}function getPageSize(){var a=document.documentElement.scrollWidth||0;var b=document.documentElement.scrollHeight||0;return[a,b]}function getScrollOffset(){return[window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft,window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop]}function guid(){var c,b,a;c="";for(a=0;a<32;a++){if(a==8||a==12||a==16||a==20){c=c+"-"}b=Math.round(Math.random()*16).toString(16).toUpperCase();c=c+b}return c}function randomNumber(a,b){var c=Math.random()*(b-a);return Math.round(a+c)}function hookEvent(c,b,a){if(typeof(element)=="string"){c=document.getElementById(c)}if(c==null){return}if(c.addEventListener){c.addEventListener(b,a,false)}else{if(c.attachEvent){c.attachEvent("on"+b,a)}}}function unhookEvent(c,b,a){if(typeof(c)=="string"){c=document.getElementById(element)}if(c==null){return}if(c.removeEventListener){c.removeEventListener(b,a,false)}else{if(c.detachEvent){c.detachEvent("on"+b,a)}}}function getEvent(a){if(!a){return window.event}return a}function getEventTarget(a){var a=this.getEvent(a);if(a.target){return a.target}return a.srcElement}function getMousePosition(a){a=window.HELPER.getEvent(a);window.g_arrMousePos=[a.clientX,a.clientY]}function hexToRGB(b){if(HELPER.getType(b)=="array"){return b}if(b.indexOf("rgb")!=-1){b=b.match(/(\d+, ?\d+, ?\d+){1}/)[0];var a=b.split(",");a[0]=parseInt(a[0]);a[1]=parseInt(a[1]);a[2]=parseInt(a[2]);return a}b=b.replace("#","");var a=[parseInt(b.substring(0,2),16),parseInt(b.substring(2,4),16),parseInt(b.substring(4,6),16)];return a}function linearTween(e,a,g,f){return g*e/f+a}function easeInQuad(e,a,g,f){return g*(e/=f)*e+a}function easeOutQuad(e,a,g,f){return -g*(e/=f)*(e-2)+a}function easeInOutQuad(e,a,g,f){if((e/=f/2)<1){return g/2*e*e+a}return -g/2*((--e)*(e-2)-1)+a}function easeInCubic(e,a,g,f){return g*(e/=f)*e*e+a}function easeOutCubic(e,a,g,f){return g*((e=e/f-1)*e*e+1)+a}function easeInOutCubic(e,a,g,f){if((e/=f/2)<1){return g/2*e*e*e+a}return g/2*((e-=2)*e*e+2)+a}function easeInQuart(e,a,g,f){return g*(e/=f)*e*e*e+a}function easeOutQuart(e,a,g,f){return -g*((e=e/f-1)*e*e*e-1)+a}function easeInOutQuart(e,a,g,f){if((e/=f/2)<1){return g/2*e*e*e*e+a}return -g/2*((e-=2)*e*e*e-2)+a}function easeInQuint(e,a,g,f){return g*(e/=f)*e*e*e*e+a}function easeOutQuint(e,a,g,f){return g*((e=e/f-1)*e*e*e*e+1)+a}function easeInOutQuint(e,a,g,f){if((e/=f/2)<1){return g/2*e*e*e*e*e+a}return g/2*((e-=2)*e*e*e*e+2)+a}function easeInSine(e,a,g,f){return -g*Math.cos(e/f*(Math.PI/2))+g+a}function easeOutSine(e,a,g,f){return g*Math.sin(e/f*(Math.PI/2))+a}function easeInOutSine(e,a,g,f){return -g/2*(Math.cos(Math.PI*e/f)-1)+a}function easeInExpo(e,a,g,f){return(e==0)?a:g*Math.pow(2,10*(e/f-1))+a}function easeOutExpo(e,a,g,f){return(e==f)?a+g:g*(-Math.pow(2,-10*e/f)+1)+a}function easeInOutExpo(e,a,g,f){if(e==0){return a}if(e==f){return a+g}if((e/=f/2)<1){return g/2*Math.pow(2,10*(e-1))+a}return g/2*(-Math.pow(2,-10*--e)+2)+a}function easeInCirc(e,a,g,f){return -g*(Math.sqrt(1-(e/=f)*e)-1)+a}function easeOutCirc(e,a,g,f){return g*Math.sqrt(1-(e=e/f-1)*e)+a}function easeInOutCirc(e,a,g,f){if((e/=f/2)<1){return -g/2*(Math.sqrt(1-e*e)-1)+a}return g/2*(Math.sqrt(1-(e-=2)*e)+1)+a}function easeInElastic(g,e,l,k,f,j){if(g==0){return e}if((g/=k)==1){return e+l}if(!f){f=1}if(!j){j=k*0.3}if(f<Math.abs(l)){f=l;var h=j/4}else{var h=j/(2*Math.PI)*Math.asin(l/f)}return -(f*Math.pow(2,10*(g-=1))*Math.sin((g*k-h)*(2*Math.PI)/j))+e}function easeOutElastic(g,e,l,k,f,j){if(g==0){return e}if((g/=k)==1){return e+l}if(!f){f=1}if(!j){j=k*0.3}if(f<Math.abs(l)){f=l;var h=j/4}else{var h=j/(2*Math.PI)*Math.asin(l/f)}return f*Math.pow(2,-10*g)*Math.sin((g*k-h)*(2*Math.PI)/j)+l+e}function easeInOutElastic(g,e,l,k,f,j){if(g==0){return e}if((g/=k/2)==2){return e+l}if(!f){f=1}if(!j){j=k*(0.3*1.5)}if(f<Math.abs(l)){f=l;var h=j/4}else{var h=j/(2*Math.PI)*Math.asin(l/f)}if(g<1){return -0.5*(f*Math.pow(2,10*(g-=1))*Math.sin((g*k-h)*(2*Math.PI)/j))+e}return f*Math.pow(2,-10*(g-=1))*Math.sin((g*k-h)*(2*Math.PI)/j)*0.5+l+e}function easeInBack(e,a,h,g,f){if(f==undefined){f=1.70158}return h*(e/=g)*e*((f+1)*e-f)+a}function easeOutBack(e,a,h,g,f){if(f==undefined){f=1.70158}return h*((e=e/g-1)*e*((f+1)*e+f)+1)+a}function easeInOutBack(e,a,h,g,f){if(f==undefined){f=1.70158}if((e/=g/2)<1){return h/2*(e*e*(((f*=(1.525))+1)*e-f))+a}return h/2*((e-=2)*e*(((f*=(1.525))+1)*e+f)+2)+a}function easeInBounce(e,a,g,f){return g-easeOutBounce(f-e,0,g,f)+a}function easeOutBounce(e,a,g,f){if((e/=f)<(1/2.75)){return g*(7.5625*e*e)+a}else{if(e<(2/2.75)){return g*(7.5625*(e-=(1.5/2.75))*e+0.75)+a}else{if(e<(2.5/2.75)){return g*(7.5625*(e-=(2.25/2.75))*e+0.9375)+a}else{return g*(7.5625*(e-=(2.625/2.75))*e+0.984375)+a}}}}function easeInOutBounce(e,a,g,f){if(e<f/2){return easeInBounce(e*2,0,g,f)*0.5+a}return easeOutBounce(e*2-f,0,g,f)*0.5+g*0.5+a};