var n=0;
var first=0;
var d = new Date();
n = 0;

function goNext(imgaray)
{
var numimg = imgaray.length;

if(n<numimg-1)
{
n++;
document.getElementById("imgst").src = imgaray[n];
document.getElementById("imgnext").src="../pc/images/button-next.png";
document.getElementById("imgprev").src="../pc/images/button-previous.png";
}
else
{
document.getElementById("imgprev").src="../pc/images/button-previous.png";
}
}
function goPrev(imgaray)
{
if(n>=1)
{
var numimg = imgaray.length;
n--;
document.getElementById("imgst").src = imgaray[n];
document.getElementById("imgprev").src="../pc/images/button-previous.png";
document.getElementById("imgnext").src="../pc/images/button-next.png";
}
else
{
document.getElementById("imgnext").src="../pc/images/button-next.png";
}
}
function loadpic(imgaray)
{
document.getElementById("imgst").src = imgaray[0];
}
