(function(A){A.fn.tab=function(C,B){if(typeof C==="object"){B=C}B=A.extend({defaultOpen:(C&&typeof C==="number"&&C>0)?--C:0,tabKeyword:"tab",tabHiddenClass:"tab-hidden",tabListClass:"tab-list",tabActiveClass:"tab-active",tabEvent:"click",timer:0,animateUserAction:true,paginate:false,cloneHeading:false,fx:{change:"standard",duration:"normal"}},B||{});return this.each(function(){var E=null;var M=A(this).find("."+B.tabKeyword);var H=A("<ul>");H.addClass(B.tabListClass);if(B.paginate===true){var D=A('<li class="'+B.tabKeyword+"-paginate "+B.tabKeyword+'-back">Back</li>').bind(B.tabEvent,function(O){clearInterval(I);F(-1,O)});var K=A('<li class="'+B.tabKeyword+"-paginate "+B.tabKeyword+'-forward">Forward</li>').bind(B.tabEvent,function(O){clearInterval(I);F(1,O)});H.append(D)}var N=[];M.each(function(){var T=A(this);var R=A('<li id="'+B.tabKeyword+"-"+T.attr("id")+'"><a href="#'+T.attr("id")+'">'+T.html()+"</a></li>");R.find("a").bind(B.tabEvent,function(V){clearInterval(I);F(this,V)});H.append(R);var S=A("<div>");var Q=T.get()[0];if(B.cloneHeading===true){var U=A(T).clone().attr("id",function(){return this.id+"-tab-heading"});S.append(U)}while(Q.nextSibling&&Q.nextSibling.nodeName!==Q.nodeName){S.append(A(Q.nextSibling))}var O=T.attr("id");T.remove();try{S.attr("id",O).addClass(B.tabKeyword);N.push(S)}catch(P){console.log("jQuery.tab: You probably did not specify IDs on your heading elements: "+P)}});if(B.paginate===true){H.append(K)}A(this).append(H);for(var G=0,L=N.length;G<L;G++){if(B.defaultOpen!==G){N[G].addClass(B.tabHiddenClass)}A(this).append(N[G])}H.find("li[id*="+B.tabKeyword+"-]").each(function(O){if(O===B.defaultOpen){E=MAGNET.dom.storage.activateElement(A(this).get()[0],E,B.tabActiveClass)}});var I=null;if(B.timer>0){I=setInterval(function(){F(1)},B.timer*1000)}var F=function(R,V){if(typeof R==="number"){var O=H.find("li."+B.tabActiveClass).eq(0);switch(R){case -1:R=A(O).prev().find("a").attr("href");if(typeof R==="undefined"){R=A(H).find("li[id*="+B.tabKeyword+"-]").filter(":last").find("a").attr("href")}break;case 1:R=A(O).next().find("a").attr("href");if(typeof R==="undefined"){R=A(H).find("li[id*="+B.tabKeyword+"-]").filter(":first").find("a").attr("href")}break;default:console.log("jQuery.tab: theLink is a number, but it is not -1 or 1, which are the only two allowed values.");break}}var T=R.toString().split("#");var U=T[1];var X=A("#"+U);var S=E.toString().split("#")[1];if(J.hasOwnProperty(B.fx.change)){if(!V||(V&&B.animateUserAction===true)){J[B.fx.change](S,X)}else{J.standard(S,X)}}else{J.standard(S,X)}var W=null;H.find("li[id*="+B.tabKeyword+"-]").each(function(Y,Z){if(A(Z).hasClass(B.tabActiveClass)){W=Z}});MAGNET.dom.storage.deactivateElement(W,E,B.tabActiveClass);var Q=B.tabKeyword+"-"+X.attr("id");var P=document.getElementById(Q);E=MAGNET.dom.storage.activateElement(P,E,B.tabActiveClass);if(V){V.preventDefault();V.stopPropagation()}};var J={standard:function(O,P){A("div."+B.tabKeyword).attr("style","");A("#"+O).addClass(B.tabHiddenClass);P.removeClass(B.tabHiddenClass)},crossfade:function(O,P){A("#"+O).animate({opacity:0},B.fx.duration,function(){A(this).addClass(B.tabHiddenClass)});P.animate({opacity:1},B.fx.duration,function(){A(this).removeClass(B.tabHiddenClass)})},textfade:function(P,Q){var O=["rubric","feature-header","feature-blurb-text","byline"];A("#"+P).fadeOut(B.fx.duration,function(){A(this).addClass(B.tabHiddenClass);jQuery.each(O,function(R,S){if(A("#"+P+" .rotator-content ."+O[R]).length>0){A("#"+P+" .rotator-content ."+O[R]).css("display","none")}})});Q.fadeIn(B.fx.duration,function(){A(this).removeClass(B.tabHiddenClass);var R=0;A("#"+Q.attr("id")+" .rotator-content").fadeIn(B.fx.duration,function(){jQuery.each(O,function(S,T){if(A("#"+Q.attr("id")+" .rotator-content ."+O[S]).length>0){setTimeout(function(){A("#"+Q.attr("id")+" .rotator-content ."+O[S]).fadeIn("slow")},600*R);R++}})})})}}})}})(jQuery);(function(C){var D=[];C.tools=C.tools||{};C.tools.tooltip={version:"1.1.2",conf:{effect:"toggle",fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],offset:[0,0],cancelDefault:true,relative:false,oneInstance:true,events:{def:"mouseover,mouseout",input:"focus,blur",widget:"focus mouseover,blur mouseout",tooltip:"mouseover,mouseout"},api:false},addEffect:function(E,G,F){B[E]=[G,F]}};var B={toggle:[function(E){var F=this.getConf(),G=this.getTip(),H=F.opacity;if(H<1){G.css({opacity:H})}G.show();E.call()},function(E){this.getTip().hide();E.call()}],fade:[function(E){this.getTip().fadeIn(this.getConf().fadeInSpeed,E)},function(E){this.getTip().fadeOut(this.getConf().fadeOutSpeed,E)}]};function A(F,G){var P=this,K=C(this);F.data("tooltip",P);var L=F.next();if(G.tip){L=C(G.tip);if(L.length>1){L=F.nextAll(G.tip).eq(0);if(!L.length){L=F.parent().nextAll(G.tip).eq(0)}}}function O(U){var T=G.relative?F.position().top:F.offset().top,S=G.relative?F.position().left:F.offset().left,V=G.position[0];T-=L.outerHeight()-G.offset[0];S+=F.outerWidth()+G.offset[1];var Q=L.outerHeight()+F.outerHeight();if(V=="center"){T+=Q/2}if(V=="bottom"){T+=Q}V=G.position[1];var R=L.outerWidth()+F.outerWidth();if(V=="center"){S-=R/2}if(V=="left"){S-=R}return{top:T,left:S}}var I=F.is(":input"),E=I&&F.is(":checkbox, :radio, select, :button"),H=F.attr("type"),N=G.events[H]||G.events[I?(E?"widget":"input"):"def"];N=N.split(/,\s*/);if(N.length!=2){throw"Tooltip: bad events configuration for "+H}F.bind(N[0],function(R){if(G.oneInstance){C.each(D,function(){this.hide()})}var Q=L.data("trigger");if(Q&&Q[0]!=this){L.hide().stop(true,true)}R.target=this;P.show(R);N=G.events.tooltip.split(/,\s*/);L.bind(N[0],function(){P.show(R)});if(N[1]){L.bind(N[1],function(){P.hide(R)})}});F.bind(N[1],function(Q){P.hide(Q)});if(!C.browser.msie&&!I&&!G.predelay){F.mousemove(function(){if(!P.isShown()){F.triggerHandler("mouseover")}})}if(G.opacity<1){L.css("opacity",G.opacity)}var M=0,J=F.attr("title");if(J&&G.cancelDefault){F.removeAttr("title");F.data("title",J)}C.extend(P,{show:function(R){if(R){F=C(R.target)}clearTimeout(L.data("timer"));if(L.is(":animated")||L.is(":visible")){return P}function Q(){L.data("trigger",F);var T=O(R);if(G.tip&&J){L.html(F.data("title"))}R=R||C.Event();R.type="onBeforeShow";K.trigger(R,[T]);if(R.isDefaultPrevented()){return P}T=O(R);L.css({position:"absolute",top:T.top,left:T.left});var S=B[G.effect];if(!S){throw'Nonexistent effect "'+G.effect+'"'}S[0].call(P,function(){R.type="onShow";K.trigger(R)})}if(G.predelay){clearTimeout(M);M=setTimeout(Q,G.predelay)}else{Q()}return P},hide:function(R){clearTimeout(L.data("timer"));clearTimeout(M);if(!L.is(":visible")){return }function Q(){R=R||C.Event();R.type="onBeforeHide";K.trigger(R);if(R.isDefaultPrevented()){return }B[G.effect][1].call(P,function(){R.type="onHide";K.trigger(R)})}if(G.delay&&R){L.data("timer",setTimeout(Q,G.delay))}else{Q()}return P},isShown:function(){return L.is(":visible, :animated")},getConf:function(){return G},getTip:function(){return L},getTrigger:function(){return F},bind:function(Q,R){K.bind(Q,R);return P},onHide:function(Q){return this.bind("onHide",Q)},onBeforeShow:function(Q){return this.bind("onBeforeShow",Q)},onShow:function(Q){return this.bind("onShow",Q)},onBeforeHide:function(Q){return this.bind("onBeforeHide",Q)},unbind:function(Q){K.unbind(Q);return P}});C.each(G,function(Q,R){if(C.isFunction(R)){P.bind(Q,R)}})}C.prototype.tooltip=function(E){var F=this.eq(typeof E=="number"?E:0).data("tooltip");if(F){return F}var G=C.extend(true,{},C.tools.tooltip.conf);if(C.isFunction(E)){E={onBeforeShow:E}}else{if(typeof E=="string"){E={tip:E}}}E=C.extend(true,G,E);if(typeof E.position=="string"){E.position=E.position.split(/,?\s/)}if(E.lazy!==false&&(E.lazy===true||this.length>20)){this.one("mouseover",function(H){F=new A(C(this),E);F.show(H);D.push(F)})}else{this.each(function(){F=new A(C(this),E);D.push(F)})}return E.api?F:this}})(jQuery);(function(D){var C=D.tools.tooltip;C.plugins=C.plugins||{};C.plugins.dynamic={version:"1.0.1",conf:{api:false,classNames:"top right bottom left"}};function B(H){var E=D(window);var G=E.width()+E.scrollLeft();var F=E.height()+E.scrollTop();return[H.offset().top<=E.scrollTop(),G<=H.offset().left+H.width(),F<=H.offset().top+H.height(),E.scrollLeft()>=H.offset().left]}function A(F){var E=F.length;while(E--){if(F[E]){return false}}return true}D.fn.dynamic=function(G){var H=D.extend({},C.plugins.dynamic.conf),F;if(typeof G=="number"){G={speed:G}}G=D.extend(H,G);var E=G.classNames.split(/\s/),I;this.each(function(){if(D(this).tooltip().jquery){throw"Lazy feature not supported by dynamic plugin. set lazy: false for tooltip"}var J=D(this).tooltip().onBeforeShow(function(N,O){var M=this.getTip(),L=this.getConf();if(!I){I=[L.position[0],L.position[1],L.offset[0],L.offset[1],D.extend({},L)]}D.extend(L,I[4]);L.position=[I[0],I[1]];L.offset=[I[2],I[3]];M.css({visibility:"hidden",position:"absolute",top:O.top,left:O.left}).show();var K=B(M);if(!A(K)){if(K[2]){D.extend(L,G.top);L.position[0]="top";M.addClass(E[0])}if(K[3]){D.extend(L,G.right);L.position[1]="right";M.addClass(E[1])}if(K[0]){D.extend(L,G.bottom);L.position[0]="bottom";M.addClass(E[2])}if(K[1]){D.extend(L,G.left);L.position[1]="left";M.addClass(E[3])}if(K[0]||K[2]){L.offset[0]*=-1}if(K[1]||K[3]){L.offset[1]*=-1}}M.css({visibility:"visible"}).hide()});J.onShow(function(){var L=this.getConf(),K=this.getTip();L.position=[I[0],I[1]];L.offset=[I[2],I[3]]});J.onHide(function(){var K=this.getTip();K.removeClass(G.classNames)});F=J});return G.api?F:this}})(jQuery);(function(B){B.tools=B.tools||{};B.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",loop:false,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:false}};var C;function A(O,M){var R=this,P=B(this),D=!M.vertical,E=O.children(),K=0,I;if(!C){C=R}B.each(M,function(S,T){if(B.isFunction(T)){P.bind(S,T)}});if(E.length>1){E=B(M.items,O)}function L(T){var S=B(T);return M.globalNav?S:O.parent().find(T)}O.data("finder",L);var F=L(M.prev),H=L(M.next),G=L(M.prevPage),N=L(M.nextPage);B.extend(R,{getIndex:function(){return K},getClickIndex:function(){var S=R.getItems();return S.index(S.filter("."+M.activeClass))},getConf:function(){return M},getSize:function(){return R.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/M.size)},getPageIndex:function(){return Math.ceil(K/M.size)},getNaviButtons:function(){return F.add(H).add(G).add(N)},getRoot:function(){return O},getItemWrap:function(){return E},getItems:function(){return E.children(M.item)},getVisibleItems:function(){return R.getItems().slice(K,K+M.size)},seekTo:function(S,W,T){if(S<0){S=0}if(K===S){return R}if(B.isFunction(W)){T=W}if(S>R.getSize()-M.size){return M.loop?R.begin():this.end()}var U=R.getItems().eq(S);if(!U.length){return R}var V=B.Event("onBeforeSeek");P.trigger(V,[S]);if(V.isDefaultPrevented()){return R}if(W===undefined||B.isFunction(W)){W=M.speed}function X(){if(T){T.call(R,S)}P.trigger("onSeek",[S])}if(D){E.animate({left:-U.position().left},W,M.easing,X)}else{E.animate({top:-U.position().top},W,M.easing,X)}C=R;K=S;V=B.Event("onStart");P.trigger(V,[S]);if(V.isDefaultPrevented()){return R}F.add(G).toggleClass(M.disabledClass,S===0);H.add(N).toggleClass(M.disabledClass,S>=R.getSize()-M.size);return R},move:function(U,T,S){I=U>0;return this.seekTo(K+U,T,S)},next:function(T,S){return this.move(1,T,S)},prev:function(T,S){return this.move(-1,T,S)},movePage:function(W,V,U){I=W>0;var S=M.size*W;var T=K%M.size;if(T>0){S+=(W>0?-T:M.size-T)}return this.move(S,V,U)},prevPage:function(T,S){return this.movePage(-1,T,S)},nextPage:function(T,S){return this.movePage(1,T,S)},setPage:function(T,U,S){return this.seekTo(T*M.size,U,S)},begin:function(T,S){I=false;return this.seekTo(0,T,S)},end:function(T,S){I=true;var U=this.getSize()-M.size;return U>0?this.seekTo(U,T,S):R},reload:function(){P.trigger("onReload");return R},focus:function(){C=R;return R},click:function(U){var V=R.getItems().eq(U),S=M.activeClass,T=M.size;if(U<0||U>=R.getSize()){return R}if(T==1){if(M.loop){return R.next()}if(U===0||U==R.getSize()-1){I=(I===undefined)?true:!I}return I===false?R.prev():R.next()}if(T==2){if(U==K){U--}R.getItems().removeClass(S);V.addClass(S);return R.seekTo(U,time,fn)}if(!V.hasClass(S)){R.getItems().removeClass(S);V.addClass(S);var X=Math.floor(T/2);var W=U-X;if(W>R.getSize()-T){W=R.getSize()-T}if(W!==U){return R.seekTo(W)}}return R},bind:function(S,T){P.bind(S,T);return R},unbind:function(S){P.unbind(S);return R}});B.each("onBeforeSeek,onStart,onSeek,onReload".split(","),function(S,T){R[T]=function(U){return R.bind(T,U)}});F.addClass(M.disabledClass).click(function(){R.prev()});H.click(function(){R.next()});N.click(function(){R.nextPage()});if(R.getSize()<=M.size){H.add(N).addClass(M.disabledClass)}G.addClass(M.disabledClass).click(function(){R.prevPage()});var J=M.hoverClass,Q="keydown."+Math.random().toString().substring(10);R.onReload(function(){if(J){R.getItems().hover(function(){B(this).addClass(J)},function(){B(this).removeClass(J)})}if(M.clickable){R.getItems().each(function(S){B(this).unbind("click.scrollable").bind("click.scrollable",function(T){if(B(T.target).is("a")){return }return R.click(S)})})}if(M.keyboard){B(document).unbind(Q).bind(Q,function(S){if(S.altKey||S.ctrlKey){return }if(M.keyboard!="static"&&C!=R){return }var T=M.keyboardSteps;if(D&&(S.keyCode==37||S.keyCode==39)){R.move(S.keyCode==37?-T:T);return S.preventDefault()}if(!D&&(S.keyCode==38||S.keyCode==40)){R.move(S.keyCode==38?-T:T);return S.preventDefault()}return true})}else{B(document).unbind(Q)}});R.reload()}B.fn.scrollable=function(D){var E=this.eq(typeof D=="number"?D:0).data("scrollable");if(E){return E}var F=B.extend({},B.tools.scrollable.conf);D=B.extend(F,D);D.keyboardSteps=D.keyboardSteps||D.size;this.each(function(){E=new A(B(this),D);B(this).data("scrollable",E)});return D.api?E:this}})(jQuery);(function(B){var A=B.tools.scrollable;A.plugins=A.plugins||{};A.plugins.navigator={version:"1.0.2",conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,api:false,idPrefix:null}};B.fn.navigator=function(D){var E=B.extend({},A.plugins.navigator.conf),C;if(typeof D=="string"){D={navi:D}}D=B.extend(E,D);this.each(function(){var I=B(this).scrollable(),F=I.getRoot(),L=F.data("finder").call(null,D.navi),G=null,K=I.getNaviButtons();if(I){C=I}I.getNaviButtons=function(){return K.add(L)};function J(){if(!L.children().length||L.data("navi")==I){L.empty();L.data("navi",I);for(var M=0;M<I.getPageAmount();M++){L.append(B("<"+(D.naviItem||"a")+"/>"))}G=L.children().each(function(N){var O=B(this);O.click(function(P){I.setPage(N);return P.preventDefault()});if(D.indexed){O.text(N)}if(D.idPrefix){O.attr("id",D.idPrefix+N)}})}else{G=D.naviItem?L.find(D.naviItem):L.children();G.each(function(N){var O=B(this);O.click(function(P){I.setPage(N);return P.preventDefault()})})}G.eq(0).addClass(D.activeClass)}I.onStart(function(O,N){var M=D.activeClass;G.removeClass(M).eq(I.getPageIndex()).addClass(M)});I.onReload(function(){J()});J();var H=G.filter("[href="+location.hash+"]");if(H.length){I.move(G.index(H))}});return D.api?C:this}})(jQuery);(function(B){B.fn.wheel=function(E){return this[E?"bind":"trigger"]("wheel",E)};B.event.special.wheel={setup:function(){B.event.add(this,D,C,{})},teardown:function(){B.event.remove(this,D,C)}};var D=!B.browser.mozilla?"mousewheel":"DOMMouseScroll"+(B.browser.version<"1.9"?" mousemove":"");function C(E){switch(E.type){case"mousemove":return B.extend(E.data,{clientX:E.clientX,clientY:E.clientY,pageX:E.pageX,pageY:E.pageY});case"DOMMouseScroll":B.extend(E,E.data);E.delta=-E.detail/3;break;case"mousewheel":E.delta=E.wheelDelta/120;break}E.type="wheel";return B.event.handle.call(this,E,E.delta)}var A=B.tools.scrollable;A.plugins=A.plugins||{};A.plugins.mousewheel={version:"1.0.1",conf:{api:false,speed:50}};B.fn.mousewheel=function(F){var G=B.extend({},A.plugins.mousewheel.conf),E;if(typeof F=="number"){F={speed:F}}F=B.extend(G,F);this.each(function(){var H=B(this).scrollable();if(H){E=H}H.getRoot().wheel(function(I,J){H.move(J<0?1:-1,F.speed||50);return false})});return F.api?E:this}})(jQuery);if(typeof CN.pluck==="undefined"){CN.pluck={}}if(typeof CN.pluck.widgets==="undefined"){CN.pluck.widgets=function(D){var G=this,H=false;G.tarDiv=D;CN.pluck.widgets.prototype.init=function(){if(!document.domain){document.domain=CN.url.domain()}return this};function I(K){if(CN.site&&CN.site.env!=="PROD"||!K){return"<!-- section: "+C(K.Section)+" ; categories : "+C(K.Categories)+"--!>"}return""}function C(L){if(!L){return""}var K=K=(L.length?L[0]:[L][0]).toString().replace(/^\(?{(\w+\:).*/gm,"$1");return L.toString().replace(/\(?[{}\[\]]*\)?/g,"").replace(new RegExp(K,"g"),"")}function B(O,L){if(!O){return[]}L=L||"ALL";if(typeof L==="string"){L=L.split(",")}var M=0,K=L.length,N=[];for(;M<K;M++){if(L[M]!==""){N.push(L[M] instanceof O?L[M]:new O(L[M]))}}return N}function F(){if(H){return H}H=(typeof G.tarDiv==="string"&&G.tarDiv.length>0?(document.getElementById(G.tarDiv)||false):(G.tarDiv.selector?D.get(0):false));return H}function E(K){F()["selector"]?F().html(K):F().innerHTML=K}function A(){F().style.display="block";F().className.replace(/\s+(hidden)(?!\S)\s*|^(hidden)(?!\S)/g,"")}function J(M,V,S,T,L){L=L||{};var R=T||15,N=V||10,W=B(Section,L.section),O=B(Category,L.category),K=new Activity(M),U=new ContentType("Article"),P=B(UserTier,"All"),Q=new RequestBatch();Q.AddToRequest(new DiscoverContentAction(W,O,P,K,U,R,N));Q.BeginRequest(CN.pluck.serverUrl,S)}CN.pluck.widgets.prototype.renderCommentedRail=function(N){if(F()){var P="<ol>",M=0,R,L=N.Responses.length||0,Q=0,O=[],K=[];for(;M<L;M++){O=N.Responses[M].DiscoverContentAction.DiscoveredContent,Q=O.length,R=0;for(;R<Q;R++){K=O[R],K.PageUrl=(K.PageUrl.toString()||"").replace(/https?:\/\/[^/]*/,"");if(K.PageTitle&&/\w+/.test(K.PageTitle)){P+='<li><a href="'+K.PageUrl+'">'+K.PageTitle+"</a></li>"}else{P+="<!-- "+K.ArticleKey.Key+" : has a null title -->"}}}P+="</ol>";E(P);A()}else{return false}};CN.pluck.widgets.prototype.mostCommented=function(){J("Commented",CN.pluck.main.mostpopularEntries,G.renderCommentedRail,CN.pluck.main.mostpopularAge)};CN.pluck.widgets.prototype.mostCommentedWithCriteria=function(K){J("Commented",CN.pluck.main.mostpopularEntries,G.renderCommentedRail,CN.pluck.main.mostpopularAge,K)}}}CN.page.config=CN.page.config||{};CN.page.config.pluckRatingMarkup='<div class="rating"> <h3>Ratings</h3> <div id="rating_'+MAGNET.site.name+'_0000" class="rate"> <span>Rate it:</span> <div id="ratingGroup_'+MAGNET.site.name+'_0000"> <a href="#" id="ratingAnchor_'+MAGNET.site.name+'_0000_1">1 Star</a> <a href="#" id="ratingAnchor_'+MAGNET.site.name+'_0000_2">2 Stars</a> <a href="#" id="ratingAnchor_'+MAGNET.site.name+'_0000_3">3 Stars</a> <a href="#" id="ratingAnchor_'+MAGNET.site.name+'_0000_4">4 Stars</a> <a href="#" id="ratingAnchor_'+MAGNET.site.name+'_0000_5">5 Stars</a> </div> <h4><span class="ratingtxt" id="ratingAverageTxt_'+MAGNET.site.name+'_0000"></span><span id="ratingAverage_'+MAGNET.site.name+'_0000"></span></h4></div></div>';CN.page.config.pluckCommentMarkup='<div class="comments"><h3>Comments</h3><h5 class="totalComments" id="totalComments_'+MAGNET.site.name+'_0000"></h5><div class="commentAnchor" id="commentAnchor_'+MAGNET.site.name+'_0000"></div><div class="publicCommentsBox"><h5>Post a Comment</h5><form id="frmSubmitComment_'+MAGNET.site.name+'_0000" action="" method="get" name="frmSubmitComment_'+MAGNET.site.name+'_0000"><input type="hidden" value="list" name="type" id="commentPageType_'+MAGNET.site.name+'_0000"/><input type="hidden" value="" name="title" id="commentPageTitle_'+MAGNET.site.name+'_0000"/><textarea id="commentText_'+MAGNET.site.name+'_0000" class="commentText" name="text" rows="10" cols="58"/><input type="image" id="frmPostBtn_'+MAGNET.site.name+'_0000" class="post_btn" value="submit" name="submit" src="/css/i/global/btn-submit.png"/></form></div></div>';CN.page.config.slideshowIntroShowCallback=function(A){CN.dart.refresh();CN.stats.omniture.setPaginationValue("intro_show");CN.stats.omniture.trackAjaxPage()};CN.page.config.slideshowIntroHideCallback=function(A){CN.dart.refresh();CN.stats.omniture.setPaginationValue("intro_hide");CN.stats.omniture.trackAjaxPage()};CN.page.config.slideshowViewLargerCallback=function(B,A){var C=function(){if(B.slides[B.currentSlideIndex].getLabel()==="slide"){B.$el.find(".item").each(function(){if(!this.className.match(/item(A|B)/)){jQuery(this).addClass("item"+CN.schemaParser.getInstance().parse(B.data[B.currentSlideIndex].item).pageType())}})}try{B.$el.find(".item-inner").jScrollPane({scrollbarWidth:14,showArrows:true})}catch(D){}};B.onInterstitialShow.subscribe(function(){if(B.slide.getLabel()==="dartinterstitial"){try{if(CN.dart.calls("yrailTop300x250").params){CN.dart.request(B.interstitialManager.getSlideWithoutIncrementing().id,"kw=interstitial;"+CN.dart.calls("yrailTop300x250").params,{store:false})}else{CN.dart.request(B.interstitialManager.getSlideWithoutIncrementing().id,"kw=top;kw=interstitial;kw="+CN.page.section()+";kw="+CN.page.subsection()+";kw="+CN.page.slug()+";sz=300x250",{store:false})}vs.StatEvent("vs.event","slideshow_ad");CN.stats.omniture.setPaginationValue("slideshow_ad");CN.stats.omniture.trackAjaxPage()}catch(D){CN.debug.warn("Tried to perform dart request but failed. Perhaps no interstitial exists")}}});B.onSlideChangeComplete.subscribe(function(){C();if(B.slide.getLabel()==="slide"){CN.stats.omniture.setPaginationValue("slide"+(B.currentSlideIndex+1));CN.stats.omniture.trackAjaxPage()}else{if(B.slide.getLabel()==="domslide"){CN.stats.omniture.setPaginationValue("slideshow_offer");CN.stats.omniture.trackAjaxPage()}}});C();jQuery('<div id="slideshow-cm-replay-larger" class="slideshow-replay"><a href="#">Replay</a></div>').insertAfter("#slideshow-cm-replay").click(function(){A.jumpToSlideCommand.execute(1);return false})};MAGNET.page.config.slideshowViewLargerCloseCallback=function(A){jQuery("#slideshow-cm-replay-larger").remove()};CN.page.config.mostPopularHtml=function(resp,events){var p=typeof resp=="string"?eval(resp):resp,html="",entriesCount=0;for(var i=0;i<p.length;i++){if(p[i].contentTitle!==null&&p[i].contentId!="true"&&entriesCount<CN.pluck.main.mostpopularEntries){var trimmedTitle=p[i].contentTitle.replace(/^\s+|\s+$/g,"");if(trimmedTitle){html+='<li><a href="'+p[i].contentUrl.replace(/^.*golfdigest.com/,"")+'">'+trimmedTitle+"</a></li>"}}}jQuery("#"+events).html("<ol>"+html+"</ol>")};CN.site.golfdigest.behaviors=function(){var B,D,F,C;B={createLinkDropdowns:function(G){G.each(function(){jQuery(this).find(".feature").each(function(){jQuery(this).find(".links-header").each(function(){jQuery(this).add(jQuery(this).next()).wrapAll('<div class="links-has-dropdown"></div>')});jQuery(this).find(".links-has-dropdown").each(function(){var H=jQuery(this);try{H.find(".links").width(H.width()-22).hide();H.find(".links-header").click(function(){H.find(".links").slideToggle()})}catch(I){CN.debug.info("Creating link dropdowns failed: "+I.message)}})})})},adjustFeatureHeights:function(G){G.each(function(){var H=0;jQuery(this).find(".feature").each(function(){var I=jQuery(this).height();if(I>H){H=I}});jQuery(this).find(".feature").each(function(){jQuery(this).height(H)})})},buildFeatureCarousel:function(G){G.each(function(){jQuery(this).find(".feature").wrapAll('<div class="feature-carousel"><div class="feature-carousel-inner"><div class="feature-container"></div></div></div>').end().find(".feature-carousel").prepend('<div class="feature-carousel-previous">Previous</div>').append('<div class="feature-carousel-next">Next</div>').find(".feature-carousel-inner").scrollable({items:".feature-container",size:4,next:".feature-carousel-next",prev:".feature-carousel-previous"})})},numberedToggleSetup:function(G){G.each(function(){jQuery(this).find(".numbered-toggle").tab(jQuery(".numbered-toggle.has1item").length>0?{paginate:true}:{paginate:true,timer:6})})},tabsSetup:function(G){try{G.each(function(){jQuery(this).find("div.feature-tabs").tab(CN.page.config.defaultTab||1);var J=jQuery("div.feature-tabs > ul > li"),I=jQuery("div.feature-tabs > ul").width()-parseInt(jQuery(J[0]).css("margin-right"),10)*J.length,K=I/J.length;J.each(function(){jQuery(this).css("width",K+"px")})})}catch(H){CN.debug.error("Error setting up tabs features. Perhaps the defaultTab index is not 1-based, or the jQuery tab plugin is not available.")}},mostpopularSetup:function(H){var G,I;H.each(function(){jQuery(this).tab();CN.pluck.main.mostpopularAge=15;CN.pluck.mostCommented=new CN.pluck.widgets("most-commented");CN.pluck.mostCommented.init().mostCommented()});G={mostViewed:{callback:"callMostViewed",eventName:"most_viewed",number:10,days:15},mostEmailed:{callback:"callMostEmailed",eventName:"most_emailed",number:10,days:15}};for(I in G){if(G.hasOwnProperty(I)){jQuery.ajax({cache:true,dataType:"script",type:"GET",url:CN.site.eventTrackingUrl+"/spring/event/most.go?num="+G[I].number+"&day="+G[I].days+"&type=all&site="+CN.site.code+"&env="+CN.site.eventTrackingEnv+"&event="+G[I].eventName+"&callback=CN.site.golfdigest.behaviors."+G[I].callback})}}},mostcommentedbycriteriaSetup:function(G){G.each(function(){CN.pluck.mostCommentedWithCriteria=CN.pluck.mostCommentedWithCriteria||{};(CN.pluck.mostCommentedWithCriteria.handler=new CN.pluck.widgets("most-commented-standalone")).init().mostCommentedWithCriteria(CN.pluck.mostCommentedWithCriteria.metaData)})}};D=function(){jQuery.each(CN.page.feature||[],function(){if(this in F){F[this]()}})};C=function(G,H){return jQuery("."+G,H||jQuery("body")).not("."+G+"-initialized").addClass(G+"-initialized")};F={set1:function(G){B.createLinkDropdowns(C("set1",G))},set2:function(G){B.createLinkDropdowns(C("set2",G))},set3:function(G){B.createLinkDropdowns(C("set3",G))},set4:function(G){B.createLinkDropdowns(C("set4",G))},set5:function(G){B.createLinkDropdowns(C("set5",G))},set6:function(G){B.createLinkDropdowns(C("set6",G))},set7:function(G){B.createLinkDropdowns(C("set7",G))},set8:function(G){B.createLinkDropdowns(C("set8",G))},set9:function(G){var H=C("set9",G);B.createLinkDropdowns(H);B.adjustFeatureHeights(H)},set10:function(G){var H=C("set10",G);B.createLinkDropdowns(H);B.adjustFeatureHeights(H)},set11:function(G){var H=C("set11",G);B.createLinkDropdowns(H);B.buildFeatureCarousel(H)},set12:function(G){B.createLinkDropdowns(C("set12",G))},set14:function(G){B.createLinkDropdowns(C("set14",G))},numberedtoggle:function(G){B.numberedToggleSetup(C("numberedtoggle",G))},mostpopular:function(G){B.mostpopularSetup(C("most-popular",G))},mostcommentedbycriteria:function(G){B.mostcommentedbycriteriaSetup(C("most-commented",G))},tabs:function(G){B.tabsSetup(C("tabs",G))}};function A(){jQuery("label.replace").each(function(){var I=jQuery(this).attr("for"),G=this.innerHTML,H=false;if(typeof H!="undefined"){H=(jQuery("#"+I).length?jQuery("#"+I):(jQuery("input[name="+I+"]",this.form).length?jQuery('input[name="'+I+'"]',this.form):false));if(H){H.attr("value",G).focus(function(){if(this.value===G){this.value=""}}).blur(function(){if(this.value===""){this.value=G}}).parent("form").submit(function(){if(H.attr("value")===G){H.attr("value","")}return true})}}});jQuery("input[type=image]").hover(function(){this.src=this.src.replace(/\.(gif|png)/,function(H,G){return"-r."+G})},function(){this.src=this.src.replace(/-r\.(gif|png)/,function(H,G){return"."+G})});jQuery("#main").bind("click",function(H){var G=jQuery(H.target).attr("href")||"";if(G&&G.match(/frmSubmitComment|#comments_/)){jQuery("html,body").animate({scrollTop:jQuery(G).offset().top-40},500);return false}});jQuery(".forumPaginator").each(function(){if(jQuery("body.ss_blogs").length===0){jQuery(this).val(CN.url.params("currentPage")||CN.url.params("page")||1)}});jQuery("#global-nav-menu li.hasfeature").each(function(){jQuery(this).one("mouseover",function(){var G="/services/ajaxfeatures"+jQuery("a",this).attr("href"),H=jQuery("div.menu-item",this);jQuery.ajax({url:G,cache:true,success:function(M){var I=jQuery('<div class="menu-feature-wrap"><div class="menu-feature">'+M+"</div></div>"),L,J,K;H.prepend(I);K=(jQuery("div.menu-feature .features",this).length>0)?I.find(".features").attr("class").split(" "):{};for(L=0,J=K.length;L<J;L++){if(F[K[L]]){F[K[L]](I)}}}})})});jQuery("#global-nav #global-nav-menu li.mega").hoverIntent({sensitivity:4,interval:200,over:function(){jQuery(this).addClass("hover")},timeout:400,out:function(){jQuery(this).removeClass("hover")}});jQuery(".cr-video .commentText,.video-utilities .gotoRatings a,.video-utilities .gotoComments a").click(function(){CN.brightcove.getMyApp("cplayer").pauseVideo()});jQuery("li.utility-email").each(function(){if(typeof blogTitle!=="undefined"){jQuery("li.utility-email a").attr("href","/contact/emailFriend?referringPage="+document.location+"&title="+escape(blogTitle))}jQuery(".utilities").css("display","block")});jQuery(".search .feature .w a.type-video, .videooverlay .w a").each(function(){jQuery(this).append(jQuery('<span class="playbutton"></span>'));if(jQuery.browser.msie&&jQuery.browser.version.charAt(0)<7){jQuery(this).css({display:"block",height:jQuery(this).outerHeight()})}})}function E(){jQuery("#search_form_1").submit(function(){var J="",G=CN.search.sanitize(jQuery("#results-search").val());if(G!==""){var I=jQuery("#search_form_1 select[name=docType]").val(),H=jQuery("#search_form_1 select[name=section]").val();J="/search?query="+encodeURI(G)+"&qt=dismax&sort="+encodeURI("score+desc");if(I!==""){J=J+"&docType="+encodeURI(I)}if(H!==""){J=J+"&section="+encodeURI(H)}document.location=J}return false})}return{init:function(){A();D();E()},callMostViewed:function(G){CN.page.config.mostPopularHtml(G,"most-viewed")},callMostEmailed:function(G){CN.page.config.mostPopularHtml(G,"most-emailed")}}}();jQuery(function(){CN.site.golfdigest.behaviors.init()});if(jQuery("body").hasClass("listC")){jQuery("head").append('<script type="text/javascript" src="/js/cn-presentation/pluck/cn.pluckhelper.js"><\/script>');jQuery("head").append('<script type="text/javascript" src="/js/cn-presentation/cnp.slideshow.pluckhelper.js"><\/script>');if(CN.page.config.viewLarger){jQuery("head").append('<script type="text/javascript" src="/js/cn-presentation/cnp.slideshow.viewlarger.js"><\/script>')}jQuery(function(){var A,B,D,C;CN.page.slideshow=new CN.slideshow.Slides("#items-container",{transition:CN.page.config.transition||"photoflash",showInterstitialTimer:CN.page.config.showInterstitialTimer||5,playTimer:CN.page.config.playTimer||5,useHistory:true,useIntro:true});D=CN.page.slideshow;if(CN.slideshow.plugin.PluckHelper){B=new CN.slideshow.plugin.PluckHelper(D,"#content")}D.onSlideshowReady.subscribe(function(){jQuery(".slideshow-loading").fadeOut("slow");jQuery(".slideshow-loading-message").fadeOut("slow",function(){jQuery(this).remove()})});jQuery.ajax({type:"GET",url:"/services/ajax"+location.pathname+"?mainContent=false&relatedContent=true&documentId="+CN.page.config.contentId,dataType:"json",success:function(I){var G=I.relatedContent||{},H,F,E,J;J={goForward:{trigger:"#items-container .next a"},goBackward:{trigger:"#items-container .previous a"},playSlideshow:{trigger:"#items-container .start a",sliderEl:".stop"},stopSlideshow:{trigger:"#items-container .stop a"}};if(CN.page.config.viewLarger===true){J.viewLarger={trigger:"#items-container .viewlarger a",transition:"fade"};jQuery("#items-container .viewlarger a").bind("click",function(){vs.StatEvent("URL","","vs.event","slideshow_enlarge");CN.stats.omniture.setPaginationValue("slideshow_enlarge");CN.stats.omniture.trackAjaxPage()})}if(CN.page.config.carousel===true){J.carouselNavigation={container:"#item-navigation-container"}}if(CN.page.config.viewAll===true){J.viewAllNavigation={trigger:"#items-container .viewall a"}}A=CN.slideshow.controller.init(CN.page.slideshow,J);D.setData(G);for(H=0,F=G.length;H<F;H++){E=new CN.slideshow.Slide(G[H]);D.append(E)}if(jQuery("html").hasClass("slideshow-showinitial-true")){D.onSlideshowReady.subscribe(function(){try{D.$el.find(".item-inner").jScrollPane({scrollbarWidth:14,showArrows:true})}catch(K){}})}D.onSlideChangeComplete.subscribe(function(){try{D.$el.find(".item-inner").jScrollPane({scrollbarWidth:14,showArrows:true})}catch(K){}});CN.slideshow.util.dataReady(D);jQuery("#slideshow-cm-replay").click(function(){A.jumpToSlideCommand.execute(1);return false});jQuery("#items-container .start a").bind("click",function(){vs.StatEvent("URL","","vs.event","slideshow_play")});jQuery("#items-container .stop a").bind("click",function(){vs.StatEvent("URL","","vs.event","slideshow_pause")})},error:function(E,F){jQuery(".slideshow-loading").fadeOut("slow");jQuery(".slideshow-loading-message").fadeOut("slow");CN.debug.error("Data load failed for slideshow, probably 404 or malformed data: "+F)}});C=function(){if(D.slide.getLabel()==="slide"){D.$el.find(".item").each(function(){if(!this.className.match(/item(A|B)/)){jQuery(this).addClass("item"+CN.schemaParser.getInstance().parse(D.data[D.currentSlideIndex].item).pageType())}});CN.stats.omniture.setPaginationValue("slide"+(D.currentSlideIndex+1));CN.stats.omniture.trackAjaxPage()}else{if(D.slide.getLabel()==="domslide"){CN.stats.omniture.setPaginationValue("slideshow_offer");CN.stats.omniture.trackAjaxPage()}}};D.onForwardComplete.subscribe(function(){C();if(D.slide.getLabel()==="domslide"){vs.StatEvent("vs.event","slideshow_offer","vs.slidepos",D.currentSlideIndex)}else{try{vs.StatEvent("vs.event","slideshow_next","vs.photoid",CN.schemaParser.getInstance().parse(D.data[D.currentSlideIndex].item).photo.main().split("/").pop(),"vs.slidepos",D.currentSlideIndex)}catch(E){}}});D.onBackwardComplete.subscribe(function(){C();if(D.slide.getLabel()==="domslide"){vs.StatEvent("vs.event","slideshow_offer","vs.slidepos",D.currentSlideIndex)}else{try{vs.StatEvent("vs.event","slideshow_previous","vs.photoid",CN.schemaParser.getInstance().parse(D.data[D.currentSlideIndex].item).photo.main().split("/").pop(),"vs.slidepos",D.currentSlideIndex)}catch(E){}}});D.onJumpToSlideComplete.subscribe(function(){C();if(D.slide.getLabel()==="domslide"){vs.StatEvent("vs.event","slideshow_offer","vs.slidepos",D.currentSlideIndex)}else{try{vs.StatEvent("vs.event","slideshow_jump","vs.photoid",CN.schemaParser.getInstance().parse(D.data[D.currentSlideIndex].item).photo.main().split("/").pop(),"vs.slidepos",D.currentSlideIndex)}catch(E){}}});D.onSlideChangeComplete.subscribe(function(){CN.dart.refresh()});D.onInterstitialShow.subscribe(function(){CN.dart.refresh();if(D.slide.getLabel()==="dartinterstitial"){try{if(CN.dart.calls("yrailTop300x250").params){CN.dart.request(D.interstitialManager.getSlideWithoutIncrementing().id,"kw=interstitial;"+CN.dart.calls("yrailTop300x250").params,{store:false})}else{CN.dart.request(D.interstitialManager.getSlideWithoutIncrementing().id,"kw=top;kw=interstitial;kw="+CN.page.section()+";kw="+CN.page.subsection()+";kw="+CN.page.slug()+";sz=300x250",{store:false})}vs.StatEvent("vs.event","slideshow_ad");CN.stats.omniture.setPaginationValue("slideshow_ad");CN.stats.omniture.trackAjaxPage()}catch(E){CN.debug.warn("Tried to perform dart request but failed. Perhaps no interstitial exists")}}});D.onSlideshowReady.subscribe(function(){CN.slideshow.api.addSlide("slideshow-cm-container",{slideType:"DomSlide"});CN.slideshow.api.addInterstitial("",{slideType:"DartInterstitial"});if(D.navigationItems.navigationViewAll){D.navigationItems.navigationViewAll.onShow.subscribe(function(){vs.StatEvent("URL","","vs.event","slideshow_viewthumb");CN.stats.omniture.setPaginationValue("slideshow_viewthumb");CN.stats.omniture.trackAjaxPage()})}if(jQuery("html").hasClass("slideshow-showinitial-true")){C()}});if(CN.slideshow.plugin.PluckHelper){D.onSlideChangeComplete.subscribe(function(){B.initNewSlide()});D.onSlideshowReady.subscribe(function(){B.initNewSlide()})}jQuery("#slideshow-cm-subsoffer a").click(function(){window.open(this.href);return false})})}CN.schemaParser=CN.schemaParser||{};CN.schemaParser.templates={baseItem:function(B,D){try{B.photo[D]()}catch(C){D="main"}var A="";A+='<div class="item">';if(B.photo){A+='<div class="captioned-photo"><div class="w">';if(B.photo.url()){A+='<a href="'+B.photo.url()+'">'}A+='<img src="'+B.photo[D]()+'" alt="'+(B.photo.alt()||"")+'" />';if(B.photo.url()){A+="</a>"}A+="</div>";if(B.photo.caption()){A+='<p class="caption">'+B.photo.caption()+"</p>"}A+="</div>"}A+='<div class="item-inner">';if(B.rubric||B.header||B.subHeaders){A+='<div class="headers-container">';A+='<div class="headers">';A+=B.rubric?'<h5 class="rubric">'+B.rubric()+"</h5>":"";A+=B.header?'<h3 class="content-headline">'+B.header()+"</h3>":"";A+=B.subHeaders?'<h4 class="sub-header">'+B.subHeaders()+"</h4>":"";A+="</div>";A+="</div>"}A+='<div class="item-text">';A+=B.body&&B.body().length>0?'<div class="body">'+B.body()+"</div>":"";A+=B.embeddedList?B.embeddedList():"";A+=B.contributors?'<div class="byline">'+B.contributors()+"</div>":"";A+=B.photoCredits?'<cite class="photo-credits">'+B.photoCredits()+"</cite>":"";A+=B.footerText||B.footerLegalCopy?'<div class="footer">':"";A+=B.footerText?'<div class="text">'+B.footerText()+"</div>":"";A+=B.footerLegalCopy?'<div class="legal">'+B.footerLegalCopy()+"</div>":"";A+=B.footerText||B.footerLegalCopy?"</div>":"";A+=B.displayDate?'<div class="display-date">'+B.displayDate()+"</div>":"";A+="</div>";A+=B.filePath?B.filePath():"";A+="</div>";A+="</div>";return A},item:function(B){var A=this.baseItem(B,"main");return A},enlargedItem:function(B){var A=this.baseItem(B,"enlargedImage");return A}};(function(A){A.fn.hoverIntent=function(I,H){var J={sensitivity:7,interval:100,timeout:0};J=A.extend(J,H?{over:I,out:H}:I);var L,K,F,D;var E=function(M){L=M.pageX;K=M.pageY};var C=function(N,M){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);if((Math.abs(F-L)+Math.abs(D-K))<J.sensitivity){A(M).unbind("mousemove",E);M.hoverIntent_s=1;return J.over.apply(M,[N])}else{F=L;D=K;M.hoverIntent_t=setTimeout(function(){C(N,M)},J.interval)}};var G=function(N,M){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);M.hoverIntent_s=0;return J.out.apply(M,[N])};var B=function(P){var O=(P.type=="mouseover"?P.fromElement:P.toElement)||P.relatedTarget;while(O&&O!=this){try{O=O.parentNode}catch(P){O=this}}if(O==this){return false}var N=jQuery.extend({},P);var M=this;if(M.hoverIntent_t){M.hoverIntent_t=clearTimeout(M.hoverIntent_t)}if(P.type=="mouseover"){F=N.pageX;D=N.pageY;A(M).bind("mousemove",E);if(M.hoverIntent_s!=1){M.hoverIntent_t=setTimeout(function(){C(N,M)},J.interval)}}else{A(M).unbind("mousemove",E);if(M.hoverIntent_s==1){M.hoverIntent_t=setTimeout(function(){G(N,M)},J.timeout)}}};return this.mouseover(B).mouseout(B)}})(jQuery);