// JavaScript Document

	$(window).load(function() {
			//$("div.center-column img").wrap('<div class="imgbox"></div>');
			jQuery.each($("div.center-column img"), function () {
				if ($(this).parent().get(0).tagName.toLowerCase() == 'a') {
				$(this).parent().wrap('<div class="imgbox"></div>');
				} else {
				$(this).wrap('<div class="imgbox"></div>');
				}
			});
				
					
			jQuery.each($(".imgbox"), function() { 
				var i = $(this).find("img");
				$(this).width(i.width())
				.height(i.height())
				.css("float",i.css("float")) 
				.css("marginTop",i.css("marginTop")) 
				.css("marginLeft",i.css("marginLeft")) 
				.css("marginBottom",i.css("marginBottom")) 
				.css("marginRight",i.css("marginRight"));
				i.css({"float":"none",
				       "marginTop":"0",
				       "marginLeft":"0",
				       "marginBottom":"0",
				       "marginRight":"0" });
			});
			$(".imgbox").corner("15px");

	});
