﻿if(document.images)
{

 var image_array = new Array();

 var path = 'images/';
 
 var content_array= new Array();
 
 var alt_array= new Array();
 
 var i=0;

 content_array[1]='<span class="testimonial_txt">"I am glad that you have found a very distinguished mentor for me. I  am sure it will be great having him. Thank you very much for your efforts".<br /><br /><strong><em>Akshat Rathi</em></strong><em> Scholar of 2008  currently pursuing his M Sc / PhD in Organic  Chemistry University  of Oxford.</em></span>';
 content_array[0]='<span class="testimonial_txt">"I was very much pleased to know that I have been nominated as Narotam Sekhsaria scholar 2008.I assures you that I will try to maintain high ethics integrity & perseverance and will always be proud of being connected with Narotam Sekhsari scholars & scholarship".<br /><br /><strong><em>Ankeeth Ved </em></strong><em>Scholar of 2008 currently pursuing MS-Aerospace Engg from University of Illinois at Urbana Champaign.</em></span>';
 content_array[2]='<span class="testimonial_txt">"I am very happy to learn about my mentor. Thank you once again".<br /><br /><strong><em>Smita Vijaykumar </em></strong><em>Scholar of 2006 currently pursuing her M, Arch from Illinois Institute of Tech, Chicago.</em></span>';
 content_array[3]='<span class="testimonial_txt">"I met with my mentor; He is a very kind and helpful person. And also will be helpful to guide me in my career path. Thank you for giving me such a nice mentor".<br /><br /><strong><em>Jayant Rane </em></strong><em>Scholar of 2008 currently pursuing his Master in Regenerative Medicine & Stem cell.</em></span>';
 content_array[4]='<span class="testimonial_txt">"Thanks a lot; its a pleasure to be associated with this elite group of Scholars".<br /><br /><strong><em>Treta Purohit </em></strong><em>Scholar of 2008 currently pursuing her MPH - Epidemiology from Johns Hopkins University.</em></span>';
 
 content_array[5]='<span class="testimonial_txt">"I am extremely grateful to the Foundation and the interview committee for considering me worthy enough for the Narotam Sekhsaria scholarship".<br /><br /><strong><em>Anupriya </em></strong><em>Scholar of 2008 currently pursuing her Msc-Financial Economics University of Oxford.</em></span>';
 
 content_array[6]='<span class="testimonial_txt">"I thank you for the award of loan scholarship to me for pursuing higher studies in a prestigious institution".<br /><br /><strong><em>Janardhan Kodavasal </em></strong><em>Scholar of 2007 currently pursuing his MS in Mechanical Engineering from Michigan University Ann Arbor.</em></span>';
 
 
   // enumeration of the "active" images
  image_array[1] = path + "Akshat-Rathi.gif";
  image_array[0] = path + "merit_scholarships_ankeeth_ved.gif";
  image_array[2] = path + "Smita-Vijaykumar.gif";
  image_array[3] = path + "Jayant-Rane.gif";
  image_array[4] = path + "Treta-Purohit.gif";
  image_array[5] = path + "Anupriya.gif";
  image_array[6] = path + "Janardhan-Kodavasal.gif";
  
  alt_array[1]="Merit  scholarships";
  alt_array[0]="Merit  scholarships - Ankeeth Ved";
  alt_array[2]="Merit  scholarships";
  alt_array[3]="Merit  scholarships";
  alt_array[4]="Merit  scholarships";
  alt_array[5]="Merit  scholarships";
  alt_array[6]="Merit  scholarships";
 
  
}
function displayNext(arg,args)
{ 
	var current;
	var next;
	var prev;
	if(arg=='next')
	{
	if(args==image_array.length && args!=0)
		{ 
			index=parseInt(image_array.length) -1;
			prev=(parseInt(index) -1);
			next=parseInt(image_array.length) -1;
		}
		else if(args==image_array.length)
		{  
			index=parseInt(image_array.length) -1;
			prev=(parseInt(image_array.length) -1)-1;
			next=parseInt(image_array.length) -1;
		}
		else
			{ 
			next=(parseInt(args)+1);
			prev=args;
			index=parseInt(args);

		}
	var tests=(parseInt(args)-1);
	
		document.getElementById(tests).style.display='none';
document.getElementById(index).style.display='';
if(index==(parseInt(image_array.length) -1))
document.getElementById("prev").innerHTML='<td><a href="javascript:void(0);" onmouseout="MM_swapImgRestore()" onmouseover=MM_swapImage("Image31","","images/p_button_mo.gif",1) onclick=displayPrev("prev","'+prev+'") /><img src="images/p_button.gif" alt="Previous" name="Image31" width="16" height="16" border="0" id="Image31" /></a></td><td><a href="javascript:void(0);" onmouseout="MM_swapImgRestore()" onmouseover=MM_swapImage("Image32","","images/n_button_mo.gif",1);><img src="images/n_button.gif" alt="Next" name="Image32" width="16" height="16" border="0" id="Image32" /></a></td>';
else
document.getElementById("prev").innerHTML='<td><a href="javascript:void(0);" onmouseout="MM_swapImgRestore()" onmouseover=MM_swapImage("Image31","","images/p_button_mo.gif",1) onclick=displayPrev("prev","'+prev+'") /><img src="images/p_button.gif" alt="Previous" name="Image31" width="16" height="16" border="0" id="Image31" /></a></td><td><a href="javascript:void(0);" onmouseout="MM_swapImgRestore()" onmouseover=MM_swapImage("Image32","","images/n_button_mo.gif",1) onclick=displayNext("next","'+next+'"); ><img src="images/n_button.gif" alt="Next" name="Image32" width="16" height="16" border="0" id="Image32" /></a></td>';
	}
}
function displayPrev(arg,args)
{
	var current;
	var next;
	var prev;
	if(arg=='prev')
	{
	if(args==image_array.length && args ==0)
		{
			next=1;
			prev=0;
			index=0;
		}else if(args==-1 || args ==0)
			{
			next=1;
			prev=0;
			index=0;
			}
			else
			{
			next=args;
			prev=(parseInt(args)-1);
			index=(parseInt(args)-1);
		}
	document.getElementById(next).style.display='none';
    document.getElementById(index).style.display='';
    document.getElementById("prev").innerHTML='<td><a href="javascript:void(0);" onmouseout="MM_swapImgRestore()" onmouseover=MM_swapImage("Image31","","images/p_button_mo.gif",1) onclick=displayPrev("prev","'+prev+'")><img src="images/p_button.gif" alt="Previous" name="Image31" width="16" height="16" border="0" id="Image31" /></a></td><td><a href="javascript:void(0);" onmouseout="MM_swapImgRestore()" onmouseover=MM_swapImage("Image32","","images/n_button_mo.gif",1) onclick=displayNext("next","'+next+'"); ><img src="images/n_button.gif" alt="Next" name="Image32" width="16" height="16" border="0" id="Image32" /></a></td>';
}
}

function displayTest(arg,args)
{
	
if((i==0)||(args==0))
	{ 
		var next=1;
		var prev=0;
		var index=parseInt(next);
	}
//document.getElementById('content').innerHTML = content_array[0];
//document.getElementById("changeimg").src= image_array['0'];
document.getElementById("0").style.display='';
document.getElementById("prev").innerHTML='<td><a href="javascript:void(0);" onmouseout="MM_swapImgRestore()" onmouseover=MM_swapImage("Image31","","images/p_button_mo.gif",1) onclick=displayPrev("prev","'+prev+'"); ><img src="images/p_button.gif" alt="Previous" name="Image31" width="16" height="16" border="0" id="Image31" /></a></td><td><a href="javascript:void(0);" onmouseout="MM_swapImgRestore()" onmouseover=MM_swapImage("Image32","","images/n_button_mo.gif",1) onclick=displayNext("next","'+next+'"); ><img src="images/n_button.gif" alt="Next" name="Image32" width="16" height="16" border="0" id="Image32" /></a></td>';
}