GridMarket + Global Search widget

Hi,

I want to change the search on the top right hand corner from sub site only to global search.

http://buddydress.com/2010/04/add-a-widget-anywhere-in-3-simple-steps/

I figure I have to edit the following in header.php

<div id="search-bar">
<?php get_search_form(); ?>
</div>
<?php if($bp_existed == 'true') : ?>
<?php if ( bp_search_form_enabled() ) : ?>
<div id="buddypress-searchbar">
<form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
<input type="text" id="search-terms" name="search-terms" value="" />
<?php echo bp_search_form_type_select() ?>

<input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
<?php wp_nonce_field( 'bp_search_form' ) ?>
</form><!-- #search-form -->

to reflect

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar-GlobalDemo') ) : ?>
<?php endif; ?>

but how exactly should the code appear? IE what part of the above <div id="search-bar"> am I replacing with

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar-GlobalDemo') ) : ?>
<?php endif; ?

Thx