/* blog.js */


function writeBadgesForLinkTitleAndExcerpt(link, title, excerpt)
{
   link = escape(link);
   title = escape(title);
   excerpt = escape(excerpt);

   var badgesText = 
"                <div id=\"badges\">" + "\n" + 
"                  <a href=\"http://del.icio.us/post?url=" + link + "&title=" + title + "\" title=\"add this article to your Del.icio.us bookmarks\" alt=\"Del.icio.us bookmark link\"><img src=\"/images/delicious.small.gif\" width=\"16\" height=\"16\"></a>" + "\n" + 
"                  <a href=\"http://digg.com/submit?phase=2&url=" + link + "&title=" + title + "&bodytext=" + excerpt + "&topic=apple\">" + "\n" + 
"                    <img src=\"http://digg.com/img/badges/16x16-digg-thumb.gif\" width=\"16\" height=\"16\" alt=\"link to Digg this article\" title=\"Digg this article\" alt=\"Del.icio.us bookmark link\" />" + "\n" + 
"                  </a>" + "\n" + 
"                </div>";

   document.writeln(badgesText);
}