% content_for :head do %>
<%= javascript_include_tag "prototype" %>
<%= javascript_include_tag "openlayers/OpenLayers-dev" %>
<%= javascript_include_tag "progressbar/js/bramus/jsProgressBarHandler" %>
<%= javascript_include_tag "unwarped" %>
<% end -%>
<% if @mapstatus != "unloaded" %>
<% @onload="init();" %>
<% end %>
<% if @mapstatus != "unloaded" %>
<%= @title %>
<% else %>
Loading map... <%= image_tag 'spinner.gif' %>
20%
requesting
Map has successfully loaded, please refresh the page to see the full map.
The map did not load properly, please refresh the page and try again.
If it does not load properly a second time, please choose another map
A low resolution preview is shown below.
<%=image_tag @map.upload.url %>
<%= periodically_call_remote :url => {:action=>'status', :id => @map.id},
:update => 'map_status',
:frequency => 4,
:condition => "!($('map_status').innerHTML == 'available') || !($('map_status').innerHTML == 'warped')",
:complete => "yayornay();",
:success => "updatebar(request.responseText);",
:variable => 'statusPoll'
%>
<%end%>