$(document).ready(function() {// image replacement	if($('#logo')[0].offsetWidth == 450) { // if images are enabled		$('h2.img').each(function() {			string = $(this).text();			filename = string.toLowerCase().replace(/ /g, '-').replace(/([^0-9a-z-])/g,'');			$(this).html('<img src="images/' + filename + '.gif" alt="' + string + '" />');		});	}						   });