var requiredMajorVersion = 9;
var requiredMinorVersion = 0;
var requiredRevision = 64;
var hasProductInstall = DetectFlashVer(6, 0, 65);
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);



if ( hasProductInstall && !hasReqestedVersion ) {
        var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
        var MMredirectURL = window.location;
        document.title = document.title.slice(0, 47) + " - Flash Player Installation";
        var MMdoctitle = document.title;
        AC_FL_RunContent(
                "src", "playerProductInstall",
                "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
                "width", "550",
                "height", "300",
                "align", "middle",
                "id", "detectionContent",
                "wmode", "transparent",
                "quality", "high",
                "bgcolor", "#ffffff",
                "name", "detectionContent",
                "allowScriptAccess","sameDomain",
                "type", "application/x-shockwave-flash",
                "pluginspage", "http://www.adobe.com/go/getflashplayer"
        );
} else if (hasReqestedVersion) {
        AC_FL_RunContent(
                'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,64,0',
                'name','ds_new',
                'width','935',
                'height','702',
                'align','middle',
                'id','ds_new',
                'src',SITE_URL+'/ds_new',
                'quality','high',
                'bgcolor','#1a83c8',
                'allowscriptaccess','always',
                'allowfullscreen','true',
                 'flashvars' , 'menufile='+SITE_URL+'menu.php&stylefile='+SITE_URL+'flash.css'+'&phone='+PHONE,

                'wmode','window',
                'pluginspage','http://www.macromedia.com/go/getflashplayer',
                'movie','ds_new'
                );
                History.SWFID("ds_new");
} else {
        var alternateContent = '<br><br><img src="./images/notification_new_site3.jpg" alt="DreamSoft.us" width="539" height="207" /><br><br><h1 style="color:#fff;">This content requires the Adobe Flash Player 9.0.64 or more recent'
        + '<br><br> <a style="font-size:26px;" href="http://www.adobe.com/go/getflash/" class="lnk">Get Flash</a></h1> ';
        document.write(alternateContent);   // insert non-flash content
}
