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('../Page1_files/1.jpg', '466', '700', 'Robert plant - manic nirvana');
slides[1] = new Slide('../Page1_files/2.jpg', '466', '700', 'Supertramp - songs einer supergruppe');
slides[2] = new Slide('../Page1_files/3.jpg', '466', '700', 'Marillion - clutching at straws');
slides[3] = new Slide('../Page1_files/4.jpg', '466', '700', 'Lenny Kravitz - let love rule\u2028');
slides[4] = new Slide('../Page1_files/5.jpg', '466', '700', 'Aerosmith - Greatest Hits Picture Disc All');
slides[5] = new Slide('../Page1_files/6.jpg', '466', '700', 'Rod Stewart - rhythm of my heart');
slides[6] = new Slide('../Page1_files/7.jpg', '466', '700', 'Duran Duran - first album - All 5!');
slides[7] = new Slide('../Page1_files/8.jpg', '466', '700', 'Bryan Adams - Reckless');
slides[8] = new Slide('../Page1_files/9.jpg', '466', '700', 'Terence Trent D\u0027Arby - introducing');
slides[9] = new Slide('../Page1_files/10.jpg', '466', '700', 'Terence Trent D\u0027Arby - - Neither Fish...');
slides[10] = new Slide('../Page1_files/11.jpg', '466', '700', 'R.E.M - green - peter buck');
slides[11] = new Slide('../Page1_files/12.jpg', '466', '700', 'Level 42 - running in the family');
slides[12] = new Slide('../Page1_files/13.jpg', '466', '700', 'Black - wondeful life');
slides[13] = new Slide('../Page1_files/14.jpg', '466', '700', 'Bowie - loving the alien - picture disc');
slides[14] = new Slide('../Page1_files/15.jpg', '466', '700', 'INXS - baby don\u0027t cry - picture disc all incl : HUTCHENCE (rip)');
slides[15] = new Slide('../Page1_files/16.jpg', '466', '700', 'Simple minds - amsterdam ep');
slides[16] = new Slide('../Page1_files/17.jpg', '466', '700', 'Simple minds - ballad of the streets\u2028');
slides[17] = new Slide('../Page1_files/18.jpg', '466', '700', 'Meat loaf - piece of the action');
slides[18] = new Slide('../Page1_files/19.jpg', '466', '700', 'Zz top - recycler');
slides[19] = new Slide('../Page1_files/20.jpg', '466', '700', 'the who - tourprogram quadrophenia Townsend, Daltrey, ENTWHISTLE (rip)\u2028');
slides[20] = new Slide('../Page1_files/21.jpg', '466', '700', 'Tina turner - live in europe\u2028');
slides[21] = new Slide('../Page1_files/22.jpg', '466', '700', 'Ian gillan- Naked thunder');
slides[22] = new Slide('../Page1_files/23.jpg', '466', '700', 'Deep purple - Slaves and masters - glover, turner');
slides[23] = new Slide('../Page1_files/24.jpg', '466', '700', 'Springsteen - born in the USA\u2028');
slides[24] = new Slide('../Page1_files/25.jpg', '466', '700', 'Springsteen - tunnel of love - by whole e-street band incl bruce and fererici (Rip)');
slides[25] = new Slide('../Page1_files/26.jpg', '466', '700', 'Bee gees - high civilisation - all incl BERRY (rip)');
slides[26] = new Slide('../Page1_files/27.jpg', '466', '700', 'Fish - suits - picture disc');
slides[27] = new Slide('../Page1_files/28.jpg', '466', '700', 'Kylie minogue - deliquents');
slides[28] = new Slide('../Page1_files/29.jpg', '466', '700', 'Europe - I\u0027ll cry for you');
slides[29] = new Slide('../Page1_files/30.jpg', '466', '700', 'Europe - let the good times rock');
slides[30] = new Slide('../Page1_files/31.jpg', '466', '700', 'Police - Regatta de blanc - all');
slides[31] = new Slide('../Page1_files/32.jpg', '466', '700', 'Supertramp - brother where you bound - program');
slides[32] = new Slide('../Page1_files/33.jpg', '466', '700', 'Supertramp - crime of the century');
slides[33] = new Slide('../Page1_files/34.jpg', '466', '700', 'Supertramp - even in the quietest moments');
slides[34] = new Slide('../Page1_files/35.jpg', '466', '700', 'Supertramp - free as a bird');
slides[35] = new Slide('../Page1_files/36.jpg', '466', '700', 'Roger hodgson - hai hai');
slides[36] = new Slide('../Page1_files/37.jpg', '466', '700', 'INXS - X - all all incl : HUTCHENCE (rip)');
slides[37] = new Slide('../Page1_files/38.jpg', '466', '700', 'Blondie - Best of - Debbie Harry');
slides[38] = new Slide('../Page1_files/39.jpg', '466', '700', 'Dire Straits - Money for Nothing 10" - All');
slides[39] = new Slide('../Page1_files/40.jpg', '466', '700', 'Seal - future love');
slides[40] = new Slide('../Page1_files/41.jpg', '466', '700', 'Holly johnson - remix album');
slides[41] = new Slide('../Page1_files/42.jpg', '466', '700', 'Barcley james harvest - ring of changes');
slides[42] = new Slide('../Page1_files/43.jpg', '466', '700', 'Alice cooper - bed of nails - picture disc');
slides[43] = new Slide('../Page1_files/44.jpg', '466', '700', 'Gloria estefan - to the light');
slides[44] = new Slide('../Page1_files/45.jpg', '466', '700', 'Mike & mechanics - nobody‘s perfect');
slides[45] = new Slide('../Page1_files/46.jpg', '466', '700', 'Joe cocker - unchain my heart');
slides[46] = new Slide('../Page1_files/47.jpg', '466', '700', 'Little steven - revolution press kit');
slides[47] = new Slide('../Page1_files/48.jpg', '466', '700', 'Boomtown rats - fine art... - geldof');
slides[48] = new Slide('../Page1_files/49.jpg', '466', '700', 'Matt bianco - best of');
slides[49] = new Slide('../Page1_files/50.jpg', '466', '700', 'Santana - greatest hits');
slides[50] = new Slide('../Page1_files/51.jpg', '466', '700', 'Very special christmas - whitney houston');
slides[51] = new Slide('../Page1_files/52.jpg', '466', '700', 'Mike oldfield - discovery');
slides[52] = new Slide('../Page1_files/53.jpg', '466', '700', 'David Bowie - Sound and Vision');
slides[53] = new Slide('../Page1_files/54.jpg', '466', '700', 'CSNY - Deja Vu - Neil Young');
slides[54] = new Slide('../Page1_files/55.jpg', '466', '700', 'Jethro Tull - 20 years - Ian Anderson');
slides[55] = new Slide('../Page1_files/56.jpg', '466', '700', 'Scorpions - wind of change - Picture Disc - All');
slides[56] = new Slide('../Page1_files/57.jpg', '466', '700', 'Pet Shop Boys - actually');
slides[57] = new Slide('../Page1_files/58.jpg', '466', '700', 'Sting - nothing like the sun');
slides[58] = new Slide('../Page1_files/59.jpg', '466', '700', 'The cure - entreat - robert smith');
slides[59] = new Slide('../Page1_files/60.jpg', '466', '700', 'Nick mason (pink floyd) - fictious sports');
slides[60] = new Slide('../Page1_files/61.jpg', '466', '700', 'Pink floyd - Wish You Were here - Gilmour. Mason, WRIGHT (rip)');
slides[61] = new Slide('../Page1_files/62.jpg', '466', '700', 'Pink Floyd - Dark side of the moon picture disc - Waters');
slides[62] = new Slide('../Page1_files/63.jpg', '466', '700', 'Led zepplin - III - page, plant');
slides[63] = new Slide('../Page1_files/64.jpg', '466', '700', 'Phil collins - in the air tonight');
slides[64] = new Slide('../Page1_files/65.jpg', '466', '700', 'The Cross (Queen) - Shove It - all');
slides[65] = new Slide('../Page1_files/66.jpg', '466', '700', 'David lee roth - a little aint enough');
slides[66] = new Slide('../Page1_files/67.jpg', '466', '700', 'Nils lofgren - delivery');
slides[67] = new Slide('../Page1_files/68.jpg', '466', '700', 'Tom jones - kiss');
slides[68] = new Slide('../Page1_files/69.jpg', '466', '700', 'Cher - could \u0027ve been you - picture disc');
slides[69] = new Slide('../Page1_files/70.jpg', '466', '700', 'Stones - goats haead soup - all incl. wyman & taylor');
slides[70] = new Slide('../Page1_files/71.jpg', '466', '700', 'Adam ant - ant rap');
slides[71] = new Slide('../Page1_files/72.jpg', '466', '700', 'Wet wet wet memphis sessions - all');
slides[72] = new Slide('../Page1_files/73.jpg', '466', '700', 'Geldof - great song of indifference');
slides[73] = new Slide('../Page1_files/74.jpg', '466', '700', 'Ian gillan - no good luck');
slides[74] = new Slide('../Page1_files/75.jpg', '466', '700', 'Suzanne vega - marlene on the wall');
slides[75] = new Slide('../Page1_files/76.jpg', '466', '700', 'Jon bon jovi - miracle');
slides[76] = new Slide('../Page1_files/77.jpg', '466', '700', 'Oasis - hindu times - noel gallagher');
slides[77] = new Slide('../Page1_files/78.jpg', '466', '700', 'Pink floyd - one slip pink vinyl gatefold - WRIGHT (rip), Mason');
slides[78] = new Slide('../Page1_files/79.jpg', '466', '700', 'Alice cooper - teenage frankenstein');
slides[79] = new Slide('../Page1_files/80.jpg', '466', '700', 'Francis rossi - modern romance');
slides[80] = new Slide('../Page1_files/81.jpg', '466', '700', 'A-ha - early morning');
slides[81] = new Slide('../Page1_files/82.jpg', '466', '700', 'Pete townshend - a friend is a friend');
slides[82] = new Slide('../Page1_files/83.jpg', '466', '700', 'Billy joel - back in the ussr');
slides[83] = new Slide('../Page1_files/84.jpg', '466', '700', 'The police - de doo do do - sting');
slides[84] = new Slide('../Page1_files/85.jpg', '466', '700', 'MICHAEL JACKSON - I just can\u0027t stop...');
slides[85] = new Slide('../Page1_files/86.jpg', '466', '700', 'Paul young - wonderland');
slides[86] = new Slide('../Page1_files/87.jpg', '466', '700', 'Bonnie tyler - holding out for a hero');
slides[87] = new Slide('../Page1_files/88.jpg', '466', '700', 'Genesis - no son of mine');
slides[88] = new Slide('../Page1_files/89.jpg', '466', '700', 'Chris rea - auberge');
slides[89] = new Slide('../Page1_files/90.jpg', '466', '700', 'Phil collins - something happened');
slides[90] = new Slide('../Page1_files/91.jpg', '466', '700', 'Black sabbath - feels good to me');
slides[91] = new Slide('../Page1_files/92.jpg', '466', '700', 'Guns N Roses - knocking on heavens door - slash. Duff, matt');
slides[92] = new Slide('../Page1_files/93.jpg', '466', '700', 'Kim wilde - the second time');
slides[93] = new Slide('../Page1_files/94.jpg', '466', '700', 'Sting - spread a little happiness');
slides[94] = new Slide('../Page1_files/95.jpg', '466', '700', 'Eric Clapton - 24 nights 7" boxset');
slides[95] = new Slide('../Page1_files/96.jpg', '466', '700', 'INXS - by my side - special magical pack - all incl : HUTCHENCE (rip)');
slides[96] = new Slide('../Page1_files/97.jpg', '466', '700', 'Beatles live at the bbc promo pack A4 folder - Ringo Starr');
slides[97] = new Slide('../Page1_files/98.jpg', '466', '700', 'Deep purple - Drumskin - al');
slides[98] = new Slide('../Page1_files/99.jpg', '466', '700', 'Oasis - part one of 2x 5x CD Boxset- Noel');
isPureISOLatin1 = true;
contentEncodingConstant = 4;
feedbackURL = "TODO";
showFeedbackButton = false;
feedbackEnabled = true;

IMpreload('Page1_files', 'shapeimage_2', '0');
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("id1");
    adjustFontSizeIfTooBig("id1");
    adjustLineHeightIfTooBig("id4");
    adjustFontSizeIfTooBig("id4");
    adjustLineHeightIfTooBig("id17");
    adjustFontSizeIfTooBig("id17");
    fixupIEPNG("id2", "Page1_files/transparent.gif");
    fixupIEPNG("id3", "Page1_files/transparent.gif");
    fixupAllIEPNGBGs();
    fixupIEPNG("id5", "Page1_files/transparent.gif");
    fixupIEPNG("id6", "Page1_files/transparent.gif");
    fixupIEPNG("id7", "Page1_files/transparent.gif");
    fixupIEPNG("id8", "Page1_files/transparent.gif");
    fixupIEPNG("id9", "Page1_files/transparent.gif");
    fixupIEPNG("id10", "Page1_files/transparent.gif");
    fixupIEPNG("id11", "Page1_files/transparent.gif");
    fixupIEPNG("id12", "Page1_files/transparent.gif");
    fixupIEPNG("id13", "Page1_files/transparent.gif");
    fixupIEPNG("id14", "Page1_files/transparent.gif");
    fixupIEPNG("id15", "Page1_files/transparent.gif");
    fixupIEPNG("id16", "Page1_files/transparent.gif");
    fixupIEPNG("shapeimage_2_link_0", "Page1_files/transparent.gif");
    fixupIEPNG("shapeimage_2", "Page1_files/transparent.gif");
    return true;
}

function IMpreload(path, name, areaIndex)
{
    var rolloverName = name+'_rollover_'+areaIndex;
    var rolloverPath = path+'/'+rolloverName+'.png';
    self[rolloverName] = new Image();
    self[rolloverName].src = rolloverPath;

    var linkName = name+'_link_'+areaIndex;
    var linkPath = path+'/'+linkName+'.png';
    self[linkName] = new Image();
    self[linkName].src = linkPath;
    return true;
}

function IMmouseover(name, areaIndex)
{
    var rolloverName = name+'_rollover_'+areaIndex;
    var linkName = name+'_link_'+areaIndex;
    var img  = document.getElementById(linkName);
    if (img)
    {
        img.src = self[rolloverName].src;
    }
    return true;
}

function IMmouseout(name, areaIndex)
{
    var linkName = name+'_link_'+areaIndex;
    var img  = document.getElementById(linkName);
    if (img)
    {
        img.src = self[linkName].src;
    }
    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;
    }
}

