
function CreateBookmarkLink() 
{
    title = "Webpage Title";
    url = "Webpage URL";
    var brand = "ProFlowers";
    var brandURL = brandURL = "http://www.proflowers.com";

    var loc = location.hostname;

    if (loc.toUpperCase().match("BERRIES") != null) {
        brand = "Sharis Berries";
        brandURL = "http://www.berries.com"
    }
    else if (loc.toUpperCase().match("CHERRYMOONFARMS") != null) {
        brand = "Cherry Moon Farms";
        brandURL = "http://www.cherrymoonfarms.com"
    }

    else if (loc.toUpperCase().match("PERSONALCREATIONS") != null) {
        brand = "Personal Creations";
        brandURL = "http://www.personalcreations.com"
    }
    else if (loc.toUpperCase().match("REDENVELOPE") != null) {
        brand = "RedEnvelope";
        brandURL = "http://www.redenvelope.com"
    }


    if (window.sidebar) 
    { // Mozilla Firefox Bookmark
            window.sidebar.addPanel(brand, brandURL, "");
 	} 
    else if (window.external) 
    { // IE Favorite

            window.external.AddFavorite(brandURL, brand);
    }
}


/*******************************************************************************************
added below function for PLA. not a good way of doing it because we are duplicating the same code from above. 
we need to add some javascript to parse the cobrand from the url and then reuse the above function
***************************************************************************/
function CreateBookmarkLinkPLA() 
{
    title = "Webpage Title";
    url = "Webpage URL";

    if (window.sidebar) 
    { // Mozilla Firefox Bookmark        
            window.sidebar.addPanel("Proplants", "http://www.proplants.com", "");
    }
    else if (window.external)  // IE Favorite
    {
        window.external.AddFavorite("http://www.proplants.com", "Proplants");
    }

}


