// Appends the Knowledge Base icon to the end of KB results displayed on the intelligent 404 page.function iconAppend(){var results = $('results404').descendants().select(function(el) {    return el.match('dt a');});results.each(function(el) {    var URL = el.readAttribute('href');    if (URL !== '' && URL.match('/kb/'))    {        el.insert({            after: new Element('img', {                src: '/webimages/icon-knowledgebase.gif',                title: 'This result is from the Knowledge Base site'            })        });    }});}function evenColHeights(els, heightAdjust, callBack){var finalColHeight;// Columns to even up in heightvar elements = $$(els.split('|'));// Build an Array with each column's heightvar colHeights = elements.map(function(el) {    return el.getHeight();});// Find the largest value in the Array of column heights, add the height adjustment if suppliedif (typeof heightAdjust !== 'undefined' && heightAdjust !== 0){    finalColHeight = colHeights.max() + heightAdjust + 'px';}else{    finalColHeight = colHeights.max() + 'px';}// Set each column to be the final column height determined aboveelements.each(function(el) {    el.setStyle({        height: finalColHeight    });});// Optional function to execute after evening the columnsif (!callBack){    callBack;}}function fixPNGs(){Prototype.Browser.IE6 = Prototype.Browser.IE && parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE") + 5), 10) == 6;if (Prototype.Browser.IE6) {    $$('.pngfix').invoke('pngHack');}}// Uses prototype to fix PNG images in IE6Element.addMethods({pngHack: function(elem) {    var el = $(elem);    var transparentGifPath = '/styles/img/blank.gif';    var alphaImgSrc;    var sizingMethod;    if (Prototype.Browser.IE) {        /* if it's an img and a png */        if ((el.match('img')) && (el.src.include('png'))) {            alphaImgSrc = el.src;            sizingMethod = 'scale';            el.src = transparentGifPath;            /* if it's an element with a background png */        } else if (el.getStyle('background-image').include('png')) {            var bgColor = '';            if (el.getStyle('background-color')) {                bgColor = el.getStyle('background-color') + ' ';            }            var elBg = el.getStyle('background-image');            alphaImgSrc = elBg.slice(5, elBg.length - 2);            sizingMethod = 'crop';            el.setStyle({                'background': bgColor + transparentGifPath            });        }        if (alphaImgSrc) {            el.runtimeStyle.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="#{alphaImgSrc}",sizingMethod="#{sizingMethod}")'.interpolate({                alphaImgSrc: alphaImgSrc,                sizingMethod: sizingMethod            });        }    }    return el;}});



