var originalImage; var originalContent; function setOriginal(){ originalImage = document.mainImage.src; originalContent = document.getElementById("general-tekst").innerHTML; } function restoreContent(){ document.mainImage.src = originalImage; //document.getElementById("general-tekst").innerHTML = originalContent; } function updateContent(id){ switch(id){ case 0: break; case 1: document.mainImage.src = "../images/Notariskantoor_Markswachters-10.jpg"; break; case 2: document.mainImage.src = "../images/Notariskantoor_Markswachters-11.jpg"; break; case 3: document.mainImage.src = "../images/Notariskantoor_Markswachters-12.jpg"; break; case 4: document.mainImage.src = "../images/Notariskantoor_Markswachters-4.jpg"; break; case 5: document.mainImage.src = "../images/Notariskantoor_Markswachters-1.jpg"; break; case 6: document.mainImage.src = "../images/Notariskantoor_Markswachters-7.jpg"; break; case 7: document.mainImage.src = "../images/Notariskantoor_Markswachters-9.jpg"; break; case 8: document.mainImage.src = "../images/Notariskantoor_Markswachters-8.jpg"; break; } }