// JavaScript Document
var currentAlbum = "Dana";

 $(document).ready(function(){
   $(".albumThumbnailContainer").click(function(event){
	$("#albumThumbnail" + currentAlbum).removeClass("selected");
	currentAlbum = ($(this).attr("id").substr("albumThumbnail".length));
	$(this).addClass("selected");
	getMovie("slideshow").loadAlbum(currentAlbum, 0);
	//$("#triptychImagesContainer").animate({ left: newLeft}, 500 );
   });
 });



function getMovie(movieName) {
	/*if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName]
	} else {
	    return document[movieName]
	}*/
	return document.getElementById(movieName);
}

function flashPutHref(href) { location.href = href; }

// SWFObject embed
var flashvars = {
	paramXMLPath: "imagesparam.xml",
	initialURL: escape(document.location),
	useExternalInterface: "true"
};
var params = { 
	base: ".",
	bgcolor: "#121212",
	allowfullscreen: "true"
};                
var attributes = {
	id: "slideshow"
};
swfobject.embedSWF("slideshowpro.swf", "slideshow", "750", "530", "9.0.0", false, flashvars, params, attributes);