var articleFilterRuleset={".export-disallowed":function(a){a.onclick=function(){var c=confirm("Export functionality is only available to StrategyEye subscribers. Would you like to trial StrategyEye?");if(c){var b="/subscribe/trial";window.location.replace(b)}else{return false}}},".submit-btn":function(a){},".theme-selection":function(a){a.onchange=function(){var b=$("#current-theme").val();if(b&&$("#theme-categories-"+b)){$("#theme-categories-"+b).hide();var c=$("#theme-categories-select-"+b);c.name="";c.disabled=true;c.selectedIndex=0}else{if($("#empty-categories")){$("#empty-categories-container").hide()}}if(a.selectedIndex==0){$("#theme-categories-container").hide();$("#empty-categories-container").show()}else{$("#empty-categories-container").hide();var d=$(a).val();if($("#theme-categories-"+d)){$("#theme-categories-container").show();$("#theme-categories-"+d).show();$("#theme-categories-select-"+d).disabled=false;$("#theme-categories-select-"+d).name="themeCategoryId"}$("#current-theme").val(d)}}},".theme-categories-select":function(a){a.onchange=function(){var b=$("#view-theme-category-link");if(b){if(a.selectedIndex==0){b.hide()}else{b.attr("href","/category/index/categoryId/"+$(a).val());b.text("View: "+$("#"+a.id+" option:selected").text());b.show();if($("#active-form-links-pad")){$("#active-form-links-pad").show()}}}}},"#sub-categories-select":function(a){if($("#hidden-category-id")&&$("#hidden-category-id").value){articleFilterRuleset.categoryId=$("#hidden-category-id").value}a.onchange=function(){var b=$("#view-sub-category-link");if(b){if($(this).selectedIndex==0){b.hide();if($("#active-form-links-pad")){$("#active-form-links-pad").hide()}}else{b.href="/category/index/categoryId/"+$F(a);b.update("View selected sub-category: "+a.options[a.selectedIndex].text);b.show();if($("#active-form-links-pad")){$("#active-form-links-pad").show()}}}}},".hideTopResults":function(a){$(".hideTopResults").hide()},".topShowAll":function(a){a.onclick=function(){id=($(a).attr("id").split("topShowAll")[1]);$("#topResults"+id+" .hideTopResults").show();$("#topHideAll"+id).show();$("#topShowAll"+id).hide();return false}},".topHideAll":function(a){a.onclick=function(){id=($(a).attr("id").split("topHideAll")[1]);$("#topResults"+id+" .hideTopResults").hide();$("#topHideAll"+id).hide();$("#topShowAll"+id).show();return false};$(".topHideAll").hide()}};var industrySwitcher={originalFormAction:"",switchTo:function(a){$$(".theme-selection").each(function(b){currentIndustry=b.id.split("-")[0];if(currentIndustry==a){$("#"+currentIndustry+"-themes").disabled=false;$("#"+currentIndustry+"-themes").show()}else{$("#"+currentIndustry+"-themes").disabled=true;$("#"+currentIndustry+"-themes").hide()}})}};Behaviour.register(articleFilterRuleset);
