/*!
 * Bloooming Wordpress Smart v0.1
 * http://www.bloooming.com/
 *
 * Copyright 2010, Tina Coric
 * All rights reserved
 *
 * Date: Do Apr 22 22:22:22 2010 -0500
 */


jQuery.fn.bloooming_wpsmart = function(){

	this.each(function(i){
			
		var val = $(this).html();	
		
		if (val.indexOf('*wide*') >= 1) {

			var newval = val.replace('*wide*','');
			
			$(this).parent().removeClass('col').addClass('col_double');
			$(this).html(newval);

			val = newval;			
		} 
		
		if (val.indexOf('*divider*') >= 1) {

			var newval = val.replace('*divider*','');
			
			$(this).parent().addClass('divider');
			$(this).html(newval);
			
			val = newval;
			
		} 
		
		if (val.indexOf('*quote*') >= 1) {
			
			var id = $(this).parent().attr('id');

			var newval = val.replace('*quote*','');
			
			$('#'+id+' p').addClass('quote').addClass('fixed');
			$('#'+id+' p').append('<span class="quoteend"></span>');
			

			$(this).html(newval);
			
			val = newval;
			
		} 
		
		

	});
}
