<script type="text/javascript" charset="utf-8">
  hasFrames = window.top.frames.main ? true : false;
  relpath = '<%= u = url_for(''); u + (u != '' ? '/' : '') %>';
  framesUrl = "<%= url_for_frameset %>#!" + escape(window.location.href);
</script>
