jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}

jQuery(document).ready(function(){

	jQuery(".rounded-block-white," + 
	       ".rounded-block-white-transparent," + 
	       ".rounded-block-dark-grey-small," +
		   ".rounded-block-dark-gray-small," +
		   ".rounded-block-cyan-small," +
		   ".rounded-block-light-grey-small," +
		   ".rounded-block-light-gray-small," +
		   ".headline-rounded-corner-tl-br").each(	
		function (){						
			jQuery(this).prepend('<div class="tl"></div><div class="bl"></div><div class="tr"></div><div class="br"></div>');
		}		
	);
	
	if(jQuery.browser.msie && jQuery.browser.version < 7)
	{
		//Relocate the corners for IE6 ....
		jQuery("div.bl,div.br").each(	
			function (){						
				jQuery(this).css("top",(jQuery(this).parent().height() + jQuery(this).height() + 11) + 'px');
			}		
		);
		jQuery("div.tr,div.br").each(	
			function (){						
				jQuery(this).css("left",(jQuery(this).parent().width() + jQuery(this).width() - 10) + 'px');
			}		
		);
	}

});
