	// slideshowpro methods

	function nextImage() { 
	thisMovie("ssp").nextImage();

        if (thisMovie("ssp").getParameter("displayMode") =="Auto") 
	{
        document.getElementById("pp").firstChild.data="Pause";
	}
        else 
	{
        document.getElementById("pp").firstChild.data="Play";
	}
	}

	function previousImage() { 
	thisMovie("ssp").previousImage(); 

        if (thisMovie("ssp").getParameter("displayMode") =="Auto") 
	{
        document.getElementById("pp").firstChild.data="Pause";
	}
        else {
        document.getElementById("pp").firstChild.data="Play";
	}
	}


	function toggleDisplayMode() {
	thisMovie("ssp").toggleDisplayMode(null); 
	}

	function getParameter(param) {
		// You can use this to return the value of any parameter SlideShowPro uses
		// See complete list here: http://wiki.slideshowpro.net/SSPfl/API-ParameterList 
		var s = thisMovie("ssp").getParameter(param);
	}

	// swf finder
	function thisMovie(movieName) {
		if (navigator.appName.indexOf("Microsoft") != -1) {
			return window[movieName]
		} else {
		    return document[movieName]
		}
	}

        function onSlideShowProReady() {
             var ssp = document.getElementById("ssp");
             ssp.addEventListener("displayMode","onDisplayMode");
        }


        function onDisplayMode(o) {
	var s=thisMovie("ssp").getParameter("displayMode");

        if (s=="Auto") 
	{
        document.getElementById("pp").firstChild.data="Pause";
	}
        else {
        document.getElementById("pp").firstChild.data="Play";
	}

        }

	// SWFObject embed
	var flashvars = {
		paramXMLPath: "param.xml",
		initialURL: escape(document.location),
		useExternalInterface: "true"
	}
	var params = { 
		base: ".",
		bgcolor: "#121212",
		allowfullscreen: "true"
	}                
	var attributes = {
		id: "ssp"
	}
	swfobject.embedSWF("slideshowpro.swf", "flashcontent", "800", "534", "9.0.115.0", false, flashvars, params, attributes);
	
