var DOMReady = function(a,b,c){b=document,c='addEventListener';b[c]?b[c]('DOMContentLoaded',a):window.attachEvent('onload',a)}

DOMReady(function () {

	var image = document.getElementById("gdvAnimatedPicture"),
		button = document.getElementById("gdvPauseBtn");

	if (image.classList && image && button) {
		button.onclick = function() {
			if (this.value == 'Pause') {
				image.classList.add('gdv-pause');
				this.value = 'Play';
			} else {
				image.classList.remove('gdv-pause');
				this.value = 'Pause';
			}
		};
	}

});