$(document).ready(function(){

 // $("#paragraphs").hide();
 
   $("#admin_bar_content_top").hide();
   $("#admin_bar_content_top_2").hide();
   $("#admin_bar_content").hide();
   $("#admin_bar_content_right").hide();
   $("#admin_bar_content_center").hide();
   $("#admin_bar_content_2").hide();
   $("#admin_bar_content_3").hide();
   $("#admin_bar_content_4").hide();
   $(".edit_bar").hide();
   $(".xhidden").hide();
//  $('#loading').hide();
//  $('#ajax-content').hide();

  $('.kwicks').kwicks({  
    max : 485  
  });  

  $("#toggle-ajax").click(function(event){  
    if ($('#toggle-ajax').hasClass('hidden')) { // checks if the content is visible
      $('#loading').show();
      $("#ajax-content").load("ajax-response.html");
      $('#loading').hide();
    } else { 
    }
    
    return false;
	});

  $(".hidden,.visible").click(function(event){  
    if ($(this).hasClass('hidden')){
      $(this).removeClass('hidden')
      $(this).addClass('visible');
    } else {
      $(this).removeClass('visible')
      $(this).addClass('hidden');
    }
    $(this).parent().next().slideToggle();
    
    return false;
  });

	$("#accordion dd:not(:first)").hide();
	$("#accordion dt").click(function(){
		$("#accordion dd:visible").slideUp("slow");
		$(this).next().slideDown("slow");
		return false;
	});

	$("#section-menu dd:not(:first)").hide();
	$("#section-menu dt").click(function(){
		$("#section-menu dd:visible").slideUp("slow");
		$(this).next().slideDown("slow");
		return false;
	});


}); 


 $(document).ready(function(){
   
      $("#bubble1").animate({opacity: "show", bottom: "20"}, "slow");
      $("#recording").mouseout(function()
      {
        
        //$("#bubble1").animate({opacity: "hide", bottom: "30"}, "fast");
      });
      $("#recording").mouseover(function()
      {
        $("#bubble1").animate({opacity: "show", bottom: "20"}, "slow");
        $("#bubble2").animate({opacity: "hide", bottom: "30"}, "fast");
        $("#bubble3").animate({opacity: "hide", bottom: "30"}, "fast");
        $("#bubble4").animate({opacity: "hide", bottom: "30"}, "fast");
      });
      ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
      $("#mixing").mouseout(function()
      {       
      });
      $("#mixing").mouseover(function()
      { 
        $("#bubble2").animate({opacity: "show", bottom: "20"}, "slow");
        $("#bubble1").animate({opacity: "hide", bottom: "30"}, "fast");
        $("#bubble3").animate({opacity: "hide", bottom: "30"}, "fast");
        $("#bubble4").animate({opacity: "hide", bottom: "30"}, "fast");
      });
      ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
      $("#mastering").mouseout(function()
      {
      });
      $("#mastering").mouseover(function()
      {   
        $("#bubble3").animate({opacity: "show", bottom: "20"}, "slow");
        $("#bubble2").animate({opacity: "hide", bottom: "30"}, "fast");
        $("#bubble1").animate({opacity: "hide", bottom: "30"}, "fast");
        $("#bubble4").animate({opacity: "hide", bottom: "30"}, "fast");
      });
      ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
      $("#postproduction").mouseout(function()
      {
      });
      $("#postproduction").mouseover(function()
      {   
        $("#bubble4").animate({opacity: "show", bottom: "20"}, "slow");
        $("#bubble2").animate({opacity: "hide", bottom: "30"}, "fast");
        $("#bubble3").animate({opacity: "hide", bottom: "30"}, "fast");
        $("#bubble1").animate({opacity: "hide", bottom: "30"}, "fast");
      });
      
   });  
