-
Notifications
You must be signed in to change notification settings - Fork 46
/
cookieconsent.min.js
62 lines (62 loc) · 32.4 KB
/
cookieconsent.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
var cc={version:"1.0.10",jqueryversionrequired:"1.4.4",initobj:!1,ismobile:!1,setupcomplete:!1,allasked:!1,checkedlocal:!1,checkedremote:!1,remoteresponse:!1,frommodal:!1,hassetupmobile:!1,sessionkey:!1,noclosewin:!1,closingmodal:!1,jqueryattempts:0,reloadkey:!1,forcereload:!1,allagree:!0,checkedipdb:!1,cookies:{},uniqelemid:0,executionblock:0,defaultCookies:{social:{},analytics:{},advertising:{}},remoteCookies:{},approved:{},bindfunctions:{},checkeddonottrack:!1,eumemberstates:"BE BG CZ DK DE EE IE EL ES FR IT CY LV LT LU HU MT NL AT PL PT RO SI SK FI SE UK".split(" "),
settings:{refreshOnConsent:!1,style:"dark",bannerPosition:"top",clickAnyLinkToConsent:!1,privacyPolicy:!1,collectStatistics:!1,tagPosition:"bottom-right",useSSL:!1,serveraddr:"http://cookieconsent.silktide.com/",clearprefs:!1,consenttype:"explicit",onlyshowbanneronce:!1,hideallsitesbutton:!1,disableallsites:!1,hideprivacysettingstab:!1,scriptdelay:800,testmode:!1,overridewarnings:!1,onlyshowwithineu:!1,ipinfodbkey:!1,ignoreDoNotTrack:!1},strings:{jqueryWarning:"Developer: Caution! In order to use Cookie Consent, you need to use jQuery 1.4.4 or higher.",
noJsBlocksWarning:"Developer: Warning! It doesn't look like you have set up Cookie Consent correctly. You must follow all steps of the setup guide at http://silktide.com/cookieconsent/code. If you believe you are seeing this message in error, you can use the overridewarnings setting (see docs for more information).",noKeyWarning:"Developer: Warning! You have set the plugin to only show within the EU, but you have not provided an API key for the IP Info DB. Check the documentation at http://silktide.com/cookieconsent for more information",
invalidKeyWarning:"Developer: Warning! You must provide a valid API key for IP Info DB. Check the documentation at http://silktide.com/cookieconsent for more information",necessaryDefaultTitle:"Strictly necessary",socialDefaultTitle:"Social media",analyticsDefaultTitle:"Analytics",advertisingDefaultTitle:"Advertising",defaultTitle:"Default cookie title",necessaryDefaultDescription:"Some cookies on this website are strictly necessary and cannot be disabled.",socialDefaultDescription:"Facebook, Twitter and other social websites need to know who you are to work properly.",
analyticsDefaultDescription:"We anonymously measure your use of this website to improve your experience.",advertisingDefaultDescription:"Adverts will be chosen for you automatically based on your past behaviour and interests.",defaultDescription:"Default cookie description.",notificationTitle:"Your experience on this site will be improved by allowing cookies",notificationTitleImplicit:"We use cookies to ensure you get the best experience on our website",poweredBy:"Cookie Consent plugin for the EU cookie law",
privacyPolicy:"Privacy policy",learnMore:"Learn more",seeDetails:"see details",seeDetailsImplicit:"change your settings",hideDetails:"hide details",savePreference:"Save preference",saveForAllSites:"Save for all sites",allowCookies:"Allow cookies",allowCookiesImplicit:"Close",allowForAllSites:"Allow for all sites",customCookie:"This website uses a custom type of cookie which needs specific approval",privacySettings:"Privacy settings",privacySettingsDialogTitleA:"Privacy settings",privacySettingsDialogTitleB:"for this website",
privacySettingsDialogSubtitle:"Some features of this website need your consent to remember who you are.",closeWindow:"Close window",changeForAllSitesLink:"Change settings for all websites",preferenceUseGlobal:"Use global setting",preferenceConsent:"I consent",preferenceDecline:"I decline",preferenceAsk:"Ask me each time",preferenceAlways:"Always allow",preferenceNever:"Never allow",notUsingCookies:"This website does not use any cookies.",clearedCookies:"Your cookies have been cleared, you will need to reload this page for the settings to have effect.",
allSitesSettingsDialogTitleA:"Privacy settings",allSitesSettingsDialogTitleB:"for all websites",allSitesSettingsDialogSubtitle:"You may consent to these cookies for all websites that use this plugin.",backToSiteSettings:"Back to website settings"},onconsent:function(a,b){cc.isfunction(b)?fn=b:(scriptname=b,fn=function(){cc.insertscript(scriptname)});cc.cookies&&cc.cookies[a]&&cc.cookies[a].approved?(cc.cookies[a].executed=!0,fn()):window.jQuery?jQuery(document).bind("cc_"+a,fn):cc.bindfunctions[a]?
cc.bindfunctions[a][cc.bindfunctions[a].length]=fn:cc.bindfunctions[a]=Array(fn)},geturlparameter:function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");a=RegExp("[\\?&]"+a+"=([^&#]*)").exec(window.location.search);return null==a?!1:decodeURIComponent(a[1].replace(/\+/g," "))},isfunction:function(a){var b={};return a&&"[object Function]"==b.toString.call(a)},setup:function(){jQuery.each(cc.bindfunctions,function(a,b){for(var c=0;c<b.length;c++)jQuery(document).bind("cc_"+a,b[c])});for(var a=
jQuery().jquery.split("."),b=cc.jqueryversionrequired.split("."),c=0;c<a.length&&c<b.length;c++){var d=parseInt(a[c]),e=parseInt(b[c]);if(d<e)break;if(d>e)break}jQuery.each(cc.defaultCookies,function(a,b){"necessary"==a?(cc.defaultCookies[a].title=cc.strings.necessaryDefaultTitle,cc.defaultCookies[a].description=cc.strings.necessaryDefaultDescription):"social"==a?(cc.defaultCookies[a].title=cc.strings.socialDefaultTitle,cc.defaultCookies[a].description=cc.strings.socialDefaultDescription):"analytics"==
a?(cc.defaultCookies[a].title=cc.strings.analyticsDefaultTitle,cc.defaultCookies[a].description=cc.strings.analyticsDefaultDescription):"advertising"==a&&(cc.defaultCookies[a].title=cc.strings.advertisingDefaultTitle,cc.defaultCookies[a].description=cc.strings.advertisingDefaultDescription)});jQuery.each(cc.initobj.cookies,function(a,b){b.title||(cc.initobj.cookies[a].title="necessary"==a?cc.strings.necessaryDefaultTitle:"social"==a?cc.strings.socialDefaultTitle:"analytics"==a?cc.strings.analyticsDefaultTitle:
"advertising"==a?cc.strings.advertisingDefaultTitle:cc.strings.defaultTitle);b.description||(cc.initobj.cookies[a].description="necessary"==a?cc.strings.necessaryDefaultDescription:"social"==a?cc.strings.socialDefaultDescription:"analytics"==a?cc.strings.analyticsDefaultDescription:"advertising"==a?cc.strings.advertisingDefaultDescription:cc.strings.defaultDescription);b.defaultstate||(cc.initobj.cookies[a].defaultstate="on");cc.initobj.cookies[a].asked=!1;cc.initobj.cookies[a].approved=!1;cc.initobj.cookies[a].executed=
!1});cc.settings.onlyshowwithineu&&!cc.settings.ipinfodbkey&&alert(cc.strings.noKeyWarning);a=cc.geturlparameter("cctestmode");if("accept"==a||"decline"==a)cc.settings.testmode=a;cc.settings.disableallsites&&(cc.settings.hideallsitesbutton=!0);for(var f in cc.initobj.cookies)cc.cookies[f]=cc.initobj.cookies[f],"accept"==cc.settings.testmode&&(cc.approved[f]="yes"),"decline"==cc.settings.testmode&&(cc.approved[f]="no")},initialise:function(a){cc.initobj=a;if(void 0!==a.settings)for(var b in a.settings)this.settings[b]=
a.settings[b];if(void 0!==a.strings)for(b in a.strings)this.strings[b]=a.strings[b];cc.settings.style="cc-"+cc.settings.style;cc.settings.bannerPosition="cc-"+cc.settings.bannerPosition;cc.settings.useSSL&&(cc.settings.serveraddr="https://cookieconsent.silktide.com/");window.jQuery&&(cc.setupcomplete=!0,cc.setup())},calculatestatsparams:function(){var a="c=",b=!0;jQuery.each(cc.initobj.cookies,function(c,d){b?b=!1:a+=";";a+=encodeURIComponent(c)+":";a=cc.approved[c]?a+cc.approved[c]:a+"none";d.statsid&&
(a+=":"+d.statsid)});a=cc.ismobile?a+"&m=1":a+"&m=0";return a+="&u="+encodeURIComponent(document.URL)},setsessionkey:function(a){cc.sessionkey=a},fetchprefs:function(){cc.remoteresponse=!1;var a="?s=1";cc.settings.collectStatistics&&(a="?s=1&"+cc.calculatestatsparams());cc.settings.clearprefs&&(a+="&v=1",cc.settings.clearprefs=!1);cc.insertscript(cc.settings.serveraddr+a);setTimeout(function(){cc.remoteresponse||cc.checkapproval()},3E3);this.checkedremote=!0},responseids:function(a){jQuery.each(a,
function(a,c){cc.cookies[a].statsid=c})},insertscript:function(a){var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("src",a);document.getElementsByTagName("head")[0].appendChild(b)},insertscripttag:function(a){var b=document.createElement("script");b.setAttribute("type","text/javascript");b.innerHTML=a;document.getElementsByTagName("head")[0].appendChild(b)},checklocal:function(){this.checkedlocal=!0;jQuery.each(cc.cookies,function(a,b){var c=cc.getcookie("cc_"+
a);c&&(cc.approved[a]=c)});this.checkapproval()},response:function(a){cc.remoteresponse=!0;jQuery.each(a,function(a,b){!cc.cookies[a]||cc.approved[a]&&(!cc.approved[a]||"always"!=cc.approved[a]&&"never"!=cc.approved[a])||cc.setcookie("cc_"+a,b,365)});for(var b in a)cc.remoteCookies[b]=a[b],"yes"!=this.approved[b]&&"no"!=this.approved[b]&&(this.approved[b]=a[b]);jQuery.each(cc.cookies,function(b,d){a[b]||"always"!=cc.approved[b]&&"never"!=cc.approved[b]||(cc.cookies[b].approved=!1,cc.deletecookie(b),
delete cc.approved[b])});this.checkapproval()},deletecookie:function(a){var b=new Date;b.setDate(b.getDate()-1);document.cookie=escape("cc_"+a)+"=; path=/; expires="+b},reloadifnecessary:function(){(cc.settings.refreshOnConsent||cc.ismobile||cc.forcereload)&&setTimeout("location.reload(true);",50)},onkeyup:function(a){27==a.keyCode&&cc.closemodals()},closemodals:function(){cc.closingmodal||(cc.noclosewin?cc.noclosewin=!1:(jQuery("#cc-modal").is(":visible")&&jQuery("#cc-modal .cc-modal-closebutton a").click(),
jQuery("#cc-settingsmodal").is(":visible")&&jQuery("#cc-settingsmodal #cc-settingsmodal-closebutton a").click()))},showbanner:function(){jQuery("#cc-tag").fadeOut(null,function(){jQuery(this).remove()});jQuery("#cc-notification").remove();cc.ismobile&&(cc.setupformobile(),jQuery("head").append('<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">'),jQuery("body").html("").css("margin",0));var a='<div id="cc-notification"><div id="cc-notification-wrapper"><h2><span>'+
cc.strings.notificationTitle+'</span></h2><div id="cc-notification-permissions"><a id="cc-notification-logo" class="cc-logo" target="_blank" href="http://silktide.com/cookieconsent" title="'+cc.strings.poweredBy+'"><span>'+cc.strings.poweredBy+'</span></a> </div><ul class="cc-notification-buttons"><li><a class="cc-link" href="http://cookieconsent.silktide.com" id="cc-approve-button-allsites">'+cc.strings.allowForAllSites+'</a></li><li><a class="cc-link" href="#" id="cc-approve-button-thissite">'+
cc.strings.allowCookies+'</a></li></ul><div class="cc-clear"></div></div></div>';jQuery("body").prepend(a);cc.settings.hideallsitesbutton&&jQuery("#cc-approve-button-allsites").hide();"implicit"==cc.settings.consenttype&&(jQuery("#cc-notification h2 span").html(cc.strings.notificationTitleImplicit),jQuery("#cc-approve-button-thissite").html(cc.strings.allowCookiesImplicit),jQuery("#cc-approve-button-thissite").parent().after(jQuery("#cc-approve-button-allsites").parent()),jQuery("#cc-approve-button-allsites").hide());
jQuery("#cc-notification-logo").hide();cc.settings.privacyPolicy&&jQuery("#cc-notification-moreinformation").prepend('<a href="'+cc.settings.privacyPolicy+'">'+cc.strings.privacyPolicy+"</a> | ");jQuery("#cc-notification").addClass(cc.settings.style).addClass(cc.settings.bannerPosition);var a=jQuery("#cc-notification").height(),b=!0;jQuery("#cc-notification").hide();cc.ismobile&&jQuery("#cc-notification").addClass("cc-mobile");jQuery("#cc-notification-permissions").prepend("<ul></ul>");jQuery.each(cc.cookies,
function(a,d){if(!d.asked){jQuery("#cc-notification-permissions ul").append('<li><input type="checkbox" checked="checked" id="cc-checkbox-'+a+'" /> <label id="cc-label-'+a+'" for="cc-checkbox-'+a+'"><strong>'+d.title+"</strong> "+d.description+"</label></li>");d.link&&jQuery("#cc-label-"+a).append(' <a target="_blank" href="'+d.link+'" class="cc-learnmore-link">'+cc.strings.learnMore+"</a>");if("social"==a||"analytics"==a||"advertising"==a)b=!1;jQuery("#cc-checkbox-"+a).change(function(){jQuery(this).is(":checked")?
jQuery(this).parent().removeClass("cc-notification-permissions-inactive"):jQuery(this).parent().addClass("cc-notification-permissions-inactive")});"off"==d.defaultstate&&jQuery("#cc-checkbox-"+a).removeAttr("checked").parent().addClass("cc-notification-permissions-inactive");"necessary"==a&&jQuery("#cc-checkbox-"+a).attr("disabled","disabled")}});jQuery("#cc-notification-wrapper h2").append(' - <a class="cc-link" href="#" id="cc-notification-moreinfo">'+cc.strings.seeDetails+"</a>");"implicit"==cc.settings.consenttype&&
jQuery("#cc-notification-moreinfo").html(cc.strings.seeDetailsImplicit);jQuery("#cc-notification-moreinfo").click(function(){jQuery(this).html()==cc.strings.seeDetails||jQuery(this).html()==cc.strings.seeDetailsImplicit?("implicit"==cc.settings.consenttype&&(cc.settings.hideallsitesbutton||jQuery("#cc-approve-button-allsites").show()),jQuery("#cc-approve-button-thissite").html(cc.strings.savePreference),jQuery("#cc-approve-button-allsites").html(cc.strings.saveForAllSites),jQuery(this).html(cc.strings.hideDetails)):
(jQuery.each(cc.cookies,function(a,b){"off"==b.defaultstate?(jQuery("#cc-checkbox-"+a).removeAttr("checked"),jQuery(this).parent().addClass("cc-notification-permissions-inactive")):(jQuery("#cc-checkbox-"+a).attr("checked","checked"),jQuery(this).parent().removeClass("cc-notification-permissions-inactive"))}),"implicit"==cc.settings.consenttype?(jQuery(this).html(cc.strings.seeDetailsImplicit),jQuery("#cc-approve-button-thissite").html(cc.strings.allowCookiesImplicit),jQuery("#cc-approve-button-allsites").hide()):
(jQuery(this).html(cc.strings.seeDetails),jQuery("#cc-approve-button-thissite").html(cc.strings.allowCookies),jQuery("#cc-approve-button-allsites").html(cc.strings.allowForAllSites)));jQuery("#cc-notification-logo").fadeToggle();jQuery("#cc-notification-permissions").slideToggle();jQuery(this).blur();return!1});cc.ismobile?jQuery("#cc-notification").show():("cc-push"==cc.settings.bannerPosition&&jQuery("html").animate({marginTop:a},400),jQuery("#cc-notification").slideDown());jQuery("#cc-approve-button-thissite").click(cc.onlocalconsentgiven);
cc.settings.clickAnyLinkToConsent&&jQuery("a").filter(":not(.cc-link)").click(cc.onlocalconsentgiven);b?(jQuery("#cc-notification h2 span").html(cc.strings.customCookie),jQuery("#cc-approve-button-allsites").hide()):jQuery("#cc-approve-button-allsites").click(cc.onremoteconsentgiven)},timestamp:function(){return Math.round((new Date).getTime()/1E3)},locationcallback:function(a){"OK"==a.statusCode&&a.countryCode&&(ineu="yes",-1==jQuery.inArray(a.countryCode,cc.eumemberstates)&&(ineu="no",jQuery.each(cc.cookies,
function(a,c){cc.approved[a]="yes"}),cc.settings.hideprivacysettingstab=!0),cc.setcookie("cc_ineu",ineu,365));"ERROR"==a.statusCode&&"Invalid API key."==a.statusMessage&&alert(cc.strings.invalidKeyWarning);cc.checkapproval()},checkdonottrack:function(){cc.checkeddonottrack=!0;cc.settings.ignoreDoNotTrack||"yes"!=navigator.doNotTrack&&"1"!=navigator.doNotTrack&&"yes"!=navigator.msDoNotTrack&&"1"!=navigator.msDoNotTrack||(cc.settings.consenttype="explicit");cc.checkapproval()},checkapproval:function(){if(!cc.checkedipdb&&
cc.settings.onlyshowwithineu)if(cc.checkedipdb=!0,ineu=cc.getcookie("cc_ineu"))"no"==ineu&&(jQuery.each(cc.cookies,function(a,b){cc.approved[a]="yes"}),cc.settings.hideprivacysettingstab=!0);else{jQuery.getScript("http://api.ipinfodb.com/v3/ip-country/?key="+cc.settings.ipinfodbkey+"&format=json&callback=cc.locationcallback");return}cc.allasked=!0;jQuery.each(cc.cookies,function(a,b){cc.approved[a]?"yes"==cc.approved[a]||"always"==cc.approved[a]&&cc.checkedremote?(cc.cookies[a].asked=!0,cc.cookies[a].approved=
!0,cc.execute(a)):"never"==cc.approved[a]&&cc.checkedremote||"no"==cc.approved[a]?(cc.cookies[a].asked=!0,cc.cookies[a].approved=!1):cc.allasked=!1:cc.allasked=!1});cc.allasked?(cc.settings.collectStatistics&&cc.insertscript(cc.settings.serveraddr+"?s=1&n=1&"+cc.calculatestatsparams()),cc.showminiconsent()):cc.checkedlocal?cc.checkedremote||cc.settings.disableallsites?cc.checkeddonottrack?("implicit"==cc.settings.consenttype&&jQuery.each(cc.cookies,function(a,b){cc.cookies[a].asked||(cc.settings.onlyshowbanneronce&&
cc.setcookie("cc_"+a,"yes",365),cc.execute(a))}),cc.showbanner()):cc.checkdonottrack():cc.fetchprefs():cc.checklocal()},execute:function(a){"necessary"==a||cc.cookies[a].executed||(jQuery(".cc-placeholder-"+a).remove(),jQuery("script.cc-onconsent-"+a+'[type="text/plain"]').each(function(){jQuery(this).attr("src")?jQuery(this).after('<script type="text/javascript" src="'+jQuery(this).attr("src")+'">\x3c/script>'):jQuery(this).after('<script type="text/javascript">'+jQuery(this).html()+"\x3c/script>")}),
cc.cookies[a].executed=!0,jQuery(document).trigger("cc_"+a),cc.executescriptinclusion(a))},executescriptinclusion:function(a){var b=jQuery("script.cc-onconsent-inline-"+a+'[type="text/plain"]').size()*cc.settings.scriptdelay,c=(new Date).getTime();c<cc.executionblock?setTimeout(cc.executescriptinclusion,cc.executionblock-c,[a]):(cc.executionblock=c+b,cc.insertscripts(a))},insertscripts:function(a){jQuery("script.cc-onconsent-inline-"+a+'[type="text/plain"]').first().each(function(){cc.uniqelemid++;
0<jQuery(this).parents("body").size()&&(jQuery(this).after('<div id="cc-consentarea-'+cc.uniqelemid+'" class="'+a+'"></div>'),document.write=function(a){jQuery("#cc-consentarea-"+cc.uniqelemid).append(a)},document.writeln=function(a){jQuery("#cc-consentarea-"+cc.uniqelemid).append(a)});jQuery(this).attr("src")?jQuery(this).after('<script type="text/javascript" src="'+jQuery(this).attr("src")+'">\x3c/script>'):jQuery(this).after('<script type="text/javascript">'+jQuery(this).html()+"\x3c/script>");
jQuery(this).remove()});0<jQuery("script.cc-onconsent-inline-"+a+'[type="text/plain"]').size()&&setTimeout(cc.insertscripts,cc.settings.scriptdelay,[a])},getcookie:function(a){var b,c,d,e=document.cookie.split(";");for(b=0;b<e.length;b++)if(c=e[b].substr(0,e[b].indexOf("=")),d=e[b].substr(e[b].indexOf("=")+1),c=c.replace(/^\s+|\s+$/g,""),c==a)return unescape(d);return!1},setcookie:function(a,b,c){var d=new Date;d.setDate(d.getDate()+c);document.cookie=a+"="+b+"; expires="+d.toUTCString()+"; path=/"},
onremoteconsentgiven:function(){cc.settings.clickAnyLinkToConsent&&jQuery("a").filter(":not(.cc-link)").unbind("click");cc.allagree=!0;jQuery.each(cc.cookies,function(a,b){b.approved||b.asked||(jQuery("#cc-checkbox-"+a).is(":checked")?"social"==a||"analytics"==a||"advertising"==a?(cc.remoteCookies[a]="always",cc.approved[a]="always"):cc.approved[a]="yes":("social"==a||"analytics"==a||"advertising"==a?(cc.remoteCookies[a]="never",cc.approved[a]="never"):cc.approved[a]="no",cc.allagree=!1),cc.cookies[a].asked=
!0,cc.setcookie("cc_"+a,cc.approved[a],365))});urlx=cc.settings.serveraddr+"?p=1&tokenonly=true&cc-key="+cc.sessionkey;cc.remoteCookies.social&&(urlx+="&cc-cookies-social="+cc.approved.social);cc.remoteCookies.analytics&&(urlx+="&cc-cookies-analytics="+cc.approved.analytics);cc.remoteCookies.advertising&&(urlx+="&cc-cookies-advertising="+cc.approved.advertising);cc.reloadkey=!0;cc.insertscript(urlx);cc.ismobile||(jQuery("#cc-notification").slideUp(),"cc-push"==cc.settings.bannerPosition&&jQuery("html").animate({marginTop:0},
400));cc.checkapproval();return!1},onlocalconsentgiven:function(){enablejustone=enableall=!1;if(jQuery(this).hasClass("cc-button-enableall")||jQuery(this).hasClass("cc-button-enable-all"))enableall=!0,jQuery.each(cc.cookies,function(a,b){cc.cookies[a].asked=!1});elem=this;jQuery.each(cc.cookies,function(a,b){jQuery(elem).hasClass("cc-button-enable-"+a)&&(enablejustone=!0,cc.approved[a]="yes",cc.cookies[a].asked=!0,cc.setcookie("cc_"+a,cc.approved[a],365))});cc.allagree=!0;enablejustone||(cc.settings.clickAnyLinkToConsent&&
jQuery("a").filter(":not(.cc-link)").unbind("click"),jQuery.each(cc.cookies,function(a,b){b.approved||b.asked||(enableall||jQuery("#cc-checkbox-"+a).is(":checked")?(cc.approved[a]="yes",cc.cookies[a].asked=!0):(cc.approved[a]="no",cc.cookies[a].asked=!0,cc.allagree=!1),cc.setcookie("cc_"+a,cc.approved[a],365))}));cc.allagree||"implicit"!=cc.settings.consenttype||(cc.forcereload=!0);cc.ismobile||(jQuery("#cc-notification").slideUp(),"cc-push"==cc.settings.bannerPosition&&jQuery("html").animate({marginTop:0},
400));cc.checkapproval();cc.reloadifnecessary();return!1},showminiconsent:function(){0==jQuery("#cc-tag").length&&(data='<div id="cc-tag" class="cc-tag-'+cc.settings.tagPosition+'"><a class="cc-link" href="#" id="cc-tag-button" title="'+cc.strings.privacySettings+'"><span>'+cc.strings.privacySettings+"</span></a></div>",jQuery("body").prepend(data),jQuery("#cc-tag").addClass(cc.settings.style),cc.settings.hideprivacysettingstab?jQuery("#cc-tag").hide():jQuery("#cc-tag").fadeIn(),jQuery(".cc-privacy-link").click(cc.showmodal),
jQuery("#cc-tag-button").click(cc.showmodal))},getsize:function(a){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b},settoken:function(a){cc.reloadkey&&(cc.reloadkey=!1,cc.allagree||"implicit"!=cc.settings.consenttype||(cc.forcereload=!0),cc.reloadifnecessary());cc.sessionkey=a},showmodal:function(){cc.checkedremote||cc.settings.disableallsites||cc.fetchprefs();jQuery(document).bind("keyup",cc.onkeyup);jQuery("body").prepend('<div id="cc-modal-overlay"></div>');jQuery(this).blur();cc.ismobile&&
cc.setupformobile();data='<div id="cc-modal"><div id="cc-modal-wrapper"><h2>'+cc.strings.privacySettingsDialogTitleA+" <span>"+cc.strings.privacySettingsDialogTitleB+'</span></h2><p class="cc-subtitle">'+cc.strings.privacySettingsDialogSubtitle+'</p><div class="cc-content"></div><div class="cc-clear"></div><p id="cc-modal-closebutton" class="cc-modal-closebutton"><a class="cc-link" href="#" title="'+cc.strings.closeWindow+'"><span>'+cc.strings.closeWindow+'</span></a></p><div id="cc-modal-footer-buttons"><p id="cc-modal-global"><a class="cc-link" href="#" title="'+
cc.strings.changeForAllSitesLink+'"><span>'+cc.strings.changeForAllSitesLink+'</span></a></p></div><a id="cc-notification-logo" class="cc-logo" target="_blank" href="http://silktide.com/cookieconsent" title="'+cc.strings.poweredBy+'"><span>'+cc.strings.poweredBy+'</span></a> <div class="cc-clear"></div></div></div>';jQuery("body").prepend(data);cc.settings.disableallsites&&jQuery("#cc-modal-global").hide();jQuery("#cc-modal").addClass(cc.settings.style).click(cc.closemodals);cc.ismobile&&jQuery("#cc-modal").addClass("cc-mobile");
cc.reloadmodal();jQuery("#cc-modal").fadeIn();jQuery("#cc-modal-overlay").fadeIn();jQuery("#cc-modal-wrapper").click(function(){cc.noclosewin=!0});jQuery("#cc-modal .cc-modal-closebutton a").click(function(){cc.showhidemodal();cc.reloadifnecessary();return!1});jQuery("#cc-modal-global").click(function(){cc.frommodal=!0;cc.gotosettings();return!1});jQuery("#cc-tag-button").unbind("click").click(cc.showhidemodal);jQuery(".cc-privacy-link").unbind("click").click(cc.showhidemodal);return!1},closepreferencesmodal:function(){jQuery.each(cc.defaultCookies,
function(a,b){b=jQuery("#cc-globalpreference-selector-"+a).val();"yes"!=cc.approved[a]&&"no"!=cc.approved[a]&&(cc.approved[a]=b,cc.setcookie("cc_"+a,cc.approved[a],365));cc.remoteCookies[a]=b});urlx=cc.settings.serveraddr+"?p=1&tokenonly=true&cc-key="+cc.sessionkey;cc.remoteCookies.social&&(urlx+="&cc-cookies-social="+cc.remoteCookies.social);cc.remoteCookies.analytics&&(urlx+="&cc-cookies-analytics="+cc.remoteCookies.analytics);cc.remoteCookies.advertising&&(urlx+="&cc-cookies-advertising="+cc.remoteCookies.advertising);
cc.insertscript(urlx);jQuery("#cc-notification").hide().remove();jQuery(this).blur();jQuery("#cc-settingsmodal").fadeOut(null,function(){jQuery("#cc-settingsmodal").remove()});cc.frommodal?(cc.frommodal=!1,cc.showhidemodal()):(cc.checkapproval(),cc.reloadifnecessary());return!1},showhidemodal:function(){jQuery(this).blur();cc.checkedlocal=!1;cc.checkedremote=!1;jQuery("#cc-modal").is(":visible")&&!cc.frommodal?(cc.closingmodal=!0,jQuery("#cc-modal-overlay").fadeToggle(null,function(){cc.closingmodal=
!1}),jQuery.each(cc.cookies,function(a,b){thisval=jQuery("#cc-preference-selector-"+a).val();"necessary"==a&&(thisval="yes");"no"==thisval?(cc.cookies[a].approved=!1,cc.approved[a]="no",cc.setcookie("cc_"+a,cc.approved[a],365)):"yes"==thisval?(cc.cookies[a].approved=!0,cc.approved[a]="yes",cc.setcookie("cc_"+a,cc.approved[a],365)):(cc.cookies[a].approved=!1,cc.deletecookie(a),delete cc.approved[a]);cc.cookies[a].asked=!1}),cc.checkapproval()):jQuery("#cc-settingsmodal").is(":visible")||jQuery("#cc-modal").is(":visible")||
(cc.closingmodal=!0,jQuery("#cc-modal-overlay").fadeToggle(null,function(){cc.closingmodal=!1}));cc.ismobile?jQuery("#cc-modal").toggle():jQuery("#cc-modal").fadeToggle();return!1},reloadmodal:function(){jQuery("#cc-modal-wrapper .cc-content").html("");0<cc.getsize(cc.cookies)?(jQuery("#cc-modal-wrapper .cc-content").append("<ul></ul>"),jQuery.each(cc.cookies,function(a,b){jQuery("#cc-modal-wrapper ul").append('<li id="cc-preference-element-'+a+'"><label for="cc-preference-selector-'+a+'"><strong>'+
b.title+"</strong><span>"+b.description+'</span></label><select id="cc-preference-selector-'+a+'"><option value="yes">'+cc.strings.preferenceConsent+'</option><option value="no">'+cc.strings.preferenceDecline+"</option></select></li>");b.link&&jQuery("#cc-preference-element-"+a+" label span").append(' <a target="_blank" href="'+b.link+'" class="cc-learnmore-link">'+cc.strings.learnMore+"</a>");"social"!=a&&"advertising"!=a&&"analytics"!=a||cc.settings.disableallsites||jQuery("#cc-preference-selector-"+
a).append('<option value="global">'+cc.strings.preferenceUseGlobal+"</option>");jQuery("#cc-change-button-allsites").unbind("click").click(function(){cc.frommodal=!0;cc.gotosettings();return!1});jQuery("#cc-preference-selector-"+a).change(function(){});"necessary"==a&&jQuery("#cc-preference-selector-"+a).remove();"yes"==cc.approved[a]?jQuery("#cc-preference-selector-"+a).val("yes"):"no"==cc.approved[a]?jQuery("#cc-preference-selector-"+a).val("no"):jQuery("#cc-preference-selector-"+a).val("global")})):
jQuery("#cc-modal-wrapper .cc-content").append("<p>"+cc.strings.notUsingCookies+"</p>");jQuery(".cc-content").append('<div class="cc-clear"></div>')},reloadsettingsmodal:function(){jQuery("#cc-settingsmodal-wrapper .cc-content").html("");0<cc.getsize(cc.defaultCookies)?(jQuery("#cc-settingsmodal-wrapper .cc-content").append("<ul></ul>"),jQuery.each(cc.defaultCookies,function(a,b){jQuery("#cc-settingsmodal-wrapper ul").append('<li id="cc-globalpreference-element-'+a+'"><label for="cc-globalpreference-selector-'+
a+'"><strong>'+b.title+"</strong><span>"+b.description+'</span></label><select id="cc-globalpreference-selector-'+a+'"><option value="ask">'+cc.strings.preferenceAsk+'</option><option value="always">'+cc.strings.preferenceAlways+'</option><option value="never">'+cc.strings.preferenceNever+"</option></select></li>");b.link&&jQuery("#cc-globalpreference-element-"+a+" label span").append(' <a target="_blank" href="'+b.link+'" class="cc-learnmore-link">'+cc.strings.learnMore+"</a>");jQuery("#cc-globalpreference-selector-"+
a).change(function(){});"always"==cc.remoteCookies[a]?jQuery("#cc-globalpreference-selector-"+a).val("always"):"never"==cc.remoteCookies[a]?jQuery("#cc-globalpreference-selector-"+a).val("never"):jQuery("#cc-globalpreference-selector-"+a).val("ask")})):jQuery("#cc-settingsmodal-wrapper .cc-content").append("<p>"+cc.strings.notUsingCookies+"</p>");jQuery("#cc-settingsmodal-wrapper .cc-content").append('<div class="cc-clear"></div>')},approvedeny:function(){key=jQuery(this).attr("id").split("-")[2];
cc.cookies[key].approved?(cc.cookies[key].approved=!1,cc.approved[key]="no"):(cc.cookies[key].approved=!0,cc.approved[key]="yes");cc.setcookie("cc_"+key,cc.approved[key],365);cc.checkapproval();cc.reloadmodal();return!1},clearalllocalcookies:function(){for(var a=document.cookie.split(";"),b=0;b<a.length;b++){var c=a[b],d=c.indexOf("="),c=-1<d?c.substr(0,d):c;document.cookie=c+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}},clearlocal:function(){cc.clearalllocalcookies();jQuery(this).before("<p>"+cc.strings.clearedCookies+
"</p>")},getcurrenturl:function(){return window.location.protocol+"//"+window.location.host+window.location.pathname},gotosettings:function(){jQuery("#cc-modal").is(":visible")&&cc.showhidemodal();jQuery(this).blur();cc.ismobile&&(cc.setupformobile(),jQuery("#cc-notification").remove());buttontext=cc.frommodal?cc.strings.backToSiteSettings:cc.strings.closeWindow;data='<div id="cc-settingsmodal"><div id="cc-settingsmodal-wrapper"><h2>'+cc.strings.allSitesSettingsDialogTitleA+" <span>"+cc.strings.allSitesSettingsDialogTitleB+
'</span></h2><p class="cc-subtitle">'+cc.strings.allSitesSettingsDialogSubtitle+'</p><div class="cc-content"></div><div class="cc-clear"></div><p id="cc-settingsmodal-closebutton" class="cc-settingsmodal-closebutton"><a class="cc-link" href="#" title="'+buttontext+'"><span>'+buttontext+'</span></a></p><div id="cc-settingsmodal-footer-buttons"><p id="cc-settingsmodal-secondclosebutton" class="cc-settingsmodal-closebutton"><a class="cc-link" href="#" title="'+buttontext+'"><span>'+buttontext+'</span></a></p></div><a id="cc-notification-logo" class="cc-logo" target="_blank" href="http://silktide.com/cookieconsent" title="'+
cc.strings.poweredBy+'"><span>'+cc.strings.poweredBy+"</span></a> </div></div>";jQuery("body").prepend(data);cc.reloadsettingsmodal();jQuery("#cc-settingsmodal").addClass(cc.settings.style).click(cc.closemodals);jQuery("#cc-settingsmodal-wrapper").click(function(){cc.noclosewin=!0});cc.ismobile&&jQuery("#cc-settingsmodal").addClass("cc-mobile");jQuery("#cc-settingsmodal").fadeIn();jQuery(".cc-settingsmodal-closebutton").click(cc.closepreferencesmodal);return!1},setupformobile:function(){cc.hassetupmobile||
(cc.hassetupmobile=!0,jQuery("head").append('<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">'),bgcol="cc-light"==cc.settings.style?"#e1e1e1":"#1d1d1d",jQuery("body").html("").css("margin",0).css("width","auto").css("backgroundColor",bgcol).css("backgroundImage","none"))},onfirstload:function(){if(!cc.setupcomplete&&cc.initobj){if(!window.jQuery){cc.jqueryattempts++;if(5<=cc.jqueryattempts)return;setTimeout(cc.onfirstload,200);return}cc.setupcomplete=!0;cc.setup()}setTimeout(cc.afterload,
50);cc.checkapproval()},afterload:function(){jQuery(".cc-button-enableall").addClass("cc-link").click(cc.onlocalconsentgiven);jQuery(".cc-button-enable-all").addClass("cc-link").click(cc.onlocalconsentgiven);jQuery.each(cc.cookies,function(a,b){jQuery(".cc-button-enable-"+a).addClass("cc-link").click(cc.onlocalconsentgiven)})}};
if(window.jQuery)jQuery(document).ready(cc.onfirstload);else{var s=document.createElement("script");s.setAttribute("src","https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js");s.setAttribute("type","text/javascript");document.getElementsByTagName("head")[0].appendChild(s);if(null!=window.onload){var oldOnload=window.onload;window.onload=function(a){oldOnload(a);cc.onfirstload()}}else window.onload=cc.onfirstload}
(function(a){cc.ismobile=/android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(a.substr(0,
4))})(navigator.userAgent||navigator.vendor||window.opera);