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/1395820-out-of-the-fire\"><em>1<\/em> of 300<\/a>\n\n      <p class=\"heliumTitle\">\n        <a href=\"http://www.helium.com/knowledge/35055-poetry-moving-on\">Poetry: Moving on<\/a>\n      <\/p>\n        \n      <p class=\"heliumByline\">by <a href=\"http://www.helium.com/users/502100\">James Lyons<\/a><\/p>\n    \n      <div class=\"heliumBodyText\"><p>Title: Out of the Fire<\/p><br/><br/><br/><p>All that she wanted was someone to love her<\/p><p>It seemed fair to her and not too much to ask<\/p><p>With so much to give, though no halo above her<\/p><p>He said when they met he was up to the task.<\/p><br/><br/><br/><p>Her infant dreams were so delicate, precious<\/p><p>To trust and find freedom by giving herself<\/p><p>Now redefined both by name and by purpose<\/p><p>She gave everything, put her dreams on the shelf.<\/p><br/><br/><br/><p>He spoke with a strength and vulnerability<\/p><p>Feelings expressed let her view him within<\/p><p>He portrayed kindness and seeming<\/p> ... \n        <a class=\"heliumBodyTextLink\" href=\"http://www.helium.com/items/1395820-out-of-the-fire\">read more<\/a>\n      <\/div>\n      \n    \n    <p class=\"heliumWriteNow\"><a href=\"http://www.helium.com/items/write_now_remote?category_id=35055\">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_widget7111');




