function init(pos) {
   document.getElementById("dynadate").innerHTML = jsdate();
   document.getElementById("menu").innerHTML = buildmenu(pos);
   document.getElementById("topbar").innerHTML = topbar();
   document.getElementById("footer").innerHTML = footer();
}

function jsdate() {
   var now = new Date(); 
   var month = ((now.getMonth()+1<10) ? "0" : "") + (now.getMonth()+1);
   var date = ((now.getDate()<10) ? "0" : "")+ now.getDate(); 
   var today = now.getFullYear() + "/" + month + "/" + date;

   return(today);
}
