$(function(){
    var setting = {
        "/product/":                "new",
        "/product/goods/":          "goods",
        "/product/goods/bath/":     "bath",
        "/product/goods/bag/":      "bag",
        "/product/goods/mobile/":   "cell",
        "/product/goods/etc/":      "etc",
        "/fun/stationery/":         "sta",
        "/fun/stationery/2009y/":   "sta2009",
        "/fun/stationery/2008y/":   "sta2008",
        "/fun/stationery/2007y/":   "sta2007",
        "/fun/stationery/2006y/":   "sta2006",
        "/toy/stuff/":              "toy",
        "/toy/stuff/2009y/":        "toy2009",
        "/toy/stuff/2008y/":        "toy2008",
        "/toy/stuff/2007y/":        "toy2007",
        "/toy/stuff/2006y/":        "toy2006",
        "/toy/sweets/":             "sweets",
        "/fun/prize/":              "prize",
        "/fun/prize/2009y/":        "prize2009",
        "/fun/prize/2008y/":        "prize2008",
        "/fun/prize/2007y/":        "prize2007",
        "/fun/prize/2006y/":        "prize2006",
        "/books/magazine/":         "magazine",
        "/books/magazine/2009y/":   "magazine2009",
        "/books/magazine/2008y/":   "magazine2008",
        "/books/magazine/2007y/":   "magazine2007",
        "/books/magazine/2006y/":   "magazine2006",
        "/gift/":                   "latestgift",
        "/gift/wallpaper/":         "wall",
        "/gift/wallpaper/theme/":   "wallTheme",
        "/gift/wallpaper/standard/":"wallStandard",
        "/gift/wallpaper/monthly/": "wallMonth",
        "/gift/wallpaper/season/":  "wallSeason",
        "/gift/all.php":            "wallAll",
        "/gift/screen/":            "screen",
        "/gift/setup.php":          "end_gift",
        "/news/":                   "latestnews",
        "/news/2009y/":             "news2009",
        "/news/2008y/":             "news2008",
        "/news/2007y/":             "news2007",
        "/news/2006y/":             "news2006"
    };

    var klass;
    jQuery.each(setting, function(index, data){
        if (location.pathname == index) {
            klass = data;
        }
    });
    
    var t = $("." + klass + " a").text();
    $("." + klass + " a").remove();

    $("." + klass).append("<span>" + t + "</span>");
    $("." + klass + " span").css({"color":"#E3621C", "text-decoration":"underline"});
});
