function grab(id){
		return document.getElementById(id);
	}


function helpGuide(open, which){
		var mask, panel;
		mask = grab('mp_mask');
		panel = grab('mp_panel');
		if(open){
			mask.className = 'show';
			panel.className = 'help_guide';
			switch(which){
				case 'about':
					panel.innerHTML = "<div class='pop_content' style='font-size:13px;'><h2>About</h2><img id='db_strum' align='right' src='db_strum.png' alt=''>I'm an Iowan born and raised currently playing music in Brooklyn, NY. During my college years, I took a year off to go to guitar school in Hollywood and live with a Norweigan named Jardar. Musician's Institute was more like the School of Rock meets high school than a college, but it was quite amazing nonetheless. What they failed to mention in the brochure, though, was that doing something for 10 hours a day might not be that healthy. Enter a stress injury piled on an old shoulder injury from high school, and you've got a guitar school drop out. I moved back to Iowa City, did shoulder rehab and went to the University of Iowa. I also worked at an Irish pub, started writing songs again and created my own major.<br><br> My first song I ever wrote was for a class project in high school about parenting called “Growth and Development.” I realized at that point that I could start writing songs instead of doing class projects. This became a reoccurring theme. My first band was Cam's Dream followed by Degrees of Freedom. Both bands were real good times. Now it’s mostly me and my guitar.  I'm in New York, where the biggest city can also be small and ultra connected.  I like stoping in and playing music with the crew at Bar 4 on Tuesdays and am often playing shows around town.<br><br>This fall should be an action-packed one. I have a tour home to the Midwest as well as shows at The Rockwood Music Hall and at Spike Hill in NYC.  It’ll be a fun run, hopefully I’ll make it to your neck of the woods soon.  <a class='close' href='Javascript: closehelpGuide(1,\"hide\");'><img class='closeout' border='0' src='close_mypage_expand.jpg' alt='close'></a></div>";
					break;
				case 'merch':
					panel.innerHTML = "<div class='pop_content' style='font-size:13px;'><img id='pay_16' src='db_pay_16.jpg'><img id='pay_25' src='db_pay_25.jpg'><h2>T-shirts + CD's</h2><form action='https://www.paypal.com/cgi-bin/webscr' method='post'><input type='hidden' name='cmd' value='_s-xclick'><input type='hidden' name='hosted_button_id' value='GEEYQQAFLXBN8'><table><tr><td><input type='hidden' name='on0' value='Size'>Size</td></tr><tr><td><select name='os0'<option value='Baby Blue Small'>Baby Blue Small </option><option value='Baby Blue Medium'>Baby Blue Medium </option><option value='Baby Blue Large'>Baby Blue Large </option><option value='Baby Blue X-Large'>Baby Blue X-Large </option><option value='Cinder Brown Small'>Cinder Brown Small </option><option value='Cinder Brown Medium'>Cinder Brown Medium </option><option value='Cinder Brown Large'>Cinder Brown Large </option><option value='Cinder Brown X-Large'>Cinder Brown X-Large </option><option value='Seafoam Green Small'>Seafoam Green Small </option><option value='Seafoam Green Medium'>Seafoam Green Medium </option><option value='Seafoam Green Large'>Seafoam Green Large </option><option value='Seafoam Green X-Large'>Seafoam Green X-Large </option></select> </td></tr></table><input type='image' src='https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif' border='0' name='submit' alt='PayPal - The safer, easier way to pay online!'><img alt='' border='0' src='https://www.paypal.com/en_US/i/scr/pixel.gif' width='1' height='1'></form><br><br><br><form action='https://www.paypal.com/cgi-bin/webscr' method='post'><input type='hidden' name='cmd' value='_s-xclick'><input type='hidden' name='hosted_button_id' value='PHHD8R4JMJFPC'><table><tr><td><input type='hidden' name='on0' value='Size'>Size</td></tr><tr><td><select name='os0'<option value='CD + Baby Blue Small'>CD + Baby Blue Small </option><option value='CD + Baby Blue Medium'>CD + Baby Blue Medium </option><option value='CD + Baby Blue Large'>CD + Baby Blue Large </option><option value='CD + Baby Blue X-Large'>CD + Baby Blue X-Large </option><option value='CD + Cinder Brown Small'>CD + Cinder Brown Small </option><option value='CD + Cinder Brown Medium'>CD + Cinder Brown Medium </option><option value='CD + Cinder Brown Large'>CD + Cinder Brown Large </option><option value='CD + Cinder Brown X-Large'>CD + Cinder Brown X-Large </option><option value='CD + Seafoam Green Small'>CD + Seafoam Green Small </option><option value='CD + Seafoam Green Medium'>CD + Seafoam Green Medium </option><option value='CD + Seafoam Green Large'>CD + Seafoam Green Large </option><option value='CD + Seafoam Green X-Large'>CD + Seafoam Green X-Large </option></select> </td></tr></table><input type='image' src='https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif' border='0' name='submit' alt='PayPal - The safer, easier way to pay online!'><img alt='' border='0' src='https://www.paypal.com/en_US/i/scr/pixel.gif' width='1' height='1'></form><a class='close' href='Javascript: closehelpGuide(1,\"hide\");'><img class='closeout' border='0' src='close_mypage_expand.jpg' alt='close'></a></div>";
					break;
				case 'music':
					panel.innerHTML = '';
					panel.innerHTML = "<div class='pop_content'><div class='preview'><iframe src ='music.php' width='300' height='295' scrolling='auto' frameborder='0'></iframe></div><div id='music_player'><img style='visibility:hidden;width:0px;height:0px;' src='http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNTQxNzY4OTU1MDMmcHQ9MTI1NDE3NzA4MjY5OSZwPTI3MDgxJmQ9bXVzaWNfcGxheWVyX2ZpcnN*X2dlbiZnPTEmbz1iYjVlZWRhZTQ4ODk*MGE2YjMyOWYxYTY5OTAzNThjNyZvZj*w.gif' /><embed type='application/x-shockwave-flash'  src='http://cache.reverbnation.com/widgets/swf/15/widgetPlayer.swf?emailPlaylist=artist_389521&backgroundcolor=EEEEEE&font_color=000000&posted_by=artist_389521&shuffle=&autoPlay=false' height='228' width='434' /><br/><a href='http://www.reverbnation.com/c./a4/15/389521/Artist/389521/Artist/link'><img alt='Dave%20Beck' border='0' height='19' src='http://cache.reverbnation.com/widgets/content/15/footer.png' width='434' /></a><br/><img style='visibility:hidden;width:0px;height:0px;' src='http://www.reverbnation.com/widgets/trk/15/artist_389521/artist_389521/t.gif'/><a href='http://www.quantcast.com/p-05---xoNhTXVc' target='_blank'><img src='http://pixel.quantserve.com/pixel/p-05---xoNhTXVc.gif' style='display: none' border='0' height='1' width='1' alt='Quantcast'/></a></div></h4><a class='close' href='Javascript: closehelpGuide(1,\"hide\");'><img class='closeout' border='0' src='close_mypage_expand.jpg' alt='close'></a></div>";
					break;
				case 'shows':
					panel.innerHTML = '';
					panel.innerHTML = "<div class='pop_content' style='font-size:11px;'><iframe src ='shows.php' width='400' height='295' scrolling='auto' frameborder='0'></iframe><a class='close' href='Javascript: closehelpGuide(1,\"hide\");'><img class='closeout' border='0' src='close_mypage_expand.jpg' alt='close'></a><img id='db_shadow' src='db_shadow.png' alt=''></div>";
					break;
				case 'connect':
					panel.innerHTML = '';
					panel.innerHTML = "<div class='pop_content'><h2>Connect</h2><br>You can also check me out at <a href='http://www.facebook.com/david.f.beck'><img src='fb.jpg'></a>&nbsp;<a href='http://twitter.com/franzbeck'><img src='tt.jpg'></a>&nbsp;<a href='http://myspace.com/davebeckmusic'><img src='ms.jpg'></a><br><br>If you would like to get in touch with me, shoot me an <a href='mailto:dfbeck@gmail.com'>email</a>.<br><br>You can also join my mailing list and I will keep you updated on my shows.<div id='email_list'><img style='visibility:hidden;width:0px;height:0px;' border=0 width=0 height=0 src='http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNTQxODI4MDMzMzYmcHQ9MTI1NDE4MjgwODEyMSZwPTI3MDgxJmQ9YmxvZ19mYW5fY29sbGVjdG9yX2ZpcnN*X2dlbiZnPTEmbz1iYjVlZWRhZTQ4ODk*MGE2YjMyOWYxYTY5OTAzNThjNyZvZj*w.gif' /><embed type='application/x-shockwave-flash' src='http://cache.reverbnation.com/widgets/swf/30/fancollector.swf?page_object_id=artist_389521&backgroundcolor=EEEEEE&font_color=000000&posted_by=artist_389521' height='180' width='180'/><br/><a href='http://www.reverbnation.com/c./a4/30/389521/Artist/389521/Artist/link'><img alt='Dave%20Beck' border='0' height='12' src='http://cache.reverbnation.com/widgets/content/30/footer.png' width='180' /></a><br/><img style='visibility:hidden;width:0px;height:0px;' border=0 width=0 height=0 src='http://www.reverbnation.com/widgets/trk/30/artist_389521/artist_389521/t.gif'/><a href='http://www.quantcast.com/p-05---xoNhTXVc' target='_blank'><img src='http://pixel.quantserve.com/pixel/p-05---xoNhTXVc.gif' style='display: none' border='0' height='1' width='1' alt='Quantcast'/></a></div><a class='close' href='Javascript: closehelpGuide(1,\"hide\");'><img class='closeout' border='0' src='close_mypage_expand.jpg' alt='close'></a><img id='db_hand' src='db_hand2.png' alt=''></div>";
					break;
				case 'movie':
					panel.innerHTML = '';
					panel.innerHTML = "<div class='pop_content'><object width='400' height='300'><param name='allowfullscreen' value='true' /><param name='allowscriptaccess' value='always' /><param name='movie' value='http://vimeo.com/moogaloop.swf?clip_id=3838283&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1' /><embed src='http://vimeo.com/moogaloop.swf?clip_id=3838283&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1' type='application/x-shockwave-flash' allowfullscreen='true' allowscriptaccess='always' width='400' height='300'></embed></object><a class='close' href='Javascript: closehelpGuide(1,\"hide\");'><img class='closeout' border='0' src='close_mypage_expand.jpg' alt='close'></a></div>";
					break;
			}
		}
		else{
			mask.className = 'show';
			panel.className = 'help_guide';
			panel.innerHTML = "<div class='pop_content'><div class='preview'><iframe src ='music.php' width='300' height='295' scrolling='auto' frameborder='0'></iframe></div><div id='music_player'><img style='visibility:hidden;width:0px;height:0px;' src='http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNTQxNzY4OTU1MDMmcHQ9MTI1NDE3NzA4MjY5OSZwPTI3MDgxJmQ9bXVzaWNfcGxheWVyX2ZpcnN*X2dlbiZnPTEmbz1iYjVlZWRhZTQ4ODk*MGE2YjMyOWYxYTY5OTAzNThjNyZvZj*w.gif' /><embed type='application/x-shockwave-flash'  src='http://cache.reverbnation.com/widgets/swf/15/widgetPlayer.swf?emailPlaylist=artist_389521&backgroundcolor=EEEEEE&font_color=000000&posted_by=artist_389521&shuffle=&autoPlay=false' height='228' width='434' /><br/><a href='http://www.reverbnation.com/c./a4/15/389521/Artist/389521/Artist/link'><img alt='Dave%20Beck' border='0' height='19' src='http://cache.reverbnation.com/widgets/content/15/footer.png' width='434' /></a><br/><img style='visibility:hidden;width:0px;height:0px;' src='http://www.reverbnation.com/widgets/trk/15/artist_389521/artist_389521/t.gif'/><a href='http://www.quantcast.com/p-05---xoNhTXVc' target='_blank'><img src='http://pixel.quantserve.com/pixel/p-05---xoNhTXVc.gif' style='display: none' border='0' height='1' width='1' alt='Quantcast'/></a></div></h4><a class='close' href='Javascript: closehelpGuide(1,\"hide\");'><img class='closeout' border='0' src='close_mypage_expand.jpg' alt='close'></a></div>";
			bckGrnd();
		}
	}
	
function bckGrnd(open, which){
		var bg;
		bg = grab('pt_img');
		if(open){
			bg.className = 'different';
			switch(which){
				case 'a':
					bg.innerHTML = "<img id='pt_background' src='db_intro.png' width='100%' height='100%' alt=''>";
					break;
				case 'b':
					bg.innerHTML = "<img id='pt_background' src='db_a.png' width='100%' height='100%' alt=''>";
					break;
				case 'c':
					bg.innerHTML = "<img id='pt_background' src='db_b.png' width='100%' height='100%' alt=''>";
					break;
				case 'd':
					bg.innerHTML = "<img id='pt_background' src='db_c.png' width='100%' height='100%' alt=''>";
					break;
				case 'e':
					bg.innerHTML = "<img id='pt_background' src='db_d.png' width='100%' height='100%' alt=''>";
					break;
				case 'f':
					bg.innerHTML = "<img id='pt_background' src='db_e.png' width='100%' height='100%' alt=''>";
					break;
				case 'g':
					bg.innerHTML = "<img id='pt_background' src='initial.jpg' width='100%' height='100%' alt=''>";
					break;
			}
		}
		else{
			bg.className = 'initial';
			bg.innerHTML = "<img id='pt_background' src='initial.jpg' width='100%' height='100%' alt=''>";
		}
	}
	
function closehelpGuide(close, which){
		var mask, panel;
		mask = grab('mp_mask');
		panel = grab('mp_panel');
		if(close){
			mask.className = 'hide';
			panel.className = 'hide';
			switch(which){
				case 'hide':
					panel.innerHTML = "";
					break;
				}
		}
			
}
		
