function play(song, album){
  var player = document.getElementById('player');
  player.innerHTML = '<b>Song: </b>'+ song + '<br /><b>Album: </b>' + album + '<br />' + 
                      '<audio autoplay="autoplay" controls="controls">' +
                        '<source src="music/' + song + '.ogg" />'+
                        '<source src="music/' + song + '.mp3" />'+
                        '<a href="music/' + song + '.mp3">Click here to play</a>' + 
                     '</audio>';
}

function get_lyrics(song, author, singer, index)
{
  if(index != -1) lyrics = lyrics_array[index];
  else lyrics = 'There are no lyrics for this song.';
	var div = document.createElement('div');
	div.id = "lyrics";
	div.innerHTML = '<img src="images/close_lyrics.png" onclick="document.body.removeChild(this.parentNode);" /><h1>' + song + ' Lyrics</h1><p id="author">Lyrics written by ' + author + '<br />Sung by ' + singer + '</p><div id="lyrics_text">' + lyrics + '</div>'; 
	document.body.appendChild(div);
	div.focus();
}


var lyrics_array = ['<p>I\'d been worried for a while,<br />I told you I loved you,<br />That God loved you too,<br />That you were in danger.<br />Oh, what did I do wrong?<br />What did I do wrong?<br />I didn\'t want to lose my son<br />To the wandering lust of youth,<br />I fear that I have.<br />I fear that I have already.</p><p>I found your final letter<br />You left it on your dresser.<br />Wrote nothing but your name,<br />Nothing less than when you came<br />Into this world.<br />What did I do wrong?<br />The preacher says you\'re up in heaven<br />And he\'s lying with his eyes again.<br />There was nothing you could do, he says,<br />Nothing you could do.<br />I wonder then,<br />Who needed saving?</p><p>And it\'s easy to sleep soundly,<br />The earth circled by the sun.<br />And it\'s easy to give graces<br />With the devil and the gun.<br />And it\'s easy to be happy<br />When nothing is wrong,<br />But harder still when religion kills<br />Oh God who needed saving?</p><p>Who needed saving?</p><p>And what good is all this love?<br />What good is eternity?<br />Without everyone?<br />Without everyone?<br />And where are you now my son?<br />If you\'re somehow in hell,<br />I\'ll be with you soon,<br />I know we will meet there.<br />I know we will meet there.<br />I know we will meet there.<br />I know we will meet there.</p><p>I know we will meet there.</p>', '<p>I\'m a beautiful weapon,<br />I\'m a death streaked sky,<br />And tomorrow\'s just another word for your day to die.<br />You\'ve seen god kill men, girl,<br />But I\'ve watched men kill more.<br />And bombs can\'t bring peace, but love,<br />Love can start a war.</p><p>Hear the rifle fire,<br />Howling like a monster.<br />She screams, "Please deliver me,"<br />He drops a match and shivers.<br />"Don\'t worry," smirks the captain,<br />As the flames flare higher,<br />"We\'re innocent and ignorant,<br />Another sinister shade of gray."</p><p>When they cut our lovers down in line,<br />Won\'t you light a fire for yours and mine?<br />When they cut our daughters down in line,<br />Won\'t you light a fire for yours and mine?<br />If you cut my lover down in line,<br />God, I\'ll watch your ashes smolder.</p><p>I\'m a horror and a hero,<br />I\'m a beautiful fury,<br />I\'m another bloodstained goddamned page in the book of history<br />I\'m another bloodstained goddamned page in the book of history<br />So tell me where I can find the white flags in the windows.<br />Show me where your faithful hide, your children and your widows.</p><p>When they cut our lovers down in line,<br />God I\'ll watch your ashes smolder.<br />When they cut our lovers down in line,<br />God I\'ll watch the ashes smolder.</p><p>Daughter of mine,<br />Daughter of mine,<br />Do you think you could forgive me my crimes in love and war?<br />They\'re more than I can remember but, lord I can\'t forget.<br />And my blood still runs a fever, my crimes in love and war.<br />Do you think she would forgive me my crimes in love and war?<br />Do you think you would forgive me my crimes in love and war?</p>', '<p>You know those days when it feels like every light is flickering out?<br />And this place seems alright until you find yourself stumbling in the dark?<br />And you\'re sure that your world will come undone.<br />You wonder why you bothered to show up in the first place.<br />On those days I know I\'ll find the stars behind your eyes still shining, your eyes are still shining.</p><p>So despite the dark, the murderous,<br />The broken hearts, the hypocrites,<br />The liars and their loveless kiss<br />I still believe.</p><p>And the hardest part of closing your eyes, you\'ll see the things that keep you up at night.<br />And our friends with their lonely drunken smiles say that<br />Every day is just another schedule, I wish I were forgetful.<br />We could drink down the same old gin and sorrows,<br />Drown ourselves like everyone else and wait for tomorrow, another bored tomorrow no,<br />Your fingerprints circling my shoulder blades, I know we\'ve found a way to make today last forever.</p><p>So despite the dark, the murderous,<br />The broken hearts, the hypocrites,<br />The liars and their loveless kiss,<br />I still believe.<br />I still believe in miracles.</p><p>Strike a match and make your wish,<br />Light a candle, take a risk,<br />And ask me why I still insist<br />That I believe in miracles.<br />I still believe in miracles I do.</p><p>And I know that you\'ve seen<br />The difference between<br />The world that you dream of and<br />The world that you see.<br />So how on earth could you believe in miracles,<br />After all there is to see?<br />How on earth could we believe in miracles?</p><p>I\'ll tell you I know that I\'ve seen there ain\'t no difference between<br />The girl that I dream of and the one that I see,<br />And if you wonder why I believe in the things I do, well,<br />I believe in miracles all because of you.</p><p>So despite the dark, the murderous,<br />The broken hearts, the hypocrites,<br />The liars and their loveless kiss,<br />I still believe in miracles.<br />I still believe in miracles.<br />I still believe in miracles.<br />I still believe in miracles.</p><p>Strike a match and make your wish,<br />Light a candle, take a risk,<br />And ask me why I still insist<br />That I believe in miracles, I do.</p><p>After all there is to see,<br />I still believe.<br />After all there is to see,<br />I still believe in miracles.</p>', '<p>And as you lie awake at night,<br />Your lover\'s breath beside you,<br />You\'re dreaming of the future, babe,<br />He\'s dreaming of your eyes.<br />And I know you wonder why, well<br />Everybody dies alone.<br />I know you\'ve cried, you\'ve been polite<br />You\'ve lied, well yeah who hasn\'t right?<br />You try to hide but the words still find you slow, well<br />Everyone dies alone</p><p>And the passions of your younger loves<br />Vanish day by day.<br />What really tears you up inside<br />Could you bear to have them stay?<br />And I know you\'ve heard them say, well<br />Everybody dies alone.<br />The hands you shake, the smiles you fake,<br />The friends you make to stave away the fear,<br />That dear loneliness you hold, well<br />Everyone dies alone</p><p>Oh and the clock don\'t chime forever,<br />Sounding out and counting down the twilight of your life.<br />The only thing that\'s worse than the dark you seem to dread<br />Is living only looking toward, forward to your end.</p><p>Oh and I know you wonder why, well<br />Everybody dies alone.<br />Oh and I know you wonder why, well<br />Everybody dies alone,<br />So take my hand and I\'ll take yours,<br />I\'ll hold you till you hit the floor.<br />It binds us at the core, we all know, well<br />Everyone dies alone.</p>', '<p>I\'ve got a heart of steel, so why do I feel something tugging me?<br />Snagged on barbed wire, God how I\'m tired of dragging your memories around.<br />And I swore I\'d never let you catch me like this again,<br />Like some broken man, lovesick, quick to cave in and cry<br />God, blow out the sun,<br />Smash my head or shoot me dead<br />But leave the music on.<br />Don\'t let me stop to think,<br />Or I\'ll start to fall apart.<br />So much for my heart of steel,<br />My heart of steel.</p><p>And its true that the dead are never buried<br />When lovers come and go, no.<br />The ghosts that I haven\'t gotten over<br />Are still alive in my heart of steel.</p><p>I\'ve got a heart of steel, it\'s peeling in pieces like teardrops they fall to the floor.<br />I\'m lust soaking, rust choking, trusting myself not to let your scent into my body<br />And into my soul, clamoring desperately, searching for comfort, for meaning,<br />And for release, unceasing deceivers are screaming<br />Shoot out all the lights,<br />Feel me up and lay me down,<br />Don\'t look me in the eye.<br />A means to an end,<br />Why can\'t it ever be that easy?<br />For my heart of steel,<br />My heart of steel.</p><p>And its true that the dead are never buried<br />When lovers come and go, no.<br />The past might have been but always is today,<br />I started out okay but</p><p>The faces of all my ghosts<br />Remind me of you<br />When I close my eyes.In the dark I try to imagine<br />Through the passion of a stranger<br />A girl I once knew,<br />Who I keep in my heart of steel,<br />Who\'s carved in my heart of steel,<br />In my heart of steel.</p><p>Oh and watch me raise the dead<br />Through photographs and wordplay<br />And violet perfume.<br />And in the dark I feel it on my skin<br />Through the sweat and desperation,<br />A memory of you.</p><p>Who I keep in my heart of steel alone,<br />Who I keep in my heart of steel.<br />Who I keep in my heart of steel alone,<br />Who I keep in my heart of steel.<br />And its true that the dead are never buried<br />When lovers come and go.<br />No, its true that the dead are never buried<br />When lovers come and go...no.</p>', '<p>Whoever said that lightning never strikes twice<br />In the same place was most unwise.<br />Cause in my head, there\'s a storm that keeps forming.<br />Seems so familiar to my mind.<br />Once again, there are miles spanning<br />Between me and the girl that lies</p><p>Next to me in my dreams, just silhouettes and memories.<br />And it\'s like all those nights that we dreaded seeing sunlight.</p><p>Constant like the waves of the ocean<br />That plague the sands where I bury my feet.<br />I stare out at the endless horizon<br />Where I hope you\'re looking back at me.<br />On these shores where we first united,<br />Building castles to rule the sea.</p><p>I\'d stop the tide by your side and conquer this divide.<br />Speed up time with my mind till our continents collide.</p><p>With every flash of lightning that ignites the sky,<br />With every flash of lightning inside my mind,<br />With every flash of lightning that shines in your eyes,<br />It always strikes twice.</p><p>Whoever said that lightning never strikes twice<br />In the same place was far from right.<br />But in my head there\'s a storm that\'s subsiding.<br />The past is gone, but the future\'s bright.</p>', '<p>I survived the typhoon with my rhythm and blues.<br />Holding a match to the bridge and now I\'m lightning the fuse.<br />It\'s gonna burn at both ends and I\'ll let gravity choose</p><p>To grant you heaven or hell, six feet under you fell.<br />And when you rise from the grave, you know it\'s time rebel.<br />Because you cannot betray without a soul to sell.</p><p>I\'ve got an army of rock \'n\' roll soldiers<br />Ready to charge on my every command.<br />They listen with guitars on their shoulders<br />To every lyric from this pen in my hand.</p><p>I won\'t jump in the line, a politician\'s design<br />To control your mind, close your eyes, make you blind.<br />So I\'ll kindly decline to surrender by spine.</p><p>I\'d rather wash out bloodstains than the thoughts from my brain.<br />So I\'ll start a campaign with a platform to entertain.<br />Now the world is my stage, a throne to rule my domain.</p><p>I\'ve got an army of rock \'n\' roll soldiers,<br />Ready to charge on my every command.<br />They listen with guitars on their shoulders<br />To every note blasting out of my amp.</p><p>Come on join the brigade,<br />No, don\'t be afraid.<br />Deep down we\'re all renegades<br />With emotional grenades.<br />And there won\'t be a parade<br />Following this crusade<br />Cause the religion of music has no god which to pray</p><p>I\'ve got an army of rock \'n\' roll soldiers,<br />Ready to charge on my every command.<br />They listen with guitars on their shoulders<br />To every lyric from this pen in my hand.</p><p>I\'ve got an army of rock \'n\' roll soldiers,<br />Ready to charge on my every command.<br />They listen with guitars on their shoulders<br />To every note blasting out of my amp.</p><p>I\'ve got an army of rock \'n\' roll soldiers,<br />Ready to charge on my every command.<br />They listen with guitars on their shoulders,<br />I want the world in the palm of my hand.</p>', '<p>There\'s a storm coming in, there\'s a storm coming in on the highway, yeah,<br />There\'s a storm coming down on the highway towns tonight.<br />And all that matters now, matters now, we gotta find a way outta here, yeah,<br />Gotta find a hole to hide in gotta find a way to disappear</p><p>Oh I been waiting I been waiting for the rising tide, yeah,<br />But I wasn\'t waiting for the streets to flood tonight.<br />And all that matters now, keep your cool, pray you been devout, yeah,<br />Keep your head above the water and hope you don\'t bleed out.<br /></p><p>There\'s a storm coming in, there\'s a storm coming in on the highway, yeah,<br />And all the roads are jammed with a thousand worn-out wombs,<br />While all the young lovers are drowning in the alleyways,<br />And all the drug dealers are mourning for the dead.</p><p>Oh and I hear, and I hear the thunder roaring, yeah,<br />I see the rain fallin, I feel the fools\' blood flow,<br />And you think you gonna get through all of this intact, yeah?<br />Well the god you love, he ain\'t never coming back.</p><p>There\'s a storm coming down in the future that is the now, yeah.<br />There\'s a storm coming down in the past that was your home.<br />Keep your head above the waves and pray you find some mercy, yeah,<br />But keep your head above the water and hope you don\'t bleed out.<br />Keep your head above the water and hope you don\'t bleed out.</p>', '<p>So you climb the clocktower alone and you meet<br />The man you always feared you would be<br />Still a boy and his mistakes<br />He can\'t forgive her or forget her face</p><p>These private wars we\'re waging<br />These tired smiles we\'re faking<br />These broken souls we bear into the night<br />We\'ll take another shot of forget-me-not<br />And another drink, if we could do it all again<br />If we could do it all again</p><p>So you spend another night alone with friends<br />With practiced and predictable ends<br />It\'s love as time apart<br />Another compromise of the heart</p><p>And love is just another fight but is it one we want to win?<br />And if we could repeat it all, would we believe in us again?<br />Or would we find ourselves at some new end?</p>', '<p>Passive he sits, but aggressive his rage<br />As he hears of the story of being betrayed<br />Like a rising tide with a merciless wave<br />It crashes upon him and suppresses the flame of love</p><p>Turn on the headlights to guide him back home<br />Signal the sirens with the red lights of hope<br />Whisper the secrets that nobody told him<br />Relight the fire and bring him in from the cold</p><p>She holds in her hand, his heart and his blood<br />But she clenches her fist to keep out the world<br />For she blinds him with darkness of disloyal love<br />And waits for forgiveness that will undoubtedly come</p><p>He wanders the streets of the city he knows<br />Blaming himself for his sorrows and woes<br />Well denial\'s a weapon when out of control<br />But you can\'t escape truth when it swallows your soul</p>'];