


var defObject = new Object();

defObject["co"] = "<h4>Company</h4>";
defObject["vam"] = "<h4>Value Added &pound;m</h4>";
defObject["vac"] = "<h4>Value Added Change %</h4>";
defObject["vag"] = "<h4>Value Added Change %</h4>";
defObject["dis4yr"] = "<h4>Value Added 4yr Growth %</h4>";
defObject["discf"] = "<h4>Dispositions Cost of Funds &pound;m</h4>";
defObject["disct"] = "<h4>Dispositions Corporation Tax &pound;m</h4>";
defObject["disec"] = "<h4>Dispositions Employer Costs less R&amp;D &pound;m</h4>";
defObject["disdp"] = "<h4>Dispositions Depreciation + R&amp;D &pound;m</h4>";
defObject["disam"] = "<h4>Dispositions Amortisation &pound;m</h4>";
defObject["disrt"] = "<h4>Dispositions Retained &pound;m</h4>";
defObject["proem"] = "<h4>Productivity - Number of Employees</h4>";
defObject["proP1"] = "<h4>Productivity - P<sub>1</sub>:VA per employee &pound;000</h4>";
defObject["proemc"] = "<h4>Productivity - P<sub>1</sub>:VA per employee &pound;000</h4>";
defObject["prodp"] = "<h4>Productivity - Employer + Depreciation Costs &pound;m</h4>";
defObject["proP2"] = "<h4>Productivity - P<sub>2</sub>:VA/Costs %</h4>";
defObject["proP2av"] = "<h4>Productivity - P<sub>2</sub>:VA/Costs 4 year average %</h4>";
defObject["c4"] = "<h4>Productivity - P<sub>2</sub>:VA/Costs 4 year average %</h4>";
defObject["salva"] = "<h4>Sales - VA % of Sales %</h4>";
defObject["opm"] = "<h4>Operating Profit - &pound;m</h4>";
defObject["opsal"] = "<h4>Operating Profit - % of Sales %</h4>";
defObject["mktcp"] = "<h4>Market Capitalisation &pound;m</h4>";
defObject["mc"] = "<h4>Market Capitalisation &pound;m</h4>";
defObject["mcc"] = "<h4>Change in Market Capitalisation %</h4>";
defObject["dep"] = "<h4>Depreciation</h4>";
defObject["amor"] = "<h4>Amortisation</h4>";
defObject["emp"] = "<h4>Employees</h4>";

defObject["sales"] = "<h4>Sales</h4>";
defObject["p2"] = "<h4>P<sub>2</sub></h4>";
defObject["p1"] = "<h4>P<sub>1</sub></h4>";

defObject["val"] = "<h4>Value Added</h4>";

defObject["oprofit"] = "<h4>Operating Profit</h4>";
defObject["vala"] = "<h4>Calue Added change 1yr%</h4>";

defObject["foreign"] = "<h4>Foreign-owned</h4>"
defObject["private"] = "<h4>Private company</h4>"
defObject["normal"] = "<h4>Normalised</h4>"


// ---


defObject["ValueAddedGbpM"]											= "<h4>Value Added</h4>"
defObject["ValueAddedChangePerc"]								= "<h4>Value Added Change %</h4>"

defObject["DispositionsCostOfFundsGbpM"]				= "<h4>Cost of Funds &pound;M</h4>"
defObject["DispositionsTaxGbpM"]								= "<h4>Tax &pound;M</h4>"
defObject["DispositionsEmpCostsLessRandDGbpM"]	= "<h4>Employee Costs - R&amp;D &pound;M</h4>"
defObject["DispositionsDeprAndRandDGbpM"]				= "<h4>Depreciation + R&amp;D &pound;M</h4>"
defObject["DispositionsAmortisationGbpM"]				= "<h4>Amortisation &pound;M</h4>"
defObject["DispositionsRetainedGbpM"]						= "<h4>Retained &pound;M</h4>"
defObject["DispositionsRandDCapex"]							= "<h4>R&D + Capex % of sales</h4>"

defObject["ProductivityEmployees"]							= "<h4>Employees</h4>"
defObject["ProductivityChangePerc"]							= "<h4>Productivity Change</h4>"
defObject["P1VAPerEmployeeGbp000"]							= "<h4>P<sub>1</sub>: VA Per Employee &pound;000</h4>"
defObject["P1EmpAndDeprCostsGbpM"]							= "<h4>Employee + Depreciation Costs &pound;M</h4>"
defObject["P1ChangePerc"]												= "<h4>P<sub>1</sub> Change %</h4>"
defObject["P2VACosts"]													= "<h4>P<sub>2</sub>: VA Costs</h4>"
defObject["P2ChangePerc"]												= "<h4>P<sub>2</sub> Change %</h4>"

defObject["SalesGbpM"]													= "<h4>Sales &pound;M</h4>"
defObject["SalesChangePerc"]										= "<h4>Sales Change %</h4>"
defObject["SalesVAOfSalesPerc"]									= "<h4>VA % Sales</h4>"

defObject["OperatingProfitGbpM"]								= "<h4>Profit %</h4>"
defObject["OperatingProfitChangePerc"]					= "<h4>Profit Change %</h4>"
defObject["OperatingProfitSalesPerc"]						= "<h4>% of Sales</h4>"

defObject["OperatingProfitMarketCapGbpM"]				= "<p>Change Mkt Cap</p>"
defObject["ValueAddedChangePercent"]						= "<p>Change 1yr</p>"
defObject["ValueAddedCapVA"]										= "<p>Cap ÷VA</p>"

//defObject["ValueAddedYearMinus1"] = "<h4></h4>"
//defObject["ValueAddedYearMinus2"] = "<h4></h4>"
//defObject["ValueAddedYearMinus3"] = "<h4></h4>"
//defObject["ValueAddedYearMinus4"] = "<h4></h4>"



defObject["VA"] = "<h4>Value Added</h4>";
defObject["Operating_Profit"] = "<h4>Operating profit</h4>"
defObject["Sales"] = "<h4>Sales</h4>"
defObject["Productivity"] = "<h4>Productivity</h4>"

defObject["Dispositions"] = "<h4>Dispositions</h4>"

defObject["P2"] = "<h4>P<sub>2</sub></h4>";
defObject["P1"] = "<h4>P<sub>1</sub></h4>";


/* --------------------------------------------------- */

var defObject2 = new Object();

defObject2["co"] = "<p>Data for an individual company e.g. AstraZeneca.</p>";
defObject2["vam"] = "<p>Value Added for the company from its latest annual report as of 6th January 2006.</p>";
defObject2["vac"] = "<p>A growing company will have current VA above the average VA for the 4 previous years (and also above that of the previous year)</p>";
defObject2["vag"] = "<p>A growing company will have current VA above the average VA for the 4 previous years (and also above that of the previous year)</p>";
defObject2["dis4yr"] = "<p>A growing company will have current VA above the average VA for the 4 previous years (and also above that of the previous year)</p>";
defObject2["discf"] = "";
defObject2["disct"] = "";
defObject2["disec"] = "<p>Depending on the sector, operating employee costs may be larger or smaller than investment. Total employment costs are also given but in the table where companies are ordered by VA. If R&amp;D is very large, the figure in this column could be negative</p>";
defObject2["disdp"] = "<p>Depending on the sector, operating employee costs may be larger or smaller than investment. Total employment costs are also given but in the table where companies are ordered by VA. If R&amp;D is very large, the figure in this column could be negative</p>";
defObject2["disam"] = "<p>High amortisation usually relates to acquisition goodwill.</p>";
defObject2["disrt"] = "<p>Negative retained VA means that VA was insufficient to cover the first 5 dispositions (uses). Where retained Value Added is negative but less than amortisation, there is no cash impact.</p>";

defObject2["proem"] = "";
defObject2["proP1"] = "<p>P<sub>1</sub> = Labour Productivity is a simple measure but is affected by exchange rates and does not take account of part-time employees, equipment investments or different skills carrying different employee costs.</p>";
defObject2["proemc"] = "<p>P<sub>1</sub> = Labour Productivity in &pound;k is a simple measure but is affected by exchange rates and does not take account of parttime employees, equipment investments or different skills carrying different employee costs.</p>";
defObject2["prodp"] = "<p>VA is divided by this quantity to give P<sub>2</sub>. The changes in this and the change in VA should be compared to see why P<sub>2</sub> is changing.</p>";
defObject2["proP2"] = "<p>VA is divided by this quantity to give P<sub>2</sub>. The changes in this and the change in VA should be compared to see why P<sub>2</sub> is changing.</p>";
defObject2["proP2av"] = "<p>A company is becoming more efficient if its current P<sub>2</sub> is higher than its 4-year average.</p>";
defObject2["c4"] = "<p>A company is becoming more efficient if its current P<sub>2</sub> is higher than its 4-year average.</p>";
defObject2["salva"] = "<p>P<sub>2</sub> = Value Added Efficiency (also called wealth creation efficiency) A dimensionless % relating output (VA) to the major input costs of labour and equipment depreciation (Depreciation = equipment.</p>";
defObject2["opm"] = "";
defObject2["opsal"] = "";
defObject2["mktcp"] = "<p>Unlisted companies do not have a market capitalisation or a change in market cap.</p>";
defObject2["mc"] = "<p>Unlisted companies do not have a market capitalisation or a change in market cap.</p>";
defObject2["mcc"] = "<p>Unlisted companies do not have a market capitalisation or a change in market cap.</p>";
defObject2["proP2czxdfz"] = "<p>P<sub>2</sub> = Value Adding Efficiency A dimensionless % relating output (VA) to the major input costs of labour and equipment depreciation (DEPRECIATION - equipment \"used up\" in the year).</p><p>A company is becoming more efficient if its current P<sub>2</sub> is higher than its 4-year average.</p>";
defObject2["dep"] = "<p>Depreciation is the systematic allocation of the cost of tangible fixed assets over their useful lives.</p>"
defObject2["amor"] = "<p>Amortisation is the equivalent allocation for acquisition goodwill, intangible assets and financial fixed assets/investments. The UK accounting standard requires that goodwill is amortised over a period not exceeding 20 years. Impairment charges are treated as additional depreciation or amortisation.</p>";

defObject2["emp"] = "<p>Employees – the consolidated average number of employees for the year; if the average figure is not given, the year-end figure is taken.</p>";
defObject2["sales"] = "<p>Sales – for banks, sales are defined as the \"Total (operating) income\" line from the profit &amp; loss account. For insurance companies, sales are defined as \"Gross premiums written\" + any banking income. </p>";
defObject2["p2"] = "<p>Value added as a percentage of employment & depreciation costs.</p>"
defObject2["p1"] = "<p>Value added per employee.</p>"

defObject2["val"] = "<p>Value Added is the difference between sales revenue and the cost of bought in goods and services.</p>"
defObject2["oprofit"] = "<p>Operating profit (or loss) is profit (or loss) before taxation, plus net interest paid (or minus net interest received), less gains (or plus losses) arising from the sale/disposal of businesses or fixed assets. "
defObject2["vala"] = "<p>Increase or decrease in VA over the previous year</p>"

defObject2["foreign"] = "<p>Foreign-owned UK companies are shown in with two asterisks**.</p>"
defObject2["private"] = "<p>Private companies are in italics</p>"
defObject2["normal"] = "<p>Increase or decrease in VA over the previous year</p>"

// --------

defObject2["ValueAddedGbpM"]										= "<p>Wealth created in latest financial year (value added = sales less bought-in goods & services)</p>"
defObject2["ValueAddedChangePerc"]							= "<p>Increase or decrease in VA over the previous year. For companies reporting under IFRS for the first time, the change is calculated using IFRS comparatives for the previous year</p>"

defObject2["DispositionsCostOfFundsGbpM"]				= "<p>Interest plus dividends for company</p>"
defObject2["DispositionsTaxGbpM"]								= "<p>Corporation Tax paid to governments</p>"
defObject2["DispositionsEmpCostsLessRandDGbpM"] = "<p>Operating Employee Costs = employee costs less R&D (mainly costs of R&D employees)</p>"
defObject2["DispositionsDeprAndRandDGbpM"]			= "<p>Investment for future = R&D+depreciation</p>"
defObject2["DispositionsAmortisationGbpM"]			= "<p>Amortisation & Impairment is depreciation of capitalised development, impairment of goodwill and amortisation & impairment of other intangibles</p>"
defObject2["DispositionsRetainedGbpM"]					= "<p>Residual VA remaining after the other 5 dispositions can be positive or negative</p>"
defObject2["DispositionsRandDCapex"]						= "<p>R&D plus Capex as % of sales</p>"

defObject2["ProductivityEmployees"]							= "<p>Average number of employees</p>"
defObject2["ProductivityChangePerc"]						= "<p>VA divided by number of employees = labour productivity, P<sub>1</sub></p>"
defObject2["P1VAPerEmployeeGbp000"]							= "<p>P<sub>1</sub> = Labour Productivity in Łk is a simple measure but is affected by exchange rates and does not take account of parttime employees, equipment investments or different skills carrying different employee costs</p>"
defObject2["P1EmpAndDeprCostsGbpM"]							= "<p>Cost of all employees plus depreciation (the equipment “used up” during the year)</p>"
defObject2["P1ChangePerc"]											= "<p>Change in costs from previous year</p>"
defObject2["P2VACosts"]													= "<p>Wealth creation Efficiency, P2 = output (VA) ÷ major inputs (employee costs + depreciation) and change from previous year</p>"
defObject2["P2ChangePerc"]											= "<p>Wealth creation Efficiency, P2 = output (VA) ÷ major inputs (employee costs + depreciation) and change from previous year</p>"

defObject2["SalesGbpM"]													= "<p>Sales and Change</p>"
defObject2["SalesChangePerc"]										= "<p>Sales and Change</p>"
defObject2["SalesVAOfSalesPerc"]								= "<p>Sales and Change</p>"

defObject2["OperatingProfitGbpM"]								= "<p>Operating Profit (excludes one-off profits from sales of businesses or assets)</p>"
defObject2["OperatingProfitChangePerc"]					= "<p>Operating Profit (excludes one-off profits from sales of businesses or assets)</p>"
defObject2["OperatingProfitSalesPerc"]					= "<p>Profitability = Operating profit as % sales</p>"

defObject2["OperatingProfitMarketCapGbpM"]			= "<p>Market Capitalisation as of 12th January 2007. A high market cap to VA ratio in its sector indicates that financial markets rate the company’s prospects highly. If there are several unlisted companies, a sector market cap to VA ratio is calculated using only the listed companies for the sector. Change in market cap % is from Jan 2006 to Jan 2007</p>"
defObject2["ValueAddedChangePercent"]						= "<p>Market Capitalisation as of 12th January 2007. A high market cap to VA ratio in its sector indicates that financial markets rate the company’s prospects highly. If there are several unlisted companies, a sector market cap to VA ratio is calculated using only the listed companies for the sector. Change in market cap % is from Jan 2006 to Jan 2007</p>"
defObject2["ValueAddedCapVA"]										= "<p>Market Capitalisation as of 12th January 2007. A high market cap to VA ratio in its sector indicates that financial markets rate the company’s prospects highly. If there are several unlisted companies, a sector market cap to VA ratio is calculated using only the listed companies for the sector. Change in market cap % is from Jan 2006 to Jan 2007</p>"

//defObject2["ValueAddedYearMinus1"] = "<p></p>"
//defObject2["ValueAddedYearMinus2"] = "<p></p>"
//defObject2["ValueAddedYearMinus3"] = "<p></p>"
//defObject2["ValueAddedYearMinus4"] = "<p></p>"



defObject2["VA"] = "<p>Value Added is the difference between sales revenue and the cost of bought in goods and services.</p>"
defObject2["Operating_Profit"] = "<p>Operating profit (or loss) is profit (or loss) before taxation, plus net interest paid (or minus net interest received), less gains (or plus losses) arising from the sale/disposal of businesses or fixed assets. "
defObject2["Sales"] = "<p>Sales – for banks, sales are defined as the \"Total (operating) income\" line from the profit &amp; loss account. For insurance companies, sales are defined as \"Gross premiums written\" + any banking income. </p>";
defObject2["Productivity"] = "<p></p>"

defObject2["Dispositions"] = "<p></p>"



defObject2["P2"] = "<p>Value added as a percentage of employment & depreciation costs.</p>"
defObject2["P1"] = "<p>Value added per employee.</p>"




/* --------------- */

function helperOn( rawCode ) {
	var code = rawCode.replace( " ", "_" ).replace( "<sub>", "" ).replace( "</sub>", "" );
	if( defObject[ code ] && defObject2[ code ]) {
		if ((arguments.length > 1) && (arguments[1] == "sort") ) {
			document.getElementById( "tooltip" ).innerHTML = defObject[ code ] + defObject2[ code ] + "<p><strong>Click to sort by this column</strong></p>";
		} else {
			document.getElementById( "tooltip" ).innerHTML = defObject[ code ]+ defObject2[ code ];
		}
		document.getElementById( "tooltip" ).style.display = "block";
		//var mouseArray;
		//mouseArray = getMouseXY;
		if (window.xMousePos + document.getElementById( "tooltip" ).offsetWidth + 20 > window.xMousePosMax ) {
			document.getElementById( "tooltip" ).style.left= ( window.xMousePos - document.getElementById( "tooltip" ).offsetWidth - 3) + "px";
		} else {
			document.getElementById( "tooltip" ).style.left= ( window.xMousePos + 3) + "px";
		}
		//alert( "pos: (" + window.xMousePos + ", " + window.yMousePos + ") and max = ( " + document.body.scrollLeft + ", " + document.body.scrollTop + ") " );
		
		if (window.yMousePos + document.getElementById( "tooltip" ).offsetHeight + 20 > window.yMousePosMax ) {
			document.getElementById( "tooltip" ).style.top = (window.yMousePos - document.getElementById( "tooltip" ).offsetHeight - 3)+ "px";
		} else {
			document.getElementById( "tooltip" ).style.top= (window.yMousePos + 3 + document.body.scrollTop)+ "px";
		}
		if( document.all ) {
			hideInputs();
		}
	}
}


function helperOff() {
	document.getElementById( "tooltip" ).style.display = "none";
	if( document.all ) {
		showInputs();
	}
}

function hideInputs() {

	var selects = document.getElementsByTagName( "select" );
	for (var i = 0; i < selects.length; i++) { 
		selects[i].style.visibility = "hidden";
		//selects[i].disabled = "disabled";
	}
}

function showInputs() {
	var selects = document.getElementsByTagName( "select" );
	for (var i = 0; i < selects.length; i++) { 
		selects[i].style.visibility = "visible";
	}
}

// Set Netscape up to run the "captureMousePosition" function whenever
// the mouse is moved. For Internet Explorer and Netscape 6, you can capture
// the movement a little easier.
if (document.layers) { // Netscape
    document.captureEvents(Event.MOUSEMOVE);
    document.onmousemove = captureMousePosition;
} else if (document.all) { // Internet Explorer
    document.onmousemove = captureMousePosition;
} else if (document.getElementById) { // Netcsape 6
    document.onmousemove = captureMousePosition;
}
// Global variables
window.xMousePos = 0; // Horizontal position of the mouse on the screen
window.yMousePos = 0; // Vertical position of the mouse on the screen
window.xMousePosMax = 0; // Width of the page
window.yMousePosMax = 0; // Height of the page

function captureMousePosition(e) {
    if (document.layers) {

        // When the page scrolls in Netscape, the event's mouse position
        // reflects the absolute position on the screen. innerHight/Width
        // is the position from the top/left of the screen that the user is
        // looking at. pageX/YOffset is the amount that the user has
        // scrolled into the page. So the values will be in relation to
        // each other as the total offsets into the page, no matter if
        // the user has scrolled or not.
        window.xMousePos = e.pageX;
        window.yMousePos = e.pageY;
        window.xMousePosMax = window.innerWidth+window.pageXOffset;
        window.yMousePosMax = window.innerHeight+window.pageYOffset;
    } else if (document.all) {
  
        // When the page scrolls in IE, the event's mouse position
        // reflects the position from the top/left of the screen the
        // user is looking at. scrollLeft/Top is the amount the user
        // has scrolled into the page. clientWidth/Height is the height/
        // width of the current page the user is looking at. So, to be
        // consistent with Netscape (above), add the scroll offsets to
        // both so we end up with an absolute value on the page, no
        // matter if the user has scrolled or not.
		myBody = document.getElementById( "html" );
        window.xMousePos = window.event.x+myBody.scrollLeft;
        window.yMousePos = window.event.y+myBody.scrollTop;
        window.xMousePosMax = myBody.clientWidth+myBody.scrollLeft;
        window.yMousePosMax = myBody.clientHeight+myBody.scrollTop;
    } else if (document.getElementById) {
        // Netscape 6 behaves the same as Netscape 4 in this regard
        window.xMousePos = e.pageX;
        window.yMousePos = e.pageY;
        window.xMousePosMax = window.innerWidth+window.pageXOffset;
        window.yMousePosMax = window.innerHeight+window.pageYOffset;
    }
}