-<head>
-<%javascript_include_tag :defaults %>
-<%if @top_bar %>
-<script type="text/javascript">
-
-document.getElementById("header").style.backgroundImage="<%=url_for @top_bar.public_filename%>"
-
-</script>
-<% end %>
-</head>
-<div id="header">
+<div id="header" style="background-image:url(<%if @top_bar%>
+ <%=url_for @top_bar.public_filename%>)
+ <% else %>
+ /images/embed_basic_bg.png)
+ <% end %>">
<%= link_to '<img id="header_icon" src="/images/embed_header_icon.png" />',
{:controller => 'front'}, {:target => "_parent"} %><h2>Vote Now</h2>
</div>