/**
 * Site-wide Shadowbox initialization script.  Initializes Shadowbox
 * itself, as well as setting up any additional objects or functions
 * related to Shadowbox as it exists on the site, so that they may be
 * used in the content body.
 * 
 * @version $Id: shadowbox-init.js 3002 2010-05-14 19:51:09Z wedig $
 */


// basic Shadowbox initialization
Shadowbox.init({
	language: 'en',
	players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']
});


// Shadowbox contains a slightly-customized version of SWFObject - 
// unfortunately, this version causes errors to be thrown in IE if we
// attempt to load swfobject.js *after* loading Shadowbox.  Instead,
// we can make use of the Shadowbox-internal version, and thus avoid 
// loading swfobject.js at all!
swfobject = Shadowbox.flash;


// in order to make image maps easier to flag, look for <map> tags that
// have the shadowbox class applied
var mapAreas = $$('map.shadowbox area');
if (mapAreas.size() > 0) {
	Shadowbox.setup(mapAreas);
}
