currentopacity = 0;
currentimage = 1;
currentlink = this.location;

if (document.images && totalprojectimages > 0) {
for (x = 1; x < (totalprojectimages + 1); x++) {
if (totalprojectimages > 1) {
eval ("select" + x + "on  = new Image()");
eval ("select" + x + "on.src = 'img/project" + x + "_selected_on.gif'");
eval ("select" + x + "off  = new Image()");
eval ("select" + x + "off.src = 'img/project" + x + "_selected_off.gif'");
}
eval ("projectimage1" + x + " = new Image\(\)");
eval ("projectimage1" + x + ".src = 'img/project" + x + "_image1.jpg'");
eval ("projectimage2" + x + " = new Image\(\)");
eval ("projectimage2" + x + ".src = 'img/project" + x + "_image2.jpg'");
}
}

function swapit_old () {
if (document.images) {
eval ("document.project1.src = projectimage1" + currentimage + ".src");
eval ("document.project2.src = projectimage2" + currentimage + ".src");
}
}


function changeprojectimage(location) {
for (x = 1; x < (totalprojectimages + 1); x++) {
eval ("document.select" + x + ".src = select" + x + "off.src");
}
eval ("document.select" + location + ".src = select" + location + "on.src");
currentimage = location;
swapit();
}

function swapit () {
for (y=0;y < fades.length; y++) {
clearTimeout(fades[y]);
}
numberofsets = 0;
eval ("document.project1.src = projectimage1" + currentimage + ".src");
eval ("document.project2.src = projectimage2" + currentimage + ".src");
}


function fadeinproject() {
}

function fadeoutproject() {
}

function fadetitles(where,whichway) {
}

function fadeboxes(where,whichway) {
}

function exitpage(nextpage) {
currentlink = nextpage;
movepage();
}

function movepage() {
window.location = currentlink;
}
