// JavaScript Document

	
	var theimages = [ "./images/carnival_queen2004.png", 
						"./images/Jermilla.Kirwan.mango.png", 
						"./images/hillhouse2.png",
						"./images/Keithlyn.Smith.smithk_thumb.png",
						"./images/roberts_thumb.png", 
						"./images/gisacc_thumbnail.png",
						"./images/jamaica_kincaid_thumbnail.png",
						"./images/viv_richards2.bmp",
						"./images/hon_baldwin_spencer.bmp",
						"./images/vere_bird_sr.bmp",
						"./images/tim4.gif",
						"./images/Charlesworth.Martin.martin.gif",
						"./images/short_shirt_thumbnail.png",
						"./images/Lauchland.Henry.lauch_henry_thumbnail.png",
						"./images/eperry_thumb.png",
						"./images/Percival.Perry.percival_perry.png",
						"./images/Desmond.Nicholson.nicholsond.png",
						"./images/Reginald.Murphy.img_bio2.jpg",
						"./images/davis.jpg",
						"./images/carl_james_thumb2.gif",
						"./images/paget_henry_thumb.gif"
					];
						
	var thetext = [ "Antigua and Barbuda Carnival Queen 2004", 
					"Jermilla Kirwan stared in the &lsquo;Sweetest Mango,&raquo;Antigua-Barbuda's first full length movie", 
					"&quot;<strong>Joanne C. Hillhouse</strong>, who also writes under the pen name jhohadli, is a freelance writer, journalist and producer. Her books include ...&quot;",
					"<strong>Keithlyn B. Smith</strong> is politician and author/co-author of several books, including the classic, &lsquo;To Shoot Hard Labor&rsquo; ",
					"<strong>Andy Roberts</strong>: Fast Bowler of World Renown</strong><br> One of the fastest bowler of all times, Roberts had a reputation for accuracy and supreme pace.", 
				  	"&quot;<strong>D. Gisele Isaac</strong> became Antigua and Barbuda&rsquo;s Speaker of the House of Representatives in 2004. She is a multi-faceted and much respected ...&quot;",
				    "<strong>Jamaica Kincaid</strong><br> is a writer of international fame. She is the author of several novels including, A Small Place and Annie John.",
				  	"<strong>Sir Vivian Richards</strong> <br />One of the world&rsquo;s greatest batsman of all times. In Richard's West Indies test performances, he scored 8,540 runs at an average of 50.23 from 121 test matches.",
					"<strong>Honorable Baldwin Spencer</strong> is prime minister of Antigua and Barbuda, and leader of the UPP, which came to power in March, 2004 in an historic victory against the ruling ALP.",
				  	"<strong>Rt. Honorable Vere Cornwall Bird, Sr., 1910--1994</strong><br> First prime minister and first premier of Antigua and Barbuda. Antigua-Barbuda's first national hero.",
				    "<strong>Tim Hector,</strong><br> 1942--2004. Journalist, intellectual, politician, sports administrator and founder of <br> the Antigua-Caribbean Liberation Movement (ACLM) and the Outlet newspaper.",
					"<strong>Charlesworth Martin, Ph.D.</strong> is Antigua-Barbuda's first Ph.D. recipient in Electrical Engineering. He authored several articles and served as dean at Savannah State University for several years.",
					"<strong>McClean Emanuel,</strong> a.k.a. &quot;King Short Shirt&quot;, had been the reigning calypso king of Antigua several times. His songs include: Black Like Me, Awake the Youths, Inspite of All and Not By Might.",
					"<strong>Lauchland Henry, Ph.D.</strong> Columbia U.; IBM: 21 years; Co-founder of GREENWOOD & HENRY ASSOCIATES, Inc; Poet; Author of several books.",
				  	"<strong>Egbert L.J. Perry, BS, MS</strong> Civil Engineering &amp; MBA,  Gallery of Distinguished Engineering Alumni; Honors graduate of the UPenn; Chairman &amp; CEO of the Integral Real Estate Group LLC.",
					"<strong>Percival Perry, Ph.D.,</strong> Physics U. of California at Berkeley; Antigua-Barbuda&rsquo;s first Ph.D. in physics; 1958: only Grade-I recipient in the Cambridge exams  and &quot;Victor Ludorum&quot;.",
				  	"<strong>Desmond Vernon Nicholson</strong> Director and Founder of The Museum of Antigua &amp; Barbuda, 1985; Pres. of the Antigua Archaeological Society, 1971; Founder: Antigua Sailing Week, 1968.",
				    "<strong>Reginald Murphy, Ph.D.,</strong> First Antiguan born archaeologist; Founding member and Chairman of the Betty's Hope Project. Former Chairman of Museum of Antigua and Barbuda.",	
				  	"<strong>Gregson Davis, Ph.D.</strong> is Andrew W. Mellon Distinguished Professor of the Humanities in Classical Studies and Dean at Duke University. He has authored several books and articles.",
					"<strong>Dr. Carl James</strong> is Professor in the Faculty of Education. Over the years, he has conducted research and published about the experiences of Black youth and education, ...",
					"<strong>PAGET HENRY</strong> (Ph.D. in Sociology, Cornell University, 1976) is Professor of Sociology and Africana Studies.   His specializations are Dependency Theory, Caribbean Political Economy, ..." 
];
				  
	var thelinks = [ "http://www.antiguanice.com/antigua_barbuda_events.htm",
				  	 "http://www.antiguanice.com/features/sweetest_mango.htm",
					 "http://www.wadadlipen.org.ag/index.php?mpageid=14",
					 "javascript:submitTheId(139)",
					 "http://caribzones.com/mmroberts.html",
					 "http://www.wadadlipen.org.ag/index.php?mpageid=15",
					 "http://www.english.emory.edu/Bahri/Kincaid.html",
					 "http://news.bbc.co.uk/sport1/hi/cricket/1859874.stm",
					 "http://www.cmatt.com/sunshine_news/baldwin_spencer.htm",
					 "http://www.nalis.gov.tt/Biography%5Cbio_VC_Bird_legend.html",
					 "http://www.candw.ag/~jardinea/fanflame.htm",
					 "http://www.savstate.edu/scitech/engtech/faculty.htm",
					 "http://en.wikipedia.org/wiki/Music_of_Antigua_and_Barbuda",
					 "http://www.emmabragdon.com/articles/art-06lh.html",
					 "http://www.integral-online.com/IG_officers.htm",
					 "http://www.math.buffalo.edu/mad/physics/perry_percival.html",
					 "./bio/Desmond_Nicholson.nicholsond.htm",
					 "http://www.archaeologyantigua.org/biography.htm",
					 "http://fds.duke.edu/db/aas/Classics/faculty/gdav",
					 "http://www.yorku.ca/foe/People/Faculty/ProfilesFac/CarlJames/index.html",
					 "http://www.brown.edu/Departments/African_American_Studies/henry.html"
					 ];
	var temp;  
	var index = new Array( 3 );
	var counter = 0;
	index[ counter ] = Math.floor( Math.random() * ( theimages.length ) );
	//document.writeln( "<br />  counter = " + counter + " index[ counter ] = " + index[ counter ]);
	counter = 1;
	var i;
	var k = 0;

	while( counter <= 2 )
	{
		
		temp = Math.floor( Math.random() * ( theimages.length ) );
		
		if( linearSearch( index, temp, counter ) == 1 )
		{
			index[ counter ] = temp;
			counter++;
		}
	}
	
	function linearSearch( theArray, key, counter )
	{
		for( var n = 0; n <= counter - 1; ++n )
			if( theArray[ n ] == key )
				return 0;
				
			return 1;
	}
	
	function initValues()
	{
		var site = document.getElementById("img_link_id");
		site.href = thelinks[ index[ 0 ] ];
		var sentence = document.getElementById( "news_text" );
		sentence.innerHTML = thetext[ index[ 0 ] ];
		var pic = document.getElementById( "news_img" );
		pic.src = theimages[ index[ 0 ] ];
		changePic();
	}
	
	function changePic()
	{	
		setInterval( "changePicNow()", 10000 );
		return;
	}
	
	function changePicNow()
	{
		k = (k + 1) % 3;
		var sentence = document.getElementById("news_text");
		sentence.innerHTML = thetext[ index[ k ] ];
		var pic = document.getElementById("news_img");
		pic.src = theimages[ index[ k ] ];
		var site = document.getElementById("img_link_id");
		site.href = thelinks[ index[ k ] ];
		return;
	}
	
	function submitTheId( the_id )
	{
		document.display_form.this_id.value = the_id;
		document.display_form.submit();
		return false;	
	}
			