var g_arrMousePos=[],g_arrMouseOffset=[],g_arrAccordions=[],g_arrAni=[],g_oAniToolTip,HELPER=new helper(),g_iDrag,ie=navigator.appName=="Microsoft Internet Explorer"&&(!window.opera),ie6=false
/*@cc_on || @_jscript_version < 5.7 @*/
,userAgent=navigator.userAgent.toLowerCase();Browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:(/msie/.test(userAgent))&&(!/opera/.test(userAgent)),mozilla:(/mozilla/.test(userAgent))&&(!/(compatible|webkit)/.test(userAgent))};function getAni(b,a,c){b=HELPER.getElement(b);if(HELPER.notNull(b.oAni)){return b.oAni}else{return new animatio(b,a,c)}}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 e,b,a=-1,h=-1,d,f,k=[],c;c=document.getElementsByTagName("div");for(e=0;e<c.length;e++){if(c[e].className.indexOf("accordionGroup")!=-1){a++;g_arrAccordions[a]=-1;k=c[e].getElementsByTagName("div");for(b=0;b<k.length;b++){if(k[b].className.indexOf("accordionItem")!=-1){if(HELPER.notNull(k[b].oAni)){break}h++;k[b].className+=" closed";d=new animatio(k[b],"accordionItem_"+a+"_"+h,false);d.oAniHeader=new animatio(k[b].getElementsByTagName("H3")[0],"accordionHeader_"+a+"_"+h,false);d.setStyle("color","#FFFFFF");d.oAniHeader.setStyle("color","#969696");d.iAccordionGroup=a;d.iAccordionItem=h;d.iFullHeight=d.oNewElement.offsetHeight-40;d.setStyle("overflow","hidden");var g=17;if(d.oNewElement.className.indexOf("applicationCharts")!=-1){g=34}d.setStyle("height",g);d.setStyle("height",d.iFullHeight);d.setStyle("height",0);d.setStyle("paddingTop",0);d.setStyle("paddingRight",15);d.setStyle("paddingBottom",0);d.setStyle("paddingLeft",15);d.animate(["height","paddingTop","paddingRight","paddingBottom","paddingLeft"],[g,15,15,15,15],25,easeOutCirc);HELPER.hookEvent(k[b].getElementsByTagName("h3")[0],"click",aniEVENT_onclickAccordion)}}}}}function aniShowAccordion(){var b=25;var a=g_arrAccordions[this.iAccordionGroup];this.enqueue("animate",[["['overflow']"],["['visible']"],1,linearTween],1);this.enqueue("animate",[["['height']"],["['auto']"],1,linearTween],1);this.animate(["height","color"],[this.iFullHeight,"#353535"],b,easeInCirc);this.oAniHeader.animate(["color"],["#E95D0E"],b,easeInCirc);this.oNewElement.className=this.oNewElement.className.replace("closed","open");if(a!=-1&a!=this.iAccordionItem){var c=getAnimatioByName("accordionItem_"+this.iAccordionGroup+"_"+a);c.hideAccordion()}g_arrAccordions[this.iAccordionGroup]=this.iAccordionItem}function aniHideAccordion(){var a=25;if(this.bInProgress){this.stop(true)}else{this.setStyle("height",this.iFullHeight)}var b=17;if(this.oNewElement.className.indexOf("applicationCharts")!=-1){b=34}this.animate(["height","overflow","color"],[b,"hidden","#FFFFFF"],a,easeOutCirc);this.oAniHeader.stop();this.oAniHeader.animate(["color"],["#969696"],a,easeInCirc);this.oNewElement.className=this.oNewElement.className.replace("open","closed");g_arrAccordions[this.iAccordionGroup]=-1}function aniToggleAccordion(){switch(this.getStyle("height")){case 17:this.showAccordion();break;case 34:this.showAccordion();break;default:this.hideAccordion();break}}function aniEVENT_onclickAccordion(f){var c=HELPER.getEventTarget(f);while(!HELPER.notNull(c.oAni)|c.tagName=="H3"){c=c.parentNode}if(HELPER.notNull(c.oAni)){var d=25;var b=c.oAni;var a=g_arrAccordions[b.iAccordionGroup];b.toggleAccordion()}}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(){if(HELPER.notNull(this.oThumbnail)){var a=this.oThumbnail;a.style.cursor="pointer";a.style.cursor="hand";var b=this;HELPER.hookEvent(a,"click",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.setStyle("zIndex",101);b.zoom(c,a,d,0);HELPER.hookEvent(b.oNewElement,"mouseout",function(){b.stop();b.fadeToRestore()});HELPER.hookEvent(b.oNewElement,"click",function(){b.fadeToRestore()})}function setMorph(){var a=this.oThumbnail;var b=this;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);HELPER.hookEvent(a.oNewElement,"mouseout",function(){a.oNewElement.oAni.fadeOut(6,true)})}}function closeToolTip(){HELPER.unhookEvent(document,"keypress",aniEVENT_onEscKeyCloseTT);var b=HELPER.getPageSize();var a=getAnimatioByName("ToolTip");var d=getAnimatioByName("ToolTipContent");var c=getAnimatioByName("Background");if(HELPER.notNull(c.animate)){c.animate(["opacity"],[0],10,easeInQuad);g_oAniToolTip=null;d.restore();a.restore();c.enqueue("restore")}}function showToolTip(q,a,l,h,k){if(typeof q!="undefined"){if(!HELPER.notNull(g_oAniToolTip)){var r=HELPER.getPageSize();var p=document.createElement("DIV");p.innerHTML='<div class="TTHeader"><a class="TTCloseBtn" onclick="closeToolTip()"></a><h2></h2></div><div class="TTContent" id="TTContent"></div>';var b=p.getElementsByTagName("DIV")[0];var m=p.getElementsByTagName("H2")[0];var g=p.getElementsByTagName("DIV")[1];var o=document.createElement("DIV");var d=[l||786,h||HELPER.getPageSize()[1]-40];window.document.body.appendChild(o);window.document.body.appendChild(p);var c=new animatio(o,"Background",false);var f=new animatio(p,"ToolTip",false);var e=new animatio(g,"ToolTipContent",false);f.oNewElement.id=f.strGuid;c.setStyle(["backgroundColor","position","top","right","bottom","left","zIndex","opacity","textAlign"],["black","fixed",0,0,0,0,100,0.0001,"center"]);f.setStyle(["width","height","overflow","backgroundColor","left","top"],[d[0],48,"hidden","white","50%",r[1]/2]);f.setStyle("position","fixed");f.setStyle("zIndex",101);f.setStyle("margin","auto");f.setStyle("marginLeft",-1*d[0]/2);f.setStyle("textAlign","left");e.setStyle("height",d[1]-88);c.animate(["opacity"],[0.7],12,easeOutSine);f.animate(["height","top"],[d[1],(r[1]-d[1])/2],10,linearTween);if(typeof k=="undefined"||k==true){f.enqueue("setStyle",["'overflow'","'auto'"],10,e.strFriendlyName)}HELPER.hookEvent(document,"keypress",aniEVENT_onEscKeyCloseTT);g_oAniToolTip=f}else{var m=g_oAniToolTip.oNewElement.getElementsByTagName("H2")[0]}m.innerHTML=a;m.className="";if(typeof sIFR=="function"){sIFR.replaceElement(".TTHeader h2",named({sFlashSrc:"/scripts/gotham-condensed.swf",sColor:"#464646",sWmode:"transparent"}))}g=g||g_oAniToolTip.oNewElement.getElementsByTagName("DIV")[1];ajaxRequest({strUrl:q,varTargetElement:g,strMethod:"GET",strBusyHTML:'<img src="images/ajax-loader.gif">',onAfterLoad:function(){g.oAni.setStyle("backgroundColor","#FFFFFF");g.oAni.fadeIn(window.ie?12:7)}});return false}}function aniEVENT_onEscKeyCloseTT(a){var a=HELPER.getEvent(a);if(a.keyCode==27){closeToolTip()}}function ajaxRequest(c){var a=null;if(window.XMLHttpRequest){a=new XMLHttpRequest()}else{if(window.ActiveXObject){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){return true}}}}a.bProcessed=false;a.id=new Date().getTime();if(HELPER.notNull(c.onBeforeLoad)){c.onBeforeLoad()}a.onreadystatechange=function(){if(HELPER.notNull(c.varTargetElement)){l_oHTML=HELPER.getElement(c.varTargetElement)}if(a.readyState==1&&HELPER.notNull(c.strBusyHTML)){l_oHTML.innerHTML=c.strBusyHTML}if(a.readyState==4&&a.status==200){if(l_oHTML){l_oHTML.innerHTML=a.responseText;if(HELPER.notNull(c.onAfterLoad)){c.onAfterLoad()}onAfterAjaxRequestProcessResult(l_oHTML)}}};a.open(c.strMethod,c.strUrl,true);if(c.strMethod=="POST"){a.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}a.send(c.strPostData);return false}function onAfterAjaxRequestProcessResult(d){initAccordion();getZoomImages();hideElementGroups();if(typeof sIFR=="function"){sIFR.replaceElement("h2.pageHeader",named({sFlashSrc:"/scripts/gotham-ultra.swf",sColor:"#353535",sWmode:"transparent"}))}var c=d.getElementsByTagName("SCRIPT");var b,e,f;for(var a=0;a<c.length;a++){if(window.execScript){window.execScript(c[a].text)}else{b=document.createElement("SCRIPT");_strContent=document.createTextNode(c[a].text);b.appendChild(_strContent);b.type="text/javascript";b.defer=false;document.body.appendChild(b)}}}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=HELPER.guid();this.oElement=HELPER.getElement(p_varElement);this.arrStartPos=HELPER.getPosition(this.oElement);if(p_bUseClone){this.oNewElement=this.oElement.cloneNode(true);window.document.body.appendChild(this.oNewElement);this.oElement.style.visibility="hidden";with(this.oNewElement){id=this.strGuid;className="";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.showAccordion=aniShowAccordion;animatio.prototype.hideAccordion=aniHideAccordion;animatio.prototype.toggleAccordion=aniToggleAccordion;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.yellowFade=aniYellowFade;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]);if(HELPER.getType(this.arrValues[b])=="string"){if(this.arrValues[b].indexOf("#")!=-1){this.arrValues[b]=HELPER.hexToRGB(this.arrValues[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)}else{if(!HELPER.notNull(this.arrProperties)){return}}}}function aniNext(){if(HELPER.getType(this.arrPlaylist[0])=="array"){var d=this.arrPlaylist.shift();var a=d[0];var c=HELPER.notNull(d[1])?d[1].join(","):"";var e=d[2]||0;var b=HELPER.notNull(d[3])?getAnimatioByName(d[3]).id:this.id;if(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|a=="zIndex"|a=="fontWeight"){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(c,b){if(HELPER.getType(c)=="string"||c=="backgroundColor"||c=="color"){c=[c];b=[b]}for(var a=0;a<c.length;a++){switch(c[a]){case"opacity":return this.setOpacity(b[a]);break;case"float":c[a]=(window.ie)?"styleFloat":"cssFloat";break;case"width":if(b[a]<0){b[a]=0}break;case"height":if(b[a]<0){b[a]=0}break}if(HELPER.getType(b[a])=="array"){b[a]="rgb("+b[a][0]+","+b[a][1]+","+b[a][2]+")"}else{if(HELPER.getType(b[a])=="number"&c[a]!="zIndex"&c[a]!="fontWeight"){b[a]+="px"}}this.oNewElement.style[c[a]]=b[a]}}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(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){HELPER.hookEvent(this.oNewElement,"dragstart",aniEVENT_ondragstart)}HELPER.hookEvent(this.oNewElement,"mousedown",aniEVENT_onmousedownStartDrag);HELPER.hookEvent(this.oNewElement,"mouseup",aniEVENT_onmouseupEndDrag)}function aniDisableDrag(){this.bDragable=false;HELPER.unhookEvent(this.oNewElement,"mousedown",aniEVENT_onmousedownStartDrag);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}HELPER.hookEvent(document,"mousemove",aniEVENT_onmousemoveDrag);var a=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=HELPER.getEventTarget(b);while(!a.oAni){a=a.parentNode}if(!window.ie){a.oAni.animate(["opacity"],[1],5,easeInOutSine)}window.g_iDrag=-1;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;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;l_fCurrentOpacity=this.getStyle("opacity");if(l_fCurrentOpacity==1){this.setStyle("opacity",0.0001)}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 aniYellowFade(){var a=this.getStyle("backgroundColor");if(isNaN(a[0])){this.setStyle("backgroundColor","#FFFFFF");a=this.getStyle("backgroundColor")}this.setStyle("backgroundColor","#FFFF00");this.animate(["backgroundColor"],[a],100,easeInOutSine)}function aniZoom(a,e,b,c){this.oNewElement.src=b;var d=this.getPosition();var l=HELPER.getPageSize();var g=(e-this.getStyle("width"))/2;var f=(a-this.getStyle("height"))/2;var k=d[0]-g;var h=d[1]-f;if((k+e)>l[0]){k=l[0]-e-20}if(k<0){k=20}if(h<0){h=20}this.animate(["width","height","left","top"],[e,a,k,h],30,easeInOutSine)}function aniFadeToRestore(){if(!this.bInProgress){var b=30;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(HELPER.notNull(this.oNewElement)){this.oNewElement.parentNode.removeChild(this.oNewElement);this.oElement.oAni=null;g_arrAni[this.id].strFriendlyName=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;helper.prototype.getFormData=getFormData;helper.prototype.oc=oc;helper.prototype.getElementsByClass=getElementsByClass;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,b;if(typeof window.innerWidth!="undefined"){a=window.innerWidth,b=window.innerHeight}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){a=document.documentElement.clientWidth,b=document.documentElement.clientHeight}else{a=document.getElementsByTagName("body")[0].clientWidth,b=document.getElementsByTagName("body")[0].clientHeight}}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(c)=="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(c)}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=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 getFormData(a,h){var f;var g=function(k,l){if(h){if(f==null){f=new Array()}f[k]=escape(l)}else{f=(f==null?"":f+"&")+k+"="+escape(l)}};for(var d=0;d<a.elements.length;d++){var c=a.elements[d];var e=(c.type||"");if(e.match(/^(text|hidden|textarea)$/i)||(e.match(/^(radio|checkbox)$/i)&&c.checked)){g(c.name,c.value)}else{if(c.nodeName.match(/^select$/i)){for(var b=0;b<c.options.length;b++){if(c.options[b].selected){g(c.name,c.options[b].value)}}}else{if(c.nodeName.match(/^textarea$/i)){g(c.name,c.value)}}}}return f!=null?f:(h?new Array():"")}function oc(b){var d={};for(var c=0;c<b.length;c++){d[b[c]]=""}return d}function getElementsByClass(g,e,a){var d=new Array();if(e==null){e=document}if(a==null){a="*"}var c=e.getElementsByTagName(a);var b=c.length;var f=new RegExp("(^|\\\\s)"+g+"(\\\\s|$)");for(i=0,j=0;i<b;i++){if(f.test(c[i].className)){d[j]=c[i];j++}}return d}Array.prototype.inArray=function(b){var a;for(a=0;a<this.length;a++){if(this[a]===b){return true}}return false};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,m,l,f,k){if(g==0){return e}if((g/=l)==1){return e+m}if(!f){f=1}if(!k){k=l*0.3}if(f<Math.abs(m)){f=m;var h=k/4}else{var h=k/(2*Math.PI)*Math.asin(m/f)}return -(f*Math.pow(2,10*(g-=1))*Math.sin((g*l-h)*(2*Math.PI)/k))+e}function easeOutElastic(g,e,m,l,f,k){if(g==0){return e}if((g/=l)==1){return e+m}if(!f){f=1}if(!k){k=l*0.3}if(f<Math.abs(m)){f=m;var h=k/4}else{var h=k/(2*Math.PI)*Math.asin(m/f)}return f*Math.pow(2,-10*g)*Math.sin((g*l-h)*(2*Math.PI)/k)+m+e}function easeInOutElastic(g,e,m,l,f,k){if(g==0){return e}if((g/=l/2)==2){return e+m}if(!f){f=1}if(!k){k=l*(0.3*1.5)}if(f<Math.abs(m)){f=m;var h=k/4}else{var h=k/(2*Math.PI)*Math.asin(m/f)}if(g<1){return -0.5*(f*Math.pow(2,10*(g-=1))*Math.sin((g*l-h)*(2*Math.PI)/k))+e}return f*Math.pow(2,-10*(g-=1))*Math.sin((g*l-h)*(2*Math.PI)/k)*0.5+m+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};