function write_to_dom(cover, div_id){
  cover.id = div_id;
  target = document.getElementById(div_id).parentNode;
  child = target.firstChild
  do{
    next = child.nextSibling
    if(child.nodeName != 'STYLE'){
      target.removeChild(child);
    }
    child = next
  }while(child)
  target.appendChild(cover);
  target.style.display = '';
}


var html;
var cover;
  html = "<div class=\"heliumTopArticle heliumWidget heliumPublic\">\n  <div class=\"heliumTopArticleMain\">\n    <p class=\"heliumLead\">Submit your own article on...<\/p>\n    \n        <a class=\"heliumRankIcon\" href=\"http://www.helium.com/items/890172-how-to-cook-scallops\"><em>1<\/em> of 5<\/a>\n\n      <p class=\"heliumTitle\">\n        <a href=\"http://www.helium.com/knowledge/90484-how-to-cook-scallops\">How to cook scallops<\/a>\n      <\/p>\n        \n      <p class=\"heliumByline\">by <a href=\"http://www.helium.com/users/125104\">Gordon Hamilton<\/a><\/p>\n    \n      <div class=\"heliumBodyText\"><p>When cooking scallops - as with any form of shellfish - there are two inherent dangers. Firstly, and most importantly, we must make sure that they are fresh and have not \"turned.\" Eating shellfish which has gone bad can make us very seriously ill or worse. Fresh seafood should smell faintly of the sea, not of what we would associate as fish. Buying from a reputable supplier and eating the scallops on the same day as purchase is probably the best way in which to tackle this potential problem.<\/p><p>The<\/p> ... \n        <a class=\"heliumBodyTextLink\" href=\"http://www.helium.com/items/890172-how-to-cook-scallops\">read more<\/a>\n      <\/div>\n      \n    \n    <p class=\"heliumWriteNow\"><a href=\"http://www.helium.com/items/write_now_remote?category_id=90484\">Write now!<\/a><\/p>\n    \n    <p class=\"heliumClose\">You are a few easy steps away from getting published.  Click on the link above to join Helium and get started.<\/p>\n  <\/div>\n  \n  <div class=\"heliumTopArticleFooter heliumKnowledge\">    \n    <a class=\"heliumPoweredBy\" href=\"http://www.helium.com\">Powered by Helium.com<\/a>\n  <\/div>\n<\/div>\n";
  cover = document.createElement("div");
  cover.innerHTML = html;
  write_to_dom(cover, 'helium_widget9701');




