/*! * jQuery CookieConsent Plugin * https://github.com/phuu/cookieConsent * * Copyright 2012, Tom Ashworth * Originally created for The Higgs Design Co - http://higgsdesign.com */(function(a){a.cookieConsent=function(b){b||(b={});var c={mode:"default",persistence:"heavy",color:{main:"#29f",bg:"#fff",popover:"rgba(0,0,0,.3)",text:"#444"},font:"12px Tahoma, sans-serif",slideSpeed:"fast",width:"auto",maxWidth:"50%",link:{cookies:"http://en.wikipedia.org/wiki/HTTP_cookie",policy:null}};if(a.cookie("cookieConsent")==="yes"){a("html").addClass("cookie-consent-given");a("#cookie-consent-wrapper").slideDown(c.slideSpeed);return}c.content={heading:["strong",{content:"This site uses "},["a",{href:c.link.cookies,content:"cookies."}]],text:["p",{content:"By using this site you agree to our "+(c.link.policy?"":"cookie policy.")},c.link.policy?["a",{href:c.link.policy,content:"cookie policy."}]:[]]};var d=function i(b){var c,d,e=document.createElement(b[0]);if(b[1]){var f=b[1];for(c in f)f.hasOwnProperty(c)&&(c==="content"?a(e).text(f[c]):c==="css"?a(e).css(f[c]):e.setAttribute(c,f[c]))}if(b.length>2){c=2,d=b.length;for(;c";var g=a("html"),h=d(e);c.persistence==="light"&&a.cookie("cookieConsent","yes");a(h).on("click","#cookie-close",function(){a.cookie("cookieConsent","yes");a(h).slideUp(c.slideSpeed,function(){h.parentNode.removeChild(h);a("html").addClass("cookie-consent-given")})});a(f).appendTo("head");a(h).prependTo("body")}})(jQuery);(function(a){a.cookie=function(b,c,d){if(arguments.length>1&&(!/Object/.test(Object.prototype.toString.call(c))||c===null||c===undefined)){d=a.extend({},d);if(c===null||c===undefined)d.expires=-1;if(typeof d.expires=="number"){var e=d.expires,f=d.expires=new Date;f.setDate(f.getDate()+e)}c=String(c);return document.cookie=[encodeURIComponent(b),"=",d.raw?c:encodeURIComponent(c),d.expires?"; expires="+d.expires.toUTCString():"",d.path?"; path="+d.path:"",d.domain?"; domain="+d.domain:"",d.secure?"; secure":""].join("")}d=c||{};var g=d.raw?function(a){return a}:decodeURIComponent,h=document.cookie.split("; ");for(var i=0,j;j=h[i]&&h[i].split("=");i++)if(g(j[0])===b)return g(j[1]||"");return null}})(jQuery);