﻿function renderProjectSlideshow(xmlFilePath, slideShowSWFPath, expressInstallSWFPath, flashContentID, width, height) {
	var flashvars = {
		initialURL: escape(document.location),
		xmlFilePath: xmlFilePath,
		permalinks: "Off",
		contentScale: "Proportional",
		captionAppearance: "Inline",
		captionHeaderText: "{imageNumber} of {imageCount}",
		captionHeaderPadding: "2,2,2,2",
		captionPadding: "2,2,2,2",
		contentFramePadding: "10",
		albumPreviewStyle: "Inline Left",
		albumPreviewSize: "96,96",
		albumTitleSize: "14"
	}
	var params = {
		base: ".",
		quality: "best",
		bgcolor: "#121212",
		wmode: "transparent",
		allowfullscreen: "true"
	}
	var attributes = {}
	swfobject.embedSWF(slideShowSWFPath, flashContentID, width, height, "9.0.0", expressInstallSWFPath, flashvars, params, attributes);
}

function renderGallerySlideshow(xmlFilePath, slideShowSWFPath, expressInstallSWFPath, flashContentID, width, height) {
	var flashvars = {
		initialURL: escape(document.location),
		xmlFilePath: xmlFilePath,
		contentScale: "Proportional",
		captionAppearance: "Inline",
		captionHeaderText: "{imageNumber} of {imageCount}",
		captionHeaderPadding: "2,2,2,2",
		captionPadding: "2,2,2,2",
		contentFramePadding: "10",
		albumPreviewStyle: "Inline Left",
		albumPreviewSize: "96,96",
		albumTitleSize: "14",
		startup: "Open Gallery"
	}
	var params = {
		base: ".",
		quality: "best",
		bgcolor: "#121212",
		wmode: "transparent",
		allowfullscreen: "true"
	}
	var attributes = {}
	swfobject.embedSWF(slideShowSWFPath, flashContentID, width, height, "9.0.0", expressInstallSWFPath, flashvars, params, attributes);
}

function renderPreviewSlideshow(xmlFilePath, slideShowSWFPath, expressInstallSWFPath, flashContentID, width, height) {
	var flashvars = {
		initialURL: escape(document.location),
		xmlFilePath: xmlFilePath,
		permalinks: "Off",
		contentScale: "Proportional",
		captionAppearance: "Hidden",
		navAppearance: "Hidden"
	}
	var params = {
		base: ".",
		quality: "best",
		bgcolor: "#121212",
		wmode: "transparent",
		allowfullscreen: "true"
	}
	var attributes = {}
	swfobject.embedSWF(slideShowSWFPath, flashContentID, width, height, "9.0.0", expressInstallSWFPath, flashvars, params, attributes);
}
