function imageDropshadow() { return false; if (window.navigator.userAgent.search(/safari/i) == -1) { for (var i = byTag("IMG"), offsetX = 3, offsetY = 3, x = 0, l = i.length; x < l; x ++) { if (i[x].className.match(/dropshadow/)) { var d = create("IMG"); d.src = "images/fadebg.gif"; d.style.position = "absolute"; if (! document.all) { d.style.opacity = 0.6; d.style.top = position(i[x], "Top") + offsetY + "px"; d.style.left = position(i[x], "Left") + offsetX + "px"; } else { d.style.filter = "alpha(opacity:60)"; d.style.top = i[x].offsetTop + offsetY + "px"; d.style.left = i[x].offsetLeft + offsetX + "px"; i[x].parentNode.style.position = "relative"; } d.style.width = i[x].offsetWidth + "px"; d.style.height = (i[x].offsetHeight) + "px"; i[x].parentNode.appendChild(d); d.style.zIndex = 0; i[x].style.zIndex = 2; i[x].style.position = "relative"; // increase length as now we have these images included in our collection l ++; } } } } Event.add(window, "load", imageDropshadow, false);