function cli_show_cookiebar(n){function p(){e.set(o,"yes",c);b()}function a(){return e.set(o,"yes",c),t.notify_animate_hide?i.slideUp(t.animate_speed_hide):i.hide(),u.slideDown(t.animate_speed_show),!1}function v(){window.pageYOffset>100&&!e.read(o)&&(a(),t.scroll_close_reload===!0&&location.reload(),window.removeEventListener("scroll",v,!1))}function w(){t.notify_animate_show?i.slideDown(t.animate_speed_show):i.show();u.hide()}function b(){t.notify_animate_show?u.slideDown(t.animate_speed_show):u.show();i.slideUp(t.animate_speed_show)}var e={set:function(n,t,i){var r,u;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="";document.cookie=n+"="+t+u+"; path=/"},read:function(n){for(var r=n+"=",u=document.cookie.split(";"),t,i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(r)===0)return t.substring(r.length,t.length)}return null},erase:function(n){this.set(n,"",-1)},exists:function(n){return this.read(n)!==null}},o="viewed_cookie_policy",c=365,y=n.settings,r,f,l,s,h;if(typeof JSON.parse!="function"){console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it");return}var t=JSON.parse(y),i=jQuery(t.notify_div_id),u=jQuery(t.showagain_div_id),k=jQuery("#cookie_hdr_accept"),d=jQuery("#cookie_hdr_decline"),g=jQuery("#cookie_hdr_moreinfo"),nt=jQuery("#cookie_hdr_settings");i.hide();t.showagain_tab||u.hide();r={"background-color":t.background,color:t.text,"font-family":t.font_family};t.notify_position_vertical=="top"?(t.header_fix===!0&&(r.position="fixed"),r.top="0"):r.bottom="0";f={"background-color":t.background,color:l1hs(t.text),position:"fixed","font-family":t.font_family};t.border_on&&(l="border-"+t.notify_position_vertical,f.border="1px solid "+l1hs(t.border),f[l]="none");t.notify_position_vertical=="top"?(t.border_on&&(r["border-bottom"]="4px solid "+l1hs(t.border)),f.top="0"):t.notify_position_vertical=="bottom"&&(t.border_on&&(r["border-top"]="4px solid "+l1hs(t.border)),r.position="fixed",r.bottom="0",f.bottom="0");t.notify_position_horizontal=="left"?f.left=t.showagain_x_position:t.notify_position_horizontal=="right"&&(f.right=t.showagain_x_position);i.css(r);u.css(f);e.exists(o)?i.hide():w();t.show_once_yn&&setTimeout(p,t.show_once);s=jQuery(".cli-plugin-main-button");s.css("color",t.button_1_link_colour);t.button_1_as_button&&(s.css("background-color",t.button_1_button_colour),s.hover(function(){jQuery(this).css("background-color",t.button_1_button_hover)},function(){jQuery(this).css("background-color",t.button_1_button_colour)}));h=jQuery(".cli-plugin-main-link");h.css("color",t.button_2_link_colour);t.button_2_as_button&&(h.css("background-color",t.button_2_button_colour),h.hover(function(){jQuery(this).css("background-color",t.button_2_button_hover)},function(){jQuery(this).css("background-color",t.button_2_button_colour)}));u.click(function(n){n.preventDefault();u.slideUp(t.animate_speed_hide,function(){i.slideDown(t.animate_speed_show)})});jQuery("#cookielawinfo-cookie-delete").click(function(){return e.erase(o),!1});jQuery("#cookie_action_close_header").click(function(n){n.preventDefault();a()});t.scroll_close===!0&&window.addEventListener("scroll",v,!1)}function l1hs(n){if(n.charAt(0)=="#")n=n.substring(1,n.length);else return"#"+n;return l1hs(n)}