Window.onDomReady(function() { var RegionLookup = { "us": "us", "gb": "uk", "eu": "eu", "sg": "sg", "au": "au" }; var filter = new DataFilter( { cookieName: "product_filter_query", region: "gb", lang: "qe", initService: "/gb/qe/filtering/products/filter_init.cfm", queryService: "/gb/qe/filtering/products/filter_search.cfm", pageSize: 6, onSearch: function() { $$("#filter .results tbody tr").each(function(row) { var compatible = false; var currentRegion = RegionLookup[this.config.region.toLowerCase()]; var regions = row.data.DisclaimerRegion.split(","); var strUrl = row.data.URL.toLowerCase(); var isExtUrl = false; var extCompany = ""; if (strUrl.substring(0,1) != "/"){ isExtUrl = true; extCompany = strUrl.split("/"); extCompany = extCompany[2].toLowerCase(); if (extCompany.indexOf("leggmason",0) > 0) { extCompany = "Legg Mason Inc."; } else { if (extCompany.indexOf("westernclaymore",0) > 0) { extCompany = "Claymore Securities Inc."; } else { extCompany = "other"; } } } if (isExtUrl) { $(row).getElements("a").each(function(a) { addDisclaimer(a, extCompany); }); } }.bind(this)); } }); });