gRDF->GetResource(NC_NAMESPACE_URI "Icon",                &kNC_Icon);
bm_AddRefGlobals(){	if (gRefCnt++ == 0) {		nsresult rv;		rv = nsServiceManager::GetService(kRDFServiceCID,						  NS_GET_IID(nsIRDFService),						  (nsISupports**) &gRDF);		NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get RDF service");		if (NS_FAILED(rv)) return rv;		rv = nsServiceManager::GetService(kRDFContainerUtilsCID,						  NS_GET_IID(nsIRDFContainerUtils),						  (nsISupports**) &gRDFC);		NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get RDF container utils");		if (NS_FAILED(rv)) return rv;		rv = nsServiceManager::GetService(kCharsetAliasCID,						  NS_GET_IID(nsICharsetAlias),						  (nsISupports**) &gCharsetAlias);		    NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get charset alias service");		if (NS_FAILED(rv)) return rv;		gRDF->GetResource(kURINC_BookmarksRoot,                   &kNC_BookmarksRoot);		gRDF->GetResource(kURINC_IEFavoritesRoot,                 &kNC_IEFavoritesRoot);		gRDF->GetResource(kURINC_NewBookmarkFolder,               &kNC_NewBookmarkFolder);		gRDF->GetResource(kURINC_PersonalToolbarFolder,           &kNC_PersonalToolbarFolder);		gRDF->GetResource(kURINC_NewSearchFolder,                 &kNC_NewSearchFolder);		gRDF->GetResource(NC_NAMESPACE_URI "Bookmark",            &kNC_Bookmark);		gRDF->GetResource(NC_NAMESPACE_URI "BookmarkSeparator",   &kNC_BookmarkSeparator);		gRDF->GetResource(NC_NAMESPACE_URI "BookmarkAddDate",     &kNC_BookmarkAddDate);		gRDF->GetResource(NC_NAMESPACE_URI "Description",         &kNC_Description);		gRDF->GetResource(NC_NAMESPACE_URI "Folder",              &kNC_Folder);		gRDF->GetResource(NC_NAMESPACE_URI "FolderType",          &kNC_FolderType);		gRDF->GetResource(NC_NAMESPACE_URI "IEFavorite",          &kNC_IEFavorite);		gRDF->GetResource(NC_NAMESPACE_URI "IEFavoriteFolder",    &kNC_IEFavoriteFolder);		gRDF->GetResource(NC_NAMESPACE_URI "Name",                &kNC_Name);		gRDF->GetResource(NC_NAMESPACE_URI "ShortcutURL",         &kNC_ShortcutURL);		gRDF->GetResource(NC_NAMESPACE_URI "URL",                 &kNC_URL);		gRDF->GetResource(RDF_NAMESPACE_URI "type",               &kRDF_type);		gRDF->GetResource(RDF_NAMESPACE_URI "nextVal",            &kRDF_nextVal);		gRDF->GetResource(WEB_NAMESPACE_URI "LastModifiedDate",   &kWEB_LastModifiedDate);		gRDF->GetResource(WEB_NAMESPACE_URI "LastVisitDate",      &kWEB_LastVisitDate);    gRDF->GetResource(WEB_NAMESPACE_URI "LastCharset",        &kWEB_LastCharset);		gRDF->GetResource(WEB_NAMESPACE_URI "Schedule",           &kWEB_Schedule);		gRDF->GetResource(WEB_NAMESPACE_URI "status",             &kWEB_Status);		gRDF->GetResource(WEB_NAMESPACE_URI "LastPingDate",       &kWEB_LastPingDate);		gRDF->GetResource(WEB_NAMESPACE_URI "LastPingETag",       &kWEB_LastPingETag);		gRDF->GetResource(WEB_NAMESPACE_URI "LastPingModDate",    &kWEB_LastPingModDate);		gRDF->GetResource(WEB_NAMESPACE_URI "LastPingContentLen", &kWEB_LastPingContentLen);		gRDF->GetResource(NC_NAMESPACE_URI "parent",              &kNC_Parent);		gRDF->GetResource(NC_NAMESPACE_URI "command?cmd=newbookmark",             &kNC_BookmarkCommand_NewBookmark);		gRDF->GetResource(NC_NAMESPACE_URI "command?cmd=newfolder",               &kNC_BookmarkCommand_NewFolder);		gRDF->GetResource(NC_NAMESPACE_URI "command?cmd=newseparator",            &kNC_BookmarkCommand_NewSeparator);		gRDF->GetResource(NC_NAMESPACE_URI "command?cmd=deletebookmark",          &kNC_BookmarkCommand_DeleteBookmark);		gRDF->GetResource(NC_NAMESPACE_URI "command?cmd=deletebookmarkfolder",    &kNC_BookmarkCommand_DeleteBookmarkFolder);		gRDF->GetResource(NC_NAMESPACE_URI "command?cmd=deletebookmarkseparator", &kNC_BookmarkCommand_DeleteBookmarkSeparator);		gRDF->GetResource(NC_NAMESPACE_URI "command?cmd=setnewbookmarkfolder",    &kNC_BookmarkCommand_SetNewBookmarkFolder);		gRDF->GetResource(NC_NAMESPACE_URI "command?cmd=setpersonaltoolbarfolder",&kNC_BookmarkCommand_SetPersonalToolbarFolder);		gRDF->GetResource(NC_NAMESPACE_URI "command?cmd=setnewsearchfolder",      &kNC_BookmarkCommand_SetNewSearchFolder);		gRDF->GetResource(NC_NAMESPACE_URI "command?cmd=import",                  &kNC_BookmarkCommand_Import);		gRDF->GetResource(NC_NAMESPACE_URI "command?cmd=export",                  &kNC_BookmarkCommand_Export);	}	return NS_OK;}