try {
    $(function(){
        var api = $("#scroll").scrollable({
            items: '#tools',
            size: 1,
            clickable: false
        }).navigator({api: true});

        if (api) {
            api.onStart(function(e, i) {
                if (i) {
                    $("#intro").fadeOut("slow");
                } else {
                    $("#intro").fadeIn(1000);
                }
                $("#t0").toggleClass("active", i == 0);
            });
        }

        $("#t0").click(function() {
            $("#scroll").scrollable().begin();
        });

        $("#tab_header a").each(function(){
            var wloc = window.location.href;
            if (wloc.indexOf("#")) {
                wloc = wloc.substring(0,wloc.indexOf("#"));
            }
            if (this == wloc) {
                this.className="current";
            }
        });
    });
} catch(e) {}



