<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Dynamic Feed Control</title>
    <script src="http://www.google.com/jsapi" type="text/javascript"></script>

    <!-- Dynamic Feed Control and Stylesheet -->
    <script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js"
            type="text/javascript"></script>
    <style type="text/css">
      @import url("http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.css");
    </style>

    <script type="text/javascript">
    /*
    *  How to use the Dynamic Feed Control, which has pretty UI already made for you!
    *  Don't forget to check out the options:
    *  http://www.google.com/uds/solutions/dynamicfeed/reference.html
    */
    
    google.load('feeds', '1');
    
    function OnLoad() {
      var feeds = [
        {
          title: 'U.S. Markets',
          url: 'http://feeds.finance.yahoo.com/rss/2.0/category-stocks?region=US&lang=en-US'
        },
        {
          title: 'Investing Picks',
          url: 'http://feeds.finance.yahoo.com/rss/2.0/category-ideas-and-strategies?region=US&lang=en-US'
        },
        {
          title: 'Investing Strategies',
          url: 'http://feeds.finance.yahoo.com/rss/2.0/category-ideas-and-strategies?region=US&lang=en-US'
        }
      ];
    
      var options = {
        stacked : true,
        horizontal : false,
        title : "Financial News"
      };
    
      new GFdynamicFeedControl(feeds, 'content', options);
      document.getElementById('content').style.width = "1oo%";
    }
    
    google.setOnLoadCallback(OnLoad);
    </script>
  </head>
<% @title="Companies" %>
<% @description="Research your future trade." %>
<div class="container">
<!--
<h2>Research Companies</h2>

<//%= form_tag("/research", :method => "post") do %>
    <//%= label_tag(:ticker, "Ticker") %>
    <//%= text_field_tag(:ticker, "Research here") %>
    <//%= submit_tag("Research") %>
<//% end %>
-->
      <div style="width:70%" class="span4 pull-right searchBar"> 
        <div class="input-append">
          <%= form_tag("/research", :method => "post") do %> 
          <div class="searchWhiteSpace"></div>
          <%= text_field_tag(:ticker) %> 
          <input name="commit" class="btn" type="submit" value="Search" />
          <% end %> 
        </div> <!-- input-append -->
</div>
<!--
You are free to copy and use this sample in accordance with the terms of the
Apache license (http://www.apache.org/licenses/LICENSE-2.0.html)
-->


  <body style="font-family: Arial, sans-serif;border: 0 none;">
  <div id="content">
    <span style="color:#676767;font-size:11px;margin:10px;padding:4px;">Loading...</span>
  </div>
  </body>
</html>​
</div>
