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

slides = new Array();
slides[0] = new Slide('../Necklaces_files/Picture 7.jpg', '591', '729', 'Egyptian Inspired lapis and pearls with 18k gold vermeil accents and gold filled chain.\u000d$165');
slides[1] = new Slide('../Necklaces_files/Picture 13_1.jpg', '772', '579', 'Petite New Born Opal Beads bracketed by 18K  gold columns on 14K goldfill chain. adjustable 15-18 inches. $55\u000d\u000dSpecial Occasion Companion Piece Five Large Opaline Beads on 14k Goldfill Chain $85');
slides[2] = new Slide('../Necklaces_files/Picture 17.jpg', '523', '274', 'Goldstone necklace \n( $ 70) with matching earrings ($30)');
slides[3] = new Slide('../Necklaces_files/Picture 18.jpg', '541', '399', 'Amertrine and Amethyst Beads On Sterling Silver Chain with Signature Infinity Loops $110');
slides[4] = new Slide('../Necklaces_files/Picture 19.jpg', '494', '344', 'Faceted Carnelian Necklace with Silver handmade Beads - (See closeup) $165');
slides[5] = new Slide('../Necklaces_files/Picture 20.jpg', '491', '518', 'Close up of Carnelian and Silver detail');
slides[6] = new Slide('../Necklaces_files/Picture 21.jpg', '569', '451', 'Brown Moss Agate Necklace With Swarovski Jet bead accent  on Sterling Sivler chain $85');
slides[7] = new Slide('../Necklaces_files/Picture 24.jpg', '680', '687', 'Simple but elegant- everyone needs one. Faceted black semi-precious stone beads on a sterling silver chain. $225 a set with matching earrings');
slides[8] = new Slide('../Necklaces_files/Picture 26.jpg', '633', '422', 'B&W Harmony - Onyx and pearl with matching earrings\u000d$!75 set');
slides[9] = new Slide('../Necklaces_files/Picture 30.jpg', '537', '309', 'Onyx Pendant with Opaline Teardrop and Firey CZ accents. $85');
slides[10] = new Slide('../Necklaces_files/Picture 34.jpg', '649', '800', 'Close up of Pendant');
isPureISOLatin1 = true;
contentEncodingConstant = 4;
feedbackURL = "TODO";
showFeedbackButton = false;
feedbackEnabled = true;

function onPageLoad()
{
    detectBrowser();
    fixupIEPNGBG("id1");
    fixupIEPNGBG("id2");
    fixupIEPNGBG("id3");
    fixupIEPNGBG("id4");
    fixupIEPNGBG("id5");
    fixupIEPNGBG("id6");
    fixupIEPNGBG("navbar_0_normal");
    fixupIEPNGBG("navbar_0_rollover");
    fixupIEPNGBG("navbar_1_normal");
    fixupIEPNGBG("navbar_1_rollover");
    fixupIEPNGBG("navbar_2_normal");
    fixupIEPNGBG("navbar_2_rollover");
    fixupIEPNGBG("navbar_3_normal");
    fixupIEPNGBG("navbar_3_rollover");
    fixupIEPNGBG("navbar_4_normal");
    fixupIEPNGBG("navbar_4_rollover");
    fixupIEPNG("id7", "Necklaces_files/transparent.gif");
    fixupIEPNG("id8", "Necklaces_files/transparent.gif");
    fixupIEPNG("id9", "Necklaces_files/transparent.gif");
    fixupIEPNGBG("id10");
    fixupIEPNGBG("id11");
    fixupIEPNG("id12", "Necklaces_files/transparent.gif");
    fixupIEPNGBG("id13");
    fixupIEPNGBG("id14");
    fixupIEPNG("id15", "Necklaces_files/transparent.gif");
    fixupIEPNGBG("id16");
    fixupIEPNGBG("id17");
    fixupIEPNG("id18", "Necklaces_files/transparent.gif");
    fixupIEPNGBG("id19");
    fixupIEPNGBG("id20");
    fixupIEPNG("id21", "Necklaces_files/transparent.gif");
    fixupIEPNGBG("id22");
    fixupIEPNGBG("id23");
    fixupIEPNG("id24", "Necklaces_files/transparent.gif");
    fixupIEPNGBG("id25");
    fixupIEPNGBG("id26");
    fixupIEPNG("id27", "Necklaces_files/transparent.gif");
    fixupIEPNGBG("id28");
    fixupIEPNGBG("id29");
    fixupIEPNG("id30", "Necklaces_files/transparent.gif");
    fixupIEPNGBG("id31");
    fixupIEPNGBG("id32");
    fixupIEPNG("id33", "Necklaces_files/transparent.gif");
    fixupIEPNGBG("id34");
    fixupIEPNGBG("id35");
    fixupIEPNG("id36", "Necklaces_files/transparent.gif");
    fixupIEPNGBG("id37");
    fixupIEPNGBG("id38");
    fixupIEPNG("id39", "Necklaces_files/transparent.gif");
    fixupIEPNGBG("id40");
    fixupIEPNGBG("id41");
    fixupIEPNG("id42", "Necklaces_files/transparent.gif");
    fixupIEPNG("id43", "Necklaces_files/transparent.gif");
    return true;
}

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

var windowsInternetExplorer = false;
function detectBrowser()
{
    windowsInternetExplorer = false;
    var appVersion = navigator.appVersion;
    if ((appVersion.indexOf("MSIE") != -1) &&
        (appVersion.indexOf("Macintosh") == -1))
    {
        windowsInternetExplorer = true;
    }
}

var smallTransparentGif = "";
function fixupIEPNG(strImageID, transparentGif) 
{
    smallTransparentGif = transparentGif;
    if (windowsInternetExplorer)
    {
        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(strImageID) 
{
    if (windowsInternetExplorer)
    {
        var oBlock = document.getElementById(strImageID);
        if (oBlock)
        {
            var currentBGStyle = oBlock.style.background;
            var urlStart = currentBGStyle.indexOf("url(");
            var urlEnd = currentBGStyle.indexOf(")", urlStart);
            var imageURL = currentBGStyle.substring(urlStart + 4, urlEnd);
            var filterStyle =
                "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
                imageURL +
                "', sizingMethod='crop');";

            oBlock.style.filter = filterStyle;
            oBlock.style.background = "";
        }
    }
}

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

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

