var InitFlash = function() {
    //alert("CloseFlag:" + CloseFlag.toLowerCase());
	var rnd = Math.round(Math.random()*10000000).toString();

    var flashvars1 = {
        dataPath: "/Portals/0/Flash/data.xml?v=20090814",
        sld: "CBeyondFlashFooter",
        width: "280",
        heightBig: "600",
        heightSmall: "230",
        "CloseFlag": CloseFlag.toLowerCase(),
		lcpFix: rnd
    };
    var flashvars2 = {
        dataPath: "/Portals/0/Flash/footer.xml?v=20090708",
		lcpFix: rnd
    };
    var params = {
        menu: "false",
        scale: "noScale",
        allowFullscreen: "true",
        allowScriptAccess: "always",
        bgcolor: "#FFFFFF",
        wmode: "transparent"
    };

    var attributes1 = {
        id: "CBeyondFlash"
    };
	
	var attributes2 = {
        id: "CBeyondFlashFooter"
    };

 var _height = 230;

    if (CloseFlag == 'True') {
        _height = flashvars1.heightSmall;
    } else {
        _height = flashvars1.heightBig;
    }

    swfobject.embedSWF("/Portals/0/Flash/CbeyondFlash.swf?v=3", "altContent", "280", _height, "9.0.0", "/Portals/0/Flash/expressInstall.swf", flashvars1, params, attributes2);
    swfobject.embedSWF("/Portals/0/Flash/CBeyondFlashFooter.swf", "altContent1", "875", "295", "9.0.0", "/Portals/0/Flash/expressInstall.swf", flashvars2, params, attributes1);
    swfobject.createCSS("#CBeyondFlashFooter", "outline:none");
    swfobject.createCSS("#CBeyondFlash", "outline:none");

   //alert(document.getElementById('altContent'));
}

InitFlash();