/**
 * PhotoGallery object to handle all interaction with this goody
 * 
 * @author Deric Hicks
 * @copyright (c) IntellySite, LLC. 2008-09
 * @version 1.0
 */
var PhotoGallery = {
	/**
	 * Shows a specific photo gallery instance
	 * 
	 * @param string instance The name of the photo gallery instance DIV to show
	 * @param string settings The relative path to the settings file on the server
	 */
	Show: function(instance, settings) {
		// Set the innerHTML of the element to this particular object so we don't have to get that annoying 'click to run' message
		document.getElementById(instance).innerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">' +
			'<param name="movie" value="' + IntellySite.BaseURL + '/goodies/PhotoGallery/gallery.swf" />' +
			'<param name="quality" value="high" />' +
			'<param name="wmode" value="transparent" />' +
			'<param name="flashvars" value="DataPath=' + settings + '" />' +
			'<embed wmode="transparent" src="' + IntellySite.BaseURL + '/goodies/PhotoGallery/gallery.swf?DataPath=' + settings + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%"></embed>' +
		'</object>';
	}
}

