/*======================================================================
 *  Exhibit.Logo
 *======================================================================
 */
Exhibit.Logo = function(elmt, exhibit) {
    this._exhibit = exhibit;
    this._elmt = elmt;
    this._color = "Silver";
}

Exhibit.Logo.create = function(configuration, elmt, exhibit) {
    var logo = new Exhibit.Logo(elmt, exhibit);
    
    if ("color" in configuration) {
        this._color = configuration.color;
    }
    
    Logo._initializeUI();
    return logo;
};

Exhibit.Logo.createFromDOM = function(elmt, exhibit) {
    var logo = new Exhibit.Logo(elmt, exhibit);
    
    var color = Exhibit.getAttribute(elmt, "color");
    if (color != null && color.length > 0) {
        logo._color = color;
    }
    
    logo._initializeUI();
    return logo;
};

Exhibit.Logo.prototype.dispose = function() {
    this._elmt = null;
    this._exhibit = null;
};

Exhibit.Logo.prototype._initializeUI = function() {
    var logoURL = "http://static.simile.mit.edu/graphics/logos/exhibit/exhibit-small-" + this._color + ".png";
    var img = SimileAjax.Graphics.createTranslucentImage(document, logoURL);
    
    var a = document.createElement("a");
    a.href = "http://simile.mit.edu/exhibit/";
    a.title = "http://simile.mit.edu/exhibit/";
    a.target = "_blank";
    a.appendChild(img);
    
    this._elmt.appendChild(a);
};

@@ -1169,24 +1169,121 @@
 goURL);%0A    
+var id = %22exhibit-logo-image%22;%0A    if (!document.getElementById(id)) %7B%0A        img.id = id;%0A    %7D
 %0A    var a =

Add the id exhibit-logo-image to the logo image, if free. Sort of makes my logo colorifier at http://svn.devjavu.com/ecmanaut/trunk/tools/exhibit/logo-selector.js work again.