jQuery.easing.easeOutQuart=function(x,t,b,c,d){return -c*((t=t/d-1)*t*t*t-1)+b};jQuery.easing.easeOutExpo=function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b};jQuery(function($){var lastSelected=null;if(document.getElementById("philosophyLink0")!=null){lastSelected=document.getElementById("philosophyLink0").parentNode}var isScrolling=false;$("#prev").hide();$("#aboutuscontainer").serialScroll({target:"#aboutus",items:"li",prev:"img.prev1",next:"img.next2",axis:"x",navigation:"#navigation li a",duration:3000,easing:"easeOutExpo",force:true,cycle:false,onBefore:function(e,elem,$pane,$items,pos){$("#prev").add($("#next")).show();if(pos==0){$("#prev").hide()}else{if(pos==$items.length-1){$("#next").hide()}}isScrolling=true;e.preventDefault();if(this.blur){this.blur()}try{if(lastSelected!=null){lastSelected.className=""}document.getElementById("philosophyLink"+pos.toString()).parentNode.className="aboutLeftSideBarSubNavLinkActive";lastSelected=document.getElementById("philosophyLink"+pos.toString()).parentNode}catch(err){}},onAfter:function(elem){isScrolling=false}});$("#flipbookcontainer").serialScroll({target:"#flipbook",items:"li",prev:"img.prev",next:"img.next",axis:"x",navigation:"#navigation li a",duration:3000,easing:"easeOutExpo",force:true,cycle:false,onBefore:function(e,elem,$pane,$items,pos){$("#prev").add($("#next")).show();if(pos==0){$("#prev").hide()}else{if(pos==$items.length-1){$("#next").hide()}}e.preventDefault();if(this.blur){this.blur()}},onAfter:function(elem){}});$("#conceptpanelist").each(function(){var elem=$(this);var liCount=elem.children("li").length;for(var i=0;i<liCount;i++){var dotState="off";if(i==0){dotState="on"}$("#dotscontainer").append('<div><img id="dots'+i.toString()+' class="dots" src="'+imageBaseUrl+" images/navigation/concepts_dot_"+dotState+'.png" alt="current" /></div>')}});if(document.getElementById("concepts")!=null){$(document).pngFix()}$("#conceptscontainer").serialScroll({target:"#concepts",items:"li",prev:"img.prev",next:"img.next",axis:"x",navigation:"#navigation li a",duration:3500,easing:"easeOutExpo",force:true,onBefore:function(e,elem,$pane,$items,pos){$("#prev").add($("#next")).show();if(pos==0){$("#prev").hide()}else{if(pos==$items.length-1){$("#next").hide()}}e.preventDefault();if(this.blur){this.blur()}$("#contentTooltip").hide();try{document.getElementById("dotscontainer").innerHTML="";var i=0;for(i=0;i<$items.length;i++){var dotState="off";if(i==pos){dotState="on"}$("#dotscontainer").append('<div><img id="dots'+i.toString()+' class="dots" src="'+imageBaseUrl+"images/navigation/concepts_dot_"+dotState+'.png" alt="current" /></div>');if(i!=pos){$("#conceptsMeta"+i.toString()).animate({opacity:0},1000)}}$("#conceptsMeta"+pos.toString()).animate({opacity:1},1000)}catch(err){alert(err.Message)}},onAfter:function(elem){}});$("a[name=modal]").click(function(e){e.preventDefault();var id=$(this).attr("href");var maskHeight=$(document).height();var maskWidth=$(window).width();$("#mask").css({width:maskWidth,height:maskHeight});$("#mask").fadeIn(500);$("#mask").fadeTo("fast",0.8);var winH=$(window).height();var winW=$(window).width();$(id).css("top",winH/2-$(id).height()/2);$(id).css("left",winW/2-$(id).width()/2);$(id).fadeIn(500)});$(".modalWindow .modalClose").click(function(e){e.preventDefault();$("#mask").hide();$(".modalWindow").hide()});$("#mask").click(function(){$(this).hide();$(".modalWindow").hide()});$("#womensConceptMap > area, #womensConceptMap1 > area, #womensConceptMap2 > area").tooltip({extraClass:"contentTooltip",id:"contentTooltip",track:true,bodyHandler:function(){var url=$(this).url().toString();return"<div><h3>"+this.tooltipText+"</h3></div>"},fixPNG:true,showURL:false,showBody:" - ",fade:999,timeout:0});$("#iconProjectMap > area").tooltip({extraClass:"contentTooltip",id:"contentTooltip",track:true,bodyHandler:function(){var url=$(this).url().toString();return"<div><h3>"+this.tooltipText+"</h3>"},fixPNG:true,showURL:false});$(".asSeenInEntryImage img").hover(function(){this.src=this.src.replace("_off","_on")},function(){this.src=this.src.replace("_on","_off")});var index=0;var length=4;$(".aboutLeftSideBarSubNavLink a").click(function(event){try{if(!isScrolling){index=event.target.id.replace("philosophyLink","");$("#aboutus").trigger("goto",[index]);$("#aboutus").trigger("notify",[index])}}catch(e){}});$("#prev").click(function(event){try{if(!isScrolling){index=(index==0)?length:Number(index)-1;$("#aboutus").trigger("goto",[index])}}catch(e){}});$("#next").click(function(event){try{if(!isScrolling){index=(index==length)?0:Number(index)+1;$("#aboutus").trigger("goto",[index])}}catch(e){}});$(".conceptsBottomNavContainer, .conceptsnavcontainer").hover(function(event){try{$("#contentTooltip").hide()}catch(e){}})});
