/*!
 * Bloooming roundPic v0.2
 * http://www.bloooming.com/
 *
 * Copyright 2010, Tina Coric
 * All rights reserved
 *
 * Date: Sun Jun 07 22:22:22 2010 -0500
 */


jQuery.fn.bloooming_roundPic = function(num){

	this.each(function(){
		
		var cl = $(this).attr('class');
		
		// use this only for mozilla
		if ($.browser.mozilla) {

			var w = $(this).width();
			var h = $(this).height();
			var pic = $(this).attr('src');
			
		$(this).wrap(function(){
			return '<div class="rounded ' + $(this).attr('class') + '" style="background:url(' + pic + ') no-repeat center center; width: ' + w + 'px; height: ' + h + 'px;" />';
		});
		$(this).css("opacity","0");
				
		}// mozilla
	
	});




}


		

