// 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
            AC_FL_RunContent(
                'codebase', 'https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0',
                'width', '550',
                'height', '95',
                'src', 'gearslider',
                'quality', 'high',
                'pluginspage', 'https://www.macromedia.com/go/getflashplayer',
                'align', 'middle',
                'play', 'true',
                'loop', 'true',
                'scale', 'showall',
                'wmode', 'transparent',
                'devicefont', 'false',
                'id', 'gearslider',
                'bgcolor', '#333333',
                'name', 'gearslider',
                'menu', 'true',
				'flashvars',
                //Be sure to use the currentbrand variable to indicate the brands order on the brand slider
'currentbrand=6&brandlink1=capoforma.html&brandpic1=images/logo_capo.png&brandpic1over=images/logo_capo2.png&brandlink2=studiovelokits.html&brandpic2=images/logo_studiovelo-gear.png&brandpic2over=images/logo_studiovelo-gear2.png&brandlink3=demarchi.html&brandpic3=images/logo_demarchi.png&brandpic3over=images/logo_demarchi2.png&brandlink4=selle.html&brandpic4=images/logo_selle.png&brandpic4over=images/logo_selle2.png&brandlink5=sidi.html&brandpic5=images/logo_sidi.png&brandpic5over=images/logo_sidi2.png&brandlink6=rapha.html&brandpic6=images/logo_rapha.png&brandpic6over=images/logo_rapha2.png',
                'allowScriptAccess','sameDomain',
                'allowFullScreen','false',
                'movie', 'gearslider',
                'salign', ''
                ); //end AC code
        } else {  // flash is too old or we can't detect the plugin
            var alternateContent = '<span style="text-align:left;"><img src="images/spacer.gif" width=10"/><a href="capoforma.html">'
				+ '<img src="images/capo_th.gif" alt="Capoforma" border="0" width="85" height="40" /></a>'
				+ '<img src="images/spacer.gif" width="4"/><a href="studiovelokits.html">'
				+ '<img src="images/studiovelo_th.gif" border="0" /></a><img src="images/spacer.gif" width="4"/>'
				+ '<img src="images/spacer.gif" width="4"/><a href="selle.html">'
				+ '<img src="images/selle_th.gif" border="0" /></a><img src="images/spacer.gif" width="4"/>'
				+ '<a href="sidi.html"><img src="images/sidi_th.gif" border="0" /></a><img src="images/spacer.gif" width="4"/>'
				+ '<a href="rapha.html"><img src="images/rapha_th.gif" border="0" /></a></span>'
				+ '<div style="margin-top: 3px; text-align:left; padding-left: 10px">'
				+ '<img src="images/txt_exploreourgear.png" alt="Explore our Brands" /></div>';
            document.write(alternateContent);  // insert non-flash content
        }
    }