
function setupImagesLightbox() {
	//alert('setupImagesLightbox');
	var lightbox = new YAHOO.com.thecodecentral.Lightbox(dataSource,{header:'Aguarde...'});
}


function setupImagesUnit() {
	//alert('setupImagesUnit');
	var loader = new YAHOO.util.YUILoader();
	loader.addModule({
		name: "lightboxcss", //module name; must be unique
		type: "css", //can be "js" or "css"
    fullpath: CHILLI.rooturl+"includes/js/lightbox/lightbox.css",
    varName: "LIGHTBOXCSS"
   });
	loader.addModule({
		name: "lightbox", //module name; must be unique
		type: "js", //can be "js" or "css"
    fullpath: CHILLI.rooturl+"includes/js/lightbox/Lightbox-min.js",
    varName: "LIGHTBOX",
    requires: ['lightboxcss','animation','dragdrop','container']
   });

	loader.require("lightbox"); //include the new  module
  loader.insert({
  	onSuccess: setupImagesLightbox
	});
}

