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('../Photo Album_files/DCP_2230.jpg', '534', '800', ''); slides[1] = new Slide('../Photo Album_files/DCP_2231.jpg', '534', '800', ''); slides[2] = new Slide('../Photo Album_files/DCP_2233.jpg', '800', '534', ''); slides[3] = new Slide('../Photo Album_files/DCP_2234.jpg', '534', '800', ''); slides[4] = new Slide('../Photo Album_files/DCP_2235.jpg', '534', '800', ''); slides[5] = new Slide('../Photo Album_files/DCP_2236.jpg', '800', '534', ''); slides[6] = new Slide('../Photo Album_files/DCP_2237.jpg', '800', '534', ''); slides[7] = new Slide('../Photo Album_files/DCP_2238.jpg', '534', '800', ''); slides[8] = new Slide('../Photo Album_files/DCP_2239.jpg', '534', '800', ''); slides[9] = new Slide('../Photo Album_files/DCP_2240.jpg', '534', '800', ''); slides[10] = new Slide('../Photo Album_files/DCP_2241.jpg', '534', '800', ''); slides[11] = new Slide('../Photo Album_files/DCP_2242.jpg', '534', '800', ''); slides[12] = new Slide('../Photo Album_files/DCP_2243.jpg', '534', '800', ''); slides[13] = new Slide('../Photo Album_files/DCP_2244.jpg', '534', '800', ''); slides[14] = new Slide('../Photo Album_files/DCP_2245.jpg', '800', '534', ''); slides[15] = new Slide('../Photo Album_files/DCP_2246.jpg', '534', '800', ''); slides[16] = new Slide('../Photo Album_files/DCP_2247.jpg', '534', '800', ''); slides[17] = new Slide('../Photo Album_files/DCP_2248.jpg', '534', '800', ''); slides[18] = new Slide('../Photo Album_files/DCP_2249.jpg', '800', '534', ''); slides[19] = new Slide('../Photo Album_files/DCP_2250.jpg', '534', '800', ''); slides[20] = new Slide('../Photo Album_files/DCP_2251.jpg', '534', '800', ''); slides[21] = new Slide('../Photo Album_files/DCP_2252.jpg', '534', '800', ''); slides[22] = new Slide('../Photo Album_files/DCP_2253.jpg', '534', '800', ''); slides[23] = new Slide('../Photo Album_files/DCP_2254.jpg', '534', '800', ''); slides[24] = new Slide('../Photo Album_files/DCP_2255.jpg', '534', '800', ''); slides[25] = new Slide('../Photo Album_files/DCP_2256.jpg', '534', '800', ''); slides[26] = new Slide('../Photo Album_files/DCP_2257.jpg', '534', '800', ''); slides[27] = new Slide('../Photo Album_files/DCP_2258.jpg', '534', '800', ''); slides[28] = new Slide('../Photo Album_files/DCP_2259.jpg', '534', '800', ''); slides[29] = new Slide('../Photo Album_files/DCP_2260.jpg', '534', '800', ''); slides[30] = new Slide('../Photo Album_files/DCP_2261.jpg', '534', '800', ''); slides[31] = new Slide('../Photo Album_files/DCP_2262.jpg', '534', '800', ''); slides[32] = new Slide('../Photo Album_files/DCP_2263.jpg', '534', '800', ''); slides[33] = new Slide('../Photo Album_files/DCP_2264.jpg', '534', '800', ''); slides[34] = new Slide('../Photo Album_files/DCP_2265.jpg', '534', '800', ''); slides[35] = new Slide('../Photo Album_files/DCP_2266.jpg', '534', '800', ''); slides[36] = new Slide('../Photo Album_files/DCP_2267.jpg', '534', '800', ''); slides[37] = new Slide('../Photo Album_files/DCP_2268.jpg', '534', '800', ''); slides[38] = new Slide('../Photo Album_files/DCP_2269.jpg', '534', '800', ''); slides[39] = new Slide('../Photo Album_files/DCP_2270.jpg', '534', '800', ''); slides[40] = new Slide('../Photo Album_files/DCP_2271.jpg', '534', '800', ''); slides[41] = new Slide('../Photo Album_files/DCP_2272.jpg', '534', '800', ''); slides[42] = new Slide('../Photo Album_files/DCP_2273.jpg', '534', '800', ''); slides[43] = new Slide('../Photo Album_files/DCP_2274.jpg', '534', '800', ''); slides[44] = new Slide('../Photo Album_files/DCP_2275.jpg', '534', '800', ''); slides[45] = new Slide('../Photo Album_files/DCP_2276.jpg', '534', '800', ''); slides[46] = new Slide('../Photo Album_files/DCP_2277.jpg', '534', '800', ''); slides[47] = new Slide('../Photo Album_files/DCP_2278.jpg', '534', '800', ''); slides[48] = new Slide('../Photo Album_files/DCP_2279.jpg', '534', '800', ''); slides[49] = new Slide('../Photo Album_files/DCP_2280.jpg', '534', '800', ''); slides[50] = new Slide('../Photo Album_files/DCP_2282.jpg', '534', '800', ''); slides[51] = new Slide('../Photo Album_files/DCP_2283.jpg', '534', '800', ''); slides[52] = new Slide('../Photo Album_files/DCP_2284.jpg', '534', '800', ''); slides[53] = new Slide('../Photo Album_files/DCP_2287.jpg', '534', '800', ''); slides[54] = new Slide('../Photo Album_files/DCP_2288.jpg', '534', '800', ''); slides[55] = new Slide('../Photo Album_files/DCP_2289.jpg', '534', '800', ''); slides[56] = new Slide('../Photo Album_files/DCP_2290.jpg', '534', '800', ''); slides[57] = new Slide('../Photo Album_files/DCP_2291.jpg', '534', '800', ''); slides[58] = new Slide('../Photo Album_files/DCP_2292.jpg', '534', '800', ''); slides[59] = new Slide('../Photo Album_files/RedHotChiliChix.jpg', '663', '800', ''); slides[60] = new Slide('../Photo Album_files/TomAlford.jpg', '756', '800', ''); slides[61] = new Slide('../Photo Album_files/MCStevieA.jpg', '801', '519', ''); slides[62] = new Slide('../Photo Album_files/StrutForMeBaby.jpg', '801', '370', ''); slides[63] = new Slide('../Photo Album_files/KebMo.jpg', '721', '800', ''); slides[64] = new Slide('../Photo Album_files/HogHead.jpg', '600', '800', ''); slides[65] = new Slide('../Photo Album_files/BeansOnTheSide.jpg', '737', '801', ''); slides[66] = new Slide('../Photo Album_files/DeadEyeTeam.jpg', '600', '800', ''); slides[67] = new Slide('../Photo Album_files/DavesBetterHalf.jpg', '610', '801', ''); slides[68] = new Slide('../Photo Album_files/JudgesRule2.jpg', '543', '800', ''); slides[69] = new Slide('../Photo Album_files/TresGeneracionesDePajaros.jpg', '570', '800', ''); slides[70] = new Slide('../Photo Album_files/Crims.jpg', '800', '600', ''); slides[71] = new Slide('../Photo Album_files/washers.jpg', '600', '800', ''); slides[72] = new Slide('../Photo Album_files/ProudToBeBurgundy.jpg', '800', '600', ''); slides[73] = new Slide('../Photo Album_files/Trophies.jpg', '600', '800', ''); slides[74] = new Slide('../Photo Album_files/BirdBoys.jpg', '706', '800', ''); slides[75] = new Slide('../Photo Album_files/FirstPlace.jpg', '765', '800', ''); slides[76] = new Slide('../Photo Album_files/DosRojos.jpg', '800', '650', ''); slides[77] = new Slide('../Photo Album_files/UglyChili.jpg', '600', '800', ''); slides[78] = new Slide('../Photo Album_files/RespectableRunnerUp.jpg', '800', '764', ''); slides[79] = new Slide('../Photo Album_files/SirGary.jpg', '800', '525', ''); slides[80] = new Slide('../Photo Album_files/WannaShootHoops.jpg', '800', '445', ''); slides[81] = new Slide('../Photo Album_files/YoungUns.jpg', '800', '699', ''); slides[82] = new Slide('../Photo Album_files/ScoreKeeperAlden.jpg', '800', '628', ''); 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 += "
"; } if (extraWidth != 0) { newMarkup += "
"; } } if (extraHeight != 0) { for (currentCol = 0; currentCol < wholeCols; currentCol++) { newMarkup += "
"; } if (extraWidth != 0) { newMarkup += "
"; } } 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