function getScene()
{
	var locate = window.location;
	document.image.array.value = locate;
	var text = document.image.array.value;
	return delineate(text);
}	

function delineate(str)
{
    firstindex = str.indexOf("=") +1;
	lastindex = str.indexOf("&");

    scene = str.substring(firstindex, lastindex);
    scenelength = scene.length;
	
        if(scenelength >= 1 ){
	    return(scene);
		
        } else {
            return(0);
			
        }
}

function getImage()
{
    return "<img src='../../" + imageArray[eval(getScene())][0] + "' width='" + imageArray[eval(getScene())][1] + "'height='" + imageArray[eval(getScene())][2] + "' vspace=5 border=1 alt='" + getLocation() + "'>";
	
}

function getDataset()
{	
	return "<b>" + imageArray[getScene()][3] + "</b>";
}

function getDescription()
{
	return imageArray[eval(getScene())][4];
}

function getLocation()
{
        return imageArray[eval(getScene())][5];
}

function getNext()
{
	return eval(eval(getScene())+1);
}

function getBack()
{
        return eval(eval(getScene())-1);
}
function getLink()
{
    return "<a href='../../" + imageArray[eval(getScene())][0] + "' target='_blank'>";
}
