// Simple Gallery Script By Mark Ford - Intelligent Lime Ltd. Apr 2009


function gallery() {
	$(".gallery .fullsize li:first-child").show();
	
	$(".gallery .thumbs li").each(function(i) {
        $(this).click(function(){showMainImage(i);});
});

};

function showMainImage(activeImage) {
		activeImage = activeImage + 1;
		var imageToShow = "ul li:nth-child(" + activeImage + ")";
		$('.fullsize li').fadeOut('1000');
		$(imageToShow).fadeIn('1000');
};





function ieRound (){
  $("ul.process li, div#cta div, .product .productinfo, ul.productTypes li, #contactUs input[type='submit'], div#contactDetails, .howItWorks div, .caseStudiesNav, .gallery.main .fullsize").addClass("corners");
  DD_roundies.addRule('.corners', '10px');
}