anchor.diff:                    if (event.target === modal) {
                         modal.style.display = "none";
                     }
  -              }
  -          </script>
  -
  -      <% end %>
  +              };
  +
  +              var content_type = document.getElementById('content-type');
  +              content_type.addEventListener("change", function () {
  +                  switch (content_type.value) {
  +                      case "0":
  +                          document.getElementById('video_f').className = ' ';
  +                          document.getElementById('image_f').className = 'hidden';
  +                          document.getElementById('product_f').className = 'hidden';
  +                          break;
  +                      case "1":
  +                          document.getElementById('video_f').className = 'hidden';
  +                          document.getElementById('image_f').className = ' ';
  +                          document.getElementById('product_f').className = 'hidden';
  +                          break;
  +                      case "2":
  +                          document.getElementById('video_f').className = 'hidden';
  +                          document.getElementById('image_f').className = 'hidden';
  +                          document.getElementById('product_f').className = ' ';
  +                          break;
  +
  +                  }
  +              });
  +
  +          }
  +      </script>
       </div>
   
     </div>
  
positive.code:                     </video>
                  <% elsif !sh.image_show.blank? %>
                      <img class="image_showcase_ad" src="<%= sh.image_show.image.url(:medium) %>">
                  <% elsif !sh.image_show.blank? %>
                  <% end %>
              <% end %>
  
  
negative.code:                   + '<span class="close">&times;</span>'
                    + '<form method="post" action="<%= showcases_path %>" enctype="multipart/form-data">'
                    + '<input class="hidden" value="1" name="active">'
                    + '<input class="hidden" value="0" name="screen">'
                    + '<select name="content_type" id="content-type">'
                    + '<option value="0">Video</option>'
                    + '<option value="1">Image</option>'
  