// When the page is ready
   $(document).ready(function(){
     
     // hide any divs that are class="tracklist"
     $(".tracklist").hide();
     
     // add a show/hide tracklist link
     $(".tracklist_container")
       .prepend("<a href='' class='toggle_link' title='Show/hide the tracklist'>Show tracklist</a>");
       
     // toggle the tracklist visiblilty  
     $(".tracklist_container a").click(function(event){
       var tgt = $(this).next(".tracklist");
       tgt.toggle('slow');
       $(this).text($(this).text() == 'Show tracklist' ? 'Hide tracklist' : 'See tracklist');

       // Stop the link click from doing its normal thing
       event.preventDefault();
     });
     
     // move the audio player below the audio_post h3 (title of post)
     //$(".post-audio .audio_player").remove();
     $(".post-audio .the_header").each(function(){
        $(this).prependTo($(this).parent().parent().parent());
 	 }); 
 	 
 	 // style the p that contains the permalinks b/c there's no way to target it otherwise
 	 $(".permalink").each(function() {
 	 	$(this).parent().css("margin-top", 50);
 	 });
       
   });
