function embed_video_player (obj, width, height, file, image, autoplay)
{
	var playlist =  new Array();
	var keys = {
	  "dop.com": "@310bfb605318c96cd01",
	  "www.dop.com": "@310bfb605318c96cd01",
	  "digitaloutpost.com": "@71b0dd17dc4966ce322",
	  "www.digitaloutpost.com": "@71b0dd17dc4966ce322",
	  "digital-outpost.com": "@6d29274e557a05fa3d2",
	  "www.digital-outpost.com": "@6d29274e557a05fa3d2",
	  "70.167.15.113": "@cb5daa0e3fa504febd4"
	};

	if (autoplay == false) {
		playlist.push({
			url: webroot + image,
			scaling: 'orig'
		});
	}

	playlist.push({
		url: webroot + file,
		autoPlay: autoplay,
		autoBuffering: true,
		bufferLength: 0,
		scaling: 'orig'
	});

	obj.flashembed(
		{
			src: webroot + "swf/player.swf",
			//wmode: "transparent",

			width: width,
			height: height
		},
		{
			config: {
				// commercial version requires product key
		    key: keys[location.host] || '',

				playlist: playlist,
				clip: {
					accelerated: true
				},
				canvas:  { 
					backgroundColor: '#000000',
					backgroundGradient: 'none'
				},
				plugins: {
					controls: {
						width: '98%',
						left: '50%',
						bottom: 5,
						
						// Visibility properties
						autoHide: "always",
						hideDelay: 800,

						// Coloring
						backgroundColor: "#000000",
						backgroundGradient: "none",
						opacity: 0.95,

						// buttons
						buttonColor: "#666666",
						buttonOverColor: "#666666",

						// progress
						sliderColor: "#000000", // after
						sliderGradient: "none",
						bufferColor: "#666666", // loaded
						bufferGradient: "none",
						progressColor: "#333333", // played
						progressGradient: "none",

						// time
						timeColor: "#111111", // actual
						durationColor: "#990000", // total
						timeBgColor: "#666666", // bg

						// volume
						volumeSliderColor: "#666666",
						volumeSliderGradient: "none",
						
						// text above the volume when you drag
						tooltipColor: "#666666",
						tooltipTextColor: "#111111",
						
						// radios
						borderRadius: 15
					}
				}
			}
		}
	);
}
