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/573837-archaeological-destinations-borobudur-indonesia\"><em>1<\/em> of 2<\/a>\n\n      <p class=\"heliumTitle\">\n        <a href=\"http://www.helium.com/knowledge/87114-archaeological-destinations-borobudur-indonesia\">Archaeological destinations: Borobudur, Indonesia<\/a>\n      <\/p>\n        \n      <p class=\"heliumByline\">by <a href=\"http://www.helium.com/users/155786\">Laksmi Hadi<\/a><\/p>\n    \n      <div class=\"heliumBodyText\"><p>Borobudur is an ancient Buddhist Temple that was built between 7th-8th Century and was discovered on the 18th century.<\/p><p>Located in Central Java,Indonesia at the north east of Jogjakarta, close to Magelang.Surrounded by many mountain Dieng and Tidar.<br/>Borobudur is one of the greatest monument in the world and had once was the center of Buddhism spiritual in Java.Its whole form is like a lotus,known as a sacred flower of Buddha.The monument has ten levels,which representing the 10 levels of awakening<\/p> ... \n        <a class=\"heliumBodyTextLink\" href=\"http://www.helium.com/items/573837-archaeological-destinations-borobudur-indonesia\">read more<\/a>\n      <\/div>\n      \n    \n    <p class=\"heliumWriteNow\"><a href=\"http://www.helium.com/items/write_now_remote?category_id=87114\">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_widget2745');



