// JavaScript Document
var Img=new Array(
	['img/homepage/mark_lurie.jpg','A Healthy Homeland', 'Assistant Professor of Community Health <span class="purple">Mark Lurie</span> found himself at the center of the swine flu whirlwind this fall when he and his family became infected.', "http://today.brown.edu/articles/2009/11/lurie" ],
	['img/homepage/constatine_gatsonis.jpg', 'Crime Scene Science', 'A study co-chaired by Professor of Community Health <span class="purple">Constantine Gatsonis</span> cracks the case on forensic evidence.', "about/profiles?profile=gatsonis"],
	['img/homepage/kartik.jpg', 'Bound by Tradition','Physician and PhD candidate in epidemiology <span class="purple">Kartik Venkatesh</span> works alongside Professor of Medicine Kenneth Mayer to stem the transmission of HIV.', "about/profiles?profile=kartik" ],
	['img/homepage/tiverdi.jpg', 'Amal Trivedi, MD','<span class="purple">Amal Trivedi</span>, MD, assistant professor of community health and medicine, presents a 360-degree view of patient care.', "about/profiles?profile=tiverdi" ],
	['img/homepage/chima.jpg', 'Chima Ndumele GS\'12','<span class="purple">Chima Ndumele GS\'12</span>, A PhD candidate explores the impact of organizational factors on quality of care.', "about/profiles?profile=ndumele" ],
	['img/homepage/weinstock.jpg', 'A Rough Patch', '<span class="purple">Dr. Martin Weinstock</span>, professor of dermatology and community health, finds that skin lesions lead to more cancer types than once believed.', "http://brownmedicinemagazine.org/view/article.php?cw=cGFnZTE0MTU9MSZlbnQxMzE1ND1QQUdFJmVudDk0PTgxJmNudHBhZ2UxMzE1PTEmaXNzOTQ9NQ" ],
	['img/homepage/cu-uvin.jpg', 'A More Perfect Union', 'Professor of Obstetrics and Gynecology <span class="purple">Susan Cu-Uvin</span> (center) plans to make Brown\'s global health enterprise bigger than the sum of its parts.', "http://brownmedicinemagazine.org/view/article.php?cw=cGFnZTE0MTU9MSZlbnQxMzE1ND1QQUdFJmVudDk0PTczJmNudHBhZ2UxMzE1PTEmaXNzOTQ9NQ" ]
)

var caret='<img src="img/caret_4.gif" width="4" height="6" style="position: relative;top:-2px; padding-right: 2px;">';

var Num=Img.length-1;
var k=Math.round(Math.random()*Num);
//alert(k);
function midIMG(){
/**/
	document.write('<div id="imagetext">');
	document.write('</div>');
	document.write('<div id="imagetextcontainer">');
	//document.write('<h1>'+Img[ k ][1]+'</h1>');
	document.write('<h1>Meet our People</h1>');
	document.write('<p>'+Img[ k ][2]);

	document.write(' &nbsp;<a href="'+Img[ k ][3]+'">'+caret+'Read More</a>');
	document.write('</p>');
	
	document.write('</div>');		
	document.write('<img alt="'+Img[ k ][1]+'" border="0" title="'+Img[ k ][1]+'" src="'+Img[ k ][0] +'" width="736" height="456" />');
//document.write('<img  border="0"  src="'+Img[ k ] +'" width="736" height="456" />');
		
	}
function profiles()
{
	for (i=0; i< Img.length; i++) 
	{
		//alert(Img[ i ][2]);
		document.write('<h2>'+Img[ i ][1]+'</h2>');
		document.write('<p>'+Img[ i ][2]+'<br>');
		document.write('<a href="'+Img[ i ][3]+'" class="link">More</a></p>');
		
	}
	/*document.write("aaaa");*/
}

