var Catalog = { albums: [], hidden_album: null, add_album: function(album) { if (album.id == -1) { album.catalog_index = -1; this.hidden_album = album; } else { album.catalog_index = this.albums.length; this.albums[this.albums.length] = album; this.size++; } }, get_album: function(album_id) { if (album_id == -1) { return this.hidden_album; } for (var i = 0; i < this.albums.length; i++) { if (this.albums[i].id == album_id) { return this.albums[i]; } } return null; }, get_album_by_index: function(index) { if (index < 0 || index > this.albums.length) { return null; } else { return this.albums[index]; } }, get_size: function() { return this.albums.length; }, get_track: function(track_id) { for (var i = 0; i < this.albums.length; i++) { var al = this.albums[i]; for (var j = 0; j < al.tracks.length; j++) { if (al.tracks[j].id == track_id) { return al.tracks[j]; } } } return null; } }; Catalog.add_album({ id: -1, catalog_number: 0, title: "-Hidden Album-", tracks: [ { id: 116, title: "Connecticut Nocturne", url: "/site/mp3/tr_116.mp3" } ] }); Catalog.add_album({ id: 32, catalog_number: 1, title: "Stations of the Breath", tracks: [ { id: 118, title: "Like Powder to the Light", url: "/site/mp3/tr_118.mp3" } ] }); Catalog.add_album({ id: 12, catalog_number: 2, title: "The Chamber Music Vol. 1 and 2", tracks: [ { id: 94, title: "Pa Kua", url: "/site/mp3/tr_94.mp3" }, { id: 93, title: "Cells", url: "/site/mp3/tr_93.mp3" }, { id: 95, title: "Romantic", url: "/site/mp3/tr_95.mp3" } ] }); Catalog.add_album({ id: 2, catalog_number: 3, title: "The Re-Taking of Pelham 1-2-3", tracks: [ { id: 104, title: "The Re-Taking (Opening Theme)", url: "/site/mp3/tr_104.mp3" }, { id: 105, title: "Stop-Frame", url: "/site/mp3/tr_105.mp3" } ] }); Catalog.add_album({ id: 3, catalog_number: 4, title: "Super Size Me the Movie", tracks: [ { id: 1, title: "Super Size Me Suite", url: "/site/mp3/tr_1.mp3" } ] }); Catalog.add_album({ id: 1, catalog_number: 5, title: "Invasion from the Chicken Planet", tracks: [ { id: 3, title: "The Chicken Planet Suite", url: "/site/mp3/tr_3.mp3" } ] }); Catalog.add_album({ id: 26, catalog_number: 6, title: "Video Game Suite", tracks: [ { id: 56, title: "Various Ques", url: "/site/mp3/tr_56.mp3" } ] }); Catalog.add_album({ id: 27, catalog_number: 7, title: "The Sound of Nickelodeon Digital", tracks: [ { id: 40, title: "Dora Birthday Song", url: "/site/mp3/tr_40.mp3" }, { id: 41, title: "Joe's Song for Blue", url: "/site/mp3/tr_41.mp3" }, { id: 42, title: "Truth or Dare(devil)", url: "/site/mp3/tr_42.mp3" }, { id: 43, title: "Audio Farm Station IDs", url: "/site/mp3/tr_43.mp3" }, { id: 44, title: "Animal Drums", url: "/site/mp3/tr_44.mp3" }, { id: 45, title: "Country Feeling", url: "/site/mp3/tr_45.mp3" }, { id: 46, title: "Jimmy Neutron Undersea", url: "/site/mp3/tr_46.mp3" }, { id: 47, title: "Mother's Day Suite", url: "/site/mp3/tr_47.mp3" }, { id: 48, title: "Valentine's Suite", url: "/site/mp3/tr_48.mp3" }, { id: 49, title: "One Fine Day", url: "/site/mp3/tr_49.mp3" }, { id: 50, title: "Nick.com Radio Suite", url: "/site/mp3/tr_50.mp3" }, { id: 51, title: "Slipper Sleep", url: "/site/mp3/tr_51.mp3" }, { id: 52, title: "NickJr Music Suite", url: "/site/mp3/tr_52.mp3" }, { id: 53, title: "Nick.com Suite", url: "/site/mp3/tr_53.mp3" } ] }); Catalog.add_album({ id: 15, catalog_number: 8, title: "Unnatural Acts", tracks: [ { id: 96, title: "Song of the Night Air", url: "/site/mp3/tr_96.mp3" }, { id: 98, title: "Mr. Not So PC", url: "/site/mp3/tr_98.mp3" }, { id: 97, title: "Blue as Air", url: "/site/mp3/tr_97.mp3" } ] }); Catalog.add_album({ id: 4, catalog_number: 9, title: "Elevator Culture", tracks: [ { id: 58, title: "Yekermo Sew", url: "/site/mp3/tr_58.mp3" }, { id: 57, title: "Hollow", url: "/site/mp3/tr_57.mp3" }, { id: 59, title: "Saturnalia", url: "/site/mp3/tr_59.mp3" }, { id: 60, title: "Work Theme", url: "/site/mp3/tr_60.mp3" }, { id: 61, title: "Mean Mr. One Eye", url: "/site/mp3/tr_61.mp3" } ] }); Catalog.add_album({ id: 5, catalog_number: 10, title: "The Code", tracks: [ { id: 64, title: "Weasle Frank", url: "/site/mp3/tr_64.mp3" }, { id: 63, title: "Oh Chicken", url: "/site/mp3/tr_63.mp3" }, { id: 62, title: "5 by 5", url: "/site/mp3/tr_62.mp3" } ] }); Catalog.add_album({ id: 6, catalog_number: 11, title: "The Secret Code of Ethics", tracks: [ { id: 89, title: "7 Days to Better Golf", url: "/site/mp3/tr_89.mp3" }, { id: 90, title: "This is Hi-Fi", url: "/site/mp3/tr_90.mp3" }, { id: 91, title: "Personal Achievement Radio", url: "/site/mp3/tr_91.mp3" }, { id: 92, title: "Sex Still Sells", url: "/site/mp3/tr_92.mp3" } ] }); Catalog.add_album({ id: 7, catalog_number: 12, title: "The Psychosexual Album", tracks: [ { id: 66, title: "One Small Chunk", url: "/site/mp3/tr_66.mp3" }, { id: 65, title: "Mr. One Eye", url: "/site/mp3/tr_65.mp3" }, { id: 67, title: "Such A Deal", url: "/site/mp3/tr_67.mp3" }, { id: 68, title: "TryU Abuse", url: "/site/mp3/tr_68.mp3" } ] }); Catalog.add_album({ id: 8, catalog_number: 13, title: "Spirograph of Shit", tracks: [ { id: 113, title: "Oh Chicken!", url: "/site/mp3/tr_113.mp3" }, { id: 114, title: "One Small Chunk", url: "/site/mp3/tr_114.mp3" }, { id: 112, title: "Yekermo Sew (Astatqe)", url: "/site/mp3/tr_112.mp3" } ] }); Catalog.add_album({ id: 9, catalog_number: 14, title: "Mousetrap Quartet LIve and Studio Nederlands 99", tracks: [ { id: 71, title: "She Walks", url: "/site/mp3/tr_71.mp3" }, { id: 70, title: "Random Mutation", url: "/site/mp3/tr_70.mp3" }, { id: 73, title: "Work Theme", url: "/site/mp3/tr_73.mp3" }, { id: 69, title: "Amsterdam Suite", url: "/site/mp3/tr_69.mp3" }, { id: 72, title: "Wandering", url: "/site/mp3/tr_72.mp3" } ] }); Catalog.add_album({ id: 10, catalog_number: 15, title: "Mousetrap Plays Sun-Ra", tracks: [ { id: 75, title: "Saturnalia", url: "/site/mp3/tr_75.mp3" }, { id: 74, title: "Dishpan 12", url: "/site/mp3/tr_74.mp3" }, { id: 76, title: "Spacedust", url: "/site/mp3/tr_76.mp3" } ] }); Catalog.add_album({ id: 11, catalog_number: 16, title: "San Francisco Chronicled", tracks: [ { id: 86, title: "Music Opening", url: "/site/mp3/tr_86.mp3" }, { id: 87, title: "Triple Double", url: "/site/mp3/tr_87.mp3" }, { id: 88, title: "True Emotion", url: "/site/mp3/tr_88.mp3" } ] }); Catalog.add_album({ id: 16, catalog_number: 17, title: "The Instant Composers Group #1", tracks: [ { id: 101, title: "Strange Birds", url: "/site/mp3/tr_101.mp3" }, { id: 99, title: "Road Map", url: "/site/mp3/tr_99.mp3" }, { id: 100, title: "Scurrying to Eusbekistan", url: "/site/mp3/tr_100.mp3" }, { id: 102, title: "Deep", url: "/site/mp3/tr_102.mp3" }, { id: 103, title: "Past Your Bedtime", url: "/site/mp3/tr_103.mp3" } ] }); Catalog.add_album({ id: 14, catalog_number: 18, title: "Dire Images of Beauty", tracks: [ { id: 77, title: "Hocket", url: "/site/mp3/tr_77.mp3" }, { id: 78, title: "Nine Months", url: "/site/mp3/tr_78.mp3" }, { id: 79, title: "pffft", url: "/site/mp3/tr_79.mp3" }, { id: 80, title: "Pre-war Pie", url: "/site/mp3/tr_80.mp3" } ] }); Catalog.add_album({ id: 13, catalog_number: 19, title: "Dipping Into Color", tracks: [ { id: 83, title: "Stomach Phenomenon", url: "/site/mp3/tr_83.mp3" }, { id: 82, title: "Desperate Living", url: "/site/mp3/tr_82.mp3" }, { id: 81, title: "Aggressive Leisure Principle", url: "/site/mp3/tr_81.mp3" }, { id: 84, title: "Tumbeling Manhole", url: "/site/mp3/tr_84.mp3" }, { id: 85, title: "Yumbaldumbaldum", url: "/site/mp3/tr_85.mp3" } ] }); Catalog.add_album({ id: 19, catalog_number: 20, title: "J. Doe (The Interactive Film by Stephen Muller)", tracks: [ { id: 13, title: "Opening Titles", url: "/site/mp3/tr_13.mp3" } ] }); Catalog.add_album({ id: 28, catalog_number: 21, title: "Cadillacs and Dinosaurs (The Game, Sega)", tracks: [ { id: 54, title: "Opening title Sequence", url: "/site/mp3/tr_54.mp3" } ] }); Catalog.add_album({ id: 18, catalog_number: 22, title: "Overdue (The Film)", tracks: [ { id: 9, title: "Title Theme", url: "/site/mp3/tr_9.mp3" }, { id: 10, title: "Elevator Terror", url: "/site/mp3/tr_10.mp3" }, { id: 11, title: "Locker Room Drama", url: "/site/mp3/tr_11.mp3" }, { id: 12, title: "End Credits", url: "/site/mp3/tr_12.mp3" } ] }); Catalog.add_album({ id: 22, catalog_number: 23, title: "I Bet You Will (MTV)", tracks: [ { id: 24, title: "Title Theme", url: "/site/mp3/tr_24.mp3" }, { id: 25, title: "Bariboogie", url: "/site/mp3/tr_25.mp3" }, { id: 26, title: "Blinkie", url: "/site/mp3/tr_26.mp3" }, { id: 27, title: "Lounge O' Matic", url: "/site/mp3/tr_27.mp3" }, { id: 28, title: "Strip Latin", url: "/site/mp3/tr_28.mp3" }, { id: 29, title: "Country Special", url: "/site/mp3/tr_29.mp3" }, { id: 30, title: "Meat Baller", url: "/site/mp3/tr_30.mp3" }, { id: 31, title: "Suedo Salsa", url: "/site/mp3/tr_31.mp3" }, { id: 32, title: "Minor Polka", url: "/site/mp3/tr_32.mp3" }, { id: 33, title: "Beach Bolero", url: "/site/mp3/tr_33.mp3" }, { id: 34, title: "Guitar God", url: "/site/mp3/tr_34.mp3" }, { id: 35, title: "Chiller", url: "/site/mp3/tr_35.mp3" }, { id: 36, title: "Circus UK", url: "/site/mp3/tr_36.mp3" }, { id: 37, title: "End Theme", url: "/site/mp3/tr_37.mp3" } ] }); Catalog.add_album({ id: 21, catalog_number: 24, title: "Casino Cinema (SPIKE TV)", tracks: [ { id: 15, title: "Bada Bing", url: "/site/mp3/tr_15.mp3" }, { id: 16, title: "Born Loser", url: "/site/mp3/tr_16.mp3" }, { id: 17, title: "Casino Cinema", url: "/site/mp3/tr_17.mp3" }, { id: 18, title: "Five Card Stud", url: "/site/mp3/tr_18.mp3" }, { id: 19, title: "Re-gressions", url: "/site/mp3/tr_19.mp3" }, { id: 20, title: "Roll da Dice", url: "/site/mp3/tr_20.mp3" }, { id: 21, title: "Slot Machine", url: "/site/mp3/tr_21.mp3" }, { id: 22, title: "Snake Eyes", url: "/site/mp3/tr_22.mp3" }, { id: 23, title: "Spin da Wheel", url: "/site/mp3/tr_23.mp3" } ] }); Catalog.add_album({ id: 17, catalog_number: 25, title: "Don Gorske: Mac Daddy (The Short Film Follow up)", tracks: [ { id: 8, title: "Ballad of Don Gorske", url: "/site/mp3/tr_8.mp3" }, { id: 7, title: "16 Bites to Glory", url: "/site/mp3/tr_7.mp3" }, { id: 5, title: "Opening", url: "/site/mp3/tr_5.mp3" }, { id: 6, title: "Montage", url: "/site/mp3/tr_6.mp3" } ] }); Catalog.add_album({ id: 23, catalog_number: 26, title: "The Fairly Odd Parents (Nickelodeon)", tracks: [ { id: 38, title: "Crimson Chin", url: "/site/mp3/tr_38.mp3" } ] }); Catalog.add_album({ id: 24, catalog_number: 27, title: "Big Yellow Egg Hunt (Nick JR TV)", tracks: [ { id: 39, title: "The Little Chickie Dance", url: "/site/mp3/tr_39.mp3" } ] }); Catalog.add_album({ id: 25, catalog_number: 28, title: "3D Flipper (3d Pinball by Databecker)", tracks: [ { id: 55, title: "Full Tilt", url: "/site/mp3/tr_55.mp3" } ] }); Catalog.add_album({ id: 20, catalog_number: 29, title: "Film Suite", tracks: [ { id: 14, title: "Various Ques", url: "/site/mp3/tr_14.mp3" } ] }); //