﻿    if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
    alert("This page requires AC_RunActiveContent.js.");
    } else {
    var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
    if(hasRightVersion) { 
    AC_FL_RunContent(
    'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0',
    'width', '960',
    'height', '178',
    'scale', 'noscale',
    'salign', 'TL',
    'bgcolor', '#FFFFFF',
    'wmode', 'opaque',
    'movie', 'brands',
    'src', 'brands',
    'FlashVars', 'library_path=charts_library&xml_source=xmlNodes.aspx', 
    'id', 'my_chart',
    'name', 'my_chart',
    'menu', 'true',
    'allowFullScreen', 'true',
    'allowScriptAccess','sameDomain',
    'quality', 'high',
    'align', 'middle',
    'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
    'play', 'true',
    'devicefont', 'false'
        ); 
    } else { 
        var alternateContent = 'This content requires the Adobe Flash Player. '
        + '<u><a href=http://www.macromedia.com/go/getflash/>Get Flash</a></u>.';
        document.write(alternateContent); 
    }
    }