function ocOct__buildDom(){jQuery("head").append('\x3c!--Octopus--\x3e<style type="text/css">.ocOct_box{border:1px solid #ccc;border-radius:5px;padding:10px 20px 0;margin:-10px -20px 30px}.ocOct_imageWrap{width:80%;margin:10px auto;display:block}.ocOct_titleWrap{margin-bottom:20px}.ocOct_partnerLinkWrap{clear:both;width:100%;height:50px}.ocOct_left{width:50%}.ocOct_right{width:50%;float:right}.ocOct_right a{background-color:#ff5253;width:100%;height:100%;border-radius:3px;display:block;color:#fff;text-align:center}.ocOct_right a:hover{background-color:#3a3a3a;color:#ff5253}.ocOct_title{font-weight:700;font-family:Arial;font-size:28px;line-height:31px}.pb__container__pb{border-radius:5px}.pb_contains_main_image_pb{border-radius:10px}.o-link-list-size-0{display:none}.o-link-list-size-1 li{width:100%}.o-link-list-size-2 li{width:49.5%}.o-link-list-size-3 li{width:32.65%}.o-link-list-inline li{display:inline-block;list-style:none;list-style-type:none;padding:0;margin:0;margin-right:1%}.o-link-list-inline{padding:0}.o-link-list-inline li a{margin-top:6px;margin-bottom:1px;height:35px;background-color:#ff5253;display:flex;align-items:center;justify-content:center;font-size:20px;color:#3a3a3a;font-family:Aldrich,sans-serif;text-decoration:none}@media only screen and (max-width:600px){.o-link-list-inline li{display:block;width:100%}}.pb_cont_1{margin-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.pb_cont_2{border-top-left-radius:0;border-top-right-radius:0}.o-link-list-inline li a:hover{color:#ff5253;background-color:#4d4d4d;border-bottom:3px solid #ff5253;margin-bottom:-2px}.o-link-list-inline li:last-child{margin-right:0}.pb_button_target_link_pb a .pb_main_button_pb{color:#3a3a3a;border-radius:5px}.pb_button_target_link_pb:hover{margin-bottom:1px}.pb_button_target_link_pb a:hover .pb_main_button_pb{color:#ff5253}ul.o-link-list-inline{margin-left:0}.o-link-list-size-3 li a{font-size:14px!important}.pb_seller_no_price{font-size:21px;magin-top:8px}.pb_price_span_pb{margin-bottom:3px}.o-link-list-top-label{display:block;font-size:11px;color:#8d8c8c;margin-top:-14px;background-color:#fff;margin-bottom:3px;width:130px}.o-twoliner-block{border-top:1px solid #efefef;padding-top:5px;border-bottom:1px solid #efefef;padding-bottom:5px;margin-bottom:15px;font-size:12px;width:100%}.o-twoliner-left{width:80%}.o-twoliner-right{float:right;width:20%;text-align:center;background-color:#efefef;padding:5px 7px 0;margin-top:-6px;height:47px}.o-twoliner-block img{max-height:17px}._title{margin-bottom:-3em;text-align:left;font-family:Arial;font-size:.5em}._wrapper{position:relative;margin:2em auto;width:320px;height:250px;max-height:400px}._bg-wrapper{position:absolute;width:320px;height:250px;clip:rect(0 320px 250px 0);max-height:400px}._bg{position:fixed;height:100%;top:0;left:50%;backface-visibility:hidden;transform:translate3d(-50%,0,0)}.blockWrapper{max-width:100%}.o-block{margin:auto;text-align:center;margin-bottom:20px}.o-block ._title{margin-bottom:0;text-align:center}._fixedBottom{bottom:0;position:fixed;width:100%;left:0;right:0;z-index:10000;text-align:center}._fixedBottom img{margin:auto}</style>');var i=[];jQuery(".o-link").each((function(l){""==jQuery(this).html()&&(i[i.length]=jQuery(this).data("product-id"))}));var l=0;jQuery(".o-interscroller").each((function(i){l++}));var n=0;jQuery(".o-block").each((function(i){n++}));var o=0;jQuery(".o-twoliner").each((function(i){o++}));var t=Math.min(jQuery(".o-bottomfixed").length,1);jQuery.post({url:BASE_URL_ENDPOINT+"/dataSingle",data:{products:i.join(","),interscrollers:l,twoliners:o,blocks:n,bottomfixed:t},success:function(i){i.products&&jQuery(".o-link").each((function(l){var n=jQuery(this);if(""==n.html()){var o={layoutStyle:jQuery(this).data("layout-style"),productId:jQuery(this).data("product-id")};"inline"==o.layoutStyle?ocOct__LoadInlineHtml(n,i.products.filter((i=>i.id==o.productId))[0]):ocOct__loadBlockHtml(n,i.products.filter((i=>i.id==o.productId))[0])}})),i.interscrollers&&jQuery(".o-interscroller").each((function(l){ocOct__loadInterscroller(jQuery(this),i.interscrollers.pop())})),i.twoliners&&jQuery(".o-twoliner").each((function(l){ocOct__loadTwoLiner(jQuery(this),i.twoliners.pop())})),i.blocks&&jQuery(".o-block").each((function(l){ocOct__loadBlock(jQuery(this),i.blocks.pop())})),i.bottomfixed&&ocOct__loadBottomFixed(jQuery(".o-bottomfixed"),i.bottomfixed[0])}})}function ocOct__loadBottomFixed(i,l){if(null!=l){let n="<div class='_fixedBottom'><a href='"+BASE_URL_ENDPOINT+"/c/"+l.linkId+"' target='_blank' rel='nofollow'><img src='"+l.imageUrl+"' /></a></div>";i.html(n)}}function ocOct__loadBlock(i,l){if(null!=l&&l.linkId&&l.imageUrl){let n="<div class='_title'>Advertisement</div>";n+="<div class='blockWrapper'><a href='"+BASE_URL_ENDPOINT+"/c/"+l.linkId+"' target='_blank' rel='nofollow'><img src='"+l.imageUrl+"' /></a></div>",i.html(n)}}function ocOct__LoadInlineHtml(i,l){if(l.Links){var n='<span class="o-link-list-top-label">Purchase this item on...</span><ul class="o-link-list-inline o-link-list-size-'+Math.min(l.Links.length,3)+'">';for(var o in l.Links){var t=l.Links[o];3==l.Links.length&&31,2==l.Links.length&&48,0!=t.price?n+='<li><a href="'+BASE_URL_ENDPOINT+"/c/"+t.id+'" target="_blank" rel="nofollow sponsored">'+t.Affiliate.name+" $"+parseInt(t.price)+"</a></li>":n+='<li><a href="'+BASE_URL_ENDPOINT+"/c/"+t.id+'" target="_blank" rel="nofollow sponsored">'+t.Affiliate.name+"</a></li>"}n+="</ul>",console.log(n),i.html(n)}}function ocOct__loadBlockHtml(i,l){if(l.Links&&l.Links[0]&&l.Links[0].id){var n='<div class="promotion_box"><a class="pb_hugging_link_pb" href="'+BASE_URL_ENDPOINT+"/c/"+l.Links[0].id+'" target="_blank" rel="nofollow sponsored"><div class="pb__container__pb pb_cont_1"><div class="pb_contains_main_image_pb"><img class="pb_main_image_pb" src="'+l.imageUrl+'" alt="'+l.name+'" /></div><div class="pb_contains_name_pb"><span class="pb_name_span_pb">'+l.name+'</span></div></div></a><div class="pb__container__pb pb_cont_2">';for(var o in l.Links){var t=l.Links[o];n+='<div class="pb_contains_non_media_pb"><div class="pb_price_info_pb">',0!=t.price?n+='<span class="pb_price_span_pb">$'+parseInt(t.price)+' </span><span class="pb_seller_span_pb">at '+t.Affiliate.name+"</span>":n+='<span class="pb_seller_span_pb pb_seller_no_price">'+t.Affiliate.name+"</span>",n+='</div><div class="pb_main_button_container_pb"><div class="pb_button_target_link_pb"><a href="'+BASE_URL_ENDPOINT+"/c/"+t.id+'" target="_blank" rel="nofollow sponsored"><div class="pb_main_button_pb"><span class="pb_main_button_text">SEE IT</span></div></a></div></div></div>'}n+="</div></div>",i.html(n)}}function ocOct__loadTwoLiner(i,l){if(null!=l){let n="";n+="<div class='o-twoliner-block'>",n+="<a href='"+BASE_URL_ENDPOINT+"/c/"+l.linkId+"' target='_blank' rel='nofollow' class='o-twoliner-cta'><div class='o-twoliner-right'>",l.imageUrl&&(n+="<img src='"+l.imageUrl+"' />"),n+="<span>Visit ></span>",n+="</div></a>",n+="<div class='o-twoliner-left'><span class=\"o-link-list-top-label\">Our sponsor</span><span class='o-line1'>"+l.twoLiner[0]+"</span><br />",n+="<span class='o-line1'>"+l.twoLiner[1]+"</span></div>",n+="</div>",i.html(n)}}function ocOct__loadInterscroller(i,l){if(null!=l){let n="<div class='_title'>Advertisement</div>";n+="<div class='_wrapper'><a href='"+BASE_URL_ENDPOINT+"/c/"+l.linkId+"' target='_blank' rel='nofollow'><div class='_bg-wrapper'><img class='_bg' src='"+l.imageUrl+"' /></div></a></div>",i.html(n)}}BASE_URL_ENDPOINT="https://o.snipercountry.com",window.onload=ocOct__buildDom;