var cookie_disclaimer_content = ''; cookie_disclaimer_content =''; cookie_disclaimer_init = false; $('body').ready(function() { $('body').prepend(cookie_disclaimer_content); }); function cookie_disclaimer_close_link() { var cname = 'approved_cookies'; var date_expire = new Date(); var exdays = 365; date_expire.setTime(date_expire.getTime() + (exdays*24*60*60*1000)); var date_expires = "expires="+ date_expire.toUTCString(); document.cookie = cname + "=1;" + date_expires + ";path=/"; $('#cookie_disclaimer-backg, #cookie_disclaimer-block').fadeOut('fast'); $('#bottom ').css('margin-bottom', 0); }