$(function(){ $("#headerSearchForm").on("submit", function(event) { event.preventDefault(); var query = $.trim($("#headerSearchQ").val());if (query.length == 0) {return false;} location.href = "https://buscador.rincondelvago.com/" + query.replace(/[^ a-záâàäéêèëíîìïóôòöúûùüçñA-ZÁÂÀÄÉÊÈËÍÎÌÏÓÔÒÖÚÛÙÜÇÑ0-9'"]/g,"").replace(/ /g,"+"); }); $("#bodySearchForm").on("submit", function(event) { event.preventDefault(); var query = $.trim($("#bodySearchQ").val());if (query.length == 0) {return false;} location.href = "https://buscador.rincondelvago.com/" + query.replace(/[^ a-záâàäéêèëíîìïóôòöúûùüçñA-ZÁÂÀÄÉÊÈËÍÎÌÏÓÔÒÖÚÛÙÜÇÑ0-9'"]/g,"").replace(/ /g,"+"); }); }); var div_1_sizes = [ [320, 100], [320, 50], [300, 250], [300, 600] ]; var div_2_sizes = [[970, 90], [728, 90],[970, 250]]; var PREBID_TIMEOUT = 2000; var adUnits = []; var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; googletag.cmd.push(function() { googletag.pubads().disableInitialLoad(); }); var pbjs = pbjs || {}; pbjs.que = pbjs.que || []; pbjs.que.push(function() { pbjs.addAdUnits(adUnits); pbjs.requestBids({ bidsBackHandler: initAdserver }); }); function initAdserver() { if (pbjs.initAdserverSet) return; pbjs.initAdserverSet = true; googletag.cmd.push(function() { pbjs.que.push(function() { pbjs.setTargetingForGPTAsync(); googletag.pubads().refresh(); }); }); } setTimeout(function() { initAdserver(); }, PREBID_TIMEOUT); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_2_sizes, 'div-gpt-ad-1498674722723-0').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_2_sizes, 'div-gpt-ad-1515779430602-1').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_2_sizes, 'div-gpt-ad-1515779430602-2').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_2_sizes, 'div-gpt-ad-1515779430602--3').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_2_sizes, 'div-gpt-ad-1515779430602--4').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_2_sizes, 'div-gpt-ad-1515779430602--5').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--6').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--7').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--8').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--9').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--10').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--11').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--12').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--13').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--14').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--15').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--16').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--17').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--18').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--19').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--20').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--21').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--22').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--23').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.defineSlot('/49859683/RDV_web', div_1_sizes, 'div-gpt-ad-1515779430602--24').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); // // Begin comScore Tag var _comscore = _comscore || []; _comscore.push({ c1: "2", c2: "5641052" }); (function() { var s = document.createElement("script"), el = document.getElementsByTagName("script")[0]; s.async = true; s.src = (document.location.protocol == "https:" ? "https://sb" : "https://b") + ".scorecardresearch.com/beacon.js"; el.parentNode.insertBefore(s, el); })(); // End comScore Tag // var domain= "rincondelvago.com"; //-->