// JavaScript Document


function callFlash(filename, width, height){
            var browserName=navigator.appName;
			var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
			if (browserName=="Microsoft Internet Explorer"){
    			if(hasRightVersion) {  // if we've detected an acceptable version
				    if (AC_FL_RunContent == 0) {
					    alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
				    } else {
					    // embed the flash movie
					    AC_FL_RunContent(
						    'codebase', 'https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
						    'width', width,
						    'height', height,
						    'src', 'Assets/flash/mainBanner/'+ filename +'.swf',
						    'quality', 'high',
						    'pluginspage', 'https://www.macromedia.com/go/getflashplayer',
						    'align', 'middle',
						    'play', 'true',
						    'loop', 'true',
						    'scale', 'showall',
						    'wmode', 'transparent',
						    'devicefont', 'false',
						    'id', filename,
						    'bgcolor', '#ffffff',
						    'name', filename,
						    'menu', 'true',
						    'allowScriptAccess','sameDomain',
						    'movie', 'Assets/flash/mainBanner/'+filename,
						    'salign', ''
						    ); //end AC code
				    }
			    } else {  // flash is too old or we can't detect the plugin
				    var alternateContent = 'Alternate HTML content should be placed here.'
				    + 'This content requires the Macromedia Flash Player.'
				    + '<a href=https://www.macromedia.com/go/getflash/>Get Flash</a>';
				    document.write(alternateContent);  // insert non-flash content
			    }
	        } else { 
	            if(hasRightVersion) {  // if we've detected an acceptable version
				    if (AC_FL_RunContent == 0) {
					    alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
				    } else {
					    // embed the flash movie
					    AC_FL_RunContent(
						    'codebase', 'https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
						    'width', width,
						    'height', height,
						    'src', 'Assets/flash/mainBanner/'+ filename +'.swf',
						    'quality', 'high',
						    'pluginspage', 'https://www.macromedia.com/go/getflashplayer',
						    'align', 'middle',
						    'play', 'true',
						    'loop', 'true',
						    'scale', 'showall',
						    'wmode', 'transparent',
						    'devicefont', 'false',
						    'id', filename,
						    'bgcolor', '#ffffff',
						    'name', filename,
						    'menu', 'true',
						    'allowScriptAccess','sameDomain',
						    'movie', 'Assets/flash/mainBanner/'+filename,
						    'salign', ''
						    ); //end AC code
				    }
			    } else {  // flash is too old or we can't detect the plugin
				    var alternateContent = 'Alternate HTML content should be placed here.'
				    + 'This content requires the Macromedia Flash Player.'
				    + '<a href=https://www.macromedia.com/go/getflash/>Get Flash</a>';
				    document.write(alternateContent);  // insert non-flash content
			    }
	        }
	      
}