﻿function spankIE() {
	if (jQuery.browser.msie && parseInt(jQuery.browser.version)<8) jQuery('#RegionContent,#PageBottom,#ImageSlideshow').css({ "zoom": "1" }).css({ "zoom": "100%" });
}

function hideSlideshow() {
	jQuery('#ImageSlideshow .controls .stopButton').click();
	jQuery('#ImageSlideshow .controls').hide();
	
	jQuery('#PageContent .Slideshow').slideUp(spankIE);
}

function showSlideshow() {
	jQuery("#PageContent .Slideshow").hide();
	jQuery("#PageContent .Slideshow").css({ "position": "static" });

	jQuery('#PageContent .Slideshow').slideDown(spankIE);
	
	jQuery('#ImageSlideshow .controls').show(400);
	jQuery("#PageContent #ImageSlideshow").css({ "position": "relative" });
	jQuery("#PageContent #ImageSlideshow").css({ "top": "0" });
}


