var default_cover = "covers/pudgetunes.png";
var coverarts = [ "covers/PUDGE.png", "covers/didit.png", "covers/pudgetunes.png", "covers/with_cowbell.png", "covers/nandors_white_castle.png", "covers/underthesea.png", "covers/whopper.png", "covers/disciple.png" ];
var songnames = [ "Best of You", "Liberty Man", "Best Week Ever", "Christine, Christine, Christine", "Superdelegate", "You Forgot Ron Paul", "GOP Debate Song", "I Am Gonna (1961 demo version)", "Lines and Squares", "George Bush is Hitler", "Alright For Now", "Under the Sea", "Just Getting Started", "Wasting Time", "Osama Bin Laden, You Ruined My Birthday", "World War Three", "You're Clueless", "Whopper Theme", "Leap of Faith", "Through the Glass Darkly", "(Oops) I Did It Again", "The Hand That Feeds", "Christine", "Flower Man", "New Year", "Tetelestai", "Caves of Steel", "Johnny Got Suspended", "Political Science", "Crossroads", "Sunshine", "GarageBand Demo", "KLB", "Slow", "Small World", "Actions Speak Louder Than Words", "Desperation", "Goin' Home", "Images", "Life Begins at the Cross", "Light of My Life", "Living the Good Life", "Look", "Quite Enough", "Runnin'", "Star-Spangled Banner", "Unconditional Love", "Who Will Save the Children?" ];
var songlist = { "Actions Speak Louder Than Words": { date: "1990-06-01", time: "4:02", tags: "disciple, old, original", size: "4.9 MB", anchor: "Actions_Speak_Louder_Than_Words", desc: "Disciple was the band I was in, in the late 80s and early 90s.  We played a bunch of shows in the Livermore/Pleasanton area in California.  Disciple was Chris Wilson (Hobbes) on guitar, Robbie Miller on drums, Ian Shaeffer on bass, and me on guitar.\n<p>\nThis track was recorded in a studio for a compilation tape for the Valley Musicians Network (VrMN).  Track #2.  It's the only Disciple recording that I am not on; I was in Houston for the summer.  Hobbes is on lead vocals and my guitar part is simple, so they didn't need me anyway!\n<p>\nYou can see <a href=\"http://www.youtube.com/view_play_list?p=AA5F11CA51F13755\">videos of Disciple</a> too!", subhead: "", url: "old/Disciple/VrMN/02%20Actions%20Speak%20Louder%20Than%20Words.mp3", coverart: "covers/disciple.png", links: "<a href=\"http://www.youtube.com/watch?v=2G4zkxFpBrc\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, Desperation: { date: "1990-01-01", time: "3:27", tags: "cover, disciple, live, old", size: "4.0 MB", anchor: "Desperation", desc: "Disciple was the band I was in, in the late 80s and early 90s.  We played a bunch of shows in the Livermore/Pleasanton area in California.  Disciple was Chris Wilson (Hobbes) on guitar, Robbie Miller on drums, Ian Shaeffer on bass, and me on guitar.\n<p>\nDesperation is a cover of a song by One Bad Pig, and has me on lead vocals.\n<p>\nYou can see <a href=\"http://www.youtube.com/view_play_list?p=AA5F11CA51F13755\">videos of Disciple</a> too!", subhead: "", url: "old/Disciple/Live/09%20Desperation.mp3", coverart: "covers/disciple.png", links: "<a href=\"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=4257873\"><img src=\"images/itms.png\" alt=\"iTunes Music Store\" title=\"iTunes Music Store\" width=\"12\" height=\"12\"></a>;\n<a href=\"http://www.onebadpig.com/\">One Bad Pig</a>" }, "Star-Spangled Banner": { date: "1990-01-01", time: "2:07", tags: "disciple, live, old", size: "2.5 MB", anchor: "Star_Spangled_Banner", desc: "Disciple was the band I was in, in the late 80s and early 90s.  We played a bunch of shows in the Livermore/Pleasanton area in California.  Disciple was Chris Wilson (Hobbes) on guitar, Robbie Miller on drums, Ian Shaeffer on bass, and me on guitar.\n<p>\nThis is just me and Hobbes on guitars.\n<p>\nYou can see <a href=\"http://www.youtube.com/view_play_list?p=AA5F11CA51F13755\">videos of Disciple</a> too!", subhead: "", url: "old/Disciple/Live/08%20Star-Spangled%20Banner.mp3", coverart: "covers/disciple.png", links: "&nbsp;" }, Superdelegate: { date: "2008-05-06", time: "2:22", tags: "nandorswhitecastle, original", size: "", anchor: "Superdelegate", subhead: "", desc: "An original love song to the Superdelegate.", coverart: "covers/nandors_white_castle.png", links: "<a href=\"lyrics/superdelegate.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"http://www.youtube.com/watch?v=F6MQT8xgHZA\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, "Under the Sea": { date: "2007-01-12", time: "4:28", tags: "cover, main", size: "5.1 MB", anchor: "Under_the_Sea", desc: "Similar to the cover I did of the Disney song \"Small World,\" this is a cover of the Disney song \"Under the Sea,\" from The Little Mermaid.  I don't know why, but I think these songs are a lot more depressing than the original music portrays, and my versions attempt to reflect that.\n<p>\nThis song borrows heavily in style from Thom Yorke of Radiohead.  It's just one vocal, acoustic guitar, and a Rhodes Suitcase MkI emulator.\n<p>\nThis was part of a <a href=\"http://pudge.net/tunes/under.html\">contest</a> I did with some friends of mine, where each of us did our own covers of the same song.", subhead: "", url: "Under%20the%20Sea.mp3", coverart: "covers/underthesea.png", links: "<a href=\"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playlistId=193376473&amp;s=143441&amp;i=193376503\"><img src=\"images/itms.png\" alt=\"iTunes Music Store\" title=\"iTunes Music Store\" width=\"12\" height=\"12\"></a>\n<a href=\"http://www.youtube.com/watch?v=sFmddXwXCp0\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>;\n<a href=\"http://pudge.net/tunes/under.html\">Contest</a>" }, "Just Getting Started": { date: "2006-12-24", time: "4:19", tags: "main, nandorswhitecastle, original", size: "5.0 MB", anchor: "Just_Getting_Started", desc: "One morning I woke up and this song was in my head.  At least the main vocal hook was.  The first verse came shortly after, in the shower.  I'm think the song's pretty good, and the recording ain't bad.\n<p>\nThe song is a bit of an homage to Tom Petty, but probably sounds most like his cover of The Byrds' \"I'll Feel A Whole Lot Better When You're Gone,\" right down to the Rickenbacker 12-string through a vintage Vox AC-30 (all courtesy Variax/PODxt, of course).  Even the guitar solo is meant to be an homage to Petty's Heartbreakers guitarist, Mike Campbell.\n<p>\nEnjoy.  Merry Christmas!", subhead: "", url: "Just%20Getting%20Started.mp3", coverart: "covers/nandors_white_castle.png", links: "<a href=\"lyrics/started.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"podxt/Heart-12.l6t.zip\"><img src=\"images/P.png\" alt=\"PODxt rhythm\" title=\"PODxt rhythm\" width=\"7\" height=\"8\"></a>\n<a href=\"podxt/Heart%20Solo.l6t.zip\"><img src=\"images/P.png\" alt=\"PODxt solo\" title=\"PODxt solo\" width=\"7\" height=\"8\"></a>\n<a href=\"podxt/Pudge%20Bass.l6t.zip\"><img src=\"images/P.png\" alt=\"PODxt bass\" title=\"PODxt bass\" width=\"7\" height=\"8\"></a>\n<a href=\"http://www.youtube.com/watch?v=IoaT3Xjj0Po\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, "Runnin'": { date: "1990-01-01", time: "4:19", tags: "disciple, live, old, original", size: "5.0 MB", anchor: "Runnin_", desc: "Disciple was the band I was in, in the late 80s and early 90s.  We played a bunch of shows in the Livermore/Pleasanton area in California.  Disciple was Chris Wilson (Hobbes) on guitar, Robbie Miller on drums, Ian Shaeffer on bass, and me on guitar.\n<p>\nRunnin' has me on lead vocals.\n<p>\nYou can see <a href=\"http://www.youtube.com/view_play_list?p=AA5F11CA51F13755\">videos of Disciple</a> too!", subhead: "", url: "old/Disciple/Live/06%20Runnin%27.mp3", coverart: "covers/disciple.png", links: "<a href=\"http://www.youtube.com/watch?v=2k1Hr1vuRm8\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, "Liberty Man": { date: "2009-04-09", time: "2:51", tags: "main, original", size: "3.3 MB", anchor: "Liberty_Man", desc: "I wrote this song for the Tax Day Tea Parties.  I performed it at the Olympia Tea Party in front of 5,000 people.  It pretty much speaks for itself.", subhead: "", url: "Liberty%20Man.mp3", coverart: "covers/PUDGE.png", links: "<a href=\"lyrics/libertyman.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"http://www.youtube.com/watch?v=hliJgtt3Nv4\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, "Lines and Squares": { date: "2007-07-16", time: "2:30", tags: "main, original", size: "2.9 MB", anchor: "Lines_and_Squares", desc: "A.A. Milne wrote the poem that comprises the verses of this song.  I added the chorus.  It's a song dedicated to Stephen Colbert and his ever-vigilant efforts toward warning the public about Bear Safety.\n<p>\nFriends and relatives helped out with the vocals and claps.  I played the cowbell and bongos.  The Variax bass provided the upright bass sounds, and for reasons of proper balance I played the acoustic guitar part on the Variax guitar.  There's almost no effects, not even EQ, used except for on the lead vocal and low background vocal at the end, and a reverb over the whole thing.\n<p>\nThe guitar part is from a song I wrote 15 years ago that I long forgot, and it somehow made its way into this piece.", subhead: "", url: "Lines%20and%20Squares.mp3", coverart: "covers/PUDGE.png", links: "<a href=\"lyrics/lines.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>" }, Slow: { date: "1998-01-01", time: "0:37", tags: "old, original", size: "0.7 MB", anchor: "Slow", subhead: "", desc: "I hate spam.", url: "old/Slow.mp3", links: "&nbsp;" }, "Life Begins at the Cross": { date: "1990-01-01", time: "4:12", tags: "cover, disciple, live, old", size: "4.9 MB", anchor: "Life_Begins_at_the_Cross", desc: "Disciple was the band I was in, in the late 80s and early 90s.  We played a bunch of shows in the Livermore/Pleasanton area in California.  Disciple was Chris Wilson (Hobbes) on guitar, Robbie Miller on drums, Ian Shaeffer on bass, and me on guitar.\n<p>\nLife Begins at the Cross is a cover of a song by Altar Boys, and has me on lead vocals.\n<p>\nYou can see <a href=\"http://www.youtube.com/view_play_list?p=AA5F11CA51F13755\">videos of Disciple</a> too!", subhead: "", url: "old/Disciple/Live/11%20Life%20Begins%20at%20the%20Cross.mp3", coverart: "covers/disciple.png", links: "<a href=\"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=80230589\"><img src=\"images/itms.png\" alt=\"iTunes Music Store\" title=\"iTunes Music Store\" width=\"12\" height=\"12\"></a>" }, "Small World": { date: "1998-01-01", time: "1:30", tags: "cover, old", size: "1.6 MB", anchor: "Small_World", subhead: "", desc: "A dirge about the futility of life.", url: "old/Small%20World.mp3", links: "&nbsp;" }, "Light of My Life": { date: "1990-01-01", time: "3:18", tags: "disciple, live, old, original", size: "3.8 MB", anchor: "Light_of_My_Life", desc: "Disciple was the band I was in, in the late 80s and early 90s.  We played a bunch of shows in the Livermore/Pleasanton area in California.  Disciple was Chris Wilson (Hobbes) on guitar, Robbie Miller on drums, Ian Shaeffer on bass, and me on guitar.\n<p>\nLight of My Life has Hobbes on lead vocals.\n<p>\nYou can see <a href=\"http://www.youtube.com/view_play_list?p=AA5F11CA51F13755\">videos of Disciple</a> too!", subhead: "", url: "old/Disciple/Live/02%20Light%20of%20My%20Life.mp3", coverart: "covers/disciple.png", links: "<a href=\"http://www.youtube.com/watch?v=ObYYzcQ2q9w\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, "Osama Bin Laden, You Ruined My Birthday": { date: "2006-08-11", time: "3:20", tags: "main, nandorswhitecastle, original", size: "3.8 MB", anchor: "Osama_Bin_Laden__You_Ruined_My_Birthday", desc: "This song is not autobiographical.  It just struck me as a funny and, perhaps, interesting idea for a song.  And I think it turned out quite well.\n<p>\nI couldn't quite figure the music out for this, for some time.  It was always a country song from the beginning, but I don't really listen to country music much, and I couldn't quite get the proper feel for it, until one day it hit me: Johnny Cash.  It was an absolutely perfect fit, with the vocals and the music and the attitude.\n<p>\nI used the Tweed B-Man amp on the PODxt for both the guitar and bass (there weren't many choices back when Johnny was first starting out!), and used my Epistrat with the Fender Fat 50's pickups, which together gave it a nice authentic sound: you can almost see Carl Perkins playing behind Johnny.  Or not.\n<p>\nThe drums were a sample loop from the GarageBand Rhythm Section Jam Pack.  I thought about buying the Pack until I noticed some terribly nasty hum on this loop, but I was able to EQ most of it away (the drums were too bright anyway).", subhead: "", url: "Birthday.mp3", coverart: "covers/nandors_white_castle.png", links: "<a href=\"lyrics/birthday.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"podxt/Johnny%20Cash.l6t.zip\"><img src=\"images/P.png\" alt=\"PODxt\" title=\"PODxt\" width=\"7\" height=\"8\"></a>\n<a href=\"podxt/Johnny%20Cash%20Bass.l6t.zip\"><img src=\"images/P.png\" alt=\"PODxt Bass\" title=\"PODxt Bass\" width=\"7\" height=\"8\"></a>\n<a href=\"http://www.youtube.com/watch?v=mLBcjBnIkqU\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, "Whopper Theme": { date: "2006-02-06", time: "1:10", tags: "cover, remix", size: "1.4 MB", anchor: "Whopper_Theme", desc: "Burger King has an utterly ridiculous ad campaign with the creepiest character on TV since Brian Dennehy played clown serial killer John Wayne Gacy in \"To Catch a Killer.\"  For the Super Bowl, they unveiled some elaborate song-and-dance number and put the music online.  I made it sound spookier to let other people know what I hear in my head when this music is matched up with that character.", subhead: " (Pyscho Remix)", url: "Whopper%20Psycho.mp3", coverart: "covers/whopper.png", links: "&nbsp;" }, "GarageBand Demo": { date: "2004-01-27", time: "0:38", tags: "original, study", size: "0.9 MB", anchor: "GarageBand_Demo", subhead: "", desc: "Just playing around with the built-in loops and amp and synth.  Before I had the Oxygen8 and Tascam US-122, so used Yamaha YPR-9 for MIDI and iMic for guitar.", url: "GarageBand%20Demo.mp3", links: "&nbsp;" }, "Alright For Now": { date: "2007-02-07", time: "1:33", tags: "cover, main", size: "1.8 MB", anchor: "Alright_For_Now", desc: "This is a cover of a Tom Petty song, that I sing as a lullabye.", subhead: "", url: "Alright%20For%20Now.mp3", coverart: "covers/PUDGE.png", links: "<a href=\"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playlistId=5277597&amp;s=143441&amp;i=5277591\"><img src=\"images/itms.png\" alt=\"iTunes Music Store\" title=\"iTunes Music Store\" width=\"12\" height=\"12\"></a>" }, "I Am Gonna (1961 demo version)": { date: "2007-09-12", time: "4:40", tags: "nandorswhitecastle, original", size: "", anchor: "I_Am_Gonna__1961_demo_version_", subhead: "", desc: "This song started out as a bit of an homage to Bob Dylan.  This is the original version I wrote; I've got another very different arrangement planned.\n<p>\nBut as to the words, I was watching the Scorsese documentary \"No Direction Home,\" and it struck me perhaps more than ever before how much Dylan just really hated people trying to put him in a box and tell him what he should and shouldn't do.  And this song was born.\n<p>\nThe video was a response to Ken Schram and his awarding of The Schrammie award to me for my song \"Osama Bin Laden, You Ruined My Birthday.\"", coverart: "covers/nandors_white_castle.png", links: "<a href=\"lyrics/gonna.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"http://www.youtube.com/watch?v=uCcw4N-XpzI\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, Sunshine: { date: "2004-02-09", time: "0:40", tags: "cover", size: "0.8 MB", anchor: "Sunshine", subhead: "", desc: "Baby on vocals, Daddy on guitars and harmonica.  MIDI for bass and cowbell.  Loop for drums.", url: "Sunshine.mp3", links: "&nbsp;" }, Look: { date: "1990-01-01", time: "4:20", tags: "disciple, live, old, original", size: "5.0 MB", anchor: "Look", desc: "Disciple was the band I was in, in the late 80s and early 90s.  We played a bunch of shows in the Livermore/Pleasanton area in California.  Disciple was Chris Wilson (Hobbes) on guitar, Robbie Miller on drums, Ian Shaeffer on bass, and me on guitar.\n<p>\nLook has me on lead vocals.\n<p>\nYou can see <a href=\"http://www.youtube.com/view_play_list?p=AA5F11CA51F13755\">videos of Disciple</a> too!", subhead: "", url: "old/Disciple/Live/01%20Look.mp3", coverart: "covers/disciple.png", links: "<a href=\"http://www.youtube.com/watch?v=EooNyL6EIMI\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, "George Bush is Hitler": { date: "2007-04-15", time: "1:48", tags: "main, nandorswhitecastle, original", size: "2.1 MB", anchor: "George_Bush_is_Hitler", desc: "I've heard a lot of people compare George Bush to Hitler and Big Brother and say that the U.S. is one of the least free countries in the world.  If that were true, you'd think people would be afraid to, you know, say so.  Or that if they did say so, something bad would happen to them.  This song is a gentle reminder that people who talk about Bushitler are totally bay.\n<p>\nThe song was recorded \"live\" with just me, my guitar, and my harp, and two mics.  I record most songs one part at a time, but I like to do the folk arrangements this way.", subhead: "", url: "George%20Bush%20is%20Hitler.mp3", coverart: "covers/nandors_white_castle.png", links: "<a href=\"lyrics/george.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"http://www.youtube.com/watch?v=6DjjJDMfkvY\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, Images: { date: "1990-01-01", time: "4:20", tags: "disciple, live, old, original", size: "2.8 MB", anchor: "Images", desc: "Disciple was the band I was in, in the late 80s and early 90s.  We played a bunch of shows in the Livermore/Pleasanton area in California.  Disciple was Chris Wilson (Hobbes) on guitar, Robbie Miller on drums, Ian Shaeffer on bass, and me on guitar.\n<p>\nImages has me on lead vocals.\n<p>\nYou can see <a href=\"http://www.youtube.com/view_play_list?p=AA5F11CA51F13755\">videos of Disciple</a> too!", subhead: "", url: "old/Disciple/Live/05%20Images.mp3", coverart: "covers/disciple.png", links: "<a href=\"http://www.youtube.com/watch?v=bRWwAn25R7U\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, Christine: { date: "2005-03-14", time: "2:57", tags: "cover, randy", size: "3.5 MB", anchor: "Christine", subhead: "", desc: "A love song, this time about a sort of forbidden love.  I was inspired by all the self-important \"bloggers\" out there.  You know who you are.  Well, probably not, but I know who you are.\n<p>\nAnother in a series of covers of songs by people named Randy, this is from Randy Stonehill's 1981 album <em>Between the Glory and the Flame</em>.  Of course, I updated the lyrics slightly.\n<p>\nRecorded with GarageBand.", url: "Christine.mp3", links: "<a href=\"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=14520146\"><img src=\"images/itms.png\" alt=\"iTunes Music Store\" title=\"iTunes Music Store\" width=\"12\" height=\"12\"></a>\n<a href=\"http://www.delusionresistance.org/christian/stonehill/gloryandflame/glory06.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>;\n<a href=\"http://www.randystonehill.com/\">Stonehill</a>" }, "GOP Debate Song": { date: "2007-11-12", time: "1:27", tags: "nandorswhitecastle, original", size: "", anchor: "GOP_Debate_Song", subhead: "", desc: "I wrote this song about 10 days before the CNN/YouTube Republican Presidential debate in November 2007, on request from YouTube's political director.  They liked it and flew me out to the debate in Florida and used the video to open the debate.", coverart: "covers/nandors_white_castle.png", links: "<a href=\"lyrics/debate.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"http://www.youtube.com/watch?v=H7Dz0jc1mUs\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>\n<a href=\"http://www.youtube.com/watch?v=D4f28pO17Ug\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, "Wasting Time": { date: "2006-10-26", time: "3:23", tags: "main, original", size: "3.9 MB", anchor: "Wasting_Time", desc: "I came up with this riff a few years ago, and the lyrics came later.  It's about doing a lot of things in your life that are, simply, a waste of time.  Simple song.  Kinda fun to play if I'm ... in the mood.  And I love the riff.\n<p>\nThis is the first song I recorded with the Variax.  It's hard to say too much about how cool this guitar is to record with.  Tons of great tone with no hum.  I've added download links for the Variax and PODxt files.  The Variax file is simply the default Lester-3 uptuned a half step.", subhead: "", url: "Wasting%20Time.mp3", coverart: "covers/PUDGE.png", links: "<a href=\"lyrics/wasting.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"variax/Wasting%20Time.vwm.zip\"><img src=\"images/V.png\" alt=\"Variax\" title=\"Variax\" width=\"7\" height=\"8\"></a>\n<a href=\"podxt/Wasting%20Time.l6t.zip\"><img src=\"images/P.png\" alt=\"PODxt\" title=\"PODxt\" width=\"7\" height=\"8\"></a>" }, "Flower Man": { date: "2005-02-09", time: "1:29", tags: "main, original", size: "1.9 MB", anchor: "Flower_Man", subhead: "", desc: "Another older song I wrote, just in time for Valentine's Day.  It's a song about the man we've come to take for granted, who helps us in our time of need.\n<p>\nI recorded this one live, both vocal and guitar at the same time, as I finally got my second mic.  And done with GarageBand 2, testing out the multitrack recording and other new features.", url: "Flower%20Man.mp3", links: "<a href=\"lyrics/flowerman.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"tracks/old/Flower%20Man%20%28Demo%29.mp3\"><img src=\"images/D.png\" alt=\"old demo version\" title=\"old demo version\" width=\"7\" height=\"8\"></a>" }, KLB: { date: "1999-01-01", time: "3:46", tags: "old, original", size: "3.6 MB", anchor: "KLB", subhead: "", desc: "A lament about people who refuse to do some research before asking questions.", url: "old/KLB.mp3", links: "<a href=\"http://www.youtube.com/watch?v=cb-ZAtGI_dQ\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, Crossroads: { date: "2004-04-10", time: "1:08", tags: "study", size: "1.4 MB", anchor: "Crossroads", subhead: "", desc: "Three loops of the blues standard Crossroads, to compare old Epistrat sound (in the left speaker) to new (in the right).  I like the new one better.  Drum loop, and MIDI for electric bass.", url: "Crossroads.mp3", links: "&nbsp;" }, "Christine, Christine, Christine": { date: "2008-05-29", time: "4:00", tags: "main, nandorswhitecastle, original", size: "4.6 MB", anchor: "Christine__Christine__Christine", desc: "The song is not autobiographical.  It is sung from the perspective of someone who -- unlike myself -- is perfectly pleased to have a governor who will not only care for his every need, but also make all of his everyday decisions for him.  He doesn't have to think for himself, because Christine is his Everything.\n<p>\nThe song is exactly four minutes long, one minute for each year she will have been in office when she leaves.", subhead: "", url: "Christine%2C%20Christine%2C%20Christine.mp3", coverart: "covers/nandors_white_castle.png", links: "<a href=\"lyrics/christine.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"http://www.youtube.com/watch?v=F5D2ztJl43Y\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>;\n<a href=\"http://www.dinorossi.com/\">Dino Rossi</a>" }, "Johnny Got Suspended": { date: "2004-07-02", time: "1:48", tags: "cover", size: "2.1 MB", anchor: "Johnny_Got_Suspended", subhead: "", desc: "An update of \"Johnny Got Suspended\" by <a href=\"http://www.thezambonis.com/\">The Zambonis</a>, substituting the Yankees and Red Sox for the Islanders and Rangers, which I wrote because I was very angry after the Yankees won a <a href=\"http://sports.espn.go.com/mlb/recap?gameId=240701110\">thirteen-inning game</a> where the Sox scored in the top half of the 13th.  I know there's quite a bit of clipping, and that frankly some of the playing sucks, but a. my US-122 is in the shop so I recorded with the built-in iMac mic, and b. it was 2 a.m., and I didn't feel like redoing it.  I kinda like how raw it sounds.", url: "Johnny%20Got%20Suspended.mp3", links: "<a href=\"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playlistId=30473504&amp;s=143441&amp;i=30473429\"><img src=\"images/itms.png\" alt=\"iTunes Music Store\" title=\"iTunes Music Store\" width=\"12\" height=\"12\"></a>\n<a href=\"http://homepage.mac.com/pudge/.Movies/sox-hits.mov\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>;\n<a href=\"http://www.thezambonis.com/gear.html\">Zambonis</a>;\n<a href=\"http://www.yankeessuck.com/\">Yanks</a>;\n<a href=\"http://sports.espn.go.com/mlb/recap?gameId=240701110\">Game</a>" }, "You Forgot Ron Paul": { date: "2007-11-21", time: "2:35", tags: "nandorswhitecastle, original", size: "", anchor: "You_Forgot_Ron_Paul", subhead: "", desc: "This is a song about how YOU FORGOT RON PAUL! Even if you didn't.\n<p>\nYou Ron Paul fans asked for more lines about Ron Paul, so here it is. Be careful what you ask for next time.", coverart: "covers/nandors_white_castle.png", links: "<a href=\"lyrics/ronpaul.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"http://www.youtube.com/watch?v=wfPbEMGtAQM\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>\n<a href=\"http://www.youtube.com/watch?v=fqYaxGiRk1I\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, "Living the Good Life": { date: "1990-01-01", time: "6:51", tags: "disciple, live, old, original", size: "7.9 MB", anchor: "Living_the_Good_Life", desc: "Disciple was the band I was in, in the late 80s and early 90s.  We played a bunch of shows in the Livermore/Pleasanton area in California.  Disciple was Chris Wilson (Hobbes) on guitar, Robbie Miller on drums, Ian Shaeffer on bass, and me on guitar.\n<p>\nLiving the Good Life has me on lead vocals.\n<p>\nYou can see <a href=\"http://www.youtube.com/view_play_list?p=AA5F11CA51F13755\">videos of Disciple</a> too!", subhead: "", url: "old/Disciple/Live/10%20Living%20the%20Good%20Life.mp3", coverart: "covers/disciple.png", links: "<a href=\"http://www.youtube.com/watch?v=dO6M73aJP-Y\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, "Caves of Steel": { date: "2004-10-29", time: "2:26", tags: "main, original", size: "2.9 MB", anchor: "Caves_of_Steel", subhead: "", desc: "A song I wrote in high school and recorded in college, and have now re-recorded.  It's very different for me, as it is entirely electronic, except for the vocals, which have heavy electronic effects too.  I booted up the song on an old LCII in EA's <a href=\"Pictures/drecorder.png\">Deluxe Music Recorder</a>, exported the MIDI, plopped it on a floppy disc, and then imported it into Logic.  Then I re-recorded the vocals, tightened up the MIDI, and kept tweaking the sounds and effects until I was relatively happy with it.\n<p>\nThe track uses lots of Logic plugins, including the EVD6 (clavinet, for harp), EVOC20 (vocoder, for robot voices), ES2 (synth for guitar and lead) and EXS24 (sampler for bass, strings, drums), and Space Designer for various reverbs (I especially like the metal room sound on the chorus).", url: "Caves%20of%20Steel%2004.mp3", links: "<a href=\"lyrics/caves.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"tracks/old/Caves%20of%20Steel.mp3\"><img src=\"images/D.png\" alt=\"1992 version\" title=\"1992 version\" width=\"7\" height=\"8\"></a>;\n<a href=\"Pictures/drecorder.png\">DMR</a>" }, "Leap of Faith": { date: "2005-06-10", time: "3:50", tags: "main, original", size: "4.5 MB", anchor: "Leap_of_Faith", subhead: "", desc: "I wrote this song many years ago, and performed it exactly once: at my wedding, 10 years ago today.  I've recorded it to mark the occasion.\n<p>\nLike other songs I've done, this one is big on the theme of how we can't know it all, and notes how that's a really good thing.\n<p>\nIt was recorded with Logic, using only acoustic instruments: three guitar parts, and a cello, which I've not played in over 15 years.", url: "Leap%20of%20Faith.mp3", links: "<a href=\"lyrics/leapoffaith.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"http://www.youtube.com/watch?v=ynNveimvcwE\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, "The Hand That Feeds": { date: "2005-04-16", time: "3:38", tags: "cover, remix", size: "4.4 MB", anchor: "The_Hand_That_Feeds", desc: "This is a remix of the Nine Inch Nails song.  I added cowbell to it.  And added a new <a href=\"covers/with_cowbell.png\">album cover</a> to go with it.", subhead: " (NMC Remix)", url: "hand-nmc.mp3", coverart: "covers/with_cowbell.png", links: "<a href=\"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playlistId=59580206&amp;s=143441&amp;i=59580220\"><img src=\"images/itms.png\" alt=\"iTunes Music Store\" title=\"iTunes Music Store\" width=\"12\" height=\"12\"></a>;\n<a href=\"http://www.nin.com/current/\">NIN News</a>" }, "Quite Enough": { date: "1990-01-01", time: "3:11", tags: "cover, disciple, live, old", size: "3.7 MB", anchor: "Quite_Enough", desc: "Disciple was the band I was in, in the late 80s and early 90s.  We played a bunch of shows in the Livermore/Pleasanton area in California.  Disciple was Chris Wilson (Hobbes) on guitar, Robbie Miller on drums, Ian Shaeffer on bass, and me on guitar.\n<p>\nQuite Enough is a cover of a song by Rez, and has me on lead vocals.\n<p>\nYou can see <a href=\"http://www.youtube.com/view_play_list?p=AA5F11CA51F13755\">videos of Disciple</a> too!", subhead: "", url: "old/Disciple/Live/04%20Quite%20Enough.mp3", coverart: "covers/disciple.png", links: "<a href=\"http://www.resurrectionband.com/\">Rez</a>" }, "Best Week Ever": { date: "2008-06-16", time: "1:07", tags: "nandorswhitecastle, original", size: "1.3 MB", anchor: "Best_Week_Ever", desc: "This is a song about former Police Chief Fred Walser, who had the Best Week Ever!\n<p>\nHe filed to run for State Senate, and then a few days later he pled guilty, and was sentenced to a year in jail, for lying to investigators.", subhead: "", url: "Best%20Week%20Ever.mp3", coverart: "covers/nandors_white_castle.png", links: "<a href=\"lyrics/bestweekevar.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"http://www.youtube.com/watch?v=9KL_VoKg9Gc\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>;\n<a href=\"http://www.fred-walser.com/\">Fred Walser</a>" }, "World War Three": { date: "2006-07-18", time: "4:09", tags: "main, original", size: "4.9 MB", anchor: "World_War_Three", subhead: "", desc: "It seems like no matter what we try, we can't start World War Three.  What's up with that?\n<p>\nThis song was written and recorded during the first several days of the outbreak of violence between Israel and Hezbollah.  Recorded using Logic.  For some reason I thought an 80s-ish vibe seemed appropriate, hence the delay, driving bass, and so on.", url: "World%20War%20Three.mp3", links: "<a href=\"lyrics/worldwarthree.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"podxt/WWIII.l6t.zip\"><img src=\"images/P.png\" alt=\"PODxt\" title=\"PODxt\" width=\"7\" height=\"8\"></a>" }, "Best of You": { date: "2010-01-11", time: "2:44", tags: "main, new, original", size: "3.1 MB", anchor: "Best_of_You", desc: "A self-explanatory song, recorded a year after it was written.", subhead: "", url: "Best%20of%20You.mp3", coverart: "covers/PUDGE.png", links: "<a href=\"lyrics/bestofyou.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"http://www.youtube.com/watch?v=lGWJhjv9Ve4\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, "Through the Glass Darkly": { date: "2005-05-11", time: "6:02", tags: "cover, main, randy", size: "7.1 MB", anchor: "Through_the_Glass_Darkly", subhead: "", desc: "This song is another cover by Randy Stonehill, from his 1980 album <em>The Sky Is Falling</em>, and has always been one of my favorite songs.  It's also a bit of a departure for me: longer, more parts, more effects, more intricate, and so on; I spent a lot more time on this than any of my previous songs -- just over a year -- and far more than any of the other covers, which were each done in a day.\n<p>\nThis title of the song is a reference to <a href=\"http://bible.gospelcom.net/passage/?search=1%20Cor%20%2013:12;&amp;version=9;\">1 Corinthians 13:12</a>, \"For now we see through a glass, darkly; but then face to face: now I know in part; but then shall I know even as also I am known.\"  It's a bit of a statement about how we can't know it all, not unlike the theme of You're Clueless.\n<p>\nIt was recorded with Logic, using the Washburn and Martin, drum loops, and the B3 organ synth in Logic.  I love that synth.", url: "Through%20the%20Glass%20Darkly.mp3", links: "<a href=\"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=14520146\"><img src=\"images/itms.png\" alt=\"iTunes Music Store\" title=\"iTunes Music Store\" width=\"12\" height=\"12\"></a>\n<a href=\"http://www.delusionresistance.org/christian/stonehill/theskyisfalling/sky02.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>;\n<a href=\"http://www.randystonehill.com/\">Stonehill</a>;\n<a href=\"http://www.apple.com/downloads/macosx/audio/blairloopprojectloopsforgarageband.html\">Blair Loops</a>" }, "Political Science": { date: "2004-04-16", time: "1:37", tags: "cover, randy", size: "2.0 MB", anchor: "Political_Science", subhead: "", desc: "This is just vocals and piano, in an unauthorized performance of Randy Newman's classic. I wanted to mess around with recording the Yamaha digital piano, and vocals, so this was the result.", url: "Political%20Science.mp3", links: "<a href=\"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playlistId=51963348&amp;s=143441&amp;i=51963379\"><img src=\"images/itms.png\" alt=\"iTunes Music Store\" title=\"iTunes Music Store\" width=\"12\" height=\"12\"></a>;\n<a href=\"http://www.randynewman.com/tocdiscography/disc_sail_away/lyricssailaway\">Newman</a>" }, "Unconditional Love": { date: "1990-01-01", time: "3:23", tags: "cover, disciple, live, old", size: "3.9 MB", anchor: "Unconditional_Love", desc: "Disciple was the band I was in, in the late 80s and early 90s.  We played a bunch of shows in the Livermore/Pleasanton area in California.  Disciple was Chris Wilson (Hobbes) on guitar, Robbie Miller on drums, Ian Shaeffer on bass, and me on guitar.\n<p>\nUnconditional Love is a cover of a song by Donna Summer (as covered by Altar Boys), and has me on lead vocals.\n<p>\nYou can see <a href=\"http://www.youtube.com/view_play_list?p=AA5F11CA51F13755\">videos of Disciple</a> too!", subhead: "", url: "old/Disciple/Live/12%20Unconditional%20Love.mp3", coverart: "covers/disciple.png", links: "<a href=\"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=80230589\"><img src=\"images/itms.png\" alt=\"iTunes Music Store\" title=\"iTunes Music Store\" width=\"12\" height=\"12\"></a>\n<a href=\"http://www.youtube.com/watch?v=g4X23-OTzto\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" }, Tetelestai: { date: "2004-11-11", time: "3:50", tags: "cover, main, original", size: "4.4 MB", anchor: "Tetelestai", subhead: "", desc: "The aforementioned Porthos wrote some lyrics to a song he was working on and posted them, wondering what sort of music they might evoke in others.  So me and Drewsef and (the aforementioned) Hobbes, that very night, all recorded our own versions.  As they were all done in an evening or so, they are not well-polished, but the results are good. Go to <a href=\"http://homepage.mac.com/noisymime/music/tetelestai.html\">Porthos' Tetelestai page</a> to find out more and hear the other versions.", url: "Tetelestai.mp3", links: "<a href=\"http://homepage.mac.com/noisymime/music/tetelestai.html\">Porthos' page</a>" }, "(Oops) I Did It Again": { date: "2005-05-02", time: "2:53", tags: "cover, main", size: "3.5 MB", anchor: "_Oops__I_Did_It_Again", desc: "I found some old versions of the Britney Spears song \"Oops, I Did It Again,\" one by <a href=\"http://www.supermasterpiece.com/music/oops.html\">Louis Armstrong</a> and <a href=\"http://worldofwonder.net/images/oops.mp3\">some Big Band thing</a>.  In that spirit, I also \"found\" an old version of the song by Bob Dylan, although he apparently thought the word \"oops\" was beneath him.\n<p>\nRecorded with GarageBand.", subhead: "", url: "I%20Did%20It%20Again.mp3", coverart: "covers/didit.png", links: "<a href=\"http://www.supermasterpiece.com/music/oops.html\">Louis</a>;\n<a href=\"http://worldofwonder.net/images/oops.mp3\">Big Band</a>" }, "New Year": { date: "2004-12-07", time: "2:18", tags: "main, original", size: "2.8 MB", anchor: "New_Year", subhead: "", desc: "I've never really felt that interested in celebrating the new year.  It's ... tomorrow! Hooray!  So, trying to find some meaning in the occasion, and noticing there are not that many songs about this widely celebrated holiday, I wrote a song of my own.\n<p>\nI wanted to make sure I got it done in time for this year's New Year celebration, and I believe I accomplished that goal.\n<p>\nYep, I did.", url: "New%20Year.mp3", links: "<a href=\"lyrics/newyear.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>\n<a href=\"tracks/old/New%20Year%20%28Demo%29.mp3\"><img src=\"images/D.png\" alt=\"old demo version\" title=\"old demo version\" width=\"7\" height=\"8\"></a>" }, "You're Clueless": { date: "2006-05-25", time: "4:27", tags: "main, original", size: "5.2 MB", anchor: "You_re_Clueless", subhead: "", desc: "This was first recorded in 2004, but in 2006 I remixed it in Logic, jazzed up the organ, reamped the electric guitars and bass with the PODxt, and cleaned up the beginning and end.\n<p>\nThis is a song I wrote in college, while driving along I-5 in SocCal along the Grapevine. It's about how you know a lot less about anything than you care to admit.  I do too, so don't take it as an insult.  (In fact, I am so clueless, the first version of this that I put up excluded the final verse.  The newer version adds just a little bit of vocals, and is modified primarily with copy/paste.  It's also remixed quite a bit.)\n<p>\nIt was recorded in GarageBand.  Drums and organ are MIDI, and it uses the Epistrat, bass, and Martin.  It was first performed 10 years ago with Whirlygig, a band I was in with Porthos and Hobbes.", url: "You%27re%20Clueless.mp3", links: "<a href=\"lyrics/clueless.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>" }, "Who Will Save the Children?": { date: "1990-01-01", time: "5:04", tags: "cover, disciple, live, old, randy", size: "5.9 MB", anchor: "Who_Will_Save_the_Children_", desc: "Disciple was the band I was in, in the late 80s and early 90s.  We played a bunch of shows in the Livermore/Pleasanton area in California.  Disciple was Chris Wilson (Hobbes) on guitar, Robbie Miller on drums, Ian Shaeffer on bass, and me on guitar.\n<p>\nWho Will Save the Children? is a cover of a song by Randy Stonehill (with Phil Keaggy), and has me and Robbie on lead vocals.\n<p>\nYou can see <a href=\"http://www.youtube.com/view_play_list?p=AA5F11CA51F13755\">videos of Disciple</a> too!", subhead: "", url: "old/Disciple/Live/07%20Who%20Will%20Save%20The%20Children_.mp3", coverart: "covers/disciple.png", links: "<a href=\"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=14520146\"><img src=\"images/itms.png\" alt=\"iTunes Music Store\" title=\"iTunes Music Store\" width=\"12\" height=\"12\"></a>\n<a href=\"http://www.delusionresistance.org/christian/stonehill/celebrate/celebrate04.html\" class=\"lyrics\"><img src=\"images/L.png\" alt=\"Lyrics\" title=\"Lyrics\" width=\"7\" height=\"8\"></a>;\n<a href=\"http://www.randystonehill.com/\">Stonehill</a>" }, "Goin' Home": { date: "1990-01-01", time: "4:10", tags: "disciple, live, old, original", size: "4.8 MB", anchor: "Goin__Home", desc: "Disciple was the band I was in, in the late 80s and early 90s.  We played a bunch of shows in the Livermore/Pleasanton area in California.  Disciple was Chris Wilson (Hobbes) on guitar, Robbie Miller on drums, Ian Shaeffer on bass, and me on guitar.\n<p>\nGoin' Home has me on lead vocals and harmonica.\n<p>\nYou can see <a href=\"http://www.youtube.com/view_play_list?p=AA5F11CA51F13755\">videos of Disciple</a> too!", subhead: "", url: "old/Disciple/Live/03%20Goin%27%20Home.mp3", coverart: "covers/disciple.png", links: "<a href=\"http://www.youtube.com/watch?v=djv6oaZHZHc\" class=\"movie\"><img src=\"images/M.png\" alt=\"Video\" title=\"Video\" width=\"7\" height=\"8\"></a>" } };
var genrenames = { nandorswhitecastle: [ "Christine, Christine, Christine", "GOP Debate Song", "Osama Bin Laden, You Ruined My Birthday", "You Forgot Ron Paul", "George Bush is Hitler", "Best Week Ever", "Superdelegate", "Just Getting Started", "I Am Gonna (1961 demo version)" ], original: [ "Best of You", "Liberty Man", "Best Week Ever", "Christine, Christine, Christine", "Superdelegate", "You Forgot Ron Paul", "GOP Debate Song", "I Am Gonna (1961 demo version)", "Lines and Squares", "George Bush is Hitler", "Just Getting Started", "Wasting Time", "Osama Bin Laden, You Ruined My Birthday", "World War Three", "You're Clueless", "Leap of Faith", "Flower Man", "New Year", "Tetelestai", "Caves of Steel", "GarageBand Demo", "KLB", "Slow", "Actions Speak Louder Than Words", "Goin' Home", "Images", "Light of My Life", "Living the Good Life", "Look", "Runnin'" ], remix: [ "Whopper Theme", "The Hand That Feeds" ], old: [ "KLB", "Slow", "Small World", "Actions Speak Louder Than Words", "Desperation", "Goin' Home", "Images", "Life Begins at the Cross", "Light of My Life", "Living the Good Life", "Look", "Quite Enough", "Runnin'", "Star-Spangled Banner", "Unconditional Love", "Who Will Save the Children?" ], main: [ "Best of You", "Liberty Man", "Christine, Christine, Christine", "Lines and Squares", "George Bush is Hitler", "Alright For Now", "Under the Sea", "Just Getting Started", "Wasting Time", "Osama Bin Laden, You Ruined My Birthday", "World War Three", "You're Clueless", "Leap of Faith", "Through the Glass Darkly", "(Oops) I Did It Again", "Flower Man", "New Year", "Tetelestai", "Caves of Steel" ], cover: [ "Alright For Now", "Under the Sea", "Whopper Theme", "Through the Glass Darkly", "(Oops) I Did It Again", "The Hand That Feeds", "Christine", "Tetelestai", "Johnny Got Suspended", "Political Science", "Sunshine", "Small World", "Desperation", "Life Begins at the Cross", "Quite Enough", "Unconditional Love", "Who Will Save the Children?" ], live: [ "Look", "Light of My Life", "Goin' Home", "Quite Enough", "Images", "Runnin'", "Who Will Save the Children?", "Star-Spangled Banner", "Desperation", "Living the Good Life", "Life Begins at the Cross", "Unconditional Love" ], disciple: [ "Actions Speak Louder Than Words", "Desperation", "Goin' Home", "Images", "Life Begins at the Cross", "Light of My Life", "Living the Good Life", "Look", "Quite Enough", "Runnin'", "Star-Spangled Banner", "Unconditional Love", "Who Will Save the Children?" ], "new": [ "Best of You" ], block: [ "Alright For Now", "Whopper Theme", "Through the Glass Darkly", "The Hand That Feeds", "Christine", "Johnny Got Suspended", "Political Science", "Desperation", "Life Begins at the Cross", "Quite Enough", "Unconditional Love", "Who Will Save the Children?" ], randy: [ "Through the Glass Darkly", "Christine", "Political Science", "Who Will Save the Children?" ], study: [ "Crossroads", "GarageBand Demo" ] };
var genrelist = [ "original", "new", "main", "nandorswhitecastle", "cover", "remix", "randy", "study", "old", "disciple", "live" ];


var ratinglist = {};
var ratinglist_c = {};

// customize next several lines as needed
genrelist = [ "nandorswhitecastle", "live",
	"new", "main", "original", "study",
	"disciple", "cover", "remix", "old"
];
var albumnames = {
	nandorswhitecastle: "Nandor&rsquo;s White Castle",
	live: "Disciple: Live"
};


var movies = [
	['sFmddXwXCp0', 'Under the Sea', 'from "The Little Mermaid"'],
	['6DjjJDMfkvY', 'George Bush is Hitler', 'by Pudge'],
	['mU7YmQtwiKY', 'Longest Concert Evar Intro', ''],
	['qepo8E7cjIc', 'Best of You', 'by Foo Fighters'],
	['I6CAklHMxSg', 'Further Up & Further In', 'by Jacob\'s Trouble'],
	['46uhvqqoybc', 'Breathe Deep', 'by The Lost Dogs', 1],
	['ynNveimvcwE', 'Leap of Faith', 'by Pudge'],
	['N04Sk3tU5tA', '1979', 'by Smashing Pumpkins', 1],
	['dTKRsYKGEyo', 'Beyond the Veil', 'by Randy Stonehill'],
	['Mxk5RMQF6Js', 'Perl, in a Nutshell', 'parody of "Life, in a Nutshell" by Barenaked Ladies, new lyrics by Pudge'],
	['cb-ZAtGI_dQ', 'KLB', 'by Pudge', 1],
	['c0_r5TrnhLg', 'Star-Spangled Bannar', 'by Francis Scott Key'],
	['I2QVJ0eMACw', 'Free Bird', 'by Lynyrd Skynyrd', 1],
	['g9hx5TG201c', 'You Know What To Do', 'by Stryper'],
	['1cwsTtnu3Us', 'Fireworks', 'from Schoolhouse Rock'],
	['qC7xuGKt-mk', 'KLB', '(live at OSCON)'],
	['UUOArynwzz8', 'Perl, in a Nutshell', '(live at OSCON)'],
	['BVl5DKe5_5U', 'Freedom Isn\'t Free', 'from "Team America"', 1],
	['IA-aZAG0Css', 'The Impression That I Get', 'by The Mighty Mighty Bosstones'],
	['9pyy4nkRBj0', 'Sam Hall', 'by Johnny Cash'],
	['mLBcjBnIkqU', 'Osama Bin Laden, You Ruined My Birthday', 'by Pudge'],
	['uCcw4N-XpzI', 'I Am Gonna / Schrammie', 'by Pudge'],
	['VcCG7SCGQBU', 'Lines and Squares / Colbert', 'by Pudge'],
	['u0_Hia1RYug', 'I Do', 'by Lisa Loeb'],
	['JenTYMD3ie4', 'Tim McCarver Blues', 'by Pudge'],
	['DnMPCeqHIJw', 'Still Alive', 'by Jonathan Coulton'],
	['H7Dz0jc1mUs', 'GOP Debate Song', 'by Pudge'],
	['wfPbEMGtAQM', 'You Forgot Ron Paul', 'by Pudge'],
	['XAIPJMV_4Xg', 'Strange Days', 'by The Swirling Eddies'],
	['_PeUhe7tyHk', 'Long Black Veil', 'by Johnny Cash'],
	['IoaT3Xjj0Po', 'Just Getting Started', 'by Pudge'],

	['kk7LiUtn2Nw', 'Good King Wenceslas', ''],
	['B44OQqik4t4', 'Christmas at Denny\'s', 'by Randy Stonehill'],
	['H7yMVcVPbbE', 'Blue Christmas', '', 1],
	['Hn6nBXoamo0', 'O Holy Night', ''],
	['3-rkqBK9EyQ', 'Mary\'s Song', 'by Petra'],
	['GBi8tsfZMjs', 'The First Toymaker to the King', 'from "Santa Claus is Comin\' to Town"'],
	['qAvRsJbfPLU', 'No More Toymakers to the King', 'from "Santa Claus is Comin\' to Town"'],
	['URikFFRK1O0', 'Christmas at Ground Zero', 'by Weird Al Yankovic'],
	['KzmwQ_KUE1E', 'Little Drummer Boy', ''],
	['4mNSu-9uoWU', 'Christmas Must Be Tonight', 'by The Band'],
	['VhTKs06mL_o', 'You Gotta Get Up', 'by Rich Mullins'],
	['iqv5sE9_CWw', 'New Year', 'by Pudge'],

	['ejFYWU5ZTDg', 'A Few Words in Defense of Our Liberals', 'parody of "A Few Words in Defense of Our Country" by Randy Newman, new lyrics by Pudge'],
	['sAaVMRRcP1s', 'Way Down in the Hole', 'by Tom Waits'],
	['SD6JJMhOCrc', 'Beautiful, Scandalous Night', 'by The Lost Dogs'],

	['LgagWBeK64Q', 'Under the Sea', 'from "The Little Mermaid"'],
	['5jlKACvotgg', 'I Did It Again', 'by Britney Spears'],
	['PKn1RDYhhDQ', 'I Want You To Want Me', 'by Cheap Trick', 1],
	['F6MQT8xgHZA', 'Superdelegate', 'by Pudge'],
	['F5D2ztJl43Y', 'Christine, Christine, Christine', 'by Pudge'],
	['9KL_VoKg9Gc', 'Best Week Ever', 'by Pudge'],

	['6D4KTcqhaHw', 'GOP Debate Song (Picnic)', 'by Pudge'],
	['NqRD1Bi6T10', 'The Times They Are A-Changing', 'by Bob Dylan'],
	['9w0FBgTg2Lk', 'Hockey Mom', 'by The Zambonis'],
	['8pprz1T4H-s', 'I Wanna Grow Up to Be a Politician', 'by The Byrds'],

	['7cZCiDXipDU', 'Baby Doe', 'by Steve Taylor'],
	['B6ZkLAW0pZE', 'I Hate You', 'by Pudge'],
	['V-wjDPrfIDQ', 'Merry Minuet', 'by The Kingston Trio'],
	['YfzcqMFB9k8', 'Eat American', 'by Pudge'],

	['dxY59YBKh90', 'Don\'t Vote', 'by Bob Roberts'],
	['XLzVPx5fQAQ', 'Complain', 'by Bob Roberts'],
	['a2b-Kn-LpUk', 'Big Bottom', 'by Spinal Tap'],
	['4VcwzSQO0JU', 'Christmas Time is Here', 'by Vince Guaraldi'],
	['2hjhYJbLM8E', 'Away in a Manger', ''],
	['ruXNc8UUf_Q', 'Silent Night', ''],
	['_Baq0_6LWrc', 'Charlene (I\'m Right Behind You)', 'by Stephen and the Colberts'],
	['lGWJhjv9Ve4', 'Try to Get the Best of You', 'by Pudge'],
	['18lIfEZAoG0', '(Your Love Keeps Lifting Me) Higher and Higher', 'by Jackie Wilson'],
	['hliJgtt3Nv4', 'Liberty Man', 'by Pudge'],
	['bgIWaWQVEss', 'Liberty Man (on April 15)', 'by Pudge'],
	['ySxtf-BPwu8', 'Hook', 'by Blues Traveler'],
	['sDfHQ3mMGro', 'Lookin\' For America', 'by Roy Hurd'],

];

movies = movies.reverse();


var newimg = ' <img src="images/new.png" width="28" height="13" alt="NEW" style="vertical-align:bottom">';

var default_playlist = window.location.toString().match('[^?]+$');
if (!default_playlist || (!genrenames[default_playlist] && default_playlist != 'movies'))
	default_playlist = 'main';

var evenColor = '#FFFFFF';
var oddColor  = '#EDF3FE';


var tmplist;
var setlist;
var rating_average = 0;


// this function is needed to work around 
// a bug in IE related to element attributes
function hasClass(obj) {
	var result = false;
	if (obj.getAttributeNode('class') != null) {
		result = obj.getAttributeNode('class').value;
	}
	return result;
}   

function stripe(id) {
	var even = false;

	var table = document.getElementById(id);
	if (! table) { return; }

	var trs = table.getElementsByTagName('tr');

	for (var i = 0; i < trs.length; i++) {
		var thisclass = hasClass(trs[i]);
		if (thisclass != 'playlist_head') {
			even =  ! even;
			trs[i].style.backgroundColor =
				even ? evenColor : oddColor;
		}
	}
}

// stolen from del.icio.us, Joshua won't mind!
if (typeof(Delicious) == 'undefined')
	Delicious = {}
Delicious.Mp3 = {
	playimg: null,
	player: null,
	destroy: function() {
		Delicious.Mp3.playimg.src = 'images/speakeroff.png';
		Delicious.Mp3.playimg.alt   = 'Play';
		Delicious.Mp3.playimg.title = 'Play';
		Delicious.Mp3.playimg = null;
		Delicious.Mp3.player.removeChild(Delicious.Mp3.player.firstChild);
		Delicious.Mp3.player.parentNode.removeChild(Delicious.Mp3.player);
		Delicious.Mp3.player = null;
	}
};

function play(num) {
	var playid = document.getElementById('play' + num);

	if (Delicious.Mp3.playimg == playid) {
		Delicious.Mp3.destroy();
	} else {
		if (Delicious.Mp3.playimg) {
			Delicious.Mp3.destroy();
		}
		var thisurl = 'tracks/' + songlist[ setlist[num] ].url;
		Delicious.Mp3.player = document.createElement('span');
		Delicious.Mp3.player.style.height = 0;
		Delicious.Mp3.player.style.width  = 0;
		Delicious.Mp3.player.innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"' +
			'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"' +
			'width="0" height="0" id="player">' +
			'<param name="wmode" value="transparent">' +
			'<param name="allowScriptAccess" value="sameDomain">' +
			'<param name="flashVars" value="theLink='+thisurl+'&amp;fontColor=000000">' +
			'<param name="movie" value="http://images.del.icio.us/static/swf/playtagger.swf"><param name="quality" value="high">' +
			'<embed src="http://images.del.icio.us/static/swf/playtagger.swf" flashVars="theLink='+thisurl+'&amp;fontColor=000000"'+
			'quality="high" wmode="transparent" width="0" height="0" name="player"' +
			'align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"' +
			' pluginspage="http://www.macromedia.com/go/getflashplayer"></object>';
		playid.parentNode.insertBefore(Delicious.Mp3.player, playid.nextSibling);
		playid.src   = 'images/speaker.png';
		playid.alt   = 'Stop';
		playid.title = 'Stop';
		Delicious.Mp3.playimg = playid;
	}

	return false;
}

function play_movie(id) {
	var newhtml = '<object width="100%" height="100%"><param name="movie" value="http://www.youtube.com/v/' + id + '"><\/param><param name="wmode" value="transparent"><\/param><embed src="http://www.youtube.com/v/' + id + '" type="application/x-shockwave-flash" wmode="transparent" width="100%"  height="100%"><\/embed><\/object>';
	show_modal_cover(null, newhtml);

	return false;
}

function movie_over(num) {
	var row = document.getElementById('song' + num);
	var main = document.getElementById('desc_main');
	var table = document.getElementById('playlist');
	if (!row || !main || !table) { return }

	var trs = table.getElementsByTagName('tr');

	for (var i = 0; i < trs.length; i++) {
		var thisclass = hasClass(trs[i]);
		if (thisclass != 'playlist_head') {
			trs[i].className = 'track';
		}
	}

	row.className = 'selected';

	$('#coverart_img').attr('src', default_cover);

	return;
}

function song_over(num, nodesc) {
	var row = document.getElementById('song' + num);
	var main = document.getElementById('desc_main');
	var song = songlist[ setlist[num] ];
	var table = document.getElementById('playlist');
	if (!row || !main || !song || !table) { return }

	var trs = table.getElementsByTagName('tr');

	for (var i = 0; i < trs.length; i++) {
		var thisclass = hasClass(trs[i]);
		if (thisclass != 'playlist_head') {
			trs[i].className = 'track';
		}
	}

	row.className = 'selected';

	$('#coverart_img').attr('src', song.coverart || default_cover);

	main.innerHTML = song.desc;

	if (nodesc) {
		main.style.display = 'none';
		return;
	}

// old layout
/*
	var x = document.getElementById('playlist').offsetWidth +
		document.getElementById('extras').offsetWidth + 8;
	//var y = Math.floor(hpts_mouseY - 10);
	var y = document.getElementById('sources_head').offsetHeight + 11;
	var y_top = viewWindowTop();
	if (y_top > y) {
		y = y_top;
	}

	var offset = x + 37;
	// WebKit browsers seem to exclude the slider
	if (navigator.userAgent.indexOf('AppleWebKit') == -1)
		offset += 15;

	main.style.top  = y + 'px';
	main.style.left = x + 16 + 'px';

	main.style.width = (window.innerWidth - offset) + 'px';
	main.style.display = 'block';
*/

	var body2 = document.getElementById('body2');
	var x = body2.offsetLeft + 920;
	var y = body2.offsetTop - 22;

	if (navigator.userAgent.indexOf('AppleWebKit') != -1) {
		y += 8;
		x += 8;
	}

	var offset = x + 37;
	// WebKit browsers seem to exclude the slider
	if (navigator.userAgent.indexOf('AppleWebKit') == -1)
		offset += 15;

	main.style.top  = y + 'px';
	main.style.left = x + 'px';

	main.style.width = (window.innerWidth - offset) + 'px';
	main.style.display = 'block';
}

function song_off() {
	var main = document.getElementById('desc_main');
	if (!main) { return }

	main.style.display = 'none';
	main.innerHTML = '';

	$('#coverart_img').attr('src', 'images/white.png');
}

function movies_playlist_head() {
	return '<div id="playlist_fu2"><table id="playlist2" cellspacing="0">' +
			'<tr class="playlist_head">' +
				'<td class="playlist_play">&nbsp;</td>' +
				'<td class="playlist_movie">Name</td>' + 
			'</tr>' +
		'</table></div><div id="playlist_fu"><table id="playlist" cellspacing="0">';
}

function playlist_head() {
	return '<div id="playlist_fu2"><table id="playlist2" cellspacing="0">' +
			'<tr class="playlist_head">' +
				'<td class="playlist_play">&nbsp;</td>' +
				'<td class="playlist_name">Name</td>' + 
				'<td class="playlist_time">Time</td>' +
				'<td class="playlist_size">Size</td>' +
				'<td class="playlist_date">Date</td> ' +
				'<td class="playlist_rating"><span onclick="rating_toggle()">Rating</span></td> ' +
				'<td class="playlist_link">Links</td>' +
			'</tr>' +
		'</table></div><div id="playlist_fu"><table id="playlist" cellspacing="0">';
}

function playlist_foot() {
	return '</table></div>';
}

function print_playlist(name) {
	if (!name)
		name = default_playlist;

	if (genrenames[name]) {
		tmplist = genrenames[name];
	} else if (name == 'all') {
		tmplist = songnames;
		name = 'all';
	} else if (name == 'movies') {
		name = 'movies';
	} else {
		return;
	}

	var tablestr;
	if (name == 'movies') {
		tablestr =  movies_playlist_head();
		tablestr += movies_playlist_body();
	} else {
		tablestr =  playlist_head();
		tablestr += playlist_body();
	}
	tablestr += playlist_foot();

	$('#playlist_main').html(tablestr);
	stripe('playlist');

	document.getElementById('playlist_fu').style.width = 
		document.getElementById('playlist').offsetWidth + 15 + 'px';

	// one px different, ugh
	if (navigator.userAgent.indexOf('AppleWebKit') == -1)
		document.getElementById('playlist_fu').style.height = '391px';

	var sources = document.getElementById('sources').getElementsByTagName('div');

	for (var i = 0; i < sources.length; i++) {
		var source = sources[i];
		var sourcename = source.id.match('[^_]+$');
		// um whatever
		if (sourcename+"" == name+"") {
			source.className = 'source_selected';
		} else {
			source.className = 'source';
		}
	}

	song_off();
	song_over(0, 1);

	$('.lyrics').bind('click', function() {
		show_modal_cover($(this).attr('href'));
		return false;
	});

	$('.movie').bind('click', function() {
		var this_href = $(this).attr('href');
		var id = this_href.match('[^\&\=\?]+$');
		play_movie(id);
		return false;
	});
}

function movies_playlist_body() {
	var tablestr = '';

	setlist = new Array();

	var i;
	for (i = 0; i < movies.length; i++) {
		var movie = movies[i];

		setlist[i] = movie;

		var classname = 'track';
		tablestr += '<tr onmouseover="movie_over(' +
			i + ')" id="song' +
			i + '"><td class="playlist_play"><a name="' +
			movie[0] + '" onclick="return play_movie(\'' + movie[0] + '\')' +
			'"><img src="images/speakeroff.png" width="15" height="12" alt="Play" title="Play" id="play' +
			i + '"></a></td><td class="playlist_movie"><a class="' +
			classname + '" href="#" onclick="return play_movie(\'' + movie[0] + '\')">"' +
			movie[1] + '" ' + movie[2] +
			'</td></tr>';
	}

	for ( ; i < 22; i++) {
		tablestr += '<tr><td><img src="images/speakernone.png" width="15" height="12" alt=""><td></td><td></td><td></td><td></td><td></td><td></td></tr>';
	}

	return tablestr;
}

function playlist_body() {
	var tablestr = '';

	setlist = new Array();

	var i;
	for (i = 0; i < tmplist.length; i++) {
		var songname = tmplist[i];
		if (!songname)
			continue;

		var songref = songlist[ songname ];
		setlist[i] = songname;

		var classname = 'track';
		var this_newimg = '';
		if (isNew(songname))
			this_newimg = newimg;

		var this_play;
		if (songref.url) {
			this_play = ' onclick="return play(' + i + ')"><img ' +
			'src="images/speakeroff.png" width="15" height="12" ' +
			'alt="Play" title="Play" id="play' + i + '">';
		} else {
			this_play = '>&nbsp;';
		}

		tablestr += '<tr onmouseover="song_over(' +
			i + ')" id="song' +
			i + '"><td class="playlist_play"><a name="' +
			songref.anchor + '"' + this_play +
			'</a></td><td class="playlist_name">';

		if (songref.url) {
			tablestr += '<a class="' + classname + 
				'" href="tracks/' + songref.url + '">' +
				songname + songref.subhead +
				this_newimg + '</a>';
		} else {
			tablestr += songname + songref.subhead;
		}

		tablestr += '</td><td class="playlist_time">' +
			songref.time + '</td><td class="playlist_size">' +
			songref.size + '</td><td class="playlist_date">' +
			songref.date + '</td><td class="playlist_rate">' +
			rating_html(i) + '</td><td class="playlist_links">' +
			songref.links + '</td></tr>';
	}

/*	var fu = document.getElementById('playlist_fu');
	if (fu && i <= 22) {
		alert(1);
		fu.style.overflow = 'hidden';
	} else if (fu) {
		alert(2);
		fu.style.overflow = 'auto';
	}
*/
	for ( ; i < 22; i++) {
		tablestr += '<tr><td><img src="images/speakernone.png" width="15" height="12" alt=""><td></td><td></td><td></td><td></td><td></td><td></td></tr>';
	}

	return tablestr;
}

function print_extras() {
	var newhtml = 	'<div id="desc_main" class="desc_main"></div>' +
			'<div id="sources_head"><img src="images/sources.png" width="191" height="15" alt="Sources"></div>' +
			'<div id="sources">' +
				'<div id="source_all">' +
					'<a id="link_all" href="javascript:print_playlist(\'all\');">' +
						'<img class="source_img" src="images/library.png" width="16" height="16" alt="">Library' +
					'</a>' + 
				'</div>' +
				'<div id="source_movies">' +
					'<a id="link_movies" href="javascript:print_playlist(\'movies\');">' +
						'<img class="source_img" src="images/movies.png" width="16" height="16" alt="">Movies' +
					'</a>' + 
				'</div>';

	for (var i = 0; i < genrelist.length; i++) {
		var name = genrelist[i];
		if (!genrenames[name])
			continue;
		var this_newimg = '';
		if (name == 'new')
			this_newimg = newimg;
		var list_name = albumnames[name] || name.ucFirst();
		var img_src   = albumnames[name] ? 'album.png' : 'smart.png';

		newhtml += '<div id="source_' +
			name + '"><a id="link_' +
			name + '" href="javascript:print_playlist(\'' +
			name + '\');"><img class="source_img" src="images/' + img_src + '" width="16" height="16" alt="">' +
			list_name + this_newimg + '</a>' + '</div>';
	}
	newhtml += 	'</div>' +
			'<div id="coverart_head"><img src="images/coverart.png" width="191" height="15" alt="Cover Art"></div>' +
			'<div id="coverart"><img id="coverart_img" src="images/white.png" width="191" alt=""></div>' +
			'<div style="display: none"><img src="images/speaker.png" width="0" height="0" alt="">';

	for (var i = 0; i < coverarts.length; i++) {
		newhtml += '<img src="' + coverarts[i] + '" width="0" height="0" alt="">';
	}

	newhtml += '</div>';


	document.getElementById('extras').innerHTML = newhtml;
}

String.prototype.ucFirst = function () {
	var firstLetter = this.substr(0,1).toUpperCase();
	return this.substr(0,1).toUpperCase() + this.substr(1,this.length);
}

function viewWindowTop() {
	if (self.pageYOffset) // all except Explorer
	{
		return self.pageYOffset;
	}
	else if (document.documentElement && document.documentElement.scrollTop)
		// Explorer 6 Strict
	{
		return document.documentElement.scrollTop;
	}
	else if (document.body) // all other Explorers
	{
		return document.body.scrollTop;
	}
	return;
}

function isNew(songname) {
	if (!genrenames['new'])
		return;

	for (var i = 0; i < genrenames['new'].length; i++) {
		if (genrenames['new'][i] == songname) {
			return 1;
		}
	}
}

function vote(songnum, rating) {
	var songname = setlist[songnum];
	var songname_e = escape(songname);
	document.cookie = songname_e + '=' + rating + '; expires=Thu, 25 Jul 2013 00:00:00 UTC; path=/';

	ratinglist_c[ setlist[songnum] ] = rating;

	$.ajax({
		type: 'GET',
		url : 'http://pudge.net/tunes/vote.plx',
		data: 'vote=' + rating + '&song=' + songname_e
	});

	return false;
}

function rating_num(songnum) {
	var songname = setlist[songnum];
	if (!rating_average) {
		if (ratinglist_c[songname] && ratinglist_c[songname] != -1) {
			return [ratinglist_c[songname], 1];
		} else if (!ratinglist_c[songname]) {
			var songname_fu = escape(songname) + '=';
			var cookies = document.cookie.split(';');
			for (var i = 0; i < cookies.length; i++) {
				var c = cookies[i];
				while (c.charAt(0)==' ') {
					c = c.substring(1,c.length);
				}
				if (c.indexOf(songname_fu) == 0) {
					rating = c.substring(songname_fu.length, c.length);
					ratinglist_c[songname] = rating;
					return [rating, 1];
				}
			}
			ratinglist_c[songname] = -1;
		}
	}

	return [(ratinglist[songname] || 0), 0];
}

function rating_html(songnum) {
	var html = '';
	var rn = rating_num(songnum);
	var i = rn[0];
	var v = rn[1];
	var j = 5;
	for (var j = 1; j <= 5; j++) {
		var on = i >= j ? v ? 'on' : 'on-no' : 'off';
		html = html + '<img src="images/star' + on + '.png" width="12" height="12"'
			+ ' alt="' + j +'" title="' + j + '" id="rate' + songnum + '-' + j + '"'
			+ ' onclick="vote(' + songnum + ',' + j + ')"'
			+ ' onmouseover="rate_over(' + songnum + ',' + j + ', 1)"'
			+ ' onmouseout="rate_out(' + songnum  + ')">';
	}
	return html;
}

function rate_over(songnum, rating, voted) {
	for (var j = 1; j <= 5; j++) {
		var rateid = document.getElementById('rate' + songnum + '-' + j);
		var on = rating >= j ? voted ? 'on' : 'on-no' : 'off';
		rateid.src = 'images/star' + on + '.png';
	}
}

function rate_out(songnum) {
	var rn = rating_num(songnum);
	var i = rn[0];
	var v = rn[1];

	rate_over(songnum, i, v);
}

function rating_toggle() {
	rating_average = rating_average == 0 ? 1 : 0;
	for (var i = 0; i < setlist.length; i++) {
		rate_out(i);
	}
}

function notes_toggle() {
	$('#notes').toggle();
	noteshead_toggle();

	return false;
}

function noteshead_toggle() {
	if ($('#notes:visible').length)
		$('#notesarrow').attr('src', 'images/arrowdown.png');
	else
		$('#notesarrow').attr('src', 'images/arrowright.png');
}

function hide_modal_cover() {
	$('#modal_cover_iframe').hide();
	$('#modal_cover_frame').hide();
	$('#modal_cover').hide();
	$('#modal_cover_frame').html('<iframe id="modal_cover_iframe" src=""></iframe>');
	$("#modal_cover_iframe").attr('src', '');

	return false;
}

function show_modal_cover(newurl, newhtml) {
	if (newhtml)
		$('#modal_cover_frame').html(newhtml);
	if (newurl)
		$('#modal_cover_iframe').attr('src', newurl);
	$('#modal_cover').show();
	$('#modal_cover_frame').show();
	if (!newhtml)
		$("#modal_cover_iframe").show();

	return false;
}

function finish_loading() {
	notes_toggle();

	$(document).bind('selectstart', function() { return false });
	if (window.sidebar) {
		$(document).bind('mousedown', function() { return false });
		$(document).bind('click', function() { return true });
	}

	print_extras();
	print_playlist();
}


