$(function() {	// don't init gallery if it consists of a single photo	if($("div.image").length > 1) {		// wrap images		$("p#project-count").replaceWith('<p id="gallery-count" class="col one"><em></em> <span>1/1</span></p>');		$('<div id="gallery-navigation" class="col three"><p><a href="#" id="ant">&larr;</a><td>         <td/><a href="#" id="sig">&rarr;</a></p></div>').insertAfter("p#gallery-count");		$("div.image").wrapAll("<div id='image-wrapper'><div id='image-holder'></div></div>");				// init gallery: Gallery.init(imageHolder, imageWrapperWidth, imageCountHolder, nextButton, prevButton)		Gallery.init($("div#image-holder"), 560, $("p#gallery-count").children("span")[0], $("a#sig"), $("a#ant"));				$("div.image").show();	}});