function writeMovie1()
{
    document.write('<object id="id1" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="188" height="157" style="height: 157px; width: 188px; "><param name="src" value="Photos_files/RAPP%20VT%201.MOV"/><param name="controller" value="true"/><param name="autoplay" value="false"/><param name="scale" value="tofit"/><param name="volume" value="100"/><param name="loop" value="false"/><embed pluginspage="http://www.apple.com/quicktime/download/" type="video/quicktime" class="mov" width="188" height="157" src="Photos_files/RAPP%20VT%201.MOV" controller="true" autoplay="false" scale="tofit" volume="100" loop="false"/></object>');
}

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('../Photos_files/droppedImage.jpg', '129', '306', 'Mike & Carol Castellon \nDream Car Garage\nC4 Project Car');
slides[1] = new Slide('../Photos_files/droppedImage_2.jpg', '110', '180', 'Doug & Delora Hanner\n1965 Coupe');
slides[2] = new Slide('../Photos_files/droppedImage_3.jpg', '168', '260', 'Art & Chona Rapp\n2003 50th Anniversary\nConvertible');
slides[3] = new Slide('../Photos_files/droppedImage_5.jpg', '132', '226', 'Jerry & Peggy Swisher\n1998 Coupe\n');
slides[4] = new Slide('../Photos_files/droppedImage_7.jpg', '203', '270', 'Doug & Delora Hanner\n1997 Coupe');
slides[5] = new Slide('../Photos_files/DCP_3973.jpg', '534', '800', 'George & Cynda Dick\n2004 Convertible');
slides[6] = new Slide('../Photos_files/droppedImage_9.jpg', '132', '314', 'Jack & Judy Martin\n2001 Convertible\n');
slides[7] = new Slide('../Photos_files/droppedImage_11.jpg', '113', '150', 'Karl & Linda Smith\n2004 Coupe');
slides[8] = new Slide('../Photos_files/Smith.jpg', '324', '727', 'Karl & Linda Smith\n1995 Coupe');
slides[9] = new Slide('../Photos_files/droppedImage_13.jpg', '114', '152', 'Cathy Veech’s\n“Miss Daisy”\n2004 Z06');
slides[10] = new Slide('../Photos_files/droppedImage_14.jpg', '113', '150', 'Scott & Rhonda Walter\n1985 Coupe\n');
slides[11] = new Slide('../Photos_files/droppedImage_16.jpg', '132', '216', 'Matt & Tracy Sharp\n2003 Coupe');
slides[12] = new Slide('../Photos_files/droppedImage_18.jpg', '182', '314', 'Dennis Olson\n1982 Coupe');
slides[13] = new Slide('../Photos_files/droppedImage_20.jpg', '115', '152', 'Larry & Jody Retter\n1987 Coupe');
slides[14] = new Slide('../Photos_files/DCP_3948_2.jpg', '585', '800', 'Dan & Kathy McKenzie\n2004 Convertible');
slides[15] = new Slide('../Photos_files/sc001a54e6.jpg', '371', '642', 'Tom McKinley\n1979 Coupe');
slides[16] = new Slide('../Photos_files/droppedImage_22.jpg', '174', '299', 'Larry Flessner\n1994 Roadster');
slides[17] = new Slide('../Photos_files/droppedImage_24.jpg', '128', '234', 'Roger Hieser\n1999 Coupe');
slides[18] = new Slide('../Photos_files/droppedImage_26.jpg', '114', '244', 'Tom & Sally Kilhoffer\n2001 Z06');
slides[19] = new Slide('../Photos_files/droppedImage_28.jpg', '97', '162', 'Duane & Pat Lybarger\n2001 Convertible\n“hers”');
slides[20] = new Slide('../Photos_files/sc001ad046.jpg', '415', '660', 'Charlie & Charlene Mornout\n1973 Convertible');
slides[21] = new Slide('../Photos_files/DCP_3803.jpg', '534', '800', 'Ron Stonestreet\n2007 Coupe');
slides[22] = new Slide('../Photos_files/IMG_0156.jpg', '600', '800', 'John & Diane Pangburn\n1998 Coupe');
slides[23] = new Slide('../Photos_files/sc0044eb97.jpg', '443', '800', 'Ed Romack\n1975 Coupe');
slides[24] = new Slide('../Photos_files/droppedImage_30.jpg', '122', '289', 'Steve & Chris Mechling\n1961 Roadster');
slides[25] = new Slide('../Photos_files/manning.jpg', '424', '798', 'Terry & Betty Manning 2000 Coupe');
slides[26] = new Slide('../Photos_files/Havey.jpg', '400', '800', 'Mike & Kathy Havey\n2001 Coupe');
slides[27] = new Slide('../Photos_files/droppedImage_32.jpg', '224', '300', 'Ty & Grace Clapper\n1988 Convertible');
slides[28] = new Slide('../Photos_files/droppedImage_34.jpg', '138', '246', 'Michael Trout & Mary Koloroutis\n2002 Roadster');
slides[29] = new Slide('../Photos_files/sc001ff4a8.jpg', '581', '800', 'Chuck & Lynn Appleby\n2003 50th Anniversary\nConvertible');
slides[30] = new Slide('../Photos_files/sc002031c7.jpg', '294', '548', 'Larry & Freda Warf\n1992 Convertible\n');
slides[31] = new Slide('../Photos_files/sc002068b0.jpg', '503', '800', 'Chuck & Kay Cain\n1978 Coupe\nC3 4-speed');
slides[32] = new Slide('../Photos_files/sc00208874.jpg', '483', '792', 'Chuck & Kay Cain\n1999 Convertible');
slides[33] = new Slide('../Photos_files/droppedImage_36.jpg', '166', '302', 'Dave & Janet Mayol\n1998 Indy Pace Car');
slides[34] = new Slide('../Photos_files/droppedImage_37.jpg', '172', '298', 'Bob & Pam Weeks\n1994 Coupe');
slides[35] = new Slide('../Photos_files/Brewer.jpg', '403', '633', 'Jim & Vanessa Brewer\n1990 Coupe');
slides[36] = new Slide('../Photos_files/droppedImage_39.jpg', '119', '254', 'Brian & Michelle Gates\n1988 Coupe\n(one of three)');
slides[37] = new Slide('../Photos_files/Gates.jpg', '533', '800', 'Brian & Michelle Gates\n1998 Coupe\n(two of three)');
slides[38] = new Slide('../Photos_files/Gates ii.jpg', '460', '685', 'Bian & Michelle Gates\n1975 Coupe\n(three of three)');
slides[39] = new Slide('../Photos_files/Kappes.jpg', '356', '800', 'Kenneth Kappes\n1973 Coupe\nOriginal owner');
slides[40] = new Slide('../Photos_files/Wickland.jpg', '459', '704', 'RC & Linda Wicklund\n1980 Coupe');
slides[41] = new Slide('../Photos_files/droppedImage_41.jpg', '152', '276', 'Mike & Marcia Peterson\n1974 Convertible');
slides[42] = new Slide('../Photos_files/000_0231_edited.jpg', '357', '801', 'Jim & Peggy Niccum\n1965 Coupe');
slides[43] = new Slide('../Photos_files/R Smith i.jpg', '480', '699', 'Robert Smith\n1966 Roadster');
slides[44] = new Slide('../Photos_files/Berg.jpg', '299', '464', 'Barry & Joyce Berg\n1993 Coupe');
slides[45] = new Slide('../Photos_files/stivers i.jpg', '491', '641', 'John Stivers\n1971 Coupe');
slides[46] = new Slide('../Photos_files/stiff iv.jpg', '282', '716', 'Kent & Teresa Schurg\n1974 Convertible');
slides[47] = new Slide('../Photos_files/Kouski 99 Vette ii.jpg', '388', '801', 'Jeff & Chrissy Kouski\n1999 Coupe');
slides[48] = new Slide('../Photos_files/lawson i.jpg', '509', '800', 'Randall Lawson\n2001 Quick Silver Coupe');
slides[49] = new Slide('../Photos_files/DCP_3814.jpg', '525', '653', 'David & Karen Crull\n1992 Coupe');
slides[50] = new Slide('../Photos_files/Heckler.jpg', '130', '280', 'Dennis & Sally Heckler\n1984 Coupe');
slides[51] = new Slide('../Photos_files/droppedImage_43.jpg', '224', '320', 'Derald & Patsy Seeds\n2008 Convertible\nMuseum Delivery!');
slides[52] = new Slide('../Photos_files/Pearson ii.jpg', '438', '801', 'Terry & Sharon Pearson\n1970 t-top');
slides[53] = new Slide('../Photos_files/Pearson iv.jpg', '487', '801', 'Terry 7 Shaorn Pearson\n1994 Convertible');
slides[54] = new Slide('../Photos_files/Stiffi.jpg', '328', '510', 'Steve & Cathy Stiff\n1978 Coupe');
slides[55] = new Slide('../Photos_files/Ogle i.jpg', '269', '416', 'Bob & Linda Ogle\n1966 Coupe');
slides[56] = new Slide('../Photos_files/Berg_2.jpg', '299', '464', 'Barry & Joyce Berg\n1993 Coupe');
slides[57] = new Slide('../Photos_files/DCP_3848.jpg', '491', '796', 'Curtis & Jackie Heck\n2006 Coupe');
slides[58] = new Slide('../Photos_files/DCP_0005.jpg', '534', '800', 'Jim & Kathy Gilliland\n1975 Coupe');
slides[59] = new Slide('../Photos_files/DCP_0008.jpg', '534', '800', 'Ed Miller & April Thomas\n1987 Convertible');
slides[60] = new Slide('../Photos_files/DCP_0010.jpg', '534', '800', 'John & Karen Grove \n1975 Convertible');
slides[61] = new Slide('../Photos_files/DCP_0011.jpg', '534', '800', 'Craig Makemson\n1995 Convertible\n');
slides[62] = new Slide('../Photos_files/sc0000151d.jpg', '509', '733', 'Gunner Taylor\n1992 Coupe');
slides[63] = new Slide('../Photos_files/sc0000236d.jpg', '513', '733', 'Gunner Taylor\n1968 Coupe');
slides[64] = new Slide('../Photos_files/100_0191.jpg', '600', '800', 'Leon & Nancy Webber\n1995 Coupe');
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("id2");
    adjustFontSizeIfTooBig("id2");
    adjustLineHeightIfTooBig("id4");
    adjustFontSizeIfTooBig("id4");
    fixupAllIEPNGBGs();
    fixupIEPNG("id3", "Photos_files/transparent.gif");
    fixupIEPNG("id5", "Photos_files/transparent.gif");
    return true;
}

function NBmouseover(index)
{
    var normal = document.getElementById("navbar_"+index+"_normal");
    var rollover = document.getElementById("navbar_"+index+"_rollover");
    if (normal && rollover)
    {
        normal.style.visibility = "hidden";
        rollover.style.visibility = "visible";
    }
    return true;
}

function NBmouseout(index)
{
    var normal = document.getElementById("navbar_"+index+"_normal");
    var rollover = document.getElementById("navbar_"+index+"_rollover");
    if (normal && rollover)
    {
        normal.style.visibility = "visible";
        rollover.style.visibility = "hidden";
    }
    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;
    }
}

