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



// hides the slickbox as soon as the DOM is ready (a little sooner than page load)
$('#design_text').hide();
$('#workshops_text').hide();
$('#strategy_text').hide();



    // Strategy & design Open.
    $("#design_open_anchor").click(function(){
      $(this).animate({ 
        opacity: 0,
        duration: 100, "easing": "easeout", queue: false
        });
        $("#design_text").animate({ 
        height: "600px",
        opacity: 1,
        duration: 800, "easing": "easein", queue: false
        });
    });
    // Strategy & design Close.
    $("#design_close_anchor").click(function(){
      $("#design_text").animate({ 
        height: "1px",
        opacity: 0,
        duration: 800, "easing": "easein", queue: false
        });
      $("#design_open_anchor").animate({ 
        opacity: 100,
        duration: 300, "easing": "easeout", queue: false
        });
     });

    // Client workshops Open.
    $("#workshops_open_anchor").click(function(){
      $(this).animate({ 
        opacity: 0,
        duration: 100, "easing": "easeout", queue: false
        });
      $("#workshops_text").animate({ 
        height: "600px",
        opacity: 1,
        duration: 800, "easing": "easein", queue: false
        });
     });
    // Client workshops Close.
    $("#workshops_close_anchor").click(function(){
      $("#workshops_text").animate({ 
        height: "1px",
        opacity: 0,
        duration: 800, "easing": "easein", queue: false
        });
      $("#workshops_open_anchor").animate({ 
        opacity: 100,
        duration: 300, "easing": "easeout", queue: false
        });
    });
    

    

    $('a#design-toggle').click(function() {
	    $('#design_text').slideToggle(400);
	    $(this).text($(this).text() == 'More about Strategy & design' ? 'Less' : 'More about Strategy & design'); // <- HERE
		queue: false;
	});

    $('a#workshops-toggle').click(function() {
	    $('#workshops_text').slideToggle(400);
	    $(this).text($(this).text() == 'More about Client workshops' ? 'Less' : 'More about Client workshops'); // <- HERE
		queue: false;
	});
    
    
    $('a#slickbox-toggle').click(function() {
	    $('#strategy_text').slideToggle(400);
	    $(this).text($(this).text() == 'More about Using strategy' ? 'Less' : 'More about Using strategy'); // <- HERE
		queue: false;
	});

    
    
  });
