    /*
    soundManager.url = '/javascripts/soundmanager2.swf'; // path to movie
    soundManager.onload = function() {
        $('.sound').each(function() {
            var url = $(this).attr('href');
            var description = $(this).text();
            var id = url;
            soundManager.createSound(id, url)
            $(this).replaceWith("<div class=\"sound\"><div class=\"controls\"><a href=\"#\" onclick=\"soundManager.togglePause('"
                + id + "');\">Play/Pause</a> <a href=\"#\" onclick=\"soundManager.stop('"
                + id + "');\">Stop</a></div><span class=\"label\">" + description 
                + "</span></div>");
        });
    } */

$(document).ready(function() {
   $(".show-less").click(function() {
        var t = $(this);
        var id = t.metadata().items;
        $('#'+id).hide("normal");
        t.hide();
        $(".show-more").each(function() {
            var t = $(this);
            if (t.metadata().items == id) {
                t.show();
            }
        });
   });

   $(".show-more").each(function() {
        $(this).show();  
    }).click(function() {
        var t = $(this);
        var id = t.metadata().items;
        $('#'+id).show("normal");
        t.hide();
        $(".show-less").each(function() {
            var t = $(this);
            if (t.metadata().items == id) {
                t.show();
            }
        });
   });

   $(".more-items").each(function() {
        $(this).hide();
    });

    $("input.copy-to-clipboard").click(function() {
        $(this).focus().select();
    });

 });

