/* 2012.02.17 @ 12:30PM */
$(document).on("onclosebody",function(){$(".megaMenu").megaMenu({showDropDownArrows:false,navLinkPadding:0});$(".articleColumns > ul").uniformHeights();$(".articleSectionColumns > ul").uniformHeights();$("#relatedSitesHeadlines .rshCols").uniformHeights()});$(document).ready(function(f){(function(j,i,k){j.pageUrl=window.location.href;j.siteName=SITE_name;j.bodyId=document.body.id.toString();j.articleTitle=i("#headline").find("h1").text();j.userAgent=window.navigator.userAgent;j.lightboxOpacity="0.50";var h={requestUrl:"http://api.bit.ly/v3/shorten",login:"uxtechtarget",key:"R_3711c9f9013670f25d70b047c8deb6f2"};var g={script:"http://www.google.com/recaptcha/api/js/recaptcha_ajax.js",key:"6LeNJAQAAAAAALNfHl-1afGZI24Gn-xsuS48kTKE"};j.getRecaptcha=function(o,l,n){var m=i.ajax({url:g.script,dataType:"script"});m.done(function(){if(typeof Recaptcha!=="undefined"){Recaptcha.create(g.key,o,{theme:n,tabindex:l})}})};j.getUrlParams=function(){var o={};var l=(window.location.search.substring(1)).split("&");for(var m=0;m<l.length;m++){var n=l[m].split("=");if(n[1].length>0){o[n[0]]=decodeURIComponent(n[1])}}return o};j.stash={set:function(l,m){if(typeof window.localStorage!=="undefined"&&typeof window.JSON!=="undefined"){if(typeof m==="object"){m=JSON.stringify(m)}else{if(typeof m==="string"){}}try{localStorage.setItem(l,m)}catch(n){if(n==="QUOTA_EXCEEDED_ERR"){j.log("storage quota exceeded")}}}},get:function(l){if(typeof window.localStorage!=="undefined"){var m=localStorage.getItem(l);try{m=JSON.parse(m)}catch(n){}finally{return m}}},flush:function(l){if(typeof window.localStorage!=="undefined"){localStorage.removeItem(l)}}};j.displayNotice=function(o){var n=i("<div/>",{id:"notification"});var l=i("<div/>",{id:"notificationText",html:o});var m=i("<span/>",{id:"notificationClose",html:'<a title="Dismiss this notification">×</a>'}).on("click",function(p){n.fadeOut()});i("body").prepend(n.append(l,m))};j.getClassName=function(n,m){var l="";i(n.attr("class").split(" ")).each(function(){if(this.indexOf(m)>-1){l=this}});return l};j.getReferrerKeywords=function(){var l=getCookieValue("referrer");if(l!==""){l=decodeURIComponent(l);var p=decodeURIComponent(document.referrer);var o=/referrer(.*);key/g;var q=/keyword(.*);asrc/g;var n=o.exec(l)[1]||"";var m;if(p===n){m=decodeURIComponent(q.exec(l)[1]||"");m=m.replace(/\+/g," ");return m}}else{return null}};j.getShortUrl=function(m,n){if(typeof m==="undefined"){m=j.pageUrl}var l=i("body").data(m);if(typeof l==="undefined"){i.ajax({url:h.requestUrl,contentType:"application/x-www-form-urlencoded",dataType:"jsonp",data:({login:h.login,apiKey:h.key,longUrl:m}),error:function(){alert("error in mo.getBitlyUrl function")},success:function(o){if(o.status_txt==="OK"){i("body").data(m,o.data.url)}else{i("body").data(m,m)}n.apply(this)}})}else{n.apply(this)}};j.changeTextSize=function(p){var q=i("#articleBody");var m=q.data("originalTextSize");if(typeof m==="undefined"){m="16px"}var l=parseFloat(m);var o=m.slice(-2);var n;i(".activeSize").removeClass("activeSize");switch(p){case 0:i("#contentTools-textSizeSmall").addClass("activeSize");n=l;j.saveUi({textSize:0});break;case 1:i("#contentTools-textSizeMedium").addClass("activeSize");n=l*1.25;j.saveUi({textSize:1});break;case 2:i("#contentTools-textSizeLarge").addClass("activeSize");n=l*1.5;j.saveUi({textSize:2});break}q.css("font-size",n+o)};j.saveUi=function(m){var l={textSize:0};i.extend(l,m);j.stash.set("uiObj",l)};j.log=function(l){if(window.console&&console.dir){console.dir(l)}else{}};j.test=function(){var l=function(p,n){if(m()){console.group(n);for(var o in p){console.log(o+" -> "+p[o])}console.groupEnd()}else{for(var o in p){console.log(o+" -> "+p[o])}}};var m=function(){if(window.console&&(typeof console.group!=="undefined")){return true}return false};return{pageInfo:function(n){var o={URL:window.location.href,Site:window.location.host,"Page Title":document.title,"User Agent":window.navigator.userAgent,"DOM Nodes":document.getElementsByTagName("*").length};if(n){l(o,"Page information:")}else{return JSON.stringify(o)}},pageLoad:function(p){if(typeof window.performance!=="undefined"){var q=performance.timing;var s=performance.navigation;var o=function(n){var t=["Clicked link or entered url in address bar","Page reload","Backward or forward in browser history"];return t[n]};var r={Timestamp:new Date(),"Navigation Type":o(s.type),"Redirect Count":s.redirectCount,"Redirecting Time":q.redirectEnd-q.redirectStart,"Network Latency":q.responseEnd-q.fetchStart,"Domain Lookup (DNS)":q.domainLookupEnd-q.domainLookupStart,"Establishing Connection (TCP)":q.connectEnd-q.connectStart,Requesting:q.responseEnd-q.requestStart,"DOM Processing":q.domComplete-q.domLoading,"User-Perceived Loading Time":q.loadEventEnd-q.navigationStart};if(p){l(r,"Page load performance metrics:")}else{return JSON.stringify(r)}}else{return"undefined"}}}}()}(window.mo=window.mo||{},jQuery));switch(mo.bodyId){case"sdef":f("#relatedContent").addClass("open");break;case"topicLeaf":f(".leadStory").prependTo("#articleBody");break;case"topics":f(".parentTopicHighlights").prependTo(".parentTopicSection").show();break;case"news":var d=f(".listTypeArchive");if(d.length>1){d.eq(0).hide().children("li").prependTo("#articleBody .listTypeArchive")}break}!function(){var k=f("#guideToc");if(k.length){var g="";var j;var h;var i=f(".articleSection").find("h2");i.each(function(l){j=f(this);h=j.closest(".articleSection");g+='<li><a href="#'+h.attr("id")+'">'+j.text()+"</a></li>";h.addClass("visibleSection")});if(g.length){k.show().children(".listTypeToc").empty().html(g)}}}();var a=f('<span id="headerTechtargetLogo" />');f("#headerLogoCompress").append(a);a.colorbox({iframe:true,href:"http://search400.techtarget.com/?vgnextfmt=portfolio",transition:"none",opacity:mo.lightboxOpacity,height:"825px",width:"825px"});f("#relatedSites").append('<span id="footerTechtargetLogo" />');if(f("#disqus_thread").length){f("#adPsl, .pageNav").appendTo("#article")}f(".carousel").carousel({navigation:false,pagination:true,autoPlay:true,autoPlaySpeed:10000});f(".filmstrip").filmstrip();f(".sliderStory").glider({controls:true,storySummary:true});f(".sliderPhoto").glider({controls:true,itemsToShow:7,showCurrent:true});f(".sliderVideo").glider({controls:true,playIcon:true});f(".leadStoryTypeText").leadStory({type:"text",autoPlay:true,autoPlaySpeed:10000});f(".leadStoryTypeInteractive").leadStory({type:"interactive",autoPlay:true,autoPlaySpeed:10000,stageSpeed:500,mouseEvent:"click",tracer:true});f(".figResizeable").graphicResizer({showToggle:true,resizeSpeed:600,mouseEvent:"click"});f("#showMoreRelatedContent").showMore({hiddenContent:"#relatedContentHide",callback:function(){f("#relatedContentHide").find(".articleColumns > ul").uniformHeights()},iconHtml:"<span></span>"});f("#articleHeaderHiddenPanelButton").showMore({hiddenContent:"#articleHeaderHiddenPanel"});f("#showMoreBlogroll").showMore({hiddenContent:"#blogrollHidden",iconHtml:"<span></span>"});f("#relatedSitesNav").tabList({callback:function(){f("#relatedSitesHeadlines").find(".rshCols").uniformHeights()},tabContent:f("#relatedSitesHeadlines").children("li")});f("#rssFilter").tabList({tabContent:f("#rssList").children("div")});f("#contributorTabsNav").tabList({tabContent:f("#contributorTabsContent").children("li")});f(".tooltipText").toolTips();if(mo.bodyId==="topicLeaf"){f("#topicsFilter").tabList({tabContent:f("#topicsList").children("div")})}if(mo.bodyId==="topicListing"){f("#topicsFilterTab-"+mo.getUrlParams().bucketCode).addClass("selected").append("<span></span>")}var b=function(){var g=mo.getReferrerKeywords();if(g===null){if(mo.siteName==="WhatIs"){return"Search our IT encyclopedia..."}else{return"SEARCH"}}else{return g}};f("#headerNavigationSearchTextbox, #footerNavigationSearchTextbox").textboxValueizer(b());!function(){var h=mo.stash.get("uiObj");if(!h){mo.saveUi()}else{if(mo.bodyId==="home"){return}var g=f("#articleBody");g.data({originalTextSize:g.css("font-size")});var i=h.textSize;switch(i){case 0:break;case 1:mo.changeTextSize(1);break;case 2:mo.changeTextSize(2);break}}}();!function(){var k=f(".listTypeCollapsibleContent"),j=f(".listTypeCollapsibleClose"),h=f(".listTypeCollapsible > li"),g=f(".listTypeCollapsibleOpenAll"),i=f("h5 a",h);k.each(function(l){if(f(this).children().size()>1){f(this).parent("li").addClass("hasChildTopics");g.show()}});i.bind("click",function(l){if(f(this).parent("h5").parent("li").hasClass("hasChildTopics")){l.preventDefault()}});j.bind("click",function(l){l.stopPropagation();l.preventDefault();f(this).parent(".listTypeCollapsibleContent").slideUp({duration:250,easing:"easeInCubic"}).parent("li").removeClass("open")});h.bind("click",function(m){var l=f(m.currentTarget);if(!l.hasClass("open")&&l.hasClass("hasChildTopics")){f(this).children(".listTypeCollapsibleContent").slideDown({duration:250,easing:"easeInCubic"}).parent("li").addClass("open")}});g.bind("click",function(m){m.preventDefault();var l=f(this).attr("title");if(f(this).hasClass("allExpanded")){f(this).text(f(this).attr("title")).removeClass("allExpanded").next(".listTypeCollapsible").children("li").children(".listTypeCollapsibleContent").slideUp({duration:250,easing:"easeInCubic"}).parent("li").removeClass("open")}else{f(this).attr("title",f(this).text()).text("Close all").addClass("allExpanded").next(".listTypeCollapsible").children("li.hasChildTopics").children(".listTypeCollapsibleContent").stop().slideDown({duration:250,easing:"easeInCubic"}).parent("li").addClass("open")}})}();f("a").filter(function(){return(/\b(builder|cnet|zdnet|cnetchannel|techrepublic|itpapers|news\.com)\.\w{2,4}\b/i).test(this.href)}).addClass("openInNewWindow");f(".openInNewWindow").click(function(g){g.preventDefault();window.open(this.href)});f('a[rel="pop-up"]').click(function(h){h.preventDefault();var g="height=350,width=350,scrollTo,resizable=1,scrollbars=1,location=0,left=300,top=150";window.open(this.href,"Popup",g)});f("img.track").css("display","none");if(mo.userAgent.indexOf("MSIE 7.0")>-1){if(mo.userAgent.indexOf("Trident/6.0")>-1||mo.userAgent.indexOf("Trident/5.0")>-1||mo.userAgent.indexOf("Trident/4.0")>-1){mo.displayNotice('We noticed that you are using Internet Explorer in Compatibility View (<a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie-9/features/compatibility-view" target="_new">?</a>). <strong>For the best experience, Compatibility View should be turned off.</strong>')}}if(f.browser.msie&&f.browser.version<9){f(".listTypeCollapsible").each(function(){f(this).find("> li:even").addClass("oddRow")})}if(f.browser.msie&&f.browser.version<8){f("#breadcrumbs ul li").not(":first-child").prepend("&gt;&nbsp;&nbsp;");f(".searchResultsSearch:first-child").css("margin","0 0 15px");f("#contentCompress").append('<div class="clear"></div>');var c=f("#headerNavigationSearchTextbox, #footerNavigationSearchTextbox");var e=f(c).css("background-image");c.focus(function(g){f(this).css("background-image","none")}).blur(function(g){f(this).css("background-image",e)});f(".listTypeTagCloud li").each(function(){if(f(this).is(":not(:last-child)")){f(this).css("margin-left","0").append(",&nbsp;&nbsp;")}})}});$(window).on("load",function(){!function(){var m=$("#comments");if(m.length){var s=m.find("#commentsList");var C=false;var I=0;var f='<li id="commentsNone"><p>There are currently no responses. <a href="#" class="callToAction commentsModalOpen">Be the first to tell us what you think.</a></p></li>';var H={commentList:"/vgn-ext-templating/techtarget/comments/list.json",commentPost:"/vgn-ext-templating/techtarget/comments/add.json",pollPost:"/vgn-ext-templating/techtarget/comments/poll/add.json"};var b={reference_id:m.data("commentReferenceId")||false,forumId:m.data("commentForumId")||false};var a="commentList";if(!b.reference_id||!b.forumId){return mo.log("error: data attributes missing from #comments?")}var r={};var E=m.find("#commentsModal");var y=E.find("#commentsModalForm");var B=y.find("#commentsModalFormMessage");var q=y.attr("action");var d=E.find("#commentsModalMessaging");var o=d.html();var F={noComment:"Please add a comment.",noRecaptcha:"Please enter the words in the recaptcha.",recaptchaFail:"The recaptcha code you entered was incorrect. Please try again.",serviceUnavailable:"This service is currently unavailable. Please try again later.",postRejected:"Your post has been rejected."};var u=false;var j=false;var G=$('<div id="userEngagement" />');var t="";var n=function(){var J=$.ajax({url:H.commentList,type:"GET",contentType:"application/json; charset=utf-8",jsonpCallback:a,dataType:"jsonp",data:$.param(b)});J.done(function(K){r=K;e(r)});J.fail(function(K,L){mo.log("Comments json request failed because: "+L);e()});m.show()};var e=function(J){if(typeof J!=="undefined"){if(J.hasOwnProperty("comments")&&J.comments!==""){if(C===false){C=true;s.empty()}s.prepend(v(J))}else{s.prepend(f)}if(J.hasOwnProperty("poll")&&J.poll!==""){u=true;l()}}else{s.prepend(f)}};var v=function(O){var K,N,L,P,J,M="";var Q=$.makeArray(O.comments);$.each(Q,function(){I++;K=this.user;N=this.message;L=moment(this.postDate);P=L.format("D MMM YYYY");J=L.format("h:mm A z");if(K==="Post"){var R=s.find(".commentUsername")[0];R=R.innerText||R.textContent;R=R.replace("Post ","");R=(Number(R)+1);if(isNaN(R)){R=""}K=K+" "+R.toString()}M+='<li><div class="commentMetadata"><span class="commentUsername">'+K+'</span><span class="commentDate">'+P+'</span><span class="commentDate">'+J+'</span><span class="commentReport"><a href="replaceMe" class="button secondaryButton report"><span class="icon"></span>Report</a></span></div><div class="commentBody"><p>'+N+"</p></div></li>"});return M};var w=function(){var J=y.find("#recaptcha_response_field");if($.trim(B.val())===""){i("noComment")}else{if($.trim(J.val())===""){i("noRecaptcha")}else{return true}}};var k=function(J){if(J.attr("disabled")){J.attr("disabled",false)}else{J.attr("disabled",true)}};var i=function(J){if(J.reset){d.html(o)}else{d.html("<p>"+F[J]+"</p>")}};var A=function(L){L.preventDefault();var J=$(this);k(J);if(w()){var K=$.ajax({url:H.commentPost,type:"POST",data:y.serialize()});K.done(function(M){if(M.success===true){e(M);k(J);$.colorbox.close()}else{k(J);i(M.error)}});K.fail(function(M,N){mo.log("Comment post request failed because: "+N)})}else{k(J)}};var D=function(M){M.preventDefault();var K=$(this).siblings(".commentUsername").text();var L={to:"editor@"+mo.siteName+".com",subject:"COMMENT REPORT: "+mo.articleTitle,body:K+" has been flagged on "+mo.articleTitle+".\n\nTo view this comment, visit: "+mo.pageUrl};var J="mailto:"+L.to+"?subject="+encodeURIComponent(L.subject)+"&body="+encodeURIComponent(L.body);window.location.href=J};var l=function(){G.append(z(r)).appendTo("body").on("click","#userEngagementClose",x).peekaboo();$("#userEngagementForm").on("click","label",function(){$("#userEngagementFormSubmit").animate({opacity:0.25},100,function(){k($(this))}).animate({opacity:1},100);$("#userEngagementForm").off("click","label")}).on("submit",{showPollResults:true},function(J){h(J);x();g(J)})};var z=function(N){var J=N.poll.question;var K=$.makeArray(N.poll.options);var M="";var L="";$.each(K,function(){L+='<label><input type="radio" name="ueAnswers" value="'+this.value+'" />'+this.label+"</label>"});M+='<span id="userEngagementClose"></span><form id="userEngagementForm"><legend>'+J+"</legend>"+L+'<button type="submit" id="userEngagementFormSubmit" class="button primaryButton" disabled="disabled">Submit</button></form><div id="userEngagementToComments"><a href="#comments">View Comments ('+I+")</a></div>";return M};var h=function(J){J.preventDefault()};var x=function(){G.dismiss()};var c=function(){p(r)};var p=function(R){var J=R.poll.question;var S=$.makeArray(R.poll.options);var M=[];var K=[];var P=0;$.each(S,function(){M.push(this.label);K.push(this.results);P+=this.results});if(P<1){return}var N=function(T,U,V){return Math.round(((T/U)*100)*Math.pow(10,V))/Math.pow(10,V)};var Q=$.map(M,function(U,T){return U+" ("+N(K[T],P,2)+"%)"});var O={cht:"p",chf:"bg,s,f1f1f100",chs:"196",chd:"t:"+K.join(","),chdl:Q.join("|"),chdls:"000000,11",chof:"png",chds:"a",chdlp:"bv"};var L="<h6>"+J+'</h6><img src="http://chart.apis.google.com/chart?'+$.param(O)+'" />';$("#commentsModalPollResults").append(L);E.addClass("showPollResults")};var g=function(J){J.preventDefault();if(J.data.showPollResults){c()}else{E.removeClass("showPollResults")}$.colorbox({onOpen:function(){mo.getRecaptcha("commentsModalFormRecaptcha",2,"white");B.val("").focus();E.show()},onCleanup:function(){if(typeof Recaptcha!=="undefined"){Recaptcha.destroy()}i({reset:true});E.hide()},inline:true,href:"#commentsModal",transition:"none",scrolling:false,opacity:mo.lightboxOpacity})};m.on("click",".commentsModalOpen",{showPollResults:false},g).on("click",".commentReport",D);y.on("click","#commentsModalFormSubmit",A);n()}}();!function(){var p=$("#contentTools");if(p.length){$("#contentTools-commentCount").find("span").text($("#commentsList").find("li").size());$("#contentTools-print").find("a").on("click",function(w){w.preventDefault();window.open(this.href)});var n=$(".textSizer");n.on("click",function(y){y.preventDefault();var w=$(this).parent("li");var x=w.attr("id");if(w.hasClass("activeSize")){return}switch(x){case"contentTools-textSizeSmall":mo.changeTextSize(0);break;case"contentTools-textSizeMedium":mo.changeTextSize(1);break;case"contentTools-textSizeLarge":mo.changeTextSize(2);break}}).show();$("#contentTools-email").on("click",function(y){y.preventDefault();var w="http://api.addthis.com/oexchange/0.8/forward/email/offer?";var x={pubid:"uxtechtarget",url:window.location.href,title:encodeURIComponent(document.title),email_template:"TechTargetSearchSites",ct:1};$.colorbox({iframe:true,opacity:mo.lightboxOpacity,height:"775px",initialHeight:"775px",width:"500px",initialWidth:"500px",href:w+$.param(x)})});var b=$("#socialMedia-addThis");if(b.length){var r=document.getElementById("socialMedia-addThis").childNodes[0];var g="http://s7.addthis.com/js/250/addthis_widget.js";var q={};var v={pubid:"uxtechtarget",async:true,domready:true,data_track_clickback:true,data_ga_tracker:"UA-18475716-1"};var g=$.ajax({url:g,cache:true,dataType:"script"}).done(function(){if(typeof addthis!=="undefined"){addthis.button(r,v,q);addthis.init();b.show()}})}var d=$("#socialMedia-plusoneButton");if(d.length){var h=document.getElementById("socialMedia-plusoneButton").childNodes[0];var u="https://apis.google.com/js/plusone.js";var s={size:"medium",annotation:"bubble",expandTo:"top"};var l=$.ajax({url:u,cache:true,dataType:"script"}).done(function(){if(typeof gapi!=="undefined"){gapi.plusone.render(h,s)}})}var i=$("#socialMedia-tweetButton");if(i.length){var k="http://platform.twitter.com/widgets.js";var o=$.ajax({url:k,cache:true,dataType:"script"})}var t=$("#socialMedia-facebookLike");if(t.length){var m={href:encodeURIComponent(window.location.href),layout:"button_count",show_faces:false,width:90,action:"like",font:"arial",colorscheme:"light",ref:""};var c=$("<iframe/>",{src:"http://www.facebook.com/plugins/like.php?"+$.param(m),scrolling:"no",frameborder:0,allowTransparency:true});t.append(c)}var j=$("#socialMedia-linkedInButton");if(j.length){var f=$("<script/>",{type:"IN/Share","data-url":window.location.href,"data-counter":"right"});var e="http://platform.linkedin.com/in.js";var a=$.ajax({url:e,dataType:"script"});j.append(f)}$("#socialMedia-linkedin a, #socialMedia-facebook a, #socialMedia-twitter a, #socialMedia-google a").on("click",function(x){x.preventDefault();var w=$(this).parent().attr("id");mo.getShortUrl(mo.pageUrl,function(){var D=encodeURIComponent($("body").data(mo.pageUrl));var C=encodeURIComponent(mo.articleTitle);var B="http://www.linkedin.com/shareArticle?mini=true&url="+D+"&title="+C;var z="http://www.facebook.com/share.php?u="+D+"&t="+C;var A="http://twitter.com/home?status=Reading "+C+D;var y="https://plus.google.com/share?url="+D;switch(w){case"socialMedia-linkedin":window.open(B);break;case"socialMedia-facebook":window.open(z);break;case"socialMedia-twitter":window.open(A);break;case"socialMedia-google":window.open(y);break}})});p.show()}}()});(function(a){a.fn.peekaboo=function(){var g=this;var h=g.width()+10;var i=g.height();var b=a("#sidebar");var j=a("#relatedContent");var e=a(window);var d=b.height()+b.offset().top+i;var c=j.offset().top;var f=Math.max(d,c);g.css({right:-h}).show();g.peekIn=function(k){g.stop().animate({right:0},{duration:500,easing:"easeOutCubic",complete:k})};g.peekOut=function(k){g.stop().animate({right:-h},{duration:150,easing:"easeInCubic",complete:k})};g.dismiss=function(){g.peekOut(function(){g.remove()});clearInterval(g.timer)};g.timer=setInterval(function(){var k=f-e.height();if(e.scrollTop()>k){g.peekIn()}else{g.peekOut()}},500)}})(jQuery);(function(a){a.fn.formHinter=function(){return this.each(function(){var c=a(this).children("li").children('input[type="text"]',"textarea");var f;var d;var e;var b;c.each(function(g){f=a(this);d=f.prev("label").text();f.attr("value",d).attr("title",d);f.focus(function(){e=a.trim(a(this).attr("value"));if(e===a(this).attr("title")){a(this).attr("value","")}});f.blur(function(){b=a.trim(a(this).attr("value"));if(b===""){a(this).attr("value",a(this).attr("title"))}})})})}})(jQuery);(function(a){a.fn.graphicResizer=function(b){var d={showToggle:true,resizeSpeed:500,mouseEvent:"click",callback:function(){}};var c=a.extend(d,b);return this.each(function(){var h=c;var i=a(this);var g=i.find(".toggleSize");var e=a('<span class="embiggen"><span class="icon"></span></span>');var f;if(h.showToggle){g.prepend(e)}g.on(h.mouseEvent,function(j){j.preventDefault();f=a(this);if(f.data("state")==="expanded"){i.removeClass("figureExpanded").animate({width:f.data("origWidth")+"px"},{duration:h.resizeSpeed,easing:"easeInCubic"},function(){b.callback.call(this)});e.toggleClass("embiggen smallify");f.data("state","closed")}else{i.addClass("figureExpanded").animate({width:"100%"},{duration:h.resizeSpeed,easing:"easeOutCubic"},function(){b.callback.call(this)});e.toggleClass("embiggen smallify");f.data("state","expanded");f.data("origWidth",f.width())}})})}})(jQuery);(function(a){a.fn.leadStory=function(b){var d={type:"static",mouseEvent:"mouseenter",tracer:false,stageSpeed:300,autoPlay:true,autoPlaySpeed:3000};var c=a.extend(d,b);return this.each(function(){var g=c;var l=a(this);var u=a(".leadStoryStage",l).empty();var n=a(".listTypeLeadStory",l);var e=a("li",n);var t=e.eq(0);var q=e.length;var i;var h;var m=l.attr("data-autoplay");var p=0;t.addClass("active");function k(){i=setTimeout(function(){j()},g.autoPlaySpeed)}function j(){var o;if(p<q-1){p++;o=a(".active",l).next("li")}else{p=0;o=a("li:first-child",l)}s(o);k()}function s(o){u.children().stop().animate({opacity:"0"},g.stageSpeed,function(){u.empty();a(".leadStoryInfo",o).clone().appendTo(u);u.children().animate({opacity:"1"},g.stageSpeed)});e.filter(".active").removeClass("active");a(o).addClass("active");if(g.tracer){f.getToActive()}}function r(o,v){if(q===1){return}if(g.mouseEvent==="click"){v.preventDefault()}if(h){clearTimeout(i);k()}p=e.index(o);s(o)}if(q===0){l.css("display","none");return false}if(m){if(m>0){g.autoPlay=true;g.autoPlaySpeed=m}else{g.autoPlay=false;g.autoPlaySpeed=0}}if(g.type==="static"){return}if(g.type==="text"){u.height(l.height());t.children(".leadStoryInfo").clone().appendTo(u);if(g.autoPlay){if(q>1){h=true;k()}}e.on(g.mouseEvent,function(o){r(this,o)})}if(g.type==="interactive"){t.children(".leadStoryInfo").clone().appendTo(u);if(g.autoPlay){if(q>1){h=true;k()}}e.on(g.mouseEvent,function(o){r(this,o)})}if(g.tracer){var f=function(){var w=a('<span class="tracer" />');var x=t.outerWidth();var o;var v;l.append(w);e.on("mouseenter",function(A){z(a(this))});n.on("mouseleave",function(A){z(e.filter(".active"))});var z=function(A){o=A.position();v=(o.left+((x/2)-4)).toString();w.stop().animate({left:v},{duration:200,easing:"easeInCubic"})};var y=function(){z(e.filter(".active"))};return{getToActive:y}}()}})}})(jQuery);(function(a){a.fn.megaMenu=function(b){var c={showDropDowns:true,showDropDownArrows:true,dropDownDelay:300,navLinkPadding:10};var e=a.extend(c,b);var d={container:this,navItems:a(".mmNavItem",this),navLinks:a(".mmNavLink",this),navLinkSpace:0,navLinkWidth:0,navLinkWidthTotal:0,navOffset:a("#headerNavigationCompress").offset(),navWidth:a("#headerNavigationCompress").outerWidth(true),dropDown:a(".mmContentCols",this),dropDownWidth:0,dropDownColWidth:0};d.navLinks.each(function(){if(a(this).parent("li").hasClass("mmNoDropdown")){d.navLinkSpace=Math.round(e.navLinkPadding*0.33)}else{if(a(this).parent("li").hasClass("mmNavItemVendor")){a(this).next(".mmContent").addClass("mmDropDownCentered")}else{d.navLinkSpace=e.navLinkPadding;if(e.showDropDownArrows){a(this).parent("li").append('<span class="mmDropDownArrow" />')}}}d.navLinkWidth=(a(this).outerWidth(true)+d.navLinkSpace);d.navLinkWidthTotal=d.navLinkWidthTotal+d.navLinkWidth;a(this).parent("li").width(d.navLinkWidth)});d.navLinks.focus(function(){a(this).parent("li").addClass("mmNavItemFocus")}).blur(function(){a(this).parent("li").removeClass("mmNavItemFocus")});if(e.showDropDowns){d.navItems.hoverIntent({over:function(){a("#headerNavigation .mmShow , #footerNavigation .mmShow").removeClass("mmShow");a(this).addClass("mmShow");a(".makeCols").uniformHeights()},timeout:e.dropDownDelay,out:function(){a(this).removeClass("mmShow")}});d.dropDown.each(function(){d.dropDownWidth=0;a(this).children("li").each(function(l){d.dropDownColWidth=parseInt(a(this).width(),10);if(!isNaN(d.dropDownColWidth)){d.dropDownWidth+=(d.dropDownColWidth+24)}});var i=a(this).parent("div");i.css("width",(d.dropDownWidth>0)?d.dropDownWidth+"px":"auto");if(i.hasClass("mmDropDownCentered")){var k=(d.navWidth-d.dropDownWidth)/2;var j=d.navOffset.left+k;i.offset({left:j})}var h=a(this).children(".mmColSubcol");if(h.length){var g=h.children("ul").children("li");var f;if(g.length===2){h.css("width","375px");f=a(this).width()-185;a(this).parent("div").width(f+"px")}else{if(g.length===1){h.css("width","180px");f=a(this).width()-375;a(this).parent("div").width(f+"px")}else{return}}}})}}})(jQuery);(function(a){a.fn.showMore=function(b){var d={toggleClass:"clickToClose",showSpeed:400,hideSpeed:400,mouseEvent:"click",hiddenContent:"",iconHtml:"",callback:function(){}};var c=a.extend(d,b);return this.each(function(){var k=c;var g=a(this).find("a");var e=g.attr("data-closeText");var h;var i=a(k.hiddenContent);var f=a.trim(i.text());function j(){h=g.data("openText");if(g.hasClass(k.toggleClass)){g.removeClass(k.toggleClass).html(h);i.slideUp({duration:k.hideSpeed,easing:"easeOutQuart"})}else{if(!h){g.data("openText",g.html())}if(k.iconHtml){e=k.iconHtml+e}g.addClass(k.toggleClass).html(e);i.slideDown({duration:k.showSpeed,easing:"easeOutSine"})}}if(f!==""){if(i.hasClass("open")||i.parent().hasClass("open")){return}if(g.hasClass("hide")){return}g.css("display","inline-block");g.css("width",g.width()+1);if(!e){e="Close"}g.on(k.mouseEvent,function(l){l.preventDefault();j();b.callback.call(this)})}})}})(jQuery);(function(a){a.fn.tabList=function(b){var c={tabContent:"",icon:true,callback:function(){},mouseEvent:"click"};var d=a.extend(c,b);return this.each(function(){var e=a(this).children("li");var i=e.children("a");var f=d.tabContent;function g(j){e.filter(".selected").removeClass("selected");a(j).parent("li").addClass("selected")}function h(j){if(j==="#all"){f.show()}else{f.hide().filter(j).fadeIn("fast")}}i.on(d.mouseEvent,function(j){j.preventDefault();g(j.target);h(String(this.hash));d.callback.call(this)});if(d.icon){i.append("<span></span>")}if(e.hasClass("selected")){h(e.filter(".selected").children("a").attr("href"))}else{e.first().addClass("selected")}})}})(jQuery);(function(a){a.fn.textboxValueizer=function(b){return this.each(function(){var c=a(this);if(b&&b.length){c.attr("value",b);c.focus(function(){var d=a.trim(c.attr("value"));if(d===b){c.attr("value","")}});c.blur(function(){var d=a.trim(c.attr("value"));if(d===""){c.attr("value",b)}})}})}})(jQuery);(function(a){a.fn.toolTips=function(){var c=a('<div id="tooltip"></div>').hide().prependTo("body");var f;var b;var e;var d={delay:500,title:"",hasTitle:true,element:null,position:{top:0,left:0}};var g;this.on({click:function(h){h.preventDefault()},mouseenter:function(h){g=a(this).offset();d.position.top=g.top-3;if(c.outerWidth()>h.pageX){d.position.left=g.left+16}else{d.position.left=g.left-(c.outerWidth()+5)}d.element=this;f=a(this).attr("data-tooltipId");if(a(this).attr("title")!==""||undefined){d.hasTitle=true;d.title=this.title;if(d.title==="<!-- No Summary Found -->"){d.title="Click to read more"}this.title=""}else{if(f!==undefined){d.hasTitle=false;d.title=a("#"+f).html()}else{d.hasTitle=false;return}}b=window.setTimeout(function(){c.css({top:d.position.top,left:d.position.left}).html(d.title).fadeIn("fast",function(){window.clearTimeout(e);e=window.setTimeout(function(){a(document).trigger("ontooltiphover",[d.element])},1000)})},d.delay)},mouseleave:function(h){c.fadeOut("fast");window.clearTimeout(b);window.clearTimeout(e);if(d.hasTitle===true){this.title=d.title}}},this)}})(jQuery);(function(a){a.fn.uniformHeights=function(){return this.each(function(){var b=a(this);var c;var d=0;b.children().each(function(e){c=a(this);if(c.height()>d){d=c.height()}});b.children().css({"min-height":d})})}})(jQuery);(function(a){a.fn.carousel=function(b){var c={navigation:false,pagination:false,animateHeight:true,autoPlay:true,autoPlaySpeed:3000};var b=a.extend(c,b);return this.each(function(){var e=b;var n=a(this);var f=n.children(".carouselWindow").children(".listTypeCarousel");var l=f.find("> li");var g=l.length;var p=l.outerWidth();var m;var d=0;function j(){m=setTimeout(function(){i()},e.autoPlaySpeed)}function i(){k.removeClass("current");k.eq(d).addClass("current");l.hide();l.eq(d).fadeIn();if(d+1<g){d=d+1}else{d=0}j()}if(g<2){e.navigation=false;e.pagination=false;e.autoPlay=false}if(e.navigation){}if(e.pagination){var k="";var h;l.each(function(o){k+='<a href="#">'+o+"</a>"});k=a(k);k.eq(0).addClass("current");k.on("click",function(o){o.preventDefault();h=k.index(this);k.removeClass("current");l.hide();l.eq(h).fadeIn();d=h;a(this).addClass("current")});k.insertAfter(f).wrapAll('<div class="carouselPagination" />');if(e.autoPlay){i()}}})}})(jQuery);(function(a){a.fn.filmstrip=function(b){var c={autoPlay:false,speed:800,itemClick:function(){}};var b=a.extend(c,b);return this.each(function(){var r=b;var d=a(this);var l=d.width();var h=d.children(".filmstripWindow").children(".listTypeFilmstrip");var q=h.find("> li");var i=q.outerWidth();var u=q.size();var f=i*u;var v=q[0];var m=q[u-1];var g=false;var p=Math.round(l/i);var s=p*i;var x=Math.ceil(u/p);var k=1;var e=(u<=p)?false:true;h.width(f);q.on("click",function(o){b.itemClick.call(this)});function t(){if(k===1){n.removeClass("disabled");j.addClass("disabled")}else{if(k===x){j.removeClass("disabled");n.addClass("disabled")}else{j.removeClass("disabled");n.removeClass("disabled")}}}function y(o){if(!g){if(o==="right"){g=true;k++;h.stop().animate({left:"-="+s},{duration:r.speed,easing:"easeOutExpo",complete:function(){g=false;t()}})}if(o==="left"){g=true;k--;h.stop().animate({left:"+="+s},{duration:r.speed,easing:"easeOutExpo",complete:function(){g=false;t()}})}}}if(e){var j=a("<a>",{"class":"filmstripPrevious disabled",href:"#",title:"Previous",text:"Previous"});var n=a("<a>",{"class":"filmstripNext",href:"#",title:"Next",text:"Next"});var w=a("<div/>",{"class":"filmstripNavigation"}).append(j,n).appendTo(d);w.delegate("a","click",function(o){o.preventDefault();if(a(this).hasClass("disabled")){return}else{if(a(this).hasClass("filmstripPrevious")){y("left")}else{if(a(this).hasClass("filmstripNext")){y("right")}}}})}})}})(jQuery);(function(a){a.fn.glider=function(b){var l={itemsToShow:4,controls:false,storySummary:false,showCurrent:false,playIcon:false};var s=a.extend(l,b);var p=this.children("ul");var r=p.children("li");var c=r.outerWidth(true);var v=r.length;var n=c*v;var h=15;var g={left:0,right:-((c*v)-p.outerWidth())};p.width(n);function q(){if(p.position().left<g.left){p.css({left:p.position().left+h})}}function j(){if(p.position().left>g.right){p.css({left:p.position().left-h})}}if(r.length<=s.itemsToShow){s.controls=false}if(s.playIcon){r.find(".sliderThumbnailImage").append("<span />")}if(s.controls){var e=a('<div class="sliderConrols"></div>');var x=a('<a href="#" class="sliderPrevious"></a>');var m=a('<a href="#" class="sliderNext"></a>');var w=a('<a href="#" class="sliderHandle"></a>');var i=30;var u;this.after(e.append(x,m));x.on({click:function(o){o.preventDefault()},mousedown:function(o){u=window.setInterval(q,i)},mouseup:function(o){window.clearInterval(u)}});m.on({click:function(o){o.preventDefault()},mousedown:function(o){u=window.setInterval(j,i)},mouseup:function(o){window.clearInterval(u)}})}if(s.storySummary){var k;var d=r.children("a").children(".sliderThumbnailText").css("top");var t="0";var f=400;r.on("mouseover mouseout",function(o){k=a(this).children("a").children(".sliderThumbnailText");if(o.type==="mouseover"){k.stop().animate({top:t},{duration:f,easing:"easeOutQuint"})}if(o.type==="mouseout"){k.stop().animate({top:d},{duration:f,easing:"easeInQuint"})}})}}})(jQuery);
/*!
 * Moment.js - Version 1.3.0 - (c) 2011 Tim Wood - http://momentjs.com/
 * Moment.js is freely distributable under the terms of the MIT license.
 */
(function(b,f){var A,z=Math.round,n={},r=(typeof module!=="undefined"),C="months|monthsShort|monthsParse|weekdays|weekdaysShort|longDateFormat|calendar|relativeTime|ordinal|meridiem".split("|"),v,e=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|dddd?|do?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|zz?|ZZ?|LT|LL?L?L?)/g,j=/[^A-Z]/g,t=/\([A-Za-z ]+\)|:[0-9]{2} [A-Z]{3} /g,k=/(\\)?(MM?M?M?|dd?d?d|DD?D?D?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|ZZ?|T)/g,B=/(\\)?([0-9]+|([a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+|([\+\-]\d\d:?\d\d))/gi,u=/([\+\-]|\d\d)/gi,w="1.3.0",s="Month|Date|Hours|Minutes|Seconds|Milliseconds".split("|");function x(i){this._d=i}function m(E,D){var i=E+"";while(i.length<D){i="0"+i}return i}function c(H,L,D,G){var F=(typeof L==="string"),K=F?{}:L,i,J,I,E;if(F&&G){K[L]=G}i=(K.ms||K.milliseconds||0)+(K.s||K.seconds||0)*1000+(K.m||K.minutes||0)*60000+(K.h||K.hours||0)*3600000;J=(K.d||K.days||0)+(K.w||K.weeks||0)*7;I=(K.M||K.months||0)+(K.y||K.years||0)*12;if(i){H.setTime(+H+i*D)}if(J){H.setDate(H.getDate()+J*D)}if(I){E=H.getDate();H.setDate(1);H.setMonth(H.getMonth()+I*D);H.setDate(Math.min(new b(H.getFullYear(),H.getMonth()+1,0).getDate(),E))}return H}function o(i){return Object.prototype.toString.call(i)==="[object Array]"}function h(i){return new b(i[0],i[1]||0,i[2]||1,i[3]||0,i[4]||0,i[5]||0,i[6]||0)}function q(E,M){var F=new x(E),L=F.month(),i=F.date(),I=F.year(),K=F.day(),O=F.hours(),G=F.minutes(),D=F.seconds(),H=F.zone(),J=A.ordinal,P=A.meridiem;function N(S){var R,Q;switch(S){case"M":return L+1;case"Mo":return(L+1)+J(L+1);case"MM":return m(L+1,2);case"MMM":return A.monthsShort[L];case"MMMM":return A.months[L];case"D":return i;case"Do":return i+J(i);case"DD":return m(i,2);case"DDD":R=new b(I,L,i);Q=new b(I,0,1);return ~~(((R-Q)/86400000)+1.5);case"DDDo":R=N("DDD");return R+J(R);case"DDDD":return m(N("DDD"),3);case"d":return K;case"do":return K+J(K);case"ddd":return A.weekdaysShort[K];case"dddd":return A.weekdays[K];case"w":R=new b(I,L,i-K+5);Q=new b(R.getFullYear(),0,4);return ~~((R-Q)/86400000/7+1.5);case"wo":R=N("w");return R+J(R);case"ww":return m(N("w"),2);case"YY":return m(I%100,2);case"YYYY":return I;case"a":return O>11?P.pm:P.am;case"A":return O>11?P.PM:P.AM;case"H":return O;case"HH":return m(O,2);case"h":return O%12||12;case"hh":return m(O%12||12,2);case"m":return G;case"mm":return m(G,2);case"s":return D;case"ss":return m(D,2);case"zz":case"z":return(E.toString().match(t)||[""])[0].replace(j,"");case"Z":return(H>0?"+":"-")+m(~~(Math.abs(H)/60),2)+":"+m(~~(Math.abs(H)%60),2);case"ZZ":return(H>0?"+":"-")+m(~~(10*Math.abs(H)/6),4);case"L":case"LL":case"LLL":case"LLLL":case"LT":return q(E,A.longDateFormat[S]);default:return S.replace(/(^\[)|(\\)|\]$/g,"")}}return M.replace(e,N)}function p(I,J){var M=[0,0,1,0,0,0,0],G=0,L=0,E=false,K=I.match(B),N=J.match(k),H,D;function F(P,O){var i;switch(P){case"M":case"MM":M[1]=~~O-1;break;case"MMM":case"MMMM":for(i=0;i<12;i++){if(A.monthsParse[i].test(O)){M[1]=i;break}}break;case"D":case"DD":case"DDD":case"DDDD":M[2]=~~O;break;case"YY":O=~~O;M[0]=O+(O>70?1900:2000);break;case"YYYY":M[0]=~~Math.abs(O);break;case"a":case"A":D=(O.toLowerCase()==="pm");break;case"H":case"HH":case"h":case"hh":M[3]=~~O;break;case"m":case"mm":M[4]=~~O;break;case"s":case"ss":M[5]=~~O;break;case"Z":case"ZZ":E=true;i=O.match(u);if(i[1]){G=~~i[1]}if(i[2]){L=~~i[2]}if(i[0]==="-"){G=-G;L=-L}break}}for(H=0;H<N.length;H++){F(N[H],K[H])}if(D&&M[3]<12){M[3]+=12}if(D===false&&M[3]===12){M[3]=0}M[3]+=G;M[4]+=L;return E?new b(b.UTC.apply({},M)):h(M)}function l(H,G){var D=Math.min(H.length,G.length),E=Math.abs(H.length-G.length),I=0,F;for(F=0;F<D;F++){if(~~H[F]!==~~G[F]){I++}}return I+E}function d(H,I){var D,K=H.match(B),F=[],L=99,G,E,J;for(G=0;G<I.length;G++){E=p(H,I[G]);J=l(K,q(E,I[G]).match(B));if(J<L){L=J;D=E}}return D}A=function(i,E){if(i===null){return null}var D;if(i&&i._d instanceof b){D=new b(+i._d)}else{if(E){if(o(E)){D=d(i,E)}else{D=p(i,E)}}else{D=i===f?new b():i instanceof b?i:o(i)?h(i):new b(i)}}return new x(D)};A.version=w;A.lang=function(F,D){var E,I,G,H=[];if(D){for(E=0;E<12;E++){H[E]=new RegExp("^"+D.months[E]+"|^"+D.monthsShort[E].replace(".",""),"i")}D.monthsParse=D.monthsParse||H;n[F]=D}if(n[F]){for(E=0;E<C.length;E++){I=C[E];A[I]=n[F][I]||A[I]}}else{if(r){G=require("./lang/"+F);A.lang(F,G)}}};A.lang("en",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},meridiem:{AM:"AM",am:"am",PM:"PM",pm:"pm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinal:function(D){var i=D%10;return(~~(D%100/10)===1)?"th":(i===1)?"st":(i===2)?"nd":(i===3)?"rd":"th"}});function a(D,F,E){var i=A.relativeTime[D];return(typeof i==="function")?i(F||1,!!E,D):i.replace(/%d/i,F||1)}function y(E,H){var I=z(Math.abs(E)/1000),G=z(I/60),i=z(G/60),J=z(i/24),F=z(J/365),D=I<45&&["s",I]||G===1&&["m"]||G<45&&["mm",G]||i===1&&["h"]||i<22&&["hh",i]||J===1&&["d"]||J<=25&&["dd",J]||J<=45&&["M"]||J<345&&["MM",z(J/30)]||F===1&&["y"]||["yy",F];D[2]=H;return a.apply({},D)}A.fn=x.prototype={clone:function(){return A(this)},valueOf:function(){return +this._d},"native":function(){return this._d},toString:function(){return this._d.toString()},toDate:function(){return this._d},format:function(i){return q(this._d,i)},add:function(i,D){this._d=c(this._d,i,1,D);return this},subtract:function(i,D){this._d=c(this._d,i,-1,D);return this},diff:function(I,E,K){var i=A(I),J=this._d-i._d,G=this.year()-i.year(),F=this.month()-i.month(),H=this.day()-i.day(),D;if(E==="months"){D=G*12+F+H/30}else{if(E==="years"){D=G+F/12}else{D=E==="seconds"?J/1000:E==="minutes"?J/60000:E==="hours"?J/3600000:E==="days"?J/86400000:E==="weeks"?J/604800000:E==="days"?J/3600:J}}return K?D:z(D)},from:function(F,E){var G=this.diff(F),i=A.relativeTime,D=y(G,E);return E?D:(G<=0?i.past:i.future).replace(/%s/i,D)},fromNow:function(i){return this.from(A(),i)},calendar:function(){var D=A(),i=A([D.year(),D.month(),D.date()]),H=this.diff(i,"days",true),G=A.calendar,F=G.sameElse,E=H<-6?F:H<-1?G.lastWeek:H<0?G.lastDay:H<1?G.sameDay:H<2?G.nextDay:H<7?G.nextWeek:F;return this.format(typeof E==="function"?E.apply(this):E)},isLeapYear:function(){var i=this.year();return(i%4===0&&i%100!==0)||i%400===0},isDST:function(){return this.zone()!==A([this.year()]).zone()},day:function(D){var i=this._d.getDay();return D==null?i:this.add({d:D-i})}};function g(i,D){A.fn[i]=function(E){if(E!=null){this._d["set"+D](E);return this}else{return this._d["get"+D]()}}}for(v=0;v<s.length;v++){g(s[v].toLowerCase(),s[v])}g("year","FullYear");A.fn.zone=function(){return this._d.getTimezoneOffset()};if(r){module.exports=A}if(typeof window!=="undefined"){window.moment=A}})(Date);
/*!
 * ColorBox v1.3.19 - jQuery lightbox plugin; (c) 2011 Jack Moore - jacklmoore.com
 * License: http://www.opensource.org/licenses/mit-license.php
 */
(function(J,l,W){var K={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,fastIframe:true,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:true,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,returnFocus:true,reposition:true,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true,top:false,bottom:false,left:false,right:false,fixed:false,data:undefined},x="colorbox",S="cbox",r=S+"Element",V=S+"_open",e=S+"_load",U=S+"_complete",u=S+"_cleanup",ac=S+"_closed",i=S+"_purge",v=!J.support.opacity&&!J.support.style,af=v&&!W.XMLHttpRequest,aa=S+"_IE6",Q,ag,ah,d,H,p,b,P,c,Z,N,k,h,o,t,X,s,R,z,B,ae,ai,m,g,a,w,I,n,D,Y,M,A,L,ad="div",ab;function G(aj,am,al){var ak=l.createElement(aj);if(am){ak.id=S+am}if(al){ak.style.cssText=al}return J(ak)}function E(ak){var aj=c.length,al=(I+ak)%aj;return(al<0)?aj+al:al}function O(aj,ak){return Math.round((/%/.test(aj)?((ak==="x"?Z.width():Z.height())/100):1)*parseInt(aj,10))}function C(aj){return ae.photo||/\.(gif|png|jpe?g|bmp|ico)((#|\?).*)?$/i.test(aj)}function T(){var aj;ae=J.extend({},J.data(w,x));for(aj in ae){if(J.isFunction(ae[aj])&&aj.slice(0,2)!=="on"){ae[aj]=ae[aj].call(w)}}ae.rel=ae.rel||w.rel||"nofollow";ae.href=ae.href||J(w).attr("href");ae.title=ae.title||w.title;if(typeof ae.href==="string"){ae.href=J.trim(ae.href)}}function F(aj,ak){J.event.trigger(aj);if(ak){ak.call(w)}}function y(){var ak,am=S+"Slideshow_",an="click."+S,ao,al,aj;if(ae.slideshow&&c[1]){ao=function(){X.text(ae.slideshowStop).unbind(an).bind(U,function(){if(ae.loop||c[I+1]){ak=setTimeout(L.next,ae.slideshowSpeed)}}).bind(e,function(){clearTimeout(ak)}).one(an+" "+u,al);ag.removeClass(am+"off").addClass(am+"on");ak=setTimeout(L.next,ae.slideshowSpeed)};al=function(){clearTimeout(ak);X.text(ae.slideshowStart).unbind([U,e,u,an].join(" ")).one(an,function(){L.next();ao()});ag.removeClass(am+"on").addClass(am+"off")};if(ae.slideshowAuto){ao()}else{al()}}else{ag.removeClass(am+"off "+am+"on")}}function f(aj){if(!M){w=aj;T();c=J(w);I=0;if(ae.rel!=="nofollow"){c=J("."+r).filter(function(){var ak=J.data(this,x).rel||this.rel;return(ak===ae.rel)});I=c.index(w);if(I===-1){c=c.add(w);I=c.length-1}}if(!D){D=Y=true;ag.show();if(ae.returnFocus){J(w).blur().one(ac,function(){J(this).focus()})}Q.css({opacity:+ae.opacity,cursor:ae.overlayClose?"pointer":"auto"}).show();ae.w=O(ae.initialWidth,"x");ae.h=O(ae.initialHeight,"y");L.position();if(af){Z.bind("resize."+aa+" scroll."+aa,function(){Q.css({width:Z.width(),height:Z.height(),top:Z.scrollTop(),left:Z.scrollLeft()})}).trigger("resize."+aa)}F(V,ae.onOpen);B.add(o).hide();z.html(ae.close).show()}L.load(true)}}function q(){if(!ag&&l.body){ab=false;Z=J(W);ag=G(ad).attr({id:x,"class":v?S+(af?"IE6":"IE"):""}).hide();Q=G(ad,"Overlay",af?"position:absolute":"").hide();ah=G(ad,"Wrapper");d=G(ad,"Content").append(N=G(ad,"LoadedContent","width:0; height:0; overflow:hidden"),h=G(ad,"LoadingOverlay").add(G(ad,"LoadingGraphic")),o=G(ad,"Title"),t=G(ad,"Current"),s=G(ad,"Next"),R=G(ad,"Previous"),X=G(ad,"Slideshow").bind(V,y),z=G(ad,"Close"));ah.append(G(ad).append(G(ad,"TopLeft"),H=G(ad,"TopCenter"),G(ad,"TopRight")),G(ad,false,"clear:left").append(p=G(ad,"MiddleLeft"),d,b=G(ad,"MiddleRight")),G(ad,false,"clear:left").append(G(ad,"BottomLeft"),P=G(ad,"BottomCenter"),G(ad,"BottomRight"))).find("div div").css({"float":"left"});k=G(ad,false,"position:absolute; width:9999px; visibility:hidden; display:none");B=s.add(R).add(t).add(X);J(l.body).append(Q,ag.append(ah,k))}}function j(){if(ag){if(!ab){ab=true;ai=H.height()+P.height()+d.outerHeight(true)-d.height();m=p.width()+b.width()+d.outerWidth(true)-d.width();g=N.outerHeight(true);a=N.outerWidth(true);ag.css({"padding-bottom":ai,"padding-right":m});s.click(function(){L.next()});R.click(function(){L.prev()});z.click(function(){L.close()});Q.click(function(){if(ae.overlayClose){L.close()}});J(l).bind("keydown."+S,function(ak){var aj=ak.keyCode;if(D&&ae.escKey&&aj===27){ak.preventDefault();L.close()}if(D&&ae.arrowKey&&c[1]){if(aj===37){ak.preventDefault();R.click()}else{if(aj===39){ak.preventDefault();s.click()}}}});J("."+r,l).live("click",function(aj){if(!(aj.which>1||aj.shiftKey||aj.altKey||aj.metaKey)){aj.preventDefault();f(this)}})}return true}return false}if(J.colorbox){return}J(q);L=J.fn[x]=J[x]=function(aj,al){var ak=this;aj=aj||{};q();if(j()){if(!ak[0]){if(ak.selector){return ak}ak=J("<a/>");aj.open=true}if(al){aj.onComplete=al}ak.each(function(){J.data(this,x,J.extend({},J.data(this,x)||K,aj))}).addClass(r);if((J.isFunction(aj.open)&&aj.open.call(ak))||aj.open){f(ak[0])}}return ak};L.position=function(ak,aj){var an=0,am=0,ap=ag.offset(),al=Z.scrollTop(),ao=Z.scrollLeft();Z.unbind("resize."+S);ag.css({top:-90000,left:-90000});if(ae.fixed&&!af){ap.top-=al;ap.left-=ao;ag.css({position:"fixed"})}else{an=al;am=ao;ag.css({position:"absolute"})}if(ae.right!==false){am+=Math.max(Z.width()-ae.w-a-m-O(ae.right,"x"),0)}else{if(ae.left!==false){am+=O(ae.left,"x")}else{am+=Math.round(Math.max(Z.width()-ae.w-a-m,0)/2)}}if(ae.bottom!==false){an+=Math.max(Z.height()-ae.h-g-ai-O(ae.bottom,"y"),0)}else{if(ae.top!==false){an+=O(ae.top,"y")}else{an+=Math.round(Math.max(Z.height()-ae.h-g-ai,0)/2)}}ag.css({top:ap.top,left:ap.left});ak=(ag.width()===ae.w+a&&ag.height()===ae.h+g)?0:ak||0;ah[0].style.width=ah[0].style.height="9999px";function aq(ar){H[0].style.width=P[0].style.width=d[0].style.width=ar.style.width;d[0].style.height=p[0].style.height=b[0].style.height=ar.style.height}ag.dequeue().animate({width:ae.w+a,height:ae.h+g,top:an,left:am},{duration:ak,complete:function(){aq(this);Y=false;ah[0].style.width=(ae.w+a+m)+"px";ah[0].style.height=(ae.h+g+ai)+"px";if(ae.reposition){setTimeout(function(){Z.bind("resize."+S,L.position)},1)}if(aj){aj()}},step:function(){aq(this)}})};L.resize=function(aj){if(D){aj=aj||{};if(aj.width){ae.w=O(aj.width,"x")-a-m}if(aj.innerWidth){ae.w=O(aj.innerWidth,"x")}N.css({width:ae.w});if(aj.height){ae.h=O(aj.height,"y")-g-ai}if(aj.innerHeight){ae.h=O(aj.innerHeight,"y")}if(!aj.innerHeight&&!aj.height){N.css({height:"auto"});ae.h=N.height()}N.css({height:ae.h});L.position(ae.transition==="none"?0:ae.speed)}};L.prep=function(ak){if(!D){return}var an,al=ae.transition==="none"?0:ae.speed;N.remove();N=G(ad,"LoadedContent").append(ak);function aj(){ae.w=ae.w||N.width();ae.w=ae.mw&&ae.mw<ae.w?ae.mw:ae.w;return ae.w}function am(){ae.h=ae.h||N.height();ae.h=ae.mh&&ae.mh<ae.h?ae.mh:ae.h;return ae.h}N.hide().appendTo(k.show()).css({width:aj(),overflow:ae.scrolling?"auto":"hidden"}).css({height:am()}).prependTo(d);k.hide();J(n).css({"float":"none"});if(af){J("select").not(ag.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(u,function(){this.style.visibility="inherit"})}an=function(){var ay,av,aw=c.length,at,ax="frameBorder",ar="allowTransparency",ap,ao,au;if(!D){return}function aq(){if(v){ag[0].style.removeAttribute("filter")}}ap=function(){clearTimeout(A);h.hide();F(U,ae.onComplete)};if(v){if(n){N.fadeIn(100)}}o.html(ae.title).add(N).show();if(aw>1){if(typeof ae.current==="string"){t.html(ae.current.replace("{current}",I+1).replace("{total}",aw)).show()}s[(ae.loop||I<aw-1)?"show":"hide"]().html(ae.next);R[(ae.loop||I)?"show":"hide"]().html(ae.previous);if(ae.slideshow){X.show()}if(ae.preloading){ay=[E(-1),E(1)];while(av=c[ay.pop()]){ao=J.data(av,x).href||av.href;if(J.isFunction(ao)){ao=ao.call(av)}if(C(ao)){au=new Image();au.src=ao}}}}else{B.hide()}if(ae.iframe){at=G("iframe")[0];if(ax in at){at[ax]=0}if(ar in at){at[ar]="true"}at.name=S+(+new Date());if(ae.fastIframe){ap()}else{J(at).one("load",ap)}at.src=ae.href;if(!ae.scrolling){at.scrolling="no"}J(at).addClass(S+"Iframe").appendTo(N).one(i,function(){at.src="//about:blank"})}else{ap()}if(ae.transition==="fade"){ag.fadeTo(al,1,aq)}else{aq()}};if(ae.transition==="fade"){ag.fadeTo(al,0,function(){L.position(0,an)})}else{L.position(al,an)}};L.load=function(al){var ak,am,aj=L.prep;Y=true;n=false;w=c[I];if(!al){T()}F(i);F(e,ae.onLoad);ae.h=ae.height?O(ae.height,"y")-g-ai:ae.innerHeight&&O(ae.innerHeight,"y");ae.w=ae.width?O(ae.width,"x")-a-m:ae.innerWidth&&O(ae.innerWidth,"x");ae.mw=ae.w;ae.mh=ae.h;if(ae.maxWidth){ae.mw=O(ae.maxWidth,"x")-a-m;ae.mw=ae.w&&ae.w<ae.mw?ae.w:ae.mw}if(ae.maxHeight){ae.mh=O(ae.maxHeight,"y")-g-ai;ae.mh=ae.h&&ae.h<ae.mh?ae.h:ae.mh}ak=ae.href;A=setTimeout(function(){h.show()},100);if(ae.inline){G(ad).hide().insertBefore(J(ak)[0]).one(i,function(){J(this).replaceWith(N.children())});aj(J(ak))}else{if(ae.iframe){aj(" ")}else{if(ae.html){aj(ae.html)}else{if(C(ak)){J(n=new Image()).addClass(S+"Photo").error(function(){ae.title=false;aj(G(ad,"Error").text("This image could not be loaded"))}).load(function(){var an;n.onload=null;if(ae.scalePhotos){am=function(){n.height-=n.height*an;n.width-=n.width*an};if(ae.mw&&n.width>ae.mw){an=(n.width-ae.mw)/n.width;am()}if(ae.mh&&n.height>ae.mh){an=(n.height-ae.mh)/n.height;am()}}if(ae.h){n.style.marginTop=Math.max(ae.h-n.height,0)/2+"px"}if(c[1]&&(ae.loop||c[I+1])){n.style.cursor="pointer";n.onclick=function(){L.next()}}if(v){n.style.msInterpolationMode="bicubic"}setTimeout(function(){aj(n)},1)});setTimeout(function(){n.src=ak},1)}else{if(ak){k.load(ak,ae.data,function(ao,an,ap){aj(an==="error"?G(ad,"Error").text("Request unsuccessful: "+ap.statusText):J(this).contents())})}}}}}};L.next=function(){if(!Y&&c[1]&&(ae.loop||c[I+1])){I=E(1);L.load()}};L.prev=function(){if(!Y&&c[1]&&(ae.loop||I)){I=E(-1);L.load()}};L.close=function(){if(D&&!M){M=true;D=false;F(u,ae.onCleanup);Z.unbind("."+S+" ."+aa);Q.fadeTo(200,0);ag.stop().fadeTo(300,0,function(){ag.add(Q).css({opacity:1,cursor:"auto"}).hide();F(i);N.remove();setTimeout(function(){M=false;F(ac,ae.onClosed)},1)})}};L.remove=function(){J([]).add(ag).add(Q).remove();ag=null;J("."+r).removeData(x).removeClass(r).die()};L.element=function(){return J(w)};L.settings=K}(jQuery,document,this));
/*!
 * hoverIntent r6 2011.02.26; Copyright (c) Brian Cherne brian(at)cherne(dot)net <http://cherne.net/brian/resources/jquery.hoverIntent.html>
 * Dual licensed under the MIT and GPL licenses: http://www.opensource.org/licenses/mit-license.php http://www.gnu.org/licenses/gpl.html
 */
(function(a){a.fn.hoverIntent=function(k,j){var l={sensitivity:7,interval:100,timeout:0};l=a.extend(l,j?{over:k,out:j}:k);var n,m,h,d;var e=function(f){n=f.pageX;m=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-n)+Math.abs(d-m))<l.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return l.over.apply(f,[g])}else{h=n;d=m;f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}};var i=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return l.out.apply(f,[g])};var b=function(o){var g=jQuery.extend({},o);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(o.type=="mouseenter"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){i(g,f)},l.timeout)}}};return this.bind("mouseenter",b).bind("mouseleave",b)}})(jQuery);
/*!
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/; Copyright © 2008 George McGinley Smith; Easing equations Copyright © 2001 Robert Penner
 * Open source under the BSD License:
 */
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});
