function thisMovie(movieName) {
var isIE = navigator.appName.indexOf("Microsoft") != -1;
return (isIE) ? window[movieName] : document[movieName];
}


function LoadFlash(ContainerId, MovieId, MoviePath, FlashVars, Width, Height)
{
	if (Width == null) Width = "100%";
	if (Height == null) Height = "100%";
	
    if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
        alert("This page requires AC_RunActiveContent.js.");
    } else {
        var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
        if(hasRightVersion && UseFlashContent) {  // if we've detected an acceptable version
            // embed the flash movie
        var Content = AC_FL_RunContent(
                'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0',
                'width', Width,
                'height', Height,
                'src', MoviePath,
                'quality', 'high',
                'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                'align', 'middle',
                'play', 'true',
                'loop', 'true',
                'scale', 'noscale',
                'wmode', 'window',
                'devicefont', 'false',
                'id', MovieId,
                'bgcolor', '#ffffff',
                'name', MovieId,
                'menu', 'true',
                'allowScriptAccess','sameDomain',
                'allowFullScreen','false',
                'movie', MoviePath,
				'FlashVars', FlashVars,
                'salign', ''
                ); //end AC code
		
			document.getElementById(ContainerId).innerHTML = Content;
		
			if (document.getElementById(MovieId) != null)
				window[MovieId] = document.getElementById(MovieId);
        }
    }	
}