try{ if (mod_sandclock_image){} } catch(e){ mod_sandclock_image = "../img/sandclock.gif"; } var mod_sandclock_img = new Image(); mod_sandclock_img.src = mod_sandclock_image; mb_registerSubFunctions("mod_sandclock(true,myMapId)"); function mod_sandclock(start,myMapId){ var ind = getMapObjIndexByName(mod_sandclock_target); if(start){ var temp = ""; writeTag(mod_sandclock_target, "sandclock", temp); mb_arrangeElement(mod_sandclock_target, "sandclock", (mb_mapObj[ind].width/2 - 16), (mb_mapObj[ind].height/2 - 16)); } // // if myMapId is nopt given, the sandclock has to be turned off manually // by calling mod_sandclock_off. Usually this is done in a callback // function. // if (typeof myMapId !== "undefined") { aktiv = setTimeout("mod_sandclock('','"+myMapId+"')",100); if(window.frames[mod_sandclock_target].document.getElementById(myMapId) && window.frames[mod_sandclock_target].document.getElementById(myMapId).complete){ clearTimeout(aktiv); mod_sandclock_off(); } } } function mod_sandclock_off() { writeTag(mod_sandclock_target, "sandclock", ""); }