

mm_fPlayMode = 0;
mm_iimg = 0;
mm_imax = 0;
mm_ImageTable = new Array();

function ChangeImage(fFwd)
{
if (fFwd)
{
if (++mm_iimg==mm_imax)
mm_iimg=0;
}
else
{
if (mm_iimg==0)
mm_iimg=mm_imax;
mm_iimg--;
}
Update();
}

function Update(){
document.getElementById("_Per_FileName").innerHTML = mm_ImageTable[mm_iimg][1];
document.getElementById("_Per_Immm_X").innerHTML = mm_iimg + 1;
document.getElementById("_Per_Immm_N").innerHTML = mm_imax;
}



function OnImgLoad()
{
	//alert("This is a test");

if (mm_fPlayMode)
window.setTimeout("Tick()", mm_dwTimeOutSec*2500);
//alert(mm_ImageTable[mm_iimg][0]);
}


function Prev()
{
ChangeImage(false);
}
function Next()
{
ChangeImage(true);
}
function main()
{

Update();
}

/*  Update this code to change the thumbnail gif image and text description */ 
mm_ImageTable[mm_imax++] = new Array ("/assets_aetnaCom/images/aetnaComHome/news_02.gif", "<h1 class='blurbbodycell3'>News Release</h1>");


mm_ImageTable[mm_imax++] = new Array ("/assets_aetnaCom/images/aetnaComHome/news_03.gif", "<h1 class='blurbbodycell3'>News Release</h1><h2 class='fstitle3'>Aetna Encourages Parents to Consider Their Student's Health Insurance Options When Preparing for College</h2><p class='blurbbodycell3'><strong>HARTFORD, Conn., July 15, 2009</strong> &#8212; For parents, summer is the ideal time to ensure college students are prepared academically and financially for campus life.</p><p class='blurbbodycell4'><img src='Images/home/bullet_link.gif' /> <a href='http://www.aetna.com/news/newsReleases/2009/0715_StudentHealth.html' target='_blank' class='SmallLinks' style='margin-bottom:0px;padding-bottom:0px;'>Read More</a></p><div id='p1'></div>");

mm_ImageTable[mm_imax++] = new Array ("/assets_aetnaCom/images/aetnaComHome/news_02.gif", "<h1 class='blurbbodycell3'>Facts about Pandemic Flu and H1N1 Virus</h1><p class='blurbbodycell3'>With H1N1 virus (swine flu) continuing to spread in the United States and now declared a pandemic by the World Health Organization, what should we be doing to prepare and protect ourselves?</p><p class='blurbbodycell4'><img src='Images/home/bullet_link.gif' /> <a href='http://www.aetna.com/members/health_wellness/learning_resources/facts_about_pandemic_flu.html' target='_blank' class='SmallLinks'>Read More</a></p><div id='p4'></div>");

mm_ImageTable[mm_imax++] = new Array ("/assets_aetnaCom/images/aetnaComHome/news_02.gif", "<h1 class='blurbbodycell3'>Has the changing economy impacted your health insurance coverage?</h1><p class='blurbbodycell3'>If you or your parent's employment situation is changing and you're involuntarily losing health insurance coverage, you may be eligible to purchase your school's student health insurance plan due to your circumstances.</p><p class='test'><img src='Images/home/bullet_link.gif' /> <a href='stu_conn/challenges.aspx' class='SmallLinks'>Things to consider</a></p><div id='p2'></div>");


mm_ImageTable[mm_imax++] = new Array ("/assets_aetnaCom/images/aetnaComHome/news_02.gif", "<h1 class='blurbbodycell3'>Higher Education and Health Care Reform</h1><p class='blurbbodycell3'>Aetna's Position on a Student Coverage Requirement and Preserving the College Health Care Delivery System.</p><p class='blurbbodycell4'><img src='Images/home/bullet_link.gif' /> <a href='/Uploads/documents/AetnaSCRJuly2009.pdf' target='_blank' class='SmallLinks'>Read More</a></p><div id='p3'></div>");




/*  Update this code to hyperlink to image */ 


function get_url()

{
         if (mm_iimg==0){		
		
		window.location = ""
		}
		
		 else if (mm_iimg==1){
		window.location = ""
		}
		
	
}




/*  Update this code to set image placeholder and text for Firefox. This generates the actual table on the homepage. */ 
/* news_01.gif, news_02.gif, news_03.gif are the images that rotate */ 

function perspectives_table(){

document.write("<TABLE WIDTH=250 BORDER=1 CELLPADDING=0 CELLSPACING=0 align='center'>");
document.write("<TR>");
document.write("<TD ROWSPAN=3 valign='top'>");
document.write("<SPAN id='_Per_FileName'></SPAN>");
document.write("</TD>");
document.write("</TR>");
document.write("<TR>");
document.write("<TD colspan='3' class='perspectives'>");
document.write("<A HREF='javascript:Prev();'><IMG SRC='/news_04.gif' WIDTH='10' HEIGHT='10' ALT='' border='0'></a>&nbsp;<SPAN id='_Per_Immm_X'>1</SPAN>&nbsp;<STRONG>of</STRONG>&nbsp;<SPAN id='_Per_Immm_N'>3</SPAN>&nbsp;<A HREF='javascript:Next();'><IMG SRC='/assets_aetnaCom/images/aetnaComHome/news_06.gif' WIDTH='10' HEIGHT='10' ALT='' border='0'></a></TD>");
document.write("<TD width='110px' >&nbsp;</TD>");
document.write("</TR>");
document.write("<TR>");
document.write("<TD>");
document.write("<IMG SRC='/assets_aetnaCom/images/aetnaComHome/news_08.gif' WIDTH=10 HEIGHT=5 ALT=''></TD>");
document.write("<TD COLSPAN=3>");
document.write("<IMG SRC='/assets_aetnaCom/images/aetnaComHome/news_09.gif' WIDTH=108 HEIGHT=5 ALT=''></TD>");
document.write("</TR>");
document.write("</TABLE>");

}










