/*
======================================================================================

This javascript file is available to populate a list of available podcasts that
are available to visiotrs of GoMeanGreen.com (GMG.com).  This listing is to be
kept current and up to date with the most recent and accurate information
regarding the podcasts that are available.

The function "wr_podcast" is stored in a seperate file and is used to add the
appropriate listing in the drop down selection box.

This function accepts the following parameters:

wr_podcast (selected, date, title, url)

1) selected = This parameter is used to set teh default selection int he drop
   down list.  If set to 'Y' for an item, that item will be shown as the default
   selction.  If 'N', the corresponding item will not be selected, but will
   still be populated in the list.
   
2) date = This parameter will be stored to display the date the podcast was made
   available on the site.  This field MUST be entered in "mm/dd/yyyy" format for
   appropriate usage.

3) title = This parameter is used to contain the title of the podcast.  The tile
   should be a brief description of the contents of hte podcast, and should be of
   no more that a length of 35-characters.  If longer than this there is a risk
   that the entire title will not be displayed in the drop down box.

4) url = This parameter should contain the exact URL for this podcast.

This was eveloped for GoMeanGreen.com, to be used in accordance with the webpage
created by Jeff Pergola (http://home.roadrunner.com/~jperg2tami/unt.htm).

Created by Jeff Pergola, Saturday, July 14th, 2007
======================================================================================
*/


build_div_podcasts ();

function build_div_podcasts() {
	wr_podcast_hdr ();

//---------- 2009
	wr_podcast ('Y', '9/16/2009', 'Barbershop Podcast #54', 'http://www.gomeangreen.com/wordpress09/wordpress/wp-content/uploads/gmgpod54.mp3');
	wr_podcast ('N', '9/9/2009', 'Barbershop Podcast #53', 'http://www.gomeangreen.com/wordpress09/wordpress/wp-content/uploads/gmgpod53.mp3');
	wr_podcast ('N', '7/31/2009', 'Barbershop Podcast #52b', 'http://www.gomeangreen.com/wp-content/uploads/gmgpod52partA.mp3');
	wr_podcast ('N', '7/30/2009', 'Barbershop Podcast #52a', 'http://www.gomeangreen.com/wp-content/uploads/gmgpod52partB.mp3');

//---------- 2008
	wr_podcast ('N', '1/13/2009', 'Barbershop Podcast #49', 'http://www.gomeangreen.com/wp-content/uploads/2009/01/gmgpod49b.mp3');
	wr_podcast ('N', '11/4/2008', 'Barbershop Podcast #48', 'http://www.gomeangreen.com/wp-content/uploads/2008/11/gmgpod48.mp3');
	wr_podcast ('N', '10/28/2008', 'Barbershop Podcast #47', 'http://www.gomeangreen.com/wp-content/uploads/2008/10/gmgpod47.mp3');
	wr_podcast ('N', '10/22/2008', 'Barbershop Podcast #46', 'http://www.gomeangreen.com/wp-content/uploads/2008/10/gmgpodcast46.mp3');
	wr_podcast ('N', '10/8/2008', 'Barbershop Podcast #45', 'http://www.gomeangreen.com/wp-content/uploads/2008/10/gmgpod45.mp3');
	wr_podcast ('N', '10/1/2008', 'Barbershop Podcast #44', 'http://www.gomeangreen.com/wp-content/uploads/2008/10/gmgpod44.mp3');
	wr_podcast ('N', '9/24/2008', 'Barbershop Podcast #43', 'http://www.gomeangreen.com/wp-content/uploads/2008/09/gmgpod43.mp3');
	wr_podcast ('N', '9/9/2008', 'Barbershop Podcast #42', 'http://www.gomeangreen.com/wp-content/uploads/2008/09/gmgpod42.mp3');
	wr_podcast ('N', '9/3/2008', 'Barbershop Podcast #41', 'http://www.gomeangreen.com/wp-content/uploads/2008/09/gmgpodcast41.mp3');
/*
	wr_podcast ('N', '8/27/2008', 'Barbershop Podcast #40', 'http://www.gomeangreen.com/wp-content/uploads/2008/08/gmdpodcast40.mp3');
	wr_podcast ('N', '8/1/2008', 'Barbershop Podcast #39 (Pt2)', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpodcast39B-0001.mp3');
	wr_podcast ('N', '7/29/2008', 'Barbershop Podcast #39 (Pt1)', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpodcast39A-0001.mp3');
	wr_podcast ('N', '4/15/2008', 'Barbershop Podcast #38', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpodcast38f-0001.mp3');
	wr_podcast ('N', '4/15/2008', 'Barbershop Podcast #37', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpodcast37-0001.mp3');
	wr_podcast ('N', '2/6/2008', 'Barbershop Podcast #36', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpodcast36.mp3');
	wr_podcast ('N', '1/26/2008', 'Barbershop Podcast #35', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpodcast35a.mp3');
	wr_podcast ('N', '1/15/2008', 'Barbershop Podcast #34', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod34.mp3');

//---------- 2007
	wr_podcast ('N', '12/16/2007', 'Barbershop Podcast #33', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod33final-0001.mp3');
	wr_podcast ('N', '12/16/2007', 'Barbershop Podcast #32', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod32final1-0001.mp3');
	wr_podcast ('N', '12/16/2007', 'Barbershop Podcast #31', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpodcast31final-0001.mp3');
	wr_podcast ('N', '11/14/2007', 'Barbershop Podcast #30', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod111307a-0001.mp3');
	wr_podcast ('N', '10/16/2007', 'Barbershop Podcast #29', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod29.mp3');
	wr_podcast ('N', '10/6/2007', 'Barbershop Podcast #28', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod28.mp3');
	wr_podcast ('N', '10/4/2007', 'Barbershop Podcast #27', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod27.mp3');
	wr_podcast ('N', '9/26/2007', 'Barbershop Podcast #26', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod092607.mp3');
	wr_podcast ('N', '9/18/2007', 'Barbershop Podcast #25', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod091807.mp3');
	wr_podcast ('N', '9/9/2007', 'Barbershop Podcast #24', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod090907-1.mp3');
	wr_podcast ('N', '9/5/2007', 'Barbershop Podcast #23', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod090507.mp3');
	wr_podcast ('N', '8/24/2007', 'Barbershop Podcast #22', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod082407-01.mp3');
	wr_podcast ('N', '8/16/2007', 'Barbershop Podcast #21', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod081607-1.mp3');
	wr_podcast ('N', '8/8/2007', 'Barbershop Podcast #20', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod080807-01.mp3');
	wr_podcast ('N', '8/6/2007', 'Barbershop Podcast #19', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod080607.mp3');
	wr_podcast ('N', '7/15/2007', 'Barbershop Podcast #18', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod071507.mp3');
	wr_podcast ('N', '7/3/2007', 'Barbershop Podcast #17', 'http://media.podcastingmanager.com/90048-83843/Media/gmgpod070307-06.mp3');
*/
	wr_podcast_ftr ();
}

function wr_podcast_hdr () {
	document.write("<form>\n");
	document.write("	Available Podcasts from <a style=\"text-decoration: none;\" href=\"http://www.theflyingworm.com/\" target=\"_podcasts\">The Flying Worm:</a><br />\n");
	document.write("	<select name=\"podcast\" class=\"sel_box\" style=\"font-size: 11px; font-family: Tahoma, Verdana, Arial, sans serif; background: #059033; color: #fff; border: 1px;\">\n");
}

function wr_podcast (selected, date, title, url) {
	if (selected == 'Y') {
		document.write("		<option value=\'" + url + "\' selected=\'selected\'>(" + date + ") " + title + "</option>\n");
	}
	else {
		document.write("		<option value=\'" + url + "\'>(" + date + ") " + title + "</option>\n");
	}			
}

function wr_podcast_ftr () {
	document.write("	</select>\n");
	document.write("	<button style=\"position: relative; top: -4px;\" type=\"submit\" onclick=\"window.open(podcast.value, '_podcastplayer', 'height=320,width=530,status=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no')\"></button><br />\n");
//	document.write("	<input style=\"font-size:7pt; font-family:Arial,Helvetica,Sans-serif;\" type=\"button\" value=\"GO\" onclick=\"window.open(podcast.value, '_podcastplayer', 'height=320,width=530,status=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no')\"></input>\n");
	document.write("</form>\n");
}
