slideShowURL = 'SlideShow_assets/SlideShow.html';       // parameter from openSlideShowWindow.js
slideShowNS4URL = 'SlideShow_assets/SlideShowNS4.html'; // parameter from openSlideShowWindow.js

slides = new Array();
slides[0] = new Slide('../COLLAGE_files/DSC00123.jpg', '600', '800', 'Our Japanese translator and Kathy Ward before the presentation');
slides[1] = new Slide('../COLLAGE_files/DSC00126.jpg', '600', '800', 'Students from Japan attending the program');
slides[2] = new Slide('../COLLAGE_files/DSC00129.jpg', '600', '800', 'Overview of Dementia and Alzheimer’s');
slides[3] = new Slide('../COLLAGE_files/DSC00130.jpg', '600', '800', 'Discussing the impact of Alzheimer’s disease on society and family members');
slides[4] = new Slide('../COLLAGE_files/DSC00141.jpg', '600', '800', 'Describing behavioral and cognitive symptoms of Dementia');
slides[5] = new Slide('../COLLAGE_files/DSC00142.jpg', '600', '800', 'Describing effective treatment approaches for symptom management');
slides[6] = new Slide('../COLLAGE_files/DSC00143.jpg', '600', '800', 'Problem-solving methods delivering care and safety issues');
slides[7] = new Slide('../COLLAGE_files/DSC00144.jpg', '600', '800', 'Common care issues at meal times, bathing and dressing');
slides[8] = new Slide('../COLLAGE_files/DSC00146.jpg', '600', '800', 'Poor judgement and memory loss');
slides[9] = new Slide('../COLLAGE_files/DSC00151.jpg', '600', '800', 'Symptoms of second stage of AD; wander, restlessness and safety');
slides[10] = new Slide('../COLLAGE_files/DSC00152.jpg', '600', '800', 'Environmental factors, over stimulation and better communication');
slides[11] = new Slide('../COLLAGE_files/DSC00156.jpg', '600', '800', 'Case Study #1: About wandering');
slides[12] = new Slide('../COLLAGE_files/DSC00160.jpg', '600', '800', 'Possible causes of meal time difficult behavior');
slides[13] = new Slide('../COLLAGE_files/DSC00167.jpg', '600', '800', 'Team care approach... IT TAKES A COMMUNITY TO BETTER A COMMUNITY');
slides[14] = new Slide('../COLLAGE_files/DSC00171.jpg', '646', '800', 'NEVER argue with a dementia patient.');
slides[15] = new Slide('../COLLAGE_files/DSC00174.jpg', '494', '800', 'Over stimulation may lead to progressive isolation of the patient');
slides[16] = new Slide('../COLLAGE_files/DSC00180.jpg', '800', '683', 'How to care for a better brain?  Let’s drink water... hydration is very important');
slides[17] = new Slide('../COLLAGE_files/DSC00182.jpg', '671', '800', 'How to better manage verbal and physical aggression');
slides[18] = new Slide('../COLLAGE_files/DSC00816.jpg', '800', '600', 'Involving family members in fun and meaningful activities');
slides[19] = new Slide('../COLLAGE_files/DSC00183.jpg', '600', '800', 'Depression, Delusions, Hallucinations and Mania');
slides[20] = new Slide('../COLLAGE_files/DSC00189.jpg', '600', '800', 'Do not rush the patient. Facilitate easy tasks... smile and have FUN ');
slides[21] = new Slide('../COLLAGE_files/DSC00191.jpg', '800', '468', 'Include family members in the care of the person with dementia');
slides[22] = new Slide('../COLLAGE_files/DSC00193.jpg', '800', '514', 'Cognition and the Mini Mental evaluation...');
slides[23] = new Slide('../COLLAGE_files/DSC00198.jpg', '743', '800', 'Role-play #2: How to approach a person with dementia');
slides[24] = new Slide('../COLLAGE_files/DSC00209.jpg', '600', '800', 'Role-play #3:  Using the Japanese game GO ');
slides[25] = new Slide('../COLLAGE_files/DSC00215.jpg', '600', '800', 'One of the participants is the caregiver, the other is a patient stage 2 Alzheimer’s');
slides[26] = new Slide('../COLLAGE_files/DSC01181.jpg', '600', '800', 'Structured programs at the pace of the elders that we are caring for');
slides[27] = new Slide('../COLLAGE_files/DSC00216.jpg', '683', '800', 'We asked the audience, what’s the purpose of the activity?');
slides[28] = new Slide('../COLLAGE_files/DSC00219.jpg', '652', '801', 'a student responded; the patient should not be expected to play GO right');
slides[29] = new Slide('../COLLAGE_files/DSC00217.jpg', '600', '800', 'the patient does not remember how to play. The caregiver should remain calm ');
slides[30] = new Slide('../COLLAGE_files/DSC00227.jpg', '800', '355', 'Our translator was instrumental in this program');
slides[31] = new Slide('../COLLAGE_files/DSC00232.jpg', '600', '800', 'the purpose of the activity is the mental stimulation, not to play GO right');
slides[32] = new Slide('../COLLAGE_files/DSC01022.jpg', '600', '800', 'Interesting, fun and meaningful activities are beneficial to rehabilitate the brain');
slides[33] = new Slide('../COLLAGE_files/DSC00234.jpg', '600', '800', 'The importance of a resident’s profile and other assessment tools');
slides[34] = new Slide('../COLLAGE_files/DSC01137.jpg', '600', '800', 'Facilitating creativity, joy, fun, stimulation and love');
slides[35] = new Slide('../COLLAGE_files/DSC00237.jpg', '600', '800', 'What to do if the elder does not participate or look at you?');
slides[36] = new Slide('../COLLAGE_files/DSC00238.jpg', '600', '800', 'How to engage the elder in daily activities?');
slides[37] = new Slide('../COLLAGE_files/HPIM9881.jpg', '594', '800', 'How the brain works?');
slides[38] = new Slide('../COLLAGE_files/DSC00243.jpg', '600', '800', 'Our objectives with each elder should be realistic and for the well-being of the elder ');
slides[39] = new Slide('../COLLAGE_files/DSC00244.jpg', '600', '800', 'Our interests may not be their interests and capacities');
slides[40] = new Slide('../COLLAGE_files/DSC00249.jpg', '600', '800', 'Brainstorm with the care team and family members for meaningful interventions');
slides[41] = new Slide('../COLLAGE_files/DSC00838.jpg', '600', '800', 'ask family members and the elders ... what do you like to do today?');
slides[42] = new Slide('../COLLAGE_files/DSC00250.jpg', '600', '800', 'How to manage aggressive behaviors?');
slides[43] = new Slide('../COLLAGE_files/IMG_0347.jpg', '600', '800', 'Facilitate physical, sensory, cognitive, spiritual, intellectual programs daily');
slides[44] = new Slide('../COLLAGE_files/DSC00254.jpg', '568', '800', 'Nurturing wellness and healing communities for our elders... modeling health');
slides[45] = new Slide('../COLLAGE_files/DSC00258.jpg', '800', '597', 'Listening to better provide health care services');
slides[46] = new Slide('../COLLAGE_files/DSC01512.jpg', '600', '800', 'What matter... the process of getting it done, rather than the final product');
slides[47] = new Slide('../COLLAGE_files/DSC00262.jpg', '600', '800', 'Document your ideas, team work, resident’s behavior, conversations with family...');
slides[48] = new Slide('../COLLAGE_files/DSC00265.jpg', '600', '800', 'Go and be the better change that you want to see in the world...');
slides[49] = new Slide('../COLLAGE_files/DSC00276.jpg', '600', '800', 'a group of students and faculty after our presentation');
slides[50] = new Slide('../COLLAGE_files/DSC00294.jpg', '800', '614', 'Thank you Dr. Polly McMahon for facilitating this program... ');
slides[51] = new Slide('../COLLAGE_files/DSC00306.jpg', '800', '685', 'Dr. Tom Patterson, Dean, International Programs SFCC');
slides[52] = new Slide('../COLLAGE_files/DSC00327.jpg', '575', '800', 'Hiroyoshi Koizumi, Chief International Programs at Osaka College and SFCC faculty');
slides[53] = new Slide('../COLLAGE_files/DSC00335.jpg', '600', '800', 'Dr. McMahon received a recognition form the Japanese students');
slides[54] = new Slide('../COLLAGE_files/DSC00339.jpg', '600', '800', 'Kathy Ward received a recognition from the Japanese students');
slides[55] = new Slide('../COLLAGE_files/DSC00349.jpg', '600', '800', 'A Japanese folk dance performed at the closing ceremony');
slides[56] = new Slide('../COLLAGE_files/DSC00354.jpg', '600', '800', 'everyone was invited to dance...');
slides[57] = new Slide('../COLLAGE_files/DSC00357.jpg', '600', '800', 'Most of the Japanese students would like to enjoy a peaceful world');
slides[58] = new Slide('../COLLAGE_files/DSC00368.jpg', '800', '631', 'A daily program agenda in Japanese');
slides[59] = new Slide('../COLLAGE_files/DSC00193_2.jpg', '800', '514', 'Thank you for inviting WEL to facilitate this meaningful program...');
slides[60] = new Slide('../COLLAGE_files/DSC01184_1.jpg', '288', '491', 'A beautiful art work made by an elder with Alzheimer’s and Kathy Ward');
isPureISOLatin1 = true;
contentEncodingConstant = 4;
feedbackURL = "TODO";
showFeedbackButton = false;
feedbackEnabled = true;

var MINIMUM_FONT = "10";
var UNITS = "";

function elementFontSize(element)
{
    var fontSize = MINIMUM_FONT; 

    if (document.defaultView)
    {
        var computedStyle = document.defaultView.getComputedStyle(element, null);
        if (computedStyle)
        {
            fontSize = computedStyle.getPropertyValue("font-size");
        }
    }
    else if (element.currentStyle)
    {
        fontSize = element.currentStyle.fontSize;
    }

    if ((UNITS.length == 0) && (fontSize != MINIMUM_FONT))
    {
        UNITS = fontSize.substring(fontSize.length - 2, fontSize.length)
    }

    return parseFloat(fontSize);
}

function adjustFontSizeIfTooBig(idOfElement)
{
    var oTextBoxOuterDiv;
    var oTextBoxMiddleDiv;
    var oTextBoxInnerDiv;
    var oTextBoxOuterDiv = document.getElementById(idOfElement);
    
    if (oTextBoxOuterDiv)
    {
        oTextBoxMiddleDiv = getChildOfType(oTextBoxOuterDiv, "DIV", 0);
        if (oTextBoxMiddleDiv)
        {
            oTextBoxInnerDiv = getChildOfType(oTextBoxMiddleDiv, "DIV", 0);
            if (oTextBoxInnerDiv)
            {
                var offsetHeight = oTextBoxInnerDiv.offsetHeight;
                var specifiedHeight = offsetHeight;
                if (oTextBoxMiddleDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxMiddleDiv.style.height);
                }
                else if (oTextBoxOuterDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxOuterDiv.style.height);
                }
                if (offsetHeight > specifiedHeight)
                {
                    var smallestFontSize = 200;
                    
                    var aParaChildren = getParaDescendants(oTextBoxInnerDiv);
                    var oneLine = false;
                    for (i = 0; i < aParaChildren.length; i++)
                    {
                        var oParagraphDiv = aParaChildren[i];
                        var lineHeight = elementLineHeight(oParagraphDiv);
                        oneLine = oneLine || (lineHeight * 1.5 >= specifiedHeight);
                        if (oParagraphDiv.nodeName == "DIV")
                        {
                            var fontSize = elementFontSize(oParagraphDiv);
                            smallestFontSize = Math.min( smallestFontSize, fontSize );
                            for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                            {
                                var oSpan = oParagraphDiv.childNodes[j];
                                if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                {
                                    fontSize = elementFontSize(oSpan);
                                    smallestFontSize = Math.min( smallestFontSize, fontSize );
                                }
                            }
                        }
                    }
                    var minimum = parseFloat(MINIMUM_FONT);
                    
                    var count = 0
                    while ((smallestFontSize > minimum) && (offsetHeight > specifiedHeight) && (count < 10))
                    {
                        ++ count;
                        if (oneLine)
                        {
                            var oldWidth = parseInt(oTextBoxOuterDiv.style.width);
                            oTextBoxInnerDiv.style.width =
                                "" + oldWidth * Math.pow(1.05, count) + "px";
                        }
                        else
                        {
                            var scale = Math.max(0.95, minimum / smallestFontSize);
                            
                            for (i = 0; i < aParaChildren.length; i++)
                            {
                                var oParagraphDiv = aParaChildren[i];
                                if (oParagraphDiv.nodeName == "DIV")
                                {
                                    var paraFontSize = elementFontSize(oParagraphDiv) * scale;
                                    var paraLineHeight = elementLineHeight(oParagraphDiv) * scale;
                                    for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                                    {
                                        var oSpan = oParagraphDiv.childNodes[j];
                                        if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                        {
                                            var spanFontSize = elementFontSize(oSpan) * scale;
                                            var spanLineHeight = elementLineHeight(oSpan) * scale;
                                            oSpan.style.fontSize = spanFontSize + UNITS;
                                            oSpan.style.lineHeight = spanLineHeight + UNITS;
                                            smallestFontSize = Math.min( smallestFontSize, spanFontSize );
                                        }
                                    }
                                    oParagraphDiv.style.fontSize = paraFontSize + UNITS;
                                    oParagraphDiv.style.lineHeight = paraLineHeight + UNITS;
                                    smallestFontSize = Math.min( smallestFontSize, paraFontSize );
                                }
                            }
                        }
                        
                        offsetHeight = oTextBoxInnerDiv.offsetHeight;
                    }
                }
            }
        }
    }
}


function elementLineHeight(element)
{
    var lineHeight = MINIMUM_FONT; 
    
    if (document.defaultView)
    {
        var computedStyle = document.defaultView.getComputedStyle(element, null);
        if (computedStyle)
        {
            lineHeight = computedStyle.getPropertyValue("line-height");
        }
    }
    else if (element.currentStyle)
    {
        lineHeight = element.currentStyle.lineHeight;
    }
    
    if ((UNITS.length == 0) && (lineHeight != MINIMUM_FONT))
    {
        UNITS = lineHeight.substring(lineHeight.length - 2, lineHeight.length)
    }
    
    return parseFloat(lineHeight);
}

function adjustLineHeightIfTooBig(idOfElement)
{
    var oTextBoxOuterDiv;
    var oTextBoxMiddleDiv;
    var oTextBoxInnerDiv;
    var oTextBoxOuterDiv = document.getElementById(idOfElement);
    
    if (oTextBoxOuterDiv)
    {
        oTextBoxMiddleDiv = getChildOfType(oTextBoxOuterDiv, "DIV", 0);
        if (oTextBoxMiddleDiv)
        {
            oTextBoxInnerDiv = getChildOfType(oTextBoxMiddleDiv, "DIV", 0);
            if (oTextBoxInnerDiv)
            {
                var offsetHeight = oTextBoxInnerDiv.offsetHeight;
                var specifiedHeight = offsetHeight;
                if (oTextBoxMiddleDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxMiddleDiv.style.height);
                }
                else if (oTextBoxOuterDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxOuterDiv.style.height);
                }
                if (offsetHeight > specifiedHeight)
                {
                    var adjusted = true;
                    var count = 0;
                    while ((adjusted) && (offsetHeight > specifiedHeight) && (count < 10))
                    {
                        adjusted = false;
                        ++ count;
                        
                        var aParaChildren = getParaDescendants(oTextBoxInnerDiv);
                        for (i = 0; i < aParaChildren.length; i++)
                        {
                            var oParagraphDiv = aParaChildren[i];
                            if (oParagraphDiv.nodeName == "DIV")
                            {
                                var fontSize = elementFontSize(oParagraphDiv);
                                var lineHeight = elementLineHeight(oParagraphDiv) * 0.95;
                                if (lineHeight >= (fontSize * 1.1))
                                {
                                    oParagraphDiv.style.lineHeight = lineHeight + UNITS;
                                    adjusted = true;
                                }
                                
                                
                                
                                for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                                {
                                    var oSpan = oParagraphDiv.childNodes[j];
                                    if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                    {
                                        var fontSize = elementFontSize(oSpan);
                                        var lineHeight = elementLineHeight(oSpan) * 0.95;
                                        if (lineHeight >= (fontSize * 1.1))
                                        {
                                            oSpan.style.lineHeight = lineHeight + UNITS;
                                            var adjusted = true;
                                        }
                                    }
                                }
                            }
                        }
                        
                        offsetHeight = oTextBoxInnerDiv.offsetHeight;
                    }
                }
            }
        }
    }
}

var smallTransparentGif = "";
function fixupIEPNG(strImageID, transparentGif) 
{
    smallTransparentGif = transparentGif;
    if (windowsInternetExplorer && (browserVersion < 7))
    {
        var img = document.getElementById(strImageID);
        if (img)
        {
            var src = img.src;
            img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')";
            img.src = transparentGif;
            img.attachEvent("onpropertychange", imgPropertyChanged);
        }
    }
}

function fixupIEPNGBG(oBlock) 
{
    if (oBlock)
    {
        var currentBGImage = oBlock.currentStyle.backgroundImage;
        var currentBGRepeat = oBlock.currentStyle.backgroundRepeat;
        var urlStart = currentBGImage.indexOf('url(');
        var urlEnd = currentBGImage.indexOf(')', urlStart);
        var imageURL = currentBGImage.substring(urlStart + 4, urlEnd);

        if (imageURL.charAt(0) == '"')
        {
            imageURL = imageURL.substring(1);
        }
        
        if (imageURL.charAt(imageURL.length - 1) == '"')
        {
            imageURL = imageURL.substring(0, imageURL.length - 1);
        }

        var overrideRepeat = false;

        var filterStyle =
            "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
            imageURL +
            "', sizingMethod='crop');";

        if (RegExp("/C[0-9A-F]{8}.png$").exec(imageURL) != null)
        {
            filterStyle =
                "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
                imageURL +
                "', sizingMethod='scale');";

            overrideRepeat = true;
        }

        var backgroundImage = new Image();
        backgroundImage.src = imageURL;
        var tileWidth = backgroundImage.width;
        var tileHeight = backgroundImage.height; 
        
        var blockWidth = 0;
        var blockHeight = 0;
        if (oBlock.style.width)
        {
            blockWidth = parseInt(oBlock.style.width);
        }
        else
        {
            blockWidth = oBlock.offsetWidth;
        }
        if (oBlock.style.height)
        {
            blockHeight = parseInt(oBlock.style.height);
        }
        else
        {
            blockHeight = oBlock.offsetHeight;
        }

        if ((blockWidth == 0) || (blockHeight == 0))
        {
            return;
        }
        
        var wholeRows = 1;
        var wholeCols = 1;
        var extraHeight = 0;
        var extraWidth = 0;
        
        if ((currentBGRepeat.indexOf("no-repeat") != -1) ||
              ((tileWidth == 0) && (tileHeight == 0)) ||
              overrideRepeat)
        {
            tileWidth = blockWidth;
            tileHeight = blockHeight;

        }
        else if ((currentBGRepeat.indexOf("repeat-x") != -1) ||
              (tileHeight == 0))
        {
            wholeCols = Math.floor(blockWidth / tileWidth);
            extraWidth = blockWidth - (tileWidth * wholeCols);
            tileHeight = blockHeight;

        }
        else if (currentBGRepeat.indexOf("repeat-y") != -1)
        {
            wholeRows = Math.floor(blockHeight / tileHeight);
            extraHeight = blockHeight - (tileHeight * wholeRows);
            tileWidth = blockWidth;

        }
        else
        {
            wholeCols = Math.floor(blockWidth / tileWidth);
            wholeRows = Math.floor(blockHeight / tileHeight);
            extraWidth = blockWidth - (tileWidth * wholeCols);
            extraHeight = blockHeight - (tileHeight * wholeRows);
        }
        
        var wrappedContent = document.createElement("div");
        wrappedContent.style.position = "relative";
        wrappedContent.style.zIndex = "1";
        wrappedContent.style.left = "0px";
        wrappedContent.style.top = "0px";
        if (!isNaN(parseInt(oBlock.style.width)))
        {
            wrappedContent.style.width = "" + blockWidth + "px";
        }
        if (!isNaN(parseInt(oBlock.style.height)))
        {
            wrappedContent.style.height = "" + blockHeight + "px";
        }
        var pngBGFixIsWrappedContentEmpty = true;
        while (oBlock.hasChildNodes())
        {
            if (oBlock.firstChild.nodeType == 3)
            {
                if (RegExp("^ *$").exec(oBlock.firstChild.data) == null)
                {
                    pngBGFixIsWrappedContentEmpty = false;
                }
            }
            else
            {
                pngBGFixIsWrappedContentEmpty = false;
            }
            wrappedContent.appendChild(oBlock.firstChild);
        }
        if (pngBGFixIsWrappedContentEmpty)
        {
            wrappedContent.style.lineHeight = "0px";
        }
        
        var newMarkup = "";
        for (var currentRow = 0; 
             currentRow < wholeRows; 
             currentRow++)
        {
            for (currentCol = 0; 
                 currentCol < wholeCols; 
                 currentCol++)
            {
                newMarkup += "<div style=" +
                        "\"position: absolute; line-height: 0px; " +
                        "width: " + tileWidth + "px; " +
                        "height: " + tileHeight + "px; " +
                        "left:" + currentCol *  tileWidth + "px; " +
                        "top:" + currentRow *  tileHeight + "px; " +
                        "filter:" + filterStyle + 
                        "\" > </div>";
            }
            
            if (extraWidth != 0)
            {
                newMarkup += "<div style=" +
                        "\"position: absolute; line-height: 0px; " +
                        "width: " + extraWidth + "px; " +
                        "height: " + tileHeight + "px; " +
                        "left:" + currentCol *  tileWidth + "px; " +
                        "top:" + currentRow *  tileHeight + "px; " +
                        "filter:" + filterStyle + 
                        "\" > </div>";
            }
        }
        
        if (extraHeight != 0)
        {
            for (currentCol = 0; 
                 currentCol < wholeCols; 
                 currentCol++)
            {
                newMarkup += "<div style=" +
                        "\"position: absolute; line-height: 0px; " +
                        "width: " + tileWidth + "px; " +
                        "height: " + extraHeight + "px; " +
                        "left:" + currentCol *  tileWidth + "px; " +
                        "top:" + currentRow *  tileHeight + "px; " +
                        "filter:" + filterStyle + 
                        "\" > </div>";
            }
            
            if (extraWidth != 0)
            {
                newMarkup += "<div style=" +
                        "\"position: absolute; line-height: 0px; " +
                        "width: " + extraWidth + "px; " +
                        "height: " + extraHeight + "px; " +
                        "left:" + currentCol *  tileWidth + "px; " +
                        "top:" + currentRow *  tileHeight + "px; " +
                        "filter:" + filterStyle + 
                        "\" > </div>";
            }
        }
        oBlock.innerHTML = newMarkup;

        oBlock.appendChild(wrappedContent);
        oBlock.style.background= "";
    }
}

function fixupAllIEPNGBGs()
{
    if (windowsInternetExplorer && (browserVersion < 7))
    {
        try
        {
            var oDivNodes = document.getElementsByTagName('DIV');
            for (var iIndex=0; iIndex<oDivNodes.length; iIndex++)
            {
                var oNode = oDivNodes.item(iIndex);
                if (oNode.currentStyle &&
                    oNode.currentStyle.backgroundImage &&
                    (oNode.currentStyle.backgroundImage.indexOf('url(') != -1) &&
                    (oNode.currentStyle.backgroundImage.indexOf('.png")') != -1))
                {
                    fixupIEPNGBG(oNode);
                }
            }
        }
        catch (e)
        {
        }
    }
}

function getChildOfType(oParent, sNodeName, requestedIndex)
{
    var childrenOfType = oParent.getElementsByTagName(sNodeName);
    return (requestedIndex < childrenOfType.length) ?
           childrenOfType.item(requestedIndex) : null;
}

function getParaDescendants(oAncestor)
{
    var oParaDescendants = new Array();
    var oPotentialParagraphs = oAncestor.getElementsByTagName('DIV');
    for (var iIndex=0; iIndex<oPotentialParagraphs.length; iIndex++)
    {
        var oNode = oPotentialParagraphs.item(iIndex);
        if (oNode.className.lastIndexOf('paragraph') != -1)
        {
            oParaDescendants.push(oNode);
        }
    }
    return oParaDescendants;
}

function onPageLoad()
{
    detectBrowser();
    adjustLineHeightIfTooBig("id5");
    adjustFontSizeIfTooBig("id5");
    fixupAllIEPNGBGs();
    fixupIEPNG("id1", "COLLAGE_files/transparent.gif");
    fixupIEPNG("id2", "COLLAGE_files/transparent.gif");
    fixupIEPNG("id3", "COLLAGE_files/transparent.gif");
    fixupIEPNG("id4", "COLLAGE_files/transparent.gif");
    fixupIEPNG("id6", "COLLAGE_files/transparent.gif");
    fixupIEPNG("id7", "COLLAGE_files/transparent.gif");
    return true;
}

var windowsInternetExplorer = false;
var browserVersion = 0;
function detectBrowser()
{
    windowsInternetExplorer = false;
    var appVersion = navigator.appVersion;
    if ((appVersion.indexOf("MSIE") != -1) &&
        (appVersion.indexOf("Macintosh") == -1))
    {
        var temp = appVersion.split("MSIE");
        browserVersion = parseFloat(temp[1]);
        windowsInternetExplorer = true;
    }
}

var inImgPropertyChanged = false;
function imgPropertyChanged()
{
    if ((window.event.propertyName == "src") && (! inImgPropertyChanged))
    {
        inImgPropertyChanged = true;
        var el = window.event.srcElement;
        if (el.src != smallTransparentGif)
        {
            el.filters.item(0).src = el.src;
            el.src = smallTransparentGif;
        }
        inImgPropertyChanged = false;
    }
}

