$(document).ready(
	function()
	{
		                // Toggle Single Portlet
         $('a.toggle').click(function()
                 {

                         if ($(this).parent('div').next('div').css('display') == "none")
                                 {
                                         $(this).html('- hide details');
                                         $(this).parent('div').next('div').load($(this).attr('href'), { }, function(){ $(this).toggle('slow') });
                                 } else {
                                         $(this).html('+ show details');
                                         $(this).parent('div').next('div').toggle('slow');
                                 } ;

                 //$(this).parent('div').next('div').toggle('slow');        

                         return false;
                 }
         );

		$('a.toggle_inline').click(function()
			{
                 if ($(this).parent('div').next('div').css('display') == "none")
                       {
                               $(this).html('- hide details');
                               $(this).parent('div').next('div').toggle('slow');
                              
                       } else {
                               $(this).html('+ show details');
                               $(this).parent('div').next('div').toggle('slow');
                       } ;

       //$(this).parent('div').next('div').toggle('slow');        

               return false;
			}
		);

		$('a.sound').click(function()
			{
				var sndPath, caption, initCSS;
				
				sndPath = $(this).attr('href');
				caption = $(this).attr('name');

				
				var so = new SWFObject("/flash/mp3playersmall.swf", "mymovie", "250", "20", "8", "#336699");
			    	so.addVariable("file", sndPath);
					so.addVariable("autostart", true)
				so.write("player");

				caption = "Now Playing :  <em> " + caption + "</em";

				$('span.snd_Caption').html(caption);

				$('div.playerBox').css('background-color', '#000');
                
                $('div.playerBox').animate(
                                {
                                        backgroundColor: '#e6c2cb'
                                },
                                'slow'
                        );
                        

				return false;										
				
				}
			);
			
		$('div.curved').corner("10px");
				
	}
);