/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */

function juke(mRecord) {
	
	mTotalTraxx = 31;
	mStandardMp3Price = "0.79";
	mShortMp3Price = "0.49";
	mWidth = 190; //default cover image size
	mHeight = 190; //default cover image size
	mDiscBuyLink = "";
	mPlayTablePt1 = "";
	mPlayTablePt2 = "";

	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 = "The World Record - V.I.P.E.P.";
	m2Album = "The World Record - S.M.D.E.P.";
	m3Album = "The World Record - Guitars Forever";
	m50Album = "Various - The Sounds When We Move";
	m100Album = "Andrew Creighton - Everyone&#39;s All Right";
	m101Album = "Aaron Ballard&#39;s Fruit";
	m20Album = "Full-length Bundle - Guitars Forever / Everyone&#39;s All Right";
	m21Album = "Solo Bundle - Everyone&#39;s All Right / Aaron Ballard&#39;s Fruit";
	m22Album = "Everything Bundle - Guitars Forever / Sounds When We Move / Everyone&#39;s All Right / Aaron Ballard&#39;s Fruit";
	m1000Album = "Mp3 Heaven";
		
//	Album Prices
	m1AlbumPrice = "9999999.99";
	m2AlbumPrice = "9999999.99";
	m3AlbumPrice = " - $7.99";
	m3Mp3AlbumPrice = "5.49";
	m50AlbumPrice = " - $2.99";
	m100AlbumPrice = " - $6.99";
	m100Mp3AlbumPrice = "4.99";
	m101AlbumPrice = " - $3.99";
	m101Mp3AlbumPrice = "2.49";
	m20AlbumPrice = " - $11.99";
	m21AlbumPrice = " - $8.99";
	m22AlbumPrice = " - $17.99";
	m1000AlbumPrice = "9999999.99";
	m1000Mp3AlbumPrice = "10.99";

//	Song Lists
	m1TrackList = "1 Gtrs4ever<br />\
			2 Vip600<br />\
			3 Carolina<br />\
			4 Jogging Suit<br />\
			5 Sunshine, Lollipops &amp; Rainbows";
	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: yellow;'><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:yellow; 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>";
	m1000TrackList = "";
	
//	Choose Album, Price, Height, Width
	mAlbum = window["m" + mRecord + "Album"];
	mAlbumPrice = window["m" + mRecord + "AlbumPrice"];
	mMp3AlbumPrice = window["m" + mRecord + "Mp3AlbumPrice"];
	mTrackList = window["m" + mRecord + "TrackList"];
	if (mRecord==3){mHeight = 171;} //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 = "flat02large.jpg";
	mCatalog = "FLAT02";
	mDescription = "<span class='writeup-title'>" + mAlbum + "</span><br /><br />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 />" + mTrackList + "<br /><br />\
					We reserve the right to release tracks 2, 3, 4, &amp; 5 again at an unexpected time of our choosing.";
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 = "<span class='writeup-title'>" + mAlbum + "</span><br /><br />This EP was 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 />" + mTrackList + "<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 />";
break;
case 3:
// GUITARS FOREVER variables
	mNumTracks = 13;
	mAlbumTitle = "Guitars Forever";
	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 = "<span class='writeup-title'>" + mAlbum + mAlbumPrice + "</span><br /><br /><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 target='_blank' href='read.html'>here</a>.<br />";
break;
case 100:
// EVERYONE'S ALL RIGHT variables
	mNumTracks = 11;
	mAlbumTitle = "Everyone&#39;s All Right";
	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 = "<span class='writeup-title'>" + mAlbum + mAlbumPrice + "</span><br /><br /><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.<br />";
break;
case 101:
// AARON BALLARD'S FRUIT variables
	mNumTracks = 6;
	mAlbumTitle = "Aaron Ballard&#39;s Fruit";
	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 = "<span class='writeup-title'>" + mAlbum + mAlbumPrice + "</span><br /><br /><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 />";
break;
case 50:
// SOUNDS WHEN WE MOVE variables
	mDiscSaleType = 1; //internal sale
	mPic = "kazu_tsswm.jpg";
	mCatalog = "KAZU01";
	mDescription = "<span class='writeup-title'>" + mAlbum + mAlbumPrice + "</span><br /><br /><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, 5 bucks, 2 1/2 times better than your favorite compilation. \
					Includes 'Serious' and 'Get Up, Star'.<br /><br />" + mTrackList;
break;

// BUNDLES
case 20:
// Full-length
	mDiscSaleType = 1; //internal sale
	mPic = "fl_bundle.jpg";
	mCatalog = "TBO108 / FLAT01";
	mDescription = "<span class='writeup-title'>Bundle #1:<br />The Full-length Bundle" + mAlbumPrice + "</span><br /><br />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 />\
					<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>";
break;
case 21:
// Solo
	mDiscSaleType = 1; //internal sale
	mPic = "sr_bundle.jpg";
	mCatalog = "FLAT01 / FLAT04";
	mDescription = "<span class='writeup-title'>Bundle #2:<br />The Solo Bundle" + mAlbumPrice + "</span><br /><br />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 />\
					<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>";
break;
case 22:
// Everything
	mDiscSaleType = 1; //internal sale
	mPic = "ev_bundle.jpg";
	mCatalog = "TBO108 / KAZU01 / FLAT01 / FLAT04";
	mDescription = "<span class='writeup-title'>Bundle #3:<br />The Everything Bundle" + mAlbumPrice + "</span><br /><br />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 />\
					<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>";
break;

// LIST OF ALL MP3S
case 1000:
	mNumTracks = 30;
	mAlbumTitle = "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 = "ev_bundle.jpg";
	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='bother.html'>here</a>.</span>";
break;
default:
	mNumTracks = 0;
	mDiscSaleType = "";
break;
}

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

if (mRecord==3||mRecord==100||mRecord==101||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/buy_now.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 Samples:</span><object style='position:relative; left:10px;' type='application/x-shockwave-flash' data='player_mp3_multi.swf' width='134' height='19'>\
					 <param name='movie' value='player_mp3_multi.swf' />\
					 <param name='FlashVars' value='bgcolor=dd88dd&amp;bgcolor1=dd88dd&amp;bgcolor2=dd88dd&amp;buttoncolor=663366&amp;buttonovercolor=ffffff&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=dd88dd&amp;bgcolor1=dd88dd&amp;bgcolor2=dd88dd&amp;buttoncolor=663366&amp;buttonovercolor=ffffff&amp;showvolume=0' /></object>";
	mBuySongPt1 = "";
	mBuySongPt2 = "";
	mSampleList = "mp3=";
	mRowList = "";
	mDivider = "|";
	
	for (i=1;i<=mNumTracks;i++)
		{
		if (i==mNumTracks){mDivider = "";}
		mSampleList = mSampleList + mSamplepath[i] + mDivider;
		mRowList = mRowList + "<tr><td class='table-edge-spacer'>&nbsp;</td><td>" + mSongPlayCellPt1 + mSamplepath[i] + mSongPlayCellPt2 + "\
		</td><td class='title-column'>" + i + " " + mSongTitle[i] + "</td><td>" + mPrice[i] + "\
		</td><td>"+mBuyButton[i]+"</td><td class='table-edge-spacer'>&nbsp;</td></tr>";
		}

// BUY Mp3 album cell
	mPlayTablePt2 = mSampleList + "' /></object></td>\
		<td class='play-all-row'>\
			<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[1]+"'/>\
				<input name='item_description_1' type='hidden' value='"+mAlbumTitle+" ("+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]+" - "+mAlbumTitle+" ("+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/buy_all.gif?merchant_id=421346692967401&amp;w=50&amp;h=20&amp;style=trans&amp;variant=text&amp;loc=en_US' type='image'/>\
			</form></div>\
		</td><td class='play-all-row'>&nbsp;</td></tr>\
			<tr><td colspan='7'>&nbsp;</td></tr>\
			<tr><td></td><td>Sample</td><td class='title-column'>Song Title</td><td>Price</td><td>Buy from<br />Google Checkout</td><td></td></tr>\
			<tr><td colspan='7'>&nbsp;</td></tr>" + mRowList + "<tr><td colspan='7'>&nbsp;</td></tr></table><br /><br />";
}
	
//	document.getElementById("discs").innerHTML = mSampleFile;
	
// List of Titles

	switch (mDiscSaleType) {
		case 1:	//internal disc sale - send to google cart
			mDiscBuyLink = "<div class='product'>\
				<input value='"+mAlbum+"' class='product-title' type='hidden'>\
				<input value='images/"+mPic+"' class='product-image' type='hidden'>\
				<input value='"+mAlbumPrice.substring(4)+"' class='product-price' type='hidden'>\
				<div title='Add to cart' role='button' tabindex='0' class='googlecart-add-button'></div></div>";
			
		break;
		case 2: //no disc sale - out of print
			mDiscBuyLink = "<img src='images/sold_out.jpg' width='70' />";
		break;
		case 3: //no disc sale - mp3s only
			mDiscBuyLink = "";
		break;
	}

	switch (mRecord)  {
		case 0: //initial page setup
			document.getElementById("flb_price").innerHTML = m20AlbumPrice;
			document.getElementById("srb_price").innerHTML = m21AlbumPrice;
			document.getElementById("evb_price").innerHTML = m22AlbumPrice;
			document.getElementById("gf_price").innerHTML = m3AlbumPrice;
			document.getElementById("tswwm_price").innerHTML = m50AlbumPrice;
			document.getElementById("ear_price").innerHTML = m100AlbumPrice;
			document.getElementById("abf_price").innerHTML = m101AlbumPrice;
		break;
		default:
			document.getElementById("albumcover").innerHTML = "<img src='images/" + mPic + "' width='" + mWidth + "' height='" + mHeight + "' />";
			document.getElementById("link1").innerHTML = mDiscBuyLink;
			document.getElementById("writeup").innerHTML = "<span class='infotext'>" + mDescription + "</span>";
			document.getElementById("tracks").innerHTML = mPlayTablePt1 + mPlayTablePt2;
			javascript:scroll(0,0);
		break;
	}

}

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

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");}