﻿//引用程序文件
var _import   =   function(s)  
{   
 var   script   =   document.createElement("script"); 
    script.setAttribute("type",   "text/javascript");  
    script.setAttribute("src",   s);    
    try  
    {  
        document.getElementsByTagName("head")[0].appendChild(script);  
    }  
    catch(e)  
    {  
    }

}; 

//_import("http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js");
_import("http://sso.ak64.com/js/jquery-1.3.1.js");

$(document).ready(function() {
    $.ajax({
        type: "GET",
        url: "http://sso.ak64.com/verifyInfo.aspx?jsoncallback=?",
        dataType: "json",
        jsonp: 'jsoncallback',
        success: function(json) {

            var x = "<a href=\"http://sso.ak64.com/login.aspx\">登录</a> | <a href=\"http://sso.ak64.com/reg.aspx\">注册</a> | <a href=\"http://sso.ak64.com/lostPassword.aspx\">找回密码</a>";
            var y = json.username + " | <a href=\"#\">设置</a> | <a href=\"http://sso.ak64.com/logout.aspx\">退出</a>";
       
            if (json.status == 1) {
                $("#userinfpannel").html(y);
            } else {
                $("#userinfpannel").html(x);
            }
        }
    });
});