var str = '<div class="amouban aleftban"  style="display:block"><a onclick="tracead(\'zzy_flash_corp_left_close\');" href="" class="abclo" id="leftcorp"></a>';
str += '<a onclick="tracead(\'zzy_flash_corp_left\');" href="//news.4399.com/yssy/" id="leftcorp1"><img src="//imga3.5054399.com/upload_pic/2024/10/8/4399_16243493393.jpg" title="Ô­Éñ"></a>';
str += '</div><div class="amouban arightban">';
str += '<a href="" onclick="tracead(\'zzy_flash_corp_right_close\');" class="abclo" id="rightcorp" style="display:block"></a>';
str += '<a onclick="tracead(\'zzy_flash_corp_right\');" href="//news.4399.com/yssy/" id="rightcorp1"><img src="//imga4.5054399.com/upload_pic/2024/10/8/4399_16244529740.jpg" title="Ô­Éñ"></a>';
str += '</div>';
document.write(str);
function showcropfunc(){
    if($(window).width()>=1260){
        if(__gc("zzyleftcorp")<1 && $("#leftcorp1").attr("href")!=''){
            $(".aleftban").show();
        }else{
            $(".aleftban").hide();
        }
        if(__gc("zzyrightcorp")<1 && $("#rightcorp1").attr("href")!=''){
            $(".arightban").show();
        }else{
            $(".arightban").hide();
        }
    }else{
        $(".aleftban").hide();
        $(".arightban").hide();
    }
}
$("#leftcorp").click(function(){
    $(".aleftban").hide();
    __sc('zzyleftcorp',1,1);
    return false;
});
$("#rightcorp").click(function(){
    $(".arightban").hide();
    __sc('zzyrightcorp',1,1);
    return false;
});
$("#leftcorp1").click(function(){
    $(".aleftban").hide();
    __sc('zzyleftcorp',1,1);
});
$("#rightcorp1").click(function(){
    $(".arightban").hide();
    __sc('zzyrightcorp',1,1);
});
function __sc(key,value,expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);exdate.setHours(0);exdate.setMinutes(0);exdate.setSeconds(0);document.cookie = key+ "=" +escape(value)+";domain=4399.com;path=/"+((expiredays==null) ? "" : ";expires="+exdate.toGMTString())}
function __gc(c_name){if (document.cookie.length>0){c_start=document.cookie.indexOf(c_name + "=");if (c_start!=-1){c_start=c_start + c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if (c_end==-1) c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}return ""}
showcropfunc();
$(window).resize(showcropfunc);