﻿var notice_dt = new Date();
var notice_t = notice_dt.getTime();
var notice_date = notice_dt.getFullYear() + "" + notice_dt.getMonth() + "" + notice_dt.getDate();
function notice_getcookie1(offset) { var endstr = document.cookie.indexOf(";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); }
function notice_getcookie2(name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return notice_getcookie1(j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; }
function notice_setcookie() {
    var exp = new Date();
    var exptime = 86400000;
    exp.setTime(exp.getTime() + exptime);
    //document.cookie = "notice_TT" + "=" + notice_date + ";path=/;expires=" + exp.toGMTString() + ";domain=sooyuu.com;";
    document.cookie = "notice_TT" + "=" + notice_date + ";path=/;expires=" + exp.toGMTString() + ";";
}

function notice_close() {
    document.getElementById("notice_tgbar").style.display = "none";
    
    notice_setcookie();
}

var notice_cdate = notice_getcookie2('notice_TT');


var notice_text = "本站新版提供最新最全mp4 3gp手机电影急速下载，若下载rmvb高清格式请 <a href='http://www.4edy.com' target='_blank'>点击访问四亿电影网</a>(<a href='http://www.4edy.com' target='_blank'>www.4edy.com</a>)。";

var marginleft = 20
var imgPath = "/template/func/tongzhi/";
if (notice_cdate != notice_date) {
    document.write("<div style='text-align:center;margin:0px auto 2px auto;clear:both;background:url(" + imgPath + "notice_tgbar_bg_final1.gif) repeat-x;width:960px;color:#000;font-size:13px;height:36px;z-index:21474836471' id='notice_tgbar'>");
    document.write("<div style='float:left;width:890px;text-align:center;border-left:solid #efbf00 1px;height:32px'>");
    document.write("<span   style='float:left;background:url(" + imgPath + "notice_icon_my.gif) no-repeat 0px 2px;padding:9px 0px 0px 28px;height:23px;margin-left:" + marginleft + "px'> 温馨提示：" + notice_text + "</span>");
    //document.write("<span   style='float:left;color:#003299;text-decoration:underline;margin-left:15px;background:url(" + imgPath + "notice_icon_se.gif) no-repeat 0px 7px;padding:8px 0px 0px 20px;height:24px'>产品1</span>");
    //document.write("<span   style='float:left;color:#003299;text-decoration:underline;margin-left:15px;background:url(" + imgPath + "notice_icon_qq.gif) no-repeat 0px 7px;padding:8px 0px 0px 20px;height:24px'>产品2</span>");
    document.write("</div>");
    document.write("<div style='float:right;width:20px;cursor:pointer;height:28px;padding:4px 8px 0px 8px;border-right:solid #efbf00 1px' onclick='notice_close();'>");
    document.write("<img src='" + imgPath + "notice_tgbar_close_final1.gif' style='border:none;margin:4px 0px 0px 0px;' />");
    document.write("</div>");
    document.write("</div>");
    

}

