<script>
	window.onload = function init() {
		document.getElementById("depot").style.display = 'none';
	}
</script>
<div id="sub"><!-- サブメニュー -->
  <div id="menu" class="clearfix"><!-- g_menu -->
    <% if @system_supplier_use_flag %>
      <p><a href="JavaScript:onClick=Tree('display1');ImgC('img1');"><%= image_tag("menu_icon.gif", :width => "36", :height => "36", :alt => "", :id => "img1") %><span>仕入先管理</span></a></p>
    <ul id="display1" style="display:block">
      <li><%= link_to '仕入先マスタ管理', {:controller => 'suppliers', :action => 'index'} %></li>
      <li><%= link_to '仕入先登録', {:controller => 'suppliers', :action => 'new'} %></li>
    </ul>
	<%end%>
  <p><a href="JavaScript:onClick=Tree('display2');ImgC('img2');"><%= image_tag("menu_icon.gif", :width => "36", :height => "36", :alt => "", :id => "img2") %><span>在庫管理</span></a></p>
    <ul id="display2" style="display:block">
      <li><%= link_to '入庫管理', {:controller => 'stock_in', :action => 'index'} %></li>
      <li><%= link_to '在庫管理', {:controller => 'stock_modify', :action => 'index'} %></li>
      <li><%= link_to '棚卸用CSV出力', {:controller => 'stock_csv', :action => 'index'} %></li>
      <li><%= link_to '作業履歴', {:controller => 'stock_histories', :action => 'index'} %></li>
    </ul>
    <p><a href="JavaScript:onClick=Tree('display3');ImgC('img3');"><%= image_tag("menu_icon.gif", :width => "36", :height => "36", :alt => "", :id => "img3") %><span>返品処理</span></a></p>
    <ul id="display3" style="display:block">
      <li><%= link_to '返品登録', {:controller => 'return_items', :action => 'index'} %></li>
      <li><%= link_to '返品履歴', {:controller => 'return_items', :action => 'history'} %></li>
      <li><%= link_to '返品CSV', {:controller => 'return_items', :action => 'csv_index'} %></li>
    </ul>
  </div><!-- /g_menu -->
</div><!-- /サブメニュー -->
