var UserAlertWidget = { StartWidget: function () { if (1==1) { var today = new Date(); today.setTime(today.getTime()); var cookie_expire_date = new Date(today.getTime() + 8 * 60 * 60 * 1000); //x hours function setCookie(name, value, expires, path, domain, secure) { document.cookie= name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else { begin += 2; } var end = document.cookie.indexOf(";", begin); if (end == -1) { end = dc.length; } return unescape(dc.substring(begin + prefix.length, end)); } var _ckx = getCookie('A_C'); if (!_ckx) { UserAlertWidget.ShowWidget(); } setCookie('A_C','1', cookie_expire_date); } else { UserAlertWidget.ShowWidget(); } }, ShowWidget: function () { user_alert_style = '#new_user_alert_dbltch{font-family:Arial, "Helvetica CY", "Nimbus Sans L", sans-serif !important;display: none;left: 20px !important;bottom:5px; position:fixed; z-index:999;direction: ltr;font-size: 13px !important;}'+ '#new_user_alert_dbltch a,#new_user_alert_dbltch img{font-family:Arial, "Helvetica CY", "Nimbus Sans L", sans-serif !important;text-decoration:none !important;outline:none !important;border:none !important;margin:0 !important;padding:0 !important;};#new_user_alert_dbltch #new_user_alert_popup .new_user_alert_box_rtl{direction:rtl !important;}'+ '#new_user_alert_dbltch #new_user_alert_popup .new_user_alert_box_rtl .fl{float:right;}'+ '#new_user_alert_dbltch .new_user_alert_close_rtl{left: 3px !important;right:auto !important;}'+ '#new_user_alert_dbltch #new_user_alert_popup .new_user_alert_box_rtl .new_user_alert_new{left: auto;right: 100px;padding-right:15px;padding-left: 0;}'+ '#new_user_alert_dbltch #new_user_alert_popup .new_user_alert_box_rtl .new_user_alert_new:before{left: auto;right: 0;}'+ '#new_user_alert_dbltch #new_user_alert_popup .new_user_alert_box_rtl .new_user_alert_cont{margin: 27px 100px 0 0px;text-align: right;}'+ '#new_user_alert_dbltch .new_user_alert_block {z-index:101;font-size: 13px;}'+ '#new_user_alert_dbltch .new_user_alert_block a, .new_user_alert_block a:hover {color:#80ACEE; text-decoration:none}'+ '#new_user_alert_dbltch .new_user_alert_box {opacity:1;border-radius:4px;width:240px; height:100px; color:#FFFFFF; cursor:pointer; margin-bottom:5px; padding:4px 5px 0; background:#1B1F24; background:rgba(27,31,36,0.9); box-shadow:0 2px 6px 0 rgba(0,0,0,0.75); -moz-box-shadow:0 2px 6px 0 rgba(0,0,0,0.75); -webkit-box-shadow:0 2px 6px 0 rgba(0,0,0,0.75)}'+ '#new_user_alert_dbltch .new_user_alert_cont {height:58px; overflow:hidden; line-height:18px; margin: 27px 0 0 100px;}'+ '#new_user_alert_dbltch .new_user_alert_close {width:16px; height:17px; color:#FFFFFF; font-size:13px; line-height:1px; font-weight:bold; text-align:center; cursor:pointer; text-decoration:none; right: auto;right:3px; top: 3px;position:absolute; z-index:1; padding-top:7px; background:none}'+ '#new_user_alert_dbltch .new_user_alert_close:hover {color:#6B7075; text-decoration:none}'+ '#new_user_alert_dbltch .new_user_alert_user {color:#FFFFFF}'+ '#new_user_alert_dbltch .new_user_alert_city {color:#FFFFFF}'+ '#new_user_alert_dbltch .new_user_alert_new {position: absolute;left: 100px;padding-left:0;padding-left:15px;text-align: right;top:-1px;}'+ '#new_user_alert_dbltch .new_user_alert_new:before {width:7px; height:7px; display:block; content:""; position:absolute; left:0; border-radius:5px;top: 5px; background-color:#00ff3c}'+ '#new_user_alert_dbltch .fl{float:left;order-radius: 3px;}'+ '#new_user_alert_dbltch .mt11{margin-top: 11px;}'+ '#new_user_alert_dbltch .new_user_alert_box--in{position: relative;}'+ '#new_user_alert_dbltch .slide {position: absolute;left: 0px;top: 0px;width: 100%;height: 100%;opacity: 0;z-index: 1;}'+ '#new_user_alert_dbltch .new_user_alert_box_ltr{text-align:left;}'+ '#new_user_alert_dbltch .showing {opacity: 1;z-index: 2;}'; var style = document.createElement('style'); style.innerHTML = user_alert_style; document.head.appendChild(style); user_alert_html = ''+ '