function createCarousel(img){
	if(img.length > 0){
	$carousel = $(".current").find(".imgCarousel");
	if($carousel.children().length == 0){
		$carousel.html("<div style='width:220px; height:150px;'><img src='' alt=''/></div><ul class='hNav imglinks'></ul>");
		for(var i=0; i< img.length; i++){
			$carousel.find(".imglinks").append("<li><a href="+img[i].src+" rel="+img[i].id+">"+(i+1)+"</a></li>");
		};
		$carousel.find("img").attr({src:img[0].src, alt:img[0].alt});
		$carousel.find("a:first").addClass("active");
		$img = $carousel.find("img:first");
		$carousel.find("a").click(function(event){
			event.preventDefault();
			$id = $(this).attr("rel");
			$carousel.find("a.active").removeClass("active");
			$(this).addClass("active");
			$img.fadeOut(300, function(){															
				$(this).attr({src:img[$id-1].src, alt:img[$id-1].alt});
				$(this).load(function(){$(this).fadeIn(300)});
			});
		});
		if(img.length < 2){$(".imgCarousel:visible").find(".imglinks").hide();}
	}
	}else{
		$(".current").find(".oneQuarterCol").css({display:"none"});
		$(".current").find(".sevenTwelfthsCol").removeClass("sevenTwelfthsCol").addClass(".fiveSixthsCol");
	}
};

