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('../Mask Class_files/droppedImage.jpg', '250', '180', 'Out of wet clay,shape a form you would like to reproduce. While it is still damp,you coat it with several layers of shellac that must dry between coats. Wash brush with denatured alcohol. Do not breathe alcohol. Work outside. The shellac seals the clay so you may proceed with the latex process.\n\n');
slides[1] = new Slide('../Mask Class_files/droppedImage_2.jpg', '135', '180', 'Soap down your piece that has been shellacked with mold soap or other kind of mold release. Do not miss any areas.\n\n');
slides[2] = new Slide('../Mask Class_files/droppedImage_4.jpg', '134', '180', 'Make a roll of clay to seal the gap between the piece of glass and your mask. You do not want latex to seep under. Plug the eyes or mouth if necessary..\n');
slides[3] = new Slide('../Mask Class_files/droppedImage_6.jpg', '224', '180', 'Use a natural bristle brush that you do not treasure. Coat it with dish soap. Take a little latex in a cup and dilute it 30 % and paint your first layer over your piece. Blow away any bubbles that would have formed from the soap.\n\ndroppedImage.pict');
slides[4] = new Slide('../Mask Class_files/droppedImage_8.jpg', '240', '180', 'Using full strength latex,continue with all the layers. Letting them thoroughly dry between coats. Build up layers but do not let more than a day go by between them, otherwise the layers will not stick to each other. They advise not to have your latex dry directly in the sun,\n\n');
slides[5] = new Slide('../Mask Class_files/droppedImage_10.jpg', '247', '213', 'After two or three layers,you can lay down cheesecloth with latex over it. Some use sawdust or other thickeners to economize on latex. I usually have at least two coats of cheesecloth.\n');
slides[6] = new Slide('../Mask Class_files/droppedImage_12.jpg', '228', '180', 'Some use sawdust or other thickeners to economize on latex. I usually have at least two coats of cheesecloth.\n');
slides[7] = new Slide('../Mask Class_files/droppedImage_14.jpg', '242', '180', 'You must saturate the latex. You should have pure smooth, or slightly diluted latex so it is smooth for the last layer.\n');
slides[8] = new Slide('../Mask Class_files/droppedImage_16.jpg', '135', '180', ' Make your mother mold and eliminate any undercuts with wads of clay. An undercut is where shapes indent or go under. You want your plaster to pull off easily,so make your shape like an ascending mountain.\n\n');
slides[9] = new Slide('../Mask Class_files/droppedImage_18.jpg', '136', '180', ' If your latex is dry after at least 5-7 coats depending on the size of your material ( a half inch thick for large items),then coat the whole thing with a layer of petroleum jelly or soap,or cooking oil.\n\n');
slides[10] = new Slide('../Mask Class_files/droppedImage_20.jpg', '140', '180', 'Mix up your fgr 95,or hydrocal, first only putting an inch of water in the bottom of a flexible bowl. keep adding your gypsum until a mountain of the white powder forms,Let it absorb and then add a little \nmore. more.\n');
slides[11] = new Slide('../Mask Class_files/droppedImage_22.jpg', '135', '180', 'Mix this with a whisk thoroughly,add some polyproplene fibers ,or fibrous material to strengthen your f gypsum plaster. Use cut up pieces of crinoline fabric from millinery shop absorbant wipes,sisal,or shredded rope.');
slides[12] = new Slide('../Mask Class_files/droppedImage_24.jpg', '146', '180', 'Fibers keep the mixture under control and prevented from falling back into the nose or down the walls. Coat the top of your latex mask adding cheesecloth and then covering over the cheesecloth. Let harden.\n\n');
slides[13] = new Slide('../Mask Class_files/droppedImage_26.jpg', '240', '180', 'Remove your "mother mold "(as it is called-a place to protect) and mother your latex mold which can deform and dry out if not stored properly. Hopefully you have been skillful with your undercuts.\n');
slides[14] = new Slide('../Mask Class_files/droppedImage_28.jpg', '135', '180', ' Cut up some crinoline pieces or buy special fiberglass roving from sculpture supply shop. Mix up another batch of rock hard water putty or gypsum as before. Use only an inch of water.\nputty or gypsum as before. Use only an inch of water.\n');
slides[15] = new Slide('../Mask Class_files/droppedImage_30.jpg', '135', '180', ' Slush the gypsum into the mask and then dip your fibers into the gypsum and layer them inside your rubber mold. Try to use more of the gypsum sauce than the crinoline fibers. Remember the gypsum is the glue!\n\n');
slides[16] = new Slide('../Mask Class_files/droppedImage_32.jpg', '135', '180', 'Remove the rubber from your original shape and place inside your mother mold. Now you are ready to cast the first one.\n\n');
slides[17] = new Slide('../Mask Class_files/droppedImage_34.jpg', '240', '180', ' Let harden. Remove your mother mold first and then carefully remove your casting starting with the forehead first . Be patient and viola!-your piece will emerge! Paint it, sand it trim or drill holes into the gypsum. while it is still wet.\n\n');
isPureISOLatin1 = true;
contentEncodingConstant = 4;
feedbackURL = "TODO";
showFeedbackButton = false;
feedbackEnabled = true;

IMpreload('Mask Class_files', 'shapeimage_5', '0');
IMpreload('Mask Class_files', 'shapeimage_5', '1');
IMpreload('Mask Class_files', 'shapeimage_5', '2');
IMpreload('Mask Class_files', 'shapeimage_5', '3');
IMpreload('Mask Class_files', 'shapeimage_5', '4');
IMpreload('Mask Class_files', 'shapeimage_5', '5');
IMpreload('Mask Class_files', 'shapeimage_5', '6');
IMpreload('Mask Class_files', 'shapeimage_5', '7');
IMpreload('Mask Class_files', 'shapeimage_5', '8');
IMpreload('Mask Class_files', 'shapeimage_5', '9');
IMpreload('Mask Class_files', 'shapeimage_5', '10');
IMpreload('Mask Class_files', 'shapeimage_5', '11');
IMpreload('Mask Class_files', 'shapeimage_5', '12');
IMpreload('Mask Class_files', 'shapeimage_5', '13');
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("id23");
    adjustFontSizeIfTooBig("id23");
    adjustLineHeightIfTooBig("id24");
    adjustFontSizeIfTooBig("id24");
    fixupAllIEPNGBGs();
    fixupIEPNG("id1", "Mask Class_files/transparent.gif");
    fixupIEPNG("id2", "Mask Class_files/transparent.gif");
    fixupIEPNG("id3", "Mask Class_files/transparent.gif");
    fixupIEPNG("id4", "Mask Class_files/transparent.gif");
    fixupIEPNG("id5", "Mask Class_files/transparent.gif");
    fixupIEPNG("id6", "Mask Class_files/transparent.gif");
    fixupIEPNG("id7", "Mask Class_files/transparent.gif");
    fixupIEPNG("id8", "Mask Class_files/transparent.gif");
    fixupIEPNG("id9", "Mask Class_files/transparent.gif");
    fixupIEPNG("id10", "Mask Class_files/transparent.gif");
    fixupIEPNG("id11", "Mask Class_files/transparent.gif");
    fixupIEPNG("id12", "Mask Class_files/transparent.gif");
    fixupIEPNG("id13", "Mask Class_files/transparent.gif");
    fixupIEPNG("id14", "Mask Class_files/transparent.gif");
    fixupIEPNG("id15", "Mask Class_files/transparent.gif");
    fixupIEPNG("id16", "Mask Class_files/transparent.gif");
    fixupIEPNG("id17", "Mask Class_files/transparent.gif");
    fixupIEPNG("id18", "Mask Class_files/transparent.gif");
    fixupIEPNG("id19", "Mask Class_files/transparent.gif");
    fixupIEPNG("id20", "Mask Class_files/transparent.gif");
    fixupIEPNG("id21", "Mask Class_files/transparent.gif");
    fixupIEPNG("id22", "Mask Class_files/transparent.gif");
    fixupIEPNG("shapeimage_5_link_0", "Mask Class_files/transparent.gif");
    fixupIEPNG("shapeimage_5_link_1", "Mask Class_files/transparent.gif");
    fixupIEPNG("shapeimage_5_link_2", "Mask Class_files/transparent.gif");
    fixupIEPNG("shapeimage_5_link_3", "Mask Class_files/transparent.gif");
    fixupIEPNG("shapeimage_5_link_4", "Mask Class_files/transparent.gif");
    fixupIEPNG("shapeimage_5_link_5", "Mask Class_files/transparent.gif");
    fixupIEPNG("shapeimage_5_link_6", "Mask Class_files/transparent.gif");
    fixupIEPNG("shapeimage_5_link_7", "Mask Class_files/transparent.gif");
    fixupIEPNG("shapeimage_5_link_8", "Mask Class_files/transparent.gif");
    fixupIEPNG("shapeimage_5_link_9", "Mask Class_files/transparent.gif");
    fixupIEPNG("shapeimage_5_link_10", "Mask Class_files/transparent.gif");
    fixupIEPNG("shapeimage_5_link_11", "Mask Class_files/transparent.gif");
    fixupIEPNG("shapeimage_5_link_12", "Mask Class_files/transparent.gif");
    fixupIEPNG("shapeimage_5_link_13", "Mask Class_files/transparent.gif");
    fixupIEPNG("shapeimage_5", "Mask Class_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;
    }
}

