function CommonGrandparentsRelationshipClickTransitions(n){var r,t,i;$.post("/user-page-history/grandparent-transition-click");r=Animation.SecondPartner.Left()+Animation.SecondPartner.Width-Animation.FirstPartner.Left();Animation.Utilities.SetRowsZIndexAscending();n.css("z-index",200);Animation.FirstPartner.ReplaceText(n.find(".node.first .content").text());Animation.SecondPartner.ReplaceText(n.find(".node.second .content").text());Animation.FadeAll.Connectors();Animation.FadeAll.RelationshipStatus();Animation.FadeAll.Children();n.addClass("removeConnector");n.find("h3").fadeOut({duration:Animation.Speed.Normal,queue:!1});t=Animation.FirstPartner.Width;Animation.FirstPartner.Width==465&&(t=415);n.find(".node").animate({width:t+"px",height:Animation.FirstPartner.Height+"px",padding:"0px",backgroundColor:"#e74838"},{duration:Animation.Speed.Normal,queue:!1});i=n.find("a");i.animate({fontSize:"16px",color:"#fff"},{duration:Animation.Speed.Normal,queue:!1});n.find("p").animate({fontSize:"16px",lineHeight:"20px",letterSpacing:"1px",height:"50px",padding:0,margin:0},{duration:Animation.Speed.Normal,queue:!1});n.animate({width:r+"px",height:Animation.FirstPartner.Height+"px"},{duration:Animation.Speed.Normal,queue:!1,complete:function(){n.find(".node").addClass("removeShadow");setTimeout(function(){window.location.href=i.attr("href")},Animation.Speed.Fast)}})}function CommonGrandparentsIndividualClickTransitions(n){var i,t;$.post("/user-page-history/grandparent-transition-click");i=930;Animation.Utilities.SetRowsZIndexAscending();n.css("z-index",200);Animation.FadeAll.Connectors();Animation.FadeAll.Parents();$(".image-column, .bio-details, .relationship-column").animate({opacity:0},{duration:Animation.Speed.Normal,queue:!1});n.addClass("removeConnector");n.find("h3").fadeOut({duration:Animation.Speed.Normal,queue:!1});n.find(".node").animate({width:"350px",height:"50px",padding:"0px",backgroundColor:"#e74838"},{duration:Animation.Speed.Normal,queue:!1});t=n.find("a");t.animate({fontSize:"16px",color:"#fff"},{duration:Animation.Speed.Normal,queue:!1});n.find("p").animate({fontSize:"16px",lineHeight:"20px",letterSpacing:"1px",height:"50px",padding:0,margin:0},{duration:Animation.Speed.Normal,queue:!1});n.animate({width:i+"px",height:"50px"},{duration:Animation.Speed.Normal,queue:!1,complete:function(){n.find(".node").addClass("removeShadow");window.location.href=t.attr("href")}})}function CommonGrandparentsToParentsTransitions(n){var t=$(".doublenode.parents .node").css("width");n.css("z-index",100);n.find("h3").fadeOut({duration:Animation.Speed.Fast,queue:!1,complete:function(){$(this).text()=="Grandfather"?$(this).text("Birth Father"):$(this).text("Birth Mother");$(this).fadeIn({duration:Animation.Speed.Fast,queue:!1})}});n.animate({width:"451px"},{duration:Animation.Speed.Normal,queue:!1});n.find(".node.first").animate({width:t,left:"0px"},{duration:Animation.Speed.Normal,queue:!1});n.find(".node.second").animate({width:t},{duration:Animation.Speed.Normal,queue:!1})}function CommonParentsClickTransitionsRelationshipTree(n){var r,t,i;$.post("/user-page-history/parent-transition-click");r=Animation.SecondPartner.Left()+Animation.SecondPartner.Width-Animation.FirstPartner.Left();Animation.Utilities.SetRowsZIndexAscending();Animation.FadeAll.RelationshipStatus();Animation.FadeAll.GrandparentConnectors();Animation.FadeAll.Children();n.find("h3, .display-other-fathers, .display-other-mothers").fadeOut({duration:Animation.Speed.Normal,queue:!1});$(".other-parents").stop().hide();n.addClass("removeConnector");t=Animation.FirstPartner.Width;Animation.FirstPartner.Width==465&&(t=415);n.find(".node").animate({width:t+"px",height:Animation.FirstPartner.Height+"px",padding:"0px",backgroundColor:"#e74838"},{duration:Animation.Speed.Normal,queue:!1});i=n.find("a");i.animate({fontSize:"16px",color:"#fff"},{duration:Animation.Speed.Normal,queue:!1});n.find("p").animate({fontSize:"16px",lineHeight:"20px",letterSpacing:"1px",height:"50px",padding:0,margin:0},{duration:Animation.Speed.Normal,queue:!1});n.animate({width:r+"px",height:Animation.FirstPartner.Height+"px"},{duration:Animation.Speed.Normal,queue:!1,complete:function(){n.find(".node").addClass("removeShadow");setTimeout(function(){window.location.href=i.attr("href")},Animation.Speed.Fast)}})}function CommonParentsClickTransitionsIndividualTree(n){var i,t;$.post("/user-page-history/parent-transition-click");i=930;Animation.Utilities.SetRowsZIndexAscending();n.css("z-index",200);Animation.FadeAll.ParentConnectorsLeft();Animation.Grandparents.ToParents();Animation.Individual.ToChild();$(".image-column .image, .image-column .famechain-button, .bio-details, .relationship-column, .ft-accordion.other-details").animate({opacity:0},{duration:Animation.Speed.Normal,queue:!1});n.addClass("removeConnector");n.find("h3, .display-other-fathers, .display-other-mothers").fadeOut({duration:Animation.Speed.Normal,queue:!1});n.find(".node").animate({width:"350px",height:"50px",padding:"0px",backgroundColor:"#e74838"},{duration:Animation.Speed.Normal,queue:!1});t=n.find("a");t.animate({fontSize:"16px",color:"#fff"},{duration:Animation.Speed.Normal,queue:!1});n.find("p").animate({fontSize:"16px",lineHeight:"20px",letterSpacing:"1px",height:"50px",padding:0,margin:0},{duration:Animation.Speed.Normal,queue:!1});n.animate({width:i+"px",height:"50px"},{duration:Animation.Speed.Normal,queue:!1,complete:function(){n.find(".node").addClass("removeShadow");window.location.href=t.attr("href")}})}function CommonParentToPartnerTransitions(n){n.animate({width:Animation.FirstPartner.Width+"px",height:Animation.FirstPartner.Height+"px",padding:"0px"},{duration:Animation.Speed.Normal,queue:!1,complete:function(){$(this).animate({opacity:0},{duration:Animation.Speed.Fast,queue:!1})}});n.find("a").animate({fontSize:"19px"},{duration:Animation.Speed.Normal,queue:!1});n.find("p").animate({fontSize:"19px",lineHeight:"21px",letterSpacing:"-1px",height:"42px",padding:0},{duration:Animation.Speed.Normal,queue:!1})}function CommonChildToIndividualTreeTransitions(n,t){var u;Animation.FadeAll.RelationshipStatus();$(".family-tree h1").animate({backgroundColor:"#efefef"},{duration:Animation.Speed.Normal,queue:!1});var o=n.position().top,s=n.position().left,r=n.css("width");n.css("position","absolute").css("top",o+"px").css("left",s+"px").css("width",r);u=n.css("height");n.before('<div style="width:'+r+"; height:"+u+'"> <\/div>');var h=$(n).offset(),f=0,i=0,e=n.find("a:first"),c=n.find("p:first");f=h.top-Animation.FirstPartner.Top();n.find("p>a").attr("data-side")=="RightSide"&&t&&(i="580px",$(".ft-row.grandparents div.connector.second").fadeOut({duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),Animation.HowTo.SlideOutToRight(),$(".doublenode.parents.first, .family-tree h1 .displayname.first").animate({left:"474px"},{duration:Animation.Speed.Normal,queue:!1}),isIndividualView()?($(".ft-row.grandparents div.connector.first").animate({left:"531px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),$(".ft-row.parents div.connector.first").animate({left:"590px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})):($(".ft-row.parents div.connector.first").fadeOut({duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),$(".ft-row.grandparents div.connector.first").fadeOut({duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),$(".ft-row.grandparents div.connector.second").fadeOut({duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),$(".ft-row.grandparents div.connector.fourth").fadeOut({duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})));n.find("p>a").attr("data-side")=="LeftSide"&&t&&(i="0px",$(".ft-row.grandparents div.connector.second").fadeOut({duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),fadeFamilyTreeRightSide());n.find("p>a").attr("data-side")!="LeftSide"||t||(i="0px",Animation.HowTo.SlideOutToLeft(),$(".doublenode.parents.second, .family-tree h1 .displayname.second, connector.second ").animate({right:"480px"},{duration:Animation.Speed.Normal,queue:!1}),$(".ft-row.grandparents div.connector.third").fadeOut({duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),isIndividualView?($(".ft-row.parents div.connector.second").animate({right:"589px"},{duration:Animation.Speed.Normal,queue:!1}),$(".ft-row.grandparents div.connector.fourth").animate({right:"531px"},{duration:Animation.Speed.Normal,queue:!1})):($(".ft-row.parents div.connector.second").fadeOut({duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),$(".ft-row.grandparents div.connector.first").fadeOut({duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),$(".ft-row.grandparents div.connector.fourth").fadeOut({duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})));n.find("p>a").attr("data-side")!="RightSide"||t||(i="580px",$(".ft-row.grandparents div.connector.third").fadeOut({duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),t===!1?fadeFamilyTreeLeftSide():$(".doublenode.parents.first, .displayname.first").animate({left:"480px"},{duration:Animation.Speed.Normal,queue:!1}));n.find("p.info, p.claimtofame").fadeOut({duration:Animation.Speed.Normal,queue:!1});n.addClass("centered");e.animate({fontSize:"16px",lineHeight:"20px",color:"#fff"},{duration:Animation.Speed.Normal,queue:!1});c.animate({fontSize:"16px",lineHeight:"20px",padding:0,margin:0},{duration:Animation.Speed.Normal,queue:!1});$("html,body").animate({scrollTop:0},{duration:Animation.Speed.Normal,queue:!1});n.animate({top:"-="+f+"px",left:i,width:"350px",height:"50px",padding:0,backgroundColor:"#e74838"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing,complete:function(){window.location.href=e.attr("href")}})}function CommonChildTransitions(n){var i;Animation.FadeAll.RelationshipStatus();$("h1").animate({backgroundColor:"#efefef"},{duration:Animation.Speed.Normal,queue:!1});var e=n.position().top,o=n.position().left,t=n.css("width");n.css("position","absolute").css("top",e+"px").css("left",o+"px").css("width",t);i=n.css("height");n.before('<div style="width:'+t+"; height:"+i+'"> <\/div>');var s=$(n).offset(),r=0,u=0,f=n.find("div.details > h4 > a"),h=n.find("div.details > h4:nth-child(2)");r=s.top-$("h1").offset().top;u="340px";n.find("p, h4:first, img").fadeOut({duration:Animation.Speed.Normal,queue:!1});n.addClass("centered");f.animate({fontSize:"16px",lineHeight:"20px",letterSpacing:"1px",color:"#fff"},{duration:Animation.Speed.Normal,queue:!1});h.animate({fontSize:"16px",lineHeight:"20px",letterSpacing:"-1px",padding:0,margin:0},{duration:Animation.Speed.Normal,queue:!1});$("html,body").animate({scrollTop:0},{duration:Animation.Speed.Normal,queue:!1});n.animate({top:"-="+r+"px",left:u,width:"250px",height:"50px",padding:0,backgroundColor:"#e74838"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing,complete:function(){window.location.href=f.attr("href")}})}function OtherBiologicalClickAnimateOtherParent(n,t){var i=n.clone(),u,r,s,h,c;i.find("p:first, p.claimtofame, p.info script").remove();u=i.find("p.info em").text().replace("with","").replace("step-child","");r=i.find("p");r.html("<em>"+$.trim(u)+"<\/em>");var f=r.find("em"),l=f.find("a"),e=n.position().top,o=n.css("width");t?(s=n.position().right,i.css("position","absolute").css("top",e+"px").css("right",s+"px").css("width",o)):(h=n.position().left,i.css("position","absolute").css("top",e+"px").css("left",h+"px").css("width",o));n.after(i);i.addClass("centered");f.css("font-style","normal");l.animate({color:"#e53322"},{duration:Animation.Speed.Normal,queue:!1});r.animate({fontSize:"12px",lineHeight:"15px",paddingTop:"10px",paddingBottom:"20px",paddingLeft:"2px",paddingRight:"2px",margin:0},{duration:Animation.Speed.Normal,queue:!1});c=t?i.offset().top-Animation.FirstParents.Top():i.offset().top-Animation.SecondParents.Top();i.animate({top:"-="+c+"px",width:"221.5px",height:"65px",color:"#e53322",backgroundColor:"#fff"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});n.find("p>a").attr("data-side")=="RightSide"&&t&&i.animate({right:"0px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});n.find("p>a").attr("data-side")=="LeftSide"&&t&&i.animate({right:"476.5px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});n.find("p>a").attr("data-side")!="RightSide"||t||i.animate({left:"473px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});n.find("p>a").attr("data-side")!="LeftSide"||t||i.animate({left:"0px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})}function BiologicalClickAnimateOtherParent(n,t){var i=n.clone(),f,r;i.find("img, h4, p.claimtofame, script").remove();f=i.find("p em").text().replace("with","").replace("step-child","");r=i.find("p");r.html("<em>"+$.trim(f)+"<\/em>");var e=r.find("em"),o=e.find("a"),s=n.position().top,h=n.css("width"),c=n.position().left;i.css("position","absolute").css("top",s+"px").css("left",c+"px").css("width",h);n.after(i);i.addClass("centered");e.css("font-style","normal");o.animate({color:"#e53322"},{duration:Animation.Speed.Normal,queue:!1});r.animate({fontSize:"12px",lineHeight:"15px",paddingTop:"10px",paddingBottom:"20px",paddingLeft:"2px",paddingRight:"2px",letterSpacing:0,margin:0},{duration:Animation.Speed.Normal,queue:!1});var l=i.offset().top-Animation.FirstParents.Top(),u=i.offset().left-Animation.FirstParents.Left(),a=$(".ft-row.parents .node.second").outerWidth();t&&(u=u-Animation.FirstParents.outerWidth()+a);i.animate({top:"-="+l+"px",left:"-="+u+"px",width:$(".ft-row.parents .node.second").css("width"),height:$(".ft-row.parents .node.second").css("height"),color:"#e53322",backgroundColor:"#fff"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})}function CommonTransitionsPartnersToIndividualParent(n){var t;t=n.hasClass("right")?Animation.SecondPartner.Top()-Animation.SecondParents.Top():Animation.FirstPartner.Top()-Animation.FirstParents.Top();n.animate({top:"-="+t+"px",width:"221.5px",height:"65px",color:"#e53322",backgroundColor:"#fff",fontSize:"14px",paddingTop:"0px",paddingBottom:"0px",paddingLeft:"2px",paddingRight:"2px",letterSpacing:"0px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})}function CommonTransitionsParentToChildren(n){n.animate({backgroundColor:"#fff",color:"#e53322",fontSize:"12px",fontWeight:"700",width:"180px",height:"34px",padding:"10px",leterSpacing:"0"},{duration:Animation.Speed.Slow-100,queue:!1,easing:Animation.Easing});$(".family-tree").css("overflow","")}function CommonTransitionsPartnersToRelationship(n,t){var i=n.find("a:eq(1)"),s=n.find("h3:eq(1)"),h=n.find("p"),c=n.find("h3:first"),l=n.find("a img"),r,u,f,e;n.css("z-index",1e3);r=n.position().top;u=n.position().left;n.css("position","absolute").css("top",r+"px").css("left",u+"px");f=n.css("height");e=n.css("width");n.before('<div class="partner" style="width:'+e+"; height:"+f+'"> <\/div>');var a=$(n).offset(),o=0;t=="RightSide"&&(o=580);h.css("display","none");c.css("display","none");l.fadeOut({duration:Animation.Speed.Normal,queue:!1});n.addClass("centered");n.find(".details").css("margin-left","0px");i.animate({width:"100%",fontSize:"16px",fontWeight:"600",lineHeight:"20px",letterSpacing:"1px",color:"#fff",marginTop:"10px"},{duration:Animation.Speed.Normal,queue:!1});s.animate({width:"350px",height:"50px",fontSize:"16px",lineHeight:"20px",letterSpacing:"-1px",padding:"5 0 5 0",margin:0},{duration:Animation.Speed.Normal,queue:!1});$("html,body").animate({scrollTop:0},{duration:Animation.Speed.Normal,queue:!1});n.css("text-align","center");i.css("text-decoration","none");n.animate({top:"210px",left:o+"px",width:"350px",height:"50px",color:"#e53322",backgroundColor:"#e74838",fontSize:"14px",paddingTop:"0px",paddingBottom:"0px",paddingLeft:"2px",paddingRight:"2px",letterSpacing:"0px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing,complete:function(){window.location.href=i.attr("href")}})}function MoveOtherParentToPartner(n,t,i){var r,u,e,o,s,f;$(".show-popup").off();Animation.Utilities.SetRowsZIndexAscending();r=n.find("a:first");u=n.find("p:first");n.css("z-index",1e3);e=n.position().top;o=n.position().left;n.css("position","absolute").css("top",e+"px").css("left",o+"px");s=n.css("height");f=$('<div class="node fademe" style="height:'+s+'"> <\/div>');n.before(f);f.fadeOut({duration:Animation.Speed.Slow,queue:!1});var h=$(n).offset(),c=$(t).offset(),l=0,a=0;l=c.top-h.top;a=c.left-h.left;r.addClass("content");u.prepend('<span class="helper"><\/span>');u.css("width",r.width()).addClass("centered");r.animate({fontSize:"19px",lineHeight:"21px"},{duration:Animation.Speed.Normal,queue:!1});u.animate({width:Animation.FirstPartner.CssWidth,fontSize:"19px",lineHeight:"21px",height:"42px",letterSpacing:"-1px",padding:0},{duration:Animation.Speed.Normal,queue:!1});n.find("h3").animate({height:0,opacity:0},{duration:Animation.Speed.Slow,queue:!1});n.animate({top:"+="+l+"px",left:"+="+a+"px",width:Animation.FirstPartner.CssWidth,height:Animation.FirstPartner.CssHeight,padding:0,margin:0,backgroundColor:"#ffa800"},{duration:Animation.Speed.Slow,queue:!1,complete:function(){i&&(window.location.href=n.find("a").attr("href"))}})}function FadeOtherParents(n,t){var i=n.clone();n.after(i);i.fadeOut({duration:Animation.Speed.Slow,queue:!1});n.css("background-color","transparent").css("z-index",2e3);n.find(".node").not(t).css("visibility","hidden")}function AnimateSiblingNode(n,t){var i=n.find("a:first"),s=n.find("p:first"),u,f,e,o,h,r;n.css("z-index",1e3);u=n.position().top;f=n.position().left;n.css("position","absolute").css("top",u+"px").css("left",f+"px");e=n.css("height");o=n.css("width");n.before('<div class="sibling" style="width:'+o+"; height:"+e+'"> <\/div>');h=315;r=0;t=="RightSide"&&(r=580);n.find("h3:first, img").fadeOut({duration:Animation.Speed.Normal,queue:!1});n.find("div.details").css("margin",0);n.addClass("centered");i.animate({width:"100%",fontSize:"16px",fontWeight:"600",lineHeight:"20px",letterSpacing:"1px",color:"#fff"},{duration:Animation.Speed.Normal,queue:!1});s.animate({width:"350px",height:"50px",fontSize:"16px",lineHeight:"20px",letterSpacing:"-1px",padding:"5 0 5 0",margin:0},{duration:Animation.Speed.Normal,queue:!1});$("html,body").animate({scrollTop:0},{duration:Animation.Speed.Normal,queue:!1});n.css("text-align","center");i.css("text-decoration","none");n.animate({top:"210px",left:r+"px",width:"350px",height:"50px",padding:0,backgroundColor:"#e74838"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing,complete:function(){window.location.href=i.attr("href")}})}function SiblingClickAnimateOtherParent(n,t,i,r){var u,v,f,e,b,o,s,y,p,w,h,c,l,a;r&&(u=n.clone(),u.find("img, .details h3, .details p:first, p.info script").remove(),v=u.find("p.info").text().replace("other parent:","").replace("step parent:",""),f=u.find("p"),f.html("<em>"+$.trim(v)+"<\/em>"),e=f.find("em"),b=e.find("a"),u.css("z-index",1e3).css("width",221,5),u.find(".details").css("width",u.width()-4).css("padding","0 2px"),f.css("width",u.width()-4),o=n.position().top,s=n.css("width"),t=="LeftSide"?(y=n.position().left,u.css("position","absolute").css("top",o+"px").css("left",y+"px").css("width",s)):(p=n.position().right,u.css("position","absolute").css("top",o+"px").css("right",p+"px").css("width",s)),n.after(u),u.addClass("centered"),e.css("width",f.width()).css("text-align","center").css("font-style","normal").css("font-family",'"Franklin Gothic Medium","Franklin Gothic","ITC Franklin Gothic",Arial,sans-serif'),w=Math.round(f.outerHeight()/2)-2,e.css("position","absolute").css("top","50%").css("left","2px"),e.css("margin-top","-"+w+"px"),e.animate({fontSize:"12px",lineHeight:"15px",color:"#e53322"},{duration:Animation.Speed.Normal,queue:!1}),f.animate({fontSize:"12px",lineHeight:"15px",height:"32px"},{duration:Animation.Speed.Normal,queue:!1}),h=u.offset(),c=Animation.FirstParents.offset()?h.top-Animation.FirstParents.Top():h.top-Animation.SecondParents.Top(),l=0,a=0,t=="LeftSide"?(r=="RightSide"&&(l=230),u.animate({top:"-="+c+"px",left:l+"px",width:"221.5px",height:"65px",paddingTop:"3px",paddingLeft:0,paddingRight:0,paddingBottom:0,backgroundColor:"#FFFFFF"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})):(r=="LeftSide"&&(a=230),u.animate({top:"-="+c+"px",right:a+"px",width:"221.5px",height:"65px",paddingTop:"3px",paddingLeft:0,paddingRight:0,paddingBottom:0,backgroundColor:"#FFFFFF"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})))}function isIndividualView(){return $(".how-to").length?!0:!1}function goesFromLeftToRight(n){return n=="RightSide"&&$(".individual-details.leftside").length?!0:!1}function goesFromRightToLeft(n){return n=="LeftSide"&&$(".individual-details.rightside").length?!0:!1}function fadeFamilyTreeLeftSide(){Animation.FirstGrandparents.Fade();Animation.SecondGrandparents.Fade();Animation.FirstParents.Fade();Animation.FadeAll.ConnectorsLeft()}function fadeFamilyTreeRightSide(){Animation.SecondParents.Fade();Animation.ThirdGrandparents.Fade();Animation.FourthGrandparents.Fade();Animation.FadeAll.ConnectorsRight()}function CommonOtherRelationshipToPartnerTransitions(n,t){var r,u,s,f,e,o;Animation.FadeAll.RelationshipStatus();r=n.find("a:first");u=n.find("p:first");n.css("z-index",1e3);var i=$(n).offset(),h=i.top,c=i.left;n.css("position","absolute").css("top",h+"px").css("left",c+"px");s=n.css("height");n.css("background-color","#FFFFFF").css("border-radius","4px").css("margin","5px 0").css("padding","10px").css("width","202px").css("font-size","12px").css("color","#2F3B61");n.find("img").css("border","1px solid #999999").css("clear","both").css("display","block").css("float","left").css("padding","1px").css("text-align","center");n.find(".details").css("width","150px").css("float","right");n.find("h3, p").css("margin","0").css("padding","0");n.before('<div class="partner" style="height:'+s+'"> <\/div>');f=$(".blue-overlay").next(".popup-box");$(n).insertAfter(f);f.stop();f.slideUp("normal");$(".blue-overlay").hide();$(".show-popup").off();e=0;o=0;t?(e=i.top-Animation.FirstPartner.Top(),o=Animation.FirstPartner.Left()-i.left):(e=i.top-Animation.SecondPartner.Top(),o=Animation.SecondPartner.Left()-i.left);n.find("p.info, img, h3").fadeOut({duration:Animation.Speed.Fast,queue:!1});n.find(".details").animate({width:Animation.FirstPartner.CssWidth,height:Animation.FirstPartner.CssHeight},{duration:Animation.Speed.Normal,queue:!1});r.addClass("content");u.prepend('<span class="helper"><\/span>');u.css("width",r.width()).addClass("centered");r.animate({fontSize:"19px",lineHeight:"21px"},{duration:Animation.Speed.Normal,queue:!1});u.animate({width:Animation.FirstPartner.CssWidth,fontSize:"19px",lineHeight:"21px",height:"42px",letterSpacing:"-1px",padding:0,margin:0},{duration:Animation.Speed.Normal,queue:!1});$("html,body").animate({scrollTop:0},{duration:Animation.Speed.Normal,queue:!1});n.animate({top:"-="+e+"px",left:"+="+o+"px",width:Animation.FirstPartner.CssWidth,height:Animation.FirstPartner.CssHeight,padding:0,margin:0,backgroundColor:"#ffa800"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing,complete:function(){var t=r.position();window.location.href=n.find("a").attr("href")}})}$(function(){$(document).ready(function(){console.log("document ready");var n=/LINK\((.*?)\)URL\((.*?)\)/g;$('p:contains("LINK")').each(function(){var t=$(this),i;console.log(t);i=t.html().replace(n,function(n,t,i){return'<a href="http://'+i+'">'+t+"<\/div>"});t.html(i)})});$(".display-other-mothers[title]").tooltip({tooltipClass:"tooltip-class"});$(".display-other-fathers[title]").tooltip({tooltipClass:"tooltip-class"});$(".display-other-fathers, .display-other-mothers").click(function(){var n=$(this).parent();$(n).find(".other-parents").is(":visible")?($(n).find(".other-parents").slideUp(),$(n).find(".display-other-fathers, .display-other-mothers").removeClass("active")):($(n).find(".other-parents").slideDown(),$(n).find(".display-other-fathers, .display-other-mothers").addClass("active"))})});$(function(){$(".family-tree .grandparents .node").each(function(){$(this).find("p").textfill({maxFontPixels:12,innerTag:"a",explicitWidth:101,explicitHeight:32})});$(".family-tree h1 span.relationship").textfill({maxFontPixels:16,innerTag:"span",explicitWidth:226,explicitHeight:23,complete:function(){$(".family-tree.relationship h1 span.relationship span.name").css("visibility","visible")}});$(".family-tree h1 .relationship.facts").click(function(){var n=$(".family-tree .relationship-facts"),t=$(".family-tree h1 .relationship");n.is(":visible")?(n.slideUp(),t.removeClass("active")):(n.slideDown(),t.addClass("active"))})});"use strict";var Animation=Animation||{};Animation.Easing="swing";Animation.Speed={};Animation.Speed.Slow=1200;Animation.Speed.Normal=800;Animation.Speed.Fast=400;Animation.FadeAll={};Animation.FadeAll.Connectors=function(){$(".family-tree .connector").fadeOut({duration:Animation.Speed.Slow,queue:!1})};Animation.FadeAll.ConnectorsRight=function(){$(".family-tree .grandparents .connector.third").add(".family-tree .grandparents .connector.fourth").add(".family-tree .parents .connector.second").fadeOut({duration:Animation.Speed.Slow,queue:!1})};Animation.FadeAll.ConnectorsLeft=function(){$(".family-tree .grandparents .connector.first").add(".family-tree .grandparents .connector.second").add(".family-tree .parents .connector.first").fadeOut({duration:Animation.Speed.Slow,queue:!1})};Animation.FadeAll.GrandparentConnectors=function(){$(".family-tree .ft-row.grandparents .connector").fadeOut({duration:Animation.Speed.Slow,queue:!1})};Animation.FadeAll.ParentConnectorsRight=function(){$(".family-tree .parents .connector.second").fadeOut({duration:Animation.Speed.Slow,queue:!1})};Animation.FadeAll.ParentConnectorsLeft=function(){$(".family-tree .parents .connector.first").fadeOut({duration:Animation.Speed.Slow,queue:!1})};Animation.FadeAll.Grandparents=function(){$(".doublenode.grandparents").fadeOut({duration:Animation.Speed.Slow,queue:!1})};Animation.FadeAll.Parents=function(){$(".doublenode.parents").fadeOut({duration:Animation.Speed.Slow,queue:!1});$(".other-fathers, .other-mothers, .other-parents").stop().hide()};Animation.FadeAll.RelationshipStatus=function(){$(".family-tree h1 span.relationship, .family-tree h1 span.relationship span").animate({color:"#fff"},{duration:Animation.Speed.Normal,queue:!1});$(".relationship-facts").stop().hide();$(".family-tree h1 span.relationship").removeClass("active")};Animation.FadeAll.Children=function(){$(".children-details").length>0&&($(".children-details").css("height",$(".children-details").outerHeight()),$(".children-details .child").fadeOut({duration:Animation.Speed.Slow,queue:!1}))};Animation.FirstPartner=$(".family-tree h1 span.displayname.first");Animation.FirstPartner.Width=Animation.FirstPartner.outerWidth();Animation.FirstPartner.CssWidth=Animation.FirstPartner.css("width");Animation.FirstPartner.Height=Animation.FirstPartner.outerHeight();Animation.FirstPartner.CssHeight=Animation.FirstPartner.css("height");Animation.FirstPartner.Left=function(){return Animation.FirstPartner.offset().left};Animation.FirstPartner.Right=function(){return $(window).width()-(Animation.FirstPartner.Left()+Animation.FirstPartner.Width)};Animation.FirstPartner.Top=function(){return Animation.FirstPartner.offset().top};Animation.FirstPartner.ReplaceText=function(n){Animation.FirstPartner.find("span.content").fadeOut({duration:Animation.Speed.Normal,queue:!1,complete:function(){$(this).text(n);$(this).fadeIn({duration:Animation.Speed.Fast,queue:!1,complete:Animation.Utilities.SetNodeBackground(Animation.FirstPartner)})}})};Animation.FirstPartner.Fade=function(n){n==null&&(n=!1);Animation.FirstPartner.fadeOut({duration:Animation.Speed.Slow,queue:!1});n&&$("div.individual-details.leftside").fadeTo(Animation.Speed.Slow,0)};Animation.SecondPartner=$(".family-tree h1 span.displayname.second");Animation.SecondPartner.Width=Animation.SecondPartner.outerWidth();Animation.SecondPartner.Left=function(){return Animation.SecondPartner.offset().left};Animation.SecondPartner.Right=function(){return $(window).width()-(Animation.SecondPartner.Left()+Animation.SecondPartner.Width)};Animation.SecondPartner.Top=function(){return Animation.SecondPartner.offset().top};Animation.SecondPartner.ReplaceText=function(n){Animation.SecondPartner.find("span.content").fadeOut({duration:Animation.Speed.Normal,queue:!1,complete:function(){$(this).text(n);$(this).fadeIn({duration:Animation.Speed.Fast,queue:!1,complete:Animation.Utilities.SetNodeBackground(Animation.SecondPartner)})}})};Animation.SecondPartner.Fade=function(n){n==null&&(n=!1);Animation.SecondPartner.fadeOut({duration:Animation.Speed.Slow,queue:!1});n&&$("div.individual-details.rightside").fadeTo(Animation.Speed.Slow,0)};Animation.FirstParents=$(".doublenode.parents.first:not(.clone)");Animation.FirstParents.Left=function(){return Animation.FirstParents.offset().left};Animation.FirstParents.Top=function(){return Animation.FirstParents.offset().top};Animation.FirstParents.Width=Animation.FirstParents.outerWidth();Animation.FirstParents.CssWidth=Animation.FirstParents.css("width");Animation.FirstParents.Right=function(){return $(window).width()-(Animation.FirstParents.Left()+Animation.FirstParents.Width)};Animation.FirstParents.Fade=function(){Animation.FirstParents.fadeOut({duration:Animation.Speed.Slow,queue:!1});$(".other-fathers, .other-mothers, .other-parents").stop().hide()};Animation.SecondParents=$(".doublenode.parents.second:not(.clone)");Animation.SecondParents.Top=function(){return Animation.SecondParents.offset().top};Animation.SecondParents.Left=function(){return Animation.SecondParents.offset().left};Animation.SecondParents.Width=Animation.SecondParents.outerWidth();Animation.SecondParents.Right=function(){return $(window).width()-(Animation.SecondParents.Left()+Animation.SecondParents.Width)};Animation.SecondParents.Fade=function(){Animation.SecondParents.fadeOut({duration:Animation.Speed.Slow,queue:!1});$(".other-parents").stop().hide()};Animation.FirstGrandparents=$(".doublenode.grandparents.first");Animation.FirstGrandparents.Left=function(){return Animation.FirstGrandparents.offset().left};Animation.FirstGrandparents.Top=function(){return Animation.FirstGrandparents.offset().top};Animation.FirstGrandparents.CssWidth=Animation.FirstGrandparents.css("width");Animation.FirstGrandparents.Fade=function(){Animation.FirstGrandparents.fadeOut({duration:Animation.Speed.Slow,queue:!1})};Animation.SecondGrandparents=$(".doublenode.grandparents.second");Animation.SecondGrandparents.Left=function(){return Animation.SecondGrandparents.offset().left};Animation.SecondGrandparents.Right=function(){return $(window).width()-(Animation.SecondGrandparents.Left()+Animation.SecondGrandparents.outerWidth())};Animation.SecondGrandparents.Top=function(){return Animation.SecondGrandparents.offset().top};Animation.SecondGrandparents.Fade=function(){Animation.SecondGrandparents.fadeOut({duration:Animation.Speed.Slow,queue:!1})};Animation.ThirdGrandparents=$(".doublenode.grandparents.third");Animation.ThirdGrandparents.Left=function(){return Animation.ThirdGrandparents.offset().left};Animation.ThirdGrandparents.Right=function(){return $(window).width()-(Animation.ThirdGrandparents.Left()+Animation.ThirdGrandparents.outerWidth())};Animation.ThirdGrandparents.Top=function(){return Animation.ThirdGrandparents.offset().top};Animation.ThirdGrandparents.Fade=function(){Animation.ThirdGrandparents.fadeOut({duration:Animation.Speed.Slow,queue:!1})};Animation.FourthGrandparents=$(".doublenode.grandparents.fourth");Animation.FourthGrandparents.Left=function(){return Animation.FourthGrandparents.offset().left};Animation.FourthGrandparents.Right=function(){return $(window).width()-(Animation.FourthGrandparents.Left()+Animation.FourthGrandparents.outerWidth())};Animation.FourthGrandparents.Top=function(){return Animation.FourthGrandparents.offset().top};Animation.FourthGrandparents.Fade=function(){Animation.FourthGrandparents.fadeOut({duration:Animation.Speed.Slow,queue:!1})};Animation.Utilities={};Animation.Utilities.SetNodeBackground=function(n){n.text()==""?n.addClass("disabled"):n.removeClass("disabled")};Animation.Utilities.FromPageTransition=function(n,t,i,r){screen.width>=768&&(i==null&&(i=Animation.Speed.Normal),r==null&&(r=!0),$(".family-tree").css("overflow","hidden"),n.animate({top:"+="+t+"px"},{duration:5,queue:!1,complete:function(){$(this).css("visibility","");$(this).animate({top:"-="+t+"px"},{duration:i,queue:!1,easing:Animation.Easing,complete:function(){r&&(r=!1,$(".family-tree").css("overflow",""))}})}}))};Animation.FromGenericPageTransitionDisplay=function(n){var t,i;screen.width>=768&&(n==null&&(n=!0),t=$(".ft-row.parents"),Animation.Utilities.FromPageTransition(t,-255,Animation.Speed.Normal,!1),i=$(".ft-row.grandparents"),window.setTimeout(function(){Animation.Utilities.FromPageTransition(i,-255,Animation.Speed.Slow,!0)},100),n&&(Animation.FirstPartner.animate({left:"-=400px"},{duration:5,queue:!1,complete:function(){$(this).css("visibility","");$(this).animate({left:"+=400px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})}}),Animation.SecondPartner.animate({right:"-=400px"},{duration:5,queue:!1,complete:function(){$(this).css("visibility","");$(this).animate({right:"+=400px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})}})))};Animation.Utilities.SetRowsZIndexAscending=function(){$(".family-tree .ft-row.grandparents").css("z-index","300");$(".family-tree .ft-row.parents").css("z-index","200");$(".family-tree h1").css("z-index","100")};Animation.Utilities.SetRowsZIndexDescending=function(){$(".family-tree .ft-row.grandparents").css("z-index","100");$(".family-tree .ft-row.parents").css("z-index","200");$(".family-tree h1").css("z-index","300")};Animation.HowTo={};Animation.HowTo.SlideOutToLeft=function(){$(".how-to").fadeOut({duration:Animation.Speed.Normal,queue:!1});$(".how-to").animate({left:"-500px"},{duration:Animation.Speed.Normal,queue:!1})};Animation.HowTo.SlideOutToRight=function(){$(".how-to").fadeOut({duration:Animation.Speed.Normal,queue:!1});$(".how-to").animate({right:"-500px"},{duration:Animation.Speed.Normal,queue:!1})};Animation.Grandparents={};$(function(){screen.width>=768&&(Animation.FirstGrandparents.Click(),Animation.SecondGrandparents.Click(),Animation.ThirdGrandparents.Click(),Animation.FourthGrandparents.Click())});Animation.FirstGrandparents.Click=function(){Animation.FirstGrandparents.find("a").click(function(n){var t,i,r,u;n.preventDefault();t=$(this).closest(".family-tree").hasClass("relationship");Animation.SecondGrandparents.Fade();t?(Animation.ThirdGrandparents.Fade(),Animation.FourthGrandparents.Fade(),Animation.HowTo.SlideOutToRight(),i=Animation.FirstPartner.Top()-Animation.FirstGrandparents.Top(),r=Animation.FirstPartner.Left()-Animation.FirstGrandparents.Left()):(u=$(".bio-details.left").length>0?$(".bio-details.left").offset():$(".relationship-column.left").offset(),i=u.top-Animation.FirstGrandparents.Top(),r=u.left-Animation.FirstGrandparents.Left());Animation.FirstGrandparents.animate({top:"+="+i+"px",left:"+="+r+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.SecondParents.Fade();Animation.FirstParents.find(".node.second").fadeOut({duration:Animation.Speed.Normal,queue:!1});Animation.FirstParents.addClass("hideb");$(".children-together").length?Animation.FirstParents.find(".node.first").animate({top:"626px",left:"257px",width:"200px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}):Animation.FirstParents.find(".node.first").fadeOut({duration:Animation.Speed.Normal,queue:!1});t?CommonGrandparentsRelationshipClickTransitions(Animation.FirstGrandparents):CommonGrandparentsIndividualClickTransitions(Animation.FirstGrandparents)})};Animation.SecondGrandparents.Click=function(){Animation.SecondGrandparents.find("a").click(function(n){var t,i,r,u;n.preventDefault();t=$(this).closest(".family-tree").hasClass("relationship");Animation.FirstGrandparents.Fade();t?(Animation.ThirdGrandparents.Fade(),Animation.FourthGrandparents.Fade(),Animation.HowTo.SlideOutToRight(),i=Animation.FirstPartner.Top()-Animation.SecondGrandparents.Top(),r=Animation.SecondGrandparents.Left()-Animation.FirstPartner.Left()):(u=$(".bio-details.left").length>0?$(".bio-details.left").offset():$(".relationship-column.left").offset(),i=u.top-Animation.SecondGrandparents.Top(),r=Animation.SecondGrandparents.Left()-u.left);Animation.SecondGrandparents.animate({top:"+="+i+"px",left:"-="+r+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.SecondParents.Fade();Animation.FirstParents.find(".node.first").fadeOut({duration:Animation.Speed.Normal,queue:!1});Animation.FirstParents.addClass("hideb");$(".children-together").length?Animation.FirstParents.find(".node.second").animate({top:"626px",right:"-10px",width:"200px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}):Animation.FirstParents.find(".node.second").fadeOut({duration:Animation.Speed.Normal,queue:!1});t?CommonGrandparentsRelationshipClickTransitions(Animation.SecondGrandparents):CommonGrandparentsIndividualClickTransitions(Animation.SecondGrandparents)})};Animation.ThirdGrandparents.Click=function(){Animation.ThirdGrandparents.find("a").click(function(n){n.preventDefault();Animation.SecondGrandparents.Fade();Animation.FirstGrandparents.Fade();Animation.FourthGrandparents.Fade();Animation.HowTo.SlideOutToLeft();var t=Animation.SecondPartner.Top()-Animation.ThirdGrandparents.Top(),i=Animation.ThirdGrandparents.Right()-Animation.SecondPartner.Right();Animation.ThirdGrandparents.animate({top:"+="+t+"px",right:"-="+i+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.FirstParents.Fade();Animation.SecondParents.find(".node.second").fadeOut({duration:Animation.Speed.Normal,queue:!1});Animation.SecondParents.addClass("hideb");$(".children-together").length?Animation.SecondParents.find(".node.first").animate({top:"626px",left:"-222px",width:"200px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}):Animation.SecondParents.find(".node.first").fadeOut({duration:Animation.Speed.Normal,queue:!1});CommonGrandparentsRelationshipClickTransitions(Animation.ThirdGrandparents)})};Animation.FourthGrandparents.Click=function(){Animation.FourthGrandparents.find("a").click(function(n){n.preventDefault();Animation.SecondGrandparents.Fade();Animation.ThirdGrandparents.Fade();Animation.FirstGrandparents.Fade();Animation.HowTo.SlideOutToLeft();var t=Animation.SecondPartner.Top()-Animation.FourthGrandparents.Top(),i=Animation.SecondPartner.Right()-Animation.FourthGrandparents.Right();Animation.FourthGrandparents.animate({top:"+="+t+"px",right:"+="+i+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.FirstParents.Fade();Animation.SecondParents.find(".node.first").fadeOut({duration:Animation.Speed.Normal,queue:!1});Animation.SecondParents.addClass("hideb");$(".children-together").length?Animation.SecondParents.find(".node.second").animate({top:"626px",right:"260px",width:"200px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}):Animation.SecondParents.find(".node.second").fadeOut({duration:Animation.Speed.Normal,queue:!1});CommonGrandparentsRelationshipClickTransitions(Animation.FourthGrandparents)})};Animation.FirstGrandparents.ToParents=function(n){arguments.length==0&&(n=!1);var t=Animation.FirstParents.Top()-Animation.FirstGrandparents.Top(),i=Animation.FirstParents.Left()-Animation.FirstGrandparents.Left();Animation.FirstGrandparents.animate({top:"+="+t+"px",left:"+="+i+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.FirstGrandparents.hasClass("unknown")&&!n&&Animation.FirstParents.animate({opacity:0},{duration:Animation.Speed.Fast,queue:!1,easing:Animation.Easing});CommonGrandparentsToParentsTransitions(Animation.FirstGrandparents)};Animation.SecondGrandparents.ToParents=function(n){arguments.length==0&&(n=!1);var t,i;Animation.SecondParents.length?(t=Animation.SecondParents.Top()-Animation.SecondGrandparents.Top(),i=Animation.SecondParents.Left()-Animation.SecondGrandparents.Left()):(t=Animation.FirstParents.Top()-Animation.SecondGrandparents.Top(),i=277);Animation.SecondGrandparents.animate({top:"+="+t+"px",left:"+="+i+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.SecondGrandparents.hasClass("unknown")&&!n&&Animation.SecondParents.animate({opacity:0},{duration:Animation.Speed.Fast,queue:!1,easing:Animation.Easing});CommonGrandparentsToParentsTransitions(Animation.SecondGrandparents)};Animation.ThirdGrandparents.ToParents=function(n){var t,i;arguments.length==0&&(n=!1);t=Animation.SecondParents.Top()-Animation.ThirdGrandparents.Top();Animation.FirstParents.length?(i=Animation.FirstParents.Right()-Animation.ThirdGrandparents.Right(),Animation.ThirdGrandparents.animate({top:"+="+t+"px",right:"+="+i+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})):Animation.ThirdGrandparents.animate({top:"+="+t+"px",left:"0px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});CommonGrandparentsToParentsTransitions(Animation.ThirdGrandparents)};Animation.FourthGrandparents.ToParents=function(n){arguments.length==0&&(n=!1);var t=Animation.SecondParents.Top()-Animation.FourthGrandparents.Top(),i=Animation.SecondParents.Right()-Animation.FourthGrandparents.Right();Animation.FourthGrandparents.animate({top:"+="+t+"px",right:"+="+i+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.FourthGrandparents.hasClass("unknown")&&!n&&Animation.SecondParents.animate({opacity:0},{duration:Animation.Speed.Fast,queue:!1,easing:Animation.Easing});CommonGrandparentsToParentsTransitions(Animation.FourthGrandparents)};Animation.Grandparents.ToParents=function(){var n=$(".ft-row.grandparents").outerHeight();$(".ft-row.grandparents").animate({top:"+="+n+"px"},{duration:Animation.Speed.Normal,queue:!1});$(".ft-row.grandparents .doublenode").animate({width:"451px"},{duration:Animation.Speed.Normal,queue:!1});$(".ft-row.grandparents .doublenode .node").animate({width:"221.5px"},{duration:Animation.Speed.Normal,queue:!1})};Animation.FromGrandparentTransitionDisplay=function(){var n=$(".ft-row.grandparents, .ft-row.parents");Animation.Utilities.FromPageTransition(n,255)};Animation.Parents={};$(function(){screen.width>=768&&(Animation.FirstParents.Click(),Animation.SecondParents.Click())});Animation.FirstParents.Click=function(){Animation.SecondParents.length?Animation.FirstParents.find("> .node a").click(function(n){n.preventDefault();var t,i;Animation.ThirdGrandparents.Fade();Animation.FourthGrandparents.Fade();Animation.FirstGrandparents.ToParents(!0);Animation.SecondGrandparents.ToParents();Animation.FirstPartner.ToChildren();Animation.SecondPartner.fadeOut();t=Animation.FirstPartner.Top()-Animation.FirstParents.Top();i=Animation.FirstPartner.Left()-Animation.FirstParents.Left();Animation.FirstParents.animate({top:"+="+t+"px",left:"+="+i+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});CommonParentsClickTransitionsRelationshipTree(Animation.FirstParents)}):Animation.FirstParents.find("> .node a").click(function(n){n.preventDefault();Animation.FirstGrandparents.ToParents();Animation.SecondGrandparents.ToParents();Animation.HowTo.SlideOutToRight();var t=Animation.FirstPartner.Top()-Animation.FirstParents.Top(),i=Animation.FirstPartner.Right()-Animation.FirstParents.Right();Animation.FirstParents.animate({top:"+="+t+"px",right:"+="+i+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.FirstPartner.fadeOut();CommonParentsClickTransitionsRelationshipTree(Animation.FirstParents)})};Animation.SecondParents.Click=function(){Animation.FirstParents.length?Animation.SecondParents.find("> .node a").click(function(n){n.preventDefault();Animation.FirstGrandparents.Fade();Animation.SecondGrandparents.Fade();Animation.ThirdGrandparents.ToParents();Animation.FourthGrandparents.ToParents(!0);var t=Animation.SecondPartner.Top()-Animation.SecondParents.Top(),i=Animation.SecondPartner.Right()-Animation.SecondParents.Right();Animation.SecondParents.animate({top:"+="+t+"px",right:"+="+i+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.SecondPartner.ToChildren();CommonParentsClickTransitionsRelationshipTree(Animation.SecondParents)}):Animation.SecondParents.find("> .node a").click(function(n){n.preventDefault();Animation.ThirdGrandparents.ToParents();Animation.FourthGrandparents.ToParents(!0);Animation.HowTo.SlideOutToLeft();var t=Animation.SecondPartner.Top()-Animation.SecondParents.Top(),i=Animation.SecondPartner.Right()-Animation.SecondParents.Right();Animation.SecondParents.animate({top:"+="+t+"px",right:"+="+i+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.SecondPartner.fadeOut();CommonParentsClickTransitionsRelationshipTree(Animation.SecondParents)})};Animation.Parents.ToIndivudalTreeGrandparents=function(){var n=Animation.FirstParents.Top()-Animation.FirstGrandparents.Top();$(".ft-row.parents .node h3, .display-other-mothers, .display-other-fathers").fadeOut({duration:Animation.Speed.Normal,queue:!1});$(".ft-row.parents").animate({top:"-="+n+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});$(".ft-row.parents .doublenode").animate({width:"217.5px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});$(".ft-row.parents .doublenode .node").animate({width:"104.75px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});$(".ft-row.parents .connector").fadeOut({duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})};Animation.FirstParents.ToIndivudalTreeGrandparents=function(){var n=Animation.FirstParents.Top()-Animation.FirstGrandparents.Top();Animation.FirstParents.find(".node h3, .display-other-mothers, .display-other-fathers").fadeOut({duration:Animation.Speed.Normal,queue:!1});Animation.FirstParents.animate({top:"-="+n+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})};Animation.FirstParents.ToFirstGrandparents=function(){var n=Animation.FirstParents.Top()-Animation.FirstGrandparents.Top();Animation.FirstParents.find(".node h3, .display-other-mothers, .display-other-fathers").fadeOut({duration:Animation.Speed.Normal,queue:!1});Animation.FirstParents.animate({top:"-="+n+"px",width:"218px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.FirstParents.find(".node").animate({width:"104.7px"});$(".doublenode.parents.first:before").fadeOut({duration:Animation.Speed.Normal,queue:!1});Animation.FirstParents.find(".node.second").animate({})};Animation.SecondParents.ToIndivudalTreeGrandparents=function(){var n=Animation.SecondParents.Top()-Animation.ThirdGrandparents.Top();Animation.SecondParents.find(".node h3, .display-other-mothers, .display-other-fathers").fadeOut({duration:Animation.Speed.Normal,queue:!1});Animation.SecondParents.animate({top:"-="+n+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})};Animation.SecondParents.ToSecondGrandparents=function(){var n=Animation.SecondParents.Top()-Animation.ThirdGrandparents.Top();Animation.SecondParents.find(".node h3, .display-other-mothers, .display-other-fathers").fadeOut({duration:Animation.Speed.Normal,queue:!1});Animation.SecondParents.animate({top:"-="+n+"px",width:"218px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.SecondParents.find(".node").animate({width:"104.7px"});$(".doublenode.parents.second:before").fadeOut({duration:Animation.Speed.Normal,queue:!1})};Animation.FirstParents.FirstParentFade=function(){Animation.FirstParents.find("div.node.first").fadeOut({duration:Animation.Speed.Slow,queue:!1})};Animation.FirstParents.SecondParentFade=function(){Animation.FirstParents.find("div.node.second").fadeOut({duration:Animation.Speed.Slow,queue:!1})};Animation.SecondParents.FirstParentFade=function(){Animation.SecondParents.find("div.node.first").fadeOut({duration:Animation.Speed.Slow,queue:!1})};Animation.SecondParents.SecondParentFade=function(){Animation.SecondParents.find("div.node.second").fadeOut({duration:Animation.Speed.Slow,queue:!1})};Animation.FirstFatherToPartner=function(){var n=Animation.FirstParents.find("div.node.first"),t=n.offset(),i=Animation.FirstPartner.Top()-t.top,r=Animation.FirstPartner.Left()-t.left;n.animate({top:"+="+i+"px",left:"+="+r+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.FirstPartner.ReplaceText(n.find("p:first").text());CommonParentToPartnerTransitions(n)};Animation.FirstMotherToPartner=function(){var n=Animation.FirstParents.find("div.node.second"),t=n.offset(),i=Animation.SecondPartner.Top()-t.top,r=Animation.SecondPartner.Right()-($(window).width()-(t.left+n.outerWidth()));n.animate({top:"+="+i+"px",right:"+="+r+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.SecondPartner.ReplaceText(n.find("p:first").text());CommonParentToPartnerTransitions(n)};Animation.SecondFatherToPartner=function(){var n=Animation.SecondParents.find("div.node.first"),t=n.offset(),i=Animation.FirstPartner.Top()-t.top,r=Animation.FirstPartner.Left()-t.left;n.animate({top:"+="+i+"px",left:"+="+r+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.FirstPartner.ReplaceText(n.find("p:first").text());CommonParentToPartnerTransitions(n)};Animation.SecondMotherToPartner=function(){var n=Animation.SecondParents.find("div.node.second"),t=n.offset(),i=Animation.SecondPartner.Top()-t.top,r=Animation.SecondPartner.Right()-($(window).width()-(t.left+n.outerWidth()));n.animate({top:"+="+i+"px",right:"+="+r+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.SecondPartner.ReplaceText(n.find("p:first").text());CommonParentToPartnerTransitions(n)};Animation.FromParentTransitionDisplay=function(){var n=$(".ft-row.grandparents");Animation.Utilities.FromPageTransition(n,255)};Animation.Children={};$(function(){screen.width>=768&&(console.log("entra en el if"),Animation.Children.TogetherClick(),Animation.Children.BiologicalClick(),Animation.Children.AdoptedClick(),Animation.Children.StepClick(),Animation.Children.HerOtherBiologicalClick(),Animation.Children.HisOtherBiologicalClick())});Animation.Children.TogetherClick=function(){$(".children-details .children-together .child.biological p:first-child a").click(function(n){n.preventDefault();$.post("/user-page-history/child-transition-click/");var t=$(this).closest("div.child");Animation.FadeAll.Grandparents();Animation.FadeAll.GrandparentConnectors();Animation.Parents.ToIndivudalTreeGrandparents();Animation.FirstPartner.ToIndividualTreeParent();Animation.SecondPartner.ToIndividualTreeParent();CommonChildToIndividualTreeTransitions(t)})};Animation.Children.BiologicalClick=function(){$(".children-details .person-item.biological h4 a").click(function(n){n.preventDefault();$.post("/user-page-history/child-transition-click/");var i=$(".bio-details.left").length>0,t=$(this).closest("div.person-item");Animation.FadeAll.Grandparents();Animation.FadeAll.GrandparentConnectors();i?(BiologicalClickAnimateOtherParent(t,!0),Animation.Individual.ToFather()):(BiologicalClickAnimateOtherParent(t,!1),Animation.Individual.ToMother());CommonChildTransitions(t)})};Animation.Children.AdoptedClick=function(){$(".children-details .child.adopted p:first-child a").click(function(n){n.preventDefault();$.post("/user-page-history/child-adopted-transition-click/");var t=$(this).closest("div.child");Animation.SecondPartner.Fade(!0);Animation.FirstPartner.Fade(!0);Animation.FadeAll.Connectors();Animation.FadeAll.Grandparents();Animation.FadeAll.Parents();CommonChildToIndividualTreeTransitions(t)});$(".children-details .person-item.adopted h4 a").click(function(n){n.preventDefault();$.post("/user-page-history/child-adopted-transition-click/");var t=$(this).closest("div.person-item");Animation.FadeAll.Connectors();Animation.FadeAll.Grandparents();Animation.FadeAll.Parents();CommonChildTransitions(t)})};Animation.Children.StepClick=function(){$(".children-details .child.step p:first-child a").click(function(n){n.preventDefault();var t=$(this).closest("div.child"),i=t.parent().hasClass("his-other-children");$.post("/user-page-history/child-step-transition-click/"+i);Animation.SecondPartner.Fade(!0);Animation.FirstPartner.Fade(!0);Animation.FadeAll.Connectors();Animation.FadeAll.Grandparents();Animation.FadeAll.Parents();OtherBiologicalClickAnimateOtherParent(t,i);CommonChildToIndividualTreeTransitions(t)});$(".children-details .person-item.step h4 a").click(function(n){var i,t;n.preventDefault();i=$(".bio-details.left").length>0;$.post("/user-page-history/child-step-transition-click/"+i);t=$(this).closest("div.person-item");Animation.FadeAll.Connectors();Animation.FadeAll.Grandparents();$(".other-fathers, .other-mothers, .other-parents").stop().hide();i?(BiologicalClickAnimateOtherParent(t,!0),$(".doublenode.parents .node.first").fadeOut({duration:Animation.Speed.Slow,queue:!1})):(BiologicalClickAnimateOtherParent(t,!1),$(".doublenode.parents .node.second").fadeOut({duration:Animation.Speed.Slow,queue:!1}));CommonChildTransitions(t)})};Animation.Children.HerOtherBiologicalClick=function(){$(".children-details .her-other-children .child.biological p:first-child a").click(function(n){n.preventDefault();$.post("/user-page-history/child-transition-her-other-click/");var t=$(this).closest("div.child");Animation.FadeAll.Grandparents();Animation.SecondPartner.ToIndividualTreeParent();Animation.SecondParents.ToSecondGrandparents();OtherBiologicalClickAnimateOtherParent(t,!1);CommonChildToIndividualTreeTransitions(t,!1)})};Animation.Children.HisOtherBiologicalClick=function(){$(".children-details .his-other-children .child.biological p:first-child a").click(function(n){n.preventDefault();$.post("/user-page-history/child-transition-his-other-click/");var t=$(this).closest("div.child"),i=$(this).data("side");Animation.FadeAll.Grandparents();Animation.FirstPartner.ToIndividualTreeParent();Animation.FirstParents.ToFirstGrandparents();isIndividualView||(Animation.SecondPartner.Fade(),Animation.SecondParents.Fade());OtherBiologicalClickAnimateOtherParent(t,!0);CommonChildToIndividualTreeTransitions(t,!0)})};Animation.FromChildTransitionBiological=function(){var n=$(".ft-row.grandparents");Animation.Utilities.FromPageTransition(n,255)};Animation.FromChildTransitionAdopted=function(){var n=$(".ft-row.grandparents").add(".ft-row.parents");Animation.Utilities.FromPageTransition(n,255)};Animation.FromChildTransitionHisOther=function(){var n;n=$(".displayname.first.left").length?$(".ft-row.grandparents .doublenode.second").add(".ft-row.grandparents .connector.second"):$(".ft-row.grandparents .doublenode.fourth").add(".ft-row.grandparents .connector.fourth");Animation.Utilities.FromPageTransition(n,255)};Animation.FromChildTransitionHerOther=function(){console.log("FromChildTransitionHerOther");var n;n=$(".displayname.first.left").length?$(".ft-row.grandparents .doublenode.first").add(".ft-row.grandparents .connector.first"):$(".ft-row.grandparents .doublenode.third").add(".ft-row.grandparents .connector.third");Animation.Utilities.FromPageTransition(n,255)};Animation.FromChildTransitionStepHisOther=function(){var n=$(".ft-row.grandparents").add(".ft-row.parents .doublenode .node.first");Animation.Utilities.FromPageTransition(n,255)};Animation.FromChildTransitionStepHerOther=function(){var n=$(".ft-row.grandparents").add(".ft-row.parents .doublenode .node.second");Animation.Utilities.FromPageTransition(n,255)};$(function(){screen.width>=768&&Animation.Partners.FromAccordion()});Animation.Partners={};Animation.FirstPartner.ToIndividualTreeParent=function(){Animation.FirstPartner.animate({},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});CommonTransitionsPartnersToIndividualParent(Animation.FirstPartner)};Animation.SecondPartner.ToIndividualTreeParent=function(){Animation.SecondPartner.animate({},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});CommonTransitionsPartnersToIndividualParent(Animation.SecondPartner)};Animation.FirstPartner.ToChildren=function(){var i,t,n;$(".children-details div.children-together").length>0?(n=$(".children-details div.children-together").offset().top+10-Animation.FirstPartner.Top(),i=$(".children-details div.children-together").offset().left+10-Animation.FirstPartner.Left(),CommonTransitionsParentToChildren(Animation.FirstPartner),Animation.FirstPartner.animate({top:"+="+n+"px",left:"+="+i+"px"},{duration:Animation.Speed.Slow-100,queue:!1,easing:Animation.Easing})):(t=$(".other-details"),n=t.offset().top,t.prepend('<div class="children-details clearfix" style="display:none;height: 125px;"><h2 class="his-other-children">His Other Children<\/h2><h2 class="children-together">Children Together<\/h2><h2 class="her-other-children">Her Other Children<\/h2><div class="his-other-children"><\/div><div class="children-together"><\/div><div class="her-other-children"><\/div><\/div>'),$(".children-details").slideDown(100,function(){var n=$(".children-details div.children-together").offset().top+10-Animation.FirstPartner.Top(),t=$(".children-details div.children-together").offset().left+10-Animation.FirstPartner.Left();CommonTransitionsParentToChildren(Animation.FirstPartner);Animation.FirstPartner.animate({top:"+="+n+"px",left:"+="+t+"px"},{duration:Animation.Speed.Slow-100,queue:!1,easing:Animation.Easing})}))};Animation.SecondPartner.ToChildren=function(){var i,t,n;$(".children-details div.children-together").length>0?(n=$(".children-details div.children-together").offset().top+10-Animation.SecondPartner.Top(),i=$(".children-details div.children-together").offset().left+10-430-Animation.SecondPartner.Right(),CommonTransitionsParentToChildren(Animation.SecondPartner),Animation.SecondPartner.animate({top:"+="+n+"px",right:"-="+i+"px"},{duration:Animation.Speed.Slow-100,queue:!1,easing:Animation.Easing})):(t=$(".other-details"),n=t.offset().top,t.prepend('<div class="children-details clearfix" style="display:none;height: 125px;"><h2 class="his-other-children">His Other Children<\/h2><h2 class="children-together">Children Together<\/h2><h2 class="her-other-children">Her Other Children<\/h2><div class="his-other-children"><\/div><div class="children-together"><\/div><div class="her-other-children"><\/div><\/div>'),$(".children-details").slideDown(100,function(){var n=$(".children-details div.children-together").offset().top+10-Animation.SecondPartner.Top(),t=$(".children-details div.children-together").offset().left+10-430-Animation.SecondPartner.Right();CommonTransitionsParentToChildren(Animation.SecondPartner);Animation.SecondPartner.animate({top:"+="+n+"px",right:"-="+t+"px"},{duration:Animation.Speed.Slow-100,queue:!1,easing:Animation.Easing})}))};Animation.Partners.FromAccordion=function(){$(".relationships .partner a").click(function(n){var t=$(this).data("side"),i=$(this).data("sidefrom"),r;console.log(t);console.log(i);$.post("/user-page-history/other-relationship-transition-click/"+t);r=$(this).closest("div.partner");t!=i&&(n.preventDefault(),$(".how-to").length&&(t=="LeftSide"?Animation.HowTo.SlideOutToLeft():Animation.HowTo.SlideOutToRight()),CommonTransitionsPartnersToRelationship(r,t))})};$(function(){});Animation.OtherParents={};Animation.OtherParents.AdoptiveCoupleClick=function(){$(".other-fathers, .other-mothers").find(".node.adoptive-couple a").click(function(n){n.preventDefault();$.post("/user-page-history/adoptive-couple-transition-click");var t=$(this).closest("div.doublenode.parents"),i=$(this).closest("div.node").index(),r=t.find(".other-fathers .node.adoptive-couple:eq("+i+")"),u=t.find(".other-mothers .node.adoptive-couple:eq("+i+")");Animation.FadeAll.Grandparents();Animation.FadeAll.Connectors();Animation.FadeAll.RelationshipStatus();t.prepend('<div class="fade-background" style="background-color:#fff;opacity:0;width:'+t.css("width")+";height:"+t.css("height")+';position:absolute;top:0;left:0;">&#160;<\/div>');t.find("div.fade-background").animate({opacity:1},{duration:Animation.Speed.Slow,queue:!1});t.find("> div").not(".other-fathers, .other-mothers, .fade-background").fadeOut({duration:Animation.Speed.Slow,queue:!1});$(".doublenode.parents").not(t).fadeOut({duration:Animation.Speed.Slow,queue:!1});FadeOtherParents($(".other-mothers"),u);FadeOtherParents($(".other-fathers"),r);MoveOtherParentToPartner(r,Animation.FirstPartner,!1);MoveOtherParentToPartner(u,Animation.SecondPartner,!0)})};Animation.OtherParents.StepMotherRightSideClick=function(){Animation.SecondParents.find(".other-mothers .node.step-parent a").click(function(n){n.preventDefault();$.post("/user-page-history/step-mother-transition-click");var t=$(this).closest("div.node"),i=Animation.SecondParents.find("div.node.first");Animation.FadeAll.RelationshipStatus();Animation.FirstGrandparents.Fade();Animation.SecondGrandparents.Fade();Animation.FourthGrandparents.Fade();Animation.FadeAll.ConnectorsRight();$(".family-tree .grandparents .connector.first").add(".family-tree .grandparents .connector.second").fadeOut({duration:Animation.Speed.Slow,queue:!1});Animation.SecondParents.prepend('<div class="fade-background" style="background-color:#fff;opacity:0;width:'+Animation.SecondParents.css("width")+";height:"+Animation.SecondParents.css("height")+';position:absolute;top:0;right:0;">&#160;<\/div>');Animation.SecondParents.find("div.fade-background").animate({opacity:1},{duration:Animation.Speed.Slow,queue:!1});Animation.SecondParents.find("> div").not(".other-fathers, .other-mothers, .fade-background").not(i).fadeOut({duration:Animation.Speed.Slow,queue:!1});FadeOtherParents($(".other-mothers"),t);FadeOtherParents($(".other-fathers"),t);Animation.SecondFatherToPartner();Animation.ThirdGrandparents.ToParents();MoveOtherParentToPartner(t,Animation.SecondPartner,!0)})};Animation.OtherParents.StepMotherLeftSideClick=function(){Animation.FirstParents.find(".other-mothers .node.step-parent a").click(function(n){n.preventDefault();$.post("/user-page-history/step-mother-transition-click");var t=$(this).closest("div.node"),i=Animation.FirstParents.find("div.node.first");Animation.FadeAll.RelationshipStatus();Animation.SecondParents.fadeOut({duration:Animation.Speed.Slow,queue:!1});Animation.SecondGrandparents.Fade();Animation.ThirdGrandparents.Fade();Animation.FourthGrandparents.Fade();Animation.FadeAll.ConnectorsRight();$(".family-tree .grandparents .connector.first").add(".family-tree .grandparents .connector.second").fadeOut({duration:Animation.Speed.Slow,queue:!1});Animation.FirstParents.prepend('<div class="fade-background" style="background-color:#fff;opacity:0;width:'+Animation.FirstParents.css("width")+";height:"+Animation.FirstParents.css("height")+';position:absolute;top:0;right:0;">&#160;<\/div>');Animation.FirstParents.find("div.fade-background").animate({opacity:1},{duration:Animation.Speed.Slow,queue:!1});Animation.FirstParents.find("> div").not(".other-fathers, .other-mothers, .fade-background").not(i).fadeOut({duration:Animation.Speed.Slow,queue:!1});FadeOtherParents($(".other-mothers"),t);FadeOtherParents($(".other-fathers"),t);Animation.FirstFatherToPartner();Animation.FirstGrandparents.ToParents();MoveOtherParentToPartner(t,Animation.SecondPartner,!0)})};Animation.OtherParents.StepFatherRightSideClick=function(){Animation.SecondParents.find(".other-fathers .node.step-parent a").click(function(n){n.preventDefault();$.post("/user-page-history/step-father-transition-click");var t=$(this).closest("div.node"),i=Animation.SecondParents.find("div.node.second");Animation.FadeAll.RelationshipStatus();Animation.FirstParents.fadeOut({duration:Animation.Speed.Slow,queue:!1});Animation.FirstGrandparents.Fade();Animation.SecondGrandparents.Fade();Animation.ThirdGrandparents.Fade();Animation.FadeAll.ConnectorsLeft();$(".family-tree .grandparents .connector.third").add(".family-tree .grandparents .connector.fourth").fadeOut({duration:Animation.Speed.Slow,queue:!1});Animation.SecondParents.prepend('<div class="fade-background" style="background-color:#fff;opacity:0;width:'+Animation.SecondParents.css("width")+";height:"+Animation.SecondParents.css("height")+';position:absolute;top:0;right:0;">&#160;<\/div>');Animation.SecondParents.find("div.fade-background").animate({opacity:1},{duration:Animation.Speed.Slow,queue:!1});Animation.SecondParents.find("> div").not(".other-fathers, .other-mothers, .fade-background").not(i).fadeOut({duration:Animation.Speed.Slow,queue:!1});FadeOtherParents($(".other-mothers"),t);FadeOtherParents($(".other-fathers"),t);Animation.SecondMotherToPartner();Animation.FourthGrandparents.ToParents();MoveOtherParentToPartner(t,Animation.FirstPartner,!0)})};Animation.OtherParents.StepFatherLeftSideClick=function(){Animation.FirstParents.find(".other-fathers .node.step-parent a").click(function(n){n.preventDefault();$.post("/user-page-history/step-father-transition-click");var t=$(this).closest("div.node"),i=Animation.FirstParents.find("div.node.second");Animation.FadeAll.RelationshipStatus();Animation.FirstGrandparents.Fade();Animation.ThirdGrandparents.Fade();Animation.FourthGrandparents.Fade();Animation.FadeAll.ConnectorsLeft();$(".family-tree .grandparents .connector.third").add(".family-tree .grandparents .connector.fourth").fadeOut({duration:Animation.Speed.Slow,queue:!1});Animation.FirstParents.prepend('<div class="fade-background" style="background-color:#fff;opacity:0;width:'+Animation.FirstParents.css("width")+";height:"+Animation.FirstParents.css("height")+';position:absolute;top:0;right:0;">&#160;<\/div>');Animation.FirstParents.find("div.fade-background").animate({opacity:1},{duration:Animation.Speed.Slow,queue:!1});Animation.FirstParents.find("> div").not(".other-fathers, .other-mothers, .fade-background").not(i).fadeOut({duration:Animation.Speed.Slow,queue:!1});FadeOtherParents($(".other-mothers"),t);FadeOtherParents($(".other-fathers"),t);Animation.FirstMotherToPartner();Animation.SecondGrandparents.ToParents();MoveOtherParentToPartner(t,Animation.FirstPartner,!0)})};Animation.OtherParents.AdoptiveSingleMotherClick=function(){$(".other-mothers .node.adoptive-single a").click(function(n){n.preventDefault();$.post("/user-page-history/adoptive-single-transition-click/RightSide");var t=$(this).closest("div.doublenode.parents"),i=$(this).closest("div.node");Animation.FadeAll.Grandparents();Animation.FadeAll.Connectors();Animation.FadeAll.RelationshipStatus();Animation.FirstPartner.Fade();Animation.SecondPartner.Fade();t.prepend('<div class="fade-background" style="background-color:#fff;opacity:0;width:'+t.css("width")+";height:"+t.css("height")+';position:absolute;top:0;left:0;">&#160;<\/div>');t.find("div.fade-background").animate({opacity:1},{duration:Animation.Speed.Slow,queue:!1});t.find("> div").not(".other-mothers, .fade-background").fadeOut({duration:Animation.Speed.Slow,queue:!1});$(".doublenode.parents").not(t).fadeOut({duration:Animation.Speed.Slow,queue:!1});FadeOtherParents($(".other-mothers"),i);MoveOtherParentToPartner(i,Animation.SecondPartner,!0)})};Animation.OtherParents.AdoptiveSingleFatherClick=function(){$(".other-fathers .node.adoptive-single a").click(function(n){n.preventDefault();$.post("/user-page-history/adoptive-single-transition-click/LeftSide");var t=$(this).closest("div.doublenode.parents"),i=$(this).closest("div.node");Animation.FadeAll.Grandparents();Animation.FadeAll.Connectors();Animation.FadeAll.RelationshipStatus();Animation.SecondPartner.Fade();Animation.FirstPartner.Fade();t.prepend('<div class="fade-background" style="background-color:#fff;opacity:0;width:'+t.css("width")+";height:"+t.css("height")+';position:absolute;top:0;left:0;">&#160;<\/div>');t.find("div.fade-background").animate({opacity:1},{duration:Animation.Speed.Slow,queue:!1});t.find("> div").not(".other-fathers, .fade-background").fadeOut({duration:Animation.Speed.Slow,queue:!1});$(".doublenode.parents").not(t).fadeOut({duration:Animation.Speed.Slow,queue:!1});FadeOtherParents($(".other-fathers"),i);MoveOtherParentToPartner(i,Animation.FirstPartner,!0)})};Animation.FromAdoptiveCoupleTransitionDisplay=function(){var n=$(".ft-row.grandparents, .ft-row.parents");Animation.Utilities.FromPageTransition(n,255)};Animation.FromStepMotherTransitionDisplay=function(){var n=$(".ft-row.grandparents").add(".ft-row.parents .doublenode.second").add(".ft-row.parents .connector.second");Animation.Utilities.FromPageTransition(n,255)};Animation.FromStepFatherTransitionDisplay=function(){var n=$(".row.grandparents").add(".row.parents .doublenode.first").add(".row.parents .connector.first");Animation.Utilities.FromPageTransition(n,255)};Animation.FromAdoptiveSingleTransitionLeftSideDisplay=function(){var n=$(".ft-row.grandparents").add(".ft-row.parents").add(".family-tree h1 .displayname.second");Animation.Utilities.FromPageTransition(n,255)};Animation.FromAdoptiveSingleTransitionRightSideDisplay=function(){var n=$(".ft-row.grandparents").add(".ft-row.parents").add(".family-tree h1 .displayname.first");Animation.Utilities.FromPageTransition(n,255)};Animation.Siblings={};$(function(){screen.width>=768&&(Animation.Siblings.FullClick(),Animation.Siblings.HalfClick(),Animation.Siblings.StepClick(),Animation.Siblings.AdoptedOrFosterClick())});Animation.Siblings.FullClick=function(){$(".siblings .sibling.full .details p.link a").click(function(n){var r,u,t,i;n.preventDefault();r=$(this).closest("div.biological.full");u=$(this).data("side");$.post("/user-page-history/sibling-transition-full-click/"+u);t="LeftSide";i="LeftSide";$(this).attr("data-side")=="RightSide"&&(t="RightSide");$(this).attr("data-sidefrom")=="RightSide"&&(i="RightSide");Animation.FirstPartner.Fade();Animation.SecondPartner.Fade();t=="RightSide"&&(i=="LeftSide"?(Animation.ThirdGrandparents.Fade(),Animation.FourthGrandparents.Fade(),Animation.SecondParents.Fade(),Animation.FadeAll.ConnectorsRight(),Animation.HowTo.SlideOutToRight(),$(".doublenode.grandparents.first").animate({left:"480px"},{duration:Animation.Speed.Normal,queue:!1}),$(".doublenode.grandparents.second").animate({left:"715px"},{duration:Animation.Speed.Normal,queue:!1}),$(".doublenode.parents.first").animate({left:"480px"},{duration:Animation.Speed.Normal,queue:!1}),$(".ft-row.parents div.connector.first").animate({left:"591px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),$(".ft-row.grandparents div.connector.first").animate({left:"532px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),$(".ft-row.grandparents div.connector.second").animate({left:"767px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})):(Animation.FirstGrandparents.Fade(),Animation.SecondGrandparents.Fade(),Animation.FirstParents.Fade(),Animation.FadeAll.ConnectorsLeft()));t=="LeftSide"&&(i=="RightSide"?(Animation.FirstGrandparents.Fade(),Animation.SecondGrandparents.Fade(),Animation.FirstParents.Fade(),Animation.FadeAll.ConnectorsLeft(),Animation.HowTo.SlideOutToLeft(),$(".doublenode.grandparents.third").animate({right:"712px"},{duration:Animation.Speed.Normal,queue:!1}),$(".doublenode.grandparents.fourth").animate({right:"480px"},{duration:Animation.Speed.Normal,queue:!1}),$(".doublenode.parents.second").animate({right:"480px"},{duration:Animation.Speed.Normal,queue:!1}),$(".ft-row.parents div.connector.second").animate({right:"590px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),$(".ft-row.grandparents div.connector.third").animate({right:"765px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),$(".ft-row.grandparents div.connector.fourth").animate({right:"532px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})):(Animation.ThirdGrandparents.Fade(),Animation.FourthGrandparents.Fade(),Animation.SecondParents.Fade(),Animation.FadeAll.ConnectorsRight()));AnimateSiblingNode(r,t)})};Animation.Siblings.HalfClick=function(){$(".siblings .sibling.half .details p.link a").click(function(n){n.preventDefault();var i=$(this).closest("div.sibling"),t=i.find("p.info a").data("side"),r=$(this).data("side"),u=$(this).data("sidefrom"),f=$(".individual-details.rightside").length?!0:!1,e=$(".individual-details.leftside").length?!0:!1;$.post("/user-page-history/sibling-transition-half-click/"+r+"?otherParent="+t);Animation.FirstPartner.Fade();Animation.SecondPartner.Fade();r=="RightSide"?u=="RightSide"?(fadeFamilyTreeLeftSide(),t&&t=="LeftSide"?(Animation.ThirdGrandparents.Fade(),Animation.SecondParents.find(".node.first").fadeOut({duration:Animation.Speed.Slow,queue:!1}),$(".family-tree .grandparents .connector.third").fadeOut({duration:Animation.Speed.Slow,queue:!1})):(Animation.FourthGrandparents.Fade(),Animation.SecondParents.find(".node.second").fadeOut({duration:Animation.Speed.Slow,queue:!1}),$(".family-tree .grandparents .connector.fourth").fadeOut({duration:Animation.Speed.Slow,queue:!1}))):(fadeFamilyTreeRightSide(),t&&t=="LeftSide"?(Animation.FirstGrandparents.Fade(),Animation.FirstParents.find(".node.first").fadeOut({duration:Animation.Speed.Slow,queue:!1}),$(".family-tree .grandparents .connector.first").fadeOut({duration:Animation.Speed.Slow,queue:!1})):(Animation.FourthGrandparents.Fade(),Animation.SecondParents.find(".node.second").fadeOut({duration:Animation.Speed.Slow,queue:!1}),$(".family-tree .grandparents .connector.fourth").fadeOut({duration:Animation.Speed.Slow,queue:!1})),Animation.HowTo.SlideOutToRight(),$(".doublenode.grandparents.first").animate({left:"480px"},{duration:Animation.Speed.Normal,queue:!1}),$(".doublenode.grandparents.second").animate({left:"715px"},{duration:Animation.Speed.Normal,queue:!1}),$(".doublenode.parents.first").animate({left:"480px"},{duration:Animation.Speed.Normal,queue:!1}),$(".ft-row.parents div.connector.first").animate({left:"591px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),$(".ft-row.grandparents div.connector.first").animate({left:"532px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),$(".ft-row.grandparents div.connector.second").animate({left:"767px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})):u=="LeftSide"?(fadeFamilyTreeRightSide(),t=="LeftSide"?(Animation.FirstGrandparents.Fade(),Animation.FirstParents.find(".node.first").fadeOut({duration:Animation.Speed.Slow,queue:!1}),$(".family-tree .grandparents .connector.third").fadeOut({duration:Animation.Speed.Slow,queue:!1})):(Animation.SecondGrandparents.Fade(),Animation.FirstParents.find(".node.second").fadeOut({duration:Animation.Speed.Slow,queue:!1}),$(".family-tree .grandparents .connector.fourth").fadeOut({duration:Animation.Speed.Slow,queue:!1}))):(fadeFamilyTreeLeftSide(),t=="LeftSide"?(Animation.ThirdGrandparents.Fade(),Animation.SecondParents.find(".node.first").fadeOut({duration:Animation.Speed.Slow,queue:!1}),$(".family-tree .grandparents .connector.first").fadeOut({duration:Animation.Speed.Slow,queue:!1})):(Animation.FourthGrandparents.Fade(),Animation.SecondParents.find(".node.second").fadeOut({duration:Animation.Speed.Slow,queue:!1}),$(".family-tree .grandparents .connector.second").fadeOut({duration:Animation.Speed.Slow,queue:!1})),Animation.HowTo.SlideOutToLeft(),$(".doublenode.grandparents.third").animate({left:"0px"},{duration:Animation.Speed.Normal,queue:!1}),$(".doublenode.grandparents.fourth").animate({left:"234px"},{duration:Animation.Speed.Normal,queue:!1}),$(".doublenode.parents.second").animate({left:"0px"},{duration:Animation.Speed.Normal,queue:!1}),$(".ft-row.parents div.connector.second").animate({left:"111px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),$(".ft-row.grandparents div.connector.third").animate({left:"52px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}),$(".ft-row.grandparents div.connector.fourth").animate({left:"286px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}));i.find("p.info").fadeOut({duration:Animation.Speed.Fast,queue:!1});SiblingClickAnimateOtherParent(i,r,u,t);AnimateSiblingNode(i,r)})};Animation.Siblings.AdoptedOrFosterClick=function(){$(".sibling.adopted .details p.link a, .foster-siblings .sibling .details p.link a").click(function(n){var t,i;n.preventDefault();t=$(this).data("side");$.post("/user-page-history/sibling-transition-adopted-click/"+t);i=$(this).closest("div.sibling");Animation.FadeAll.Grandparents();Animation.FadeAll.Parents();Animation.FadeAll.Connectors();AnimateSiblingNode(i,t)})};Animation.Siblings.StepClick=function(){$(".stepsibling .details p.link a").click(function(n){n.preventDefault();var t=$(this).closest("div.sibling"),i=$(this).data("side"),r=$(this).data("sidefrom"),u=t.find("p.info a").data("side");$.post("/user-page-history/sibling-transition-step-click/"+i+"?otherParent="+u);Animation.FadeAll.Parents();Animation.FadeAll.Grandparents();Animation.FadeAll.GrandparentConnectors();Animation.FirstPartner.Fade();Animation.SecondPartner.Fade();i=="RightSide"?r=="RightSide"?fadeFamilyTreeLeftSide():(fadeFamilyTreeRightSide(),Animation.HowTo.SlideOutToRight(),$(".doublenode.parents.first").animate({left:"480px"},{duration:Animation.Speed.Normal,queue:!1}),$(".ft-row.parents div.connector.first").animate({left:"591px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})):r=="LeftSide"?fadeFamilyTreeRightSide():(fadeFamilyTreeLeftSide(),Animation.HowTo.SlideOutToLeft(),$(".doublenode.parents.second").animate({left:"0px"},{duration:Animation.Speed.Normal,queue:!1}),$(".ft-row.parents div.connector.second").animate({left:"111px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing}));t.find("p.info").fadeOut({duration:Animation.Speed.Fast,queue:!1});SiblingClickAnimateOtherParent(t,i,r,u);AnimateSiblingNode(t,i)})};Animation.Siblings.MoveRightGrandparentsAndParentsToLeft=function(){$(".other-parents").stop().hide();var n=Animation.SecondGrandparents.Right()-Animation.FourthGrandparents.Right();Animation.FourthGrandparents.add(Animation.ThirdGrandparents).add(Animation.SecondParents).animate({right:"+="+n+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});$(".family-tree .grandparents .connector.fourth").add(".family-tree .grandparents .connector.third").add(".family-tree .parents .connector.second").animate({right:"+="+(n-2)+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})};Animation.Siblings.MoveLeftGrandparentsAndParentsToRight=function(){$(".other-parents").stop().hide();var n=Animation.ThirdGrandparents.Left()-Animation.FirstGrandparents.Left();Animation.FirstGrandparents.add(Animation.SecondGrandparents).add(Animation.FirstParents).animate({left:"+="+n+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});$(".family-tree .grandparents .connector.first").add(".family-tree .grandparents .connector.second").add(".family-tree .parents .connector.first").animate({left:"+="+(n-2)+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})};Animation.Siblings.MoveGrandparentsAndParentsToCenter=function(n){if($(".other-parents").stop().hide(),n){var t=Animation.ThirdGrandparents.Left()-Animation.FirstGrandparents.Left();Animation.FirstGrandparents.add(Animation.SecondGrandparents).add(Animation.FirstParents).animate({left:"+="+t+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});$(".family-tree .grandparents .connector.first").add(".family-tree .grandparents .connector.second").add(".family-tree .parents .connector.first").animate({left:"+="+(t-2)+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})}};Animation.FromSiblingTransitionFull=function(){Animation.Utilities.FromPageTransition("",255)};Animation.FromSiblingTransitionFullRightSideDisplay=function(){Animation.Utilities.FromPageTransition({},255)};Animation.FromSiblingTransitionFullLeftSideDisplay=function(){Animation.Utilities.FromPageTransition({},255)};Animation.FromSiblingTransitionHalfRightSideWithLeftOtherParentDisplay=function(){var n=$(".ft-row.grandparents .doublenode.third").add(".ft-row.grandparents .connector.third");Animation.Utilities.FromPageTransition(n,255)};Animation.FromSiblingTransitionHalfRightSideWithRightOtherParentDisplay=function(){var n=$(".ft-row.grandparents .doublenode.fourth").add(".ft-row.grandparents .connector.fourth");Animation.Utilities.FromPageTransition(n,255)};Animation.FromSiblingTransitionHalfLeftSideWithLeftOtherParentDisplay=function(){console.log("FromSiblingTransitionHalfLeftSideWithLeftOtherParentDisplay");var n=$(".ft-row.grandparents .doublenode.first").add(".ft-row.grandparents .connector.first");Animation.Utilities.FromPageTransition(n,255)};Animation.FromSiblingTransitionHalfLeftSideWithRightOtherParentDisplay=function(){var n=$(".ft-row.grandparents .doublenode.second").add(".ft-row.grandparents .connector.second");Animation.Utilities.FromPageTransition(n,255)};Animation.FromSiblingTransitionAdoptedLeftSideDisplay=function(){var n=$(".ft-row.grandparents").add(".ft-row.parents").add(".family-tree h1 .displayname.second");Animation.Utilities.FromPageTransition(n,255)};Animation.FromSiblingTransitionAdoptedRightSideDisplay=function(){var n=$(".ft-row.grandparents").add(".ft-row.parents").add(".family-tree h1 .displayname.first");Animation.Utilities.FromPageTransition(n,255)};Animation.FromSiblingTransitionStepRightSideWithLeftOtherParentDisplay=function(){var n=$(".ft-row.grandparents .doublenode.third").add(".ft-row.grandparents .connector.third");Animation.Utilities.FromPageTransition(n,255)};Animation.FromSiblingTransitionStepRightSideWithRightOtherParentDisplay=function(){var n=$(".ft-row.grandparents .doublenode.fourth").add(".ft-row.grandparents .connector.fourth");Animation.Utilities.FromPageTransition(n,255)};Animation.FromSiblingTransitionStepLeftSideWithLeftOtherParentDisplay=function(){var n=$(".ft-row.grandparents .doublenode.first").add(".ft-row.grandparents .connector.first");Animation.Utilities.FromPageTransition(n,255)};Animation.FromSiblingTransitionStepLeftSideWithRightOtherParentDisplay=function(){var n=$(".ft-row.grandparents .doublenode.second").add(".ft-row.grandparents .connector.second");Animation.Utilities.FromPageTransition(n,255)};Animation.OtherRelationships={};$(function(){});Animation.OtherRelationships.Click=function(){$(".other-relationships .partner .details p.link a").off();$(".other-relationships .partner .details p.link a").click(function(n){var u;n.preventDefault();var i=$(this).data("side"),f=$(this).data("sidefrom"),t=i=="LeftSide",r=f=="LeftSide";$.post("/user-page-history/other-relationship-transition-click/"+i);u=$(this).closest("div.partner");t&&r?Animation.OtherRelationships.MoveLeftGrandparentsParentsAndPartnerToRight():t||r?t?(Animation.FirstPartner.Fade(),Animation.FirstParents.Fade(),Animation.FirstGrandparents.Fade(),Animation.SecondGrandparents.Fade(),Animation.FadeAll.ConnectorsLeft()):(Animation.SecondPartner.Fade(),Animation.SecondParents.Fade(),Animation.ThirdGrandparents.Fade(),Animation.FourthGrandparents.Fade(),Animation.FadeAll.ConnectorsRight()):Animation.OtherRelationships.MoveRightGrandparentsParentsAndPartnerToLeft();CommonOtherRelationshipToPartnerTransitions(u,t)})};Animation.OtherRelationships.MoveRightGrandparentsParentsAndPartnerToLeft=function(){$(".other-fathers, .other-mothers, .other-parents").stop().hide();var n=Animation.SecondGrandparents.Right()-Animation.FourthGrandparents.Right(),t=Animation.FirstPartner.Right()-Animation.SecondPartner.Right();Animation.FirstPartner.Fade();Animation.FirstParents.Fade();Animation.FirstGrandparents.Fade();Animation.SecondGrandparents.Fade();Animation.FadeAll.ConnectorsLeft();Animation.FourthGrandparents.add(Animation.ThirdGrandparents).add(Animation.SecondParents).animate({right:"+="+n+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.SecondPartner.animate({right:"+="+t+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});$(".family-tree .grandparents .connector.fourth").add(".family-tree .grandparents .connector.third").add(".family-tree .parents .connector.second").animate({right:"+="+(n-2)+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})};Animation.OtherRelationships.MoveLeftGrandparentsParentsAndPartnerToRight=function(){$(".other-fathers, .other-mothers").stop().hide();var n=Animation.ThirdGrandparents.Left()-Animation.FirstGrandparents.Left(),t=Animation.SecondPartner.Left()-Animation.FirstPartner.Left();Animation.SecondPartner.Fade();Animation.SecondParents.Fade();Animation.ThirdGrandparents.Fade();Animation.FourthGrandparents.Fade();Animation.FadeAll.ConnectorsRight();Animation.FirstGrandparents.add(Animation.SecondGrandparents).add(Animation.FirstParents).animate({left:"+="+n+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});Animation.FirstPartner.animate({left:"+="+t+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing});$(".family-tree .grandparents .connector.first").add(".family-tree .grandparents .connector.second").add(".family-tree .parents .connector.first").animate({left:"+="+(n-2)+"px"},{duration:Animation.Speed.Normal,queue:!1,easing:Animation.Easing})};Animation.FromOtherRelationshipTransitionLeftSideDisplay=function(){var n=$(".ft-row.grandparents .doublenode.first").add(".ft-row.grandparents .doublenode.second").add(".ft-row.grandparents .connector.first").add(".ft-row.grandparents .connector.second").add(".ft-row.parents .doublenode.first").add(".ft-row.parents .connector.first");Animation.Utilities.FromPageTransition(n,255)};Animation.FromOtherRelationshipTransitionRightSideDisplay=function(){var n=$(".ft-row.grandparents .doublenode.third").add(".ft-row.grandparents .doublenode.fourth").add(".ft-row.grandparents .connector.third").add(".ft-row.grandparents .connector.fourth").add(".ft-row.parents .doublenode.second").add(".ft-row.parents .connector.second");Animation.Utilities.FromPageTransition(n,255)}