var theFeatureImages = new Array()
theFeatureImages[0] = 'images/pw_gsowelcome.jpg';
theFeatureImages[1] = 'images/pw_gsocognitive.jpg';
theFeatureImages[2] = 'images/pw_gsotechnology.jpg';
theFeatureImages[3] = 'images/pw_gsofreesat.jpg';
theFeatureImages[4] = 'images/pw_gsomodule.jpg';
theFeatureImages[5] = 'images/pw_necc.jpg';

var theFeatureURL = new Array();
theFeatureURL[0] = 'http://www.georgiastandards.org/index.aspx?ViewMode=1&obj=1074';
theFeatureURL[1] = 'impairment.aspx';
theFeatureURL[2] = 'http://www.georgiastandards.org/index.aspx?ViewMode=1&obj=1090';
theFeatureURL[3] = 'http://www.georgiastandards.org/index.aspx?ViewMode=1&obj=1185';
theFeatureURL[4] = 'http://www.georgiastandards.org/index.aspx?ViewMode=1&obj=1215';
theFeatureURL[5] = 'http://www.georgiastandards.org/index.aspx?ViewMode=1&obj=1267';

/*
Milken:			pea_communications.aspx?ViewMode=1&obj=986
 Read More:			it.aspx?ViewMode=1&obj=982
 Virtual School: 		it.aspx?ViewMode=1&obj=984
 Lexile:			need to add

*/

var featurelen = theFeatureImages.length;
var featurePreBuffer = new Array()
for (var i = 0; i < featurelen; i++)
{
	featurePreBuffer[i] = new Image()
	featurePreBuffer[i].src = theFeatureImages[i];
}
var whichFeatureImage = Math.round(Math.random()*(featurelen-1));

function showHomeImages()
{	
	try
	{
	    if(featureimage)
	    {
	        featureimage.src=theFeatureImages[whichFeatureImage];
	        document.getElementById("feature").href=theFeatureURL[whichFeatureImage];
	    }
	}
	catch(err)
	{
	    
	}
}
function featureNext()
{	
	if (whichFeatureImage == featurelen-1)
	{
		whichFeatureImage = 0;	
	}
	else 
	{
		whichFeatureImage = whichFeatureImage + 1;	

	}
	featureimage.src=theFeatureImages[whichFeatureImage];
	document.getElementById("feature").href=theFeatureURL[whichFeatureImage];	
}
function featureBack()
{
	if (whichFeatureImage == 0)
	{
		whichFeatureImage = featurelen-1;		
	}
	else 
	{
		whichFeatureImage = whichFeatureImage - 1;	
	}
	featureimage.src=theFeatureImages[whichFeatureImage];
	document.getElementById("feature").href=theFeatureURL[whichFeatureImage];	
}
