// cTd.roundPics.script.js v1.0 
// Copyright (c) 2009 cTd Design 
//
					jQuery(window).load(function() {
						function hasBorderRadius() {
							var d = document.createElement("div").style;
							if (typeof d.borderRadius !== "undefined") return true;
							if (typeof d.WebkitBorderRadius !== "undefined") return true;
							if (typeof d.MozBorderRadius !== "undefined") return true;
							return false;
						};
						//if (hasBorderRadius()) {
							jQuery("img.roundPic").each(function() {
								jQuery(this).wrap('<div class="roundPic">');
								var imgSrc = jQuery(this).attr("src");
								var imgHeight = jQuery(this).height();
								var imgWidth = jQuery(this).width();
								jQuery(this).parent()
								.attr('class', jQuery(this).attr('class'))
								.css("background-image", "url(" + imgSrc + ")")
								.css("background-repeat","no-repeat")
								.css("height", imgHeight + "px")
								.css("width", imgWidth + "px");
								jQuery(this).remove();
							});
						//}
					 });

