switch ( [[UIApplication sharedApplication] statusBarStyle] )
{
+#ifdef __IPHONE_3_0
case UIStatusBarStyleBlackOpaque:
toolbar.barStyle = UIBarStyleBlack;
break;
toolbar.barStyle = UIBarStyleBlack;
toolbar.translucent = YES;
break;
+#endif
default:
toolbar.barStyle = UIBarStyleDefault;
break;