function expandExpandingBanner( id, expand )
{
	$( '#' + expandingBannerOptions[ id ].movie + ', ' + expandingBannerOptions[ id ].target ).css
	(
		'width', ( expand ? expandingBannerOptions[ id ].expanded : expandingBannerOptions[ id ].collapsed ) + 'px'
	);
	if( expand )
	{
		if( typeof expandingBannerOptions[ id ].hidden != 'undefined' )
		{
			$( expandingBannerOptions[ id ].hidden.join(', ') ).hide();
		}
		if( typeof expandingBannerExpanded == 'function' )
		{
			expandingBannerExpanded( id );
		}
	} else {
		if( typeof expandingBannerOptions[ id ].hidden != 'undefined' )
		{
			$( expandingBannerOptions[ id ].hidden.join(', ') ).show();
		}
		if( typeof expandingBannerCollapsed == 'function' )
		{
			expandingBannerCollapsed( id );
		}
	}
}
function boostExpandingBanner( id )
{
	if( typeof expandingBannerOptions != 'undefined' )
	{
		if( typeof expandingBannerOptions[ id ] != 'undefined' )
		{
			var so = new SWFObject
			(
				expandingBannerOptions[ id ].url,
				expandingBannerOptions[ id ].movie,
				parseInt( expandingBannerOptions[ id ].collapsed ),
				parseInt( expandingBannerOptions[ id ].height ),
				expandingBannerOptions[ id ].version,
				'#ffffff'
			);
			so.addParam( 'allowScriptAccess', 'always' );
			so.addParam( 'wmode', 'transparent' );
			so.addParam( 'scale', 'noscale' );
			so.addParam( 'salign', 't' + expandingBannerOptions[ id ].position );
			so.addVariable( 'sponsorUrl', expandingBannerOptions[ id ].sponsor.replace( /&/g, '[AMPERSAND]' ) );
			so.addVariable( 'bannerName', id );
			so.addVariable( 'bannerPosition', expandingBannerOptions[ id ].position );
			so.write( $( expandingBannerOptions[ id ].target ).get( 0 ) );
		}
	}
}