jQuery(document).ready(function() {

	jQuery("a.rolloverPNG img").each(function() {
		// Set the original src
		
		rollsrc = jQuery(this).attr("src");
		rollON = rollsrc.replace(/.png/,'-over.png');
		jQuery("<img>").attr("src", rollON);
	});
	
	// Navigation rolloverPNGs
	jQuery("a.rolloverPNG").mouseover(function(){
		imgsrc = jQuery(this).children("img").attr("src");
		matches = imgsrc.match(/-over/);
		
		// don't do the rolloverPNG if state is already ON
		if (!matches) {
		imgsrcON = imgsrc.replace(/.png/,'-over.png'); // strip off extension
		jQuery(this).children("img").attr("src", imgsrcON);
		}
		
	});
	
	jQuery("a.rolloverPNG").mouseout(function(){
		jQuery(this).children("img").attr("src", imgsrc);
	});
			

});

