(function(){var a=window.YDom,c=a.setStyle; function b(e,d){if(e){this.contextEl=e }this.width=(d&&d.width)?d.width:75; this.isFlexHeight=(d&&d.isFlexHeight); if(d&&d.relative){this.relative=true }else{this.relative=false }this.fixed=!!(d&&d.fixed); this.additionalClassName=(d&&d.additionalClassName)?d.additionalClassName:""; this.overlay=null }b.prototype={getContextEl:function(){return this.contextEl },setContextEl:function(d){this.contextEl=d },resetFixedOverlayPosition:function(f){var e=a.getXY(this.contextEl),d=f?f:0; if(e&&e.length){a.setStyle(this.overlay,"left",e[0]+"px"); a.setStyle(this.overlay,"top",e[1]-d/2+a.getViewportHeight()/2+"px") }},hide:function(){var d=this.overlay,e; if(d){e=d.parentNode; if(e){e.removeChild(d) }}},show:function(i){i=i||this.contextEl; var f=this.overlay,l=i.offsetHeight,g=i.offsetWidth,j=a.getXY(i),d=this.width,k=(l'); if(!this.relative){h.appendChild(f) }else{i.appendChild(f) }this.overlay=f }if(f.parentNode!==h){if(!this.relative){h.appendChild(f) }else{i.appendChild(f) }}c(f,"height",(this.isFlexHeight)?"100%":k+"px"); c(f,"width",e+"px"); if(!this.relative){if(!this.fixed){a.setXY(f,j) }else{c(f,"position","fixed"); this.resetFixedOverlayPosition(k) }}else{c(f,"left","0"); c(f,"top","0") }c(f,"visibility","visible") }}; LI.ProcessingOverlay=b })();var a; (function(){var i=500,f=400,d="lui-panel-body",c={zIndex:1007,underlay:"none",close:false,draggable:false,visible:false},h="panel-left",e="miniprofile-container",g="data-li-miniprofile-id"; function b(l,j,k){this.url=l.className.split(" ")[1]; this.id=l.id; this.node=l; this.panel=j; this.manager=k }b.prototype={addListeners:function(){LI.Controls.parseFragment(this.panel.getDomNode()); YEvent.on("miniprofile-close","click",this.hide,this,true) },calculatePosition:function(l){var m=this.node,j=YDom.getRegion(m),q=YDom.getViewportWidth(),n=YDom.getViewportHeight(),u=this.panel.getDomNode(),o=YDom.getRegion(u),k=o.width||0,p=o.height||0,s,r,t; if(l===true){if((q-j.right)>k){s=j.right+3; r=j.top-10; t=false }else{s=j.left-k; r=j.top-10; t=true }}else{s=j.left-(k/2.4); r=j.bottom+2; t=false }if(window.self!=window.top){s=(s<0)?0:s; if(r+p>n){r=n-p-20 }}return{x:s,y:r,flipped:t} },getID:function(){return this.id },hide:function(){var j=this.panel; this.removeListeners(); j.setBody(""); j.clearMiniProfileReference(); j.hide() },removeListeners:function(){YEvent.removeListener("miniprofile-close","click",this.hide) },setContent:function(j){this.content=j },show:function(){var o=this.content,n=this.node,l=this.manager,j=this.panel,m,k=n.getAttribute("data-li-getjs"); if(!o&&o!==false){if(k){YAHOO.util.Get.script(k) }l.requestContent(this.url,{success:function(p){if(!LI.isFullPage(p)){this.setContent(p); this.show() }},scope:this}); return }if(o===false){return }j.setBody(o); this.addListeners(); if(n.getAttribute("data-li-panelclass")){j.setClass(n.getAttribute("data-li-panelclass")); m=this.calculatePosition(false) }else{m=this.calculatePosition(true) }j.setMiniProfileReference(this.id); j.show(); j.setPosition(m.x,m.y,m.flipped); l.onShowMiniProfileEvent.fire() },clearCachedData:function(){var j=this.manager; j.removeFromCache(this.url) }}; window.MiniProfileManager=(function(){var E={},w={},B={},r=false,u=null,A=null,k,t=false,n=false,s=new YAHOO.util.CustomEvent("onShowMiniProfile"),F=(YAHOO&&YAHOO.widget&&typeof YAHOO.widget.Overlay==="function")?true:false; if(!F){var m; if(!(LI&&LI.UrlPackage&&LI.UrlPackage.containerCore)){throw new Error("The package url for container-core does not exist.") }m=LI.UrlPackage.containerCore; YAHOO.util.Get.script(m,{onSuccess:function(){F=true },onFailure:function(){throw new Error("Failed to load dependency: "+m) }}) }function l(){if(!u&&r&&F){A=YDom.get(d); if(!A){A=document.createElement("div"); document.body.appendChild(A); A.id=d }u=new YAHOO.widget.Overlay(A,c); u.render(document.body); YEvent.on(A,"mouseover",x); YEvent.on(A,"mouseout",G) }}k={setBody:function(I){l(); if(A){A.innerHTML=I }},setPosition:function(I,K,J){l(); if(!u){return }u.moveTo(I,K); if(!J){YDom.removeClass(A,h) }else{YDom.addClass(A,h) }},setClass:function(I){l(); if(!u){return }YDom.addClass(A,I); u.hideEvent.subscribe(function(){YDom.removeClass(A,I); u.hideEvent.unsubscribe() }) },show:function(){l(); if(u){u.show() }},hide:function(){l(); if(u){u.hide() }},getDomNode:function(){l(); return A },setMiniProfileReference:function(I){l(); if(A){A.setAttribute(g,I) }},clearMiniProfileReference:function(){l(); if(A){A.setAttribute(g,"") }}}; var q={requestShow:D,requestHide:o,requestContent:y,onShowMiniProfileEvent:s,removeFromCache:v}; YEvent.onDOMReady(function(){r=true }); function H(J,I){E[J]=I }function j(I){return E[I] }function p(){if(!n&&!t){k.hide() }}function D(I){n=true; B[I.getID()]=window.setTimeout(function(){I.show() },i) }function o(){n=false; window.setTimeout(p,f) }function z(K,J){if(K&&K.success){var I=K.scope||window; K.success.call(I,J) }}function y(I,J){if(!YAHOO.lang.isUndefined(w[I])){z(J,w[I]); return }YAHOO.util.Connect.asyncRequest("GET",I,{success:function(L){var K=L.responseText||false; w[I]=K; z(J,K) },failure:function(K){w[I]=false }}) }function v(I){delete w[I] }function x(){t=true }function G(I){var L=YEvent.getRelatedTarget(I); var K=YDom.get(d); if(L==K){return }var J=L; if(YDom.isAncestor(K,J)){return }t=false; window.setTimeout(p,f) }function C(){var I=YDom.get(d),J; if(!I){return null }J=I.getAttribute(g); if(J){return j(J) }return null }YEvent.on(document,"mouseover",function(J){var L=YEvent.getTarget(J),K,I=C(); for(miniProfileId in B){if(YAHOO.lang.hasOwnProperty(E,miniProfileId)){window.clearTimeout(B[miniProfileId]); delete B[miniProfileId] }}while(L){if(YDom.hasClass(L,e)){if(!L.id){L.id=YDom.generateId() }K=j(L.id); if(!K){K=new b(L,k,q); H(L.id,K) }if(!u||!u.cfg.getProperty("visible")||!I||I.id!==K.id){D(K) }return }L=L.parentNode }o() }); return{init:function(){},getCurrentMiniProfile:C,onShowMiniProfileEvent:s} })(); window.MiniProfileManager.init() })(); window.miniProfile=window.MiniProfileManager;LI.define("FollowToggle"); LI.FollowToggle=function(c,b){c=$(c); b=b||{}; b={linkContainer$$:b.linkContainer$$||"div.select-follow-action",followClass:b.followClass||"following-action",unfollowClass:b.unfollowClass||"following-active",selectedClass:b.selectedClass||"selected",loadingClass:b.loadingClass||"loading"}; var a=function(e){var f=$(e.target).closest("a"),d=f.closest(b.linkContainer$$),g; e.preventDefault(); if(d.hasClass(b.loadingClass)){return false }g=$("."+(f.hasClass(b.followClass)?b.unfollowClass:b.followClass),d); d.addClass(b.loadingClass); LI.asyncRequest("POST",f.get(0).getAttribute("href"),{success:function(){f.removeClass("selected"); g.addClass("selected"); d.removeClass(b.loadingClass) },failure:function(){d.removeClass(b.loadingClass) }}) }; $(c).on("click",b.linkContainer$$+" a",a) };$(function(){var d=$("#following-container"); function a(h){var g=$(h.target); if(g.closest(".see-more",d).length){h.preventDefault(); f(g) }else{if(g.closest(".see-less",d).length){h.preventDefault(); b(g) }else{if(g.closest(".edit-tools-module",d).length){h.preventDefault(); $(".following-container").slideToggle("slow"); d.toggleClass("expanded-view") }}}}function c(g){$(".following-container").slideDown("slow") }function b(g){g.closest("ul").find(".see-less").addClass("hidden"); g.closest("ul").find(".hidden-groups").addClass("hidden"); g.closest("ul").find(".see-more").removeClass("hidden") }function f(g){g.closest("ul").find(".see-more").addClass("hidden"); g.closest("ul").find(".hidden-groups").removeClass("hidden"); g.closest("ul").find(".see-less").removeClass("hidden") }(function e(){var g=$.fn.Profile; if(d.length){d.on("click",a); new LI.FollowToggle(d) }g.bind(g.EVENTS.SWITCH_VIEW,c) }()) });$(function(){var g,o,d,t,D,A,n,y,b=0,C="INITIAL",p="RECEIVED",i="GIVEN",c="SUBJECT",e="POSITION",s="EDUCATION",B="view-more",k="view-less",a="loading"; function l(F,E){dust.render("references",F,function(H,G){var I=g.find(".endorsements-container"); I.html(G); x(); if(I.length){LI.Controls.parseFragment(I[0]) }}) }function f(F,E){dust.render("recommendations",F,function(H,G){var I=g.find(".endorsements-container"); I.html(G); x() }) }function x(){var E=t; g.removeClass([a,B,k].join(" ")); if(C===c){return false }if(o){if(A>E){g.addClass(B) }else{if(A>D){g.addClass(k) }}}else{if(d){if(n>E){g.addClass(B) }else{if(n>D){g.addClass(k) }}}}}function h(K,F,I){var H={id:g.data("viewee-id"),count:t}; if(y){var E=LI.parseQueryString(y),G=E.authType,J=E.authToken; if(G&&J){H.authType=G; H.authToken=J }}if(F===s){H.eID=I }else{H.pID=I }$.ajax({url:(z()?"/profile/my-profile-endorsements":"/profile/profile-v2-endorsements"),data:H,dataType:"text",success:q,error:r}) }function q(I,E,F){var G=$.parseJSON(I.replace(/^[^{]*/,"")),H=G.content||{}; LI.Profile2.Render.getFizzyHeaderConcatTemplates(F,function(){if((C===p)||(C===c)){l(H) }else{if(C===i){f(H) }}}) }function r(F,E){}function z(){return !!(LI.Profile&&LI.Profile.data&&LI.Profile.data.isMyProfile) }function j(G){var E=$(G.target),F; if(E.closest(".listing").length){G.preventDefault(); g.addClass(a); $(".profile-endorsements").removeClass("view-given").addClass("view-received"); m(E.closest(".listing")) }else{if(E.closest(".all-received").length){G.preventDefault(); $(".profile-endorsements").removeClass("view-given").addClass("view-received"); C=p; o=1; d=0; t=5; b=0; g.data("count-default",t); g.addClass(a); if(A0){$(".profile-endorsements").addClass("view-received"); C=p; o=1; d=0; if(A>t){g.addClass(B) }}else{$(".profile-endorsements").addClass("view-given"); C=i; o=0; d=1; if(n>t){g.addClass(B) }}x() }}}function v(){g=$("#endorsements"); o=$(".view-received").length; d=$(".view-given").length; t=g.data("default-count")||5; D=t; A=g.data("total-references"); n=g.data("total-recommendations"); y=g.data("authinfo") }$.fn.ProfileEndorsements={init:u}; u() });(function(b){var c=window.jQuery||b("jquery"),a=LIModules.imports("BaseControl"); var d=a.extend(function(){var i=["id","mode","vpa","authType","authToken"],h="locale=",e="trk=",g="",f=window.location.search; return{beforeInit:function(){g=e+this._config.trkParam; f=f.split("?"); f=(f.length>1)?f[1]:f[0] },afterInit:function(){var k=c(".secondary-profile",this._$el),j=this; k.each(function(n){var l=c(this),m=j.getCleanUrlParamsArray(); m=j.addLocaleAndTrackingParams(m,l.attr("id")); l.attr("href",window.location.pathname+"?"+m.join("&")) }) },getCleanUrlParamsArray:function(){var k=this.getUrlParamsArray(),j=[]; c(k).each(function(l,n){var m=n.split("="); if(m[0]&&m[1]&&i.indexOf(m[0])>-1){j.push(n) }}); return j },getUrlParamsArray:function(){f=this._config.testUrl||f; return f.split("&") },addLocaleAndTrackingParams:function(j,k){j.push(h+k); j.push(g); return j }} }); LIModules.exports("ProfileReload",d) }(window.require));LI.define("RemoveProfile"); LI.RemoveProfile=LI.BaseControl.extend(function(){var d="remove-profile-by-locale",h=$("#removeSecProfileDialog .inline-language"),f=$("#removeSecondaryProfileForm"),g=f.find("input[name=secondaryProfileLocale], input[name=locale]"),e=f.find("input[name=isCurrentProfile]"),c,b,a; return{attachEventListeners:function(){this._$el.on("click",".remove-profile-by-locale",this._onRemoveProfileClick) },_onRemoveProfileClick:function(i){c=$(i.target).siblings(".secondary-profile"); this._updateConfirmationDialog(); this._updateRemoveProfileForm(); this._updateCurrentProfileFlag() },_updateConfirmationDialog:function(){b=c.text(); h.text(b) },_updateRemoveProfileForm:function(){a=c.attr("id"); g.val(a) },_updateCurrentProfileFlag:function(){var i=c.closest("#language-selector li").hasClass("current"); e.val(i) },afterRemoveProfile:function(i,j){if(e.val()==="true"){document.location.href=i.redirectUrl }else{$("#language-selector #"+a).closest("li").remove(); LI.injectAlert(i.successMessage,"success",null,1,1); this._updateRemoveFormTimestamp(j) }},_updateRemoveFormTimestamp:function(j){var i=j.my_profile_locale.secondary_profile_removal.html.timestamp.value; f.find("input[name=timestamp]").val(i) }} });$.fn.MiniProfile=function(c,b,a){this.id=c; this.$panel=b; this.content=""; this.manager=a; this.followToggler="" }; $.extend($.fn.MiniProfile.prototype,{calculatePosition:function(y){var j=this,f=j.$panel,g=f.find(".new-miniprofile-content"),p=$(window).height(),x=$(window).width(),h=$(document).scrollTop(),b=$(document).scrollLeft(),m={},i=0,w=0,e=0,c=0,k,v,u={},o=j.manager.getDefaultShownBelow(),l=false,n=false,r=g.hasClass("company-miniprofile-content"),s=80,d=80,q=r?-70:-115,a=r?15:10,t=10; $("img",y).each(function(z){y=$(this); return false }); i=y.innerHeight(); w=y.innerWidth(); f.css({"visibility":"hidden"}).removeClass("hidden"); e=g.outerHeight(); c=g.outerWidth(); f.addClass("hidden").css({"visibility":"visible"}); k={x:y.offset().left+(w/2),y:y.offset().top}; v={x:y.offset().left+(w/2),y:y.offset().top+i}; if(v.y+eh){l=true }if(o&&n){m.bottom=true }else{if(!o&&l){m.top=true }else{if(n){m.bottom=true }else{m.top=true }}}if(k.x+c+qb){m.left=true }else{m.right=true }}if(m.top){u.y=k.y-e-a }if(m.bottom){u.y=v.y+a }if(m.left){u.x=k.x-c+d }if(m.right){u.x=k.x+q-t }return{x:u.x,y:u.y,directions:m} },id:function(){return this.id },getContent:function(){return this.content },show:function(a){var b=this; b.$node=a; b.manager.loadProfile(a,{success:function(f){var d=b.manager.config,e=b.manager,h=b.$panel,g=e.$lastSelectedNode,c; if(f){b.content=f; if(e.areDifferentLinkNodes(g,a)){return }h.html(f); LI.Controls.parseFragment(h.get(0)); c=h.find(".company-miniprofile-content"); if(c.length){if(!b.followToggler){LI.Events.bind("follow-toggler:follow:success follow-toggler:unfollow:success",_.bind(b.afterFollowingCompany,b)) }b.followToggler=new LI.scripts.FollowToggler(c,{toggleContainerClass:"follow-actions-container",selectedClass:"current",companyId:b.id}) }var i=b.calculatePosition(a); if(i){h.css({"visibility":"hidden"}).removeClass("hidden").offset({top:i.y,left:i.x}).addClass("hidden").css({"visibility":"visible"}); b.setPointer(i.directions); b.manager.showPanel(h) }}}}); return b },afterFollowingCompany:function(c,a){if(this.id===a._config.companyId){var b=$("
").append(a._$el.clone()).html(); this.manager.updateMiniProfileInCache(this.$node,b) }},setPointer:function(f){var e=this.$panel,d=[],b,c; d=[]; for(var a in f){d.push(a) }e.find(".triangle").removeClass("top bottom left right").addClass(d.join(" ")); if(e.find(".miniprofile-shared-connections").length){b="triangle-bottom"; c="triangle-bottom-grey" }else{b="triangle-bottom-grey"; c="triangle-bottom" }e.find("."+b).removeClass(b).addClass(c) }}); $.fn.MiniProfileManager=(function(b){var a={}; $.extend(a,{config:b,profileRegistry:{},defaultShownBelow:false,$panel:null,showPanelTimer:null,currentProfileId:null,mouseInsidePanel:false,mouseInsideLink:false,$lastSelectedNode:null,$lastMouseOverNode:null,isHiding:null,initPanel:function(){var d=this,c=d.config,e; if(!d.$panel){e=$("
"); d.$panel=e; e.attr("id",d.config.PANEL_ID_NAME); $("body").append(e); e.css("z-index",d.config.zIndex); e.mouseenter(function(){d.mouseInsidePanel=true }); e.mouseleave(function(){d.mouseInsidePanel=false }) }},showPanel:function(c){c.removeClass("hidden") },hidePanel:function(c){c.addClass("hidden") },isPanelHidden:function(c){return c.hasClass("hidden") },setDefaultShownBelow:function(c){this.defaultShownBelow=c },getDefaultShownBelow:function(){return this.defaultShownBelow },delayShowPanel:function(d,e){var c=this; c.showPanelTimer=setTimeout(function(){if(c.mouseInsideLink){d.show(e) }c.showPanelTimer=null },b.SHOW_PANEL_DELAY) },delayHidePanel:function(g,c){var e=this,d=e.config,f; if(e.mouseInsidePanel){return }e.isHiding=true; setTimeout(function(){var h=e.areDifferentLinkNodes(c,e.$lastSelectedNode); if((!e.mouseInsidePanel&&!e.mouseInsideLink)||(e.mouseInsideLink&&h)){e.hidePanel(g) }if(e.isHiding){e.isHiding=false; f=e.registerMiniProfile(e.$lastSelectedNode); if(h){e.delayShowPanel(f,e.$lastSelectedNode) }}},d.HIDE_PANEL_DELAY) },loadProfile:function(d,n){var l=this,g=l.config,f="throw /*LI:DBE*/ 1;",e=d.attr(g.MINIPROFILE_JS_ATTRIBUTE_NAME),o=d.attr(g.MINIPROFILE_TEMPLATE_ATTRIBUTE_NAME)||"tl/shared/profile/mini_profile_shell",c=d.attr(g.MINIPROFILE_URL_ATTRIBUTE_NAME),j=(typeof window.console!=="undefined")?window.console:{log:$.noop()},h,m,k; if(c){m=l.getProfileContent(c); if(m){n.success(m); return }}if(e){$.getScript(e) }var i=function(p){if(p){n.success(p); $("body").trigger(g.NEW_CONTENT_EVENT) }}; $.ajax({type:"GET",url:c,headers:{"X-IsAJAXForm":1},data:"",dataType:"text",success:function(u,p,q){var s,r=false,t=LI.Profile2,w=q.getResponseHeader("content-type")||""; if(w.indexOf("html")!==-1){n.success(u) }else{if(t&&t.Render){t.Render.render({template:o,response:q,success:i}) }else{if(o&&window.dust){try{u=u.replace(f,""); s=$.parseJSON(u); dust.render(o,s.content,function(y,x){if(y){return }i(x) }) }catch(v){}}}}},error:function(p,r,q){}}) },getProfileContent:function(c){var d=this.profileRegistry[c]; if(!d){return null }return d.getContent() },getMiniProfile:function(e){var d=this,c=e.attr(b.MINIPROFILE_URL_ATTRIBUTE_NAME); return d.profileRegistry[c] },registerMiniProfile:function(h){var f=this,e=f.config,g=f.getMiniProfile(h),c,d; c=h.attr(e.MINIPROFILE_ID_ATTRIBUTE_NAME); if(!c){c="LI-"+Math.floor(Math.random()*9999999); h.attr(e.MINIPROFILE_ID_ATTRIBUTE_NAME,c) }if(!g){d=h.attr(e.MINIPROFILE_URL_ATTRIBUTE_NAME); g=new $.fn.MiniProfile(c,f.$panel,f); f.profileRegistry[d]=g }return g },updateMiniProfileInCache:function(e,d){var c=e.attr(b.MINIPROFILE_URL_ATTRIBUTE_NAME); this.profileRegistry[c].content=d },areDifferentLinkNodes:function(e,d){var f=this,c=f.config; return(!e||!d||e.attr(c.MINIPROFILE_ID_ATTRIBUTE_NAME)!==d.attr(c.MINIPROFILE_ID_ATTRIBUTE_NAME)) },handleMouseEvent:function(k){var j=this,f=j.config,e=$(k.target),g,i,c,h,d; if(!j.$panel){j.initPanel() }j.$lastMouseOverNode=e; g=e.closest("."+f.MINIPROFILE_SEARCH_CLASS_NAME); if(g.length){j.mouseInsideLink=true; h=j.registerMiniProfile(g); if(!j.currentProfileId||j.currentProfileId!==h.id){j.currentProfileId=h.id; if(j.showPanelTimer){d=j.showPanelTimer; window.clearTimeout(d); d=null }j.$lastSelectedNode=g; if(j.isHiding){}else{j.isHiding=false; j.delayShowPanel(h,g) }}}else{j.mouseInsideLink=false; if(j.mouseInsidePanel){return }j.currentProfileId=null; if(!j.isPanelHidden(j.$panel)&&j.$panel.find("."+f.MINIPROFILE_CONTENT_CLASS_NAME).length){j.delayHidePanel(j.$panel,j.$lastSelectedNode) }}}}); return a }({SHOW_PANEL_DELAY:500,HIDE_PANEL_DELAY:400,PANEL_ID_NAME:"lui-mini-profile-body",PANEL_ZINDEX:1007,MINIPROFILE_SEARCH_CLASS_NAME:"new-miniprofile-container",MINIPROFILE_CONTENT_CLASS_NAME:"new-miniprofile-content",MINIPROFILE_ID_ATTRIBUTE_NAME:"data-li-miniprofile-id",MINIPROFILE_JS_ATTRIBUTE_NAME:"data-li-getjs",MINIPROFILE_TEMPLATE_ATTRIBUTE_NAME:"data-li-tl",MINIPROFILE_URL_ATTRIBUTE_NAME:"data-li-url",NEW_CONTENT_EVENT:"show-mini-profile"})); $(function(){var b=$(document); function a(d){$.fn.MiniProfileManager.handleMouseEvent(d) }(function c(){if(b.on){b.on("mouseover",a) }}()) });$(function(){var h="background",e; function d(i,j){if(j.prop("checked")){i.addClass("current-position") }else{i.removeClass("current-position") }}function g(i,j){if(j.prop("checked")){i.find("#headline-input-wrapper").show() }else{i.find("#headline-input-wrapper").hide() }}function a(k){var l=k.find("input[name=title]"),i=k.find("input[name=companyName]"),j=k.find("input[name=updatedHeadline]"),m; if(j!=null){j.val(""); if(l.val()!=""&&i.val()!=""){newHeadlineValue=k.find(".experience_headline_placeholder_text").text(); newHeadlineValue=newHeadlineValue.replace("TITLE-PLACEHOLDER",l.val()); newHeadlineValue=newHeadlineValue.replace("COMPANY-PLACEHOLDER",i.val()); j.val(newHeadlineValue) }}}function c(){$(".experience-still-here-checkbox").each(function(){var i=$(this).closest(".standard-form"); d(i,$(this)) }); $(".experience-headline-checkbox").each(function(){var i=$(this).closest(".standard-form"); g(i,$(this)) }) }function b(k){var i=$(k.target),j; if(i.hasClass("experience-still-here-checkbox")){j=i.closest(".standard-form"); d(j,i); a(j) }else{if(i.hasClass("experience-headline-checkbox")){j=i.closest(".standard-form"); g(j,i) }}}function f(){var i; i=e&&e.length; if(!i){e=$("#"+h); e.delegate(".experience-still-here-checkbox, .experience-headline-checkbox","click",b); c() }}$.fn.ProfileEditPosition={init:f,resetForms:c}; f() });$(function(){var e="background",c; function b(){$("select[name=schoolDegree-select]").each(function(){var g=$(this),f=g.closest(".standard-form"); if(g.val()=="other"){f.find("input[name=schoolDegree]").removeClass("hide") }}) }function a(i){var g=$(i.target),h=g.closest(".standard-form").find("input[name=schoolDegree]"),f=$(this).val(); if(f=="none"){h.addClass("hide"); h.val("") }else{if(f=="other"){h.val(""); h.removeClass("hide") }else{h.addClass("hide"); h.val(f) }}}function d(){var f; f=c&&c.length; if(!f){c=$("#"+e); c.delegate("#schoolDegree-editEducationForm-select","change",a); b() }}$.fn.ProfileEditEducation={init:d,resetForms:b}; d() });LI.define("Profile.LifeSpanParam"); LI.Profile.LifeSpanParam=function(c,a){a=a||{}; var e,b,d; if(!c){throw"Input element required!" }if(!a.doesNotExpireCheckboxName||!a.endDateSelector||!a.noEndDateSelector){throw"selectors required!" }e=$(c).find("input[name='"+a.doesNotExpireCheckboxName+"']"); function f(){b=b||$(c).find($(a.endDateSelector)); d=d||$(c).find($(a.noEndDateSelector)); if(e.prop("checked")){b.addClass("hide"); d.removeClass("hide") }else{b.removeClass("hide"); d.addClass("hide") }}e.on("click",f) };LI.define("Profile.GELifeSpanParam"); LI.Profile.GELifeSpanParam=function(d,b){b=b||{}; var f,c,e; function g(){c.hide(); e.show() }function a(){c.show(); e.hide() }if(!d){throw"Input element required!" }if(!b.doesNotExpireCheckboxName||!b.endDateSelector||!b.noEndDateSelector){throw"selectors required!" }f=$("#"+b.doesNotExpireCheckboxName); c=$("#"+b.endDateSelector); e=$("#"+b.noEndDateSelector); if(f.is(":checked")){g() }else{a() }f.on("click",function(i){var h=i.currentTarget; if(h){if(h.checked){g() }else{a() }}}) };var imEditor={clearEntry:function(d){YEvent.preventDefault(d); var b=YEvent.getTarget(d); if(!b){return }var a=YDom.getPreviousSibling(b); if(a){a.value=""; LI.fireEvent(a,"blur") }var c=b.parentNode.getElementsByTagName("select")[0]; if(c){c.value="" }}}; var urlEditor={init:function(){if(!document.getElementById||!document.getElementsByTagName){return }var g=document.getElementById("urleditor"); var d=YDom.getElementsByClassName("urltitle","input",g); for(var b=0; b .progress-indicator",f,true); if(c&&!c.style.height){c.style.height=f.offsetHeight+"px" }c.style.display="block"; YDom.addClass(f,LI.Sortable.Constants.IS_BEING_DRAGGED_CLASS); b.innerHTML=f.innerHTML.replace(/id="(.*?)"/,'id="$1_0"').replace(//,""); YDom.addClass(b,LI.Sortable.Constants.RESUME_CLASS); YDom.addClass(b,LI.Sortable.Constants.SORTABLE_CLASS); for(var d=0,g=YDom.get(f).className.split(" "),m=g.length; d .progress-indicator",c,true); var o=false; var k=[]; for(var j=0,b=Y$("."+LI.Sortable.createGroupIdentifier(this.groupName)),l=b.length; jthis.lastY){this.goingUp=false }}this.lastY=b },onDragOver:function(c,d){var b=this.getEl(); var a=YDom.get(d); if(this.goingUp){a.parentNode.insertBefore(b,a) }else{a.parentNode.insertBefore(b,a.nextSibling) }YAHOO.util.DragDropMgr.refreshCache() }});LI.define("Profile"); LI.Profile.VariableSizeListParams=function(a,b){if(!a){return }b=b||{}; b={paramContainerSelector:b.paramContainerSelector||"li",addButtonSelector:b.addButtonSelector||"a.add",removeButtonSelector:b.removeButtonSelector||"a.remove",maxNumberOfParams:b.maxNumberOfParams||10,classesToRemoveOnClone:b.classesToRemoveOnClone||[],suggestedClassName:b.suggestedClassName||null,controls:b.controls||{}}; var j=Y$(b.paramContainerSelector,a,false); var p=j.length; var e=p; if(p==0){return }if(YDom.hasClass(a,"min")){p=0 }for(var c=0,f=j.length; c]*>([\S\s]*?)<\/script>/g,""); s=s.replace(/(id|name|for)(="{0,1}.+?)\d+(.*?"{0,1})/g,"$1$2"+v+"$3"); x.innerHTML=s; var u=Y$("select,input",x,false); k(u); var t=Y$("span.error",x,true); if(t){t.innerHTML="" }return x }function k(s){for(var r=0,q=s.length; r]*>([\S\s]*?)<\/script>/g,""); r=r.replace(/(id|name|for)(="{0,1}.+?)\d+(.*?"{0,1})/g,"$1$2"+v+"$3"); w.innerHTML=r; var x=Y$("select,input",w,false); l(x); var z=Y$(b.fieldToResetSelector,w,false); e(z); var t=Y$("span.error",w,true); if(t){t.innerHTML="" }return w }function l(t){for(var s=0,r=t.length; s