function showImage(number)
{          num = number;
           image="/images/projects/"+imagename+"_"+num+".jpg";
           alttext= projectname+" - image "+num;
           icon="/images/"+seitenfarbe+"/project-icon_"+num+"_a.gif";

        document.getElementById("zoomdetail").src = image;
        document.getElementById("zoomdetail").alt = alttext;
        document.getElementById("projecticon_"+num).src = icon; 
 }

 function nextImage()
 {
 icon="/images/"+seitenfarbe+"/project-icon_"+num+".gif";
 document.getElementById("projecticon_"+num).src = icon;

 if (num == anzahl)
{   num = 0;  }
   if (num < anzahl)
{   num++;  }

showImage(num);
}

function activeimage()
{ number = num +1;
if (num == anzahl)
{number = 1}

 icon="/images/"+seitenfarbe+"/project-icon_"+number+"_b.gif";
 document.getElementById("projecticon_"+number).src = icon;
 
document.getElementById("zoomdetail").className="zoomdetailactive";
}

function inactiveimage()
{ number = num +1;
if (num == anzahl)
{number = 1}

 icon="/images/"+seitenfarbe+"/project-icon_"+number+".gif";
 document.getElementById("projecticon_"+number).src = icon;
 
document.getElementById("zoomdetail").className="zoomdetailinactive";
}