var glossaryTip=new TipObj('glossaryTip');
with (glossaryTip) {
 template = '<table bgcolor="#000000" cellpadding="0" cellspacing="0" width="%2%" border="0">' +
  '<tr><td><table cellpadding="3" cellspacing="1" width="100%" border="0">' +
  '<tr><td bgcolor="#6D8095" align="center" height="18" class="tipClass"><h3>%3%</h3></td></tr>' +
  '<tr><td bgcolor="#FFFFFF" align="center" height="*" class="tipClass">' +
  '<div style="text-align:justify;">%4%</div>'
  + '</td></tr></table></td></tr>' +
  '</table></td></tr></table>';
  
  showDelay=50;
  hideDelay=0;
  doFades=false;
  tipStick=0;
}

function showGlossary(num,heading) {
	switch (heading) {
		case 'Rank':
			glossaryTip.newTip(num,30,50,200,heading,
			'<p>Rank is calculated on the basis of Impact, which is itself calculated from a basket of impact assessments made by our experts in four areas: Global Economy; Geopolitics; International Financial Markets; Business Operations.</p>');
			break;
		case 'Impact':
			glossaryTip.newTip(num,30,50,350,heading,'' +
			'<p>Impact measures the effect of the the event modelled by the Global Stress Point, were it to happen. The impact is evaluated in four separate categories:</p>' +
			'<ul><li>Global GDP</li><li>Geopolitics</li><li>International Financial Markets</li><li>Business Operations</li></ul>' +
			'<p> <br />These evaluations are then pulled together to make an overall impact. The detailed breakdown of the impact in each category is available on the summary page for each Stress Point.</p>' +
			'<p>Impacts are graded in six bands:</p>' +
			'<ul><li>Negligible</li><li>Low</li><li>Medium</li><li>High</li><li>Very High</li><li>Extreme</li></ul>' +
			'<p>More information about the assessment of stress point impact is available on request.</p>');
			break;
		case 'Stress Balance':
			glossaryTip.newTip(num,30,50,350,heading,'<p>Range: -50 to +50</p>' +
				'<p>The Stress Balance indicates the balance between drivers and restrainers -- the direction forces are taking.</p>' +
				'<p>A Stress Balance of zero represents a situation in which drivers and restrainers have equal values.  This means that the monitored event is extremely uncertain, as the forces driving and restraining it are equivalent.</p>' +
				'<p>A value higher than zero represents a situation where drivers outweigh restrainers.  It indicates that the monitored event is increasingly likely to happen.</p>' +
				'<p>If a value is lower than zero, restrainers outweigh drivers.  As a result, the monitored event is increasingly less likely to happen.</p>' +
				'<p>The distance of the arrow from zero signals the degree of imbalance between drivers and restrainers.</p>' +
				'<p>The stress intensity and stress balance indexes in combination provide an assessment of the intensity and the direction of stress.</p>');
				break;
		case 'Stress Intensity':
			glossaryTip.newTip(num,30,50,300,heading,'<p>Range: 0 to 100</p>' +
				'<p>The Stress Intensity index measures the level of stress inherent in a particular event, and rather than considering the balance between the drivers and restrainers, focuses only on the value of the drivers. If the &ldquo;driver&rdquo; values are high, then either they are compensated for by high &ldquo;restrainer&rdquo; values implying an unstable environment (where marginal changes in driver/restrainer values can have a strong impact) or the &ldquo;restrainers&rdquo; are relatively weak implying that the stress balance will have swung into the high risk (red) zone.</p>' +
				'<p>The measure of stress intensity is necessary because there is a clear difference between a situation characterised by balanced forces at a low level of intensity (eg values of 0-30) and one characterised by high intensity (eg values of 80-100). The combination of the stress intensity and stress balance indices provides a potent early warning system.</p>' +				
				'<p>The Stress Intensity and Stress Balance indexes in combination provide an assessment of the intensity and the direction of stress.</p>'); 
			break;
		case '3-month Running Difference':
			glossaryTip.newTip(num,30,50,200,heading,'<p>Represents the difference between the One-Year Stress Balance now and three months ago.</p>');
			break;
		case '3-month Volatility':
			glossaryTip.newTip(num,30,50,200,heading,'<p>Represents the volatility (total points moved) of the One-Year Stress Balance between three months ago and now.</p>');
			break;
		case '3-month Running Difference (5-year)':
			glossaryTip.newTip(num,30,50,200,heading,'<p>Represents the difference between the Five-Year Stress Balance now and three months ago.</p>');
			break;
		case '3-month Volatility (5-year)':
			glossaryTip.newTip(num,30,50,200,heading,'<p>Represents the volatility (total points moved) of the Five-Year Stress Balance between three months ago and now.</p>');
			break;
		case 'Drivers':
			glossaryTip.newTip(num,30,50,350,heading,'<p>The methodology for assessing the changing probability or likelihood of an event happening is through the rigorous selection, evaluation and monitoring of the main factors tending towards or against the outcome in question -- the &lsquo;drivers&rsquo; and &lsquo;restrainers.&rsquo;</p>' +
				'<p>Each driver or restrainer is ranked and given a value between zero and ten.  The relative strength of the drivers and restrainers -- the balance of forces or &lsquo;stress balance&rsquo; -- determines the probability or likelihood of the event happening -- the tendency towards or against an outcome.</p>' + 
				'<p>Although statements of probability or likelihood (eg very unlikely, probable, highly probable) can be derived from the relative strengths of the drivers and restrainers (the stress balance), the GSPM methodology prefers to present directly what is being measured</p>');
			break;

		
	}
}
function hideGlossary(num) {
	glossaryTip.hide();
}