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 Page 2_files/DSB_9672.jpg', '536', '800', 'Mike Bird - Mafioso Chili'); slides[1] = new Slide('../Photo Album Page 2_files/DSB_9691.jpg', '536', '800', 'Danny Alford - Car Crazy Chili'); slides[2] = new Slide('../Photo Album Page 2_files/DSB_9676.jpg', '536', '800', 'David Alford - Kiss My Ace Chili'); slides[3] = new Slide('../Photo Album Page 2_files/DSB_9680.jpg', '536', '800', 'The Reed Family - John (didn’t get a) Deere Chili'); slides[4] = new Slide('../Photo Album Page 2_files/DSB_9687.jpg', '536', '800', ''); slides[5] = new Slide('../Photo Album Page 2_files/DSB_9706.jpg', '536', '800', 'Jamie Haygood - Bigfoot Chili'); slides[6] = new Slide('../Photo Album Page 2_files/DSB_9701.jpg', '800', '536', ''); slides[7] = new Slide('../Photo Album Page 2_files/DSB_9710.jpg', '536', '800', 'Tom Alford - Medicine Man Chili'); slides[8] = new Slide('../Photo Album Page 2_files/DSB_9714.jpg', '536', '800', ''); slides[9] = new Slide('../Photo Album Page 2_files/DSB_9715.jpg', '536', '800', 'Van Van Cleaves - Hunka Hunka Burnin’ Chili'); slides[10] = new Slide('../Photo Album Page 2_files/DSB_9724.jpg', '536', '800', '“Thank you, thank you very much.”'); slides[11] = new Slide('../Photo Album Page 2_files/DSB_9727.jpg', '536', '800', 'The King’s Chain Gang'); slides[12] = new Slide('../Photo Album Page 2_files/DSB_9731.jpg', '536', '800', 'Tom Stimson - Respectable Chili'); slides[13] = new Slide('../Photo Album Page 2_files/DSC_0662.jpg', '800', '532', 'Judge - Don Turnbow'); slides[14] = new Slide('../Photo Album Page 2_files/DSC_0668.jpg', '800', '532', 'Judge - Paul Kowzan'); slides[15] = new Slide('../Photo Album Page 2_files/DSC_0675.jpg', '800', '532', 'Judge - Bob Gechter'); slides[16] = new Slide('../Photo Album Page 2_files/DSC_0682.jpg', '800', '532', 'Judge - Sherri Wolf'); slides[17] = new Slide('../Photo Album Page 2_files/DSC_0690.jpg', '800', '532', 'Judge - Steve “Focus” Lindsay'); slides[18] = new Slide('../Photo Album Page 2_files/DSC_0698.jpg', '800', '532', 'Judge - Eric Hagstrom'); slides[19] = new Slide('../Photo Album Page 2_files/DSC_0699.jpg', '800', '532', 'Judge - Christopher Alford'); slides[20] = new Slide('../Photo Album Page 2_files/DSB_9778.jpg', '536', '800', 'The judges’ table'); slides[21] = new Slide('../Photo Album Page 2_files/DSB_9764.jpg', '536', '800', ''); slides[22] = new Slide('../Photo Album Page 2_files/IMG_9081.jpg', '534', '800', ''); slides[23] = new Slide('../Photo Album Page 2_files/DSC_0651.jpg', '800', '532', ''); slides[24] = new Slide('../Photo Album Page 2_files/DSC_0705.jpg', '800', '532', 'Showmanship - Respectable Chili'); slides[25] = new Slide('../Photo Album Page 2_files/DSC_0716.jpg', '532', '800', 'Showmanship - Hunka Hunka Burnin’ Chili'); slides[26] = new Slide('../Photo Album Page 2_files/DSB_9821.jpg', '536', '800', ''); slides[27] = new Slide('../Photo Album Page 2_files/IMG_9108.jpg', '534', '800', ''); slides[28] = new Slide('../Photo Album Page 2_files/DSB_9828.jpg', '536', '800', ''); slides[29] = new Slide('../Photo Album Page 2_files/DSC_0710.jpg', '532', '800', ''); slides[30] = new Slide('../Photo Album Page 2_files/DSC_0722.jpg', '532', '800', 'Showmanship - Car Crazy Chili'); slides[31] = new Slide('../Photo Album Page 2_files/IMG_9118.jpg', '534', '800', ''); slides[32] = new Slide('../Photo Album Page 2_files/DSB_9836.jpg', '536', '800', ''); slides[33] = new Slide('../Photo Album Page 2_files/DSB_9868.jpg', '536', '800', 'Showmanship - Bigfoot Chili'); slides[34] = new Slide('../Photo Album Page 2_files/DSC_0723.jpg', '532', '800', ''); slides[35] = new Slide('../Photo Album Page 2_files/DSB_9802.jpg', '536', '800', 'Showmanship - Mafioso Chili'); slides[36] = new Slide('../Photo Album Page 2_files/DSB_9803.jpg', '536', '800', ''); slides[37] = new Slide('../Photo Album Page 2_files/DSB_9806.jpg', '536', '800', ''); slides[38] = new Slide('../Photo Album Page 2_files/DSB_9807.jpg', '800', '536', ''); slides[39] = new Slide('../Photo Album Page 2_files/DSB_9808.jpg', '800', '536', ''); slides[40] = new Slide('../Photo Album Page 2_files/DSB_9852.jpg', '536', '800', 'Showmanship - Castaway Chili Company'); slides[41] = new Slide('../Photo Album Page 2_files/DSC_0729.jpg', '800', '532', ''); slides[42] = new Slide('../Photo Album Page 2_files/IMG_9126.jpg', '534', '800', ''); slides[43] = new Slide('../Photo Album Page 2_files/DSB_9856.jpg', '536', '800', 'Showmanship - Medicine Man Chili'); slides[44] = new Slide('../Photo Album Page 2_files/IMG_9135.jpg', '534', '800', ''); slides[45] = new Slide('../Photo Album Page 2_files/IMG_9141.jpg', '534', '800', 'Showmanship - John (didn’t get a) Deere Chili'); slides[46] = new Slide('../Photo Album Page 2_files/DSC_0739.jpg', '800', '532', ''); slides[47] = new Slide('../Photo Album Page 2_files/DSB_9791.jpg', '536', '800', 'Showmanship - Kiss My Ace Chili'); slides[48] = new Slide('../Photo Album Page 2_files/DSC_0748.jpg', '532', '800', ''); slides[49] = new Slide('../Photo Album Page 2_files/DSC_0749.jpg', '532', '800', ''); slides[50] = new Slide('../Photo Album Page 2_files/DSC_0753.jpg', '532', '800', ''); slides[51] = new Slide('../Photo Album Page 2_files/DSC_0757.jpg', '800', '532', ''); slides[52] = new Slide('../Photo Album Page 2_files/DSC_0765.jpg', '800', '532', ''); slides[53] = new Slide('../Photo Album Page 2_files/DSC_0768.jpg', '800', '532', ''); slides[54] = new Slide('../Photo Album Page 2_files/DSB_9908.jpg', '536', '800', 'BEST SHOWMANSHIP - Castaway Chili Company'); slides[55] = new Slide('../Photo Album Page 2_files/IMG_9189.jpg', '534', '800', ''); slides[56] = new Slide('../Photo Album Page 2_files/IMG_9175.jpg', '534', '800', ''); slides[57] = new Slide('../Photo Album Page 2_files/DSB_9904.jpg', '536', '800', 'Best Showmanship 2nd - The King(s)'); slides[58] = new Slide('../Photo Album Page 2_files/DSB_9897.jpg', '536', '800', 'Best Showmanship 3rd - John Deere'); slides[59] = new Slide('../Photo Album Page 2_files/DSB_9891.jpg', '536', '800', 'Best Showmanship HM - Mafioso'); slides[60] = new Slide('../Photo Album Page 2_files/DSB_9894.jpg', '536', '800', 'Best Showmanship HM - Car Crazy Chili'); slides[61] = new Slide('../Photo Album Page 2_files/DSB_9937.jpg', '536', '800', 'BEST CHILI - John (didn’t get a) Deere Chili'); slides[62] = new Slide('../Photo Album Page 2_files/DSB_9929.jpg', '800', '536', 'Best Chili 2nd - Hunka Hunka Burnin’ Chili'); slides[63] = new Slide('../Photo Album Page 2_files/DSB_9926.jpg', '536', '800', 'Best Chili 3rd - Mafioso Chili'); slides[64] = new Slide('../Photo Album Page 2_files/DSB_9916.jpg', '536', '800', 'Best Chili HM - Kiss My Ace Chili'); slides[65] = new Slide('../Photo Album Page 2_files/DSB_9919.jpg', '536', '800', 'Best Chili HM - Medicine Man Chili'); slides[66] = new Slide('../Photo Album Page 2_files/DSB_9923.jpg', '800', '536', 'Best Chili HM - Respectable Chili'); slides[67] = new Slide('../Photo Album Page 2_files/DSB_9924.jpg', '800', '536', 'Best Chili HM - Bigfoot Chili'); 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 += "