/* Updated by sreeyesh k.d on feb 03 */
if(document.images)
{

 var image_array = new Array();

 var path = 'images/';
 

 
 var i=0;

  
 
   // enumeration of the "active" images
  image_array[0] = path + "Akshat-Rathi.gif";
  image_array[1] = 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";
}

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("t"+tests).style.display='none';
document.getElementById("t"+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("t"+next).style.display='none';
    document.getElementById("t"+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("t0").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>';
}