﻿// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 8;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 24;
// -----------------------------------------------------------------------------

if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
    alert("This page requires AC_RunActiveContent.js.");
} else {
    var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
    if (hasRightVersion) {  // if we've detected an acceptable version
        // embed the flash movie
        
        var d = new Date();
        var month = ((d.getMonth()) + 1);
        
        AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0',
			'width', '623',
			'height', '85',
    		'src', '/aptuitlaurus/imagesNew/swf/QuickLinks20110202_' + month + '',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', '/aptuitlaurus/imagesNew/swf/QuickLinks20110202_' + month + '',
			'bgcolor', '#ffffff',
			'name', '/aptuitlaurus/imagesNew/swf/QuickLinks20110202_' + month + '',
			'menu', 'true',
			'allowScriptAccess','sameDomain',
			'allowFullScreen','false',
			'movie', '/aptuitlaurus/imagesNew/swf/QuickLinks20110202_' + month + '',
			'salign', ''
			); //end AC code
    } else {  // flash is too old or we can't detect the plugin
        var alternateContent = '<a href="http://www.macromedia.com/go/getflash/" target="_blank"><img src="/aptuitlaurus/imagesNew/QuickLinksFlashImg2010-01.jpg" alt="Get latest Adobe Flash Player" title="Get latest Adobe Flash Player" border="0" /></a>';
        document.write(alternateContent);  // insert non-flash content
    }
}
