<%= content_for(:title) { 'Internet Latency Test' }%>
<script src="http://www.java.com/js/deployJava.js"></script>
<h1 style="text-align:center">JamKazam Internet Latency Test:  Select your Internet Service Provider</h1>
<h2 style="text-align:center">Java must be installed to run this tool.  Please select logo corresponding to your ISP, or if you're not sure, choose "Other".  OSX not currently supported.</h2>
<div style="overflow:scroll; margin-left: 20px; margin-top: 20px; ">
  <% @isps.each do |isp_id, isp_data| %>
    <% url_jnlp = isp_ping_url(:isp => isp_id, :format => :jnlp, :host => 'www.jamkazam.com', :port => '80') %>
    <div style='margin-bottom: 30px; '>
        <%= content_tag(:div, "My ISP is #{isp_data[0]}:") %>
        <%= link_to(image_tag("isps/#{isp_data[1]}", :alt => isp_data[0]), url_jnlp) %>
    </div>
  <% end %>
</div>
