// JavaScript Document
function switchImg(from,to){
    	document[from].src = eval(to + ".src");
}

count = 0;
Images = new Array();
	Images[0]=new Image();
Images[0].src='../images/p4/1.jpg';
Images[1]=new Image();
Images[1].src='../images/p4/2.jpg';
Images[2]=new Image();
Images[2].src='../images/p4/3.jpg';
Images[3]=new Image();
Images[3].src='../images/p4/4.jpg';
Images[4]=new Image();
Images[4].src='../images/p4/5.jpg';
Images[5]=new Image();
Images[5].src='../images/p4/6.jpg';
Images[6]=new Image();
Images[6].src='../images/p4/7.jpg';
Images[7]=new Image();
Images[7].src='../images/p4/8.jpg';
Images[8]=new Image();
Images[8].src='../images/p4/9.jpg';
Images[9]=new Image();
Images[9].src='../images/p4/10.jpg';
Images[10]=new Image();
Images[10].src='../images/p4/11.jpg';
Images[11]=new Image();
Images[11].src='../images/p4/12.jpg';
Images[12]=new Image();
Images[12].src='../images/p4/13.jpg';



function loadImg(from,to){
    	document[from].src = to;
}

function a(){
document.projectImage.src = Images[0].src;
count=0;
}
function b(){
document.projectImage.src = Images[1].src;
count=1;
}
function c(){
document.projectImage.src = Images[2].src;
count=2;
}
function d(){
document.projectImage.src = Images[3].src;
count=3;
}
function e(){
document.projectImage.src = Images[4].src;
count=4;
}
function f(){
document.projectImage.src = Images[5].src;
count=5;
}
function g(){
document.projectImage.src = Images[6].src;
count=6;
}
function h(){
document.projectImage.src = Images[7].src;
count=7;
}
function i(){
document.projectImage.src = Images[8].src;
count=8;
}

function Next(){
if (count < Images.length - 1){
count = count + 1;
document.projectImage.src = Images[count].src;

}
else {
count = 0;
document.projectImage.src = Images[count].src;
}
}

function Previous(){
if (count > 0){
count = count - 1;
document.projectImage.src = Images[count].src;

}
else {
count = 12;
document.projectImage.src = Images[count].src;
}
}