var outbrain_thumbs_version="4.4.4",outbrain_thumbs_template_object=typeof outbrain_thumbs_template_object=="function"?outbrain_thumbs_template_object:function(o,p,q,r,s){outbrain_thumbs_template_object.baseConstructor.call(this,o,p,q,r,s);outbrain_template_manager.isThumbs=true;var h=this,a=false;this.buildDomStarsWrapperStart=function(){return'<table class="table-css" cellspacing="0" border="0" style="$TABLE_STYLEwidth:100%;margin-bottom:3px;"><tbody style="border:none;width:100%;" class="$TBODY_CLASS"><tr style="$TABLE_STYLEwidth:100%;vertical-align:middle;"><td style="$TD_STYLE$WIDTH_STARS_TD;vertical-align:middle;">'};
this.buildDomStarsFixPng=function(){return'<div id="$PNGFIX_HELPER_DIV_ID_$INDEX_$POSITION" style="overflow:hidden;position:relative;height:$STARS_Y_HEIGHTpx;width:$MATRIX_ONE_ITEM_LENGTHpx;margin-bottom:0px;"><div id="$PNGFIX_DIVS_CONTAINER_$INDEX_$POSITION" style="width:100%;height:100%;"><div class="$PNGFIX_STARS_DIV_CLASS" style="$PNGFIX_DIV_STYLE" _vote="4" onmouseout="outbrain_template_manager.templates['+this.templateIndex+"].mouseOutSpan("+this.templateIndex+',$INDEX);" onclick="outbrain_template_manager.templates['+
this.templateIndex+'].mouseClicked(this,$INDEX);" onmouseover="outbrain_template_manager.templates['+this.templateIndex+"].mouseOverSpan("+this.templateIndex+',this,$INDEX);">&nbsp;</div></div><div id="$RATES_DIV_ID_$INDEX_$POSITION" class="$STARS_CLASS" style="width:$MATRIX_All_WIDTHpx;height:$MATRIX_ALL_HEIGHTpx;position:absolute;z-index:-1;vertical-align:absmiddle;"></div></div>'};this.buildDomStars=function(){return'<div id="$RATES_DIV_ID_$INDEX_$POSITION" class="$STARS_CLASS" style="margin:0 0 0 0;padding:0 0 0 0;vertical-align:absmiddle;height:$STARS_Y_HEIGHTpx;width:$MATRIX_ONE_ITEM_LENGTHpx;$SOURCE_URL"><div class="$STARS_SPAN_CLASS" style="$PNGFIX_DIV_STYLE" _vote="4" onmouseout="outbrain_template_manager.templates['+
this.templateIndex+"].mouseOutSpan("+this.templateIndex+',$INDEX);" onclick="outbrain_template_manager.templates['+this.templateIndex+'].mouseClicked(this,$INDEX);" onmouseover="outbrain_template_manager.templates['+this.templateIndex+"].mouseOverSpan("+this.templateIndex+',this,$INDEX);">&nbsp;</div></div>'};this.buildDomFirstPos=function(){return'</td><td class="$RATE_INFO_TD_CLASS" style="$TABLE_STYLEwidth:auto;vertical-align:bottom;"><div id="$RATE_INFO_DIV_ID_$INDEX_$POSITION" style="$TABLE_STYLE vertical-align:absmiddle;"></div></td>'};
this.buildDomStarsWrapperEnd=function(){return"</tr></tbody></table>"};this.getRealXPosition=function(b){var c=0;switch(b){case "4":c=1;break;default:c=0;break}return c};this.getStarXPosition=function(b){b=this.getRealXPosition(b.rankInfo.vote>=0?b.rankInfo.vote:0)*this.matrixInfo.matrixXlength;return b>0?b:0};this.disableStarsAction=function(b){b=(outbrain_browsers.ie5||outbrain_browsers.ie55||outbrain_browsers.ie6?h.getElementWithFullName(h.constants.pngfixDivsContainer,b):h.getElementWithFullName(h.constants.ratesDivId,
b)).getElementsByTagName("div");for(var c=0;c<b.length;c++)if(outbrain_browsers.ie5||outbrain_browsers.ie55||outbrain_browsers.ie6){if(b[c]){b[c].onclick=function(){};b[c].onmouseover=function(){};b[c].onmouseout=function(){};b[c].style.cursor="auto"}}else if(b[c]){b[c].setAttribute("onclick","javascript:void(0);");b[c].setAttribute("onmouseover","javascript:void(0);");b[c].setAttribute("onmouseout","javascript:void(0);");b[c].style.cursor="auto"}};this.changeMatrix=function(b,c,d){if(c.rankInfo==
null)return false;if(outbrain_rater.lockRater(b))return false;d=d!=null?d:c.rateMode;var e=0;switch(d){case outbrain_settings.rater.statuses.RATER_RATE_MODE:e=this.getRealXPosition(c.currentRateValue)*this.matrixInfo.matrixXlength;break;case outbrain_settings.rater.statuses.RATER_PRE_RATE_MODE:e=this.getStarXPosition(c);break;case outbrain_settings.rater.statuses.RATER_POST_RATE_MODE:e=this.getStarXPosition(c);this.disableStarsAction(b);break}e<0||this.changeMatrixByXY(b,e,this.rateYarray[d])};this.updateRateInfo=
function(b,c,d,e){var f=c.rateInfo,g="";if(!outbrain_rater.lockRater(b)){g=c.rankInfo==null?this.changeStarsTextToImage(c.rateStatus,null):this.changeStarsTextToImage(c.rateStatus,c.rankInfo.vote);c.rateInfo=f;f=this.firstLineTextReplacer(c,d);this.setFirstLineInnerHTML(b,f);if(e!=true){var i=this.getElementWithFullName(this.constants.voterDivName,b);if(i)if(outbrain_browsers.ie6||outbrain_browsers.ie55||outbrain_browsers.ie55)waitForCss=window.setInterval(function(){if(cssFile_Loaded){i.style.display=
"block";window.clearInterval(waitForCss)}},1);else i.style.display="block";this.recommendationsShowBefore(b)&&this.showRecommendations(b,c,d)}}};this.mouseClicked=function(b,c){var d=b.getAttribute("_vote");OB_voterWidgetObjArray[c].rankInfo.vote==d?outbrain_template_manager.setStatus(this.templateIndex,c,outbrain_settings.rater.statuses.RATER_RATE_MODE,-1):outbrain_template_manager.setStatus(this.templateIndex,c,outbrain_settings.rater.statuses.RATER_RATE_MODE,b.getAttribute("_vote"));this.thanksMode(c,
b.getAttribute("_vote"));setTimeout(function(){h.endThanksMode(c)},1E3)};this.thanksMode=function(b,c){var d=outbrain_template_manager.getDataPerPost(o,b);d.frezz=true;var e="<strong>"+outbrain_language_manager.getThumbsThanksString(h.languageName)+"</strong>";d.rateInfo=e;e=this.firstLineTextReplacer(d);this.setFirstLineInnerHTML(b,e);this.changeMatrixByXY(b,this.getRealXPosition(c)*this.matrixInfo.matrixXlength,this.matrixInfo.matrixYpositionThanks);for(c=0;c<h.pluginsArray.length;++c)h.pluginsArray[c].onRate(b)};
this.checkIfLangInside=function(b){if(a!=true){if(typeof outbrain_language_manager.languages_list[b].THUMBS_SUPPORT=="undefined"){outbrain_language_manager.languages_list[b].THUMBS_SUPPORT=new function(){this.THUMBS_RATE_POST_RATE_FOR_RECOMMENDATIONS=["You might be interested in:","You recommended this post. You might be interested in:"];this.THUMBS_THANKS_STR="Thanks....";this.THUMBS_RECOMMEND_THIS="Recommend this?";this.THUMBS_PERSONAL_RATE_DESC="Recommended by {Y} people <em>like you</em>";this.THUMBS_RATED_X_BY_Y_PEOPLE=
"Recommended by {Y} people";this.THUMBS_RATED_X_BY_1_PERSON="Recommended by 1 person";this.THUMBS_AVG_RATE_X_BY_Y_PEOPLE="Recommended by {Y} people";this.THUMBS_RATED_X_BY_YOU="<b>Recommended by you</b>";this.THUMBS_RATED_X_BY_YOU_AND_1_OTHER="<b>Recommended by you</b> and 1 other";this.THUMBS_RATED_X_BY_YOU_AND_Y_OTHERS="<b>Recommended by you</b> and {Y} others";this.THUMBS_CANCEL_RECOMMENDATION="Cancel Recommendation";this.THUMBS_AFTER_CANCEL="You do not recommend this post";this.THUMBS_COMMENT=
"comment"};a=true}outbrain_language_manager.rateThumbsGetAggregate=function(c,d,e,f){d="";if(f)if(e==1)d=this.languages_list[c].THUMBS_SUPPORT.THUMBS_RATED_X_BY_YOU;else if(e==2)d=this.languages_list[c].THUMBS_SUPPORT.THUMBS_RATED_X_BY_YOU_AND_1_OTHER;else{e--;d=this.languages_list[c].THUMBS_SUPPORT.THUMBS_RATED_X_BY_YOU_AND_Y_OTHERS;d=this.changeY(d,e)}else if(e==1)d=this.languages_list[c].THUMBS_SUPPORT.THUMBS_RATED_X_BY_1_PERSON;else{d=this.languages_list[c].THUMBS_SUPPORT.THUMBS_RATED_X_BY_Y_PEOPLE;
d=this.changeY(d,e)}return d};outbrain_language_manager.getThumbsPersonalRateDesc=function(c){var d="";return d=this.languages_list[c].THUMBS_SUPPORT.THUMBS_PERSONAL_RATE_DESC};outbrain_language_manager.getThumbsRatePostRateForRecommendations=function(c,d){return this.languages_list[c].THUMBS_SUPPORT.THUMBS_RATE_POST_RATE_FOR_RECOMMENDATIONS[d]};outbrain_language_manager.getThumbsThanksString=function(c){return this.languages_list[c].THUMBS_SUPPORT.THUMBS_THANKS_STR};outbrain_language_manager.getThumbsRecommendThisString=
function(c,d){var e="";return e=d!=null&&typeof d!="undefined"&&d.length>0?d.replace("${TEXT}",this.languages_list[c].THUMBS_SUPPORT.THUMBS_RECOMMEND_THIS):this.languages_list[c].THUMBS_SUPPORT.THUMBS_RECOMMEND_THIS}}};this.getPreModeInfoText=function(b,c){this.checkIfLangInside(b);b=outbrain_language_manager.getThumbsRecommendThisString(b,'<span style="cursor: pointer;" _vote="4" onmouseover = "outbrain_template_manager.templates['+this.templateIndex+"].mouseOverSpan("+this.templateIndex+",this,"+
c+');" onmouseout = "outbrain_template_manager.templates['+this.templateIndex+"].mouseOutSpan("+this.templateIndex+","+c+');" onclick = "outbrain_template_manager.templates['+this.templateIndex+"].mouseClicked(this,"+c+');"><a href="javascript:void(0)" onclick="javascript:return(false)">${TEXT}</a></span> ');b+='$COMMENT <span id="whatIsSpan" class="whatIsSpan">[<a class="outbrain_my_rating" style="font-weight:bold;cursor:pointer;" onclick="outbrain_whatIs.loadJs('+c+');">?</a>]</span>';return b};
this.getPostModeInfoText=function(b,c,d,e,f){this.checkIfLangInside(b);var g="";if(!f){g=outbrain_language_manager.getThumbsRecommendThisString(b,'<span style="cursor: pointer;" _vote="4" onmouseover="outbrain_template_manager.templates['+this.templateIndex+"].mouseOverSpan("+this.templateIndex+",this,"+c+');" onmouseout="outbrain_template_manager.templates['+this.templateIndex+"].mouseOutSpan("+this.templateIndex+","+c+');"\tonclick="outbrain_template_manager.templates['+this.templateIndex+"].mouseClicked(this,"+
c+');"><a href="javascript:void(0)" onclick="javascript:return(false)">${TEXT}</a>');g+=" | "}g+=outbrain_language_manager.rateThumbsGetAggregate(b,d,e,f);g+=' </span>$COMMENT <span id="whatIsSpan" class="whatIsSpan">[<a class="outbrain_my_rating" style="font-weight:bold;cursor:pointer;" onclick="outbrain_whatIs.loadJs('+c+');">?</a>]</span>';return g};this.getPersonalizedModeInfoText=function(b,c,d,e,f){this.checkIfLangInside(b);var g="";g=outbrain_language_manager.getThumbsRecommendThisString(b,
'<span style="cursor: pointer;" _vote="4" onmouseover = "outbrain_template_manager.templates['+this.templateIndex+"].mouseOverSpan("+this.templateIndex+",this,"+c+');" onmouseout = "outbrain_template_manager.templates['+this.templateIndex+"].mouseOutSpan("+this.templateIndex+","+c+');" onclick = "outbrain_template_manager.templates['+this.templateIndex+"].mouseClicked(this,"+c+');"><a href="javascript:void(0)" onclick="javascript:return(false)">${TEXT}</a></span> | ');e=outbrain_language_manager.getThumbsPersonalRateDesc(b,
e);g+=outbrain_language_manager.rateGetLikeYou(e,d,f);g+=' $COMMENT<span id="whatIsSpan"  class="whatIsSpan">[<a class="outbrain_my_rating" style="font-weight:bold;cursor:pointer;" onclick="outbrain_whatIs.loadJs('+c+');">'+outbrain_language_manager.getHowString(b)+"</a>]</span>";return g};this.getRecTitle=function(b,c){return outbrain_language_manager.getThumbsRatePostRateForRecommendations(b,c>0?1:0)};this.getRatedStatusText=function(b,c){return outbrain_language_manager.getRatePostRate(b,c-1)+
" ({starsImage})"};this.getRateInfo=function(b,c){if(outbrain_rater.lockRater(b))return false;if(OB_voterWidgetObjArray[b].rankInfo==null)return false;var d=h.getLanguageId(),e=OB_voterWidgetObjArray[b],f=e.rankInfo.vote;c=c!=null?c:OB_voterWidgetObjArray[b].rateMode;var g="",i="",j="";if(!OB_voterWidgetObjArray[b].isPersonalized||f>0)if(e.rankInfo.ratedBy==0)g+=this.getPreModeInfoText(d,b);else g=this.getPostModeInfoText(d,b,e.rankInfo.posRate,e.rankInfo.posRate,e.rated);else{g=e.rankInfo.getPersonalRateIndex();
g=this.getPersonalizedModeInfoText(d,b,e.posRate,g,e.rankInfo.personalRatedBy);i=this.getRateModeStatusText(d,b,e.rankInfo.posRate,e.rankInfo.ratedBy)}g=this.getDisqusText(d,g);if(e.rated)i=this.getRatedStatusText(d,f);else OB_voterWidgetObjArray[b].isPersonalized||(i="");j=this.getRecTitle(d,f);return[e,g,i,c,j]};this.mouseOverSpan=function(b,c,d){var e=outbrain_settings.rater.statuses.RATER_RATE_MODE;OB_voterWidgetObjArray[d].currentRateValue=c.getAttribute("_vote");b=outbrain_template_manager.getDataPerPost(b,
d,e);clearTimeout(this.mouseOutTimer);this.changeView(d,b,e)};this.mouseOutSpan=function(b,c){var d=outbrain_settings.rater.statuses.RATER_PRE_RATE_MODE;OB_voterWidgetObjArray[c].currentRateValue=0;var e=outbrain_template_manager.getDataPerPost(b,c,d);this.mouseOutTimer=setTimeout(function(){h.changeView(c,e,d)},100)};this.imagesPreload=function(){new outbrain_timeout(function(){return typeof outbrain_language_manager[h.languageName]!="object"&&outbrain_language_manager.isLanguageReady(h.languageName)},
function(){if(document.images&&outbrain_settings.rater.isStars){this.matrixImage=new Image;this.matrixImage.onLoad=h.imageLoadEvent();this.matrixImage.src=outbrain_language_manager.isRtl(h.languageName)==true?h.matrixInfo.matrixSourceRtl:h.matrixInfo.matrixSource;h.templateHaveImages=true}},null,null,500,1E3,true)};this.firstLineTextReplacer=function(b){return b.rateInfo}};outbrain_thumbs_template_object.prototype=outbrain_template_object;outbrain_thumbs_template_object.prototype.constructor=outbrain_thumbs_template_object;
outbrain_thumbs_template_object.baseConstructor=outbrain_template_object;
var outbrain_nm_version="4.4.1.5",outbrain_nm_template_object=typeof outbrain_nm_template_object=="function"?outbrain_nm_template_object:function(o,p,q,r,s){var h=this;outbrain_nm_template_object.baseConstructor.call(this,o,p,q,r,s);outbrain_template_manager.isAdMarking=true;this.imagesPreload=function(){};this.adUlElementId="outbrain_nm_ad_ul";this.adUlClassNM="outbrain_nm_ad_ul_class";this.regUlClassNM="outbrain_nm_reg_ul_class";this.isAdRecOnTop=typeof OB_adMarkingOnTop=="boolean"?OB_adMarkingOnTop:
true;this.buildDomAdRecommendation=function(a){return'  \t<ul id="'+this.adUlElementId+'_$INDEX_$POSITION" class="'+this.adUlClassNM+" "+a+'" style="display:none;">  \t</ul>'};this.buildDomRecommendations=function(){var a='<fieldset style="display:none;$FIELDSET_STYLE" id="$FIELDSET_ID_$INDEX_$POSITION" class="$FIELDSET_CLASS" >      <div id="$RECOMMENDATIONS_WAIT_ID_outer_$INDEX" class="$RECOMMENDATIONS_WAIT_CLASS_outer" style="display:none;"><div class="$RECOMMENDATIONS_WAIT_CLASS_inner">               <p><img style="border:0px !important"/></p>       </div></div>  <legend class="$RECOMMENDATIONS_LEGEND_CLASS"></legend>';
if(this.isAdRecOnTop==true)a+=this.buildDomAdRecommendation("outbrain_ul_ad_top");a+='  \t<ul id="$RECOMMENDATIONS_UL_ID_$INDEX_$POSITION" class="'+this.regUlClassNM+' $RECOMMENDATIONS_UL_CLASS" style="display:none">  \t</ul>';if(this.isAdRecOnTop!=true)a+=this.buildDomAdRecommendation("outbrain_ul_ad_top");a+='</fieldset><table id="$RECOMMENDATIONS_STATUS_ID_$INDEX_$POSITION" class="$RECOMMENDATIONS_STATUS_TABLE_CLASS" style="display:none;"><tr><td>\t<div id="$RECOMMENDATIONS_PC_LEGEND_$INDEX_$POSITION" class="$RECOMMENDATIONS_PC_LEGENED_CLS" style="display:none;"></div></td><td>\t<div id="$RECOMMENDATIONS_MORE_DIV_ID_$INDEX_$POSITION" class="$RECOMMENDATIONS_MORE_LINK_DIV_CLASS" style="display:none;"></div></td></tr></table>';
return a};this.showRecommendations=function(a,b){var c=b.recTitle,d=b.jsonObj;c=this.changeStarsTextToImage(c,b.rankInfo.vote,true);if(!this.all_user_elements[this.positionRec])return false;if(this.recommendationsShowBefore(a))this.recommendationsLegendUpdate(a,c);else{b=this.getElementWithFullName(this.constants.recommendationsUlId,a);var e=this.getElementWithFullName(this.adUlElementId,a);this.recommendationsLegendUpdate(a,c);c=outbrain_template_manager.getRecommendationsPerDoc(outbrain_template_manager.DATA_REC_AD_ONLY,
d.response.documents.doc,null,null);var f=outbrain_template_manager.getRecommendationsPerDoc(outbrain_template_manager.DATA_REC_REGULAR_ONLY,d.response.documents.doc,null,null),g=outbrain_template_manager.isAllSameSource(d.response.documents),i=f.length,j=c.length,l=outbrain_settings.rater.recommendations.defaultRecNumber,m=i-(l<=i?l:i),t=b&&typeof b.opened=="boolean"&&b.opened==true;typeof OB_user_mode=="number"&&OB_user_mode==1&&this.clearRecommendations(a,m);for(var k=0;k<j;k++){var u=this.getCampType(a,
d.response.documents);this.renderTitleAdRecommendation(a,e,k,d,i>0,u);this.renderOneRecommendation(a,e,c[k],n,g,true);if(e)e.style.display="block"}if(j==0&&i>0)OB_voterWidgetObjArray[a].SecLineOn=false;for(var n=0;n<i;n++){this.renderTitleRegRecommendation(a,b,n,d,j>0);this.renderOneRecommendation(a,b,f[n],n,g,n<l?true:false);if(b)b.style.display="block"}m>0&&this.checkIfMoreRecs(a,m,t);this.showHideRecsElements(a,d);this.enableBlogExternalElements(a);this.checkBottomTableWrapper(a)}};this.renderTitleAdRecommendation=
function(a,b,c,d,e,f){if(c==0){c=document.createElement("li");c.className="outbrain_ad_title_li";outbrain_rater.loadToolTip();var g='<a class="outbrain_ad_title_A" href="javascript:void(0)" onClick="javascript:'+this.callForToolTip("this")+'" onmouseout="javascript:this.className=\'outbrain_ad_title_A\'" onmouseover="javascript:this.className=\'\'">$AD_TEXT</a>';d=this.getpcName(a,d.response.documents);var i="";i=f!=null&&f==2&&typeof outbrain_language_manager.getPiLegendText=="function"?outbrain_language_manager.getPiLegendText(h.languageName,
d)+":":outbrain_language_manager.getPcLegendText(h.languageName,d)+":";g=g.replace(/\$AD_TEXT/g,i);c.innerHTML=g;b&&b.appendChild(c);if(!e){if(b=this.getElementWithFullName(this.adUlElementId,a))b.className="outbrain_nm_ad_no_reg_ul_class";this.removeLegend(a)}}};this.renderTitleRegRecommendation=function(a,b,c,d,e){if(c==0){c=document.createElement("li");c.className="outbrain_reg_title_li";this.callForToolTip("this");var f="$AD_TEXT";this.getpcName(a,d.response.documents);d=outbrain_language_manager.languages_list[h.languageName].MIGHT_ALSO_LIKE+
":";if(e){f=f.replace(/\$AD_TEXT/g,d);c.innerHTML=f;b&&b.appendChild(c);this.removeLegend(a)}else{if(currElement=this.getElementWithFullName(this.constants.fieldsetId,a)){currElement.style.paddingLeft="8px";currElement.style.paddingright="8px"}this.getElementWithFullName(this.constants.recommendationsUlId,a).className="outbrain_nm_no_ad_ul_class"}}};this.removeLegend=function(a){if(a=this.getElementWithFullName(this.constants.fieldsetId,a)){var b=a.getElementsByTagName("legend")[0];b&&a.removeChild(b)}};
this.toggleMoreRecommendations=function(a){var b=this.getElementWithFullName(this.constants.recommendationsMoreDivId,a).getElementsByTagName("a")[0],c=outbrain_template_manager.isDocGotAds(a)?1:0,d=this.getElementWithFullName(this.constants.recommendationsUlId,a),e=d.getElementsByTagName("li"),f=e?e.length:0,g=f>0?f-c:0;this.getElementWithFullName(this.adUlElementId,a).getElementsByTagName("li");var i=outbrain_settings.rater.recommendations.defaultRecNumber;if(typeof d.opened=="boolean"&&d.opened){for(c=
i+c;c<f;c++)e[c].style.display="none";d.opened=false;h.dom.setInnerHTML(b,outbrain_language_manager.getMoreRecommendedLinkText(h.languageName,g-i));this.pcVisibilty(a,"none")}else{b.onclick=function(){h.toggleMoreRecommendations(a)};for(c=0;c<f;c++)e[c].style.display="";d.opened=true;h.dom.setInnerHTML(b,outbrain_language_manager.getMoreRecommendedCloseLinkTest(h.languageName,g-i));this.pcVisibilty(a,"block")}this.checkBottomTableWrapper(a)};this.createLinkOfPC=function(){return""};this.resetTemplate=
function(a){if(typeof OB_user_mode=="number"&&OB_user_mode==1){if(currElement=this.getElementWithFullName(this.adUlElementId,a))currElement.style.display="none";if(currElement=this.getElementWithFullName(this.constants.fieldsetId,a))currElement.style.display="none";if(currElement=this.getElementWithFullName(this.constants.recommendationsPcLegendId,a))currElement.style.display="none"}};this.clearRecommendations=function(a,b){var c=this.getElementWithFullName(this.adUlElementId,a);if(c!=null)c.innerHTML=
"";c=this.getElementWithFullName(this.constants.recommendationsUlId,a);if(c!=null)c.innerHTML="";a=this.getElementWithFullName(this.constants.recommendationsMoreDivId,a);if(a!=null&&b<1)a.innerHTML=""};this.txtInTooltip="<b>Paid Distribution</b><br><br>An Outbrain customer paid to distribute this content.  We do our best to ensure that all of the links recommended to you lead to interesting content. If you'd like to submit articles yourself for distribution, visit <a href='http://outbrain.com/outloud' target='_blank'>outbrain.com/outloud</a>. We welcome your feedback at <a href='mailto:feedback@outbrain.com'>feedback@outbrain.com</a>";
this.showBalloon=false;this.constants.fieldsetStyle=outbrain_browsers.ie?"padding-left:0px;padding-right:0px;":"padding-left:0px;padding-right:0px;"};outbrain_nm_template_object.prototype=outbrain_template_object;outbrain_nm_template_object.prototype.constructor=outbrain_nm_template_object;outbrain_nm_template_object.baseConstructor=outbrain_template_object;
var outbrain_dual_version="5.0.0.6",outbrain_dual_template_object=typeof outbrain_dual_template_object=="function"?outbrain_dual_template_object:function(o,p,q,r,s){var h=this;outbrain_dual_template_object.baseConstructor.call(this,o,p,q,r,s);this.imagesPreload=function(){};outbrain_template_manager.isAdMarking=true;this.adFieldsetId="outbrain_dual_ad_fs";this.adFieldsetClass="outbrain_dual_ad_class";this.adUlElementId="outbrain_dual_ad_ul";this.adUlClassDual="outbrain_dual_ad_ul_class";this.regUlClassDual=
"outbrain_dual_reg_ul_class";this.adWhatsThisId="outbrain_dual_ad_whats";this.dividerId="outbrain_dual_divider";this.adWhatsThisClass="outbrain_dual_ad_whats_class";this.adWhatsThisHrfClass="outbrain_dual_ad_whats_A_class";this.isAdRecOnTop=typeof OB_adMarkingOnTop=="boolean"?OB_adMarkingOnTop:false;this.checkRegRecFilter=function(){if(typeof OB_filter_reg_recs=="boolean"&&OB_filter_reg_recs==true)outbrain_settings.odb.odbGetDataUrlRec=outbrain_settings.odb.odbGetDataUrlRec.replace(outbrain_settings.keys_and_users.partnerKey,
"TURHTK3XYR")};this.checkRegRecFilter();this.buildDomDivider=function(){var a=[];a.push('<p id="'+this.dividerId+'_$INDEX_$POSITION" style="height:5px;margin:0px;padding:0px;display:none"></p>');return a.join("")};this.buildDomAdRecommendation=function(){var a=outbrain_browsers.ie&&outbrain_browsers.ie8Doc8?" outbrain_dual_ad_ul_ie8_class":"",b=[];b.push('<fieldset style="display:none;$FIELDSET_STYLE" id="'+this.adFieldsetId+'_$INDEX_$POSITION" class="$FIELDSET_CLASS '+this.adFieldsetClass+'" >');
b.push('    <legend class="$RECOMMENDATIONS_LEGEND_CLASS"></legend>');b.push('  \t<ul id="'+this.adUlElementId+'_$INDEX_$POSITION" class="'+this.adUlClassDual+' $RECOMMENDATIONS_UL_CLASS" '+a+">");b.push("  \t</ul>");b.push('    <div style="clear:both;" id="'+this.adWhatsThisId+'_$INDEX_$POSITION" class="'+this.adWhatsThisClass+' " ></div>');b.push("</fieldset>");return b.join("")};this.buildDomRecommendations=function(){var a=[];if(this.isAdRecOnTop==true){a.push(this.buildDomAdRecommendation("outbrain_dual_ul_ad_top"));
a.push(this.buildDomDivider())}a.push('<fieldset style="display:none;$FIELDSET_STYLE" id="$FIELDSET_ID_$INDEX_$POSITION" class="$FIELDSET_CLASS" >');a.push('      <div id="$RECOMMENDATIONS_WAIT_ID_outer_$INDEX" class="$RECOMMENDATIONS_WAIT_CLASS_outer" style="display:none;"><div class="$RECOMMENDATIONS_WAIT_CLASS_inner">');a.push('               <p><img style="border:0px !important"/></p>');a.push("       </div></div>");a.push('       <legend class="$RECOMMENDATIONS_LEGEND_CLASS"></legend>');a.push('  \t<ul id="$RECOMMENDATIONS_UL_ID_$INDEX_$POSITION" class="'+
this.regUlClassDual+' $RECOMMENDATIONS_UL_CLASS" style="display:block">');a.push("  \t</ul>");a.push("</fieldset>");a.push('<table id="$RECOMMENDATIONS_STATUS_ID_$INDEX_$POSITION" class="$RECOMMENDATIONS_STATUS_TABLE_CLASS" style="display:none;"><tr><td>');a.push('\t<div id="$RECOMMENDATIONS_PC_LEGEND_$INDEX_$POSITION" class="$RECOMMENDATIONS_PC_LEGENED_CLS" style="display:none;"></div>');a.push("</td><td>");a.push('\t<div id="$RECOMMENDATIONS_MORE_DIV_ID_$INDEX_$POSITION" class="$RECOMMENDATIONS_MORE_LINK_DIV_CLASS" style="display:none;"></div>');
a.push("</td></tr></table>");if(this.isAdRecOnTop!=true){a.push(this.buildDomDivider());a.push(this.buildDomAdRecommendation("outbrain_dual_ul_ad_bottom"))}return a.join("")};this.showRecommendations=function(a,b){var c=b.recTitle,d=b.jsonObj;c=this.changeStarsTextToImage(c,b.rankInfo.vote,true);if(!this.all_user_elements[this.positionRec])return false;if(this.recommendationsShowBefore(a))this.recommendationsLegendUpdate(a,c);else{var e=this.getElementWithFullName(this.constants.recommendationsUlId,
a);b=this.getElementWithFullName(this.adUlElementId,a);this.recommendationsLegendUpdate(a,c);var f=outbrain_template_manager.getRecommendationsPerDoc(outbrain_template_manager.DATA_REC_REGULAR_ONLY,d.response.documents.doc,null,null);c=outbrain_template_manager.getRecommendationsPerDoc(outbrain_template_manager.DATA_REC_AD_ONLY,d.response.documents.doc,null,null);var g=outbrain_template_manager.isAllSameSource(d.response.documents),i=typeof OB_filter_reg_recs=="boolean"&&OB_filter_reg_recs==true?
0:f.length,j=outbrain_settings.rater.recommendations.defaultRecNumber,l=j<=i?j:i;j=i-l;var m=c.length;if(i>0)OB_voterWidgetObjArray[a].SecLineOn=false;var t=e&&typeof e.opened=="boolean"&&e.opened==true;if(typeof OB_user_mode=="number"&&OB_user_mode==1){if(t)l=i;this.clearRecommendations(a,j)}for(var k=0;k<i;k++)this.renderOneRecommendation(a,e,f[k],k,g,k<l?true:false);for(e=0;e<m;e++){f=this.getCampType(a,d.response.documents);this.renderTitleAdRecommendation(a,b,e,d,f);this.renderOneRecommendation(a,
b,c[e],k,g,true)}this.showHideElementByIdName(this.constants.fieldsetId,a,i>0);this.showHideElementByIdName(this.dividerId,a,m>0&&i>0);this.setAdBoxPlace(a,m);this.checkIfMoreRecs(a,j,t);this.showHideRecsElements(a,d);this.enableBlogExternalElements(a);this.checkBottomTableWrapper(a)}};this.setAdBoxPlace=function(a,b){if((currElement=this.getElementWithFullName(this.adFieldsetId,a))&&currElement.style.display=="none")typeof OB_hook_id=="string"&&OB_hook_id.length>0&&b>0?this.hookAdsBox(OB_hook_id,
a):this.showHideElementByIdName(this.adFieldsetId,a,b>0)};this.recommendationsShowBefore=function(a){var b=false;b=this.getElementWithFullName(this.constants.fieldsetId,a);var c=this.getElementWithFullName(this.adFieldsetId,a);b=b?b.style.display!="none"||c.style.display!="none":false;if(b==true&&typeof OB_user_mode=="number"&&OB_user_mode==1){this.removeWaitClock(a);b=false}return b};this.showHideRecsElements=function(a,b){this.setAdLegend(a,b);if(currElement=this.getElementWithFullName(this.constants.rateStatusInfoTableId,
a))currElement.style.display="none";if(currElement=this.getElementWithFullName(this.constants.rateStatusInfoTdId,a))currElement.style.display="none";if(currElement=this.getElementWithFullName(this.constants.fieldsetId,a))OB_voterWidgetObjArray[a].hasRecommendations=true};this.renderTitleAdRecommendation=function(a,b,c,d,e){b=this.getpcName(a,d.response.documents);c="";c=e!=null&&e==2&&typeof outbrain_language_manager.getPiLegendText=="function"?outbrain_language_manager.getPiLegendText(h.languageName,
b)+":":outbrain_language_manager.getPcLegendText(h.languageName,b)+":";this.adsLegendUpdate(a,c);this.adsWhatsThisUpdate(a)};this.adsWhatsThisUpdate=function(a){var b=outbrain_language_manager.whatsThis(h.languageName),c='<a class="'+this.adWhatsThisHrfClass+'" href="javascript:void(0)" onClick="javascript:'+this.callForToolTip("this")+'" >[$AD_TEXT]</a>';c=c.replace(/\$AD_TEXT/g,b);(a=this.getElementWithFullName(this.adWhatsThisId,a))&&h.dom.setInnerHTML(a,c)};this.showHideElementByIdName=function(a,
b,c){if(a=this.getElementWithFullName(a,b))a.style.display=c?"block":"none"};this.adsLegendUpdate=function(a,b){if(a=this.getElementWithFullName(this.adFieldsetId,a))if((a=a.getElementsByTagName("legend")[0])&&a.innerHTML!=b){a.className=this.constants.recommendationsLegendClass;h.dom.setInnerHTML(a,b)}};this.createLinkOfPC=function(){return""};this.isSonOf=function(a,b){if(a&&a.childNodes.length>0&&b){a=a.childNodes;for(var c=0;c<a.length;c++)if(a[c].id==b.id)return true}return false};this.hookAdsBox=
function(a,b){var c=this.adFieldsetId+"_"+b+"_"+this.position,d=this.getElementWithFullName(this.constants.voterDivName,b);try{new outbrain_timeout(function(){if(document.getElementById(a+"_"+b))return true;return false},function(){var f=document.getElementById(a+"_"+b);if(f){var g=document.getElementById(c);if(g){if(!h.isSonOf(d,g)){g.style.display="block";return false}g.className+=outbrain_language_manager.isRtl(h.languageName)==true?" div-wrapper-right":" div-wrapper";var i=g.cloneNode(true);f.appendChild(i);
i.style.display="block";f.style.display="block";d.removeChild(g)}}},null,function(){var f=document.getElementById(c);if(f)f.style.display="block"},1E3,15,true)}catch(e){alert(e)}};this.resetTemplate=function(a){if(typeof OB_user_mode=="number"&&OB_user_mode==1){if(currElement=this.getElementWithFullName(this.adFieldsetId,a))currElement.style.display="none";if(currElement=this.getElementWithFullName(this.constants.fieldsetId,a))currElement.style.display="none";if(currElement=this.getElementWithFullName(this.constants.recommendationsPcLegendId,
a))currElement.style.display="none"}};this.clearRecommendations=function(a,b){var c=this.getElementWithFullName(this.adUlElementId,a);if(c!=null)c.innerHTML="";c=this.getElementWithFullName(this.constants.recommendationsUlId,a);if(c!=null)c.innerHTML="";a=this.getElementWithFullName(this.constants.recommendationsMoreDivId,a);if(a!=null&&b<1)a.innerHTML=""};this.callForToolTip=function(a){if(a!="this")a="'"+a+"'";var b="outbrain_template_manager.templates["+this.templateIndex+"].unTip();";b+="outbrain_template_manager.templates["+
this.templateIndex+"].tip("+a+",-358,378)";return b};this.tip=function(a,b,c){outbrain_rater.loadToolTip();try{var d=this.textForToolTip();new outbrain_timeout(function(){return typeof Tip=="function"},function(){Tip(d,BALLOON,true,ABOVE,true,FIX,[a,b,-7],EXCLUSIVE,true,BALLOONSTEMOFFSET,c)},null,null,20,1E3,true)}catch(e){return false}};this.txtInTooltip="<b>Paid Distribution</b><br><br>An Outbrain customer paid to distribute this content.  We do our best to ensure that all of the links recommended to you lead to interesting content. If you'd like to submit articles yourself for distribution, visit <a href='http://outbrain.com/outloud' target='_blank'>outbrain.com/outloud</a>. We welcome your feedback at <a href='mailto:feedback@outbrain.com'>feedback@outbrain.com</a>";
this.showBalloon=false};outbrain_dual_template_object.prototype=outbrain_template_object;outbrain_dual_template_object.prototype.constructor=outbrain_dual_template_object;outbrain_dual_template_object.baseConstructor=outbrain_template_object;outbrain_template_manager.addTemplate([["general",outbrain_template_object],["nm_template",outbrain_nm_template_object],["dual_template",outbrain_dual_template_object],["thumbs_template",outbrain_thumbs_template_object]]);

