s = new sack();

function aframe_clean(id) {
  document.getElementById(id).innerHTML="<span style='position:relative;top:200px;left:100px;'>Loading...</span>";
}

function aframe_fill(id) {
  document.getElementById(id).innerHTML=s.response;
}

function aframe_load(id,url) {

  //aframe_clean(id);
  s.requestFile=url;
  s.onCompletion=function() {
    aframe_fill(id);
//    if (initLightbox)
//      initLightbox();
//    alert('x');
    eval("try {"+id+"_onload();} catch(err) {}");
  };

  s.runAJAX();
//  document.getElementById(id).innerHTML='&nbsp;';

}
