
  function qsValue( name )
  {
    var value;

    try { value = unescape( location.search.match( new RegExp( name + "=+([^&]*)" ) )[ 1 ] ); }
    catch( e ) { value = ""; }

    return value;
  }
      
  function insertFooter()
  {
    document.write( '<a href="http://bounce-a-rama.com/">home</a> &nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;' );
    document.write( '<a href="bouncepark.html">bouncepark</a> &nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;' );
    document.write( '<a href="restaurant.html">restaurant</a> &nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;' );
    document.write( '<a href="parties.html">parties</a> &nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;' );
    document.write( '<a href="games.html">games</a> &nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;' );
    document.write( '<a href="find-us.html">find us</a> &nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;' );
    document.write( '<a href="company-information.html">company info</a> &nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;' );
//    document.write( '<a href="#">investor relations</a> &nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;' );
    document.write( '<a href="terms-of-use.html">terms of use</a> &nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;' );
    document.write( '<a href="employment.html">employment</a>' );
    
    document.write( '<br><br><span id="copyright">&copy; 2010 Bounce-A-Rama Inc. All rights reserved</span>' );
  }



  /* exploreWorld */
  /* ============================================================================================================================ */
  var townShowing = false,
      isHomePage = false;
  
  function exploreWorld()
  {
    if( !isHomePage ) { window.location = "http://bounce-a-rama.com/?action=explore"; }
    else if( townShowing == false )
    {
      $( 'body' ).animate( { marginTop: 0 }, 500 );     
      setTimeout( 'scrollToMainHeader()', 1000 );
      townShowing = true;
    }
    else
    {
      scrollToMainHeader();
    }
  }
  
  function getHeight()
  {
    if( !window.innerWidth )          // IE
    {
      if( ! ( document.documentElement.clientWidth == 0 ) ) { return document.documentElement.clientHeight; }  // strict mode
      else { return document.body.clientHeight; }  // quirks mode
    }
    else { return window.innerHeight; }  // w3c
  }
	
  function scrollToMainHeader()
  {
    var h = getHeight();
    
    if( h < 1216 )	
    {
      $( 'html,body' ).animate( { scrollTop: 1216 - h }, 300 );
    }
  }  
  /* ============================================================================================================================ */
	  