
Shadowbox.loadSkin('classic', 'shadowbox-2.0-code/src/skin');
Shadowbox.loadLanguage('en', 'shadowbox-2.0-code/src/lang');
Shadowbox.loadPlayer(['img', 'qt', 'swf', 'iframe'], 'shadowbox-2.0-code/src/player');

window.onload = function(){
    Shadowbox.init();
};



jQuery(document).ready(function($){


	$("#container").gradient({ from: '333300', to: '000000' });
	
	$("#drop").click(function() {
		$("#dropdown, #backdrop").toggle('slow');
	});
	$("#audio-clips").click(function() {
		$("#tunes, #backdrop").toggle('slow');
	});

	$(".player-div").hide();

	$(".gtune").click(function () {
		$(".player-div").hide();
		$(".gtune").removeClass("selected-tune");
		$(this).addClass("selected-tune");
		var tune = $(".selected-tune").attr("name");
		
		$("#" + tune + "").slideDown("slow");
		
	});
	
// Make an accordion from dl content. Opens w/1st dd showing.
// Try this: can the wait() and put the slide down into the callback function of slideup().
	$('#dlist dd:not(:first)').hide();

	$('#dlist dt').click(function(){
		$thisdt = $(this);
		$thisdd = $(this).next();
		$("#dlist dd:visible").slideUp(function(){
			$thisdd.slideDown("slow");
			$thisdt.css({"background": "#FF9500", "color": "#000"});
		}).prev().css({"background": "#000", "color": "#FF9500"});
	});





}); 
	
