function hideSwOverlayCookies(){ jQuery("#SwOverlayCookies").slideUp(); jQuery.cookie("ck_SwOverlayCookies", 1, { expires : 3 }); } function SwRenderJS(showShadowBox){ var getCookies = function(){ var pairs = document.cookie.split(/; */); var cookies = {}; for (var i=0; i"; HTML += "
"; HTML += "

We inform you that, to improve your navigation experience on this website, the owner of the data treatment uses various types of cookies, including 1) First party technical or analytical cookies; 2) Anonymous third party analytical cookies; 3) Non-anonymous third party analytical cookies. Click here to display instructions for denying your consent concerning the installation of any type of cookies.

By clicking on "OK" or by continuing with your navigation, you declare you have understood the methods described in our Full Disclosure Note pursuant to Art.13 of (EU) Regulation 2016/679.

"; HTML += "
OK
"; HTML += "
More info
"; HTML += "
"; HTML += "
"; HTML += ""; jQuery('body').prepend(HTML); // carico il css di default del div cssDivPrivacy = document.createElement('link'); cssDivPrivacy.type = 'text/css'; cssDivPrivacy.rel = 'stylesheet'; cssDivPrivacy.href = 'http://resources.suiteweb.it/css/SwOverlayCookies.css'; cssDivPrivacy.media = 'screen'; document.getElementsByTagName('head')[0].appendChild(cssDivPrivacy); setTimeout(function(){ jQuery("#SwOverlayCookies").slideDown(); jQuery("#SwOverlayCookiesBtnOK").click(function(){ hideSwOverlayCookies(); }); // estrapolo la lista dei cookies di questo dominio var myCookies = getCookies(); cookies = ''; for( i in myCookies){ if(cookies != ''){cookies+=','} cookies += i; } jQuery("#SwOverlayCookiesMoreInfo").click(function(){ url = "https://www.suiteweb.it/get_cookies_policy.php?id_lang=2&idsito=945&cookies="+cookies; if(showShadowBox){ Shadowbox.open([{ player: "iframe", content: url, width: 800, height: 500 }]); } else{ var stile = "top=10, left=10, width=800, height=500, status=no, menubar=no, toolbar=no, scrollbars=yes"; window.open(url, "", stile); } }); }, 600); setTimeout(function(){ jQuery( window ).scroll(function() { hideSwOverlayCookies(); }); jQuery( 'a' ).click(function() { hideSwOverlayCookies(); }); }, 10000); } } function SwInitFunctions(showShadowBox){ SwRenderJS(showShadowBox); } function SwCheckShadowBox(){ if(typeof Shadowbox == "undefined"){ SwInitFunctions(false) } else{ SwInitFunctions(true) } } function SwCheckCookies(){ if( typeof jQuery.cookie == "undefined"){ var script = document.createElement('script'); script.type = "text/javascript"; script.src = "http://resources.suiteweb.it/js/jquery.cookie.js"; document.getElementsByTagName('head')[0].appendChild(script); setTimeout(function(){ SwCheckShadowBox() }, 1500); } else{ SwCheckShadowBox() } } function SwCheckJquery(){ if(!window.jQuery){ var script = document.createElement('script'); script.type = "text/javascript"; script.src = "http://resources.suiteweb.it/js/jquery.min.js"; document.getElementsByTagName('head')[0].appendChild(script); setTimeout(function(){ SwCheckCookies() }, 1500); } else{ SwCheckCookies() } } document.addEventListener('DOMContentLoaded', function() { setTimeout(function(){ SwCheckJquery() }, 1500); }, false);