function setCookie(key, value) { var expires = new Date(); expires.setTime(expires.getTime() + (365 * 24 * 60 * 60 * 1000)); document.cookie = key + '=' + value + ';expires=' + expires.toUTCString(); } function getCookie(key) { var keyValue = document.cookie.match('(^|;) ?' + key + '=([^;]*)(;|$)'); return keyValue ? keyValue[2] : null; } /* $(function() { if (! getCookie('2016DesemberGifts')) { $.fancybox({ 'content' : '
', 'wrapCSS' : 'fancy_nostyle cf7style', 'margin' : [5,5,5,5], 'width' : '90%', 'maxWidth' : 1024, 'minWidth' : 300, 'height' : 'auto', 'autoHeight' : 'true', 'autoSize' : false, 'fitToView' : true, 'scrolling' : 'visible', 'type' : 'html', 'beforeLoad' : function() { /*if($width) {this.width = parseInt($width); this.minWidth = parseInt($width); this.maxWidth = parseInt($width);}; if($height) {this.height = parseInt($height); this.minHeight = parseInt($height); this.maxHeight = parseInt($height);}; }, 'tpl' : { 'wrap' : '