function init_fields() {
	$('.w_def_text').each(function() {
		var text = $(this).attr('title');
		var html = '<span>' + text + '</span>';
		$(this).parent().append(html);
		
		if($(this).val() == '') {
			$(this).hide();
			$(this).next().show();
		}
		else {
			$(this).css({'display' : 'block'});
			$(this).next().hide();
		}
	});
	
	$('.w_def_text').live('blur', function() {
		if($(this).val() == '') {
			$(this).hide();
			$(this).next().show();
		}
	});
	
	$('.w_def_text ~ span').live('click', function() {
		$(this).hide();
		$(this).prev().css({'display' : 'block'}).focus();
	});
}

$(document).ready(function() {
	Cufon.replace('.block_about_services .num p', {
		fontFamily : 'helvetica',
		fontStretch : '88%'
	});
	Cufon.replace('.block_general_text .num p', {fontFamily : 'helvetica'});
	Cufon.replace('.block_pricing_table .column .title p', {fontFamily : 'ArialNarrow'});
	
	init_fields();
});
