function ajaxLogon0906() {
if(document.getElementById('ajaxLogin') == null) return;
document.getElementById('ajaxLogin').innerHTML=
    //-----未登录
    '<span class="off" '+(!document.cookie.match(/(^|; )common_session_id=[^;]+/)?'':'style="display:none"')+'>'+
    '<i class="iOther"><a href="http://my.pconline.com.cn/login.jsp" target="_blank" class="loginTxt">登录</a><a href="http://my.pconline.com.cn/passport/register.jsp" target="_blank" class="loginTxt">注册</a></i></span> '+
    //-----已登录
    '<span class="on" '+(!!document.cookie.match(/(^|; )common_session_id=[^;]+/)?'':'style="display:none"')+'><i class="loginInfo"><a href="http://my.pconline.com.cn/" target="_blank">个人中心</a> <a href="http://userdb.pconline.com.cn/userdb/RegisterEdit_enter.do" target="_blank">帐号管理</a> <a href="http://pass.pconline.com.cn/permit/passport/exit_ajax.jsp" onclick="try{$.getScript(href,ajaxLogonRefresh);}catch(e){};return false;">退出</a></i></span>'
}ajaxLogon0906();
function ajaxLogonRefresh() {
    if(!document.cookie.match(/(^|; )common_session_id=[^;]+/) != !$('#ajaxLogin>span:last:visible').length)
        $('#ajaxLogin>span')//.toggle() 改成下面一行以绕开jquery1.3.2的toggle在这里失效的BUG
        .each(function(){var a=$(this); if(a.css('display')=='none') a.show(); else a.hide(); });
}
