//Tree Data(ここへTrreeメニューのデータをJSONで書きます)
// ["_open"] はメニュートグルを開きます。["_load",{"url":"ファイル名"}]はAjaxでurlをロードします。
  data=[
         ["副収入を稼ぐ" ,
           [ 
            ["_open"],
             ["ホームページで稼ぐ",
               [
                 ["はじめに","http://rich-money.info/hp/"],
                 ["無料で稼げる仕組み","http://rich-money.info/hp/shikumi.html"],
                 ["お金稼ぎの準備","http://rich-money.info/hp/ready.html"],
                 ["準備するソフト","http://rich-money.info/hp/ready_app.html"],
                 ["HP公開用サーバー","http://rich-money.info/hp/server.html"],
                 ["無料サーバー","http://rich-money.info/hp/server1.html"],
                 ["有料サーバー","http://rich-money.info/hp/server2.html"],
                 ["イーバンク銀行","http://rich-money.info/hp/e-bank.html"],
                 ["アフィリエイトの登録","http://rich-money.info/hp/affiliate.html"],
               ]
             ],
             ["メールで稼ぐ",
               [
                 ["_open"],
                 ["はじめに","http://rich-money.info/mail/"],
                 ["無料で稼げる仕組み","http://rich-money.info/mail/shikumi.html"],
                 ["無料メールアドレス","http://rich-money.info/mail/susume.html"],
                 ["メールプロトコル選択","http://rich-money.info/mail/protocol.html"],
                 ["無料メール一覧","http://rich-money.info/mail/address.html"],
                 ["ポイントメール一覧","http://rich-money.info/mail/mail.html"]
               ]
             ]
           ] 
         ],
         ["楽して稼ぐ 副収入" , 
           [
             ["_load",{"url":"../menu_data.html"}]
           ]
         ],
         ["掲示板","http://rich-money.info/php/bbs/tree.php"],
         ["プロフィール","http://rich-money.info/profile.html"],
         ["更新履歴","http://rich-money.info/update.html"],
         ["相互リンク","http://rich-money.info/xlink.html"],
         ["SEO対策サーチエンジン","http://search.rich-money.info/"],
         ["サイトマップ","http://rich-money.info/sitemap.html"]
       ]

var test1;
//初期化
YAHOO.tato.treeIni = function(){
  test1 = new YAHOO.tato.tree("treeDiv1");  //"treeDiv1"はメニューを出力するDIV名です
  test1.mkTreeByArray(data);   //ここでメニュー用JSONデータを渡します

  // Ajaxロードを100/1000秒遅らせてアイコンを表示します。省略か0にすれば、遅延無し。
  YAHOO.tato.loadTreeData.delay =100; 
}

//ページ読み込み後にカスタマイズ関数YAHOO.tato.treeIni()を起動します
YAHOO.util.Event.addListener(window, "load", YAHOO.tato.treeIni);