Template:Imageswitch

function ImageSwitch { if(document.getElementById('imageswitch-button')) { document.getElementById('imageswitch-button').onclick = function { if(document.getElementById('imageswitch-image1').style.display == 'none') { document.getElementById('imageswitch-image1').style.display = 'block'; document.getElementById('imageswitch-image2').style.display = 'none'; }			else { document.getElementById('imageswitch-image1').style.display = 'none'; document.getElementById('imageswitch-image2').style.display = 'block'; }		}	} } $(ImageSwitch);