$(document).ready(function(){
						   function copyPaste(from, to)
						   {
							   var content = $(from).html();
							   $(to).html(content);
						   }
						   function copyPasteAvg(from,number,to)
						   {
							   var content = $(from).html();
							   var parseContent = parseFloat(content);
							   var result = parseContent*number;
							   $(to).html(result);
						   }
						   function persent(input)
						   {
							   var parseInput = parseFloat($(input).html());
							   return parseInput/100;
						   }
						   function parseNumber(input)
						   {
							   return parseFloat($(input).html());
						   }
						   function parseValue(input)
						   {
							   return parseFloat($(input+' input').attr('value'));
						   }
						   function parsePersent(input)
						   {
							   return parseFloat($(input+' input').attr('value'))/100;
						   }
						   copyPaste('#summary #a4', '#cost_details #a3');
						   copyPaste('#summary #a5', '#cost_details #a4');
						   copyPaste('#summary #c5', '#cost_details #b4');
						   copyPaste('#summary #d5', '#cost_details #c4');
						   copyPaste('#summary #a6', '#cost_details #a5');
						   copyPaste('#summary #e6', '#cost_details #d5');
						   copyPaste('#summary #a7', '#cost_details #a6');
						   copyPaste('#summary #c7', '#cost_details #b6');
						   copyPaste('#summary #d7', '#cost_details #c6');
						   copyPaste('#summary #e7', '#cost_details #d6');
						   copyPaste('#summary #d8', '#cost_details #c7');
						   copyPaste('#summary #e8', '#cost_details #d7');
						   copyPaste('#summary #c9', '#cost_details #b8');
						   copyPaste('#summary #d9', '#cost_details #c8');
						   copyPaste('#summary #e9', '#cost_details #d8');
						   copyPaste('#cost_details #b10', '#cost_details #c10');
						   copyPaste('#cost_details #b11', '#cost_details #c11');
						   copyPaste('#cost_details #b11', '#cost_details #d11');
						   copyPaste('#cost_details #b12', '#cost_details #c12');
						   copyPaste('#cost_details #b12', '#cost_details #d12');
						   copyPaste('#cost_details #b13', '#cost_details #c13');
						   copyPaste('#cost_details #b13', '#cost_details #d13');
						   copyPasteAvg('#cost_details #b14', 1.25, '#cost_details #c14');
						   $('#cost_details #b15').html(
														(persent('#cost_details #b11')*
														persent('#cost_details #b12')*
														persent('#cost_details #b13')*
														parseNumber('#cost_details #b14')).toFixed(2)
														);
						   $('#cost_details #c15').html(
														(persent('#cost_details #c11')*
														persent('#cost_details #c12')*
														persent('#cost_details #c13')*
														parseNumber('#cost_details #c14')).toFixed(2)
														);
						   $('#cost_details #d15').html(
														(persent('#cost_details #d11')*
														persent('#cost_details #d12')*
														persent('#cost_details #d13')*
														parseNumber('#cost_details #d14')).toFixed(2)
														);
						   $('#cost_details #b21').html(
														((
														 parseNumber('#cost_details #b18')+parseValue('#cost_details #b19')
														 )
														*parseValue('#cost_details #b20')).toFixed(2)+'$'
														);
						   $('#cost_details #c21').html(
														((
														 parseNumber('#cost_details #c18')+parseValue('#cost_details #c19')
														 )
														*parseValue('#cost_details #c20')).toFixed(2)+'$'
														);
						   $('#cost_details #d21').html(
														(
														 parseNumber('#cost_details #d18')
														*parseValue('#cost_details #d20')).toFixed(2)+'$'
														);
						   copyPaste('#cost_details #b24', '#cost_details #c24');
						   copyPaste('#cost_details #b24', '#cost_details #d24');
						   copyPaste('#cost_details #b25', '#cost_details #c25');
						   copyPaste('#cost_details #b25', '#cost_details #d25');
						   $('#cost_details #b26').html(
														(parseValue('#cost_details #b24')+
														parseValue('#cost_details #b25')).toFixed(2)+'$'
														);
						   $('#cost_details #c26').html(
														(parseValue('#cost_details #c24')+
														parseValue('#cost_details #c25')).toFixed(2)+'$'
														);
						   $('#cost_details #d26').html(
														(parseValue('#cost_details #d24')+
														parseValue('#cost_details #d25')).toFixed(2)+'$'
														);
						   copyPaste('#cost_details #b29', '#cost_details #c29');
						   copyPaste('#cost_details #b29', '#cost_details #d29');
						   copyPaste('#cost_details #b30', '#cost_details #c30');
						   copyPaste('#cost_details #b30', '#cost_details #d30');
						   $('#cost_details #b31').html(
														(
														 (parseValue('#cost_details #b29')*(1-persent('#cost_details #b11')))
														 +parseNumber('#cost_details #b30')
														 ).toFixed(2)+'$'
														);
						   $('#cost_details #c31').html(
														(
														 (parseValue('#cost_details #c29')*(1-persent('#cost_details #c11')))
														 +parseNumber('#cost_details #c30')
														 ).toFixed(2)+'$'
														);
						   $('#cost_details #d31').html(
														(
														 (parseValue('#cost_details #d29')*(1-persent('#cost_details #d11')))
														 +parseNumber('#cost_details #d30')
														 ).toFixed(2)+'$'
														);
						   copyPaste('#cost_details #b39', '#cost_details #c39');
						   copyPaste('#cost_details #b41', '#cost_details #c41');
						   copyPaste('#cost_details #a38', '#cost_details #a42');
						   copyPaste('#cost_details #b42', '#cost_details #c42');
						   $('#cost_details #b43').html(
														(parseValue('#cost_details #b39')/parseNumber('#cost_details #b34'))
														.toFixed(2)+'$'
														);
						   $('#cost_details #c43').html(
														(parseValue('#cost_details #c39')/parseNumber('#cost_details #c34'))
														.toFixed(2)+'$'
														);
						   $('#cost_details #d43').html(
														(parseValue('#cost_details #d40')/parseNumber('#cost_details #d35'))
														.toFixed(2)+'$'
														);
						   $('#cost_details #b44').html(
														(parseValue('#cost_details #b41')/parseNumber('#cost_details #b36'))
														.toFixed(2)+'$'
														);
						   $('#cost_details #c44').html(
														(parseValue('#cost_details #c41')/parseNumber('#cost_details #c36'))
														.toFixed(2)+'$'
														);
						   $('#cost_details #b45').html(
														((parseValue('#cost_details #b42')*parseValue('#cost_details #b38'))
														/parseNumber('#cost_details #b37')).toFixed(2)+'$'
														);
						   $('#cost_details #c45').html(
														((parseValue('#cost_details #c42')*parseValue('#cost_details #c38'))
														/parseNumber('#cost_details #c37')).toFixed(2)+'$'
														);
						   $('#cost_details #d45').html(
														(parseValue('#cost_details #d42')/parseNumber('#cost_details #d37'))
														.toFixed(2)+'$'
														);
						   $('#cost_details #b46').html(
														(parseNumber('#cost_details #b43')+
														parseNumber('#cost_details #b44')+
														parseNumber('#cost_details #b45')).toFixed(2)+'$'
														);
						   $('#cost_details #c46').html(
														(parseNumber('#cost_details #c43')+
														parseNumber('#cost_details #c44')+
														parseNumber('#cost_details #c45')).toFixed(2)+'$'
														);
						   $('#cost_details #d46').html(
														(parseNumber('#cost_details #d43')+
														parseNumber('#cost_details #d45')).toFixed(2)+'$'
														);
						   $('#cost_details #b47').html(
														(parseNumber('#cost_details #b46')*
														parseNumber('#cost_details #b15')).toFixed(2)+'$'
														);
						   $('#cost_details #c47').html(
														(parseNumber('#cost_details #c46')*
														parseNumber('#cost_details #c15')).toFixed(2)+'$'
														);
						   $('#cost_details #d47').html(
														(parseNumber('#cost_details #d46')*
														parseNumber('#cost_details #d15')).toFixed(2)+'$'
														);
						   copyPaste('#cost_details #b50', '#cost_details #c50');
						   copyPaste('#cost_details #b50', '#cost_details #d50');
						   copyPaste('#cost_details #b52', '#cost_details #c52');
						   copyPaste('#cost_details #b52', '#cost_details #d52');
						   copyPaste('#cost_details #b53', '#cost_details #c53');
						   copyPaste('#cost_details #b53', '#cost_details #d53');
						   copyPaste('#cost_details #b54', '#cost_details #c54');
						   copyPaste('#cost_details #b54', '#cost_details #d54');
						   copyPaste('#cost_details #b55', '#cost_details #c55');
						   copyPaste('#cost_details #b55', '#cost_details #d55');
						   $('#cost_details #b56').html(
														parseValue('#cost_details #b53')*
														parseValue('#cost_details #b54')*
														parseValue('#cost_details #b55')
														);
						   $('#cost_details #c56').html(
														parseValue('#cost_details #c53')*
														parseValue('#cost_details #c54')*
														parseValue('#cost_details #c55')
														);
						   $('#cost_details #d56').html(
														parseValue('#cost_details #d53')*
														parseValue('#cost_details #d54')*
														parseValue('#cost_details #d55')
														);
						   $('#cost_details #b57').html(
														(
														 parseValue('#cost_details #b50')
														 *0.15
														 ).toFixed(2)+'$'
														);
						   $('#cost_details #c57').html(
														(
														 parseValue('#cost_details #c50')
														 *0.15
														 ).toFixed(2)+'$'
														);
						   $('#cost_details #d57').html(
														(
														 parseValue('#cost_details #d50')
														 *0.15
														 ).toFixed(2)+'$'
														);
						   copyPaste('#cost_details #b58', '#cost_details #c58');
						   copyPaste('#cost_details #b58', '#cost_details #d58');
						   $('#cost_details #b59').html(
														((parseValue('#cost_details #b50')*parsePersent('#cost_details #b58'))
														+
														(parseValue('#cost_details #b50')/parseValue('#cost_details #b52')))
														.toFixed(2)+'$'
														);
						   $('#cost_details #c59').html(
														((parseValue('#cost_details #c50')*parsePersent('#cost_details #c58'))
														+
														(parseValue('#cost_details #c50')/parseValue('#cost_details #c52')))
														.toFixed(2)+'$'
														);
						   $('#cost_details #d59').html(
														((parseValue('#cost_details #d50')*parsePersent('#cost_details #d58'))
														+
														(parseValue('#cost_details #d50')/parseValue('#cost_details #d52')))
														.toFixed(2)+'$'
														);
						   $('#cost_details #b60').html(
														(parseNumber('#cost_details #b59')/parseNumber('#cost_details #b56'))
														.toFixed(2)+'$'
														);
						   $('#cost_details #c60').html(
														(parseNumber('#cost_details #c59')/parseNumber('#cost_details #c56'))
														.toFixed(2)+'$'
														);
						   $('#cost_details #d60').html(
														(parseNumber('#cost_details #d59')/parseNumber('#cost_details #d56'))
														.toFixed(2)+'$'
														);
						   copyPaste('#cost_details #b21', '#summary #c11');
						   copyPaste('#cost_details #c21', '#summary #d11');
						   copyPaste('#cost_details #d21', '#summary #e11');
						   
						   copyPaste('#cost_details #b26', '#summary #c12');
						   copyPaste('#cost_details #c26', '#summary #d12');
						   copyPaste('#cost_details #d26', '#summary #e12');
						   
						   copyPaste('#cost_details #b31', '#summary #c13');
						   copyPaste('#cost_details #c31', '#summary #d13');
						   copyPaste('#cost_details #d31', '#summary #e13');
						   
						   copyPaste('#cost_details #b47', '#summary #c14');
						   copyPaste('#cost_details #c47', '#summary #d14');
						   copyPaste('#cost_details #d47', '#summary #e14');
						   
						   copyPaste('#cost_details #b60', '#summary #c15');
						   copyPaste('#cost_details #c60', '#summary #d15');
						   copyPaste('#cost_details #d60', '#summary #e15');
						   
						   $('#summary #c17').html(
														(parseNumber('#summary #c11')+
														parseNumber('#summary #c12')+
														parseNumber('#summary #c13')+
														parseNumber('#summary #c14')+
														parseNumber('#summary #c15')).toFixed(2)+'$'
														);
						   $('#summary #d17').html(
														(parseNumber('#summary #d11')+
														parseNumber('#summary #d12')+
														parseNumber('#summary #d13')+
														parseNumber('#summary #d14')+
														parseNumber('#summary #d15')).toFixed(2)+'$'
														);
						   $('#summary #e17').html(
														(parseNumber('#summary #e11')+
														parseNumber('#summary #e12')+
														parseNumber('#summary #e13')+
														parseNumber('#summary #e14')+
														parseNumber('#summary #e15')).toFixed(2)+'$'
														);
						   copyPaste('#cost_details #b15', '#summary #c22');
						   copyPaste('#cost_details #c15', '#summary #d22');
						   copyPaste('#cost_details #d15', '#summary #e22');
						   $('#summary #c24').html(
														(parseNumber('#summary #c11')/
														parseNumber('#summary #c22')).toFixed(2)+'$'
														);
						   $('#summary #c25').html(
														(parseNumber('#summary #c12')/
														parseNumber('#summary #c22')).toFixed(2)+'$'
														);
						   $('#summary #c26').html(
														(parseNumber('#summary #c13')/
														parseNumber('#summary #c22')).toFixed(2)+'$'
														);
						   $('#summary #c27').html(
														(parseNumber('#summary #c14')/
														parseNumber('#summary #c22')).toFixed(2)+'$'
														);
						   $('#summary #c28').html(
														(parseNumber('#summary #c15')/
														parseNumber('#summary #c22')).toFixed(2)+'$'
														);
						   $('#summary #d24').html(
														(parseNumber('#summary #d11')/
														parseNumber('#summary #d22')).toFixed(2)+'$'
														);
						   $('#summary #d25').html(
														(parseNumber('#summary #d12')/
														parseNumber('#summary #d22')).toFixed(2)+'$'
														);
						   $('#summary #d26').html(
														(parseNumber('#summary #d13')/
														parseNumber('#summary #c22')).toFixed(2)+'$'
														);
						   $('#summary #d27').html(
														(parseNumber('#summary #d14')/
														parseNumber('#summary #d22')).toFixed(2)+'$'
														);
						   $('#summary #d28').html(
														(parseNumber('#summary #d15')/
														parseNumber('#summary #d22')).toFixed(2)+'$'
														);
						   $('#summary #e24').html(
														(parseNumber('#summary #e11')/
														parseNumber('#summary #e22')).toFixed(2)+'$'
														);
						   $('#summary #e25').html(
														(parseNumber('#summary #e12')/
														parseNumber('#summary #e22')).toFixed(2)+'$'
														);
						   $('#summary #e26').html(
														(parseNumber('#summary #e13')/
														parseNumber('#summary #e22')).toFixed(2)+'$'
														);
						   $('#summary #e27').html(
														(parseNumber('#summary #e14')/
														parseNumber('#summary #e22')).toFixed(2)+'$'
														);
						   $('#summary #e28').html(
														(parseNumber('#summary #e15')/
														parseNumber('#summary #e22')).toFixed(2)+'$'
														);
						   $('#summary #c30').html(
														(parseNumber('#summary #c24')+
														parseNumber('#summary #c25')+
														parseNumber('#summary #c26')+
														parseNumber('#summary #c27')+
														parseNumber('#summary #c28')).toFixed(2)+'$'
														);
						   $('#summary #d30').html(
														(parseNumber('#summary #d24')+
														parseNumber('#summary #d25')+
														parseNumber('#summary #d26')+
														parseNumber('#summary #d27')+
														parseNumber('#summary #d28')).toFixed(2)+'$'
														);
						   $('#summary #e30').html(
														(parseNumber('#summary #e24')+
														parseNumber('#summary #e25')+
														parseNumber('#summary #e26')+
														parseNumber('#summary #e27')+
														parseNumber('#summary #e28')).toFixed(2)+'$'
														);
						   copyPaste('#summary #a4', '#estimate #a2');
						   copyPaste('#summary #a5', '#estimate #a3');
						   copyPaste('#summary #c5', '#estimate #c3');
						   copyPaste('#summary #d5', '#estimate #d3');
						   copyPaste('#summary #a6', '#estimate #a4');
						   copyPaste('#summary #a7', '#estimate #a5');
						   copyPaste('#summary #d5', '#estimate #f4');
						   copyPaste('#summary #c7', '#estimate #c5');
						   copyPaste('#summary #d7', '#estimate #d5');
						   copyPaste('#summary #e7', '#estimate #f5');
						   copyPaste('#summary #d8', '#estimate #d6');
						   copyPaste('#summary #e8', '#estimate #f6');
						   
						   copyPaste('#estimate #c9', '#estimate #d9');
						   copyPaste('#estimate #c10', '#estimate #d10');
						   copyPaste('#estimate #c11', '#estimate #d11');
						   
						   copyPaste('#cost_details #b9', '#estimate #c14');
						   
						   copyPaste('#cost_details #b11', '#estimate #c19');
						   copyPaste('#cost_details #c11', '#estimate #d19');
						   copyPaste('#cost_details #d11', '#estimate #f19');
						   copyPaste('#cost_details #b12', '#estimate #c20');
						   copyPaste('#cost_details #c12', '#estimate #d20');
						   copyPaste('#cost_details #d12', '#estimate #f20');
						   copyPaste('#cost_details #b13', '#estimate #c21');
						   copyPaste('#cost_details #c13', '#estimate #d21');
						   copyPaste('#cost_details #d13', '#estimate #f21');
						   copyPaste('#cost_details #b56', '#estimate #c22');
						   copyPaste('#estimate #c22', '#estimate #d22');
						   copyPaste('#estimate #c22', '#estimate #f22');
						   copyPaste('#estimate #c23', '#estimate #d23');
						   copyPaste('#estimate #c23', '#estimate #f23');
						   copyPaste('#cost_details #b14', '#estimate #c25');
						   copyPaste('#cost_details #c14', '#estimate #d25');
						   copyPaste('#cost_details #d14', '#estimate #f25');
						   copyPaste('#cost_details #b15', '#estimate #c27');
						   copyPaste('#cost_details #c15', '#estimate #d27');
						   copyPaste('#cost_details #d15', '#estimate #f27');
						   
						   $('#estimate #c32').html(
														parseNumber('#estimate #c9')+
														parseNumber('#estimate #c10')
														);
						   $('#estimate #d32').html(
														parseNumber('#estimate #d9')+
														parseNumber('#estimate #d10')
														);
						   $('#estimate #f32').html(
														parseNumber('#estimate #f9')+
														parseNumber('#estimate #f10')
														);
						   $('#estimate #c33').html(
														(
														 parseNumber('#estimate #c32')/
														parseNumber('#estimate #c27')
														).toFixed(2));
						   $('#estimate #d33').html(
														(
														 parseNumber('#estimate #d32')/
														parseNumber('#estimate #d27')
														).toFixed(2));
						   $('#estimate #f33').html(
														(
														 parseNumber('#estimate #f32')/
														parseNumber('#estimate #f27')
														).toFixed(2));
						   $('#estimate #c34').html(
														(
														 parseNumber('#estimate #c23')/
														parseNumber('#estimate #c33')
														).toFixed(2));
						   $('#estimate #d34').html(
														(
														 parseNumber('#estimate #d23')/
														parseNumber('#estimate #d33')
														).toFixed(2));
						   $('#estimate #f34').html(
														(
														 parseNumber('#estimate #f23')/
														parseNumber('#estimate #f33')
														).toFixed(2));
						   
						   function mathUpdate()
						   {
							   $('#cost_details #b15').html(
														(persent('#cost_details #b11')*
														persent('#cost_details #b12')*
														persent('#cost_details #b13')*
														parseNumber('#cost_details #b14')).toFixed(2)
														);
						   $('#cost_details #c15').html(
														(persent('#cost_details #c11')*
														persent('#cost_details #c12')*
														persent('#cost_details #c13')*
														parseNumber('#cost_details #c14')).toFixed(2)
														);
						   $('#cost_details #d15').html(
														(persent('#cost_details #d11')*
														persent('#cost_details #d12')*
														persent('#cost_details #d13')*
														parseNumber('#cost_details #d14')).toFixed(2)
														);
						   $('#cost_details #b21').html(
														((
														 parseNumber('#cost_details #b18')+parseValue('#cost_details #b19')
														 )
														*parseValue('#cost_details #b20')).toFixed(2)+'$'
														);
						   $('#cost_details #c21').html(
														((
														 parseNumber('#cost_details #c18')+parseValue('#cost_details #c19')
														 )
														*parseValue('#cost_details #c20')).toFixed(2)+'$'
														);
						   $('#cost_details #d21').html(
														(
														 parseNumber('#cost_details #d18')
														*parseValue('#cost_details #d20')).toFixed(2)+'$'
														);
$('#cost_details #b26').html(
														(parseValue('#cost_details #b24')+
														parseValue('#cost_details #b25')).toFixed(2)+'$'
														);
						   $('#cost_details #c26').html(
														(parseValue('#cost_details #c24')+
														parseValue('#cost_details #c25')).toFixed(2)+'$'
														);
						   $('#cost_details #d26').html(
														(parseValue('#cost_details #d24')+
														parseValue('#cost_details #d25')).toFixed(2)+'$'
														);
$('#cost_details #b31').html(
														(
														 (parseValue('#cost_details #b29')*(1-persent('#cost_details #b11')))
														 +parseNumber('#cost_details #b30')
														 ).toFixed(2)+'$'
														);
						   $('#cost_details #c31').html(
														(
														 (parseValue('#cost_details #c29')*(1-persent('#cost_details #c11')))
														 +parseNumber('#cost_details #c30')
														 ).toFixed(2)+'$'
														);
						   $('#cost_details #d31').html(
														(
														 (parseValue('#cost_details #d29')*(1-persent('#cost_details #d11')))
														 +parseNumber('#cost_details #d30')
														 ).toFixed(2)+'$'
														);
$('#cost_details #b43').html(
														(parseValue('#cost_details #b39')/parseNumber('#cost_details #b34'))
														.toFixed(2)+'$'
														);
						   $('#cost_details #c43').html(
														(parseValue('#cost_details #c39')/parseNumber('#cost_details #c34'))
														.toFixed(2)+'$'
														);
						   $('#cost_details #d43').html(
														(parseValue('#cost_details #d40')/parseNumber('#cost_details #d35'))
														.toFixed(2)+'$'
														);
						   $('#cost_details #b44').html(
														(parseValue('#cost_details #b41')/parseNumber('#cost_details #b36'))
														.toFixed(2)+'$'
														);
						   $('#cost_details #c44').html(
														(parseValue('#cost_details #c41')/parseNumber('#cost_details #c36'))
														.toFixed(2)+'$'
														);
						   $('#cost_details #b45').html(
														((parseValue('#cost_details #b42')*parseValue('#cost_details #b38'))
														/parseNumber('#cost_details #b37')).toFixed(2)+'$'
														);
						   $('#cost_details #c45').html(
														((parseValue('#cost_details #c42')*parseValue('#cost_details #c38'))
														/parseNumber('#cost_details #c37')).toFixed(2)+'$'
														);
						   $('#cost_details #d45').html(
														(parseValue('#cost_details #d42')/parseNumber('#cost_details #d37'))
														.toFixed(2)+'$'
														);
						   $('#cost_details #b46').html(
														(parseNumber('#cost_details #b43')+
														parseNumber('#cost_details #b44')+
														parseNumber('#cost_details #b45')).toFixed(2)+'$'
														);
						   $('#cost_details #c46').html(
														(parseNumber('#cost_details #c43')+
														parseNumber('#cost_details #c44')+
														parseNumber('#cost_details #c45')).toFixed(2)+'$'
														);
						   $('#cost_details #d46').html(
														(parseNumber('#cost_details #d43')+
														parseNumber('#cost_details #d45')).toFixed(2)+'$'
														);
						   $('#cost_details #b47').html(
														(parseNumber('#cost_details #b46')*
														parseNumber('#cost_details #b15')).toFixed(2)+'$'
														);
						   $('#cost_details #c47').html(
														(parseNumber('#cost_details #c46')*
														parseNumber('#cost_details #c15')).toFixed(2)+'$'
														);
						   $('#cost_details #d47').html(
														(parseNumber('#cost_details #d46')*
														parseNumber('#cost_details #d15')).toFixed(2)+'$'
														);
$('#cost_details #b56').html(
														parseValue('#cost_details #b53')*
														parseValue('#cost_details #b54')*
														parseValue('#cost_details #b55')
														);
						   $('#cost_details #c56').html(
														parseValue('#cost_details #c53')*
														parseValue('#cost_details #c54')*
														parseValue('#cost_details #c55')
														);
						   $('#cost_details #d56').html(
														parseValue('#cost_details #d53')*
														parseValue('#cost_details #d54')*
														parseValue('#cost_details #d55')
														);
						   $('#cost_details #b57').html(
														(
														 parseValue('#cost_details #b50')
														 *0.15
														 ).toFixed(2)+'$'
														);
						   $('#cost_details #c57').html(
														(
														 parseValue('#cost_details #c50')
														 *0.15
														 ).toFixed(2)+'$'
														);
						   $('#cost_details #d57').html(
														(
														 parseValue('#cost_details #d50')
														 *0.15
														 ).toFixed(2)+'$'
														);
$('#cost_details #b59').html(
														((parseValue('#cost_details #b50')*parsePersent('#cost_details #b58'))
														+
														(parseValue('#cost_details #b50')/parseValue('#cost_details #b52')))
														.toFixed(2)+'$'
														);
						   $('#cost_details #c59').html(
														((parseValue('#cost_details #c50')*parsePersent('#cost_details #c58'))
														+
														(parseValue('#cost_details #c50')/parseValue('#cost_details #c52')))
														.toFixed(2)+'$'
														);
						   $('#cost_details #d59').html(
														((parseValue('#cost_details #d50')*parsePersent('#cost_details #d58'))
														+
														(parseValue('#cost_details #d50')/parseValue('#cost_details #d52')))
														.toFixed(2)+'$'
														);
						   $('#cost_details #b60').html(
														(parseNumber('#cost_details #b59')/parseNumber('#cost_details #b56'))
														.toFixed(2)+'$'
														);
						   $('#cost_details #c60').html(
														(parseNumber('#cost_details #c59')/parseNumber('#cost_details #c56'))
														.toFixed(2)+'$'
														);
						   $('#cost_details #d60').html(
														(parseNumber('#cost_details #d59')/parseNumber('#cost_details #d56'))
														.toFixed(2)+'$'
														);
copyPaste('#cost_details #b21', '#summary #c11');
						   copyPaste('#cost_details #c21', '#summary #d11');
						   copyPaste('#cost_details #d21', '#summary #e11');
						   
						   copyPaste('#cost_details #b26', '#summary #c12');
						   copyPaste('#cost_details #c26', '#summary #d12');
						   copyPaste('#cost_details #d26', '#summary #e12');
						   
						   copyPaste('#cost_details #b31', '#summary #c13');
						   copyPaste('#cost_details #c31', '#summary #d13');
						   copyPaste('#cost_details #d31', '#summary #e13');
						   
						   copyPaste('#cost_details #b47', '#summary #c14');
						   copyPaste('#cost_details #c47', '#summary #d14');
						   copyPaste('#cost_details #d47', '#summary #e14');
						   
						   copyPaste('#cost_details #b60', '#summary #c15');
						   copyPaste('#cost_details #c60', '#summary #d15');
						   copyPaste('#cost_details #d60', '#summary #e15');
						   
						   $('#summary #c17').html(
														(parseNumber('#summary #c11')+
														parseNumber('#summary #c12')+
														parseNumber('#summary #c13')+
														parseNumber('#summary #c14')+
														parseNumber('#summary #c15')).toFixed(2)+'$'
														);
						   $('#summary #d17').html(
														(parseNumber('#summary #d11')+
														parseNumber('#summary #d12')+
														parseNumber('#summary #d13')+
														parseNumber('#summary #d14')+
														parseNumber('#summary #d15')).toFixed(2)+'$'
														);
						   $('#summary #e17').html(
														(parseNumber('#summary #e11')+
														parseNumber('#summary #e12')+
														parseNumber('#summary #e13')+
														parseNumber('#summary #e14')+
														parseNumber('#summary #e15')).toFixed(2)+'$'
														);
						   copyPaste('#cost_details #b15', '#summary #c22');
						   copyPaste('#cost_details #c15', '#summary #d22');
						   copyPaste('#cost_details #d15', '#summary #e22');
						   $('#summary #c24').html(
														(parseNumber('#summary #c11')/
														parseNumber('#summary #c22')).toFixed(2)+'$'
														);
						   $('#summary #c25').html(
														(parseNumber('#summary #c12')/
														parseNumber('#summary #c22')).toFixed(2)+'$'
														);
						   $('#summary #c26').html(
														(parseNumber('#summary #c13')/
														parseNumber('#summary #c22')).toFixed(2)+'$'
														);
						   $('#summary #c27').html(
														(parseNumber('#summary #c14')/
														parseNumber('#summary #c22')).toFixed(2)+'$'
														);
						   $('#summary #c28').html(
														(parseNumber('#summary #c15')/
														parseNumber('#summary #c22')).toFixed(2)+'$'
														);
						   $('#summary #d24').html(
														(parseNumber('#summary #d11')/
														parseNumber('#summary #d22')).toFixed(2)+'$'
														);
						   $('#summary #d25').html(
														(parseNumber('#summary #d12')/
														parseNumber('#summary #d22')).toFixed(2)+'$'
														);
						   $('#summary #d26').html(
														(parseNumber('#summary #d13')/
														parseNumber('#summary #c22')).toFixed(2)+'$'
														);
						   $('#summary #d27').html(
														(parseNumber('#summary #d14')/
														parseNumber('#summary #d22')).toFixed(2)+'$'
														);
						   $('#summary #d28').html(
														(parseNumber('#summary #d15')/
														parseNumber('#summary #d22')).toFixed(2)+'$'
														);
						   $('#summary #e24').html(
														(parseNumber('#summary #e11')/
														parseNumber('#summary #e22')).toFixed(2)+'$'
														);
						   $('#summary #e25').html(
														(parseNumber('#summary #e12')/
														parseNumber('#summary #e22')).toFixed(2)+'$'
														);
						   $('#summary #e26').html(
														(parseNumber('#summary #e13')/
														parseNumber('#summary #e22')).toFixed(2)+'$'
														);
						   $('#summary #e27').html(
														(parseNumber('#summary #e14')/
														parseNumber('#summary #e22')).toFixed(2)+'$'
														);
						   $('#summary #e28').html(
														(parseNumber('#summary #e15')/
														parseNumber('#summary #e22')).toFixed(2)+'$'
														);
						   $('#summary #c30').html(
														(parseNumber('#summary #c24')+
														parseNumber('#summary #c25')+
														parseNumber('#summary #c26')+
														parseNumber('#summary #c27')+
														parseNumber('#summary #c28')).toFixed(2)+'$'
														);
						   $('#summary #d30').html(
														(parseNumber('#summary #d24')+
														parseNumber('#summary #d25')+
														parseNumber('#summary #d26')+
														parseNumber('#summary #d27')+
														parseNumber('#summary #d28')).toFixed(2)+'$'
														);
						   $('#summary #e30').html(
														(parseNumber('#summary #e24')+
														parseNumber('#summary #e25')+
														parseNumber('#summary #e26')+
														parseNumber('#summary #e27')+
														parseNumber('#summary #e28')).toFixed(2)+'$'
														);
copyPaste('#estimate #c9', '#estimate #d9');
						   copyPaste('#estimate #c10', '#estimate #d10');
						   copyPaste('#estimate #c11', '#estimate #d11');
						   
						   copyPaste('#cost_details #b9', '#estimate #c14');
						   
						   copyPaste('#cost_details #b11', '#estimate #c19');
						   copyPaste('#cost_details #c11', '#estimate #d19');
						   copyPaste('#cost_details #d11', '#estimate #f19');
						   copyPaste('#cost_details #b12', '#estimate #c20');
						   copyPaste('#cost_details #c12', '#estimate #d20');
						   copyPaste('#cost_details #d12', '#estimate #f20');
						   copyPaste('#cost_details #b13', '#estimate #c21');
						   copyPaste('#cost_details #c13', '#estimate #d21');
						   copyPaste('#cost_details #d13', '#estimate #f21');
						   copyPaste('#cost_details #b56', '#estimate #c22');
						   copyPaste('#estimate #c22', '#estimate #d22');
						   copyPaste('#estimate #c22', '#estimate #f22');
						   copyPaste('#estimate #c23', '#estimate #d23');
						   copyPaste('#estimate #c23', '#estimate #f23');
						   copyPaste('#cost_details #b14', '#estimate #c25');
						   copyPaste('#cost_details #c14', '#estimate #d25');
						   copyPaste('#cost_details #d14', '#estimate #f25');
						   copyPaste('#cost_details #b15', '#estimate #c27');
						   copyPaste('#cost_details #c15', '#estimate #d27');
						   copyPaste('#cost_details #d15', '#estimate #f27');
						   
						   $('#estimate #c32').html(
														parseNumber('#estimate #c9')+
														parseNumber('#estimate #c10')
														);
						   $('#estimate #d32').html(
														parseNumber('#estimate #d9')+
														parseNumber('#estimate #d10')
														);
						   $('#estimate #f32').html(
														parseNumber('#estimate #f9')+
														parseNumber('#estimate #f10')
														);
						   $('#estimate #c33').html(
														(
														 parseNumber('#estimate #c32')/
														parseNumber('#estimate #c27')
														).toFixed(2));
						   $('#estimate #d33').html(
														(
														 parseNumber('#estimate #d32')/
														parseNumber('#estimate #d27')
														).toFixed(2));
						   $('#estimate #f33').html(
														(
														 parseNumber('#estimate #f32')/
														parseNumber('#estimate #f27')
														).toFixed(2));
						   $('#estimate #c34').html(
														(
														 parseNumber('#estimate #c23')/
														parseNumber('#estimate #c33')
														).toFixed(2));
						   $('#estimate #d34').html(
														(
														 parseNumber('#estimate #d23')/
														parseNumber('#estimate #d33')
														).toFixed(2));
						   $('#estimate #f34').html(
														(
														 parseNumber('#estimate #f23')/
														parseNumber('#estimate #f33')
														).toFixed(2));
						   }
						   $('input').keyup(
											function()
											{
												mathUpdate();
											}
											);
						  });
