/*
 * jQuery - Custom Multilanguage
 * Version: 0.1, 24-09-2011
 * By     : Rob van Meeuwen, http://www.vanmeeuwen-online.nl/
 * Copyright (c) 2011 Rob van Meeuwen
 *
 */
GetSSPGallery = function (galleryId) {
   var sspGallery = SlideShowPro({
        attributes: {
            id: "placeholder",
            width: "901",
            height: "511"
        },
        mobile: {
            auto: false,
            poster: "crystal"
        },
        params: {
            allowfullscreen: true,
            wmode: "transparent"            
        },
        flashvars: {
            xmlFilePath: "http://robje.slideshowpro.com/images.php?gallery="+galleryId,
            navAppearance: "Visible on Rollover",
            startup: "Open Gallery",
            transitionStyle: "Cross Fade",            
            albumBackgroundAlpha: 0,
            contentFrameAlpha: 0,
            contentAreaBackgroundAlpha: 0,
            galleryBackgroundAlpha: 0,
            albumTitleColor: "0x000000",
            albumTitleSize: 12,
            albumDescColor: "0x000000",
            albumPreviewScale: "Crop to Fit",
            albumPreviewSize: "250,160",
            albumPreviewStyle: "Banner",
            albumStrokeAppearance: "Hidden",           
            galleryColumns: 2,
            galleryRows: 2,
            galleryPadding: 0,
            contentAreaStrokeAppearance: "Hidden",
            galleryAppearance: "Visible without Navigation",
            navBackgroundAlpha: 0,
            navGradientAppearance: "Hidden",
            navLinksBackgroundAlpha: 0        }     
    });
};

function MenuItemSelected (option) {

	if(option == 'landscapes'){
		//var galleryId = '61313';
		GetSSPGallery("61313");
	}
	else if(option == 'buildings') {
		GetSSPGallery("44774");
	}
	else if (option == 'florafauna') {
		GetSSPGallery("61955");
	}
	else {
		alert('Sorry, I am working on it. Try again later or follow me on my blog.');
	}
	
}
