
function loadVideo(video,skin,width,height,bgcolor,play) {
	height = 40+height; //pad object height for player controls
	var sVideo = video;
	var sPlayer = "/flvplayer_lo.swf";
	var sSkin = "&sSkin='/common_files/flash/skins/" + skin + "'";
  var sSize = "width='"+width+"' height='"+height+"'";
	var sBGColor = bgcolor;
	switch (play) {
		case 0:
			var sPlay = "false";
			break;
		case 1:
			var sPlay = "true";
			break;
	}
	
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' \n");
	document.write("		codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' \n");
	document.write("		" + sSize + " id='flvVideo' align='middle'>");
	document.write("  <param name='allowScriptAccess' value='sameDomain' />\n");
	document.write("  <param name='movie' value='" + sPlayer + "' />\n");
	document.write("  <param name='quality' value='high' />\n");
	document.write("  <param name='bgcolor' value='#" + sBGColor + "' />\n");
	document.write("  <param name='flashvars' value='sVideo=" + sVideo + sSkin + " />\n");
	document.write("  <param name='play' value='" + sPlay + "' />\n");
	document.write("  <param name='loop' value='false' />\n");
	document.write("  <embed src='" + sPlayer + "' quality='high' " + sSize + " bgcolor='#" + sBGColor + "'\n");
	document.write("    name='flvVideo' align='middle' allowscriptaccess='sameDomain' type='application/x-shockwave-flash'\n");
	document.write("    flashvars='sVideo=" + sVideo + sSkin + " play='" + sPlay + "' loop='false' \n");
	document.write("    pluginspage='http://www.macromedia.com/go/getflashquality' />");
	document.write("</object>");
}


function swapObject(obj1,obj2) {
	document.getElementById(obj1).style.display='none';
	document.getElementById(obj2).style.display='block';
}


