function toggleComment(postId) {
	// resize comment box
	new Fx.Reveal($("comment-container-" + postId)).toggle();
	return false;
}

function toggleResponseForm(postId) {
	// resize leave response form
	new Fx.Reveal($("response-form-container-" + postId)).toggle();
	return false;
}

function showSlideshow(slideshowId) {

  var imagesXml = "";
    
  switch(slideshowId) {
    case "weddings": 
      imagesXml = "/slideshow/images.xml";
      break;
  }

  SlideShowPro({
    attributes: {
      id: "portfolio-slideshow",
      expandBrowserWindow: "false",
      width: "810.00",
      height: "539.00",
      src: "/slideshow/slideshowpro.swf"
    },
    mobile: {
      auto:false
    },
    params: {
      base: ".",
      bgColor: "#000000",
      allowfullscreen: "true"
    },
    flashvars: {
      xmlFileType: "Default",
      xmlFilePath: encodeURIComponent(imagesXml),
      paramXMLPath: "/slideshow/param.xml"
    }
  });
}

showSlideshow('weddings')

