u = {
    sid: undefined,

    getSid: function(callback, force) {
        if (u.sid == undefined || force == true) {
            $.ajax({
                type: 'get',
                url: '/index/9-1',
                dataType: 'text',
                success: function(html) {
				var sid = html.match(/64-1-3-0-(.*?)\'/i);
				if (sid != null) {
				    u.sid = sid[1];

				    if (typeof callback == 'function') {
					   callback(u.sid);
				    }
				}
                }
            });
        } else {
            if (typeof callback == 'function') {
                callback(u.sid);
            }
        }
    }
}

$(function() {
    u.getSid();
});

