
		
jQuery(document).ready(function() 
{

	
	// Loop through abbreviated elements
	var abbr = 'C';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = '#444444'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','23');
		
	});
	
		
	
	// Loop through abbreviated elements
	var abbr = 'Cu';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = '#ab7e23'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','4');
		
	});
	
		
	
	// Loop through abbreviated elements
	var abbr = 'Diamond';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = '#00a8ff'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','11');
		
	});
	
		
	
	// Loop through abbreviated elements
	var abbr = 'Au';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = '#d5cc19'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','2');
		
	});
	
		
	
	// Loop through abbreviated elements
	var abbr = 'In';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = '#78a11f'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','17');
		
	});
	
		
	
	// Loop through abbreviated elements
	var abbr = 'Pb';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = '#6b6b6b'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','8');
		
	});
	
		
	
	// Loop through abbreviated elements
	var abbr = 'Li';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = '#688d24'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','21');
		
	});
	
		
	
	// Loop through abbreviated elements
	var abbr = 'Mo';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = '#3b3968'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','6');
		
	});
	
		
	
	// Loop through abbreviated elements
	var abbr = 'Ni';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = '#de6516'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','12');
		
	});
	
		
	
	// Loop through abbreviated elements
	var abbr = 'Oil';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = '#030303'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','10');
		
	});
	
		
	
	// Loop through abbreviated elements
	var abbr = 'Pt';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = '#e1e1e1'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','7');
		
	});
	
		
	
	// Loop through abbreviated elements
	var abbr = 'Potash';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = '#e591e6'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','20');
		
	});
	
		
	
	// Loop through abbreviated elements
	var abbr = 'Ree';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = 'white'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','24');
		
	});
	
		
	
	// Loop through abbreviated elements
	var abbr = 'Ag';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = '#d2cdc7'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','3');
		
	});
	
		
	
	// Loop through abbreviated elements
	var abbr = 'W';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = '#404c9e'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','16');
		
	});
	
		
	
	// Loop through abbreviated elements
	var abbr = 'U';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = '#43e714'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','5');
		
	});
	
		
	
	// Loop through abbreviated elements
	var abbr = 'Zn';
	jQuery('#periodic_table a[abbr=' + abbr + ']').each(function() 
	{
		var chartElement = jQuery(this).parent();
		var colorOfElement = '#898adc'; 
		
		// Initialize color
		chartElement.attr('elementColor', colorOfElement);
		chartElement.css('cursor', 'pointer');
		chartElement.css('background-color', colorOfElement);

		// Add click handler for chart elements.
		chartElement.click(chartElementClick);
		
		jQuery(this).attr('IconID','9');
		
	});
	
		
		
});

