$(document).ready(function() {
    var hash = window.location.hash;
    if (!hash) {
        var href = $('#toggleThis > div:first');
    }
    else { 
        var href = window.location.hash;
    }
    
    hideAllExcept(href);
    
    $('a.toggle').click(function() {
        var href = $(this).attr('href');
        hideAllExcept(href);
    });
});

function hideAllExcept(el) {
    $('#toggleThis div').addClass('hide');
    $(el).removeClass('hide');
}

/*
source: http://enure.net/dev/hide-all-except-one/
*/