(function(){
	var markers = document.querySelectorAll('.kramar-hide-upload[data-loop]');
	var panels = document.querySelectorAll('.woocommerce_variation');
	for (var i = 0; i < markers.length; i++) {
		var loop = parseInt(markers[i].getAttribute('data-loop'), 10);
		var panel = panels[loop];
		if (panel) {
			var img = panel.querySelector('.upload_image');
			if (img) img.style.display = 'none';
		}
	}
})();
