// JavaScript Document

var quotations = new Array()
quotations[0]= '<p>I ran a quote on Texashealthandlife.com and there were so many options  my head spun. A few minutes later, one of the agents from Texas Health &amp;  Life called me and helped me feel comfortable in selecting the best plan. I  have since referred them to several friends and family.</p><p><strong>- Dina, Sugar Land, TX</strong></p>';
quotations[1]= '<p>How easy can it get? I entered my information, got pricing, compared plans side-by-side, printed them out, selected a plan, and applied on-line. I got a call from Texas Health & Life with an assigned support person I can call if I need any help while I have this plan. We\'re planning to review options after the first year. Piece of cake!</p><p><strong>-Melinda, Austin, TX</strong></p>';
quotations[2]= '<p>I was worried about making a bad decision on health insurance for the family. Within a 10 minute phone conversation, Justin helped educate me on my best options and sent me a side-by-side proposal on the best 4 plans from different companies. I really appreciated his approach. I absolutely recommend you call. I\'m sure you\'ll be happy with their help.</p><p><strong>- Russ, Cedar Park, TX</strong></p>';
quotations[3]= '<p>I wanted to offer health insurance to my employees and contacted Texas Health & Life. They walked me through the whole process - requirements, overview of plan types & benefits, price comparisons, and then helped with the application process. We were set up within 2 weeks.</p><p><strong>- David, HotSchedules, Austin, TX</strong> </p>';
quotations[4]= '<p>I needed a term life insurance policy with a large face value for a business loan. I had received quotes from a financial planner I had been working with and then ran quotes on Texas Health & Life. I ended up saving about $1,500 a year with a policy they helped me apply for. Use these guys. They\'re good!</p><p><strong>- Joel, Dallas, TX</strong> </p>';

function display()
{
	a=0;
	document.getElementById('testimonials').innerHTML=quotations[a];
	setTimeout("display_r()", 10000);
}

function display_r(){
	a++;
	if(a>=quotations.length)
	{
		a=0;	
	}
	document.getElementById('testimonials').innerHTML=quotations[a];
	setTimeout("display_r()", 10000);
}

//second function

var gfx_quotations = new Array()
gfx_quotations[0]= '<p align="center" ><a href="https://www.aetna.com/iqs/ipsRedirect.do?action=viewBrokerLink&bid=iw8XeGM9ets%3d&LoggedInUserId=iw8XeGM9ets%3d&ipsRole=b7K7%2f97acLo%3d" target="_blank"><img src="images/logos/1.jpg" alt="Aetna" /></a></p>';
gfx_quotations[1]= '<p align="center" ><a href="http://www.imthe.besthealthagent.com/HomePage.aspx" target="_blank"><img src="images/logos/2.gif" alt="Assurance Health" /></a></p>';
gfx_quotations[2]= '<p align="center" ><a href="http://www.bcbstx.com/" target="_blank"><img src="images/logos/3.jpg" alt="BlueCross BlueShield of Texas" /></a></p>';
gfx_quotations[3]= '<p align="center" ><a href="https://cigna.healthplan.com/page.php?s=guest&p=quote/quote_quick.php&go=true&cust_link=0605273184" target="_blank"><img src="images/logos/4.gif" alt="CIGNA" /></a></p>';
gfx_quotations[4]= '<p align="center" ><a href="http://www.texashealthandlife.com/texas-individual-family-health-insurance.php" target="_blank"><img src="images/logos/5.jpg" alt="Humana One" /></a></p>';
gfx_quotations[5]= '<p align="center" ><a href="https://www.GoldenRuleHealth.com/Customer/CustomerLogon/Default.aspx?BrokerID=6217379" target="_blank"><img src="images/logos/8.jpg" alt="UnitedHealthCare" /></a></p>';

function gfx_display()
{
	a=0;
	document.getElementById('company').innerHTML=gfx_quotations[a];
	setTimeout("display_r2()", 10000);
}

function display_r2(){
	a++;
	if(a>=gfx_quotations.length)
	{
		a=0;	
	}
	document.getElementById('company').innerHTML=gfx_quotations[a];
	setTimeout("display_r2()", 10000);
}

function previous()
{
	a--;
	if(a<0)
	{
		a=quotations.length-1;	
	}
	document.getElementById('testimonials').innerHTML=quotations[a];
}
function next()
{
	a++;
	if(a>=quotations.length)
	{
		a=0;	
	}
	document.getElementById('testimonials').innerHTML=quotations[a];
}