
// Include libraries on the page if they don't exist
if ((typeof Prototype == "undefined") || (typeof Element == "undefined") || (typeof Element.Methods == "undefined")) {
	document.write('<script type="text/javascript" src="/includes/prototype2/prototype.js"><\/script>');
}

if (typeof QT_WriteOBJECT == "undefined") {
	document.write('<script type="text/javascript" src="/includes/prototype2/AC_QuickTime.js"><\/script>');
}

if (typeof flowplayer == "undefined") {
	document.write('<script type="text/javascript" src="/includes/videoplayers/flowplayer/flowplayer.js"><\/script>');
	document.write('<script type="text/javascript" src="/includes/videoplayers/flowplayer/flowplayer.ipad.js"><\/script>');
}

if (typeof swfobject == "undefined") {
	document.write('<script type="text/javascript" src="/includes/flashdetect2/swfobject.js"><\/script>');
}

// Now call the Gallery Viewer Script
if (typeof GalleryViewer == "undefined") {
	document.write('<script type="text/javascript" src="/includes/galleryviewer/gallery.js"><\/script>');
}
