function toFixed(i){
    if(i<10)
        return '0'+i;
    return i.toString();
}
var privilege_map = [0,11,1,4,9,8,5,6,10,2,7,3];
var filename_map = {
    'my_level.html' : 'http://vip.music.qq.com/v2/my_level.html',
    'dia_level.html' : 'http://vip.music.qq.com/v2/level_intro.html',
    'yearuserintro.html' : 'http://vip.music.qq.com/v2/year_intro.html',
    'privilege.html' : 'http://vip.music.qq.com/v2/privileges/index.html',
    'inyuehui.html' : 'http://vip.music.qq.com/v2/activity/index.html',
    'q_bean_intro.htm' : 'http://vip.music.qq.com/v2/privileges/frame.html?page=qdou',
    'privilege_(\\d+).html' : function(match, id){
        var p_id = privilege_map[parseInt(id, 10)];
        if(typeof p_id=='undefined')
            return 'http://vip.music.qq.com/v2/privileges/index.html';
        return 'http://vip.music.qq.com/v2/privileges/frame.html?page='+toFixed(p_id);
    }
};
function replace_url(url){
    for(var key in filename_map){
        if(key.constructor == String){
            var value = filename_map[key];
            var match = new RegExp(key).exec(url);
            if(match){
                if(value.constructor==Function){
                    return value.apply(null, match);
                }
                return value;
            }
        }
    }
    return 'http://vip.music.qq.com/';
}

window.location.href = replace_url(window.location.href);

/*  |xGv00|650dd26e61670c63f6cf4bdb70c8beca */