
	var wlFundamentals = {
	
		"Security Details": {
	
			"Symbol": ["WWA", "The Symbol for this security"]
	
			,
		
			"Issuer Name": ["WRIDGWAYS AUSTRALIA LIMITED", "Full legal name of the issuer"]
	
			,
		
			"Security Type": ["Ordinary", "The type of this security"]
	
			,
		
			"GICS Sector": ["Industrials", "Global Industry Classification Standard Sector"]
	
			,
		
			"GICS Industry Group": ["Transportation", "Global Industry Classification Standard Industry Group"]
	
			,
		
			"First Active Date": ["22/4/1999", "The date on which the security was first entered into the ASX security database"]
	
			,
		
			"First Quoted Date": ["19/5/1999", "The date on which a security was/will be first quoted on the market"]
	
		},
		
		"Fundamentals": {
	
			"Total Class Issue": ["32,000,000", "The total number of securities of this class quoted on the exchange"]
	
			,
		
			"Market Capitalisation": ["$77,760,000", "The current capitalisation of this security (Total Class Issue	x  Current Price)"]
	
			,
		
			"Asset Backing": ["$0.19", "Net Tangible Assets as last reported by the company, adjusted for dilution"]
	
			,
		
			"Earnings Rate Per Share": ["$0.2197", "Rolling 12 months earnings per share"]
	
			,
		
			"Earnings Yield": ["9.041%", "Percentage of (Earnings Rate per share / Last Price)"]
	
			,
		
			"Price/Earnings Ratio": ["11.061", "Last Price / Earnings Rate per share"]
	
			,
		
			"52week High/Low": ["3.750 / 1.980", "FIXME"]
	
		},
		
		"Dividends": {
	
			"Dividend Rate Per Share": ["$0.1700", "Rolling 12 months dividend rate per share"]
	
			,
		
			"Dividend Yield": ["6.996%", "Percentage of (Dividend Rate per Share / Current Price)"]
	
			,
		
			"Current Dividend Amount": ["$0.110000", "Value of most recent dividend in cents per security (net of witholding tax)"]
	
			,
		
			"Ex Date": ["15/9/2008", "The date from which a security holder will retain their rights to the benefits associated with owning the security"]
	
			,
		
			"Dividend Type": ["Final", "Interim or Final"]
	
			,
		
			"Dividend Payable Date": ["26/9/2008", "The date when the most recently announced dividend becomes/became payable"]
	
			,
		
			"Franked Percent": ["100.00%", "The percentage of the dividend on which tax has already been paid"]
	
			,
		
			"Gross Dividend Amount": ["$0.2428", "Gross dividend amount"]
	
		}
		
	};
	

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);
}

