// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
document.observe("dom:loaded", function() {
  // initially hide all containers for tab content
  $( 'thePuzzle-moves' ).toggle('Blind', { duration: 3.0 });
  $$( '#thePuzzle a.caption' )[0].observe( 'click', function() {
    if( $( 'thePuzzle-ct-nav-container' ).visible() == $( 'thePuzzle-moves' ).visible() )
      $( 'thePuzzle-ct-nav-container' ).toggle();
    $( 'thePuzzle-moves' ).toggle('Blind', { duration: 3.0, transition: Effect.Transitions.flicker });
    } );  
});

