// Collapsible elements
	//animatedcollapse.addDiv('divid', 'optional_attribute_string')
	animatedcollapse.addDiv('all')
	animatedcollapse.addDiv('more')
	animatedcollapse.addDiv('more02')
	animatedcollapse.addDiv('vids', 'speed=1000')
	animatedcollapse.addDiv('vids02', 'speed=1000')
	animatedcollapse.addDiv('vids03', 'speed=1000')
	
	animatedcollapse.addDiv('more-link')
	animatedcollapse.addDiv('more-link02')
	animatedcollapse.addDiv('more-link03')
	animatedcollapse.addDiv('more-link04')
	animatedcollapse.addDiv('more-link05')

	animatedcollapse.init()

// JavaScript Document

// This hides the mp3-player div upon page load
$(document).ready(function(){
	$(".mp3-player").hide();
	//$(".stop").hide();					   
});

// This shows the mp3-player div upon click of .button
$(document).ready(function(){
    $(".play").click(function () {
      $(".mp3-player").show("slow"),
	  $(".play").hide();
	  //$(".stop").show();
    }); 
});

/*
// This hides the mp3-player div upon click of #hide
$(document).ready(function(){
	$(".stop").click(function () {
		$(".mp3-player").hide("slow"),
		$(".stop").hide(),
		$(".play").show();
	});				   
});
*/

//This loads the mp3 player 

$(document).ready(function(){
    $('.media').media();
});

//<![CDATA[
	// Demo NyroModal
	$(function() {
		$.nyroModalSettings({
			debug: false,
			processHandler: function(settings) {
				var url = settings.url;
				if (url && url.indexOf('http://www.youtube.com/watch?v=') == 0) {
					$.nyroModalSettings({
						type: 'swf',
						height: 355,
						width: 425,
						url: url.replace(new RegExp("watch\\?v=", "i"), 'v/')
					});
				}
			},
			endShowContent: function(elts, settings) {
				$('.resizeLink', elts.contentWrapper).click(function(e) {
					e.preventDefault();
					$.nyroModalSettings({
						width: Math.random()*1000,
						height: Math.random()*1000
					});
					return false;
				});
				$('.bgLink', elts.contentWrapper).click(function(e) {
					e.preventDefault();
					$.nyroModalSettings({
						bgColor: '#'+parseInt(255*Math.random()).toString(16)+parseInt(255*Math.random()).toString(16)+parseInt(255*Math.random()).toString(16)
					});
					return false;
				});
			}
		});
		
		
	});
	
	$(function() {
		$('.nyroModalWide').nyroModal({width: '600'});
	});

	
	
//This creates zebra striping for the list adding a class to the odd numbered li and adds a border to the first li

$(document).ready(function() {
	$(".commentary-links li:odd").addClass("odd-stripe"),
	$(".commentary-links li:first").addClass("top-border");
						   });
						   
						   