﻿function showPictureStack(theObject, theSize) {

    var theLayer = document.getElementById(theObject);
    if (theSize) {
        theLayer.style.top = "0px";
        theLayer.style.left = "0px";
        //theLayer.style.textalign = "center";
        theLayer.style.padding = "3px";
        theLayer.style.border = "1px solid #CCCCCC";
        MM_effectAppearFade_Stack(theLayer, 500, 0, 100, false);
    } else {
        MM_effectAppearFade_Stack(theLayer, 500, 100, 0, false);
        setTimeout(function() { delayedStackMove(theObject) }, 500);
    }
}
function delayedStackMove(theObject) {
    var theLayer = document.getElementById(theObject);
    theLayer.style.top = "-1000px";
}
function MM_effectAppearFade_Stack(targetElement, duration, from, to, toggle) {
    Spry.Effect.DoFade(targetElement, { duration: duration, from: from, to: to, toggle: toggle });
}

