function showNav() { var x = document.getElementById("smallNav"); if (x.style.display === "none") { x.style.display = "block"; } else { x.style.display = "none"; } }window.onscroll = function() {scrollFunction()}; function scrollFunction() { if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { document.getElementById("toTopBtn").style.display = "block"; } else { document.getElementById("toTopBtn").style.display = "none"; } } function topFunction() { document.body.scrollTop = 0; // For Safari document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera }var idleLoad=function(){function p(a,c){var b,d;c||(c=250);return function(){var f=this,e=+Date.now(),g=arguments;b&&e=b[c].parentNode.getBoundingClientRect().top){a=b[c];var h=l,d=document.createElement(m);d.className=a.className.replace(f,f+n);d.innerHTML=a.innerHTML.replace(/</g, "<").replace(/>/g,">");a.parentNode.replaceChild(d,a);h&&h(d)}}else window.removeEventListener("scroll",g,!1)}var b,e,k,m,f,n,l,g;return{init:function(a){document.addEventListener&&document.getElementsByClassName&&(f=a.elementClass||"idle-load",b=document.getElementsByClassName(f),n=a.onClass||"-ON",m=a.elementTo||"div",e=(e=0===a.offsetViewportBy?1E-4:a.offsetViewportBy)||1.5,k=a.idleAttribute||"idle",g=p(function(){h()},a.pollDelay),l=a.callbackFunc||!1,window.addEventListener("scroll",g,!1), h())}}}(); idleLoad.init({ // All options optional: elementClass : "idle-load", // (default) Class of tags to replace. onClass : "-ON", // (default) Added to the class name upon replacement. elementTo : "div", // (default) Element to replace . offsetViewportBy : 0.8, // Viewport: 0 top, 0.5 halfway, 1 bottom, 1.5 (default) half a screen below the viewport. // May be overidden by a data-idle value on a noscript tag: data-idle="1". idleAttribute : "idle", // (default) Data attribute to override offsetViewportBy, uses same values. pollDelay : 250, // (default) How often polling to throttle occurs. callbackFunc : function(){} // Call back function on noscript replacement. });var reviewsJsonLdRendered=!1;richSnippetReviewsWidgets=function(){var e,t,n;arguments.length>1?(e=arguments[0],n=document.getElementById(e),t=arguments[1]):(t=arguments.length>0?arguments[0]:{},e="richSnippetReviewsWidget-defaultContainer",n=document.createElement("div"),n.setAttribute("id",e),document.body.appendChild(n));var d="http://widget.reviews.co.uk/rich-snippet-reviews-widgets/widget",a="version=13";t.elementId=e,t.origin=window.location.href;for(i in t)"sku"==i&&Array.isArray(t[i])&&(t[i]=t[i].join(";")),a.length>0&&(a+="&"),a+="object"!=typeof t[i]?i+"="+encodeURIComponent(t[i]):i+"="+encodeURIComponent(JSON.stringify(t[i]));var r=document.createElement("IFRAME");r.name+=e+"_frame",r.id+=e+"_frame", r.setAttribute("frameborder",0), r.setAttribute("title","Customer Reviews"), //n.innerHTML="",n.appendChild(r), r.width="100%",r.scrolling="no",r.maxWidth="100%",r.minWidth="100%",r.height=200,window.onresize=function(){r.width=window.getComputedStyle(n,null).getPropertyValue("width"),r.style.width=window.getComputedStyle(n,null).getPropertyValue("width")+"px"};var o=a.length>1e3?"post":"get";if("get"==o)r.setAttribute("src",d+"?"+a);else{var s=document.createElement("form");s.style="display:none;",s.method="POST",s.action=d,s.target=e+"_frame";for(var c in t){var l=document.createElement("input");l.type="hidden",l.value=t[c],l.name=c,s.appendChild(l)}document.body.appendChild(s),s.submit()}var p=function(t){var i;try{var d=JSON.parse(t.data);if(void 0!=d.action)switch(i=window.document.querySelector("iframe#"+e+"_frame"),d.action){case"resize":d.elementId==e&&(r.height=d.height);break;case"jsonld":if(!reviewsJsonLdRendered){var a=document.createElement("script");a.type="application/ld+json",a.innerHTML=JSON.stringify(d.data),n.appendChild(a),reviewsJsonLdRendered=!0}break;case"RUKFloatingWidget#Ready":"richSnippetReviewsWidget-defaultContainer"==e&&i.classList.add("RUKFloatingWidget");break;case"RUKFloatingWidget#Expand":"richSnippetReviewsWidget-defaultContainer"==e&&i.classList.add("expanded");break;case"RUKFloatingWidget#Retract":"richSnippetReviewsWidget-defaultContainer"==e&&i.classList.remove("expanded")}}catch(o){}};window.addEventListener?addEventListener("message",p,!1):attachEvent("onmessage",p)},"function"==typeof richSnippetReviewsWidgetsListenerCallback&&richSnippetReviewsWidgetsListenerCallback(); richSnippetReviewsWidgets('carousel-widget-810', { store: 'log-cabin-kits', widgetName: 'carousel', primaryClr: '#f47e27', neutralClr: '#f4f4f4', buttonClr: '#494949', textClr: '#333', layout: 'fullWidth', numReviews: 30, hideDates : true, });