function loadMovie(xwidth, xheight, xmovie, xvars, xid, bgcolor, scalemode, wmode)
{
	if(scalemode == null)
		{
			scalemode = "scale";
		}
		
	if(wmode == null)
		{
			wmode = "transparent";
		}
	
if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
			'width', xwidth,
			'height', xheight,
			'src', xmovie,
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', scalemode,
			'wmode', wmode,
			'devicefont', 'false',
			'id', xid,
			'bgcolor', bgcolor,
			'name', xid,
			'menu', 'false',
			'allowFullScreen', 'false',
			'allowScriptAccess','always',
			'FlashVars', xvars,
			'movie', xmovie,
			'salign', ''
			); //end AC code wmode
	}
}

function writeFromExternalSrc(content, id)
{
	document.getElementById(id).innerHTML = content;
}

function start_yume()
{
	//Alert preloader that yume is loading
	getFlashMovie("preRoll").load_yume();
}

function getFlashMovie(movieName)
{
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movieName] : parent.document[movieName];
}

function end_yume()
{
	//Alert preloader that yume is done playing movies
	getFlashMovie("flashPrerollDiv").unload_yume();
}