// this file is for misc javascript code
// that doesn't need its own file.

// nifty plugin for adding png overlays (jquery required)
// example usage: $("#photos img").addOverlay("pngFile.png");
if (jQuery) {
    jQuery.fn.addOverlay = function(overlay) {
            return this.each(function() {
                this.style.background = "url(" + this.src + ")";
                if (!jQuery.browser.msie || (jQuery.browser.msie && parseInt(jQuery.browser.version) >= 7)) {
                    this.src = overlay;
                } else {
                    this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', src='" + overlay + "')";
                }
            });
        };
}