// For facts and figure in customer page
YUI.Event.onDOMReady(initialize);
var div_ids;
function initialize()
{
	div_ids = ["<span>$537 billion</span> the amount spent on group health insurance policies per year","<span>FACT</span> The relationship between healthy employees and worker productivity is proven and well documented.","<span>78%</span> the percentage increase in health insurance premiums since 2001;inflation and worker's earnings have increased only 17% and 19%, respectively, over the same period","<span>FACT</span> 1 in 5 workers report feeling extremely stressed at work - one of the leading causes of absenteeism.","<span>75%</span> the percentage of health-care costs and hospitalizations owing to preventable chronic conditions such as diabetes, obesity, cardiovascular disease and asthma","<span>45 billion</span> the annual cost of obesity to Corporate America","<span>FACT</span> Obese workers file 2 times the number of compensation claims compared with other workers","<span>FACT</span> Medical costs for obese workers are 7 times higher than other workers","<span>FACT</span> Obese workers lose 13 times more days from work injury or work illness than other workers","<span>$5,101</span> the cost in US dollars of the average medical claim for an obese worker, compared with $75 for a non-obese worker","<span>50%</span> the minimum proportion of an organization's health costs that are linked to smoking, poor diet and lack of exercise on the part of employee","<span>FACT</span> Obesity is now more costly to US companies than smoking or alcoholism","<span>FACT</span> Smokers are absent from work 6.5 more days per year than non-smokers","<span>8%</span> the percentage of a smoker's working hours spent on smoking rituals","<span>$1,600</span> the additional health-care cost incurred by smokers annually, compared with non-smokers","<span>25%</span> the percentage of US health-care costs related to physical inactivity, being overweight or obese","<span>FACT</span> Indirect costs of poor health (including absenteeism, disability and presenteeism) are two to three times higher than direct medical costs, impacting all employers, regardless of size and ability to fund health benefits.","<span>FACT</span> Workplace health promotion attracts superior workers in competitive marketplace","<span>FACT</span> Workplace health promotion reduced absenteeism, presenteeism, injuries, illness and turnover","<span>FACT</span> Workplace health promotion improves productivity","<span>FACT</span> Workplace health promotion improves morale and fosters strong organizational commitment","<span>FACT</span> Workplace health promotion is proven to reduce medical expenditures, resulting in direct cost savings to employers","<span>FACT</span> Medically high-risk employees are medically high cost employees","<span>129 million</span> the estimated number of adults in the US that are overweight or obese (US Department of Health and Human Services)","<span>$1.5-$3</span> the overall return on investment for every dollar spent on workplace health promotion (Human Resource Executive, 2007)","<span>75%</span> the US target for the percentage of businesses, regardless of size, offering workplace health promotion initiatives by 2010 (Healthy People 2010, worksite goals)","<span>75%</span> the US target for the percentage of employees engaged in workplace health promotion initiatives by 2010 (Healthy People 2010, worksite goals)","<span>FACT</span> Private business pays for 34% of the national health-care burden, second only to the 36% that the federal government pays.","<span>70%</span> the percentage of ill health that is preventable","<span>$1,387</span> the average cost of absenteeism per employee per year in the US","<span>2.5%</span> the average rate of absenteeism on any given day in the US"];
	YUI.get('facts_text').innerHTML = div_ids[0];
	var back = YUI.get('back_butt');
	var next = YUI.get('next_butt');
	back.onmouseover = function(){
		back.src = "/skins/healthiercompany/images/customer/back_mouseover.png";
	}
	back.onmouseout = function(){
		back.src = "/skins/healthiercompany/images/customer/back.png";
	}
	next.onmouseover = function(){
		next.src = "/skins/healthiercompany/images/customer/next_mouseover.png";
	}
	next.onmouseout = function(){
		next.src = "/skins/healthiercompany/images/customer/next.png";
	}
}

function changeText ( direction )
{
	for(var i = 0; i < div_ids.length; i++)
	{
		if(direction == 'previous')
		{
			to_show = i - 1;
			next_available = div_ids.length -1;
		}
		else
		{
			to_show = i + 1;
			next_available = 0;
		}
		if((YUI.get('facts_text').innerHTML).toLowerCase() == div_ids[i].toLowerCase())
		{
		   if(div_ids[to_show])
		   {
			   YUI.get('facts_text').innerHTML = div_ids[to_show];
		   }
		   else
		   {
			   YUI.get('facts_text').innerHTML = div_ids[next_available];
		   }
		   break;
		}
   }
}


