(function() { function insertScript(content, type, id) { var s = document.createElement('script'); var body = document.querySelector('body'); s.type = type; if (id) { s.id = id; } s.innerText = content; body.appendChild(s); } function insertCSS(content) { var sheet = document.createElement('style'); var head = document.querySelector('head'); sheet.type = 'text/css'; sheet.innerText = content; head.appendChild(sheet); } var content = '{{#is_first}}' + '{{#banner}}' + '
' + '' + '{{#image}}' + '' + '{{/image}}' + '{{#html_code}}' + '{{{html_code}}}' + '{{/html_code}}' + '' + '
' + '{{/banner}}' + '{{/is_first}}' + '{{#total}}' + '{{#results}}' + '
' + '' + '{{#discount}}' + '
-{{discount}}%
' + '{{/discount}}' + '{{#image_link}}' + '
' + '{{title}}' + '
' + '{{/image_link}}' + '
' + '
{{title}}
' + '
{{{description}}}
' + '{{#price}}' + '
' + '' + '{{#format-currency}}{{price}}{{/format-currency}}' + '' + '{{#sale_price}}' + '' + '{{#format-currency}}{{sale_price}}{{/format-currency}}' + '' + '{{/sale_price}}' + '
' + '{{/price}}' + '{{#df_rating}}' + '
' + '
' + '
' + '' + '
' + '
' + '' + '
' + '
' + '
' + '{{/df_rating}}' + '
' + '
' + '
' + '{{/results}}' + '{{/total}}' + '{{^total}}' + '{{#noResultsHTML}}{{{noResultsHTML}}}{{/noResultsHTML}}' + '{{^noResultsHTML}}' + '

{{#translate}}Sorry, no results found.{{/translate}}

' + '{{/noResultsHTML}}' + '{{/total}}'; insertScript(content, 'text/x-mustache-template', 'df-results-template'); }()); var doofinder_script ='//cdn.doofinder.com/media/js/doofinder-classic.7.latest.min.js'; (function(d,t){var f=d.createElement(t),s=d.getElementsByTagName(t)[0];f.async=1; f.src=('https:'==location.protocol?'https:':'http:')+doofinder_script; f.setAttribute('charset','utf-8'); s.parentNode.insertBefore(f,s)}(document,'script')); var dfClassicLayers = [{ "hashid": "2b3fc74798b5ebaaec21397deeb641ee", "zone": "us1", "mobile":{ "display":{ "currency": { "precision": 0, "forceDecimals": false }, "initialSearch":"producmobile", "results": { "template": document.getElementById('df-results-template').innerHTML }, } }, "callbacks": { "loaded": function(instance) { var controller = instance.layer.controller; controller.processors.push(function(response) { response.results = response.results.map(function(result) { if (result.price != result.best_price) { var price = result.price, best_price = result.best_price; result.discount = Math.ceil((price - best_price) * 100 / price); } return result; }); return response; }); } }, "display": { "lang": "es", "width": "100%", "currency": { "precision": 0, "forceDecimals": false }, "results": { "template": document.getElementById('df-results-template').innerHTML }, "align": "center", "facets": { "attached": "left" } }, "queryInput": "#ajax_search" }];