// Generate random number for cache busting OAS_rn = new String(Math.random()); OAS_rns = OAS_rn.substring(2, 11); // Function to find the object in the DOM model function getObj(name) { if (document.getElementById) this.obj = document.getElementById(name); else if (document.all) this.obj = document.all[name]; else if (document.layers) this.obj = document.layers[name]; if (this.obj) this.style = this.obj.style; } // Add a body load function, not overridding existing ones function addLoad(func) { if (window.addEventListener) window.addEventListener('load', func, false); else if (document.addEventListener) document.addEventListener('load', func, false); else if (window.attachEvent) window.attachEvent('onload', func); else if (typeof window.onload != 'function') window.onload = func; else { var oldonload = window.onload; window.onload = function() { oldonload(); func(); }; } } // onLoad function that move objects in the DOM and make them visible function OAS_AMJX_init() { var apos = OAS_listpos.split(','); var olddocwrite = document.write; for (var i = 0; i < apos.length; i++) { var object_togo = new getObj('OAS_' + apos[i]); var object_tomove = new getObj('Hidden_OAS_' + apos[i]); html = ""; if (typeof (object_togo.obj) != 'undefined' && typeof (object_tomove.obj) != 'undefined') { object_togo.obj.appendChild(object_tomove.obj); object_tomove.style.display = 'inline'; } } } // write the MJX call document.write('