var picture_location = new Array();






picture_location[2] = "graphics/homepage/gahanna4.jpg";
picture_location[1] = "graphics/homepage/dude.jpg";






var number_of_pics=1;

if (typeof(num) == 'undefined')
{
	num = Math.ceil(Math.random()*number_of_pics);	
}
else
{
	do 
	{
		num2 = Math.ceil(Math.random() * number_of_pics);
	} while ((num == num2) || (picture_location[num].substring(0,4) == picture_location[num2].substring(0,4)))
	num=num2;
}

var string=picture_location[num], folder_name=''; // Initialize variables

function CharIsNumeric(ch)
{
	var x = 0;
	var valid ="0123456789";
	var bool = false; // Initialize
    while ((bool == false) && (x<11)) // Count to 10 because there are 10 valid digits
	{
		if (ch.charAt(0) != valid.charAt(x))
		{
			// Do nothing
		}
	  	else 
		{
			bool=true;
		}
		++x;
	}
	return bool;
}
var char_position;

// Find the position of slash if exists else find period
if (string.indexOf('/')!=-1)
{
	char_position=string.indexOf('/');
}
else
{
	char_position = string.indexOf('.');
	var ch = string.charAt(--char_position);
	while (CharIsNumeric(ch))
	{
		ch = string.charAt(--char_position);
		if (!CharIsNumeric(ch))
		{
			char_position++;
		}
	}
}

for (var i=0; i < char_position; i++)
{
	chr = string.charAt(i);
	folder_name += chr;
}




document.write('<div align="center"><a href="otheroptions.html">');
document.write('<IMG SRC="');
document.write(picture_location[num]);

document.write('" WIDTH="697" HEIGHT="323" BORDER="0" USEMAP="#Map" onMouseUp="gslogo=1" onMouseDown="gslogo=1"> </a> </div>');











