IMpreload('1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files', 'shapeimage_2', '0');
IMpreload('1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files', 'shapeimage_2', '1');
IMpreload('1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files', 'shapeimage_2', '2');
IMpreload('1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files', 'shapeimage_2', '3');
IMpreload('1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files', 'shapeimage_2', '4');
IMpreload('1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files', 'shapeimage_2', '5');
IMpreload('1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files', 'shapeimage_2', '6');
IMpreload('1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files', 'shapeimage_2', '7');
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('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Anita Mui HK.jpg', '434', '314', '梅艷芳香港');
slides[1] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Leo Ku.jpg', '418', '317', '              古巨基');
slides[2] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Snow Wolf Lake.jpg', '442', '310', '       雪狼湖 新加坡');
slides[3] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/untitled.jpg', '800', '576', '劉德華');
slides[4] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Alan Tam HK Stadium.jpg', '800', '557', '譚詠麟');
slides[5] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/2SSENTIAL.jpg', '474', '320', '張崇基張崇德 06’\n');
slides[6] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/01\u0027 Hong Kong Philharmonic .jpg', '170', '279', '香港管弦樂團01\u0027 ');
slides[7] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Hacken Atlantic City.jpg', '377', '265', '李克勤 大西洋城');
slides[8] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Sammi Cheung.jpg', '426', '279', '鄭秀文香港');
slides[9] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Aaron Shun Tak.jpg', '482', '308', '郭富城順德');
slides[10] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Glay.jpg', '529', '304', 'Glay Expo日本 大阪');
slides[11] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Laurence Juber HK.jpg', '367', '282', 'Laurence Juber\n香港');
slides[12] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Eason 03\u0027.jpg', '418', '291', '陳奕迅 03\u0027');
slides[13] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Francis Yip HKPO.jpg', '219', '304', '葉麗儀香港管弦樂團');
slides[14] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/untitled_1.jpg', '800', '579', '葉蒨文 香港');
slides[15] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Nic Guangchow.jpg', '494', '268', '謝霆鋒廣州');
slides[16] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Danny Summer HK.jpg', '245', '174', '夏韶聲 香港');
slides[17] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Aaron TAJ MAHAL Atlantic City .jpg', '413', '373', '郭富城 大西洋城 ');
slides[18] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Eaon Australia.jpg', '405', '285', '陳奕迅澳洲 ');
slides[19] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Ekin Japan.jpg', '225', '389', '鄭伊健日本');
slides[20] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/William So &  Andy Hui Malaysia.jpg', '476', '287', '       蘇永康  許志安 \n            馬來西亞');
slides[21] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Capital Artistes Charity Show.jpg', '351', '245', '華星唱片慈善演唱會');
slides[22] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Eason Sydney.jpg', '395', '273', '陳奕迅澳洲 雪梨');
slides[23] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/SAR.jpg', '379', '289', '香港特區');
slides[24] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Eason & Girlfriends.jpg', '363', '257', '陳奕迅');
slides[25] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Nic Siu Kwan.jpg', '291', '244', '謝霆鋒');
slides[26] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/William So & Andy Hui Australia.jpg', '399', '275', '       蘇永康  許志安 \n                澳洲');
slides[27] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Willaim So & Andy Hui Australia.jpg', '397', '279', '       蘇永康  許志安 \n                澳洲');
slides[28] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Nic Malaysia.jpg', '464', '322', '謝霆鋒 馬來西亞');
slides[29] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Nic.jpg', '418', '283', '謝霆鋒');
slides[30] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Anita Mui Charity Show.jpg', '274', '320', '梅艷芳慈善演唱會');
slides[31] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/William So Singapore.jpg', '337', '178', '       蘇永康 新加坡');
slides[32] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Indie Band Show.jpg', '343', '225', '獨立時代音樂會');
slides[33] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Araon Kwok Hang Ten.jpg', '290', '385', '郭富城 Hang Ten');
slides[34] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Cass Pang.jpg', '407', '269', '彭羚');
slides[35] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Rock Show.jpg', '460', '202', '       末世搖滾音樂會');
slides[36] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Andy Hui.jpg', '359', '235', '許志安');
slides[37] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Sally Yeh Guangchow.jpg', '409', '300', '葉蒨文廣州');
slides[38] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Andy Lau Houston.jpg', '328', '208', '劉德華休斯頓');
slides[39] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Danny Chan.jpg', '393', '283', '陳百強 ');
slides[40] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Eason .jpg', '450', '298', '陳奕迅');
slides[41] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Tai Yau.jpg', '466', '332', '大佑香港');
slides[42] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Roman Tam HK.jpg', '211', '289', '羅文香港');
slides[43] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/95\u0027 Andy Lau.jpg', '649', '380', '95\u0027 劉德華');
slides[44] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Andy Lau Atlantic City.jpg', '800', '531', ' 劉德華 大西洋城');
slides[45] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Alan Tam Atlantic City.jpg', '800', '533', '譚詠麟 大西洋城');
slides[46] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/MIDEM Asia.jpg', '330', '184', 'MIDEM Asia');
slides[47] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Ekin.jpg', '800', '471', '鄭伊健');
slides[48] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/93\u0027 Jacky Cheung.jpg', '294', '257', '93\u0027 張學友');
slides[49] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Eric Mo HK.jpg', '800', '546', '巫啟賢香港');
slides[50] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Hecken Lee.jpg', '651', '800', '李克勤');
slides[51] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Eric MMo.jpg', '800', '540', '巫啟賢 大西洋城');
slides[52] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/HKSAR.jpg', '243', '348', '香港特區回歸演唱會');
slides[53] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Diva Oldies.jpg', '417', '233', '. 金曲 大西洋城');
slides[54] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Jacky Cheung .jpg', '387', '267', ' 張學友');
slides[55] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Aaron Kwok Atlantic City.jpg', '383', '257', '郭富城 大西洋城 ');
slides[56] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Eric Mo HK_1.jpg', '493', '326', '巫啟賢香港');
slides[57] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/SAR Anniversary.jpg', '399', '267', '香港特區回歸演唱會');
slides[58] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Kong Mun Sally Yeh.jpg', '553', '403', '葉蒨文江門');
slides[59] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/HKPO.jpg', '170', '293', '香港管弦樂團');
slides[60] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Tony Leung.jpg', '377', '269', '梁朝偉');
slides[61] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Shine HK.jpg', '434', '302', 'Shine 香港');
slides[62] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Winners Shan Tau .jpg', '800', '541', '溫拿');
slides[63] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Lui San.jpg', '800', '554', '呂珊');
slides[64] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/SARS.jpg', '393', '267', '1:99 善演唱會');
slides[65] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Andy Lau Chicago.jpg', '385', '247', '劉德華芝加哥');
slides[66] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Asian Music Scene 91\u0027.jpg', '367', '237', '亞洲演唱會 91\u0027');
slides[67] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Winners China.jpg', '414', '285', '溫拿 中國');
slides[68] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Kenny B.jpg', '397', '273', '鍾鎮濤');
slides[69] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Sally Yeh Malaysia.jpg', '409', '312', '葉蒨文 馬來西亞');
slides[70] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Nic_1.jpg', '462', '314', '謝霆鋒');
slides[71] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Alan Tam Shan Tau.jpg', '387', '269', '譚詠麟順德');
slides[72] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/WEA.jpg', '414', '291', '華納');
slides[73] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Metro 104.jpg', '407', '249', '. 新城 104');
slides[74] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Aaron Kwok HK.jpg', '418', '277', '郭富城 香港');
slides[75] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Peter & Andrew HKC.jpg', '385', '285', '張崇基 張崇德 05’\n');
slides[76] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/02\u0027 Hunger show .jpg', '414', '261', '02\u0027 饑饉三十');
slides[77] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Anita Mui Atlantic City.jpg', '429', '283', '梅艷芳 大西洋城');
slides[78] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Eason Easy Ride.jpg', '276', '170', '陳奕迅 Easy Ride');
slides[79] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Singals.jpg', '442', '316', 'Singals');
slides[80] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Nic Australia.jpg', '286', '439', '謝霆鋒澳洲');
slides[81] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Nic Malaysia_1.jpg', '406', '230', '謝霆鋒 馬來西亞');
slides[82] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Trinity.jpg', '266', '235', 'Trinity');
slides[83] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Nic China.jpg', '439', '277', '謝霆鋒');
slides[84] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Aaron NA.jpg', '420', '304', '郭富城');
slides[85] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Siu .jpg', '306', '457', '蕭正楠');
slides[86] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Anita Mui Shanghai.jpg', '407', '277', '梅艷芳上海');
slides[87] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Star Box HK.jpg', '414', '279', '             星盒子');
slides[88] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Anita Mui Toronto.jpg', '393', '298', '梅艷芳多倫多');
slides[89] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Eason Las Vegas.jpg', '379', '302', '陳奕迅 拉斯維加斯');
slides[90] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Nic Hang Chau.jpg', '367', '265', '謝霆鋒 杭洲');
slides[91] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Nic Beijing.jpg', '199', '281', '謝霆鋒 北京');
slides[92] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/MTV Taiwan.jpg', '387', '289', 'MTV Taiwan');
slides[93] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Nic Shanghai.jpg', '377', '277', '謝霆鋒 上海');
slides[94] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Nic Fu Shan.jpg', '450', '300', '謝霆鋒');
slides[95] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Euro Christmas.jpg', '304', '324', '歐陸聖誕節演唱會');
slides[96] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Nic Singapore.jpg', '387', '271', '謝霆鋒 新加坡');
slides[97] = new Slide('../1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/Children\u0027s Choir.jpg', '178', '267', '香港兒童合唱團\n');
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 onPageLoad()
{
    detectBrowser();
    adjustLineHeightIfTooBig("id1");
    adjustFontSizeIfTooBig("id1");
    fixupAllIEPNGBGs();
    fixupIEPNG("shapeimage_2_link_0", "1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/transparent.gif");
    fixupIEPNG("shapeimage_2_link_1", "1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/transparent.gif");
    fixupIEPNG("shapeimage_2_link_2", "1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/transparent.gif");
    fixupIEPNG("shapeimage_2_link_3", "1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/transparent.gif");
    fixupIEPNG("shapeimage_2_link_4", "1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/transparent.gif");
    fixupIEPNG("shapeimage_2_link_5", "1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/transparent.gif");
    fixupIEPNG("shapeimage_2_link_6", "1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/transparent.gif");
    fixupIEPNG("shapeimage_2_link_7", "1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/transparent.gif");
    fixupIEPNG("shapeimage_2", "1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/transparent.gif");
    fixupIEPNG("id2", "1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/transparent.gif");
    fixupIEPNG("id3", "1AA08B5A-B8DF-11DB-B497-000D93B1D32C_files/transparent.gif");
    return true;
}

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 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;
    }
}

