
//This randomizer chooses between Flash or static banner 50/50 chance for either type of banner.
//Math.floor(Math.random() * 11) -- returns a number bet 0 and 9
var bannertype = Math.floor(Math.random() * 10); 
switch (bannertype) {
    case 0:
    case 1:
    case 2:
    case 3:
    case 4:
    case 5:
    case 6:
    case 7:
    case 8:    
        break;
    default:
        var flashvars = null;
        var params = { scale: "noscale", quality: "high", menu: "false", allowScriptAccess: "always" };
        var attributes = null;
        //Remove Comment Tag Below to reactivate frequency regulator within FLASH Banners
        /*var SwfFrequency = Math.floor(Math.random()*2);  //This randomizer chooses between flash 1-9  OR flash #10 (50% chance of #10)
        if (SwfFrequency == 0) { */
        //Remove Comment Tag ABOVE to reactivate frequency regulator within FLASH Banners 
        var SwfRandom = Math.floor(Math.random() * 9) + 1; //If Flash #1-9, pick one @ random. 
        swfobject.embedSWF("../common/img/banner/feature" + SwfRandom + "_english.swf", "mainFlash", "900", "320", "8.0.0", "../common/js/expressInstall.swf", flashvars, params, attributes);
        //Remove Comment Tag Below to reactivate frequency regulator within FLASH Banners
        /* }
        else {//otherwise choose #10.	
        swfobject.embedSWF("../common/img/banner/feature10_english.swf","mainFlash","900","320","8.0.0","../common/js/expressInstall.swf",flashvars,params,attributes);

		} */
        //Remove Comment Tag ABOVE to reactivate frequency regulator within FLASH Banners
}

