jQuery(document).ready(function() {
    //this noConflict command is needed to resolve the conflict between jQuery and Mootools
    //on pages where the Lightbox.js is present
jQuery.noConflict();
	//create the div dynamically
    var newDiv = document.createElement('div');
    var divIdName = "aDiv";
    newDiv.setAttribute('id', divIdName);
    document.body.appendChild(newDiv);
});

function callPage(lightBoxContent) {

    //replaced $ with jQuery to avoid a conflict between jQuery and Mootools on Dongenergy pages
    jQuery("#aDiv").load("http://" + window.location.host + "/data/Lightbox/Documents/" + lightBoxContent);
    jQuery("#aDiv").dialog('open');
    jQuery(function() {
        jQuery("#aDiv").dialog({
            bgiframe: true,
            modal: true
        });
    });
}
