function dhtmlLoadScript(url)
{
var e = document.createElement("script");
e.src = url;
e.type="text/javascript";
document.getElementsByTagName("head")[0].appendChild(e);
}
onload = function()
{
loadItems();
window.loadItemsInterval = setInterval(loadItems, 20);
}
window.loadingJquery = false;
window.loadingBlockUI = false;
loadItems = function()
{
//Load jQuery if it isn't already available
if(typeof(window.jQuery) != "function" && window.loadingJquery == false){
dhtmlLoadScript("http://tools.abngroup.com.au/js/jquery-1.2.6.js");
window.loadingJquery = true;
}
//Load blockUI if it isn't already available
if((typeof(window.jQuery) == "function" && typeof(window.jQuery.blockUI) != "function") && window.loadingBlockUI == false && window.loadingJquery == true){
dhtmlLoadScript("http://tools.abngroup.com.au/js/jquery.blockUI.js");
window.loadingBlockUI = true;
}
if(typeof(window.jQuery) == "function" && typeof(window.jQuery.blockUI) == "function" && typeof(docLibraryInitLoaded) == "undefined" ){
clearInterval(window.loadItemsInterval);
dhtmlLoadScript("http://tools.abngroup.com.au/js/doclibrary_init.js");
//We're only really loading this up at the moment so we have it in the cache
dhtmlLoadScript("http://tools.abngroup.com.au/js/iframeproxy.js");
}
if(window.Shadowbox && window.Shadowbox.init){
Shadowbox.init();
}
}