function support_value( $obj ){
	var $text = jQuery( $obj ).parent().parent().find('.support').text();
	return jQuery.trim( $text.substr( 0 , 2 ) );
}

function uptime_value( $obj ){
	var $text = jQuery( $obj ).parent().parent().find('.uptime').text();
	return jQuery.trim( $text.substr( 0 , 2 ) );
}

function features_value( $obj ){
	var $text = jQuery( $obj ).parent().parent().find('.features').text();
	return jQuery.trim( $text.substr( 0 , 2 ) );
}

function pricing_value( $obj ){
	var $text = jQuery( $obj ).parent().parent().find('.pricing').text();
	return jQuery.trim( $text.substr( 0 , 2 ) );
}

jQuery(document).ready(
	function(){
		$supports = jQuery('.support_image');
		jQuery.each(
			$supports,
			function( index , value ){
				jQuery(this).html( '<img src="http://thedesignershost.com/wp-content/themes/TDH/images/stars/' + support_value( this ) + 'star.png" />' );
			}
		);
		$uptime = jQuery('.uptime_image');
		jQuery.each(
			$uptime,
			function( index , value ){
				jQuery(this).html( '<img src="http://thedesignershost.com/wp-content/themes/TDH/images/stars/' + uptime_value( this ) + 'star.png" />' );
			}
		);
		$features = jQuery('.features_image');
		jQuery.each(
			$features,
			function( index , value ){
				jQuery(this).html( '<img src="http://thedesignershost.com/wp-content/themes/TDH/images/stars/' + features_value( this ) + 'star.png" />' );
			}
		);
		$pricing = jQuery('.pricing_image');
		jQuery.each(
			$pricing,
			function( index , value ){
				jQuery(this).html( '<img src="http://thedesignershost.com/wp-content/themes/TDH/images/stars/' + pricing_value( this ) + 'star.png" />' );
			}
		);
	}
);

