
 
		var pcp_label_conversion = function (){		

				$(".label").each(function(){
						var old_v=$(this).html();
						if(idot_correlation_parameter_coverter.hasOwnProperty(old_v)){
							//$(this).parent().append("<div>"+idot_correlation_parameter_coverter[old_v]+"</div>");
							$(this).text(idot_correlation_parameter_coverter[old_v]);
						}
					});
				$(".label").css({
					fontSize: 13 
				});
		};
		
		
		
		var som_pcp_label_norm={				
				"sed_ratio_h_f":"Sedimentation ",
				"sed_ratio_n":"Sedimentation degree",
				"stc_n":"Stream/culvert ratio",
				  "sed_area_h":"Sediment area",
				  "stc":"Stream/culvert ratio",
				  "sed_ratio_h":"Sedimentation",
				  "blockage":"Total blockage",
				  "pctcolluvsedcat":"Colluvial sediment",
				  "pcteolcrscat":"Eolian sediment",
				  "pctow2006catrp100":"Open water corridor-cat",
				  "pctconif2006catrp100":"Evergreen forest",
				  "pctow2006wsrp100":"Open water corridor",
				  "pctconif2006wsrp100":"Evergreen forest Corridor",
				  "pctshrb2006wsrp100":"Shrub/scrub",
				  "pctow2006cat":"Open water",
				  "pctbl2011cat":"Barren landcover",				  
				  "total_blockage":"Culvert blockage",
				  "total_blockage_area":"Culvert blockage area",				
				  "stc_sd":"Stream/culvert ratio",				  
				  "pctshrb2006catrp100":"shrub/scrub corridor",
				  "pctgrs2006catrp100":"Grass land corridor",				 
				  "pcthbwet2011cat":"herbaceous wetland",
				  "popden2010ws":"",
				  "angle":"Angle of incidence",
				  "up_local_sinuosity":"Upstream sinuosity",
				  "cur":"Sharp entrance curve",
				  "year_built":"Built year",
				  "culvert_length":"Structure length",
				  "culvert_width":"Structure width", 
				  "immediate_curv":"Upstream curve", 
				  "divergence":"divergence",
				  "upstrea_stru_m":"Upstream structure",
				  "down_local_sinuosity":"Downstream sinuosity",
				  "claycat":"Clay ",
				  "sandcat":"Sand ",
				  "pctdecid2006wsrp100":"Forest(cat)",
				  "pctconif2006wsrp100": "Evergreen (cat)",  
				  "damdenscat":"Dam density",
				  "pctag2006slp20cat":"Agriculture on slopes 20% (corridor)",
				  "pctimp2006cat":"Mean imperviousness (Cat)",
				  "bfiws":"Baseflow ",
				  "runoffws":"Runoff",
				  "q100":"Design discharge (cfs)",
				  "Q100_n":"Design discharge (cfs)",
				  "q200":"200-yr Discharge (cfs)",
				  "q500":"500-yr Discharge (cfs)",
				  "q50":"50-yr Discharge (cfs)",
				  "q25":"25-yr Discharge (cfs)",
				  "q10":"10-yr Discharge (cfs)", 
				  "nhdslope":"Channel slope", 
				  "precipws":"30-yr mean precip (mm)",
				  "culvert_to_stream":"Culvert to Stream Angle (degree)",
				  "pcteolcrsws":"Eolian Sediment",
				  "pctcolluvsedws":"Colluvial Sediment",
				  "waterway_adequacy":"waterway_adequacy",
				  "tree_cd":"Corridor Tree ",
				  "tall_tree_cd":"Corridor Forest ",
				  "grass_cd":"Corridor Grass ",
				  "agc_cd":"Corridor Agr-land ",
				  "agland_fullws_perc":"Watershed Agr-land ",
				  "grass_fullws_prec":"Watershed Grass ",
				  "rusle_mean":"Mean soil loss (local watershed)",  
				  "rusle_majo":"Major soil loss",
				  "ruslesum_fullws_val":"Mean soil loss (full watershed)",
				  "ruslesum_fullws_val":"Sum soil loss (full watershed)",
				  "area_km":"watershed area (km)",			  
						
						'sed_n_id':'culvert_id',
						'culvert_sed-ratio-n-key':'Sediment degree',
						'culvert_stc-n':'SCW ratio',						
						'culvert_sed-ratio-n':'Sediment degree',
						'culvert_sed-ratio-n-key':'Sediment degree',
						'culvert_sed-class-n':'Sed Class',
						'agc_cd_n':'Ag-land',
						'rusle_mean_n':'RUSLE',
						'rusle_sum_n':'RUSLE',
						'sed_ratio_n_max':'Min blockage',
						'sed_ratio_n_min':'Max blockage',
						'sed_n_description':'Culvert description',
						'culvert_sed-n-sus-design':'Sustainable design',
						'culver_id_':'culvert_id',
						'culvert_x':'x',
						'culvert_y':'y',
						'culvert_year-built':'build year',
						'culvert_id':'culvert_id',
						'dbf_file_name':'culvert_id',
						'up2500_100mb_area':'LULC area',
						'up2500_100mb_urban':'Urban land',
						'up2500_100mb_barren':'Barren land',
						'up2500_100mb_ag':'Ag-land',
						'up2500_100mb_ag-n':'Corridor ag-land',
						'up2500_100mb_grass':'Grass land',  
						'up2500_100mb_forest':'Corridor forestry',
						'up2500_100mb_wetland':'Wetland',
						'up2500_100mb_water':'Water',
						'up2500_100mb_decisuous':'Decisuous woods',
						'up2500_100mb_coniferous':'Coniferous woods',
						'up2500_100mb_rusle-count':'RUSLE count',
						'up2500_100mb_rusle-area':'RUSLE area',
						'up2500_100mb_rusle-mean':'RUSLE mean',
						'up2500_100mb_rusle-std':'RUSLE STD',
						'up2500_100mb_rusle-sum':'RUSLE sum',
						'up2500_100mb_rusle-majority':'RUSLE majority',
						'up2500_100mb_rusle-median':'RUSLE median',
						'up2500_100mb_area_km':'area(km)',
						'up2500_100mb_channel-density':'Local channel density',
						'fl_100mb_area':'LULC area',
						'fl_100mb_urban':'Urban land',
						'fl_100mb_barren':'Barren land',  
						'fl_100mb_ag':'Ag-land',
						'fl_100mb_grass':'Grass land',
						'fl_100mb_forest':'Forestry',
						'fl_100mb_wetland':'Wetland',
						'fl_100mb_water':'Water',
						'fl_100mb_decisuous':'Decisuous woods',
						'fl_100mb_coniferous':'Coniferous woods',
						'fl_100mb_rusle-count':'RUSLE counts',
						'fl_100mb_rusle-area':'RUSLE area',
						'fl_100mb_rusle-mean':'RUSLE mean',
						'fl_100mb_rusle-majority':'RUSLE majority',
						'fl_100mb_rusle-median':'RUSLE median',
						'fl_100mb_rusle-std':'RUSLE STD',
						'fl_100mb_rusle-sum':'RUSLE sum',
						'fl_100mb_area_km':'area(km)',
						'fl_100mb_channel-density':'Full channel density',
						'up2500_500mb_forest':'Forestry',
						'fl_ws_culvert-id':'Culvert ID',
						'fl_ws_area-acre':'Watershed area(ac)',
						'fl_ws_area-km':'Watershed area(km)',
						'fl_ws_rusle-count':'RUSLE cell',
						'fl_ws_rusle-area':'RUSLE area',
						'fl_ws_rusle-mean':'RUSLE mean',
						'fl_ws_rusle-std':'RUSLE STD',
						'fl_ws_rusle-sum':'RUSLE sum',
						'fl_ws_rusle-majority':'RUSLE majority',
						'fl_ws_rusle-median':'RUSLE median',
						'fl_ws_area':'LULC area',
						'fl_ws_urban':'Urban land',
						'fl_ws_barren':'Barren land',
						'fl_ws_ag':'Ag land',
						'up2500_100mb_ag_n':'Ag land',						
						'fl_ws_grass':'Grass',						
						'fl_ws_forest':'Forestry',
						'up2500_100mb_forest':'Forestry',
						'fl_ws_wetland':'Wetland',
						'fl_ws_water':'Water',
						'fl_ws_decisuous':'Decisuous woods',
						'fl_ws_coniferous':'Coniferous woods',
						'culvert_id':'culvert_id',
						'slope_full':'Full channel slope',
						'upstream_length_full':'Full channel length',
						'slope_local':'Local channel slope',
						'slope_1km_upstream':'Channel slope (1km upstream)',
						'slope_5km_upstream':'Channel slope (2km upstream)',
						'error':'error notes',
						'fl_100mb_lsfactor-mean':'LS factor',
						'fl_100mb_kfactor-mean':'Soil erodibility',		
						'up2500_500mb_channel-density':'Channel density',
						'Q500_n':'Design discharge',
						'Q100_n':'Design discharge',
						'Q200_n':'Design discharge',
						'landform_region':'Landform regions',						
						'fl_ws_channel_density':'Drainage density',
						'sinuosity': 'Stream sinuosity',
						"stream_width": 'Stream width',
						'cluster_id':'Clusters'
			};
			
			var pcp_label_conversion_som = function (type){		

				var dictionary_selection={
					"normal":som_pcp_label_norm,
					"real":window["idot_correlation_parameter_coverter"]
				}
				
				$(".label").each(function(){
						var old_v=$(this).html();
						if(dictionary_selection[type].hasOwnProperty(old_v)){
							//$(this).parent().append("<div>"+idot_correlation_parameter_coverter[old_v]+"</div>");
							$(this).text(dictionary_selection[type][old_v]);
						}
					});
				$(".label").css({
					fontSize: 13 
				});
		};