jQuery(function($) {                    
    $(document).ready(function(){       
 
        $("#header-meta #rollover img").each(function () {    
            rollsrc = $(this).attr("src");
            rollON = rollsrc.replace(/.png$/gi, "-hover.png");
            $("<img>").attr("src", rollON);
        });
 
        $("#header-meta #rollover a").mouseover(function () {  
            imgsrc = $(this).children("img").attr("src");
            matches = imgsrc.match(/-hover/);
            if (!matches) {
                imgsrcON = imgsrc.replace(/.png$/gi, "-hover.png");
                $(this).children("img").attr("src", imgsrcON);
            }
        });
 
        $("#header-meta #rollover a").mouseout(function () {  
            $(this).children("img").attr("src", imgsrc);
        });
 
    });
});
