// juke(mRecord) is for rooster-hearown.html
function juke(mRecord) {
	
	mTotalTraxx = 500; //has to be more than the total # of songs
	mStandardMp3Price = "0.79";
	mShortMp3Price = "0.49";
	mWidth = 190; //default cover image size
	mHeight = 190; //default cover image size
	mDiscBuyLink = "";
	mPlayTable = "";
	mPlayTablePt1 = "";
	mPlayTablePt2 = "";
	mAlbumCover = "";
	mTwoPrices = "";
	mMp3AlbumBuyButton = "";

	mSamplepath = new Array(mTotalTraxx);
	mSongpath = new Array(mTotalTraxx);
	mPrice = new Array(mTotalTraxx);
	mBuyButton = new Array(mTotalTraxx);
	mBand = new Array(mTotalTraxx);

	
// Record stats

//	Album titles
	m1Album = "V.I.P.E.P.<br />S.M.D.E.P.";
	m1Artist = "The World Record";
	m2Album = "S.M.D.E.P.";
	m2Artist = "The World Record";
	m3Album = "Guitars Forever";
	m3Artist = "The World Record";
	m50Album = "The Sounds When We Move";
	m50Artist = "Various";
	m100Album = "Everyone&#39;s All Right";
	m100Artist = "Andrew Creighton";
	m101Album = "Aaron Ballard&#39;s Fruit";
	m101Artist = "Aaron Ballard";
	m20Album = "<a href='javascript:juke(3)'>Guitars Forever</a><br /><a href='javascript:juke(100)'>Everyone&#39;s All Right</a>";
	m20Artist = "Full-length Bundle";
	m21Album = "<a href='javascript:juke(100)'>Everyone&#39;s All Right</a><br /><a href='javascript:juke(101)'>Aaron Ballard&#39;s Fruit</a>";
	m21Artist = "Solo Bundle";
	m22Album = "<a href='javascript:juke(3)'>Guitars Forever</a><br /><a href='javascript:juke(50)'>Sounds When We Move</a><br /><a href='javascript:juke(100)'>Everyone&#39;s All Right</a><br /><a href='javascript:juke(101)'>Aaron Ballard&#39;s Fruit</a>";
	m22Artist = "Everything Bundle";
	m75Album = "T-Shirt";
	m75Artist = "The World Record";
	m999Album = "Top 8 Mp3s";
	m999Artist = "Top 8 Mp3s";
	m1000Album = "All the Mp3s";
	m1000Artist = "All the Mp3s";
		
//	Album Prices
	m1AlbumPrice = "not";
	m1Mp3AlbumPrice = "not";
	m2AlbumPrice = "not";
	m2Mp3AlbumPrice = "not";
	m3AlbumPrice = "7.99";
	m3Mp3AlbumPrice = "5.49";
	m50AlbumPrice = "2.99";
	m50Mp3AlbumPrice = "not";
	m50PriceDescription = "(CD shipped)";
	m100AlbumPrice = "6.99";
	m100Mp3AlbumPrice = "4.99";
	m101AlbumPrice = "3.99";
	m101Mp3AlbumPrice = "2.49";
	m20AlbumPrice = "11.99";
	m20Mp3AlbumPrice = "not";
	m20PriceDescription = "(CDs shipped)";
	m21AlbumPrice = "8.99";
	m21Mp3AlbumPrice = "not";
	m21PriceDescription = "(CDs shipped)";
	m22AlbumPrice = "17.99";
	m22Mp3AlbumPrice = "not";
	m22PriceDescription = "(CDs shipped)";
	m75AlbumPrice = "19.99";
	m75Mp3AlbumPrice = "not";
	m75PriceDescription = "(T-shirt shipped)";
	m999AlbumPrice = "not";
	m999Mp3AlbumPrice = "6.99";
	m1000AlbumPrice = "not";
	m1000Mp3AlbumPrice = "10.99";

//	Song Lists
	m1TrackList = "V.I.P.E.P.<br />\
			1 Gtrs4ever<br />\
			2 Vip600<br />\
			3 Carolina<br />\
			4 Jogging Suit<br />\
			5 Sunshine, Lollipops &amp; Rainbows<br />\
			<br />\
			S.M.D.E.P.<br />\
			1 Serious<br />\
			2 See Saw Swell<br />\
			3 Marianas T<br />\
			4 Run Off &amp; Marry<br />\
			5 On My Head";
	m2TrackList = "1 Serious<br />\
			2 See Saw Swell<br />\
			3 Marianas T<br />\
			4 Run Off &amp; Marry<br />\
			5 On My Head";
	m3TrackList = "1 We&#39;re #1<br />\
			2 Gtrs4ever<br />\
			3 Serious<br />\
			4 Get Up, Star<br />\
			5 See Saw Swell<br />\
			6 You Were There Too<br />\
			7 Runolf &amp; Mary<br />\
			8 Watch Out For Love<br />\
			9 Cross Your Fingers<br />\
			10 Cosmetic<br />\
			11 Advance<br />\
			12 Webster Letter<br />\
			13 On March St";
	m100TrackList = "1 The Letter S<br />\
			2 Alligator Shoes<br />\
			3 Don&#39;t Call<br />\
			4 Flash<br />\
			5 Tell Me The Truth<br />\
			6 OK Now<br />\
			7 Everyone&#39;s All Right<br />\
			8 Magic&#39;s Secrets<br />\
			9 Capistrano<br />\
			10 Sea In Your Room<br />\
			11 Here&#39;s What I Need";
	m101TrackList = "1 Annalee Is<br />\
			2 Follow Me Home<br />\
			3 Loneliness<br />\
			4 Home To Do<br />\
			5 Dawn Will Bring The Day<br />\
			6 Just To Fix (instrumental)";
	m50TrackList = "<strong>Bears</strong><br /><span class='song'>1 Never&nbsp;Have&nbsp;To&nbsp;Guess<br />2 Walk&nbsp;Away<br /></span>\
			<span class='purple'><strong>Ann&nbsp;Lynn</strong><br /><span class='song'>3 The&nbsp;Scene<br />4 Gnarl&nbsp;Carl<br /></span>\
			</span><strong>Satellite&nbsp;Class</strong><br /><span class='song'>5 Tom&nbsp;Petty&nbsp;Paid&nbsp;Off<br />6 Million&nbsp;Two&nbsp;One<br /></span>\
			<span class='purple'><strong>The&nbsp;Blank&nbsp;Tapes</strong><br /><span class='song'>7 It's&nbsp;So&nbsp;Hard&nbsp;To&nbsp;Let&nbsp;Go&nbsp;(Live)<br />\
			8 Boat&nbsp;Down&nbsp;The&nbsp;River&nbsp;(Live)<br /></span></span><strong>The&nbsp;Boyish&nbsp;Charms</strong><br /><span class='song'>9 Because&nbsp;I&nbsp;Swear<br />\
			10 How's&nbsp;Your&nbsp;Heart&nbsp;Helping&nbsp;Now<br /></span><span class='purple'><strong>Gingerbread&nbsp;Patriots</strong><br /><span class='song'>\
			11 A&nbsp;Story&nbsp;Of&nbsp;Peeple<br />12 Eyebear<br /></span></span><span style='color:#FFFF7F;'><strong>The&nbsp;World&nbsp;Record</strong><br /><span class='song'>\
			13 Serious<br />14 Get&nbsp;Up,&nbsp;Star<br />(*these are <a style='color:#FFFF7F; font-weight:bold;' href='javascript:juke(3)'>Guitars Forever</a> versions)</span></span><br />\
			<span class='purple'><strong>Sendaero</strong><br /><span class='song'>15 Erase&nbsp;Me<br />16 Sunshine&nbsp;And&nbsp;Noir<br /></span>\
			</span><strong>Slings</strong><br /><span class='song'>17 Walk&nbsp;With&nbsp;Me<br />18 How&nbsp;Quickly<br /></span>\
			<span class='purple'><strong>Spider</strong><br /><span class='song'>19 Midnight&nbsp;On&nbsp;The&nbsp;Nile<br />20 Maggie's&nbsp;Song&nbsp;For&nbsp;Alice<br /></span></span>";
	m20TrackList = "<strong><a class='bundle-reclink' href='javascript:juke(3)'>" + m3Album + "</a></strong><br /><span class='song'>" + m3TrackList + "</span><br /><br />\
			<strong><a class='bundle-reclink' href='javascript:juke(100)'>" + m100Album + "</a></strong><br /><span class='song'>" + m100TrackList + "</span>";
	m21TrackList = "<strong><a class='bundle-reclink' href='javascript:juke(100)'>" + m100Album + "</a></strong><br /><span class='song'>" + m100TrackList + "</span><br /><br />\
			<strong><a class='bundle-reclink' href='javascript:juke(101)'>" + m101Album + "</a></strong><br /><span class='song'>" + m101TrackList + "</span>";
	m22TrackList = "<strong><a class='bundle-reclink' href='javascript:juke(3)'>" + m3Album + "</a></strong><br /><span class='song'>" + m3TrackList + "</span><br /><br />\
			<strong><a class='bundle-reclink' href='javascript:juke(100)'>" + m100Album + "</a></strong><br /><span class='song'>" + m100TrackList + "</span><br /><br />\
			<strong><a class='bundle-reclink' href='javascript:juke(101)'>" + m101Album + "</a></strong><br /><span class='song'>" + m101TrackList + "</span><br /><br />\
			<strong><a class='bundle-reclink' href='javascript:juke(50)'>" + m50Album + "</a></strong><br />" + m50TrackList + "</span></span>";
	m75TrackList = "<span style='font-size:1.2em;font-weight:bold;'>\
			Womens</span><br />\
			1 Medium - white logo<br />\
			3 Medium - blue logo<br /><br />\
			<span style='font-size:1.2em;font-weight:bold;'>\
			Mens</span><br />\
			1 Small - white logo<br />\
			1 Small - blue logo<br />\
			1 Medium - white logo<br />\
			2 Medium - blue logo<br />\
			0 Large - white logo<br />\
			0 Large - blue logo<br />\
			1 XLarge - white logo<br />\
			0 XLarge - blue logo<br />";
	m999TrackList = "";
	m1000TrackList = "";
	
//	Choose Album, Price, Height, Width
	mAlbum = window["m" + mRecord + "Album"];
	mAlbumNoHTML = mAlbum; //this is replaced below for the bundles 20, 21, 22
	mArtist = window["m" + mRecord + "Artist"];
	mAlbumPrice = window["m" + mRecord + "AlbumPrice"];
	mMp3AlbumPrice = window["m" + mRecord + "Mp3AlbumPrice"];
	mPriceDescription = window["m" + mRecord + "PriceDescription"];
	mTrackList = window["m" + mRecord + "TrackList"];
	if (mRecord==3){mHeight = 171;} //non-square cover image
	if (mRecord==75){mWidth = 146;} //non-square cover image
	if (mRecord==101){mWidth = 146;} //non-square cover image

switch (mRecord)
{
case 1:
// VIPEP variables
	mNumTracks = 5;
//	mSampleFile = ["","ve01_gf.mp3","ve02_v6.mp3","ve03_c.mp3","ve04_js.mp3","ve05_slr.mp3"];
//	mSongFile = ["","Gtrs4ever","VIP600","Carolina","Jogging Suit","Sunshine, Lollipops, &amp; Rainbows"];
	mDiscSaleType = 2; //no sale
	mPic = "EPsCombined.jpg";
	mCatalog = "FLAT02";
	mDescription = "<span style='font-size:1.5em;font-weight:bold;'>V.I.P.E.P.</span> - Created for the April 2004 Midwest tour, re-pressed twice, and now sold out for good, \
					the VIPEP was our debut release (unless you count the untitled 50-run 3-song EP released \
					at our very first show). It featured what would become the title track to <a href='javascript: juke(3)'>\
					Guitars Forever</a>, two cover songs, and two other gems.  About the covers: VIP600 was written \
					&amp; originally performed by <a title='to the Ashtray Boy homepage' target='_blank' \
					href='http://www.ashtrayboy.net/'>Asthray Boy</a>; Sunshine, Lollipops, &amp; Rainbows was originally \
					performed by Lesley Gore, written by Hamlisch and Liebling.<br /><br />\
					We reserve the right to release tracks 2, 3, 4, &amp; 5 again at an unexpected time of our choosing.<br /><br /><br /><br />\
					<span style='font-size:1.5em;font-weight:bold;'>S.M.D.E.P.</span> - Created for the &quot;Guests of SMD&quot; tour in April '05, re-pressed for the July '05 tour, \
					and is now sold out for good. SMD is a pal of ours who lives in Madison, and invited us to tour with his band. \
					We named the disc in his honor. His website is <a target='_blank' href='http://seanmichaeldargan.com/'>here</a>.<br /><br />\
					About the songs: 'See Saw Swell' appeared in this same form on GF; the version of 'Serious' here differs from \
					the final GF version only in that it features no trumpet (and sounds shockingly naked without it); \
					'Run Off &amp; Marry' is an acoustic version of the similarly-titled GF number. 'Marianas T' and 'On My Head' died \
					with the second pressing of this EP, but they'll be back soon.<br /><br /><br /><br />";
break;
case 2:
// SMDEP variables
	mNumTracks = 5;
//	mSampleFile = ["","se01_s.mp3","se02_sss.mp3","se03_mt.mp3","se04_roam.mp3","se05_omh.mp3"];
//	mSongFile = ["","Serious","See Saw Swell","Marianas T","Run Off &amp; Marry","On My Head"];
	mDiscSaleType = 2; //no sale
	mPic = "flat03large.jpg";
	mCatalog = "FLAT03";
	mDescription = "S.M.D.E.P. created for the &quot;Guests of SMD&quot; tour in April '05, re-pressed for the July '05 tour, \
					and is now sold out for good. SMD is a pal of ours who lives in Madison, and invited us to tour with his band. \
					We named the disc in his honor. His website is <a target='_blank' href='http://seanmichaeldargan.com/'>here</a>.<br /><br />\
					About the songs: 'See Saw Swell' appeared in this same form on GF; the version of 'Serious' here differs from \
					the final GF version only in that it features no trumpet (and sounds shockingly naked without it); \
					'Run Off &amp; Marry' is an acoustic version of the similarly-titled GF number. 'Marianas T' and 'On My Head' died \
					with the second pressing of this EP, but they'll be back soon.<br /><br /><br /><br />";
break;
case 3:
// GUITARS FOREVER variables
	mNumTracks = 13;
	mAlbumPath = "http://theworldrecord.net/dnlds/autodownload.php?mType=.zip&mSongName=GuitarsForever";
	for (i=1;i<=mNumTracks;i++) {mBand[i] = "The World Record"; mPrice[i] = mStandardMp3Price;}
	mPrice[11] = mShortMp3Price;
	mSampleFile = ["","gf01_wn1.mp3","gf02_gf.mp3","gf03_s.mp3","gf04_gus.mp3","gf05_sss.mp3","gf06_ywt2.mp3","gf07_ram.mp3","gf08_wo4l.mp3","gf09_cyf.mp3","gf10_c.mp3","gf11_a.mp3","gf12_wl.mp3","gf13_oms.mp3"];
	mSongFile = ["","01%20We&#39;re%20%231","02%20Gtrs4ever","03%20Serious","04%20Get%20Up,%20Star","05%20See%20Saw%20Swell","06%20You%20Were%20There%20Too","07%20Runolf%20%26%20Mary","08%20Watch%20Out%20For%20Love","09%20Cross%20Your%20Fingers","10%20Cosmetic","11%20Advance","12%20Webster%20Letter","13%20On%20March%20St"];
	mSongTitle = ["","We&#39;re #1","Gtrs4ever","Serious","Get Up, Star","See Saw Swell","You Were There Too","Runolf &amp; Mary","Watch Out For Love","Cross Your Fingers","Cosmetic","Advance","Webster Letter","On March St"];
	mDiscSaleType = 1; //internal sale
	mPic = "t108fl.jpg";
	mCatalog = "TBO108";
	mDescription = "<strong>Note - this item is also available as part of:</strong><br /> \
					<strong><a class='bundle-reclink' href='javascript:juke(20)'>The Full-Length Bundle</a></strong><br />\
					<strong><a class='bundle-reclink' href='javascript:juke(22)'>The Everything Bundle</a></strong><br /><br />\
					<strong>It's the debut long-player from L.A.'s finest!</strong> 13 very special songs, with appearances by Will Courtney, \
					Randy Guss, and Ted Schumacher.  Mostly recorded in our practice space during 05 and 06, whenever the \
					speed/math-metal band <strong>Artisan</strong> (no link available) were not practicing next door.<br /><br />\
					For song lyrics and who played what when and why, click <a href='rooster-read.html'>here</a>.<br /><br /><br /><br />";
break;
case 100:
// EVERYONE'S ALL RIGHT variables
	mNumTracks = 11;
	mAlbumPath = "http://theworldrecord.net/dnlds/autodownload.php?mType=.zip&mSongName=EveryonesAllRight";
	for (i=1;i<=mNumTracks;i++) {mBand[i] = "Andrew Creighton"; mPrice[i] = mStandardMp3Price;}
	mPrice[6] = mShortMp3Price;
	mPrice[11] = mShortMp3Price;
	mSampleFile = ["","ear01_tls.mp3","ear02_as.mp3","ear03_dc.mp3","ear04_f.mp3","ear05_tmtt.mp3","ear06_on.mp3","ear07_ear.mp3","ear08_ms.mp3","ear09_c.mp3","ear10_siyr.mp3","ear11_hwin.mp3"];
	mSongFile = ["","01%20The%20Letter%20S","02%20Alligator%20Shoes","03%20Don&#39;t%20Call","04%20Flash","05%20Tell%20Me%20The%20Truth","06%20OK%20Now","07%20Everyone&#39;s%20All%20Right","08%20Magic&#39;s%20Secrets","09%20Capistrano","10%20Sea%20In%20Your%20Room","11%20Here&#39;s%20What%20I%20Need"];
	mSongTitle = ["","The Letter S","Alligator Shoes","Don&#39;t Call","Flash","Tell Me The Truth","OK Now","Everyone&#39;s All Right","Magic&#39;s Secrets","Capistrano","Sea In Your Room","Here&#39;s What I Need"];
	mDiscSaleType = 1; //internal sale
	mPic = "flat01_an.jpg";
	mCatalog = "FLAT01";
	mDescription = "<strong>Note - this item is also available as part of:</strong><br /> \
					<strong><a class='bundle-reclink' href='javascript:juke(20)'>The Full-Length Bundle</a></strong><br />\
					<strong><a class='bundle-reclink' href='javascript:juke(21)'>The Solo Records Bundle</a></strong><br />\
					<strong><a class='bundle-reclink' href='javascript:juke(22)'>The Everything Bundle</a></strong><br /><br />\
					Recorded during a 4-month stay in Phoenix while moving from Chicago to Los Angeles, in an art studio that his mom found for him. \
					Andy makes all the noises except the handclaps which are his mom &amp; dad, who remained uncredited until now.<br /><br />\
					Comes with complete lyric booklet including photos from the lonely sessions and original watercolors by <a target='_blank' \
					href='http://oracletown.com/artists/diana_creighton.htm'>Diana Creighton.</a><br /><br /><br /><br />";
break;
case 101:
// AARON BALLARD'S FRUIT variables
	mNumTracks = 6;
	mAlbumPath = "http://theworldrecord.net/dnlds/autodownload.php?mType=.zip&mSongName=AaronBallardsFruit";
	for (i=1;i<=mNumTracks;i++) {mBand[i] = "Aaron Ballard"; mPrice[i] = mStandardMp3Price;}
	mSampleFile = ["","abf01_ai.mp3","abf02_fmh.mp3","abf03_l.mp3","abf04_h2d.mp3","abf05_dwbtd.mp3","abf06_jtf.mp3"];
	mSongFile = ["","01%20Annalee%20Is","02%20Follow%20Me%20Home","03%20Loneliness","04%20Home%20To%20Do","05%20Dawn%20Will%20Bring%20The%20Day","06%20Just%20To%20Fix%20(instrumental)"];
	mSongTitle = ["","Annalee Is","Follow Me Home","Loneliness","Home To Do","Dawn Will Bring The Day","Just To Fix (instrumental)"];
	mDiscSaleType = 1; //internal sale
	mPic = "flat04large.gif";
	mCatalog = "FLAT04";
	mDescription = "<strong>Note - this item is also available as part of:</strong><br /> \
					<strong><a class='bundle-reclink' href='javascript:juke(21)'>The Solo Records Bundle</a></strong><br />\
					<strong><a class='bundle-reclink' href='javascript:juke(22)'>The Everything Bundle</a></strong><br /><br />\
					This cd-r of home recordings was performed by Aaron at his various abodes around the country. 6 charming tracks \
					played on whatever instruments were on hand at the time.  Comes in a miniature shopping bag, a definite collector's item.<br /><br /><br /><br />";
break;
case 50:
// SOUNDS WHEN WE MOVE variables
	mDiscSaleType = 4; //internal sale - no mp3s
	mPic = "kazu_tsswm.jpg";
	mCatalog = "KAZU01";
	mDescription = "<strong>Note - this item is also available as part of:</strong><br /> \
					<strong><a class='bundle-reclink' href='javascript:juke(22)'>The Everything Bundle</a></strong><br /><br />\
					This compilation was put together by <a target='_blank' href='http://www.myspace.com/slings'><strong>Slings</strong></a> \
					from the OC. They rule. You can rule alongside them as their queen or perhaps some sort of court clerk - \
					just order a copy today. 20 songs, 10 bands, 3 bucks, 2 1/2 times better than your favorite compilation. \
					Includes 'Serious' and 'Get Up, Star'.<br /><br /><br /><br />";
break;

// BUNDLES
case 20:
// Full-length
	mDiscSaleType = 4; //internal sale - no mp3s
	mPic = "rooster-hearown_FLB.gif";
	mCatalog = "TBO108 / FLAT01";
	mAlbumNoHTML = "Full-length Bundle - Guitars Forever / Everyone&#39;s All Right";
	mDescription = "This bundle includes The World Record's now classic 2006 release &quot;Guitars Forever&quot; and \
					its prequel, Andy's 2001 solo offering &quot;Everyone's All Right&quot;. Together at last.<br /><br /><br /><br />";
break;
case 21:
// Solo
	mDiscSaleType = 4; //internal sale - no mp3s
	mPic = "rooster-hearown_SRB.gif";
	mCatalog = "FLAT01 / FLAT04";
	mAlbumNoHTML = "Solo Bundle - Everyone&#39;s All Right / Aaron Ballard&#39;s Fruit";
	mDescription = "This bundle includes the solo efforts by The World Record's twin towers - Aaron Ballard and Andy Creighton. \
					Help them remain friends. Buy the bundle.<br /><br /><br /><br />";
break;
case 22:
// Everything
	mDiscSaleType = 4; //internal sale - no mp3s
	mPic = "rooster-hearown_ETB.gif";
	mCatalog = "TBO108 / KAZU01 / FLAT01 / FLAT04";
	mAlbumNoHTML = "Everything Bundle - Guitars Forever / Sounds When We Move / Everyone&#39;s All Right / Aaron Ballard&#39;s Fruit";
	mDescription = "The name says it all. You get everything we have to offer - the debut full-length, the two solo efforts, and \
					the compilation. Why settle for something when you could have everything?<br /><br /><br /><br />";
break;

// MOST POPULAR MP3s
case 999:
	mNumTracks = 8;
	mAlbumNoHTML = "TWR Top " + mNumTracks;
	mAlbumPath = "";
	for (i=1;i<=mNumTracks;i++) {mPrice[i] = mStandardMp3Price;}
	mPrice[4] = mShortMp3Price;
	for (i=1;i<=3;i++) {mBand[i] = "The World Record";}
	mBand[4] = "Andrew Creighton";
	mBand[5] = "Andrew Creighton";
	mBand[6] = "Aaron Ballard";
	mBand[7] = "The World Record";
	mBand[8] = "Andrew Creighton";
	mSampleFile = ["","gf01_wn1.mp3","gf03_s.mp3","gf02_gf.mp3","ear06_on.mp3","ear09_c.mp3","abf02_fmh.mp3","gf06_ywt2.mp3","ear01_tls.mp3"];
	mSongFile = ["","01%20We&#39;re%20%231","03%20Serious","02%20Gtrs4ever","06%20OK%20Now","09%20Capistrano","02%20Follow%20Me%20Home","06%20You%20Were%20There%20Too","01%20The%20Letter%20S"];
	mSongTitle = ["","We&#39;re #1","Serious","Gtrs4ever","OK Now","Capistrano","Follow Me Home","You Were There Too","The Letter S"];
	mDiscSaleType = 5; //1st page - top 8
	mPic = "";
	mCatalog = "TOP8MP3S";
	mDescription = "";
break;

// LIST OF ALL MP3s
case 1000:
	mNumTracks = 30;
	mAlbumNoHTML = "All the Mp3s in the World";
	mAlbumPath = "http://theworldrecord.net/dnlds/autodownload.php?mType=.zip&mSongName=AllTheMp3s";
	for (i=1;i<=mNumTracks;i++) {mPrice[i] = mStandardMp3Price;}
	mPrice[11] = mShortMp3Price;
	mPrice[19] = mShortMp3Price;
	mPrice[24] = mShortMp3Price;
	for (i=1;i<=13;i++) {mBand[i] = "The World Record";}
	for (i=14;i<=24;i++) {mBand[i] = "Andrew Creighton";}
	for (i=25;i<=30;i++) {mBand[i] = "Aaron Ballard";}
	mSampleFile = ["","gf01_wn1.mp3","gf02_gf.mp3","gf03_s.mp3","gf04_gus.mp3","gf05_sss.mp3","gf06_ywt2.mp3","gf07_ram.mp3","gf08_wo4l.mp3","gf09_cyf.mp3","gf10_c.mp3","gf11_a.mp3","gf12_wl.mp3","gf13_oms.mp3","ear01_tls.mp3","ear02_as.mp3","ear03_dc.mp3","ear04_f.mp3","ear05_tmtt.mp3","ear06_on.mp3","ear07_ear.mp3","ear08_ms.mp3","ear09_c.mp3","ear10_siyr.mp3","ear11_hwin.mp3","abf01_ai.mp3","abf02_fmh.mp3","abf03_l.mp3","abf04_h2d.mp3","abf05_dwbtd.mp3","abf05_jtf.mp3"];
	mSongFile = ["","01%20We&#39;re%20%231","02%20Gtrs4ever","03%20Serious","04%20Get%20Up,%20Star","05%20See%20Saw%20Swell","06%20You%20Were%20There%20Too","07%20Runolf%20%26%20Mary","08%20Watch%20Out%20For%20Love","09%20Cross%20Your%20Fingers","10%20Cosmetic","11%20Advance","12%20Webster%20Letter","13%20On%20March%20St","01%20The%20Letter%20S","02%20Alligator%20Shoes","03%20Don&#39;t%20Call","04%20Flash","05%20Tell%20Me%20The%20Truth","06%20OK%20Now","07%20Everyone&#39;s%20All%20Right","08%20Magic&#39;s%20Secrets","09%20Capistrano","10%20Sea%20In%20Your%20Room","11%20Here&#39;s%20What%20I%20Need","01%20Annalee%20Is","02%20Follow%20Me%20Home","03%20Loneliness","04%20Home%20To%20Do","05%20Dawn%20Will%20Bring%20The%20Day","06%20Just%20To%20Fix%20(instrumental)"];
	mSongTitle = ["","We&#39;re #1","Gtrs4ever","Serious","Get Up, Star","See Saw Swell","You Were There Too","Runolf &amp; Mary","Watch Out For Love","Cross Your Fingers","Cosmetic","Advance","Webster Letter","On March St","The Letter S","Alligator Shoes","Don&#39;t Call","Flash","Tell Me The Truth","OK Now","Everyone&#39;s All Right","Magic&#39;s Secrets","Capistrano","Sea In Your Room","Here&#39;s What I Need","Annalee Is","Follow Me Home","Loneliness","Home To Do","Dawn Will Bring The Day","Just To Fix (instrumental)"];
	mDiscSaleType = 3; //mp3s only
	mPic = "rooster-hearown_MP3s.gif";
	mCatalog = "MP3HEAVEN";
	mDescription = "<span style='font-size:2em;'>Here are all the mp3s we currently have available at this site. Knock yourself out.<br /><br /></span>\
					<span style='font-size:1.5em;'>If you have any questions, feel free to write us <a href='rooster-nag.html'>here</a>.</span>";
break;

case 75:
// T-shirts
	mDiscSaleType = 6; //t-shirt - internal sale - no mp3s
	mPic = "MensChickenT.jpg";
	mCatalog = "FLAT04";
	mAlbumNoHTML = "The World Record - Spy Shirt (will contact you for size &amp; logo color before charging your account)";
	mDescription = "<span style='font-size:1.5em; font-weight:bold;'>Made in the USA</span> (Los Angeles to be precise). This handsome navy blue American Apparel t-shirt features the spy with the briefcase\
		that you see all over the website. Yours for under $20 shipped.<br /><br />Logo is available in White or Light Blue. Check the inventory to the right for availability.<br /><br /><br /><br />";
break;

default:
	mNumTracks = 0;
	mDiscSaleType = "";
break;
}

mAlbumCover = "<img src='images/" + mPic + "' width='" + mWidth + "' height='" + mHeight + "' alt='' />";

// BUILD MP3 SAMPLE TABLE - currently only for 3, 100, 101, 999, 1000

// mPlayTablePt1 + mSampleList + mPlayTablePt2 + mRowList

if (mRecord==3||mRecord==100||mRecord==101||mRecord==999||mRecord==1000)
{
	for (i=1;i<=mNumTracks;i++)
		{
		mSamplepath[i] = "http://theworldrecord.net/mp3samples/sample_" + mSampleFile[i];
		mSongpath[i] = "http://theworldrecord.net/dnlds/autodownload.php?mType=.mp3&mSongName=" + mSongFile[i];
		mBuyButton[i] = "\
			<div style='max-height: 23px; overflow: hidden;'>\
				<form action='https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/421346692967401' id='BB_BuyButtonForm' method='post' name='BB_BuyButtonForm'>\
				<input name='item_name_1' type='hidden' value='"+mBand[i]+"'/>\
				<input name='item_description_1' type='hidden' value='"+mSongTitle[i]+"' />\
				<input name='item_quantity_1' type='hidden' value='1'/>\
				<input name='item_price_1' type='hidden' value='"+mPrice[i]+"'/>\
				<input name='item_currency_1' type='hidden' value='USD'/>\
				<input name='shopping-cart.items.item-1.digital-content.description' type='hidden' \
				value='<span style=&quot;font-weight:bold; font-size:1.1em;&quot;>THANK YOU for your purchase of \
				<span style=&quot;color:blue;&quot;>"+mBand[i]+" - "+mSongTitle[i]+".</span><br /><br />\
				To download it, <a href=&quot;"+mSongpath[i]+"&quot; style=&quot;color:red;&quot;>CLICK HERE</a>.</span>'/>\
				<input name='_charset_' type='hidden' value='utf-8'/>\
				<input alt='' src='images/rooster-buy_mp3.gif?merchant_id=421346692967401&amp;w=50&amp;h=20&amp;style=trans&amp;variant=text&amp;loc=en_US' type='image'/>\
				</form>\
			</div>";
		}

	mPlayTablePt1 = "\
		<table id='song-table'>\
			<tr><td class='play-all-row' colspan='4'><span id='playallsamples'>Play All Songs:</span><object style='position:relative; left:10px;' type='application/x-shockwave-flash' data='player_mp3_multi.swf' width='133' height='19'>\
				<param name='movie' value='player_mp3_multi.swf' />\
				<param name='FlashVars' value='bgcolor=663366&amp;bgcolor1=815B87&amp;bgcolor2=000000&amp;buttoncolor=FFFF7F&amp;buttonovercolor=BBAA7B&amp;showvolume=1&amp;";
	mSongPlayCellPt1 = "\
		<object type='application/x-shockwave-flash' data='player_mp3_maxi.swf' width='25' height='20'>\
			<param name='movie' value='player_mp3_maxi.swf' />\
			<param name='FlashVars' value='mp3=";
	mSongPlayCellPt2 = "&amp;showslider=0&amp;width=25&amp;bgcolor=663366&amp;bgcolor1=815B87&amp;bgcolor2=663366&amp;buttoncolor=FFFF7F&amp;buttonovercolor=BBAA7B&amp;showvolume=0' /></object>";
	mBuySongPt1 = "";
	mBuySongPt2 = "";
	mSampleList = "mp3=";
	mRowList = "";
	mDivider = "|";
	
// Build mSampleList and mRowList (main part of table)
	for (i=1;i<=mNumTracks;i++)
		{
		if (i==mNumTracks){mDivider = "";}
		mSampleList = mSampleList + mSamplepath[i] + mDivider;
		mRowList = mRowList + "<tr><td>" + mSongPlayCellPt1 + mSamplepath[i] + mSongPlayCellPt2 + "\
		</td><td class='title-column'>" + i + " " + mSongTitle[i] + "</td><td>" + mPrice[i] + "\
		</td><td>"+mBuyButton[i]+"</td></tr>";
		}

// Buy Mp3 Album cell
	mPlayTablePt2 = mSampleList + "' /></object></td></tr>\
			<tr><td colspan='5'>&nbsp;</td></tr>\
			<tr id='header-row'><td>Play</td><td class='title-column'>Song Title</td><td>Price</td><td>Buy from<br />Google Checkout</td></tr>\
			<tr><td colspan='5'>&nbsp;</td></tr>" + mRowList + "<tr><td colspan='5'>&nbsp;</td></tr></table><br /><br />";
	mPlayTable = mPlayTablePt1 + mPlayTablePt2;
}
else if (mRecord==75)
{
	mPlayTable = "<span class='tracklist-header'><br />INVENTORY</span><br /><br /><div id='tracklist'>" + mTrackList + "</div>";
}
else
{
	mPlayTable = "<span class='tracklist-header'><br />TRACKS:</span><br /><br /><div id='tracklist'>" + mTrackList + "</div>";
}
	

// Prices and Google buy button
	
if (mMp3AlbumPrice=="not")
{
	mTwoPrices = "<span class='albumprice'>$" + mAlbumPrice + "</span> <span class='price-kind'>" + mPriceDescription + "</span>";
}
else
{
	mTwoPrices = "<span class='albumprice'>$" + mAlbumPrice + "</span> <span class='price-kind'>(CD shipped)</span><br />\
		<span class='albumprice'>$" + mMp3AlbumPrice + "</span> <span class='price-kind'>(mp3 album)</span>";

	mMp3AlbumBuyButton = "<div style='max-height: 30px; overflow: hidden;'>\
				<form action='https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/421346692967401' id='BB_BuyButtonForm' method='post' name='BB_BuyButtonForm'>\
				<input name='item_name_1' type='hidden' value='"+mBand[1]+"'/>\
				<input name='item_description_1' type='hidden' value='"+mAlbumNoHTML+" ("+mNumTracks+"-song digital album)' />\
				<input name='item_quantity_1' type='hidden' value='1'/>\
				<input name='item_price_1' type='hidden' value='"+mMp3AlbumPrice+"'/>\
				<input name='item_currency_1' type='hidden' value='USD'/>\
				<input name='shopping-cart.items.item-1.digital-content.description' type='hidden' \
				value='<span style=&quot;font-weight:bold; font-size:1.1em;&quot;>THANK YOU for your purchase of \
				<span style=&quot;color:blue;&quot;>"+mBand[1]+" - "+mAlbumNoHTML+" ("+mNumTracks+"-song digital album).</span><br /><br />\
				To download it, <a href=&quot;"+mAlbumPath+"&quot; style=&quot;color:red;&quot;>CLICK HERE</a>.</span>'/>\
				<input name='_charset_' type='hidden' value='utf-8'/>\
				<input alt='' src='images/rooster-buy_mp3_album2.gif?merchant_id=421346692967401&amp;w=102&amp;h=30&amp;style=trans&amp;variant=text&amp;loc=en_US' type='image'/>\
				</form>\
			</div>";
}



switch (mDiscSaleType) {
	case 1:	//internal disc sale w/mp3 album sale button - send to google cart - G4E/EAR/ABF
		mDiscBuyLink = "<span class='bandname'>" + mArtist + "</span><br /><span class='albumname'>" + mAlbum + "</span><br />" + mTwoPrices + "<br /><br />\
		<div class='product'>\
			<input value='"+mAlbumNoHTML+"' class='product-title' type='hidden'>\
			<input value='images/"+mPic+"' class='product-image' type='hidden'>\
			<input value='"+mAlbumPrice+"' class='product-price' type='hidden'>\
			<div title='Add to cart' role='button' tabindex='0' class='googlecart-add-button'></div>\
		</div>" + mMp3AlbumBuyButton;
		
	break;
	case 2: //no disc sale - out of print - EPs button
		mDiscBuyLink = "<span class='bandname'>" + mArtist + "</span><br /><span class='albumname'>" + mAlbum + "</span><br /><br /><img src='images/rooster-sold_out.gif' width='101' height='30' />";
	break;
	case 3: //no disc sale - mp3s only - MP3s button
		mDiscBuyLink = "<span class='bandname'>All the Mp3s</span><br /><span class='albumprice'>$" + mMp3AlbumPrice + "</span><br /><br />" + mMp3AlbumBuyButton +
		"<br /><span style='font-size:1.1em; font-weight:bold; color:#FFFF7F;'>or buy single songs<img id='arrow' alt='' src='images/rooster-hearown_arrow.gif' width='30' height='14' /></span>";
	break;
	case 4:	//internal disc sale w/no mp3 sales - send to google cart - TSWWM
		mDiscBuyLink = "<span class='bandname'>" + mArtist + "</span><br /><span class='albumname'>" + mAlbum + "</span><br />" + mTwoPrices + "<br /><br />\
		<div class='product'>\
			<input value='"+mAlbumNoHTML+"' class='product-title' type='hidden'>\
			<input value='images/"+mPic+"' class='product-image' type='hidden'>\
			<input value='"+mAlbumPrice+"' class='product-price' type='hidden'>\
			<div title='Add to cart' role='button' tabindex='0' class='googlecart-add-button'></div>\
		</div>";
	break;
	case 5: //no disc sale - mp3s only - 1st page
		mAlbumCover = "";
		mDiscBuyLink = "";
		mDescription = "<div style='font-size:2.5em; color:#FFFF7F;'>DEAR FRIENDS</div><br />\
			<span style='font-size:1.4em;'>Nice to see you.<br /><br />On this page you'll find:</span><br />\
			<span style='font-size:1.2em;'>- <a href='javascript:juke(75)'>T-shirts</a> (get 'em while they last)<br />- The TWR top 8 mp3s (right there)<img id='arrow' alt='' src='images/rooster-hearown_arrow.gif' width='30' height='14' />\
			<br />- Our releases in CD or mp3 format<br />- Sample clips of our songs<br />- Notes on all our releases<br />- Super hot multi-CD bundle packages<br /><br /></span>\
			<span style='font-size:1.4em;'>All mp3s are high-quality 320kbps items with embedded cover art and in most cases lyrics too.<br /><br />Have fun.</span>";
	break;
	case 6:	//internal sale w/no mp3 sales - send to google cart - T-shirts
		mDiscBuyLink = "<span class='bandname'>" + mArtist + "</span><br /><span class='albumname'>" + mAlbum + "</span><br />" + mTwoPrices + "<br /><br />\
		<div class='product'>\
			<input value='"+mAlbumNoHTML+"' class='product-title' type='hidden'>\
			<input value='images/"+mPic+"' class='product-image' type='hidden'>\
			<input value='"+mAlbumPrice+"' class='product-price' type='hidden'>\
			<div title='Add to cart' role='button' tabindex='0' class='googlecart-add-button'></div>\
		</div>";
	}


			document.getElementById("albumcover").innerHTML = mAlbumCover;
			document.getElementById("link1").innerHTML = mDiscBuyLink;
			document.getElementById("writeup").innerHTML = mDescription;
			document.getElementById("tracks").innerHTML = mPlayTable;

}

//-----------------------------OTHER-FUNCTIONS-------------------------------------------------------------------

function twrOver(mPage) {document.getElementById("cell01").src ="images/rooster-" + mPage + "_01white.gif";}
function twrOut(mPage) {document.getElementById("cell01").src ="images/rooster-" + mPage + "_01.gif";}
function seeOver(mPage) {document.getElementById("cellA").src ="images/rooster-" + mPage + "_Aseewhite.gif";}
function seeOut(mPage) {document.getElementById("cellA").src ="images/rooster-" + mPage + "_Asee.gif";}
function readOver(mPage) {document.getElementById("cellB").src ="images/rooster-" + mPage + "_Breadwhite.gif";}
function readOut(mPage) {document.getElementById("cellB").src ="images/rooster-" + mPage + "_Bread.gif";}
function hearownOver(mPage) {document.getElementById("cellC").src ="images/rooster-" + mPage + "_Chearownwhite.gif";}
function hearownOut(mPage) {document.getElementById("cellC").src ="images/rooster-" + mPage + "_Chearown.gif";}
function nagOver(mPage) {document.getElementById("cellD").src ="images/rooster-" + mPage + "_Dnagwhite.gif";}
function nagOut(mPage) {document.getElementById("cellD").src ="images/rooster-" + mPage + "_Dnag.gif";}
function linkOver(mPage) {document.getElementById("cellE").src ="images/rooster-" + mPage + "_Elinkwhite.gif";}
function linkOut(mPage) {document.getElementById("cellE").src ="images/rooster-" + mPage + "_Elink.gif";}
function peepOver(mPage) {document.getElementById("cellF").src ="images/rooster-" + mPage + "_Fpeepwhite.gif";}
function peepOut(mPage) {document.getElementById("cellF").src ="images/rooster-" + mPage + "_Fpeep.gif";}

function vidwatch(mVidnum) {
	switch(mVidnum) {
		case 1:
			mVidloc = "http://www.youtube.com/v/w4nrlkpnV1U?fs=1&amp;hl=en_US"; // we're #1 - semi-official
		break;
		case 2:
			mVidloc = "http://www.youtube.com/v/yzX-SWoe-CM?fs=1&amp;hl=en_US"; // gonna leave you iv - glass
		break;
		case 3:
			mVidloc = "http://www.groupee.com/vr/t/0/c/90081955436285118/p/90081955436285124/g.swf"; // get up star - groupee
		break;
		case 4:
			mVidloc = "http://www.youtube.com/v/SuxJw16Ush0?fs=1&amp;hl=en_US"; // cats - glass
		break;
		case 5:
			mVidloc = "http://www.groupee.com/vr/t/0/c/90081955436285118/p/90081955436285123/g.swf"; // serious - groupee
		break;
		case 6:
			mVidloc = "http://www.youtube.com/v/qGLHrEAlPqw?fs=1&amp;hl=en_US"; // black canyon range - glass
		break;
		case 7:
			mVidloc = "http://www.youtube.com/v/pslo1aRBg2U?fs=1&amp;hl=en_US"; // we're #1 - groupee
		break;
		case 8:
			mVidloc = "http://www.youtube.com/v/bYEk33adi9g?fs=1&amp;hl=en_US"; // serious - glass
		break;
		case 9:
			mVidloc = "http://www.youtube.com/v/t2fNoSUy2aI?hl=en&amp;fs=1" // a little more time - frame shop
		break;
		case 10:
			mVidloc = "http://www.youtube.com/v/6AsXNoR7w3k?hl=en&amp;fs=1"; // say sayonara - frame shop
		break;
		case 11:
			mVidloc = "http://www.theworldrecord.net/vids/TWR-Liar-LeaveYouIV.m4v"; // liar/leave U 4 - frame shop
		break;
		case 12:
			mVidloc = "http://www.youtube.com/v/hhQQpi58Gl0?hl=en&amp;fs=1"; // pristine - le switch farewell
		break;
	}

	document.getElementById("video-cell").innerHTML = "\
	<object width='550' height='333'>\
		<param name='movie' value='" + mVidloc + "'></param>\
		<param name='allowFullScreen' value='true'></param>\
		<param name='allowscriptaccess' value='always'></param>\
		<embed src='" + mVidloc + "' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='550' height='333'></embed>\
	</object>";

}

function irritainopop(mIrrinum) {
	switch(mIrrinum) {
		case 1: // jefferson starbucks
			mTexty = "<div style='width:525px; height:460px; overflow:auto; font-size:1.2em; font-weight:normal; text-align:left;'>\
				<span style='font-size:1.6em;'>JEFFERSON STARBUCKS</span><br /><br />\
\
				The Scene:<br />\
				<div style='font-family:Arial Narrow;'>\
				<strong>The Starbucks Licensed Stores Awards ceremony</strong>, a celebratory/motivational leadership conference,\
				held in the fourth-floor ballroom of the <strong>Washington State Convention Center</strong>. 'Boring stuff, as usual corporate\
				things go,' writes Cilantro. But things took a turn for the surreal when the emcee announced 'Something special for you\
				all--<strong>Jefferson Starbucks!</strong>' after which the <strong>hydraulic stage</strong> rotated to reveal a <strong>pretend band</strong>\
				comprised of the upper-management folk the audience had heard speak earlier in the evening. 'They were standing in front of a huge\
				American Bandstand-esque <strong>45 single</strong> dangling in the air. They all had on <strong>rock 'n' roll Halloween costumes</strong>:\
				pink glitter wigs, white fishnet shirts, fake leather pants, as well as <strong>big fake instruments</strong>--a huge, oversized pinata guitar\
				and keyboards.' From this most promising of plateaus, Jefferson Starbucks quickly ascended to the heavens, lip-synching\
				their way through a company-specific rewrite of Jefferson Starship's <strong>'We Built This City,'</strong> reborn as <strong>'We Built This Starbucks'</strong>\
				with lyrics rewritten to celebrate the Starbucks way. 'The crowd was stunned,' writes Cilantro.	'Eventually, the emcee berated them--'Come on you guys!\
				Dance! This is your band! This is for you!'--and the crowd half-heartedly got up and just stood there.' (A moment of silence for the million\
				deaths experienced by the audience during the song's merciless 4:48 running time.)<br /><br />\
				</div>\
				--David Schmader, <a target='_blank' href='http://www.thestranger.com/'>The Stranger</a>'s 'Last Days' columnist,\
				via <a target='_blank' href='http://slapnose.com/archives/2005/03/01/jefferson_starbucks/'>Slapnose.com</a>\
				</div>";
			mPlayer = "\
			<script type='text/javascript' src='swfobject.js'></script>\
			\
			<div id='flashPlayer01'>\
				  This text will be replaced by the flash music player.\
			</div>\
			\
			<script type='text/javascript'>\
				   var so = new SWFObject('playerMini.swf', 'mymovie', '69', '24', '7', '#003333');\
				   so.addVariable('autoPlay', 'no');\
				   so.addVariable('soundPath', 'film_music/10_BreezesOfHome.mp3');\
				   so.addVariable('overColor','#006633');\
				   so.write('flashPlayer01');\
			</script>";
		break;
		case 2:
			mVidloc = "http://www.youtube.com/v/yzX-SWoe-CM?fs=1&amp;hl=en_US"; // gonna leave you iv - glass
		break;
		case 3:
			mVidloc = "http://www.groupee.com/vr/t/0/c/90081955436285118/p/90081955436285124/g.swf"; // get up star - groupee
		break;
		case 4:
			mVidloc = "http://www.youtube.com/v/SuxJw16Ush0?fs=1&amp;hl=en_US"; // cats - glass
		break;
	}
	document.getElementById("irr-replace").innerHTML = "\
			<div id='rowI'>\
				<div id='cell04'><img src='images/rooster-link_05i.gif' alt='' /></div>\
				<div id='cell0I'><a href='rooster-link.html' style='font-size:1em; color:#FFFF7F; text-align:right;'>back to links</a>" + mTexty + "</div>\
				<div id='cell06'><img src='images/rooster-link_07i.gif' alt='' /></div>\
			</div>";
}

function poponclick(ArticleName) {
	testwindow=window.open(ArticleName, "",
	"menubar=0,status=1,titlebar=1,toolbar=0,top=0,left=0,resizable=0,scrollbars=0,location=0,width=10,height=10");
}

function flashpop() {alert("PLEASE DO NOT CLICK ON FLASH THE BEAGLE");}

