$(function() { /*================================================================ 情報 ================================================================*/ var allList = [ { id: "257", life: "19", url:"index.php?act=staff&id=257", img:"user_data/1364.jpg", nen:"平成18年式", soukou:"116438", title:"プレマシーグレー328 マツダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "317", life: "19", url:"index.php?act=staff&id=317", img:"user_data/1656.jpg", nen:"平成20年式", soukou:"134142", title:"シエンタ青4807 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "752", life: "29", url:"index.php?act=staff&id=752", img:"user_data/4906.jpg", nen:"平成20年式", soukou:"108280", title:"フリード銀4970 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "741", life: "29", url:"index.php?act=staff&id=741", img:"user_data/4896.jpg", nen:"平成21年式", soukou:"69500", title:"インプレッサグレー603 スバル", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "733", life: "39", url:"index.php?act=staff&id=733", img:"user_data/4889.jpg", nen:"平成22年式", soukou:"102515", title:"セレナ銀4888 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "717", life: "19", url:"index.php?act=staff&id=717", img:"user_data/4854.jpg", nen:"平成21年式", soukou:"139528", title:"ステップワゴングレー4825 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "713", life: "29", url:"index.php?act=staff&id=713", img:"user_data/4858.jpg", nen:"平成15年式", soukou:"138972", title:"アルファード黒606 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "694", life: "19", url:"index.php?act=staff&id=694", img:"user_data/4800.jpg", nen:"平成18年式", soukou:"72314", title:"MPVワイン601 マツダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "686", life: "89", url:"index.php?act=staff&id=686", img:"user_data/4729.jpg", nen:"平成18年式", soukou:"65443", title:"レクサスハイブリッド紫577 GS450h", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "675", life: "19", url:"index.php?act=staff&id=675", img:"user_data/4690.jpg", nen:"平成20年式", soukou:"96407", title:"デミオグレー4711 マツダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "673", life: "108", url:"index.php?act=staff&id=673", img:"user_data/4778.jpg", nen:"平成18年式", soukou:"157346", title:"レクサスハイブリッド黒799 GS450h", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "660", life: "9", url:"index.php?act=staff&id=660", img:"user_data/4481.jpg", nen:"平成19年式", soukou:"116643", title:"シエンタグレー4812 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "659", life: "29", url:"index.php?act=staff&id=659", img:"user_data/4731.jpg", nen:"平成21年式", soukou:"127649", title:"フリードワインレッド4721 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "655", life: "49", url:"index.php?act=staff&id=655", img:"user_data/4693.jpg", nen:"平成16年式", soukou:"84548", title:"フェアレディZ銀563 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "650", life: "29", url:"index.php?act=staff&id=650", img:"user_data/4476.jpg", nen:"平成25年式", soukou:"154400", title:"ヴィッツ水色4708 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "635", life: "9", url:"index.php?act=staff&id=635", img:"user_data/4416.jpg", nen:"平成19年式", soukou:"90973", title:"キューブ白4767 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "634", life: "19", url:"index.php?act=staff&id=634", img:"user_data/4415.jpg", nen:"平成21年式", soukou:"102468", title:"パッソセッテ黒4769 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "633", life: "19", url:"index.php?act=staff&id=633", img:"user_data/4400.jpg", nen:"平成18年式", soukou:"157103", title:"セレナワイン556 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "627", life: "29", url:"index.php?act=staff&id=627", img:"user_data/4388.jpg", nen:"平成19年式", soukou:"90081", title:"セレナ白562 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "625", life: "19", url:"index.php?act=staff&id=625", img:"user_data/4403.jpg", nen:"平成20年式", soukou:"111807", title:"ラクティス銀4872 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "620", life: "19", url:"index.php?act=staff&id=620", img:"user_data/4372.jpg", nen:"平成21年式", soukou:"89142", title:"デミオ紫4821 マツダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "605", life: "19", url:"index.php?act=staff&id=605", img:"user_data/4210.jpg", nen:"平成21年式", soukou:"87000", title:"ノートピンク4664 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "600", life: "9", url:"index.php?act=staff&id=600", img:"user_data/4049.jpg", nen:"平成19年式", soukou:"60450", title:"ベルタ銀4766 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "596", life: "39", url:"index.php?act=staff&id=596", img:"user_data/4002.jpg", nen:"平成24年式", soukou:"154915", title:"フィットハイブリッド緑4639 ホンダ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "591", life: "39", url:"index.php?act=staff&id=591", img:"user_data/3902.jpg", nen:"平成23年式", soukou:"130600", title:"ソリオ黒4627 スズキ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "583", life: "29", url:"index.php?act=staff&id=583", img:"user_data/3860.jpg", nen:"平成22年式", soukou:"90400", title:"ノート銀4890 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "582", life: "19", url:"index.php?act=staff&id=582", img:"user_data/3741.jpg", nen:"平成21年式", soukou:"61200", title:"パッソ赤4652 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "573", life: "19", url:"index.php?act=staff&id=573", img:"user_data/3739.jpg", nen:"平成16年式", soukou:"121606", title:"イプサム銀535 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "567", life: "29", url:"index.php?act=staff&id=567", img:"user_data/3595.jpg", nen:"平成22年式", soukou:"124485", title:"ノート茶4891 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "561", life: "39", url:"index.php?act=staff&id=561", img:"user_data/3780.jpg", nen:"平成18年式", soukou:"126154", title:"アルファード銀520 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "552", life: "19", url:"index.php?act=staff&id=552", img:"user_data/3799.jpg", nen:"平成21年式", soukou:"75700", title:"フィットベージュ4598 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "536", life: "19", url:"index.php?act=staff&id=536", img:"user_data/3798.jpg", nen:"平成22年式", soukou:"68700", title:"コルト水色4541 ミツビシ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "525", life: "29", url:"index.php?act=staff&id=525", img:"user_data/3676.jpg", nen:"平成24年式", soukou:"134145", title:"スペイド銀4448 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "519", life: "29", url:"index.php?act=staff&id=519", img:"user_data/3451.jpg", nen:"平成21年式", soukou:"138471", title:"キューブ白4415 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "515", life: "59", url:"index.php?act=staff&id=515", img:"user_data/3460.jpg", nen:"平成20年式", soukou:"97297", title:"ノア銀4414 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "510", life: "19", url:"index.php?act=staff&id=510", img:"user_data/3718.jpg", nen:"平成21年式", soukou:"114867", title:"ノート赤4369 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "499", life: "19", url:"index.php?act=staff&id=499", img:"user_data/3034.jpg", nen:"平成23年式", soukou:"120706", title:"マーチ銀4280 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "495", life: "19", url:"index.php?act=staff&id=495", img:"user_data/3024.jpg", nen:"平成21年式", soukou:"117491", title:"スイフト茶4282 スズキ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "494", life: "29", url:"index.php?act=staff&id=494", img:"user_data/3025.jpg", nen:"平成21年式", soukou:"91036", title:"IQ赤4289 トヨタ ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "493", life: "29", url:"index.php?act=staff&id=493", img:"user_data/3083.jpg", nen:"平成21年式", soukou:"88234", title:"インプレッサグレー465 スバル", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "483", life: "19", url:"index.php?act=staff&id=483", img:"user_data/3269.jpg", nen:"平成19年式", soukou:"96748", title:"キューブ青4145 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "482", life: "39", url:"index.php?act=staff&id=482", img:"user_data/3056.jpg", nen:"平成25年式", soukou:"151401", title:"ノート白4185 ニッサン", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "481", life: "19", url:"index.php?act=staff&id=481", img:"user_data/3091.jpg", nen:"平成20年式", soukou:"127169", title:"ノート銀4184 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "478", life: "29", url:"index.php?act=staff&id=478", img:"user_data/2719.jpg", nen:"平成21年式", soukou:"99161", title:"フィット黄色4899 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "476", life: "29", url:"index.php?act=staff&id=476", img:"user_data/2573.jpg", nen:"平成22年式", soukou:"143000", title:"キューブ銀4086 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "472", life: "19", url:"index.php?act=staff&id=472", img:"user_data/2526.jpg", nen:"平成20年式", soukou:"91200", title:"ラフェスタ銀4087 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "467", life: "19", url:"index.php?act=staff&id=467", img:"user_data/2431.jpg", nen:"平成19年式", soukou:"159898", title:"セレナ茶4247 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "466", life: "9", url:"index.php?act=staff&id=466", img:"user_data/2987.jpg", nen:"平成17年式", soukou:"96700", title:"ラクティス銀4204 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "458", life: "29", url:"index.php?act=staff&id=458", img:"user_data/2430.jpg", nen:"平成21年式", soukou:"62429", title:"ウイングロード白4190 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "450", life: "19", url:"index.php?act=staff&id=450", img:"user_data/2446.jpg", nen:"平成21年式", soukou:"136479", title:"フィット青4163 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "449", life: "39", url:"index.php?act=staff&id=449", img:"user_data/3157.jpg", nen:"平成23年式", soukou:"132600", title:"キューブ白4085 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "447", life: "29", url:"index.php?act=staff&id=447", img:"user_data/2807.jpg", nen:"平成21年式", soukou:"133804", title:"フリード白4106 ホンダ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "445", life: "19", url:"index.php?act=staff&id=445", img:"user_data/2379.jpg", nen:"平成22年式", soukou:"82700", title:"コルト紺4056 ミツビシ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "443", life: "19", url:"index.php?act=staff&id=443", img:"user_data/2683.jpg", nen:"平成20年式", soukou:"104919", title:"ラフェスタグレー4115 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "437", life: "19", url:"index.php?act=staff&id=437", img:"user_data/2369.jpg", nen:"平成20年式", soukou:"97716", title:"Bb銀4130 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "436", life: "9", url:"index.php?act=staff&id=436", img:"user_data/2368.jpg", nen:"平成19年式", soukou:"121010", title:"ポルテ黒4164 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "429", life: "39", url:"index.php?act=staff&id=429", img:"user_data/2361.jpg", nen:"平成22年式", soukou:"119332", title:"フリード紺4126 ホンダ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "423", life: "49", url:"index.php?act=staff&id=423", img:"user_data/2456.jpg", nen:"平成16年式", soukou:"95175", title:"アルファード銀595 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "420", life: "19", url:"index.php?act=staff&id=420", img:"user_data/2298.jpg", nen:"平成20年式", soukou:"114468", title:"エアウェイブ黒4046 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "414", life: "19", url:"index.php?act=staff&id=414", img:"user_data/2356.jpg", nen:"平成21年式", soukou:"128551", title:"ブルーバードシルフィ茶4274 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "413", life: "29", url:"index.php?act=staff&id=413", img:"user_data/2347.jpg", nen:"平成22年式", soukou:"148346", title:"キューブ茶4052 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "398", life: "29", url:"index.php?act=staff&id=398", img:"user_data/2164.jpg", nen:"平成20年式", soukou:"71100", title:"AD白157 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "386", life: "9", url:"index.php?act=staff&id=386", img:"user_data/2290.jpg", nen:"平成18年式", soukou:"101600", title:"ノート銀4186 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "385", life: "19", url:"index.php?act=staff&id=385", img:"user_data/2418.jpg", nen:"平成21年式", soukou:"87921", title:"フィット黒4230 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "375", life: "19", url:"index.php?act=staff&id=375", img:"user_data/2481.jpg", nen:"平成21年式", soukou:"84800", title:"フィット紫4030 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "374", life: "29", url:"index.php?act=staff&id=374", img:"user_data/2278.jpg", nen:"平成19年式", soukou:"123206", title:"ランディ黒4797 スズキ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "371", life: "19", url:"index.php?act=staff&id=371", img:"user_data/2184.jpg", nen:"平成21年式", soukou:"112915", title:"フィットグレー4157 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "369", life: "9", url:"index.php?act=staff&id=369", img:"user_data/2176.jpg", nen:"平成20年式", soukou:"115753", title:"フィット黒4187 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "368", life: "19", url:"index.php?act=staff&id=368", img:"user_data/2180.jpg", nen:"平成21年式", soukou:"146760", title:"フィット青 ホンダ4104", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "367", life: "24", url:"index.php?act=staff&id=367", img:"user_data/2294.jpg", nen:"平成22年式", soukou:"139083", title:"マーチ白4156 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "361", life: "29", url:"index.php?act=staff&id=361", img:"user_data/2104.jpg", nen:"平成20年式", soukou:"113472", title:"ムーブコンテLブルー1348 ダイハツ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "352", life: "49", url:"index.php?act=staff&id=352", img:"user_data/2120.jpg", nen:"平成22年式", soukou:"97414", title:"フィット 赤4209 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "327", life: "ご予算♪", url:"index.php?act=staff&id=327", img:"user_data/750.jpg", nen:"ご希望に応じて♪", soukou:"ご希望による♪", title:"リクエストプラン!!", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "321", life: "39", url:"index.php?act=staff&id=321", img:"user_data/1512.jpg", nen:"平成21年式", soukou:"74800", title:"フィットグレー3946 ホンダ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "308", life: "9", url:"index.php?act=staff&id=308", img:"user_data/252.jpg", nen:"平成18年式", soukou:"105256", title:"レガシー銀455 スバル", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "304", life: "19", url:"index.php?act=staff&id=304", img:"user_data/205.jpg", nen:"平成19年式", soukou:"142937", title:"ランディ銀4796 スズキ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "303", life: "14", url:"index.php?act=staff&id=303", img:"user_data/291.jpg", nen:"平成19年式", soukou:"105243", title:"ラクティスグレー4875 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "301", life: "14", url:"index.php?act=staff&id=301", img:"user_data/237.jpg", nen:"平成19年式", soukou:"113619", title:"ラフェスタ青3902 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "299", life: "14", url:"index.php?act=staff&id=299", img:"user_data/3650.jpg", nen:"平成18年式", soukou:"76095", title:"ラクティス銀3563 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "290", life: "39", url:"index.php?act=staff&id=290", img:"user_data/1055.jpg", nen:"平成23年式", soukou:"101300", title:"マーチ薄ピンク3908 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "289", life: "38", url:"index.php?act=staff&id=289", img:"user_data/1340.jpg", nen:"平成23年式", soukou:"107300", title:"マーチ茶3557 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "288", life: "38", url:"index.php?act=staff&id=288", img:"user_data/1112.jpg", nen:"平成23年式", soukou:"108800", title:"マーチ銀3452 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "286", life: "38", url:"index.php?act=staff&id=286", img:"user_data/1875.jpg", nen:"平成22年式", soukou:"110585", title:"マーチ白3383 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "285", life: "39", url:"index.php?act=staff&id=285", img:"user_data/1496.jpg", nen:"平成22年式", soukou:"75201", title:"マーチ銀3363 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "278", life: "14", url:"index.php?act=staff&id=278", img:"user_data/1290.jpg", nen:"平成17年式", soukou:"110274", title:"マークX紺408 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "265", life: "14", url:"index.php?act=staff&id=265", img:"user_data/863.jpg", nen:"平成19年式", soukou:"118026", title:"ベリーサ白4889 マツダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "263", life: "19", url:"index.php?act=staff&id=263", img:"user_data/963.jpg", nen:"平成20年式", soukou:"129255", title:"プレマシー水色622 マツダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "256", life: "29", url:"index.php?act=staff&id=256", img:"user_data/273.jpg", nen:"平成19年式", soukou:"76113", title:"ブレイド茶366 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "248", life: "29", url:"index.php?act=staff&id=248", img:"user_data/665.jpg", nen:"平成21年式", soukou:"145614", title:"フリード銀3886 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "247", life: "29", url:"index.php?act=staff&id=247", img:"user_data/1211.jpg", nen:"平成21年式", soukou:"161589", title:"フリード銀3881 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "246", life: "46", url:"index.php?act=staff&id=246", img:"user_data/2534.jpg", nen:"平成20年式", soukou:"156952", title:"フリード水色4088 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "244", life: "38", url:"index.php?act=staff&id=244", img:"user_data/653.jpg", nen:"平成21年式", soukou:"135659", title:"フリードグレー3775 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "238", life: "39", url:"index.php?act=staff&id=238", img:"user_data/1414.jpg", nen:"平成21年式", soukou:"127497", title:"フィットRS白3887 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "237", life: "19", url:"index.php?act=staff&id=237", img:"user_data/1504.jpg", nen:"平成18年式", soukou:"129050", title:"フィットRS青5040 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "235", life: "39", url:"index.php?act=staff&id=235", img:"user_data/1702.jpg", nen:"平成22年式", soukou:"117800", title:"フィットグレー3825 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "232", life: "39", url:"index.php?act=staff&id=232", img:"user_data/1430.jpg", nen:"平成21年式", soukou:"72000", title:"フィット黒3872 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "231", life: "39", url:"index.php?act=staff&id=231", img:"user_data/1406.jpg", nen:"平成21年式", soukou:"95600", title:"フィット赤3871 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "230", life: "34", url:"index.php?act=staff&id=230", img:"user_data/1120.jpg", nen:"平成21年式", soukou:"134844", title:"フィットグレー3831 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "229", life: "34", url:"index.php?act=staff&id=229", img:"user_data/2071.jpg", nen:"平成21年式", soukou:"119400", title:"フィット青4192 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "228", life: "14", url:"index.php?act=staff&id=228", img:"user_data/1388.jpg", nen:"平成21年式", soukou:"144100", title:"フィット青3570 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "227", life: "19", url:"index.php?act=staff&id=227", img:"user_data/1739.jpg", nen:"平成20年式", soukou:"84121", title:"フィット黄色4227 ホンダ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "226", life: "19", url:"index.php?act=staff&id=226", img:"user_data/692.jpg", nen:"平成20年式", soukou:"113781", title:"フィット青4867 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "224", life: "19", url:"index.php?act=staff&id=224", img:"user_data/385.jpg", nen:"平成20年式", soukou:"130674", title:"フィットRS青3564 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "223", life: "39", url:"index.php?act=staff&id=223", img:"user_data/1478.jpg", nen:"平成22年式", soukou:"74600", title:"フィット青3562 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "222", life: "19", url:"index.php?act=staff&id=222", img:"user_data/1396.jpg", nen:"平成20年式", soukou:"114223", title:"フィット黒3561 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "220", life: "19", url:"index.php?act=staff&id=220", img:"user_data/1770.jpg", nen:"平成20年式", soukou:"99492", title:"フィット水色4219 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "219", life: "24", url:"index.php?act=staff&id=219", img:"user_data/1220.jpg", nen:"平成20年式", soukou:"130182", title:"フィットRS青3830 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "218", life: "19", url:"index.php?act=staff&id=218", img:"user_data/1778.jpg", nen:"平成20年式", soukou:"144050", title:"フィット薄ピンク3573 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "217", life: "19", url:"index.php?act=staff&id=217", img:"user_data/1818.jpg", nen:"平成20年式", soukou:"145957", title:"フィット青3569 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "216", life: "19", url:"index.php?act=staff&id=216", img:"user_data/1740.jpg", nen:"平成21年式", soukou:"133636", title:"フィット青3540 ホンダ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "215", life: "19", url:"index.php?act=staff&id=215", img:"user_data/3165.jpg", nen:"平成20年式", soukou:"139175", title:"フィット赤3538 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "205", life: "39", url:"index.php?act=staff&id=205", img:"user_data/186.jpg", nen:"平成20年式", soukou:"140882", title:"ビアンテ銀422 マツダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "200", life: "9", url:"index.php?act=staff&id=200", img:"user_data/1152.jpg", nen:"平成18年式", soukou:"121110", title:"パッソ銀3608 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "184", life: "14", url:"index.php?act=staff&id=184", img:"user_data/394.jpg", nen:"平成19年式", soukou:"73095", title:"ノート青4871 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "178", life: "19", url:"index.php?act=staff&id=178", img:"user_data/1934.jpg", nen:"平成20年式", soukou:"131701", title:"デミオ銀3404 マツダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "167", life: "21", url:"index.php?act=staff&id=167", img:"user_data/820.jpg", nen:"平成22年式", soukou:"98186", title:"ソリオ黒3539 スズキ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "164", life: "39", url:"index.php?act=staff&id=164", img:"user_data/1738.jpg", nen:"平成20年式", soukou:"118300", title:"セレナガンメタ3821 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "147", life: "9", url:"index.php?act=staff&id=147", img:"user_data/1607.jpg", nen:"平成20年式", soukou:"139393", title:"スイフト赤3535 スズキ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "145", life: "9", url:"index.php?act=staff&id=145", img:"user_data/1177.jpg", nen:"平成19年式", soukou:"145634", title:"スイフトグレー3878 スズキ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "144", life: "9", url:"index.php?act=staff&id=144", img:"user_data/971.jpg", nen:"平成19年式", soukou:"138411", title:"スイフト黒4894 スズキ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "142", life: "9", url:"index.php?act=staff&id=142", img:"user_data/1104.jpg", nen:"平成18年式", soukou:"114385", title:"スイフト紺4876 スズキ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "135", life: "19", url:"index.php?act=staff&id=135", img:"user_data/1623.jpg", nen:"平成20年式", soukou:"126724", title:"MW白4118 シボレー", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "128", life: "9", url:"index.php?act=staff&id=128", img:"user_data/1308.jpg", nen:"平成19年式", soukou:"122800", title:"シエンタ水色4801 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "105", life: "19", url:"index.php?act=staff&id=105", img:"user_data/2095.jpg", nen:"平成21年式", soukou:"80859", title:"コルト銀4877 ミツビシ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "93", life: "9", url:"index.php?act=staff&id=93", img:"user_data/794.jpg", nen:"平成18年式", soukou:"112352", title:"キューブ白4122 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "82", life: "39", url:"index.php?act=staff&id=82", img:"user_data/996.jpg", nen:"平成22年式", soukou:"112991", title:"エクシーガガンメタ602 スバル", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "75", life: "19", url:"index.php?act=staff&id=75", img:"user_data/1942.jpg", nen:"平成19年式", soukou:"123200", title:"ウイングロードグレー4884 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "74", life: "19", url:"index.php?act=staff&id=74", img:"user_data/1736.jpg", nen:"平成20年式", soukou:"79116", title:"ウイングロード黒3748 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "70", life: "19", url:"index.php?act=staff&id=70", img:"user_data/768.jpg", nen:"平成20年式", soukou:"90800", title:"ヴィッツ黒4892 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "65", life: "9", url:"index.php?act=staff&id=65", img:"user_data/359.jpg", nen:"平成15年式", soukou:"119176", title:"ウィッシュ赤3892 トヨタ", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "64", life: "9", url:"index.php?act=staff&id=64", img:"user_data/316.jpg", nen:"平成18年式", soukou:"141480", title:"ウィッシュ白3833 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "62", life: "9", url:"index.php?act=staff&id=62", img:"user_data/1631.jpg", nen:"平成17年式", soukou:"60215", title:"ウィッシュ紺508 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "59", life: "29", url:"index.php?act=staff&id=59", img:"user_data/1826.jpg", nen:"平成21年式", soukou:"127800", title:"インプレッサ黒379 スバル", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "49", life: "14", url:"index.php?act=staff&id=49", img:"user_data/837.jpg", nen:"平成19年式", soukou:"112278", title:"アイシス水色3813 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "44", life: "19", url:"index.php?act=staff&id=44", img:"user_data/213.jpg", nen:"平成18年式", soukou:"59119", title:"MPV376白 マツダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "40", life: "39", url:"index.php?act=staff&id=40", img:"user_data/601.jpg", nen:"平成23年式", soukou:"116000", title:"ミニキャブ白237 ミツビシ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, ]; /*================================================================ スクリプトはじまり ================================================================*/ function init() { //イベント登録 $(".filter_life select").on("change", onFilterChange); $(".filter_tag input").on("change", onFilterChange); $(".filter_keyword button").on("click", onFilterChange); //最初は全て出力 refleshHtml(allList); } /*================================================================ HTML出力 ================================================================*/ function refleshHtml(list) { var outputHtml = ''; //出力する内容をoutputHtmlに格納 if (list.length > 0) { _.each(list, function(line, i) { outputHtml += '

' + line.title + '

'; outputHtml += '' + line.title + ''; outputHtml += '' + line.new + '' + line.sold + ''; outputHtml += '

価格 ' + line.life + '万円

'; outputHtml += '

年式: ' + line.nen + '

'; outputHtml += '

走行: 約 ' + line.soukou + 'km

'; outputHtml += '
'; }); } else { outputHtml += '

条件に当てはまる車を検索できませんでした。

'; } //HTML出力(フェードインアニメーションつき) $('.productArea').html(outputHtml); $('.productArea .product').css({opacity: 0}).each(function(i){$(this).delay(100 * i).animate({opacity:1}, 300); }); //検索件数表示 $('.productCntArea').html('

' + allList.length + '件中' + list.length + '件を表示しています。

'); } /*================================================================ 絞り込み条件を変更した時 ================================================================*/ function onFilterChange(e) { var filterFncs = []; var result = []; //セレクトボックスの値を引数に指定した関数filterByLifeをfilterFuncs配列に格納 filterFncs.push( function(list) { return filterByLife(list, $('.filter_life select').val()); } ); //チェックボックスの値を引数に指定した関数filterByTagをfilterFuncs配列に格納 filterFncs.push( function(list) { return filterByTag(list, $('.filter_tag input:checked')); } ); //キーワードの値を引数に指定した関数filterByKeywordをfilterFuncs配列に格納 filterFncs.push( function(list) { return filterByKeyword(list, _.escape($('.filter_keyword input').val())); } ); //FilterFuncs配列内の関数をバケツリレーみたいに1つずつ実行して結果をresult配列に格納 result = _.reduce(filterFncs, function(list, fnc) { return fnc(list); }, allList); //絞り込んだ結果を出力 refleshHtml(result); } /*================================================================ 絞り込み[1] セレクトボックス絞り込み関数 ================================================================*/ function filterByLife(list, value) { //絞り込み指定がない場合はリターン if (value == "") { return list; } //選択したセレクトボックスとlifeがマッチするかでフィルタリング return _.filter(list, function(item) { switch (value) { case '1': return item.life <= 10; case '2': return 10 < item.life && item.life <= 20; case '3': return 20 < item.life && item.life <= 30; case '4': return 30 < item.life && item.life <= 40; case '5': return 40 < item.life && item.life <= 50; case '6': return 50 < item.life; } }); } /*================================================================ 絞り込み[2] チェックボックス絞り込み関数 ================================================================*/ function filterByTag(list, value) { //絞り込み指定がない場合はリターン if (value.length == 0) { return list; } //選択した属性(チェックボックス)とtagがマッチするかでフィルタリング return _.filter(list, function(item) { var isMatch = false; //配列同士の比較 _.each(value, function(chkItem, i) { _.each(item.tag, function(tagItem, i) { if (tagItem === $(chkItem).val()) { isMatch = true; } }); }); return isMatch; }); } /*================================================================ 絞り込み[3] テキストボックス絞り込み関数 ================================================================*/ function filterByKeyword(list, value) { //絞り込み指定がない場合はリターン if (value == "") { return list; } //検索キーワードを配列に格納(スペースがある場合は複数格納) var freeAry = [];  var val = value.replace(/ /g, " "); searchAry = val.split(" "); //入力したキーワードがtitleもしくdescriptionにマッチするかでフィルタリング return _.filter(list, function(item) { var isMatch = false; _.each(searchAry, function(data, i) { if (item.title.indexOf(data) != -1 || item.description.indexOf(data) != -1) { isMatch = true; } }); return isMatch; }); } /*================================================================ スクリプトはじめ ================================================================*/ init(); });