<%= start_bubble_wrap("blue","black") %>Buy a Building<%= end_bubble_wrap("blue","black") %> <%= start_bubble_wrap("light_blue","black") %> <%= start_bubble_wrap("scarlet","light_blue") %> Hotel Types: <% 1..4.times do |i| %><% i += 1 %><%= link_to_remote i, :update=> "x",:loading=>'action_window_up()', :complete => 'action_window_down()', :url => {:action => "build", :page=>i} %> <% end %> <%= end_bubble_wrap("scarlet","light_blue") %>
<% property = @properties[0] %> <% top = -42 %> <% left = -45 %> <% adjust = 38 %> <% offset = ((20 * 6)+adjust) - (property.max_levels * 6)+top %>
<%= draw_building(property.max_levels,property.id) %>
<%= start_bubble_wrap("pink","light_blue") %> <%= property.title %> <%= end_bubble_wrap("pink","light_blue") %>

<%= property.description %>

Maximum Stories: <%= property.max_levels %>

Buildings can be upgraded anytime after purchase without losing a turn.

<% level_counter = 1 %> <% PropertyType.get_max_levels(property.id,@user).to_i.times do %> <% level_counter += 1 %> <% end %>
Stories Rent Cost  
<%= level_counter %> <%= property.rent(level_counter) %> <%= number_with_delimiter(this_cost = property.cost(level_counter)) %> <% if this_cost <= @user.user_instance.account.balance %><%= link_to "Buy", :action=> 'buy', :id => property.id, :levels => level_counter %> <% else %> <% end %>
<%= end_bubble_wrap("light_blue","black") %>