diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/common/content/tree.js
--- a/mozilla/browser/components/flock/common/content/tree.js	Thu Jan 12 18:09:08 2006 +0100
+++ b/mozilla/browser/components/flock/common/content/tree.js	Wed Jan 11 23:09:20 2006 -0800
@@ -44,6 +44,9 @@
         // Send to a handler
         if (obj.value == "twisty") {
             this.performAction("onTwisty", row.value, col.value);
+        }
+        else if ((col.value.cycler || col.type == "checkbox")) {
+            this.mNode.view.cycleCell(row.value, col.value);
         }
         else {
             var mods = this.split(aEvent);
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/common/jar.mn
--- a/mozilla/browser/components/flock/common/jar.mn	Thu Jan 12 18:09:08 2006 +0100
+++ b/mozilla/browser/components/flock/common/jar.mn	Wed Jan 11 23:09:20 2006 -0800
@@ -26,7 +26,6 @@
     skin/classic/browser/flock/common/blue.png                 (skin/classic/blue.png)
     skin/classic/browser/flock/common/slideyhandle.png         (skin/classic/slideyhandle.png)
     skin/classic/browser/flock/common/slideyBG.png             (skin/classic/slideyBG.png)
-    skin/classic/browser/flock/common/plus.png                 (skin/classic/plus.png)
     skin/classic/browser/flock/common/close_active.png         (skin/classic/close_active.png)
     skin/classic/browser/flock/common/close_inactive.png       (skin/classic/close_inactive.png)
     skin/classic/browser/flock/common/close_hover.png          (skin/classic/close_hover.png)
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/favorites/content/favorites.js
--- a/mozilla/browser/components/flock/favorites/content/favorites.js	Thu Jan 12 18:09:08 2006 +0100
+++ b/mozilla/browser/components/flock/favorites/content/favorites.js	Wed Jan 11 23:09:20 2006 -0800
@@ -204,27 +204,6 @@
     }
     flock.browser.openFeeds(feedList, aWhere);
 };/*}}}*/
-flock.favorites.refreshFeedsForCollection = function (aCollection) {/*{{{*/
-    flock.require('flock.feed.feed');
-    var collection = flock.favorites.getCollection(aCollection);
-    var feedList = [];
-    for (var i = 0; i < collection.items.length; ++i) {
-        var item = collection.items[i];
-        XXX('FOR EACH ITEM', item);
-        if (flock.favorites.isFeed(item)) {
-            XXX('ITS A FEED');
-            feedList.push(item.url);
-        }
-        else if (item.hasFeeds) {
-            XXX('IT HAS FEEDS');
-            for (var j = 0; j < item.feeds.length; ++j) {
-                XXX('FOREACH FEED');
-                feedList.push(item.feeds[j].url);
-            }
-        }
-    }
-    flock.feed.refreshFeeds(feedList);
-};/*}}}*/
 flock.favorites.viewFeeds = function (aItemList, aWhere) {/*{{{*/
     var feedList = [];
     for (var i = 0; i < aItemList.length; ++i) {
@@ -247,26 +226,6 @@
         }
     }
     flock.browser.openFeeds(feedList, aWhere);
-
-};/*}}}*/
-flock.favorites.refreshFeeds = function (aItemList) {/*{{{*/
-    var feedList = [];
-    for (var i = 0; i < aItemList.length; ++i) {
-        var item = aItemList[i];
-        if (flock.favorites.isFeed(item)) {
-            item = flock.favorites.getFeed(item);
-            feedList.push(item.url);
-        }
-        else {
-            item = flock.favorites.getFavorite(item);
-            if (item.hasFeeds) {
-                for (var j = 0; j < item.feeds.length; ++j) {
-                    feedList.push(item.feeds[j].url);
-                }
-            }
-        }
-    }
-    flock.feed.refreshFeeds(feedList);
 
 };/*}}}*/
 flock.favorites.openCollectionInTabs = function (aCollection) {/*{{{*/
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/favorites/content/favoritesManager.js
--- a/mozilla/browser/components/flock/favorites/content/favoritesManager.js	Thu Jan 12 18:09:08 2006 +0100
+++ b/mozilla/browser/components/flock/favorites/content/favoritesManager.js	Wed Jan 11 23:09:20 2006 -0800
@@ -182,13 +182,6 @@
             exec: function () {
                 var selected = this.mNode.selectedItem;
                 flock.favorites.viewFeedsForCollection(selected.id, 'window');
-            }
-        },/*}}}*/
-        cmd_collectionRefreshFeeds: {/*{{{*/
-            isEnabled: collectionHasFeeds,
-            exec: function () {
-                var selected = this.mNode.selectedItem;
-                flock.favorites.refreshFeedsForCollection(selected.id);
             }
         },/*}}}*/
     });
@@ -309,6 +302,25 @@
                 }
             }
         },/*}}}*/ 
+        cmd_toggleShared: function() {/*{{{*/
+            // XXX ---- all of the following should be done in the service --- as some may or may not support
+            // things like "private" ... as well as their "service" might be to not have a online service at all
+            var selected = flock_getTreeSelection(tree, ['URL', 'Name']);
+            var allFavProps = flock.favorites.getFavorite( selected[0].URL );
+            allFavProps.load();
+            var favPropsForEdit = {name:allFavProps.name, url:allFavProps.url, feed:allFavProps.feed }
+
+            // Order is local -> private -> public 
+            if (allFavProps.local) {
+                flock.favorites.editItem( favPropsForEdit, {local: false, private: true});
+            } else {
+                if (allFavProps.private) {
+                    flock.favorites.editItem( favPropsForEdit, {local: false, private: false});
+                } else {
+                    flock.favorites.editItem( favPropsForEdit, {local: true, private: false});
+                }
+            }
+            },/*}}}*/
         cmd_favoriteRename: function () { /*{{{*/
             var selected = flock_getTreeSelection(tree, ['URL', 'Name']);
             flock.favorites.renameItem({
@@ -370,16 +382,6 @@
                     return aVal.URL;
                 });
                 flock.favorites.viewFeeds(feeds, 'window');
-            }
-        },/*}}}*/
-        cmd_favoriteRefreshFeeds: {/*{{{*/
-            isEnabled: feedsSelected,
-            exec: function () {
-                var selected = flock_getTreeSelection(tree, ['URL']);
-                var feeds = selected.map(function (aVal) {
-                    return aVal.URL;
-                });
-                flock.favorites.refreshFeeds(feeds);
             }
         },/*}}}*/
     });
@@ -647,6 +649,14 @@
                 case "onDblMetaClick":
                     goDoCommand('cmd_favoriteOpenInTab');
                     break;
+				case "onClick":
+					switch (aCol) {
+						case 'sharing':
+							goDoCommand('cmd_toggleShared');
+							break;
+
+					}
+                    break;
             }
         },/*}}}*/
         onCycleCell: function (aRow, aCol) {/*{{{*/
@@ -661,16 +671,13 @@
             var fav = flock.favorites.getFavorite(rsrc);
             fav.load();
             if (fav.local) {
-                XXX('IS LOCAL, SETTING TO PUBLIC');
                 flock.favorites.editItem(fav, {local: false});
             }
             else {
                 if (!fav.private && flock.favorites.supportsField('private')) {
-                    XXX('IS PUBLIC AND PRIVATE SUPPORTED, SETTING TO PRIVATE');
                     flock.favorites.editItem(fav, {private: true});
                 }
                 else if (fav.private || !flock.favorites.supportsField('private')) {
-                    XXX('IS PRIVATE OR PRIVACY IS NOT SUPPORTED, SETTING TO LOCAL');
                     flock.favorites.editItem(fav, {private: false, local: true});
                 }
             }
@@ -706,6 +713,7 @@
             mOuter: this,
             mInput: searchbox,
             mTree: tree,
+            mClearButton: $('favoritesManagerClearSearch'),
             mTreeTemplate: $('favoriteViewTemplate'),
             _searchResults: null,
             get searchResults() {/*{{{*/
@@ -720,8 +728,10 @@
                     // we are clearing the tree
                     this.unfilterTree();
                     this._searchResults = null;
+                    flock.xul.hide(this.mClearButton);
                 }
                 else {
+                    flock.xul.show(this.mClearButton);
                     this._searchResults = aDataSource;
                     flock.rdf.addDataSources(this.mTree,
                                              [this._searchResults]);
@@ -729,44 +739,28 @@
                     dump_rdf(this._searchResults);
                 }
                 this.mTree.builder.rebuild();
-            },/*}}}*/
-            filterTree: function () {/*{{{*/
-                // find all the conditions we need to add a rule to
-                var searchConditions = document.getElementsByAttribute('favoritesSearch', 'conditions');
-                for (var i = 0; i < searchConditions.length; i++) {
-                    var conditions = searchConditions[i];
-                    // XXX andy: i don't think we actually need to remove old filters,
-                    //           they'll get removed eventually via unfilterTree anyway
-                    //           and i don't think they pose a more serious performance
-                    //           threat than recursing over the items every time like
-                    //           this could is doing.
-                    //// find old search rules to remove
-                    //for (var j = 0; j < conditions.childNodes.length; j++) {
-                    //    var child = conditions.childNodes[j];
-                    //    if (child.getAttribute ('predicate') == 
-                    //            'http://flock.com/rdf#searchresult') {
-                    //        // this is one we want to remove
-                    //        conditions.removeChild (child);
-                    //   }
-                    //}
-                    // create a rule to match only search results
-                    var triple = flock.xul.createElement('triple', {
-                        subject: "?uri",
-                        predicate: "http://flock.com/rdf#searchresult",
-                        object: "true",
-                        favoritesSearch: "filter"   
-                        
-                    });
-
-                    // and add it to the condition
-                    conditions.appendChild(triple);
-                }
-            },/*}}}*/
-            unfilterTree: function () {/*{{{*/
-                // find all the filters we need to remove
-                var searchFilters = document.getElementsByAttribute('favoritesSearch', 'filter');
-                searchFilters = flock.lang.toArray(searchFilters);
-                searchFilters.forEach(dojo.dom.removeNode);
+            },
+            filterTree: function () {
+                // turn on the template rule to only show search
+                // results
+                for (var i = 0; i < this.mTreeTemplate.childNodes.length; ++i) {
+                    var child = this.mTreeTemplate.childNodes[i];
+                    if (child.tagName == "rule") {
+                        child.setAttributeNS('http://flock.com/rdf#',
+                                             'searchresult',
+                                             'true');
+                    }
+                }
+            },
+            unfilterTree: function () {
+                for (var i = 0; i < this.mTreeTemplate.childNodes.length; ++i) {
+                    var child = this.mTreeTemplate.childNodes[i];
+                    if (child.tagName == "rule") {
+                        child.removeAttributeNS('http://flock.com/rdf#',
+                                               'searchresult');
+                    }
+                }
+                
             },/*}}}*/
             onEnter: function () {/*{{{*/
                 this.mInput.clearInputTimer();
@@ -785,11 +779,6 @@
             },/*}}}*/
             search: function () {/*{{{*/
                 XXX('SEARCHIPOO');
-				if (this.mInput.value == '') {
-                    this.unfilterTree();
-                    this.searchResults = null;
-					return;
-				}
                 var _this = this;
                 var callback = new flock.search.SearchCallback({
                     onResult: function (aData) {  
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/favorites/content/favoritesManager.xul
--- a/mozilla/browser/components/flock/favorites/content/favoritesManager.xul	Thu Jan 12 18:09:08 2006 +0100
+++ b/mozilla/browser/components/flock/favorites/content/favoritesManager.xul	Wed Jan 11 23:09:20 2006 -0800
@@ -50,6 +50,7 @@
     <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
     <script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js"/>
 
+    <!--<script type="application/x-javascript" src="chrome://browser/content/flock/contrib/dojo.js"/> -->
     <script type="application/x-javascript" src="chrome://browser/content/flock/common/flock.js"/>
     <script type="application/x-javascript" src="chrome://browser/content/flock/common/dnd.js"/> 
     <script type="application/x-javascript" src="chrome://browser/content/flock/common/events.js"/> 
@@ -95,7 +96,6 @@
         <command id="cmd_collectionViewFeedsInTab"  oncommand="goDoCommand('cmd_collectionViewFeedsInTab')" /> 
         <command id="cmd_collectionViewFeedsInWindow" 
             oncommand="goDoCommand('cmd_collectionViewFeedsInWindow')" /> 
-        <command id="cmd_collectionRefreshFeeds"    oncommand="flock.command('cmd_collectionRefreshFeeds')" /> 
     </commandset><!--}}}-->
     <!-- Commands: Favorites --><!--{{{-->
     <commandset id="flock_favoriteCommands">
@@ -109,7 +109,6 @@
         <command id="cmd_favoriteViewFeeds"         oncommand="goDoCommand('cmd_favoriteViewFeeds');" />
         <command id="cmd_favoriteViewFeedsInTab"    oncommand="goDoCommand('cmd_favoriteViewFeedsInTab');" />
         <command id="cmd_favoriteViewFeedsInWindow" oncommand="goDoCommand('cmd_favoriteViewFeedsInWindow');" />
-        <command id="cmd_favoriteRefreshFeeds"      oncommand="goDoCommand('cmd_favoriteRefreshFeeds');" />
     </commandset><!--}}}-->
     
     
@@ -124,7 +123,6 @@
         <menuitem label="View Feeds"                command="cmd_collectionViewFeeds" />
         <menuitem label="View Feeds In New Tab"     command="cmd_collectionViewFeedsInTab" />
         <menuitem label="View Feeds in New Window"  command="cmd_collectionViewFeedsInWindow" />
-        <menuitem label="Refresh Feeds"             command="cmd_collectionRefreshFeeds" />
     </menupopup><!--}}}-->
 
     <menupopup id="favoriteContext" />
@@ -141,7 +139,6 @@
             <menuitem label="View Feeds"                command="cmd_favoriteViewFeeds" />
             <menuitem label="View Feeds In New Tab"     command="cmd_favoriteViewFeedsInTab" />
             <menuitem label="View Feeds In New Window"  command="cmd_favoriteViewFeedsInWindow" />
-            <menuitem label="Refresh Feeds"             command="cmd_favoriteRefreshFeeds" />
         </menupopup><!--}}}-->
         <menupopup id="favoriteMultipleItemsSelectedContext"><!--{{{-->
             <menuitem label="Delete All"                command="cmd_favoriteRemove" />
@@ -151,7 +148,6 @@
             <menuitem label="View Feeds"                command="cmd_favoriteViewFeeds" />
             <menuitem label="View Feeds In New Tab"     command="cmd_favoriteViewFeedsInTab" />
             <menuitem label="View Feeds In New Window"  command="cmd_favoriteViewFeedsInWindow" />
-            <menuitem label="Refresh Feeds"             command="cmd_favoriteRefreshFeeds" />
         </menupopup><!--}}}-->
     </popupset>
 
@@ -196,7 +192,7 @@
 							<vbox><spacer flex="1"/><image src="chrome://browser/skin/flock/favorites/collectionIcon16.png" /><spacer flex="1"/></vbox>
                             <vbox><spacer flex="1"/><description value="rdf:http://home.netscape.com/NC-rdf#Name"/><spacer flex="1"/></vbox>
                             <spacer flex="1"/>
-                            <toolbarbutton class="feedsButton"
+                            <button class="feedsButton"
                                 label="feeds"
                                 onmousedown="event.preventBubble();"
                                 onclick="event.preventBubble();"
@@ -205,8 +201,12 @@
                     </rule>
                 </template>
             </slicklistbox>
-            <hbox id="favoritesManagerLeftFooter">
-                <toolbarbutton id="flock_addCollection" label="add collection" oncommand="flock.favorites.createCollection()" />
+            <hbox id="favoritesManagerLeftFooter"
+                class="footer"
+                style="-moz-box-pack: end; -moz-box-align: start;">
+                <button label="+" oncommand="flock.favorites.createCollection()" />
+                <!--<label value="focusWatcher" id="focusWatcher" />-->
+                <!--<slickgrippy attach="collectionListBox" orient="vertical"/>-->
             </hbox>
         </vbox><!--}}}-->
         <!-- Right -->
@@ -225,82 +225,81 @@
                 class='plain'>
                 
                 <template id="favoriteViewTemplate" xmlns:nc="http://home.netscape.com/NC-rdf#">
-                    <!-- FAVORITES -->
-                    <rule><!--{{{-->
-                        <conditions favoritesSearch="conditions">
-                            <content uri="?container" />
-                            <member container="?container" child="?uri"/>
-                            <triple subject="?uri" 
-                                predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" 
-                                object="http://flock.com/rdf#Favorite" />
-                        </conditions>
-                        <bindings>
-                            <binding subject="?uri" predicate="http://flock.com/rdf#local" object="?local"/>
-                            <binding subject="?uri" predicate="http://flock.com/rdf#private" object="?private"/>
-                            <binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#Name" object="?Name" />
-                            <binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#URL" object="?URL" />
-                            <binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#Description" object="?Description" />
-                            <binding subject="?uri" predicate="http://flock.com/rdf#FavoriteAddDate" object="?FavoriteAddDate" />
-                            <binding subject="?uri" predicate="http://flock.com/rdf#tags" object="?tags" />
-                            <binding subject="?uri" predicate="http://flock.com/rdf#feed" object="?feed" />
-                            <binding subject="?uri" predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" object="?favorite" />
-                            <binding subject="?uri" predicate="http://home.netscape.com/WEB-rdf#LastModifiedDate" object="?LastModifiedDate" />
-                            <binding subject="?uri" predicate="http://home.netscape.com/WEB-rdf#LastVisitDate" object="?LastVisitDate" />
-                        </bindings>
-                        <action>
-                            <treechildren>
-                                <treeitem uri="?uri">
-                                    <treerow properties="favorite feed-?feed">
-                                        <treecell properties="local-?local private-?private favorite feed-?feed" />
-                                        <treecell label="?Name" />
-                                        <treecell label="?URL" />
-                                        <treecell label="?Description" />
-                                        <treecell label="?FavoriteAddDate" />
-                                        <treecell label="?tags" />
-                                        <treecell label="?LastModifiedDate" />
-                                        <treecell label="?LastVisitDate"/>
-                                    </treerow>
-                                </treeitem>
-                            </treechildren>
-                        </action>
-                    </rule><!--}}}-->
-                    <!-- HISTORY -->
-                    <rule><!--{{{-->
-                        <conditions favoritesSearch="conditions">
-                            <content uri="?container" />
-                            <member container="?container" child="?uri"/>
-                        </conditions>
-                        <bindings>
-                            <binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#Name" object="?Name" />
-                            <binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#URL" object="?URL" />
-                            <binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#Description" object="?Description" />
-                            <binding subject="?uri" predicate="http://flock.com/rdf#FavoriteAddDate" object="?FavoriteAddDate" />
-                            <binding subject="?uri" predicate="http://flock.com/rdf#tags" object="?tags" />
-                            <binding subject="?uri" predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" object="?favorite" />
-                            <binding subject="?uri" predicate="http://home.netscape.com/WEB-rdf#LastModifiedDate" object="?LastModifiedDate" />
-                            <binding subject="?uri" predicate="http://home.netscape.com/WEB-rdf#LastVisitDate" object="?LastVisitDate" />
-                        </bindings>
-                        <action>
-                            <treechildren>
-                                <treeitem uri="?uri">
-                                    <treerow>
-                                        <treecell properties="history" />
-                                        <treecell label="?Name" />
-                                        <treecell label="?URL" />
-                                        <treecell label="?Description" />
-                                        <treecell label="?FavoriteAddDate" />
-                                        <treecell label="?tags" />
-                                        <treecell label="?LastModifiedDate" />
-                                        <treecell label="?LastVisitDate"/>
-                                    </treerow>
-                                </treeitem>
-                            </treechildren>
-                        </action>
-                    </rule><!--}}}-->
+					<!-- FAVORITES -->
+                    <rule rdf:type="http://flock.com/rdf#Favorite" iscontainer="false">
+						<conditions>
+							<content uri="?container" />
+							<member container="?container" child="?uri"/>
+							<triple subject="?uri" 
+							        predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" 
+							        object="http://flock.com/rdf#Favorite" />
+						</conditions>
+						<bindings>
+							<binding subject="?uri" predicate="http://flock.com/rdf#local" object="?local"/>
+							<binding subject="?uri" predicate="http://flock.com/rdf#private" object="?private"/>
+							<binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#Name" object="?Name" />
+							<binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#URL" object="?URL" />
+							<binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#Description" object="?Description" />
+							<binding subject="?uri" predicate="http://flock.com/rdf#FavoriteAddDate" object="?FavoriteAddDate" />
+							<binding subject="?uri" predicate="http://flock.com/rdf#tags" object="?tags" />
+							<binding subject="?uri" predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" object="?favorite" />
+							<binding subject="?uri" predicate="http://home.netscape.com/WEB-rdf#LastModifiedDate" object="?LastModifiedDate" />
+							<binding subject="?uri" predicate="http://home.netscape.com/WEB-rdf#LastVisitDate" object="?LastVisitDate" />
+						</bindings>
+						<action>
+	                        <treechildren>
+	                            <treeitem uri="?uri">
+	                                <treerow properties="favorite">
+	                                    <treecell properties="local-?local private-?private favorite" />
+	                                	<treecell label="?Name" />
+	                                    <treecell label="?URL" />
+	                                    <treecell label="?Description" />
+	                                    <treecell label="?FavoriteAddDate" />
+	                                    <treecell label="?tags" />
+	                                    <treecell label="?LastModifiedDate" />
+	                                    <treecell label="?LastVisitDate"/>
+	                                </treerow>
+	                            </treeitem>
+	                        </treechildren>
+						</action>
+                    </rule>
+					<!-- HISTORY -->
+                    <rule rdf:type="http://flock.com/rdf#Favorite" iscontainer="false">
+						<conditions>
+							<content uri="?container" />
+							<member container="?container" child="?uri"/>
+						</conditions>
+						<bindings>
+							<binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#Name" object="?Name" />
+							<binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#URL" object="?URL" />
+							<binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#Description" object="?Description" />
+							<binding subject="?uri" predicate="http://flock.com/rdf#FavoriteAddDate" object="?FavoriteAddDate" />
+							<binding subject="?uri" predicate="http://flock.com/rdf#tags" object="?tags" />
+							<binding subject="?uri" predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" object="?favorite" />
+							<binding subject="?uri" predicate="http://home.netscape.com/WEB-rdf#LastModifiedDate" object="?LastModifiedDate" />
+							<binding subject="?uri" predicate="http://home.netscape.com/WEB-rdf#LastVisitDate" object="?LastVisitDate" />
+						</bindings>
+						<action>
+	                        <treechildren>
+	                            <treeitem uri="?uri">
+	                                <treerow>
+	                                    <treecell properties="history" />
+	                                	<treecell label="?Name" />
+	                                    <treecell label="?URL" />
+	                                    <treecell label="?Description" />
+	                                    <treecell label="?FavoriteAddDate" />
+	                                    <treecell label="?tags" />
+	                                    <treecell label="?LastModifiedDate" />
+	                                    <treecell label="?LastVisitDate"/>
+	                                </treerow>
+	                            </treeitem>
+	                        </treechildren>
+						</action>
+                    </rule>
 
                 </template>
                 <treecols id="flock_favoritesTreeCols"><!--{{{-->
-                    <treecol id="sharing" cycler="true"
+                    <treecol id="sharing"
                         persist="hidden ordinal"/>
                     <splitter class="tree-splitter" />
                     <treecol id="Name" label="&flock.favorites.manager.treecol.name;" 
@@ -345,11 +344,12 @@
                     <treecol id="Stuff" sort="" hidden="true"/>
                 </treecols><!--}}}-->
             </tree>
-            <hbox id="favoritesManagerRightFooter" class="footer">
-				<spacer flex="1" />
+            <hbox id="favoritesManagerRightFooter" pack="start" align="start"
+                class="footer">
                 <label value="search" control="favoritesManagerSearchbox"/>
-                <slicktextbox id="favoritesManagerSearchbox" />
-				<spacer flex="1" />
+                <slicktextbox id="favoritesManagerSearchbox" height="15"/>
+                <button id="favoritesManagerClearSearch" label="x" hidden="true"/>
+                <!--<textbox id="favoritesManagerSearchbox" rows="1" multiline="false" />-->
             </hbox>
         </vbox>
     </hbox>
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/favorites/content/favoritesOverlay.js
--- a/mozilla/browser/components/flock/favorites/content/favoritesOverlay.js	Thu Jan 12 18:09:08 2006 +0100
+++ b/mozilla/browser/components/flock/favorites/content/favoritesOverlay.js	Wed Jan 11 23:09:20 2006 -0800
@@ -1,5 +1,3 @@
-// vim: foldmethod=marker
-
 flock.require('flock.common.events');
 flock.require('flock.favorites.favorites');
 
@@ -31,17 +29,17 @@
     var favoritesController = new CommandController({
         // all the commands
         _clickTimers: [],
-        mButton: $('favoritesButton'),
+        
         cmd_favoriteCreateCurrent: function () {/*{{{*/
             var fav = flock.favorites.currentAsFavorite;
             fav = flock.favorites.updateOrCreateFavorite(fav);
-            this.mButton.updateState();
+            $("favoritesButton").setAttribute("state", (fav.isFavorite ? 'on' : 'off'));
             return;
         },/*}}}*/
         cmd_favoriteCreateCurrentDetailed: function () {/*{{{*/
             var fav = flock.favorites.currentAsFavorite;
             fav = flock.favorites.updateOrCreateFavorite(fav, true);
-            this.mButton.updateState();
+            $("favoritesButton").setAttribute("state", (fav.isFavorite ? 'on' : 'off'));
             return;
         },/*}}}*/
         cmd_favoriteGoManager: function () {/*{{{*/
@@ -95,16 +93,17 @@
 
     
     var webProgressListener = new flock.browser.WebProgressListener({
-        mButton: $("favoritesButton"),
-        updateCreateFromTabs: function () {/*{{{*/
+        onNewLocation: function (aUrl) {/*{{{*/
+
+        
+            // check for tabs
             if (flock.browser.currentTabs.length > 1) {
                flock.xul.enable($('cmd_collectionCreateFromTabs'));
             }
             else {
                flock.xul.disable($('cmd_collectionCreateFromTabs'));
             }
-        },/*}}}*/
-        updateGoWebService: function () {/*{{{*/
+            
             // XXX andy: this is not the right place to be doing this
             //           we should really probably add a listener to the
             //           web service
@@ -114,16 +113,8 @@
             else {
                 flock.xul.disable($('cmd_favoriteGoWebService'));
             }
-        },/*}}}*/
-        updateButton: function () {/*{{{*/
-            this.mButton.updateState();
-        },/*}}}*/
-        onNewLocation: function (aUrl) {/*{{{*/
-            this.updateCreateFromTabs();
-            this.updateGoWebService();
-            this.updateButton();
-            
-            flock.xul.disable($('cmd_viewFeedsToggle'));
+
+            $("favoritesButton").setAttribute("state", (flock.favorites.service.isFavorite(aUrl) ? 'on' : 'off'));
             // reset the feed state onLocationChange
             flock.browser.currentFeeds = [];
             flock.browser.currentFeedInfo = [];
@@ -172,8 +163,8 @@
             //    XXX('STUFF');
             //    flock.browser.openFeeds([flock.browser.currentUrl]);
             //}
-        }
-    });/*}}}*/
+        }/*}}}*/
+    });
 
     window.getBrowser().addProgressListener(
         webProgressListener,
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/favorites/content/favoritesOverlay.xul
--- a/mozilla/browser/components/flock/favorites/content/favoritesOverlay.xul	Thu Jan 12 18:09:08 2006 +0100
+++ b/mozilla/browser/components/flock/favorites/content/favoritesOverlay.xul	Wed Jan 11 23:09:20 2006 -0800
@@ -157,6 +157,7 @@
 
     
     
+    <!-- XXX andy: switch this to dblclick star-and-tag -->
     <toolbaritem id="urlbar-container"><!--{{{-->
         <starbutton id="favoritesButton"
             ondblclick="flock.command('cmd_favoriteCreateCurrentDetailed');"
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/favorites/content/starButton.xml
--- a/mozilla/browser/components/flock/favorites/content/starButton.xml	Thu Jan 12 18:09:08 2006 +0100
+++ b/mozilla/browser/components/flock/favorites/content/starButton.xml	Wed Jan 11 23:09:20 2006 -0800
@@ -34,9 +34,9 @@
                     class="box-inherit toolbarbutton-menubutton-button"
                     allowevents="true"
                     xbl:inherits="disabled,image,label,crop,accesskey,command,buttonover,buttondown,align,dir,pack,orient,toolbarmade,buttonstyle" />
-                <!--<xul:dropmarker type="menu-button"-->
-                <!--    xbl:inherits="open,disabled,toolbarmode,buttonstyle"-->
-                <!--    class="toolbarbutton-menubutton-dropmarker" />-->
+                <xul:dropmarker type="menu-button"
+                    xbl:inherits="open,disabled,toolbarmode,buttonstyle"
+                    class="toolbarbutton-menubutton-dropmarker" />
             </xul:stack>
         </content>
         <implementation implements="nsIWebProgressListener">
@@ -73,15 +73,15 @@
             <method name="updateState"><!--{{{-->
                 <body>
                     <![CDATA[
-                    var isFav = flock.favorites.isFavorite(
-                        flock.browser.currentUrl
-                    );
+                    if (this._url && this._url.length) {
+                        this._favorite = this._svc.isFavorite(this._url);
+                    }
                     
                     //var state = "";
                     //state += 'plus' + (this._favorite ? 'On' : 'Off');
                     //state += this._hover ? 'Hover' : '';
 
-                    this.setAttribute("state", (isFav ? 'on' : 'off'));
+                    this.setAttribute("state", (this._favorite ? 'on' : 'off'));
                     ]]>
                 </body>
             </method><!--}}}-->
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/favorites/skin/classic/collectionIcon16.png
Binary file mozilla/browser/components/flock/favorites/skin/classic/collectionIcon16.png has changed
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/favorites/skin/classic/favoritesManager.css
--- a/mozilla/browser/components/flock/favorites/skin/classic/favoritesManager.css	Thu Jan 12 18:09:08 2006 +0100
+++ b/mozilla/browser/components/flock/favorites/skin/classic/favoritesManager.css	Wed Jan 11 23:09:20 2006 -0800
@@ -1,11 +1,9 @@
 #favoritesManagerLeft {
     border-right: 1px solid #666;
-	background: #F2F2F2;
 }
 
 
 #collectionListBox slicklistitem {
-	height: 30px;
     padding: 4px 6px;
     border-width: 0px;
     background-image: none;
@@ -32,39 +30,17 @@
 	margin: 0;
 }
 
-#flock_addCollection {
+.feedsButton {
 	-moz-appearance: none !important;
-	text-indent: -1000em;
-	width: 18px;
-	height: 16px;
 	margin: 0;
-	padding: 0;
-	float: right;
+	border: 0px;
 	cursor: pointer;
-	background: url('chrome://browser/skin/flock/common/plus.png') 0px 0px no-repeat;
+	background: url('chrome://browser/skin/page-livemarks.png') no-repeat transparent center;
 }
 
-#favoritesManagerLeftFooter {
-	padding: 10px;
-}
 
-#flock_addCollection:hover {
-  -moz-appearance: none;
-  background-position: 0px -16px;
-}
-#flock_addCollection:active {
-  -moz-appearance: none;
-  background-position: 0px -32px;
-}
-
-.feedsButton {
-	-moz-appearance: none !important;
-	text-indent: -1000em;
-	width: 16px;
-	height: 16px;
-	float: right;
-	cursor: pointer;
-	background: url('chrome://browser/skin/page-livemarks.png') no-repeat transparent center;
+.feedsButton .button-box {
+    display: none;
 }
 
 slicklistitem[hasFeeds="false"] .feedsButton {
@@ -85,43 +61,20 @@
 .footer {
     height: 40px;
     background-color: #EEE;
-    border-top: 1px solid #999;
-	padding: 5px 0;
+    border-top: 1px solid #666;
 }
 
-#favoritesManagerSearchbox {
-  background: url("chrome://browser/skin/search-bar-background.png") no-repeat;
-  -moz-appearance: none;
-  font: icon;
-  height: 22px !important;
-  width: 200px !important;
-  padding: 4px 3px 4px 5px;
-}
+/*treechildren::-moz-tree-cell(public) {*/
+/*    background-color: green;*/
+/*}*/
 
-#favoritesManagerSearchbox .textbox-input-box {
-  background: url("chrome://browser/skin/Search-bar.png") no-repeat left top transparent;
-  padding-left: 20px;
-}
+/*treechildren::-moz-tree-cell(local) {*/
+/*    background-color: gray;*/
+/*}*/
 
-#favoritesManagerSearchbox .textbox-input {
-  background-color: transparent;
-}
-
-.favoritesManagerSearchbox-dropmarker {
-  min-width: 22px;
-  margin: 0px 3px 0px 5px;  
-}
-
-.favoritesManagerSearchbox-engine-image {
-  width: 16px;
-  height: 16px;
-  list-style-image: url("chrome://browser/skin/Search-bar.png");
-}
-
-
-treechildren::-moz-tree-image(Name) {
-	list-style-image: none;
-}
+/*treechildren::-moz-tree-cell(local) {*/
+/*    list-style-image: url(chrome://browser/skin/flock/common/close_inactive.png);*/
+/*}*/
 
 treechildren::-moz-tree-image(sharing, favorite, local-, private-false),
 treechildren::-moz-tree-image(sharing, favorite, local-, private-),
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/favorites/skin/classic/historyIcon16.png
Binary file mozilla/browser/components/flock/favorites/skin/classic/historyIcon16.png has changed
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/favorites/skin/classic/libraryIcon16.png
Binary file mozilla/browser/components/flock/favorites/skin/classic/libraryIcon16.png has changed
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/feed/content/feed.js
--- a/mozilla/browser/components/flock/feed/content/feed.js	Thu Jan 12 18:09:08 2006 +0100
+++ b/mozilla/browser/components/flock/feed/content/feed.js	Wed Jan 11 23:09:20 2006 -0800
@@ -1,25 +1,18 @@
 // vim: foldmethod=marker
 
-flock.feed = {/*{{{*/
+flock.feed = {
     // para todo mal
     // mezcal
     // y para todo bien
     // tambien
-};/*}}}*/
+};
 
 
-flock.feed.__defineGetter__('service', function () {/*{{{*/
+flock.feed.__defineGetter__('service', function () {
     if (flock.feed._service) return flock.feed._service;
     flock.feed._service = flock.xpcom.getService(
         '@flock.com/feed-service;1',
         'flockIFeedService'
     );
     return flock.feed._service;
-});/*}}}*/
-
-flock.feed.refreshFeeds = function (aFeeds) {/*{{{*/
-    aFeeds.forEach(function (aVal) {
-        XXX('REFRESHING FEED', aVal);
-        flock.feed.service.refreshFeed(aVal);   
-    });
-}/*}}}*/
+});
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/feed/content/scripts/toggle.js
--- a/mozilla/browser/components/flock/feed/content/scripts/toggle.js	Thu Jan 12 18:09:08 2006 +0100
+++ b/mozilla/browser/components/flock/feed/content/scripts/toggle.js	Wed Jan 11 23:09:20 2006 -0800
@@ -64,7 +64,3 @@
     }
   }      
 }
-
-function headlinesOnly(show) {
-  toggleByClassName('content', show);
-}
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/feed/content/templates/agg_by_date.html
--- a/mozilla/browser/components/flock/feed/content/templates/agg_by_date.html	Thu Jan 12 18:09:08 2006 +0100
+++ b/mozilla/browser/components/flock/feed/content/templates/agg_by_date.html	Wed Jan 11 23:09:20 2006 -0800
@@ -25,8 +25,6 @@
 
   <div class="tool-links unread-all">
     <ul>
-      <li><input type="checkbox" onclick="headlinesOnly(this.checked)" />
-      headlines only</li>
       <li><a href="javascript:void(0)" onclick="toggleByClassName('post-read',true)" class="toggle-unread">unread</a></li>
       <li><a href="javascript:void(0)" onclick="toggleByClassName('post-read',false)" class="toggle-all">all</a></li>
     </ul>
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/feed/content/templates/agg_by_feed.html
--- a/mozilla/browser/components/flock/feed/content/templates/agg_by_feed.html	Thu Jan 12 18:09:08 2006 +0100
+++ b/mozilla/browser/components/flock/feed/content/templates/agg_by_feed.html	Wed Jan 11 23:09:20 2006 -0800
@@ -25,8 +25,6 @@
 
   <div class="tool-links expand-collapse">
     <ul>
-      <li><input type="checkbox" onclick="headlinesOnly(this.checked)" />
-      headlines only</li>
       <li><a href="javascript:void(0)" onclick="toggleByClassName('content',true)" class="collapse-all">Collapse all</a></li>
       <li><a href="javascript:void(0)" onclick="toggleByClassName('content',false)" class="expand-all">Expand all</a></li>
     </ul>
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/topbar/content/topbarOverlay.xul
--- a/mozilla/browser/components/flock/topbar/content/topbarOverlay.xul	Thu Jan 12 18:09:08 2006 +0100
+++ b/mozilla/browser/components/flock/topbar/content/topbarOverlay.xul	Wed Jan 11 23:09:20 2006 -0800
@@ -105,29 +105,27 @@
 
     <!-- Add the hbox for the topbar -->
     <window id="main-window">
-        <toolbox id="navigator-toolbox">
-            <toolbar insertafter="PersonalToolbar" class="chromeclass-directories">
-                <favoritesMenulist id="flock_TopbarMenulist" 
-                    class="flock_favoritesToolbarSelectorMenulist"
-                    onmousedown="flock_TopbarCreateMenulist();">
-                    <!-- This popup is auto-generated - to extend use the above broadcaster -->
-                    <menupopup id="flock_TopbarMenuPopup">
-                        <menuitem label="         "/>
-                    </menupopup>
-                </favoritesMenulist>
-                <!-- This area is used for extensibility in topbar UI.  State the id of your ui in flock_TopbarBroadcasterset:extID -->
-                <hbox id="flock_TopbarUIExtensionArea" flex="1">
-                        <toolbar id="flock_TopbarFavoritesToolbarExt"
-                            style="-moz-binding: url(chrome://browser/content/flock/favorites/favoritesToolbar.xml#favoritesToolbar);"
-                            class="chromeclass-directories"
-                            flex="1"
-                            toolbarname="toolbar">
-                        </toolbar>
-                </hbox>
-            </toolbar>
-            <toolbar id="flock_TopbarBrowserContainer" hidden="true" height="120" insertbefore="browser" flex="0" class="chromeclass-directories">
-                <browser id="flock_TopbarBrowser" insertbefore="browser" flex="1" autoscroll="false" style="overflow: -moz-scrollbars-horizontal;" disablesecurity="true"/>
-            </toolbar>   
-        </toolbox>
+        <hbox insertbefore="browser" class="chromeclass-directories">
+            <favoritesMenulist id="flock_TopbarMenulist" 
+                class="flock_favoritesToolbarSelectorMenulist"
+                onmousedown="flock_TopbarCreateMenulist();">
+                <!-- This popup is auto-generated - to extend use the above broadcaster -->
+                <menupopup id="flock_TopbarMenuPopup">
+                    <menuitem label="         "/>
+                </menupopup>
+            </favoritesMenulist>
+            <!-- This area is used for extensibility in topbar UI.  State the id of your ui in flock_TopbarBroadcasterset:extID -->
+            <hbox id="flock_TopbarUIExtensionArea" flex="1">
+                    <toolbar id="flock_TopbarFavoritesToolbarExt"
+                        style="-moz-binding: url(chrome://browser/content/flock/favorites/favoritesToolbar.xml#favoritesToolbar);"
+                        class="chromeclass-directories"
+                        flex="1"
+                        toolbarname="toolbar">
+                    </toolbar>
+            </hbox>
+        </hbox>
+        <hbox id="flock_TopbarBrowserContainer" hidden="true" height="120" insertbefore="browser" flex="0" class="chromeclass-directories">
+            <browser id="flock_TopbarBrowser" insertbefore="browser" flex="1" autoscroll="false" style="overflow: -moz-scrollbars-horizontal;" disablesecurity="true"/>
+        </hbox>   
     </window>
 </overlay>
diff -r 89408208d1d0 -r 9222643acf89 mozilla/browser/components/flock/common/skin/classic/plus.png
Binary file mozilla/browser/components/flock/common/skin/classic/plus.png has changed

