function correctPNGImage(image, width, height, imgPNGURL) { // IE6 & below if(document.all && !window.opera && typeof window.XMLHttpRequest == "undefined") { correctPNG(image, width, height, imgPNGURL); } else if(imgPNGURL != null) { image.src = imgPNGURL; } } // Correctly handle PNG transparency in Win IE 5.5 or higher function correctPNG(img, width, height, imgPNGURL) { if(imgPNGURL != null) img.src = imgPNGURL; var imgID = (img.id) ? "id='" + img.id + "' " : ""; var imgClass = (img.className) ? "class='" + img.className + "' " : ""; var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "; var imgStyle = "display:inline-block;" + img.style.cssText; if(img.align == "left") imgStyle = "float:left;" + imgStyle; if(img.align == "right") imgStyle = "float:right;" + imgStyle; if(img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle; var strNewHTML = ""; img.outerHTML = strNewHTML; return true; } if(typeof popup != 'function') { function popup(url) { var myWindow; var width = 600; var height = 400; var left = parseInt((screen.availWidth/2) - (width/2)); var top = parseInt((screen.availHeight/2) - (height/2)); var windowFeatures = "width=" + width + ",height=" + height + ",status,resizable,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top; myWindow = window.open(url, "subWind", windowFeatures); myWindow.focus(); return false; } }