(function ($) {
	$(function () {
		// IE <8
		if ($.browser.msie && $.browser.version != '8.0') {
			// rounded corners
			if (typeof DD_roundies != 'undefined') {
				DD_roundies.addRule('input.submit, a.button, #header li a.current, .control input', '5px');
				DD_roundies.addRule('#primaryContent .secondary .available-tests', '7px');
			}
			// IE6 only
			if ($.browser.version == '6.0') {
				// :first-child		
				var $firstChildren = $('#primaryContent .secondary .available-tests .test:first-child, #header li:first-child, #footer ul li:first-child, #primaryContent ul.categories li:first-child');
				$firstChildren.addClass('first-child');
		
				// fix pngs
				if (typeof DD_belatedPNG !== 'undefined') {
					var fixMeString = '.CM-pngFix, #primaryContent .primary .how-it-works, #primaryContent .primary .how-it-works ul, #primaryContent .secondary .test .price, #primaryContent .secondary .test ul, #primaryContent .callout h3, img';
					DD_belatedPNG.fix(fixMeString);
				}
			}
		}
	});
})(jQuery);