/* CSS3のradiusに対応していない場合の角丸処理 */
$(document).ready(function(){
	if (!($.support.borderRadius)) {
		$('.radius5').each(function(){
			if('none' != $(this).css('border-style')){
				$(this).wrap('<div class="jqCornerWrap"></div>');
				$(this).parent().css({ 'background':$(this).css('border-color'), 'padding':$(this).css('border-width'), 'margin-top':$(this).css('margin-top'), 'margin-bottom':$(this).css('margin-bottom'), 'margin-left':$(this).css('margin-left'), 'margin-right':$(this).css('margin-right') });
				$(this).css({ 'margin':'0', 'border':'none' });
				$(this).parent().corner('5px');
			}
			$(this).corner('5px');
		});
		$('.radius10').each(function(){
			if('none' != $(this).css('border-style')){
				$(this).wrap('<div class="jqCornerWrap"></div>');
				$(this).parent().css({ 'background':$(this).css('border-color'), 'padding':$(this).css('border-width'), 'margin-top':$(this).css('margin-top'), 'margin-bottom':$(this).css('margin-bottom'), 'margin-left':$(this).css('margin-left'), 'margin-right':$(this).css('margin-right') });
				$(this).css({ 'margin':'0', 'border':'none' });
				$(this).parent().corner('10px');
			}
			$(this).corner('10px');
		});
	}
	
});


