// JavaScript Document

function projects_back(curr,max)
{
if (curr == 1)
{
	current = max;
}
else 
{
	current = curr - 1;
}
link1 = "images/".concat(current).concat(".jpg");
link2 = "javascript:projects_back(".concat(current).concat(",").concat(max).concat(")");
link3 = "javascript:projects_next(".concat(current).concat(",").concat(max).concat(")");
text="".concat(current).concat("&#124;").concat(max);
document.getElementById("projects_image").src=link1;
document.getElementById("proj_back").href=link2;
document.getElementById("proj_next").href=link3;
document.getElementById("proj_back").blur();
document.getElementById("proj_next").blur();
document.getElementById("proj_pic_next").href=link3;
document.getElementById("proj_pnum").innerHTML=text;
}

function projects_next(curr,max)
{

if (curr == max)
{
	current = 1;
}
else 
{
	current = curr + 1;
}
link1 = "images/".concat(current).concat(".jpg");
link2 = "javascript:projects_back(".concat(current).concat(",").concat(max).concat(")");
link3 = "javascript:projects_next(".concat(current).concat(",").concat(max).concat(")");
text="".concat(current).concat("&#124;").concat(max);
document.getElementById("projects_image").src=link1;
document.getElementById("proj_back").href=link2;
document.getElementById("proj_next").href=link3;
document.getElementById("proj_back").blur();
document.getElementById("proj_next").blur();
document.getElementById("proj_pic_next").href=link3;
document.getElementById("proj_pic_next").blur();
document.getElementById("proj_pnum").innerHTML=text;
}
