var current_active_amp = '';
var current_amp_category = ''
var tweed_amp_list = [{'id':'518','title':'Victoria 518'},
{'id':'5112','title':'Victoria 5112'},
{'id':'ivy_league','title':'Ivy League'},
{'id':'20112','title':'Victoria 20112'},
{'id':'double_deluxe','title':'Double Deluxe'},
{'id':'35210','title':'Victoria 35210'},
{'id':'35115','title':'Victoria 35115'},
{'id':'35310','title':'Victoria 35310'},
{'id':'45410','title':'Victoria 45410'},
{'id':'50212','title':'Victoria 50212'},
{'id':'80212','title':'Victoria 80212'}];
var classic_amp_list = [{'id':'trem_of_the_trem','title':'Trem of the Trem'},
{'id':'two_stroke','title':'Two Stroke'},
{'id':'ammo','title':'Ammo'},
{'id':'electro_king','title':'Electro King'},
{'id':'golden_melody','title':'Golden Melody'},
{'id':'victoriette','title':'Victoriette'},
{'id':'victorilux','title':'Victorilux'}, 
{'id':'regal','title':'Regal'}];

var category_images = {'tweed':'./images/category_bg_tweed.png',
                       'classic':'./images/category_bg_classic.png'};

var amp_image_list = {'electro_king':
                       [{'url':'./images/amp_ek/king_137_lg.jpg','desc':''},
                        {'url':'./images/amp_ek/king_124_lg.jpg','desc':''},
                        {'url':'./images/amp_ek/king_118_lg.jpg','desc':''},
                        {'url':'./images/amp_ek/king_107_lg.jpg','desc':''}],
                      '518':
                       [{'url':'./images/amp_518/IMG_1488.JPG','desc':''},
                        {'url':'./images/amp_518/IMG_1490.JPG','desc':''},
                        {'url':'./images/amp_518/IMG_1485.JPG','desc':''},
                        {'url':'./images/amp_518/IMG_1483.JPG','desc':''},
                        {'url':'./images/amp_518/IMG_1480.JPG','desc':''},
                        {'url':'./images/amp_518/IMG_1494.JPG','desc':''}],
                      '5112':
                       [{'url':'./images/amp_5112/IMG_1401.JPG','desc':''},
                        {'url':'./images/amp_5112/IMG_1402.JPG','desc':''},
                        {'url':'./images/amp_5112/IMG_1403.JPG','desc':''},
                        {'url':'./images/amp_5112/IMG_1405.JPG','desc':''},
                        {'url':'./images/amp_5112/IMG_1407.JPG','desc':''},
                        {'url':'./images/amp_5112/IMG_1408.JPG','desc':''}],
                      'ivy_league':
                       [{'url':'./images/amp_ivy_league/ivy_league_front.jpg','desc':''},
                        {'url':'./images/amp_ivy_league/ivy_league_back.jpg','desc':''},
                        {'url':'./images/amp_ivy_league/ivy_league_side.jpg','desc':''}],
                      '20112':
                       [{'url':'./images/amp_20112/IMG_1241.JPG','desc':''},
                        {'url':'./images/amp_20112/IMG_1244.JPG','desc':''},
                        {'url':'./images/amp_20112/IMG_1247.JPG','desc':''},
                        {'url':'./images/amp_20112/IMG_1248.JPG','desc':''},
                        {'url':'./images/amp_20112/IMG_1251.JPG','desc':''}],
                      '35210':
                       [{'url':'./images/amp_35210/35210_front1.jpg','desc':''},
                        {'url':'./images/amp_35210/35210_top_back1.jpg','desc':''}, 
                        {'url':'./images/amp_35210/35210_v_cab.jpg','desc':''}],
                      '35115':
                       [{'url':'./images/amp_35115/IMG_1257.JPG','desc':''},
                        {'url':'./images/amp_35115/IMG_1262.JPG','desc':''},
                        {'url':'./images/amp_35115/IMG_1263.JPG','desc':''},
                        {'url':'./images/amp_35115/IMG_1269.JPG','desc':''}],
                      '35310':
                       [{'url':'./images/amp_35310/IMG_1382.JPG','desc':''},
                        {'url':'./images/amp_35310/IMG_1384.JPG','desc':''},
                        {'url':'./images/amp_35310/IMG_1385.JPG','desc':''},
                        {'url':'./images/amp_35310/IMG_1391.JPG','desc':''},
                        {'url':'./images/amp_35310/IMG_1411.JPG','desc':''},
                        {'url':'./images/amp_35310/IMG_1413.JPG','desc':''}],
                      '45410':
                       [{'url':'./images/amp_45410/IMG_1462.JPG','desc':''},
                        {'url':'./images/amp_45410/IMG_1463.JPG','desc':''},
                        {'url':'./images/amp_45410/IMG_1466.JPG','desc':''},
                        {'url':'./images/amp_45410/IMG_1472.JPG','desc':''},
                        {'url':'./images/amp_45410/IMG_1475.JPG','desc':''}],
                      '50212':
                       [{'url':'./images/amp_50212/50212_front1.jpg','desc':''},
                        {'url':'./images/amp_50212/50212_back1.jpg','desc':''}],
                      '80212':
                       [{'url':'./images/amp_80212/IMG_1497.JPG','desc':''},
                        {'url':'./images/amp_80212/IMG_1501.JPG','desc':''}],
                      'double_deluxe':
                       [{'url':'./images/amp_double_deluxe/IMG_1314.JPG','desc':''},
                        {'url':'./images/amp_double_deluxe/IMG_1318.JPG','desc':''}, 
                        {'url':'./images/amp_double_deluxe/IMG_1310.JPG','desc':''}],
                      'golden_melody':
                       [{'url':'./images/amp_gm/IMG_1327.JPG','desc':''},
                        {'url':'./images/amp_gm/IMG_1332.JPG','desc':''}, 
                        {'url':'./images/amp_gm/IMG_1336.JPG','desc':''}], 
                      'victoriette':
                       [{'url':'./images/amp_victoriette/IMG_1454.JPG','desc':''},
                        {'url':'./images/amp_victoriette/IMG_1457.JPG','desc':''}, 
                        {'url':'./images/amp_victoriette/IMG_1460.JPG','desc':''}, 
                        {'url':'./images/amp_victoriette/IMG_1477.JPG','desc':''}],
                      'victorilux':
                       [{'url':'./images/amp_victorilux/IMG_1372.JPG','desc':''},
                        {'url':'./images/amp_victorilux/IMG_1375.JPG','desc':''}, 
                        {'url':'./images/amp_victorilux/IMG_1379.JPG','desc':''}, 
                        {'url':'./images/amp_victorilux/IMG_1410.JPG','desc':''}],
                      'trem_of_the_trem':
                       [{'url':'./images/amp_35115/IMG_1262.JPG','desc':''},
                        {'url':'./images/amp_35115/IMG_1263.JPG','desc':''},
                        {'url':'./images/amp_35115/IMG_1269.JPG','desc':''}],
                      'regal':
                       [{'url':'./images/amp_regal/IMG_1273.JPG','desc':''},
                        {'url':'./images/amp_regal/IMG_1274.JPG','desc':''}, 
                        {'url':'./images/amp_regal/IMG_1283.JPG','desc':''}, 
                        {'url':'./images/amp_regal/IMG_1286.JPG','desc':''}, 
                        {'url':'./images/amp_regal/IMG_1288.JPG','desc':''},
                        {'url':'./images/amp_regal/IMG_1395.JPG','desc':''},
                        {'url':'./images/amp_regal/IMG_1398.JPG','desc':''}],
                      'two_stroke':
                       [{'url':'./images/amp_ts/IMG_1357.JPG','desc':''},
                        {'url':'./images/amp_ts/IMG_1359.JPG','desc':''}, 
                        {'url':'./images/amp_ts/IMG_1361.JPG','desc':''}, 
                        {'url':'./images/amp_ts/IMG_1366.JPG','desc':''}, 
                        {'url':'./images/amp_ts/IMG_1349.JPG','desc':''},
                        {'url':'./images/amp_ts/IMG_1415.JPG','desc':''},
                        {'url':'./images/amp_ts/IMG_1417.JPG','desc':''}],
                      'legends_196':
                       [{'url':'./images/amp_legends_196/IMG_2025.JPG','desc':''},
                        {'url':'./images/amp_legends_196/IMG_2027.JPG','desc':''},
                        {'url':'./images/amp_legends_196/IMG_2029.JPG','desc':''},
                        {'url':'./images/amp_legends_196/IMG_2031.JPG','desc':''},
                        {'url':'./images/amp_legends_196/IMG_2038.JPG','desc':''},
                        {'url':'./images/amp_legends_196/IMG_2041.JPG','desc':''},
                        {'url':'./images/amp_legends_196/IMG_2043.JPG','desc':''}],
                      'ammo':
                       [{'url':'./images/amp_ammo/DSC00891.JPG','desc':''},
                        {'url':'./images/amp_ammo/VIC105-8.JPG','desc':''},
                        {'url':'./images/amp_ammo/VIC105-6.JPG','desc':''},
                        {'url':'./images/amp_ammo/VIC105-2.JPG','desc':''},
                        {'url':'./images/amp_ammo/VIC105-13.JPG','desc':''},
                        {'url':'./images/amp_ammo/VIC105-10.JPG','desc':''},
                        {'url':'./images/amp_ammo/VIC105-11.JPG','desc':''},
                        {'url':'./images/amp_ammo/DSC00868.JPG','desc':''},
                        {'url':'./images/amp_ammo/DSC00862.JPG','desc':''},
                        {'url':'./images/amp_ammo/DSC00881.JPG','desc':''}],
                      'x':
                       [{'url':'./images/amp_ek/king_137_lg.jpg','desc':''}]};
var amp_data = {
'518':
  {'name':'518',
   'desc':[["The 518 is a tribute to the Champ and after 40 years, this little gem continues to delight players from being an outstanding practice and studio amp.  This is a perfect choice for club dates when paired with an efficient external speaker cabinet.  Did you know that the origianl '50's Champ has been the mainstay of many of the Stones recorded tracks for decades?  The 518 is our most affordable amplifier and available with a 12 inch speaker in a larger cabinet - the Victoria 5112.  Videos of this amp are available <a href='./videos.html'>here</a>."]],
   'image_url':'./images/amp_518/img_1488_t.png',
   'sounds':[[{'title':"no sounds available",'url':'','length':'0'}]],
   'specs':[
     "Price: $1,149",
     "5 Watts of Power",
     "5F1 type circuit. single ended operation",
     "Cathode bias design",
     "Tubes: 1-5Y3WGTA 1-6V6GT 1-12AX7",
     "Speaker: Jensen P8R or C8R",
     "Cabinet size (HxWxD): 13.5 x 14.5 x 9"]
},
'5112':
  {'name':'5112',
   'desc':[["Eric Johnson once said 'the best amp in the world has just one knob' - simple. One input for single coils, one input for hummies. A faithful recreation of Leo Fender's 5F1 circuit produced in '57 to '61 Champs - just with an Eminence Legend 12 inch speaker in a larger Deluxe style solid pine cabinet. This amp doesn't need reverb - there are so many harmonics and overtones happening that reverb would wreck it."],["Class A - simple, direct, all tube circuit. Tubes: 1 preamp, 1 output, and 1 rectifier. Just turn it on and go! Excellent volume for home and neighbors. For 5 watts it is LOUD. Use an extension cabinet or mike it for gigs. Very versatile depending on volume selected."]],
   'image_url':'./images/amp_20112/img_1241_t.png',
   'sounds':[[
     {'title':"Telecaster - Bisbeerock turned up",'url':'./sounds/BigsbyRockTeleAmpUp.mp3','length':'35'},
     {'title':"Telecaster - morecowboysdustinofup",'url':'./sounds/CowboyDustupTele.mp3','length':'29'},
     {'title': "Les Paul Custom - more bigchords",'url':'./sounds/LesPaulCustom2.mp3','length':'26'},
     {'title':"Les Paul Custom - Where are the pills darling?",'url':'./sounds/LesPaulCustom5.mp3','length':'17'},
     {'title':"Fender Steel - I miss you baby",'url':'./sounds/SteelMonkey3.mp3','length':'46'},
     {'title':"Fender Steel - Steely finger twister",'url':'./sounds/SteelMonkey5.mp3','length':'10'}],
             [{'title':"Tele - Cowboydustupbaby",'url':'./sounds/CowboyDustupDirtyTele.mp3','length':'10'},
     {'title':"Tele 5 String - BisbeeasKeith",'url':'./sounds/DerivativeCrap.mp3','length':'10'},
     {'title':"Les Paul Custom - Bigbadasschords",'url':'./sounds/LesPaulCustom1.mp3','length':'10'},
     {'title':"Les Paul Custom - listenupplowboy!! ",'url':'./sounds/LesPaulCustom3.mp3','length':'10'},
     {'title':"Les Paul Custom - outtatheway",'url':'./sounds/LesPaulCustom4.mp3','length':'0'},
     {'title':"Fender steel - passedoutdrunkonthebeach",'url':'./sounds/OnTheBeach.mp3','length':'10'}],
             [{'title':"LP Jr. - areyouthiscool?",'url':'./sounds/SlideMonkey2LesPaulJr.mp3','length':'10'},
     {'title':"Lp Jr. - killallthedamnmonkeys!",'url':'./sounds/SlideMonkeyLesPaulJr.mp3','length':'10'},
     {'title':"Fender steel - shutupandgetmeadrink",'url':'./sounds/SteelMonkey2.mp3','length':'10'},
     {'title':"Fender steel - you smell great! ",'url':'./sounds/SteelMonkey4.mp3','length':'10'},
     {'title':"Fender steel - he said Butte he heheh heheheh",'url':'./sounds/SteelMonkey.mp3','length':'10'}]],
   'specs':[
     "Price: $1,249",
     "5 Watts of Power",
     "5F1-type circuit", 
     "Single ended operation",
     "Cathode bias design",
     "Tubes: 1-5Y3WGTA, 1-6V6GT, 1-12AX7",
     "Speaker: 1-Eminence Legend 12\" speaker",
     "Cabinet size (HxWxD): 16.5 x 20 x 9.5"]
},
'ivy_league':
  {'name':'Ivy League',
   'desc':[["The new Ivy League is a loving recreation of the classic 5F10 Fender Harvard style amplifier. Every aspect of the original model is reproduced in the Ivy League; triple inputs, 6AT6 7 pin preamp tube, twin 6V6 power tubes and a single 10\" custom 10\" speaker. Like all Victorias, the Ivy League features all USA made components including resistors, capacitors, transformers, wire and hardware! (USA made vacuum tubes included when available.)"],
          ["The Ivy League 5F10 is the quintessential recording amplifier, it's crisp clean tones and thunderous overdrive helping to define the modern notion of \"Tone\". The original 5F10's most infamous contribution to modern culture is the classic \"Memphis\" guitar sound. It's 2 \"fixed bias\" 6V6's deliver 14 watts of push pull vacuum tube power that's warm and resonant when caressed and harmonically explosive when pushed into clipping."], 
          ["The unique 6AT6 input tube circuit with it's triple padded inputs are singular to this amplifier. All this conspires to make the Ivy League a studio friendly amp like no other, making this legendary time-tested performance available for guitarists everywhere for the first time in 50 years.  Videos of this amp are available <a href='./videos.html'>here</a>."]],
   'image_url':'./images/amp_20112/img_1241_t.png',
   'sounds':[[{'title':"no sounds available",'url':'','length':'0'}]],
   'specs':[
     "Price: $1,995",
     "14 Watts of Power",
     "5F10-type circuit",
     "High, Med and Low inputs",
     "Tubes: 1 X 5Y3 (NOS) 2 X 6V6 (TS) 1 X 12AX7, 1 X 6AT6 (NOS)",
     "Speaker: 1-Eminence Legend 10\" speaker",
     "Cabinet size (HxWxD): 16.5 x 20 x 9.5"]
},
'20112':
  {'name':'20112',
   'desc':[["The narrow panel Deluxe has long been considered the consummate blues amp for small to medium-sized venues. It still is, but there seems to be even fewer good ones around and vintage prices reflect this. We build the 20112 right, and we can't build too many. This Victoria is a seminal tool for studio and club work, period."]],
   'image_url':'./images/amp_20112/img_1241_t.png',
   'sounds':[[
     {'title':"ES 175 - clean, jazzy",'url':'./sounds/20112_ES_175_Clean_Jazz_Brian_2.mp3','length':'10'},
     {'title':"Telecaster - country rock riff",'url':'./sounds/20112_Tele_Country_Rock_Riff_Sam.mp3','length':'10'},
     {'title':"Telecaster - country rock",'url':'./sounds/20112_Tele_Country_Rock_Crossroads_S.mp3','length':'10'},
     {'title':"Telecaster - dirty country rock",'url':'./sounds/20112_Tele_Dirty_County_Rock_Sam.mp3','length':'10'}]],
   'specs':[
     "Price: $2,095",
     "14 Watts of Power",
     "5E3-type circuit",
     "Class A cathode bias push-pull operation",
     "Tubes:1-5Y3/GZ34, 2-6V6GT, 1-12AX7, 1-12AY7",
     "Speaker: 1-Jensen P12Q",
     "Cabinet size (HxWxD): 16.5 x 20 x 9.5"]
},
'35210':
  {'name':'35210',
   'desc':[["Here's our reverent take on the rare narrow panel Super. Only a bias trim pot and test points have been added to the Super design. Over the years, the original model often went unnoticed by many tweed freaks, but that won't be the case when you plug into a Victoria 35210. This amp does 'clean' exceptionally well, with a smooth and aggressive overdriven tone that seems to work perfectly with just about any guitar ever made."]],
   'image_url':'./images/amp_35210/img_35210_t.png',
   'sounds':[[
     {'title':"Gibson SG - blues",'url':'./sounds/35210_SG_Bisbee_Blues_Karl_Lafong.mp3','length':'10'},
     {'title':"Les Paul - pickin'",'url':'./sounds/35210_Les_Paul_Travis_Pickin_Sam.mp3','length':'10'},
     {'title':"Les Paul - dirty rock riff",'url':'./sounds/35210_Les_Paul_Dirty_Rock_Riff_Sam.mp3','length':'10'},
     {'title':"Les Paul - dirty",'url':'./sounds/35210_Les_Paul_Dirty_Les_Paul_Sam.mp3'}]],
   'specs':[
     "Price: $2,729",
     "28 Watts of Power",
     "5F4-type circuit",
     "Class A-B adjustable fixed bias push-pull operation",
     "Tubes: 1-5U4GB, 2-6L6GC, 2-12AX7, 1-12AY7",
     "Speaker: 2-Jensen P10R speakers.", 
     "Cabinet size (HxWxD) 18.5 x 22 x 10.5"]
},
'35115':
  {'name':'35115',
   'desc':[["The narrow panel Fender Pro embodies the under-appreciated virtues of a good 15 inch speaker nestled in a pine box. The Victoira 35115 has an uncommonly open and airy feel that's perfect for swingin' blues. Contrary to what you may believe about 15's, the top end is chimey and stout. The 35115 is a big favorite here in the City of Big Shoulders, and you'd have to pry Jimmy Vivino's 35115 from his cold, blue fingers."]],
   'image_url':'./images/amp_35115/img_1262_t.png',
   'sounds':[[
     {'title':"slidin' round",'url':'./sounds/35115_Willshire_Slidin_round_Stu.mp3','length':'10'},
     {'title':"ES 175 - clean, jazzy",'url':'./sounds/35115_ES_175_Clean_Jazz_Brian.mp3','length':'10'}]],
   'specs':[
     "Price: $2,729",
     "28 Watts of Power",
     "5E5A-type circuit",
     "Class A-B adjustable fixed bias push-pull operation",
     "Tubes: 1-5U4GB, 2-6L6GC, 2-12AX7, 1-12AY7",
     "Speaker: 1-Eminence Legend 15\" speaker", 
     "Cabinet size (HxWxD) 21.5 x 23 x 10.5"]
},
'35310':
  {'name':'35310',
   'desc':[["The 35310 is a very versatile amp that delivers more pure tube distortion rather than speaker breakup, yet it also produces plenty of lush, clean headroom. A big favorite with our gigging customers, the Victoria 35310 shares the same tone control design of our other 28W amps, which adds a certain amount of perceived gain beyond the 1 o'clock position, almost like an overdrive pedal. Working with these controls enables you to raise and lower the threshold for clean tones in different sized rooms with precision."]],
   'image_url':'./images/amp_35310/img_1382_t.png',
   'sounds':[[{'title':"no sounds available",'url':'','length':'0'}]],
   'specs':[
     "Price: $2,829",
     "28 Watts of Power",
     "5E7-type circuit",
     "Class A-B adjustable fixed bias push-pull operation",
     "Tubes: 1-5U4GB, 2-6L6GC, 2-12AX7, 1-12AY7",
     "Speaker: 3-Jensen P10R speakers",
     "Cabinet size (HxWxD) 23.5 x 23.5 x 10.5"]
},
'45410':
  {'name':'45410',
   'desc':[["This Victoria 45410 is our loving recreation of the '59 Bassman and no detail is left undone. Our Victoria capacitors were designed specifically to sound like a slightly degraded, 40 year-old cap. If you've ever wondered why expensive new 'reissue' amps often sound cold and chiseled compared to their vintage counterparts, now you know. The 45410 is a complex, detailed, and dynamic amplifier that responds to pick attack like no other amp on the planet. It's also a rock solid bass amp for recording and club work."]],
   'image_url':'./images/amp_45410/img_1462_t.png',
   'sounds':[[
     {'title':"Telecaster - pickin'",'url':'./sounds/45410_Tele_Travis_Pickin_Sam_2.mp3','length':'10'},
     {'title':"Telecaster - pickin'",'url':'./sounds/45410_Tele_Travis_Pickin_Sam_1.mp3','length':'10'},
     {'title':"Telecaster",'url':'./sounds/45410 Tele_Dropped_D_Sam.mp3','length':'10'},
     {'title':"Telecaster - country shuffle",'url':'./sounds/45410_Tele_Country_Shuffle_Sam.mp3','length':'10'},
     {'title':"Lap Steel",'url':'./sounds/45410_Lap_Steel_Sam_2.mp3','length':'10'},
     {'title':"Lap Steel",'url':'./sounds/45410_Lap_Steel_Sam_1.mp3','length':'10'}],
             [{'title':"ES 175 - jazzy with walking bass",'url':'./sounds/45410_ES_175_Walking_Bass_Jazz_Brian.mp3','length':'10'},
     {'title':"ES 175 - clean and jazzy",'url':'./sounds/45410_ES_175_Clean_Jazz_Brian.mp3','length':'10'}]],
   'specs':[
     "Price: $2,950",
     "45 Watts of Power",
     "5F6-A type circuit",
     "Class A-B adjustable fixed bias push-pull operation",
     "Tubes: 1-GZ34, 2-5881, 2-12AX7, 1-12AY7",
     "Speaker: 4-Jensen P10R speakers",
     "Cabinet size (HxWxD) 23.5 x 23.5 x 10.5"]
},
'50212':
  {'name':'50212',
   'desc':[["The 5E8-A 'low power' Twin remains the most coveted 50W tone monster in the history of guitar amplifiers. The transformers are Hi watt-huge, that means thundering, rock-solid lows with no sag whatsoever, and the smoothest, creamiest highs ever wrapped in tweed. This is our tightest and most percussive amp, A long-time favorite here at Victoria. Turn it up!"]],
   'image_url':'./images/amp_50212/50212.gif',
   'sounds':[[{'title':"no sounds available",'url':'','length':'0'}]],
   'specs':[
     "Price: $2,950",
     "50 Watts of Power",
     "5E8A-type circuit",
     "Class A-B adjustable fixed bias push-pull operation",
     "Tubes: 1-5AR4, 2-6L6GC, 2-12AX7, 2-12AY7",
     "Speaker: 2-Jensen P12Q speakers",
     "Cabinet size (HxWxD) 19 x 26.5 x 10.5"]
},
'80212':
  {'name':'80212',
   'desc':[["Our rendition of the late '50s 80 watt Twin is a serious amplifier for those who wish their presence on stage to be not only heard, but felt. The Victoria 80212 will lay down a broad tractor beam of unyielding lows, fat, grab-ass mids, and a screaming high end that will linger in your ears for days. We're not kidding... this amp roars!!!"]],
   'image_url':'./images/amp_80212/img_1497_t.png',
   'sounds':[[{'title':"no sounds available",'url':'','length':'0'}]],
   'specs':[
     "Price: $3,495",
     "80 Watts of Power",
     "5F8A-type circuit",
     "Class A-B adjustable fixed bias push-pull operation",
     "Tubes: 1-5AR4, 4-6L6GC, 2-12AX7, 1-12AY7",
     "Speaker: 2-Jensen P12N speakers",
     "Cabinet size (HxWxD) 19 x 26.5 x 10.5"]
},
'double_deluxe':
  {'name':'Double Deluxe',
   'desc':[["Two Deluxes in one cabinet, featuring 4 6V6GT's. Since this amp is cathode biased, you may specify either a 5Y3 or 5AR4 rectifier tube for 30W or 40W of power. The Double Deluxe is one of our most dynamic and 'fun' amps to play, and it's a very inspiring instrument in skilled hands."]],
   'image_url':'./images/amp_double_deluxe/doubledlx.gif',
   'image_url':'./images/amp_double_deluxe/img_1314_t.png',
   'sounds':[[
     {'title':"Telecaster - boogie",'url':'./sounds/Double_Deluxe_Tele_Bisbee_Boogie_Kar.mp3','length':'10'},
     {'title':"Inside the Rain, a great song by Greg V",'url':'./sounds/Double_Deluxe_Greg_V_Inside_The_Rain.mp3','length':'10'},
     {'title':"Bend the Dusty, another great song by Greg V",'url':'./sounds/Double_Deluxe_Greg_V_Bend_The_Dusty.mp3','length':'10'},
     {'title':"ES 175 - clean, jazzy",'url':'./sounds/Double_Deluxe_ES_175_Clean_Jazz_Bria.mp3','length':'10'}]],
   'specs':[
     "Price: $2,829",
     "30 or 40 Watts of Power",
     "5E3-type circuit",
     "Class A cathode bias push-pull operation",
     "Tubes: 1-5AR4, 4-6V6GT, 1-12AX7, 1-12AY7",
     "Speaker: 2-Jensen P12Q speakers",
     "Cabinet size (HxWxD) 20.5 x 24.5 x 11"]
},
'victoriette':
  {'name':'Victoriette',
   'desc':[["In 2001, I finally relented, and we began to build amps with reverb and tremolo. The response to the introduction of the Victoriette and Victorilux by our customers and reviewers has been overwhelming, but not merely because we know how to do reverb and trem.","Granted, we researched many of the classic circuits, lifting some of Leo's genius from the brown and blackface era amps. But I also indulged in my long-standing appreciation for the EL84 power tube, which I felt had not been given proper attention by companies bent on simply knocking off a Vox."],
           [" The Victoriette possesses the warmth and clean headroom of a blackface Deluxe, with the character, charm, and dynamic response of a Class A British amp, but it is a knockoff of nothing. You gotta hear it to appreciate its unique voice, which can be shaped by a wide variety of speaker configurations, including a 2x10 or 1x12 (my personal favorite). Players become instantly enamored with this amp. It will make you smile."],
           ["The Victorilux features the same basic circuit with a quad of EL84's, or alternatively, dual 6L6's with the option of a 3x10, 2x12, or 1x15 speaker configuration. This amp perfectly falls in between a blackface Deluxe Reverb and a Super Reverb. You get a higher threshold of clean headroom than a Deluxe, and more creamy smooth breakup at far lower decibel levels than a Super. We think this is a very good thing, and players seem to agree. Both of these amps display a remarkable ability to clean up with just a tick of the volume control on the guitar, and the circuit loves every type of pickup we've ever thrown at it."]],
   'image_url':'./images/amp_victoriette/img_1454_t.png',
   'sounds':[[{'title':"no sounds available",'url':'','length':'0'}]],
   'specs':[
     "Price: $2,749",
     "20 Watts of Power",
     "Tubes: 1-5AR4, 2-6L6 or 2-EL84, 3-12AX7, 1-12AT7",
     "Reverb and Tremolo",
     "Speaker: 1-Jensen P12Q speaker or 2- Jensen P10R speakers",
     "Cabinet size (HxWxD) - Two cabinet configurations: 2x10 18.5 x 22 x 10.5 and 1x12: 18.5 x 22 x 10.5"]
},
'victorilux':
  {'name':'Victorilux',
   'desc':[["In 2001, I finally relented, and we began to build amps with reverb and tremolo. The response to the introduction of the Victoriette and Victorilux by our customers and reviewers has been overwhelming, but not merely because we know how to do reverb and trem. Granted, we researched many of the classic circuits, lifting some of Leo's genius from the brown and blackface era amps. But I also indulged in my long-standing appreciation for the EL84 power tube, which I felt had not been given proper attention by companies bent on simply knocking off a Vox."], 
           ["The Victoriette possesses the warmth and clean headroom of a blackface Deluxe, with the character, charm, and dynamic response of a Class A British amp, but it is a knockoff of nothing. You gotta hear it to appreciate it's unique voice, which can be shaped by a wide variety of speaker configurations, including a 2x10 or 1x12 (my per-sonal favorite). Players become instantly enamored with this amp. It will make you smile."], 
           ["The Victorilux features the same basic circuit with a quad of EL84's, or alternatively, dual 6L6's with the option of a 3x10, 2x12, or 1x15 speaker configuration. This amp perfectly falls in between a blackface Deluxe Reverb and a Super Reverb. You get a higher threshold of clean headroom than a Deluxe, and more creamy smooth breakup at far lower decibel levels than a Super. We think this is a very good thing, and players seem to agree. Both of these amps display a remarkable ability to clean up with just a tick of the volume control on the guitar, and the circuit loves every type of pickup we've ever thrown at it."]],
   'image_url':'./images/amp_victorilux/img_1372_t.png',
   'sounds':[[
     {'title':"Gibson SG - dry, driven nasty",'url':'./sounds/Victorilux_2x12_SG_Dry_Driven_Nasty.mp3','length':'10'},
     {'title':"Les Paul - jazzy blues",'url':'./sounds/Victorilux_2x12_Les_Paul_Jazzy_Blues.mp3','length':'10'},
     {'title':"Les Paul - dry, rockin'",'url':'./sounds/Victorilux_2x12_Les_Paul_Dry_Rockin.mp3','length':'10'},
     {'title':"Les Paul - clean, blues",'url':'./sounds/Victorilux_2x12_Les_Paul_Clean_Blues.mp3','length':'10'},
     {'title':"ES 175 - clean, with reverb",'url':'./sounds/Victorilux_1x15_ES_175_Clean_Reverb.mp3','length':'10'},
     {'title':"ES 175 - clean, jazzy, with reverb",'url':'./sounds/Victorilux_1x15_ES_175_Clean_Jazz_Re.mp3','length':'10'}],
             [{'title':"Tele - Hot Daddy vlux115",'url':'./sounds/72 HotDaddy.mp3','length':'10'},
     {'title':"tele - Ifell out of a tree vlux115",'url':'./sounds/73 IFellOutOfATree.mp3','length':'10'},
     {'title':"tele - It's a keeper vlux115",'url':'./sounds/74 ItsAKeeper.mp3','length':'10'},
     {'title':"Tele - Picking corn vlux115",'url':'./sounds/75 PickinCorn.mp3','length':'10'},
     {'title':"Tele - Slipped on the sidewalk vlux115",'url':'./sounds/76 SlippedOnTheSidewalk.mp3','length':'10'},
     {'title':"tele - Sunny blues vlux115",'url':'./sounds/77 SunnyBlues.mp3','length':'10'}],
             [{'title':"tele  - This tele has a mug shot vlux115",'url':'./sounds/78 ThisTeleHasAMugShot.mp3','length':'10'},
     {'title':"Tele  - What happend to my brain? vlux115",'url':'./sounds/79 WhatHappenedToMyBrain.mp3','length':'10'},
     {'title':"Les Paul - Noodling vux115",'url':'./sounds/67 Noodling.mp3','length':'10'},
     {'title':"Les Paul - Badswing blues vlux115",'url':'./sounds/68 SwingBlues.mp3','length':'10'},
     {'title':"Les Paul - Tuneful neck PU vlux115",'url':'./sounds/69 TunefulPaulie.mp3','length':'10'},
     {'title':"Les Paul - Uncle Marty steals the show vlux115",'url':'./sounds/70 UncleMartyStealsTheShow.mp3','length':'10'}],
             [{'title':"Les Paul - Uncle Marty stole my cigarettes vlux115",'url':'./sounds/71 UncleMartyStoleMyCigarettes.mp3','length':'10'},
     {'title':"Tele  - slippylick 2X12",'url':'./sounds/91 SwingItBaby.mp3','length':'10'},
     {'title':"Tele  - The guitar has been drinking 2X12",'url':'./sounds/93 TheGuitarHasBeenDrinking.mp3','length':'10'},
     {'title':"tele  - I left my fingers in Nashville 2X12",'url':'./sounds/86 LeftMyFingersInNashville.mp3','length':'10'},
     {'title':"Tele  - LOVE AND SOFAS!!! 2X12",'url':'./sounds/87 LoveAndSofas.mp3','length':'10'},
     {'title':"Tele  - neck PU snarkiness in 'A' 2X12",'url':'./sounds/84 CleanVLuxLick.mp3','length':'10'}]],
   'specs':[
     "Price: $2,949",
     "35 Watts of Power",
     "Tubes: 1-5AR4, 2-6L6 or 4-EL84, 3-12AX7, and 1-12AT7",
     "Reverb and Tremolo",
     "Speaker: 2-Jensen P12Q speakers, or 3-Jensen P10R speakers, or 1-Eminence Legend 15 inch speaker",
     "Cabinet size (HxWxD) - Three cabinet configurations: 3x10: 23.5 x 24 x 10.5, or 2x12: 20.5 x 24.5 x 11 or 1x15 20.5 x 24.5 x 11"]
},
'trem_of_the_trem':
  {'name':'Trem of the Trem',
   'desc':[["The Trem of the Trem is a classic mid '50's tweed design based on the venerable Fender 5E9-A Tremolux. It employs 2 cathode-biased 6V6's to produce a modest 14 watts of power. The footswitchable trem effect is achieved by modulating the bias of the phase inverter, yielding a smooth musical effect that is not effected by the volume of the amplifier. It features a bright and normal channel, master tone, speed and intensity."],
           [" An Eminence Legend 15 inch speaker is standard, with other configurations available upon request. This amplifier, the 5E9-A type, is highly prized by collectors and tone aficionados for its rich, harmonically dense tones and is considered by many to be the definitive tweed tremolo amp. An important addition the Victoria Vintage line, the Trem of the Trem allows guitarists the experience of the vintage 5E9-A without the perils involved with relying on a 50 year old piece of equipment."],
           ["I think Fender stopped making them in '57, and I have no doubt why. The tremolo on this amp is wacky! It's very prominent and smooth, with a different bounce and attack than the later power tube modulated versions. I think it's more effective and musical, but it has its quirks. The design and the way the trem is incorporated into the circuit is a bit imperfect. For one, when the depth control is all the way up, the phase inverter says ENOUGH and the amp loses its mojo. Turn the control to 10, you're in pulse-tone heaven, but a nudge past to 12, and you're scratching your head."],
           ["Now trust me, we came up with ways to alleviate this maddening problem, but each fix presented a sonic compromise to be dealt with, none of them (so far) acceptable. The second little thang about this circuit is that without the footswitch, it's impossible to fully turn off the trem effect. I don't know whether that could officially be considered a design flaw, as the footswitch is a part of the design, (and one is included) but I'm sure many an owner of an original 5E9-A has had to hit Mike Matthews up for a new footswitch."],
           ["In the end, I felt that if we were going to present this amp in the Victoria line, it had to be done as intended, warts and all. After hearing one, I know you'll agree. (I know, the original had a 12 and we're using a 15, but hey, the 15 sounds better to me! We'll build it with a 12 if you want!)"]],
   'image_url':'./images/amp_35115/img_1262_t.png',
   'sounds':[[
     {'title':"Telecaster (Drop D tuning) - with tremolo",'url':'./sounds/Trem_D_la_Trem_Tele_Drop_D_Tremolo_S.mp3','length':'10'},
     {'title':"Telecaster (Drop D tuning) - with tremolo",'url':'./sounds/Trem_D_la_Trem_Tele_Drop_D_Tremolo_3.mp3','length':'10'},
     {'title':"Les Paul - dirty, with tremolo",'url':'./sounds/Trem_D_la_Trem_Les_Paul_Dirty_Tremol.mp3','length':'10'}]],
   'specs':[
     "Price: $2,695",
     "14 Watts of Power",
     "5E9A-type circuit",
     "Class A cathode biased push-pull operation",
     "Tubes: 1-5U4GB, 2-6V6GT, 2-12AX7, 1-12AY7",
     "Speaker: 1-Eminence Legend 15 inch speaker",
     "Cabinet size (HxWxD) 21.5 x 23 x 10.5"]
},
'regal':
  {'name':'Regal II',
   'desc':[["A combo amp featuring reverb and tremolo, The Regal II is a pure, single-ended class A design that utilizes a new 'Adaptive Transformer Technology' that allows for the use of one or two power tubes at the same time. Therefore, operating power is rated from 5 watts to 35 watts; and at 5 watts, it's a REAL 5 watts, not some squashed approximation of 5 watts."],
           ["The Regal II is designed around a custom bifilar output transformer that is essentially two discrete transformers driving a common speaker load. This allows for the use of any combination of common 8 pin power tubes - from a single 6V6 delivering 5 watts of pure class A power, to two EL-34's for 35 watts. And because each tube is relating to its own independent transformer winding and bias resistor, any combination of different tubes types can be auditioned."],
           ["Whether it be a single 6V6 or 6L6GC or a combination of the two (yes that's right, a 6V6 and a 6L6GC at the same time) the Regal II never needs biasing or adjustments when changing tubes. This versatility is also extended to rectifier tubes; the Regal II can accept any common 5 Volt rectifier including 5Y3, 5V4, 5U4, and 5AR4 with no adjustments nessessary."],
           ["The Regal II is available in laquered tweed or vanilla tolex. Custom design 15 inch speaker standard, Eminence Legend 15 nch and Celestion Gold optional. Footswitchable, 100% tube-driven reverb and tremolo. 100% handwired with US-made Allen Bradley resistors and custom Victoria capacitors.  Videos of this amp are available <a href='./videos.html'>here</a>."]],
   'image_url':'./images/amp_regal/img_1273_t.png',
   'sounds':[[
     {'title':"ES 175 - clean, jazzy, with tremolo",'url':'./sounds/Regal_ES_175_Clean_Jazz_Tremolo_Bria.mp3','length':'10'},
     {'title':"LP Jr - Cowboy dust up 6L6",'url':'./sounds/CowboyDustupCleanLesPaulJr.mp3','length':'10'},
     {'title':"LP Jr - Cowboy dust up LP dirty 6L6",'url':'./sounds/CowboyDustupDirtyLesPaulJr.mp3','length':'10'},
     {'title':"Strat - cowboy dust up strat bridge 6L6",'url':'./sounds/CowboyDustupStratBridgePickup.mp3','length':'10'},
     {'title':"Strat - cowboy dust up start neck 6L6",'url':'./sounds/CowboyDustupStratNeckPickup.mp3','length':'10'},
     {'title':"Tele - cowboy dusting of up 6L6",'url':'./sounds/CowboyDustupTeleHighGain.mp3','length':'10'}],
             [{'title':"Tele - cowboy dust off hi volume",'url':'./sounds/CowboyDustupTeleHighGain.mp3','length':'10'},
     {'title':"Tele - dirty riff 6L6's",'url':'./sounds/DropDDirtyRiff.mp3','length':'10'},
     {'title':"Tele - Easy Vibrato 6L6",'url':'./sounds/EasyVibrato.mp3','length':'10'},
     {'title':"Tele - Fly paper wobble 6L6",'url':'./sounds/FlyPaperWobble.mp3','length':'10'},
     {'title':"lap?? - Guitar Rag 6L6",'url':'./sounds/GuitarRag.mp3','length':'10'},
     {'title':"Tele - Misc licks 1 6L6",'url':'./sounds/MiscLicks1.mp3','length':'10'}],
             [{'title':"LP Jr  - Weasels 6L6",'url':'./sounds/MiscWeasilageDirtyLesPaulJr.mp3','length':'10'},
     {'title':"LP Jr - More Weasels 6L6",'url':'./sounds/MiscWeasilageDirtyLesPaulJr02.mp3','length':'10'},
     {'title':"Tele - more easy vibrato 6L6",'url':'./sounds/MoreEasyVibrato.mp3','length':'10'},
     {'title':"Tele - More vibrato WHY??? 6L6",'url':'./sounds/MoreVibrato.mp3','length':'10'},
     {'title':"Tele - SAM IS ANGRY!! 6L6",'url':'./sounds/SamIsAngry.mp3','length':'10'},
     {'title':"Tele - Spooky reverby vibrato 6L6",'url':'./sounds/SpookyReverbyVibrato.mp3','length':'10'}],
             [{'title':"Kay - That's all folks! 6L6",'url':'./sounds/ThatsAllFolks.mp3','length':'10'},
     {'title':"Tele - There's always room for one more 6L6",'url':'./sounds/TheresAlwaysRoomForOneMore.mp3','length':'10'},
     {'title':"Strat bridge - Waldos swing 6L6",'url':'./sounds/WaldosSwingStratBridge.mp3','length':'10'},
     {'title':"LP Jr - Dirty Weasel !!! 6L6",'url':'./sounds/MiscWeasilageDirtyLesPaulJr.mp3','length':'10'},
     {'title':"Lp Jr - Sam v Sam 1 6V6",'url':'./sounds/ExercisesInGLesPaulJr.mp3','length':'10'},
     {'title':"Tele - Sam v Sam 1 6V6",'url':'./sounds/MiscSamLick.mp3','length':'10'}],
             [{'title':"Tele - Misc Tele 6V6",'url':'./sounds/MiscLickTele.mp3','length':'10'},
     {'title':"Tele - Misc Tele @2dot smung 6V6",'url':'./sounds/MiscLickTele2.mp3','length':'10'},
     {'title':"Tele - Sam v Sam 3 6V6",'url':'./sounds/MiscSamLick.mp3','length':'10'},
     {'title':"Lp Jr - bisbybisbeeriffic 6V6",'url':'./sounds/MiscBisbyLicksLesPaulJr.mp3','length':'10'},
     {'title':"Tele - Oh SHIT BISBEE look out girl 6V6",'url':'./sounds/MiscLickTele.mp3','length':'10'},
     {'title':"Tele  - same key Different Ken 6V6",'url':'./sounds/MiscLickTele2.mp3','length':'10'}],
       [{'title':"Tele in Love - Look out Cowboy!! 6V6",'url':'./sounds/MoreBisbyRock.mp3','length':'10'}]],
   'specs':[
     "Price: $2,995",
     "5-35 Watts of power",
     "'Vintage Voicing' all tube circuitry",
     "Single ended Class A operation",
     "Tubes: 1 X 5U4, 2 X 6l6GC/5881, 3 X 12AX7, 1 X 12AT7(NOS)",
     "Tube driven transformer coupled reverb, full size USA Accutronics tank",
     "Speaker: 1 Eminence/Victoria OEM 15 inch speaker",
     "Cabinet size (HxWxD) 21 x 21 x 11.5"]
},
'electro_king':
  {'name':'Electro King',
   'desc':[["The Electro King is an idealized recreation of the classic McCarty era GA-40. Its circa 1957 circuit features two cathode biased 6V6s for 15watts of recording and small club power. The heart and soul of the Electro King is its 5879 preamp circuit; a single NOS 5879 input pentode for each of the normal and tremolo channels provides rich distortion and natural tube compression at any volume setting. Notes seem to be 'blown' out of the amp with overdriven tones that are saturated, dynamic and musical."], ["The Electro King is singularly suited to slide guitar styles with its expressive open tones. True to the original, the tremolo is accomplished with the aid of an NOS 6SQ7 oscillator tube and is a driver modulated volume style tremolo. Slim Harpo/Lonesome Sundown spoken here. The Electro King is fitted with a Jensen P12Q alnico speaker for true vintage tone. New Victoria 'Radio-lectric' logo and two tone tolex covering standard."]],
   'image_url':'./images/amp_ek/king_137_thumb.png',
   'sounds':[[{'title':"no sounds available",'url':'','length':'0'}]],
   'specs':[
     "Price: $2,995",
     "15 Watts of Power",
     "1957 GA-40 type circuit",
     "Tubes: 1 X 5Y3, 2 X 6V6, 1 12AX7, 1 6SQ7, 2 X 5879",
     "14 watt cathode biased class A push pull output",
     "Speaker: 1 Jensen P12Q speaker (12 inch)"]
},
'golden_melody':
  {'name':'Golden Melody',
   'desc':[["The Golden Melody is a full range 50watt 2x12 combo featuring the same true 'harmonic vari-tone' vibrato and reverb found on Victoria's renowned Reverberato unit. A GZ-34/5U4 and two 6L6GCs provide the clean power while the unique harmonic filter vibrato and classic preamp topology generate tones from spanky clean to Fillmore Gypsy."], ["Spatially huge, the pulsing swirling effect of the Golden Melody's vibrato is peerless and is 100% tube driven, using no less than three 12AX7s. Reverb is 12AT7 transformer coupled with a full size Accutronics tank standard. Two Golden Melody Classic Lead style 12 inch speakers are used for rich clean and punchy overdriven tones. Two tone tolex with Victoria 'Radio-lectric' logo.  Videos of this amp are available <a href='./videos.html'>here</a>."]],
   'image_url':'./images/amp_gm/img_1327_t.png',
   'sounds':[[{'title':"no sounds available",'url':'','length':'0'}]],
   'specs':[
     "Price: $3,495",
     "40-60 Watts of Power, depending on phase inverter",
     "Fixed bias A/B push pull power",
     "Tubes: 1 X 5AR4, 2 X 6L6GC, 5 X 12AX7, 1 X 12AT7(NOS)",
     "All tube harmonic filter vibrato",
     "Transformer coupled tube reverb",
     "Full size USA Accutronics tank",
     "Speaker: 2 Britlead WGS 12 inch speakers"]
},
'ammo':
  {'name':'Ammo',
   'desc':[["Designed specifically for a world where hard service and big tone is critical, the VIC105 is right and ready for your next sonic assault.  Using actual re-fabricated US ARMY 50 cal ammunition cans, the VIC105 is a handwired, switchable single/dual EL-84 powered amplifier that's poised for front line action!  A switchable half power switch, which toggles between single ended and push pull operation, is mated with a tunable boost switch which is ideal for those low volume sonic spy missions..  Videos of this amp are available <a href='./videos.html'>here</a>.  "],
  ["Through a 4X12 cab it has more than enough gas for all but the largest gigs, and the half power and boost functions allow for rich tube tone for the most intimate settings.  Like serenading an undercover double agent named Maria behind enemy lines perhaps?  No worries!  The VIC105 will inspire to conspire in all of your aural espionage needs!"]],
   'image_url':'./images/amp_ammo/img_0891_t.png',
   'sounds':[[{'title':"no sounds available",'url':'','length':'0'}]],
   'specs':[
     "Price: $1495.00",
     "Half Power/Full Power switch, toggling between single tube/single ended (5W) and dual tube push-pull operation (10W)",
     "Self splitting output tube inverter",
     "Boost switch with tuning control",
     "Custom US made power & output transformers",
     "4 & 8 ohm speaker outs, IEC cord & speaker cable incl.",
     "Custom backlit see-thru space age Lexan chassis plate",
     "Tubes: 1 X 6CA4/EZ81, 2 X 6BQ5/EL84, 1 X 12AX7"]
},
'two_stroke':
  {'name':'Two Stroke',
   'desc':[["The Two Stroke Amp Kit is the kit provided to readers of Dave Hunter's popular book THE GUITAR AMP HANDBOOK who would like to build the Two Stroke project in the back of the book and would rather buy all of the parts from a single source. NOTE: Before sending an order for purchase you must read, understand and agree to both the TERMS & CONDITIONS and the WARNING below. Any request to purchase a Two Stroke Kit in any form constitutes an agreement to and understanding of these Terms & Conditions, and to the WARNING."],
           ["The Two Stroke is a single-ended, true class A tube combo with single 6L6 output tubes in its 'standard format' (swappable for a single 6V6, EL34, KT66, 6K6, etc) and a 1x12 inch speaker configuration. Power output is between 4 watts (6V6 or 6K6) and 8 to 10 watts (6L6 and larger tubes), depending upon tube used. The project published in Guitar Amp Handbook was for a 'dual-single-ended' amp with 2x6V6s that could be swapped for a single 6L6 like the Two Stroke uses now, but this proved too complicated to supply for the extra effort involved."],
          ["After repeated testing the single 6L6 sounded just as good (if not better) and makes it an easier amp for beginners to build, so it made sense to make the change.","You can still swap the single 6L6 for a single 6V6, or for any of the other tubes mentioned above. The project still uses the same diagram, you just don't connect the extra wires to the second output tube socket to wire it in parallel, and you delete the extra bias resistor and bypass cap.  Videos of this amp are available <a href='./videos.html'>here</a>."]],
   'image_url':'./images/amp_ts/img_1357_t.png',
   'sounds':[[{'title':"no sounds available",'url':'','length':'0'}]],
   'specs':[
     "Price: $1,795 assembled, $1,000 as a kit",
     "Tubes: 1 X 5Y3 (NOS) 1 X 6K6GC, 1 X 12AX7",
     "Speaker: Eminence/Victoria OEM Legend 12 inch speaker",
     ""]
}
};

var country_states = {
  'USA':['CA','CO','GA','ID','IL','KS','KY','MS','ME','MI','MN','MO','NC','NJ','NM','NY','OR','PN','TX','UT','VA','WA','WI'],
  'AUS':['AUS'],
  'GER':['GER'],
  'ICE':['ICE'],
  'ITA':['ITA'],
  'JPN':['JPN'],
  'NZE':['NZE'],
  'NOR':['NOR'],
  'SPN':['SPN'],
  'SWI':['SWI'],
  'UK':['UK']
};
var country_list = ['AUS','CAN','GER','ICE','ITA','JPN','NZE','NOR','SPN','SWI','UK','USA'];
var state_data = {
  'CA':{
    'title':'California',
    'stores': [
      {'address':[
          "South Valley Vintage Amps",
          "9370 Durango Ln.,",
          "Gilroy, CA  95020"],
       'phone':['408-893-8624'],
       'url':'http://www.svvintageamps.com/',
       'city':'Gilroy, CA'
      },
      {'address':[
          "Truetone Music",
          "714 Santa Monica Blvd.,",
          "Santa Monica, CA  90401"],
       'phone':['310-393-8232'],
       'url':'http://www.truetonemusic.com/',
       'city':'Santa Monica, CA'
      },
      {'address':[
          "The Tweed Hut Music Store",
          "1021 Hume Way, Suite H",
          "Vacaville, CA  95687"],
       'phone':['707-425-5515'],
       'url':'http://www.tweedhut.com/',
       'city':'Vacaville, CA'
      },
      {'address':[
          "Sylvan Music",
          "1521 Mission St.,",
          "Santa Cruz, CA  95060"],
       'phone':['831-427-1917'],
       'url':'http://www.sylvanmusic.com/',
       'city':'Santa Cruz, CA'
      },
      {'address':[
          "Westwood Music",
          "1627 Westwood Blvd.,",
          "Los Angeles, CA  90024"],
       'phone':['310-478-4251'],
       'url':'http://www.westwoodmusic.com/',
       'city':'Los Angeles, CA'
      },
      {'address':[
          "Rocker Guitars",
          "1350 Howard St.,",
          "San Francisco, CA  94103"],
       'phone':['415-487-1755'],
       'url':'',
       'city':'San Francisco, CA'
      },
      {'address':[
          "Grand Central Music",
          "3195 S. Higuera St.,",
          "San Luis Obispo, CA  93401"],
       'phone':['805-785-0276 Shop','805-785-0276 Fax'],
       'url':'http://www.grandcentralmusicstore.com/',
       'city':'San Luis Obispo, CA'
      },
      {'address':[
          "The Blue Guitar",
          "5959 Mission Gorge Rd., #101",
          "San Diego, CA  92120"],
       'phone':['619-283-2700'],
       'url':'http://www.theblueguitar.com',
       'city':'San Diego, CA'
      },
      {'address':[
          "Seal Beach Music",
          "118 Main St,",
          "Seal Beach, CA  90740"],
       'phone':['562-430-0594'],
       'url':'http://sealbeachmusic.com',
       'city':'Seal Beach, CA'
      },
      {'address':[
          "Pasadena Guitars",
          "27 N. Mentor Ave.,",
          "Pasadena, CA  91106"],
       'phone':['626-405-2999'],
       'url':'http://www.pasadenaguitars.net',
       'city':'Pasadena, CA'
      }
    ]
  },
  'CO':{
    'title':'Colorado',
    'stores': [
      {'address':[
          "Wildwood Guitars",
          "804 Main St.,",
          "Louisville, CO   80027"],
       'phone':['303-665-7733'],
       'url':'http://wildwoodguitars.com/',
       'city':'Louisville, CO'
      },
      {'address':[
          "Music Gear Guys",
          "220 South Broadway,",
          "Denver, CO  80209"],
       'phone':['720-570-7956'],
       'url':'http://myspace.com/musicgearguys',
       'city':'Denver, CO'
      }
    ]
  },
  'GA':{
    'title':'Georgia',
    'stores': [
      {'address':[
          "Midtown Music",
          "3326 Druid Hills Rd.,",
          "Decatur, GA   30033"],
       'phone':['404-325-0515'],
       'url':'http://www.midtownmusic.com/',
       'city':'Decatur, GA'
      },
    ]
  },
  'ID':{
    'title':'Idaho',
    'stores': [
      {'address':[
          "Old Boise Guitar Co. ",
          "515 Main St.,",
          "Boise, ID  83702"],
       'phone':['208-344-7600'],
       'url':'http://www.oldboiseguitar.com',
       'city':'Boise, ID'
      },
    ]

  },
  'IL':{
    'title':'Illinois',
    'stores': [
      {'address':[
          "Chicago Music Exchange",
          "3316 N Lincoln Ave.",
          "Chicago, IL   60657"],
       'phone':['773-525-7773'],
       'url':'http://chicagomusicexchange.com/',
       'city':'Chicago, IL'
      },
      {'address':[
          "Make'N Music",
          "1455 W. Hubbard St.,",
          "Chicago, IL   60622"],
       'phone':['312-455-1970'],
       'url':'http://makenmusic.com/',
       'city':'Chicago, IL'
      },
      {'address':[
          "Music Gallery, Inc. ",
          "2558 Green Bay Rd.,",
          "Highland Park, IL   60035"],
       'phone':['847-432-6350'],
       'url':'http://www.musicgalleryinc.com/',
       'city':'Highland Park, IL'
      },
      {'address':[
          "Hix Bros Music",
          "4315 Westbrook Dr.,",
          "Aurora, IL  60504"],
       'phone':['630-898-8840'],
       'url':'http://www.hixbrosmusic.com',
       'city':'Aurora, IL'
      },
    ]
  },
  'KS':{
    'title':'Kansas',
    'stores': [
      {'address':[
          "Wichita Band Instrument Co. / EMS Shorts Guitar",
          "2525 E Douglas Ave. ",
          "Wichita, KS   67211"],
       'phone':['316-684-0291'],
       'url':'http://wichitaband.com/',
       'city':'Wichita, KS'
      },
    ]

  },
  'KY':{
    'title':'Kentucky',
    'stores': [
      {'address':[
          "Willcutt Guitar Shoppe",
          "527 Southland Dr.,",
          "Lexington, KY   40503"],
       'phone':['859-276-0675'],
       'url':'http://www.willcuttguitars.com/',
       'city':'Lexington, KY'
      },
    ]

  },
  'MS':{
    'title':'Massachusetts',
    'stores': [
      {'address':[
          "Boston Guitar Works",
          "1777 Main St.,",
          "Brockton, MA  02301"],
       'phone':['508-580-0088'],
       'url':'http://www.bostonguitar.com',
       'city':'Brockton, MA'
      },
    ]

  },
  'ME':{
    'title':'Maine',
    'stores': [
      {'address':[
          "Music Toyz",
          "60 Gray Rd.,",
          "Falmouth, ME   04105"],
       'phone':['888-400-7436'],
       'url':'http://musictoyz.com/blog/index.php',
       'city':'Falmouth, ME'
      },
    ]

  },
  'MI':{
    'title':'Michigan',
    'stores': [
      {'address':[
          "Motor City Guitar",
          "1565 Crescent Lake Rd.,",
          "Waterford, MI  48327"],
       'phone':['248-673-1900'],
       'url':'http://www.motorcityguitar.com',
       'city':'Waterford, MI'
      },
    ]

  },
  'MN':{
    'title':'Minnesota',
    'stores': [
      {'address':[
          "Willie's American Guitars",
          "254 Cleveland Ave. So.,",
          "St. Paul, MN   55105"],
       'phone':['651-699-1913'],
       'url':'http://www.williesguitars.com/',
       'city':'St. Paul, MN'
      },
    ]

  },
  'MO':{
    'title':'Missouri',
    'stores': [
      {'address':[
          "Eddie's Guitars, Inc. ",
          "7362 Manchester Rd.,",
          "St. Louis, MO   63143"],
       'phone':['314-781-7500'],
       'url':'http://www.eddiesguitars.com/',
       'city':'St. Louis, MO'
      },
    ]

  },
  'NC':{
    'title':'North Carolina',
    'stores': [
      {'address':[
          "Sound Pure",
          "312 N Buchanan Blvd., Suite 206",
          "Durham, NC  27701"],
       'phone':['888-528-9703'],
       'url':'http://www.soundpure.com',
       'city':'Durham, NC'
      },
    ]

  },
  'NJ':{
    'title':'New Jersey',
    'stores': [
      {'address':[
          "Colts Neck Custom Shop",
          "30 Highway 34,",
          "Colts Neck, NJ   07722"],
       'phone':['732-995-1062'],
       'url':'http://www.coltsneckcustomshop.com/',
       'city':'Colts Neck, NJ'
      },
    ]

  },
  'NM':{
    'title':'New Mexico',
    'stores': [
      {'address':[
          "GuitarVista",
          "3005 Monte Vista Blvd. NE,",
          "Albuquerque, NM  87106"],
       'phone':['505-268-1133'],
       'url':'',
       'city':'Albuquerque, NM'
      },
    ]

  },
  'NY':{
    'title':'New York',
    'stores': [
      {'address':[
          "Southside Guitars",
          "742 Driggs Ave.,",
          "Brooklyn, NY  11211"],
       'phone':['718-218-8201'],
       'url':'http://southsideguitars.com/',
       'city':'Brooklyn, NY'
      },
      {'address':[
          "Rudy's Music Stop, Inc. ",
          "723 Seventh Ave., 4th floor",
          "New York, NY   10019"],
       'phone':['212-391-1699'],
       'url':'http://www.rudysmusic.com/flash.html',
       'city':'New York, NY'
      },
      {'address':[
          "Ultrasound Music, Inc. ",
          "251 W 30th St., 6th floor",
          "New York, NY   10001"],
       'phone':['203-966-2096'],
       'url':'http://www.ultrasoundrehearsal.com/',
       'city':'New York, NY'
      },
      {'address':[
          "Rock Island Sound",
          "619 Milton Rd.,",
          "Rye, NY  10580"],
       'phone':['914-417-2541'],
       'url':'http://www.rockislandsound.com',
       'city':'Rye, NY'
      },
    ]
  },
  'OR':{
    'title':'Oregon',
    'stores': [
      {'address':[
          "Apple Music",
          "225 SW First Ave.,",
          "Portland, OR   97204"],
       'phone':['503-226-0036'],
       'url':'http://www.applemusicrow.com/',
       'city':'Portland, OR'
      },
    ]

  },
  'PN':{
    'title':'Pennsylvania',
    'stores': [
      {'address':[
          "Westchester Music",
          "310 S. High St.,",
          "Westchester, PA   19382"],
       'phone':['610-436-8641'],
       'url':'http://www.westchestermusicstore.com/',
       'city':'Westchester, PA'
      },
    ]

  },
  'TX':{
    'title':'Texas',
    'stores': [
      {'address':[
          "Spacetone Music",
          "416 Austin Highway,",
          "San Antonio, TX  78209"],
       'phone':['210-930-3662'],
       'url':'www.spacetonemusic.com',
       'city':'San Antonio, TX'
      },
    ]
  },
  'UT':{
    'title':'Utah',
    'stores': [
      {'address':[
          "Guitar Czar, Inc. ",
          "2953 East 3000 South,",
          "Salt Lake City, UT   84109"],
       'phone':['801-466-8666'],
       'url':'http://www.guitarczar.com/',
       'city':'Salt Lake City, UT'
      },
    ]

  },
  'VA':{
    'title':'Virginia',
    'stores': [
      {'address':[
          "Winter Sound",
          "1714 George Washington Memorial Hwy.",
          "Gloucester Point, VA  23062"],
       'phone':['804-642-6434'],
       'url':'http://wintersound.com/',
       'city':'Gloucester Point, VA'},
      {'address':[
          "The Ukulele Shop",
          "Victorian Square Shopping Center, 10901 Hull St.",
          "Midlothian, VA  23112"],
       'phone':['804-516-3300'],
       'url':'',
       'city':'Midlothian, VA'},
    ]

  },
  'WA':{
    'title':'Washington',
    'stores': [
      {'address':[
          "Cole Music Company",
          "901 West Garland Ave.,",
          "Spokane, WA  99205"],
       'phone':['509-244-3001'],
       'url':'http://www.colemusiccompany.com/',
       'city':'Spokane, WA'
      },
      {'address':[
          "Truetone Audio",
          "12015 Marine Dr.,",
          "Tulalip, WA  98271"],
       'phone':['425-238-7663'],
       'url':'http://www.truetoneaudio.com',
       'city':'Tulalip, WA'
      },
      {'address':[
          "The Trading Musician",
          "5908 Roosevelt Way NE,",
          "Seattle, WA  98105"],
       'phone':['206-522-6707'],
       'url':'http://www.tradingmusician.com',
       'city':'Seattle, WA'
      },
    ]
  },
  'WI':{
    'title':'Wisconsin',
    'stores': [
      {'address':[
          "Cream City Music",
          "12505 W Bluemound Rd.,",
          "Brookfield, WI  53005"],
       'phone':['800-800-0087','262-860-1800'],
       'url':'http://www.creamcitymusic.com/',
       'city':'Brookfield, WI'
      },
      {'address':[
          "Dave's Guitar Shop",
          "1227 S Third St.,",
          "LaCrosse, WI   54601"],
       'phone':['608-785-7704'],
       'url':'http://www.davesguitar.com/',
       'city':'LaCrosse, WI'
      },
    ]
  },
  'AUS':{
    'title':'Australia',
    'stores': [
      {'address':["MUSICAL CITY PTY LTD",
          "43 Wallsend Rd",
          "Sandgate 2304, New South Wales  2304"],
       'phone':['0061 02 49684066'],
       'url':'http://www.musicalcity.com.au/',
       'city':' '
      },
      {'address':[ "Boutique Music Wholesalers",
          "37-39 Parramatta Rd.",
          "Annandale, Sydney  2038"],
       'phone':['02 6772 4196'],
       'url':'http://www.boutiquemusicwholesale.com.au/',
       'city':''
      },
    ]
  },
  'CAN':{
    'title':'Canada',
    'stores': [
      {'address':["Long & McQuade",
          "722 Rosebank Rd.",
          ""],
       'phone':['905-837-9785'],
       'url':'http://www.long-mcquade.com/',
       'city':''
      },
    ]
  },
  'GER':{
    'title':'Germany',
    'stores': [
      {'address':["Pro Guitar",
          "Buchenweg 13",
          "D-Schwarzenbruck  90592"],
       'phone':['49-9183-902 902-4'],
       'url':'http://www.proguitar.de/',
       'city':''
      },
    ]
  },
  'ICE':{
    'title':'Iceland',
    'stores': [
      {'address':["Rin Music",
          "Brautarholt.2",
          "Reykjavik  105"],
       'phone':['551-7692'],
       'url':'www.rin.is',
       'city':''
      },
    ]
  },
  'ITA':{
    'title':'Italy',
    'stores': [
      {'address':["440hz Distribution",
          "Via Como 18",
          "Varese  21100"],
       'phone':['(+39) 0332-281355'],
       'url':'http://www.440hz.it',
       'city':''
      },
    ]
  },
  'JPN':{
    'title':'Japan',
    'stores': [
      {'address':["JES International, Inc. ",
          "393 Mitsuike, Haruki",
          "Aichi-gun, Aichi  470-0162"],
       'phone':['81-05613-8-9845'],
       'url':'http://www.jes1988.com/',
       'city':''
      },
    ]
  },
  'NZE':{
    'title':'New Zealand',
    'stores': [
      {'address':["Mojo Sound",
          "",
          ""],
       'phone':['0800-665676 Toll Free',
                '04-5626007 Wgtn, <br />027-5665555 M'],
       'url':'http://www.mojosound.co.nz/',
       'city':''
      },
    ]
  },
  'NOR':{
    'title':'Norway',
    'stores': [
      {'address':["Vintagegitar.no",
                  "Skolegata 9",
                  "6509 Kristiansund N"],
       'phone':['47 7167 3350',
                'Fax 47 7167 3349'],
       'url':'http://vintagegitar.no/',
       'city':''
      },
    ]
  },
  'SPN':{
    'title':'Spain',
    'stores': [
      {'address':["Auvisa",
          "Av. Maresme, 283-285 Baix",
          "Mataro Barcelona  08301"],
       'phone':['0034 93 755 1499'],
       'url':'http://www.auvisa.com',
       'city':''
      },
    ]
  },
  'SWI':{
    'title':'Switzerland',
    'stores': [
      {'address':["Uptown Music",
          "Spalenring 115",
          ""],
       'phone':['41 61 303 00 03 '],
       'url':'http://www.uptown-music.com',
       'city':''
      },
    ]
  },
  'UK':{
    'title':'United Kingdom',
    'stores': [
      {'address':["Jam Guitars",
          "58 Alma Vale Rd.",
          "Clifton, Bristol  BS82HS"],
       'phone':['01173307607'],
       'url':'http://jamguitars.co.uk/',
       'city':''
      },
      {'address':["Charlie Chandler's Guitar Experience, Ltd. ",
          "21 High St.",
          "Hampton Wick, Middlesex  KT1 4DA"],
       'phone':['01144 208 973 1441'],
       'url':'http://www.guitarexperience.co.uk/',
       'city':''
      },
    ]
  }
};
  
function gup( name ) {
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}

function setCurrentCountry(country_id,new_or_same)  {
  $('#where_to_buy_countries ul li a').each(function(index) {
     if ($('#where_to_buy_countries ul li a')[index])  {
       $('#where_to_buy_countries ul li a')[index].className = '';
     }
   });
  if (document.getElementById('c_'+country_id.toLowerCase()))  {
      document.getElementById('c_'+country_id.toLowerCase()).className = 'active';
  }
  try {
    document.getElementById('the_state').innerHTML = '';
    document.getElementById('foreign_addr').innerHTML = '';
    document.getElementById('foreign_phone').innerHTML = '';
  }  catch(err)  {
  }
  if (country_id == 'USA')  {
    document.getElementById('where_to_buy_usa_header').innerHTML = country_id;
    var sul = document.getElementById('states_list');
    sul.innerHTML = '';
    for (s in country_states[country_id])  {
      var state_code = country_states[country_id][s];
      var lie = document.createElement('li');
      var ae = document.createElement('a');
      if (new_or_same == 'same')  {
        ae.setAttribute('href',"javascript:setCurrentState('"+state_code+"');");
      }  else  {
        ae.setAttribute('href',"./where_to_buy2.html?state="+state_code);
      }
      ae.setAttribute('id','state_'+state_code);
      ae.innerHTML = state_data[state_code]['title'];
      lie.appendChild(ae);
      sul.appendChild(lie);
    }
  }
}
function setCurrentState(the_state_code)  {
  $('#states_list li a').each(function(index) {
     if ($('#states_list li a')[index])  {
       $('#states_list li a')[index].className = '';
     }
   });
  document.getElementById('state_'+the_state_code).className = 'active';
  var odd_even_counter = 0;
  try {
    document.getElementById('city_column').innerHTML = '';
    document.getElementById('address_column').innerHTML = '';
    document.getElementById('foreign_addr').innerHTML = '';
    document.getElementById('foreign_phone').innerHTML = '';
  }  catch(err)  {
  }
  var odd_even_counter = 0;
  var city_ule = document.createElement('ul');
  var address_ule = document.createElement('ul');
  document.getElementById('the_state').innerHTML = state_data[the_state_code]['title'];
  for (s in state_data[the_state_code]['stores'])  {
    buildOneStoreCity(state_data[the_state_code]['stores'][s],odd_even_counter,city_ule);
    buildOneStoreAddress(state_data[the_state_code]['stores'][s],odd_even_counter,address_ule);
    odd_even_counter++;
  }
  $('#city_column').append(city_ule);
  $('#address_column').append(address_ule);
}
function setCurrentCountryState(country_id)  {
  var tt = findPos(document.getElementById('c_'+country_id.toLowerCase()));
//  var desired_store_y_offset = tt[1];
//  var top_offset = '125';
  $('#where_to_buy_countries ul li a').each(function(index) {
     $('#where_to_buy_countries ul li a')[index].className = '';
   });
  document.getElementById('c_'+country_id.toLowerCase()).className = 'active';
  document.getElementById('where_to_buy_usa_header').innerHTML = '';
  document.getElementById('states_list').innerHTML = '';
  $('#where_to_buy_usa_header').innerHTML = '';
  $('#states_list').innerHTML = '';
  var odd_even_counter = 0;
  document.getElementById('city_column').innerHTML = '';
  document.getElementById('address_column').innerHTML = '';
  document.getElementById('foreign_addr').innerHTML = '';
  document.getElementById('foreign_phone').innerHTML = '';
  var ule = document.createElement('ul');
  ule.setAttribute('id','foreign_addr_ul');
  ule.style.position = 'relative';
  if ((country_id == 'UK') || (country_id == 'AUS'))  {
    ule.style.top = '20px';
  }  else  {
    ule.style.top = '55px';
  }
  var ule2 = document.createElement('ul');
  ule2.setAttribute('id','foreign_phone_ul');
  ule2.style.position = 'relative';
  if ((country_id == 'UK') || (country_id == 'AUS'))  {
    ule2.style.top = '20px';
  }  else  {
    ule2.style.top = '55px';
  }
//  ule2.style.top = desired_store_y_offset  - top_offset + 'px';
  document.getElementById('the_state').innerHTML = state_data[country_id]['title'];
  for (s in state_data[country_id]['stores'])  {
    buildOneForeignStoreAddress(state_data[country_id]['stores'][s],ule);
    buildOneForeignStorePhone(state_data[country_id]['stores'][s],ule2);
  }
  $('#foreign_addr').append(ule);
  $('#foreign_phone').append(ule2);
}
function buildOneStoreCity(store_data,counter,parent_ul)  {
  var lie = document.createElement('li');
  var se = document.createElement('span');
  se.innerHTML = store_data['city'];
  lie.appendChild(se);
  if (counter % 2 == 0) {
    lie.className = 'even';
  }  else  {
    lie.className = 'odd';
  }
  parent_ul.appendChild(lie);
}

function buildOneForeignStoreAddress(store_data,parent_ul)  {
  var lie = document.createElement('li');
  var ae = document.createElement('a');
  ae.setAttribute('href',store_data['url']);
  var ule2 = document.createElement('ul');
  if (store_data['address'])  {
    for (ali in store_data['address'])  {
      var lie2 = document.createElement('li');
      lie2.innerHTML = store_data['address'][ali];
      ule2.appendChild(lie2);
    }
  }
  ae.appendChild(ule2);
  lie.appendChild(ae);
  parent_ul.appendChild(lie);
}
function buildOneForeignStorePhone(store_data,parent_ul)  {
  var lie = document.createElement('li');
  ule2 = document.createElement('ul');
  if (store_data['phone'])  {
    for (ali in store_data['phone'])  {
      var lie2 = document.createElement('li');
      lie2.innerHTML = store_data['phone'][ali];
      ule2.appendChild(lie2);
    }
  }
  lie.appendChild(ule2);
  parent_ul.appendChild(lie);
}


function buildOneStoreAddress(store_data,counter,parent_ul)  {
  var lie = document.createElement('li');
  var sade = document.createElement('div');
  sade.className = 'street_addr';
  var ae = document.createElement('a');
  ae.setAttribute('href',store_data['url']);
  var ule2 = document.createElement('ul');
  if (store_data['address'])  {
    for (ali in store_data['address'])  {
      var lie2 = document.createElement('li');
      lie2.innerHTML = store_data['address'][ali];
      ule2.appendChild(lie2);
    }
  }
  ae.appendChild(ule2);
  sade.appendChild(ae);
  lie.appendChild(sade);

  var pnde = document.createElement('div');
  pnde.className = 'phone_num';
  ule2 = document.createElement('ul');
  if (store_data['phone'])  {
    for (ali in store_data['phone'])  {
      var lie2 = document.createElement('li');
      lie2.innerHTML = store_data['phone'][ali];
      ule2.appendChild(lie2);
    }
  }
  pnde.appendChild(ule2);
  lie.appendChild(pnde);

  if (counter % 2 == 0) {
    lie.className = 'even';
  }  else  {
    lie.className = 'odd';
  }
  parent_ul.appendChild(lie);
}
function isUsState(the_state_code)  {
  for (cs in country_states['USA'])  {
    if (country_states['USA'][cs] == the_state_code)  {
      return true;
    }
  }
  return false;
}

function findPos(obj) {
  var curleft = curtop = 0;
  if (obj.offsetParent) {
    do {
      curleft += obj.offsetLeft;
      curtop += obj.offsetTop;
    } while (obj = obj.offsetParent);
  return [curleft,curtop];
  }
}
function getCategoryForAmp(amp_name)  {
  for (xx in classic_amp_list)  {
    if (typeof classic_amp_list[xx] != 'function')  {
      if (classic_amp_list[xx]['id'] == amp_name)  {
        return 'classic';
      }
    }
  }
  for (xx in tweed_amp_list)  {
    if (typeof tweed_amp_list[xx] != 'function')  {
      if (tweed_amp_list[xx]['id'] == amp_name)  {
        return 'tweed';
      }
    }
  }
  return 'tweed';
}

function setActiveAmpCategory(category_name)  {
  current_amp_category = category_name;
  clearActiveAmp();
  document.getElementById('selector_tweed').className = '';
  document.getElementById('selector_classic').className = '';
  if (category_name == 'tweed')  {
    document.getElementById('selector_tweed').className = "modelnav_top_selected";
    //document.getElementById('selector_tweed').setAttribute('class',"modelnav_top_selected");
    loadAmpList(category_name);
  }
  if (category_name == 'classic')  {
    document.getElementById('selector_classic').className = "modelnav_top_selected";
    loadAmpList(category_name);
  }
  setCategoryImage(category_name);
}
function setCategoryImage(category_name)  {
  var the_pic_name = category_images[category_name];
  document.getElementById('category_image').innerHTML = '';
  var ie = document.createElement('img');
  ie.setAttribute('src',the_pic_name);
  document.getElementById('category_image').appendChild(ie);
}
function clearCategoryImage()  {
  document.getElementById('category_image').innerHTML = '';
}
function loadAmpList(category_name)  {
  var the_amp_listing = [];
  if (category_name == 'tweed')  {
    the_amp_listing = tweed_amp_list;
  }
  if (category_name == 'classic')  {
    the_amp_listing = classic_amp_list;
  }
  var mnl = document.getElementById("modelnav_left");
  mnl.innerHTML = '';
  var ule = document.createElement('ul');
  for (yy in the_amp_listing)  {
    if (typeof the_amp_listing[yy] != 'function')  {
      var lie = document.createElement('li');
      var ae = document.createElement('a');
      ae.setAttribute('href',"./amps.html?model="+the_amp_listing[yy]['id']);
//      ae.setAttribute('href',"javascript:setActiveAmp('"+the_amp_listing[yy]['id']+"');");
      ae.setAttribute('id','model_'+the_amp_listing[yy]['id'].toLowerCase());
      ae.innerHTML = the_amp_listing[yy]['title'];
      lie.appendChild(ae);
      ule.appendChild(lie);
    }
  }
  mnl.appendChild(ule);
}
function clearActiveAmp()  {
  document.getElementById('sounds_title').innerHTML = '';
  document.getElementById('model_desc').innerHTML = '';
  document.getElementById('model_name').innerHTML = '';
  document.getElementById('model_name_vic').innerHTML = '';
  document.getElementById('model_name_tweednum').innerHTML = '';
  document.getElementById('model_specs').innerHTML = '';
  document.getElementById('sounds_ul').innerHTML = '';
  document.getElementById('model_desc_prev').style.visibility = 'hidden';
  document.getElementById('model_desc_next').style.visibility = 'hidden';
  var mi = document.getElementById('gallery');
  mi.innerHTML = '';
  var mit = document.getElementById('model_image_tip');
  mit.innerHTML = '';
  var aae = document.createElement('a');
  aae.setAttribute('href','./something.html');
  var imge = document.createElement('img');
  imge.setAttribute('src', './images/no_amp.png');
  imge.setAttribute('border', '0');
  aae.appendChild(imge);
  mi.appendChild(aae);
//  hideAudioPlayer();
}
function setActiveAmp(amp_name)  {
  clearCategoryImage();
  document.getElementById('sounds_title').innerHTML = 'Sound Clips';
  highlightActiveAmpName(amp_name);
  buildAmpTitle(amp_data[amp_name]['name']);
  buildAmpDesc(amp_data[amp_name]['desc'],amp_name);
  buildSpecs(amp_data[amp_name]['specs']);
  buildSoundClips(amp_data[amp_name]['sounds'],amp_name);
  buildAmpImage(amp_data[amp_name]['image_url'],amp_name);
}
function highlightActiveAmpName(amp_name)  {
  try {
    if (current_active_amp != '') {
      document.getElementById('model_'+current_active_amp).className = '';
    }
  }
  catch(err) {
  }
  current_active_amp = amp_name;
  try {
    document.getElementById('model_'+amp_name).className = 'modelnav_left_selected';
  }
  catch(err) {
  }
}
function buildAmpTitle(amp_name)  {
  if (amp_name['name'] != 'function')  {
    if (current_amp_category == 'tweed')  {
        document.getElementById('model_name_vic').innerHTML = 'Victoria';
        document.getElementById('model_name_tweednum').innerHTML = amp_name;
    }  else  {
        document.getElementById('model_name').innerHTML = amp_name;
    }
  }
}
function buildAmpDesc(desc_arr,amp_name)  {
  var md = document.getElementById('model_desc');
  md.innerHTML = '';
  for (rr in desc_arr[0])  {
      if (typeof desc_arr[0][rr] != 'function')  {
        var pe = document.createElement('p');
        pe.innerHTML = desc_arr[0][rr];
        md.appendChild(pe);
     }
  }
  setDescNextPrevLinks(amp_name,0);
}
function pageAmpDesc(amp_name,offset)  {
  var desc_arr = amp_data[amp_name]['desc'][offset];
  var md = document.getElementById('model_desc');
  md.innerHTML = '';
  for (rr in desc_arr)  {
      if (typeof desc_arr[rr] != 'function')  {
        var pe = document.createElement('p');
        pe.innerHTML = desc_arr[rr];
        md.appendChild(pe);
     }
  }
  setDescNextPrevLinks(amp_name,offset);
}
function setDescNextPrevLinks(amp_name,offset)  {
  var has_prev = false;
  var has_next = false;
  if (offset > 0)  {
    has_prev = true;
  }
  if ((amp_data[amp_name]['desc'].length-1) > offset)  {
    has_next = true;
  }
  if (has_prev)  {
    document.getElementById('model_desc_prev').style.visibility = 'visible';
    document.getElementById('model_desc_prev').setAttribute('href',"javascript:pageAmpDesc('"+amp_name+"',"+(offset-1).toString()+")");
  }  else  {
    document.getElementById('model_desc_prev').style.visibility = 'hidden';
  }
  if (has_next)  {
    document.getElementById('model_desc_next').style.visibility = 'visible';
    document.getElementById('model_desc_next').setAttribute('href',"javascript:pageAmpDesc('"+amp_name+"',"+(offset+1).toString()+")");
  }  else  {
    document.getElementById('model_desc_next').style.visibility = 'hidden';
  }
}
function setSoundNextPrevLinks(amp_name,offset)  {
  var has_prev = false;
  var has_next = false;
  if (offset > 0)  {
    has_prev = true;
  }
  if ((amp_data[amp_name]['sounds'].length-1) > offset)  {
    has_next = true;
  }
  if (has_prev)  {
    document.getElementById('model_sounds_prev').style.visibility = 'visible';
    document.getElementById('model_sounds_prev').setAttribute('href',"javascript:pageSoundClips('"+amp_name+"',"+(offset-1).toString()+")");
  }  else  {
    document.getElementById('model_sounds_prev').style.visibility = 'hidden';
  }
  if (has_next)  {
    document.getElementById('model_sounds_next').style.visibility = 'visible';
    document.getElementById('model_sounds_next').setAttribute('href',"javascript:pageSoundClips('"+amp_name+"',"+(offset+1).toString()+")");
  }  else  {
    document.getElementById('model_sounds_next').style.visibility = 'hidden';
  }
}
function buildSpecs(specs_arr)  {
  var ms = document.getElementById('model_specs');
  ms.innerHTML = '';
  var ule = document.createElement('ul');
  for (yy in specs_arr)  {
    if (typeof specs_arr[yy] != 'function')  {
      var lie = document.createElement('li');
      lie.innerHTML = specs_arr[yy];
      ule.appendChild(lie);
    }
  }
  ms.appendChild(ule);
}

function buildSoundClips(sounds_arr,amp_name)  {
  var su = document.getElementById('sounds_ul');
  su.innerHTML = '';
  setSoundNextPrevLinks(amp_name,0);
  if ((sounds_arr[0].length == 1) && (sounds_arr[0][0]['title'] == 'no sounds available'))  {
    var lie = document.createElement('li');
    var se = document.createElement('span');
    se.innerHTML = sounds_arr[0][0]['title'];
    lie.appendChild(se);
    su.appendChild(lie);
    return;
  }
  buildSoundsUlFromOffset(su,sounds_arr,0);
}
function buildSoundsUlFromOffset(parent_ul,sounds_arr,offset)  {
  for (zz in sounds_arr[offset])  {
    if (typeof sounds_arr[zz] != 'function')  {
      var lie = document.createElement('li');
      var de = document.createElement('div');
      de.className = 'play_sound_link';
      var ae = document.createElement('a');
      ae.setAttribute('id', 'sound_link_'+zz);
      ae.setAttribute('href', "javascript:playSoundClip('"+sounds_arr[offset][zz]['url']+"','sound_link_"+zz+"','"+sounds_arr[offset][zz]['length']+"');");
      ae.innerHTML = sounds_arr[offset][zz]['title'];
      de.appendChild(ae)
      lie.appendChild(de);
      var de2 = document.createElement('div');
      de2.className = 'stop_sound_link';
      var ae2 = document.createElement('a');
      ae2.setAttribute('id', 'stop_sound_link_'+zz);
      ae2.setAttribute('href', "javascript:stopSound('"+zz+"');");
      ae2.innerHTML = 'stop';
      de2.appendChild(ae2);
      lie.appendChild(de2);
      parent_ul.appendChild(lie);
    }
  }
}
function pageSoundClips(amp_name,offset)  {
  var su = document.getElementById('sounds_ul');
  su.innerHTML = '';
  sounds_arr = amp_data[amp_name]['sounds'];
  buildSoundsUlFromOffset(su,sounds_arr,offset);
  setSoundNextPrevLinks(amp_name,offset);
}
function stopSound(sound_id)  {
    niftyplayer('niftyPlayer1').stop();
}
function buildAmpImage(image_url,amp_name)  {
    var gd = document.getElementById('gallery');
    gd.innerHTML = '';
    var ule = document.createElement('ul');
    var lie = document.createElement('li');
    var ae = document.createElement('a');
    var imge = document.createElement('img');
    if (ampHasMultipleImages(amp_name))  {
        var ail = amp_image_list[amp_name];
        for (var i = 0; i < ail.length; i++)  {
            lie = document.createElement('li');
            ae = document.createElement('a');
            imge = document.createElement('img');
            ae.setAttribute('href',ail[i]['url']);
            ae.setAttribute('title','Click on the left or right sides of the amp image to access next and previous images');
            if (i > 0)  {
                ae.className = 'img_hide';
            }
            imge = document.createElement('img');
            imge.setAttribute('src',image_url);
            imge.setAttribute('width','229');
            imge.setAttribute('height','207');
            imge.setAttribute('alt','');
            ae.appendChild(imge);
            lie.appendChild(ae);
            ule.appendChild(lie);
        }
        gd.appendChild(ule);
        $('#gallery a').lightBox();
        var mit = document.getElementById('model_image_tip');
        mit.innerHTML = 'Click amp to enlarge';
    }  else  {
        imge.setAttribute('src',image_url);
        imge.setAttribute('width','229');
        imge.setAttribute('height','207');
        imge.setAttribute('alt','');
        lie.appendChild(imge);
        ule.appendChild(lie);
        gd.appendChild(ule);
        var mit = document.getElementById('model_image_tip');
        mit.innerHTML = '';
    }

}
function ampHasMultipleImages(amp_name)  {
    if (amp_image_list[amp_name])  {
        return true;
    }  else  {
        return false;
    }
}
function turnOnNoteImage(the_length)  {
  var spn = document.getElementById('sound_playing_note');
  spn.innerHTML = '';
  var ie = document.createElement('img');
  ie.setAttribute('src','./images/va_3.gif');
  spn.appendChild(ie);
  $("#sound_playing_note").fadeIn(10);
  $("#sound_playing_note").fadeOut(the_length * 1000);
}
function playSoundClip(the_url,the_id,the_length)  {
  turnOnNoteImage(the_length);
  niftyplayer('niftyPlayer1').stop();
  niftyplayer('niftyPlayer1').loadAndPlay(the_url);
  var ule = document.getElementById('sounds_ul');
  $('#sounds_ul li div.play_sound_link a').each(function(index) {
     if ($('#sounds_ul li div.play_sound_link a')[index])  {
       $('#sounds_ul li div.play_sound_link a')[index].className = '';
     }
   });
  if (document.getElementById(the_id))  {
      document.getElementById(the_id).className = 'active';
  }
  $('#sounds_ul li div.stop_sound_link a').each(function(index) {
     if ($('#sounds_ul li div.stop_sound_link a')[index])  {
       $('#sounds_ul li div.stop_sound_link a')[index].style.visibility = 'hidden';
     }
   });
  document.getElementById('stop_'+the_id).style.visibility = 'visible';
}
function newWindow(the_url)  {
  window.open(the_url);
}

