
function changeThePlaylist(p) {
var theURL;
var vidTitle;

switch(p)
{
case 1:
	// London Drugs - Product Showcase
	// list need to be set up
	vidTitle = "Product Showcase";
	theURL = "http://www.youtube.com/p/8500BE48AB3DABB5&hl=en&fs=1";
  break; 
   
case 2:
	// Dotto Tech
	vidTitle = "Dotto Tech";
	theURL = "http://www.youtube.com/p/4D98B6003E54E151&hl=en&fs=1";
  break;
  
case 3:
	// Get Connected
	vidTitle = "Get Connected";
	theURL = "http://www.youtube.com/p/8ACBF195B6F40350&hl=en&fs=1";
  break;
  
case 4:
	// Dr. Art Histor
	vidTitle = "Dr. Art Histor";
	theURL = "http://www.youtube.com/p/7912316362B3DDA5&hl=en&fs=1";
  break;

default: 
	// default to product showcase
	vidTitle = "Product Showcase";
	theURL = "http://www.youtube.com/p/8500BE48AB3DABB5&hl=en&fs=1";
}

/*	
// previous code before using swfObject
var theCode = '<object width="417" height="350">'
			+ '<param name="movie" value="'+ theURL +'"></param>'
			+ '<param name="allowFullScreen" value="true"></param>'
			+ '<param name="allowscriptaccess" value="always"></param>'
			+ '<embed src="'+ theURL +'" type="application/x-shockwave-flash"' 
			+ 'width="417" height="350" allowscriptaccess="always" allowfullscreen="true"></embed>'
			+ '</object>';
			+ '<p style="padding:0; margin:20px 0; font-size:12px; color:#777;">'+ vidTitle +'</p>';

// putting in a var even though it works otherwise.
//var videoGallery =	document.getElementById("videoGallery");
//	videoGallery.innerHTML = theCode ;
*/

swfobject.embedSWF(theURL, "videoGallery", "417", "350", "9.0.0");
}