function showOverlay(){window.scrollTo(0,0);window.$overlay=$(document).find(".overlay");window.$overlay.append($("<div>").addClass("spinner").text("Updating Results"));window.$overlay.removeClass("hideo")}function InitFilter(n,t){filterString=UpdateListString(filterString,","+t,"add");location.href=getBaseLocation()+"/FWW/Results?filters=,"+t}function Filter(){showOverlay();StartFilter();$overlay.addClass("hideo");$(".spinner").remove()}function StartFilter(){$("#FWW-form").submit()}function GetInterventionPage(n){$('input[name = "Selected-Intervention"]').val(n);StartFilter()}function UpdateFilter(n,t){return n.className==="disabled"?!1:(filterString=n.checked?UpdateListString(filterString,t,"add"):UpdateListString(filterString,t,"remove"),$("#Params_Filters").val(filterString),filterString.length<1?ResetSearch():StartFilter(),!0)}function RemoveSelectedFilter(n){return filterString=UpdateListString(filterString,n,"remove"),$("#Params_Filters").val(filterString),filterString.length<1?(ResetSearch(),!1):(Filter(),!0)}function ResetSearch(){filterString="";$("#Params_Filters").val(filterString);window.location.href=getBaseLocation()+"/FWW/Index"}function Advanced(){}function Export(){}function Compare(){ShowComparePage();return}function UpdateCompare(n){var t=$("#SelectedInterventionsForCompare").val(),i=$(n).siblings(".invisible-text");n.checked?($("#compare-buttons").removeClass("hide"),i.html(1),compareString=UpdateListString(t,n.value,"add")):(compareString=UpdateListString(t,n.value,"remove"),i.html(0));CheckCompareCount();$("#SelectedInterventionsForCompare").val(compareString);$(".sorttable").trigger("update")}function CheckCompareCount(){var n=$(".cb-compare:checkbox:checked").length;n===0&&$("#compare-buttons").addClass("hide")}function ClearCompare(){for(var i=$("#SelectedInterventionsForCompare").val(),t=i.split(","),n=0;n<t.length;n++)$("input:checkbox[value='"+t[n]+"']").attr("checked",!1),$("input:checkbox[value='"+t[n]+"']").siblings(".invisible-text").html("0");compareString="";$("#SelectedInterventionsForCompare").val(compareString);$("#compare-buttons").addClass("hide");$(".cb-compare:checkbox:disabled").attr("disabled",!1);$(".cb-compare:checkbox").attr("checked",!1)}function ShowComparePage(){var t=getBaseLocation()+"/FWW/CompareInterventions",n=[];$("input.cb-compare:checked").each(function(){var t={id:$(this).val(),match:$(this).data("sly")};n.push(t)});window.open(t+"?selinterventions="+JSON.stringify(n),"Compare","width=900,height=900")}function ShowCompareDialog(){$("#CompareInterventions").removeClass("hide");$("#CompareInterventions").dialog({autoOpen:!0,height:"auto",minHeight:300,maxWidth:850,minWidth:700,modal:!0,title:"Intervention Comparison",show:{effect:"blind",duration:800},draggable:!0,open:function(){$("#CompareInterventions").load("/FWW/CompareInterventions?interventions="+$("#SelectedInterventionsForCompare").val())},buttons:{Print:function(){$(this).addClass("section-to-print");$(".ui-dialog-titlebar").addClass("section-to-print");$("div.WWCwrap").addClass("do-not-print");window.print();$(this).parent().removeClass("section-to-print");$("div.WWCwrap").removeClass("do-not-print");$(this).dialog("close")},Done:function(){$(this).dialog("close")}},close:function(){}})}function RemoveSelectedForCompare(n){var t=$("#SelectedInterventionsForCompare").val();compareString=UpdateListString(t,n,"remove");$("#SelectedInterventionsForCompare").val(compareString);$("input:checkbox[value='"+n+"']").attr("checked",!1);$("#sel-"+n).remove();compareString.length<2&&ClearCompare()}function RemoveEvidenceLink(){$("input:checkbox.sly-el-input").each(function(n,t){$(t).attr("checked",!1)});$("input:text.sly-el-input").each(function(n,t){$(t).val("0")});$("div.sly-el-slider").each(function(n,t){$(t).labeledslider("value",0)});$("div.sly-el-range").each(function(n,t){$(t).labeledslider("values",0,0);$(t).labeledslider("values",1,0)});$("ul.selected-list").remove()}function RemoveFilter(n,t){var r="#"+t+"-checkbox"+n,i;$(r).attr("checked",!1);i=RemoveSelectedFilter(n);i&&StartFilter()}function RemoveCustomFilters(){$("input:checkbox.cus-el-input").each(function(n,t){$(t).attr("checked",!1)});$("input:text.cus-el-input").each(function(n,t){$(t).val("0")});$("input:checkbox.cus-out-input").each(function(n,t){$(t).attr("checked",!1)});$("div.cus-el-slider").each(function(n,t){$(t).labeledslider("value",0)});$("div.cus-el-range").each(function(n,t){$(t).labeledslider("values",0,0);$(t).labeledslider("values",1,0)});$("ul.cus-selected-list").remove()}function ShowDialog(){var n={my:"center top",at:"center top+50",of:window};$("#dialog-EL").removeClass("hide");$("#dialog-EL").dialog({appendTo:"#FWW-form",autoOpen:!0,height:"auto",minHeight:300,maxWidth:800,width:800,position:n,modal:!0,title:"Was research done with students like yours? ",fluid:!0,closeText:"X",open:function(){},buttons:{Done:function(){$(this).dialog("close");StartFilter()},"Clear All":function(){RemoveEvidenceLink()}},close:function(){}})}function ShowExDialog(n,t){var i={my:"center top",at:"center top+80",of:window};$("#dialog-Study-Export").removeClass("hide");$("#dialog-Study-Export").dialog({autoOpen:!0,appendTo:"#s-page",height:"auto",width:300,modal:!0,title:"Export "+n,fluid:!0,closeText:"Close",open:function(){n=n.replace(" ","");t=$("input[type=checkbox]").prop("checked")?1:0;var i=getBaseLocation()+"/"+n+"/"+n+"Export/"+t;(n==="AllData"||n==="Archive")&&(i=getBaseLocation()+"/intervention/"+n+"Export/"+t);window.location=i},buttons:{OK:function(){$(this).dialog("close")}},close:function(){}})}function ShowCDialog(){var n={my:"center top",at:"center top+50",of:window};$("#dialog-Cust").removeClass("hide");$("#dialog-Cust").dialog({appendTo:"#FWW-form",autoOpen:!0,height:"auto",minHeight:300,maxWidth:800,width:800,position:n,modal:!0,title:"More Filters",fluid:!0,closeText:"X",open:function(){var n=$("h2.result-title span#resultCount").html();$("div.ui-dialog-resultpane").remove();$(".ui-dialog-buttonpane").prepend("<div class='ui-dialog-resultpane'><h2 class='result-change'>"+n+"<\/h2><\/div>")},buttons:{Done:function(){$(this).dialog("close");StartFilter()},"Clear All":function(){$(this).dialog("close");RemoveCustomFilters();StartFilter()}},close:function(){}})}function showELSelections(n){$("#ELInstructions").addClass("hide");$("div.match-directions").removeClass("hide");$("#tipInstructions").addClass("hide");$("div.filterbody > div").addClass("hide");$("div.match-tip > div").addClass("hide");$("ul#EL-Menu-ul > li").addClass("notselected");$("ul#EL-Menu-ul > li").removeClass("selected");$("#cdiv-"+n).removeClass("hide");$("#ctipdiv-"+n).removeClass("hide");$("#li-"+n).removeClass("notselected");$("#li-"+n).addClass("selected")}function showCustSelections(n){$("#CustInstructions").addClass("hide");$("div.c-filterbody > div").addClass("hide");$("ul#C-Menu-ul > li").addClass("notselected");$("ul#C-Menu-ul > li").removeClass("selected");$("#c-cdiv-"+n).removeClass("hide");$("#c-li-"+n).removeClass("notselected");$("#c-li-"+n).addClass("selected")}function StartExport(){var t=$("#FWW-form").serializeArray(),n=getBaseLocation()+"/FWW/DownloadCSV";$.ajax({url:n,cache:!1,type:"POST",data:$("#FWW-form").serializeArray(),success:function(n){document.write=n}})}function exportTableToCSV(){var t=$("#FWW-form").serializeArray(),n=getBaseLocation()+"/FWW/DownloadCSV";$.ajax({url:n,cache:!1,type:"POST",data:$("#FWW-form").serializeArray(),success:function(){}})}function CalculateFilteredResultCount(){var n=getBaseLocation()+"/JsonServices/GetFilteredInterventionCount",t=$("#FWW-form").serializeArray();$.ajax({url:n,cache:!1,type:"POST",data:$("#FWW-form").serializeArray(),success:function(n){var t="result-change";return $("h2.result-change").remove(),$("h2.result-change-0").remove(),n===0&&(t="result-change-0"),$(".ui-dialog-resultpane").prepend("<h2 class='"+t+"'>"+n+" Results<\/h2>").hide().fadeIn("slow"),!0}})}function ShowSelDialog(n){$("#dialog-"+n).removeClass("hide");$("#dialog-"+n).dialog({appendTo:"#FWW-form",autoOpen:!0,height:"auto",minHeight:300,maxWidth:600,minWidth:425,position:{my:"left top",at:"right top",of:"#leftSideBar"},modal:!0,title:this.Title,fluid:!0,closeText:"X",open:function(){},buttons:{Done:function(){$(this).dialog("close");StartFilter()}},close:function(){}})}function InitRangeSlider(n){var t="slider-"+n,u="odiv-"+n,i="leftLabel-"+n,r="rightLabel-"+n;$(function(){$("#"+t).labeledslider({range:!0,min:-1,max:13,values:[$("#"+i).val(),$("#"+r).val()],tickArray:[-1,0,1,6,12,13],tickLabels:{"-1":"PreK",0:"K",13:"PSec"},slide:function(n,t){$("#"+i).val(t.values[0]);$("#"+r).val(t.values[1])}})});$("#"+i).blur(function(){$("#"+t).labeledslider("values",0,parseInt($(this).val()))});$("#"+r).blur(function(){$("#"+t).labeledslider("values",1,parseInt($(this).val()))})}function InitSlider(n,t){var r=n+"slider-"+t,i=n+"leftLabel-"+t;$("#"+r).labeledslider({range:"min",min:0,max:100,value:$("#"+i).val(),tickArray:[0,25,50,75,100],slide:function(n,t){$("#"+i).val(t.value)}});$("#"+i).val($("#"+r).labeledslider("value"));$("#"+i).blur(function(){$("#"+r).labeledslider("value",parseInt($(this).val()))})}function createPGList(){var t,n="<div id='PGListDivInner'><h2>Related Practice Guides<\/h2><ul id='ListPG'>",i=0,r,e;for(t in PracticeGuides)if(PracticeGuides.hasOwnProperty(t)){var o=PracticeGuides[t].Topic,u=filterString.split(","),f=!1;for(r=1;r<u.length;r++)o.indexOf(u[r])>-1&&(f=!0);f&&i<3&&(i=i+1,e="<li><h3>"+PracticeGuides[t].Name+"<\/h3><\/li>",n=n+e)}return n=n+'<\/ul><p><a href="#" class="not-implemented">MORE<\/a><\/p><\/div>',i>0?n:""}function PracticeGuideResult(n,t,i,r){this.Name=n;this.Topic=t;this.GradeLevels=i;this.Relevance=r;PracticeGuides.push(this)}function UpdateListString(n,t,i){return i==="add"?n+","+t:n.replace(","+t,"")}function CompareFilterArrays(n){for(var r=[],t=filterString.substr(1).split(","),i=0;i<t.length;i++)n.indexOf(t[i])!==-1&&r.push(t[i]);return r.length===t.length?!0:!1}function CheckIfSelected(n,t){return jQuery.inArray(t,n)>-1}function GetMatchValueForIntervention(n){var t="#div_matchdetail_"+n;return $(t).find("table").html()}function GetRatingIconByRating(n){for(var t=0;t<Ratings.length;t++)if(Ratings[t].Name===n)return Ratings[t].Icon;return!1}function GetRatingRank(n){for(var t=0;t<Ratings.length;t++)if(Ratings[t].Name===n)return Ratings[t].Rank;return!1}function ReCreateElement(n,t,i,r){var f=document.getElementById(n),u;return f!=null&&f.parentNode===t&&t.removeChild(f),u=document.createElement(i),u.id=n,u.setAttribute("class",r),u}function checkInput(){return!0}function CapitalizeFirst(n){return n.trim().charAt(0).toUpperCase()+n.substring(1)}function SortResults(n){return SortBy==="Title"?n.sort(function(n,t){return n.Title<t.Title?-1:1}):SortBy==="FilterCount"?n.sort(function(n,t){return n.FilterCount===t.FilterCount?n.InterventionEffectivenessRating===t.InterventionEffectivenessRating?n.AllMatch*100==t.AllMatch*100?n.Title<t.Title?-1:1:n.AllMatch*100>t.AllMatch*100?-1:1:n.InterventionEffectivenessRating<t.InterventionEffectivenessRating?1:-1:n.FilterCount<t.FilterCount?1:-1}):SortBy==="InterventionEffectivenessRating"?n.sort(function(n,t){return n.InterventionEffectivenessRating===t.InterventionEffectivenessRating?n.AllMatch===t.AllMatch?n.Title<t.Title?-1:1:n.AllMatch>t.AllMatch?-1:1:n.InterventionEffectivenessRating>t.InterventionEffectivenessRating?-1:1}):SortBy==="AllMatch"&&n.sort(function(n,t){return n.AllMatch*100==t.AllMatch*100?n.InterventionEffectivenessRating===t.InterventionEffectivenessRating?n.Title<t.Title?-1:1:n.InterventionEffectivenessRating>t.InterventionEffectivenessRating?-1:1:n.AllMatch*100<t.AllMatch*100?1:-1}),n}function Topic(n,t){this.Name=n;this.Icon=t;Topics.push(this)}function Rating(n,t,i){this.Name=n;this.Icon=t;this.Rank=i;Ratings.push(this)}function InterventionResult(n,t,i,r,u,f){this.Name=n;this.Topic=t;this.Grades=i;this.Rating=r;this.ProgramType=u;this.Relevance=f;InterventionResults.push(this)}function PracticeGuideResult(n,t,i,r){this.Name=n;this.Topic=t;this.GradeLevels=i;this.Relevance=r;PracticeGuides.push(this)}function ControlType(n){this.InputType=n}function SortGroup(n,t,i){this.GroupName=n;this.Order=t;this.Title=i;SortGroups.push(this)}function SearchFilterControl(n,t,i,r,u,f){this.GroupName=n;this.Title=t;this.Type=i;this.Order=r;this.Group=u;this.Side=f;this.Selected=[];SearchFilterControls.push(this)}function SearchSortControl(n,t,i,r,u,f,e,o){this.GroupName=n;this.Title=t;this.Type=i;this.Order=r;this.Group=u;this.Minimum=f;this.Maximum=e;this.Unit=o;this.Selected=[];SearchSortControls.push(this)}function SearchFilterOption(n,t,i,r,u,f){this.GroupName=n;this.OptionName=t;this.Value=i;this.Order=r;this.IconClass=u;this.IconStackClass=f;SearchFilterOptions.push(this)}function SearchSortOption(n,t,i,r,u,f,e){this.GroupName=n;this.OptionName=t;this.Value=i;this.UpperValue=r;this.Order=u;this.IconClass=f;this.IconStackClass=e;SearchSortOptions.push(this)}function getElementsByClassName(n,t,i){for(var u=n.getElementsByTagName(t),s=[],e,o,f,r=0;r<u.length;r++)if(e=u[r].className,e)for(o=e.split(" "),f=0;f<o.length;f++)if(o[f]==i){s.push(u[r]);break}return u=null,s}function compareInit(){for(var t=getElementsByClassName(document,"li","compareable"),i,n=0;n<t.length;n++)t[n].tabIndex=0,t[n].setAttribute("aria-grabbed","false"),t[n].setAttribute("aria-haspopup","true"),t[n].setAttribute("role","listitem"),t[n].onfocus=function(){this.className+=" focused"},t[n].onblur=function(){this.className=this.className.replace(/\s*focused/,"")},t[n].onmouseover=function(){this.className.indexOf("hover")<0&&(this.className+=" hover")},t[n].onmouseout=function(){this.className=this.className.replace(/\s*hover/,"")},drag.initialize(t[n]);for(n=0;n<drag.arTargets.length;n++)i=document.getElementById(drag.arTargets[n]),i.setAttribute("aria-labelledby",drag.arTargets[n]+"h"),i.setAttribute("role","list");i=document.getElementById("OtherResultsDiv");i.setAttribute("role","application");t=null}var filterString,sortString,compareString="",Results,Compares,OutcomeCompares,SortBy="FilterCount",PracticeGuides=[],Topics=[],Ratings=[],InterventionResults=[],SortGroups,SearchFilterControls,SearchSortControls,SearchFilterOptions,SearchSortOptions,compare;InterventionResult.prototype.constructor=InterventionResult;InterventionResult.prototype.createListItem=function(){for(var i=this.IconList.split(","),n="<ul>",t=0;t<i.length;t++)n=n+"<li><p class='result-list-topic'><i class='fa "+i[t]+" fa-1x'><\/i><\/li>";return n=n+"<\/ul>","<li><div><p class='resultTitle'>"+this.Title+"<\/p><\/div>"+n+"<\/li>"};PracticeGuides=[];PracticeGuideResult.prototype.constructor=PracticeGuideResult;PracticeGuideResult.prototype.createList=function(){var t=this.Topic.split(","),i=filterString.split(","),n="<h2>Related Practice Guides<\/h2><ul id='PGList'>",r;return $(t).not(i).length===0&&$(i).not(t).length===0||(r="<li><h3>"+this.Name+"<\/h3><\/li>",n=n+r),n+"<\/ul>"};ControlType.objects=[];ControlType.prototype.constructor=ControlType;ControlType.prototype.createControl=function(){};SortGroups=[];SortGroup.objects=[];SortGroup.prototype.constructor=SortGroup;SortGroup.prototype.CreateMenuItem=function(){var t=document.createElement("li"),r;t.setAttribute("class","filtermenu");t.id="li-"+this.GroupName;var n=document.createElement("a"),i=document.createElement("span"),u=document.createElement("span");return u.setAttribute("class","fa fa-caret-right pos-right"),i.setAttribute("class","pos-left"),t.appendChild(n),n.id="menu-"+this.GroupName,n.setAttribute("class","showfilter"),n.setAttribute("onclick","ShowFilter('"+this.GroupName+"')"),i.appendChild(document.createTextNode(this.Title)),n.appendChild(i),n.appendChild(u),r=document.createElement("ul"),r.id="ul-sel-"+this.GroupName,t.appendChild(r),t};SearchFilterControls=[];SearchFilterControl.objects=[];SearchFilterControl.prototype.constructor=SearchFilterControl;SearchFilterControl.prototype.CreateDialogBox=function(){var t=document.getElementById("dialog-"+this.Group),n;return t&&t.parentNode.removeChild(t),n=document.createElement("div"),n.setAttribute("class","hide filtermodal"),n.id="dialog-"+this.Group,n};SearchFilterControl.prototype.CreateMenuItem=function(){var t=document.createElement("div");t.setAttribute("class","filtermenu");t.id="div-"+this.Group;var n=document.createElement("a"),i=document.createElement("span"),r=document.createElement("span");return r.setAttribute("class","fa fa-caret-right pos-right"),i.setAttribute("class","pos-left"),n.id="menu-"+this.Group,n.setAttribute("class","showsort"),n.setAttribute("onclick","ShowSelDialog('"+this.Group+"')"),i.appendChild(document.createTextNode(this.Title)),n.appendChild(i),n.appendChild(r),t.appendChild(n),t};SearchSortControls=[];SearchSortControl.objects=[];SearchSortControl.prototype.constructor=SearchSortControl;SearchSortControl.prototype.GetSortOptionsByGroupName=function(){for(var t=[],n=0;n<SearchSortOptions.length;n++)SearchSortOptions[n].GroupName===this.GroupName&&t.push(SearchSortOptions[n]);return t};SearchSortControl.prototype.CreateMenuItem=function(){var t=document.createElement("li"),r;t.setAttribute("class","filtermenu");t.id="li-"+this.GroupName;var n=document.createElement("a"),i=document.createElement("span"),u=document.createElement("span");return u.setAttribute("class","fa fa-caret-right pos-right"),i.setAttribute("class","pos-left"),t.appendChild(n),n.id="menu-"+this.GroupName,n.setAttribute("class","showsort"),n.setAttribute("onclick","ShowSelDialog('"+this.GroupName+"')"),i.appendChild(document.createTextNode(this.Title)),n.appendChild(i),n.appendChild(u),r=document.createElement("ul"),r.id="ul-sel-"+this.GroupName,t.appendChild(r),t};SearchSortControl.prototype.CreateDialogBox=function(){var n=document.createElement("div");return n.setAttribute("class","hide filtermodal"),n.id="dialog-"+this.GroupName,n};SearchSortControl.prototype.CreateInputControl=function(){var t=this.GetSortOptionsByGroupName(),a=document.createDocumentFragment(),n,u,s,k,i,v,e,c,y,p,o,d,l,w,r;if(this.Type==="range"||this.Type==="slider")for(n=0;n<t.length;n++)u=document.createElement("DIV"),u.id="div-"+t[n].OptionName,s=document.createElement("label"),s.htmlFor="slider-"+t[n].OptionName,s.setAttribute("class","range-label"),k=document.createTextNode("%"+t[n].OptionName),s.appendChild(k),i=document.createElement("DIV"),i.id="slider-"+t[n].OptionName,i.setAttribute("class","nstSlider"),i.setAttribute("data-range_min",this.Minimum),i.setAttribute("data-range_max",this.Maximum),i.setAttribute("data-cur_min",t[n].Value),i.setAttribute("data-cur_max",t[n].UpperValue),v=document.createElement("DIV"),v.setAttribute("class","leftGrip"),e=document.createElement("DIV"),e.id="leftLabel-"+t[n].OptionName,t[n].Value===-1?e.setAttribute("class","leftLabel white"):e.setAttribute("class","leftLabel"),c=document.createTextNode(t[n].Value),e.appendChild(c),u.appendChild(s),u.appendChild(e),i.appendChild(v),this.Type==="range"&&(y=document.createElement("DIV"),y.setAttribute("class","bar"),p=document.createElement("DIV"),p.setAttribute("class","rightGrip"),o=document.createElement("DIV"),o.id="rightLabel-"+t[n].OptionName,t[n].UpperValue===-1?o.setAttribute("class","rightLabel white"):o.setAttribute("class","rightLabel"),d=document.createTextNode(t[n].UpperValue),o.appendChild(d),i.appendChild(y),i.appendChild(p)),u.appendChild(i),this.Type==="range"&&u.appendChild(o),a.appendChild(u);else for(l=document.createElement("FIELDSET"),w=document.createElement("LEGEND"),c=document.createTextNode(" "+this.Title),l.appendChild(w),w.appendChild(c),n=0;n<t.length;n++){r=document.createElement("label");r.htmlFor=this.Type+"-"+t[n].OptionName;var g=!0,b=document.createElement("i"),h="box-label";t[n].IconClass==="small-noicon"?(h=h+" small-noicon",g=!1):t[n].IconStackClass===""?b.setAttribute("class","fa "+t[n].IconClass+" fa-3x"):b.setAttribute("class","fa "+t[n].IconClass+" fa-3x fa-border");var nt=document.createElement("span"),tt=document.createTextNode(t[n].OptionName),f=document.createElement("input");f.type=this.Type;f.value=t[n].Value;f.name=t[n].OptionName;f.id=this.Type+"-"+t[n].OptionName;CheckIfSelected(this.Selected,t[n].Value)&&(f.checked=!0,h=h+" onClass");r.setAttribute("class",h);f.setAttribute("class","filtercb "+t[n].FilterName);r.appendChild(f);r.appendChild(b);g&&r.appendChild(document.createElement("br"));r.appendChild(nt);nt.appendChild(tt);l.appendChild(r);a.appendChild(l)}return a};SearchFilterOptions=[];SearchFilterOption.objects=[];SearchFilterOption.prototype.constructor=SearchFilterOption;SearchFilterOption.prototype.GetSelected=function(){};SearchFilterOption.prototype.Reset=function(){};SearchFilterOption.prototype.RefreshSelected=function(){var t="FilterBy_"+this.Value,n=document.getElementById(t);filterString.indexOf(this.Value)>=0?n.setAttribute("class","selected"):n.setAttribute("class","notselected")};SearchFilterOption.prototype.CreateFilterMenuItem=function(n,t,i,r,u,f,e){var a=document.createElement("li"),v=!0,s=document.createElement("span"),y=u,h,c;this.IconClass==="large-noicon"?(y=u+" "+f,v=!1):this.IconStackClass===""?s.setAttribute("class","fa "+this.IconClass+" "+t):(s.setAttribute("class","fa-stack "+e),h=document.createElement("span"),c=document.createElement("span"),h.setAttribute("class","fa  "+this.IconClass+" "+i),c.setAttribute("class","fa "+this.IconStackClass+" "+r+" pull-right pull-up"),s.appendChild(c),s.appendChild(h));var l=document.createElement("span"),p=document.createTextNode(this.OptionName),o=document.createElement("a");return o.id="FilterBy_"+this.Value,filterString.indexOf(this.Value)>=0?o.setAttribute("class","selected"):o.setAttribute("class","notselected"),n?o.setAttribute("onclick","InitFilter(this,'"+this.Value+"')"):o.setAttribute("onclick","UpdateFilter(this,'"+this.Value+"')"),l.setAttribute("class",y),l.appendChild(p),o.appendChild(s),v&&o.appendChild(document.createElement("br")),o.appendChild(l),a.appendChild(o),a};SearchSortOptions=[];SearchSortOption.objects=[];SearchSortOption.prototype.constructor=SearchSortOption;SearchSortOption.prototype.GetSelected=function(){};SearchSortOption.prototype.Reset=function(){var i,n,r,t;this.Value=-1;this.UpperValue=-1;i="slider-"+this.OptionName;n=document.getElementById(i);n.setAttribute("data-cur_min",this.Value);n.setAttribute("data-cur_max",this.UpperValue);r=document.getElementById("leftLabel-"+this.OptionName);t=document.getElementById("rightLabel-"+this.OptionName);r.setAttribute("class","leftLabel white");t&&t.setAttribute("class","rightLabel white")};SearchSortOption.prototype.UpdateSortString=function(){var n=this.UpperValue>-1?"-"+this.UpperValue:"";return this.OptionName+":"+this.Value+n+","};var pg4=new PracticeGuideResult("Improving Adolescent Literacy: Effective Classroom and Intervention Practices"," Literacy"," Middle Grades, High School","2"),pg5=new PracticeGuideResult("Organizing Instruction and Study to Improve Student Learning","Teachers-and-School-Leaders,K-12"," Elementary, Middle Grades, High School",1),pg7=new PracticeGuideResult("Using Student Achievement Data to Support Instructional Decision Making","Teachers-and-School-Leaders,K-12"," Elementary, Middle Grades, High School",1),pg8=new PracticeGuideResult("Assisting Students Struggling with Mathematics","Children-Youth-with-Disabilities,Math,K-12"," Elementary, Middle Grades",1),pg9=new PracticeGuideResult("Developing Effective Fractions Instruction for Kindergarten Through 8th Grade","Math,K-12"," Elementary, Middle Grades",1),pg10=new PracticeGuideResult("Improving Mathematical Problem Solving in Grades 4 Through 8","Math,K-12"," Elementary, Middle Grades",1),pg11=new PracticeGuideResult("Structuring Out-of-School Time to Improve Academic Achievement"," Teachers-and-School-Leaders,K-12"," Elementary, Middle Grades",1),pg12=new PracticeGuideResult("Teaching Academic Content and Literacy to English Learners in Elementary and Middle School","Literacy,K-12,ELL"," Elementary, Middle Grades",1),pg13=new PracticeGuideResult("Assisting Students Struggling with Reading","Children-Youth-with-Disabilities,Literacy,K-12"," Elementary",0),pg14=new PracticeGuideResult("Effective Literacy and English Language Instruction for English Learners in the Elementary Grades","ELL,Literacy,K-12"," Elementary",0),pg15=new PracticeGuideResult("Improving Reading Comprehension in Kindergarten Through 3rd Grade","Literacy, K-12"," Elementary",0),pg16=new PracticeGuideResult("Reducing Behavior Problems in the Elementary School Classroom","School-Choice,K-12"," Elementary",0),pg17=new PracticeGuideResult("Teaching Elementary School Students to Be Effective Writers","Literacy,K-12"," Elementary",0),pg18=new PracticeGuideResult("Teaching Math to Young Children","Math,K-12,Pre-K"," Prekindergarten, Elementary",0),pf19=new PracticeGuideResult("Helping Students Navigate the Path to College: What High Schools Can Do","High-School-Completion,K-12","Highschool",0),pf20=new PracticeGuideResult("Structuring Out-of-School Time to Improve Academic Achievement","Teachers-and-School-Leaders, High-School-Completion,K-12","Elementary, Middle Grades",0),pf21=new PracticeGuideResult("Dropout Prevention","High-School-Completion,K-12","Highschool",0),pf22=new PracticeGuideResult("Turning Around Chronically Low-Performing Schools","Schoolwide-Programs,K-12","Elementary, Middle Grades,Highschool",0),t1=new Topic("School Choice","fa-check-circle-o"),t2=new Topic("Math","fa-bar-chart"),t3=new Topic("Science","fa-flask"),t4=new Topic("Literacy","fa-bookmark"),t5=new Topic("Teacher and Leader Effectiveness","fa-users"),r1=new Rating("Positive Effects","Images/icons/PlusPlus.png",1),r2=new Rating("Potentially Positive Effects","Images/icons/Plus.png",2),r3=new Rating("Mixed Effects","Images/icons/PlusMinus.png",3),r4=new Rating("No Discernible Effects","Images/icons/Zero.png",4),r5=new Rating("Potentially Negative Effects","Images/icons/Minus.png",5),r6=new Rating("Negative Effects","Images/icons/MinusMinus.png",6),sfc1=new SearchFilterControl("Topic","Search Filters","checkbox",1,"Topic","TopicFilters"),sfc2=new SearchFilterControl("StudentPopulation","Special Student Population","checkbox",1,"Topic","TopicFilters"),sfc3=new SearchFilterControl("StudentLevel","Student Level","checkbox",1,"Topic","TopicFilters"),sfc4=new SearchFilterControl("ProgramLevel","Program Level","checkbox",1,"Topic","TopicFilters"),f1=new SearchFilterOption("Topic","Literacy","Literacy",3,"fa-bookmark",""),f2=new SearchFilterOption("Topic","Math","Math",4,"fa-calculator",""),f3=new SearchFilterOption("Topic","Science","Science",5,"fa-flask",""),f4=new SearchFilterOption("Topic","School Choice","School-Choice",1,"fa-check-circle-o",""),f5=new SearchFilterOption("Topic","Educational Progress","Educational-Progress",2,"fa-graduation-cap",""),f6=new SearchFilterOption("Topic","English Language Learners","ELL",6,"fa-language",""),f7=new SearchFilterOption("Topic","Special Education","Students-with-Disabilities",7,"fa-puzzle-piece",""),f8=new SearchFilterOption("Topic","Early Childhood (Pre-K)","Pre-K",8,"fa-child",""),f9=new SearchFilterOption("Topic","Kindergarten-12th Grade","K-12",9,"fa-k-12",""),f10=new SearchFilterOption("Topic","Post Secondary School","Post-Secondary",10,"fa-university",""),f11=new SearchFilterOption("Topic","Teachers","Teachers",11,"fa-user"," fa-stick"),ssc2=new SearchSortControl("Grade","Grade","range",2,"Grade",-1,12,""),ssc8=new SearchSortControl("Race","Race","slider",3,"Race",-1,100,"%"),ssc11=new SearchSortControl("Gender","Gender","slider",1,"Gender",-1,100,"%"),s5=new SearchSortOption("Grade","Grade",-1,-1,1,"",""),s25=new SearchSortOption("Gender","Male",-1,-1,1,"fa-male",""),s27=new SearchSortOption("Gender","Female",-1,-1,2,"fa-female",""),s10=new SearchSortOption("Race","Asian",-1,-1,1,"small-noicon",""),s13=new SearchSortOption("Race","Black",-1,-1,2,"small-noicon",""),s15=new SearchSortOption("Race","Native-American",-1,-1,3,"small-noicon",""),s17=new SearchSortOption("Race","Pacific-Islander",-1,-1,4,"small-noicon",""),s19=new SearchSortOption("Race","White",-1,-1,5,"small-noicon",""),s21=new SearchSortOption("Race","Other",-1,-1,6,"small-noicon",""),s23=new SearchSortOption("DeliveryMethod","Individual",-1,-1,1,"fa-user",""),s24=new SearchSortOption("DeliveryMethod","Small Group",-1,-1,2,"fa-group",""),s25=new SearchSortOption("DeliveryMethod","Whole Class",-1,-1,3,"fa-group","fa-square-o"),s26=new SearchSortOption("DeliveryMethod","Whole School",-1,-1,4,"fa-university",""),s27=new SearchSortOption("ProgramType","Curriculum",-1,-1,1,"small-noicon",""),s28=new SearchSortOption("ProgramType","Practice",-1,-1,2,"small-noicon",""),s29=new SearchSortOption("ProgramType","Supplement",-1,-1,3,"small-noicon",""),s7=new SearchSortOption("Urbanicity","Rural",-1,-1,1,"fa-leaf",""),s8=new SearchSortOption("Urbanicity","Suburban",-1,-1,2,"fa-home",""),s9=new SearchSortOption("Urbanicity","Urban",-1,-1,3,"fa-building-o",""),s28=new SearchSortOption("Region","Northeast",-1,-1,1,"small-noicon",""),s29=new SearchSortOption("Region","Midwest",-1,-1,2,"small-noicon",""),s30=new SearchSortOption("Region","South",-1,-1,3,"small-noicon",""),s31=new SearchSortOption("Region","West",-1,-1,4,"small-noicon",""),s32=new SearchSortOption("Region","International",-1,-1,5,"small-noicon",""),checkbox=new ControlType("checkbox"),radio=new ControlType("radio"),select=new ControlType("select"),range=new ControlType("Range"),ControlsTypes=[checkbox,radio,select,range];compare={objCurrent:null,arTargets:["compare-area","OtherResultsList"],initialize:function(n){n.onmousedown=drag.start;n.onclick=function(){this.focus()};n.onkeydown=drag.keyboardDragDrop;document.body.onclick=drag.removePopup},keyboardDragDrop:function(n){n=n||window.event;drag.objCurrent=this;var u=["Compare","Remove"],e=n.keyCode,f=drag.objCurrent,o=f.parentNode.getAttribute("id"),i,t,r;if(e==32){for(document.onkeydown=function(){return n.keyCode==38||n.keyCode==40?!1:!0},drag.objCurrent.setAttribute("aria-grabbed","true"),drag.objCurrent.setAttribute("aria-owns","popup"),i=document.createElement("ul"),i.setAttribute("id","popup"),i.setAttribute("role","menu"),r=0;r<u.length;r++)drag.arTargets[r]!=o&&(t=document.createElement("li"),t.appendChild(document.createTextNode(u[r])),t.tabIndex=-1,t.setAttribute("role","menuitem"),t.onmousedown=function(){drag.dropObject(this.firstChild.data.substr(0,3))},t.onkeydown=drag.handleContext,t.onmouseover=function(){this.className.indexOf("hover")<0&&(this.className+=" hover")},t.onmouseout=function(){this.className=this.className.replace(/\s*hover/,"")},i.appendChild(t));f.appendChild(i);i.firstChild.focus();i.firstChild.className="focus";drag.identifyTargets(!0)}},removePopup:function(){document.onkeydown=null;var n=document.getElementById("popup");n&&n.parentNode.removeChild(n)},handleContext:function(n){n=n||window.event;var i=n.target||n.srcElement,e=n.keyCode,t,u,f,r;n.stopPropagation?n.stopPropagation():n.cancelBubble&&(n.cancelBubble=!0);n.preventDefault?n.preventDefault():n.returnValue&&(n.returnValue=!1);switch(e){case 38:t=i.nextSibling;t||(t=i.previousSibling);i.className="";t.focus();t.className="focus";break;case 40:t=i.previousSibling;t||(t=i.nextSibling);i.className="";t.focus();t.className="focus";break;case 13:f=i.firstChild.data.substr(0,3);drag.dropObject(f);break;case 27:case 9:for(drag.objCurrent.removeAttribute("aria-owns"),drag.objCurrent.removeChild(i.parentNode),drag.objCurrent.focus(),r=0;r<drag.arTargets.length;r++)u=document.getElementById(drag.arTargets[r]),drag.objCurrent.setAttribute("aria-grabbed","false"),u.removeAttribute("aria-dropeffect"),u.className=""}},start:function(n){return n=n||window.event,drag.removePopup(),drag.objCurrent=this,drag.objCurrent.lastX=n.clientX,drag.objCurrent.lastY=n.clientY,drag.objCurrent.style.zIndex="2",drag.objCurrent.setAttribute("aria-grabbed","true"),document.onmousemove=drag.drag,document.onmouseup=drag.end,drag.identifyTargets(!0),!1},drag:function(n){n=n||window.event;var t=n.clientY,i=n.clientX,f=parseInt(drag.objCurrent.style.top,10),e=parseInt(drag.objCurrent.style.left,10),r,u;return r=e+i-drag.objCurrent.lastX,u=f+t-drag.objCurrent.lastY,drag.objCurrent.style.left=r+"px",drag.objCurrent.style.top=u+"px",drag.objCurrent.lastX=i,drag.objCurrent.lastY=t,!1},calculatePosition:function(n,t){var i=0;if(n.offsetParent)do i+=n[t],n=n.offsetParent;while(n);return i},identifyTargets:function(n){for(var r=drag.objCurrent.parentNode.getAttribute("id"),t,i=0;i<drag.arTargets.length;i++)t=document.getElementById(drag.arTargets[i]),n&&drag.arTargets[i]!=r?(t.className="highlight",t.setAttribute("aria-dropeffect","move")):(t.className="",t.removeAttribute("aria-dropeffect"))},getTarget:function(){for(var h=drag.objCurrent.parentNode.getAttribute("id"),f=drag.calculatePosition(drag.objCurrent,"offsetLeft"),e=drag.calculatePosition(drag.objCurrent,"offsetTop"),i=40,t,r,o,u,s,n=0;n<drag.arTargets.length;n++)if(drag.arTargets[n]!=h&&(t=document.getElementById(drag.arTargets[n]),r=drag.calculatePosition(t,"offsetLeft")-i,o=r+t.offsetWidth+i,u=drag.calculatePosition(t,"offsetTop")-i,s=u+t.offsetHeight+i,f>r&&f<o&&e>u&&e<s))return drag.arTargets[n];return""},dropObject:function(n){var t,i,r,f,e,u;drag.removePopup();n.length>0&&(i=drag.objCurrent.parentNode,t=drag.objCurrent.cloneNode(!0),t.removeAttribute("style"),t.className=t.className.replace(/\s*focused/,""),t.className=t.className.replace(/\s*hover/,""),t.onfocus=function(){this.className+=" focused"},t.onblur=function(){this.className=this.className.replace(/\s*focused/,"")},t.onmouseover=function(){this.className.indexOf("hover")<0&&(this.className+=" hover")},t.onmouseout=function(){this.className=this.className.replace(/\s*hover/,"")},r=document.getElementById(n),i.removeChild(drag.objCurrent),r.appendChild(t),drag.objCurrent=t,drag.initialise(t),f=getElementsByClassName(r,"li","empty"),f[0]&&r.removeChild(f[0]),e=i.getElementsByTagName("li"),e.length===0&&(u=document.createElement("li"),u.appendChild(document.createTextNode("None")),u.className="empty",i.appendChild(u)));drag.objCurrent.style.left="0px";drag.objCurrent.style.top="0px";drag.objCurrent.style.zIndex="auto";drag.objCurrent.setAttribute("aria-grabbed","false");drag.objCurrent.removeAttribute("aria-owns");drag.identifyTargets(!1)},end:function(){var n=drag.getTarget();drag.dropObject(n);document.onmousemove=null;document.onmouseup=null;drag.objCurrent=null}}