ImageViewer = Class.create({
	initialize: function (basePath)
	{
		this.requiredMajorVersion = 9;
		this.requiredMinorVersion = 0;
		this.requiredRevision = 28;
		this.basePath = basePath;
	},
	create: function(container)
	{
		var ivStr = null;
		if(container != undefined)
		{
			if(DetectFlashVer(this.requiredMajorVersion, this.requiredMinorVersion, this.requiredRevision))
			{
				ivStr = AC_FL_RunContent(
					"src", this.basePath + "SlideShowViewer",
					"width", "525px",
					"height", "397px",
					"align", "top",
					"id", "SlideShowViewer",
					"quality", "high",
					"bgcolor", "#869ca7",
					"name", "SlideShowViewer",
					"allowScriptAccess","sameDomain",
					"allowFullScreen","true",
					"type", "application/x-shockwave-flash",
					"pluginspage", "http://www.adobe.com/go/getflashplayer"
				);
			}
			else
			{
				if(DetectFlashVer(6, 0, 65))
				{

				}else{

				}
			}
		}
		if(ivStr != null)
			$(container).innerHTML = ivStr;
	},
	loadXML:function(xml){
		$('SlideShowViewer').loadXML(xml);
	},
	loadXMLFile:function(path){
		$('SlideShowViewer').loadXMLFile(path);
	}
});
