
	var wlFundamentals = {
	
		"SECURITY DETAILS": {
	
			"Symbol": ["AGD", "The Symbol for this security"]
	
			,
		
			"Issuer Name": ["AUSTRAL GOLD LIMITED", "Full legal name of the issuer"]
	
			,
		
			"Security Type": ["Ordinary", "The type of this security"]
	
			,
		
			"GICS Sector": ["Materials", "Global Industry Classification Standard Sector"]
	
			,
		
			"GICS Industry Group": ["Materials", "Global Industry Classification Standard Industry Group"]
	
			,
		
			"Listed Since": ["18/4/1997", "The date on which a security was/will be first quoted on the market"]
	
		},
		
		"FUNDAMENTALS": {
	
			"Total Class Issue": ["169,139,739", "The total number of securities of this class quoted on the exchange"]
	
			,
		
			"Market Capitalisation": ["$37,210,740", "The current capitalisation of this security (Total Class Issue	x  Current Price)"]
	
		}
		
	};
	

function replaceElementWithFundamentalsTable(element) {
	var table, section, row, cell, sectionKey, key;

	// Build a new table from the data structure given
	table = document.createElement('table');
	table.className = "wlFundamentals";

	for (sectionKey in wlFundamentals) {
		row = table.insertRow(table.rows.length);

		cell = row.insertCell(row.cells.length);
		cell.colSpan = 2;
		cell.className = "wlFundamentalsSectionHeader"
		cell.appendChild(document.createTextNode(sectionKey));

		for (key in wlFundamentals[sectionKey]) {
			row = table.insertRow(table.rows.length);

			cell = row.insertCell(row.cells.length);
			cell.appendChild(document.createTextNode(key));
			cell.title = wlFundamentals[sectionKey][key][1];
			cell.className = "wlFundamentalsKey";

			cell = row.insertCell(row.cells.length);
			cell.appendChild(document.createTextNode(
					wlFundamentals[sectionKey][key][0]));
			cell.className = "wlFundamentalsValue";
		}
	}

	// Replace the given element with our new table.
	element.parentNode.insertBefore(table, element);
	element.parentNode.removeChild(element);
}


