////////////////////////////////////////////////////////////////////////////////////////////////////
// Function: embedFlashMovie
//
// Summary: Writes the tags to display a Flash movie, This is a workaround to stop IE from 
//          disabling Flash movies untill they are clicked on.
//
// Parameters: width = width of the movie
//             height = height of the movie
//             movie = path and name of the .swf file
//             wmode = transparent or opaque
//             vars = Flash variables (name=value pairs)
////////////////////////////////////////////////////////////////////////////////////////////////////
function embedFlashMovie(width, height, movie, wmode, vars)
{
	// tags for Flash movie with customized parameters
	var _flashMovie = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' " +
		"width=" + (width) + " height=" + (height) + " " +
		"codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" +
		"#version=5,0,0,0'>" +
		"<param name='movie' value=" + (movie) + ">" +
		"<param name='play' value='true'>" +
		"<param name='loop' value='true'>" +
		"<param name='quality' value='best'>" +
		"<param name='wmode' value=" + (wmode) + ">" +
		"<param name='flashVars' value=" + (vars) + ">" +
		"<embed src=" + (movie) + " width=" + (width) + " height=" + (height) + " " +
		"play='true' loop='true' quality='best' wmode=" + (wmode) + " " +
		"flashVars=" + (vars) + " " +
		"pluginspage='http://www.macromedia.com/shockwave/download/index.cgi" +
		"?P1_Prod_Version=ShockwaveFlash'>" +
		"</embed></object>";
		
	// writes Flash movie
	document.write(_flashMovie);
}

////////////////////////////////////////////////////////////////////////////////////////////////////
// Function: writeCrumbTrail
//
// Summary: Writes the crumb trail of the current page.
//
// Parameters: crumbTrail = crumb trail of the current page
////////////////////////////////////////////////////////////////////////////////////////////////////
function writeCrumbTrail(crumbTrail)
{
	if (document.getElementById("crumbTrail") != null)
	{
		document.getElementById("crumbTrail").innerHTML = crumbTrail;
	}
}

