function createSWFObject(src, replaceElemId, width, height, flashvars, params, attributes) {

  //if($(replaceElemId)) $(replaceElemId).innerHTML = "Please Install Flash Player!";
if(chkFlash()==true)
{
  swfobject.embedSWF(
    ctx + "/app" + src + '?00000', replaceElemId, width, height, '9.0.124.0',
    ctx + '/js/lib/swfobject/expressInstall.swf', flashvars, params, attributes);
 }
 else{
  //$("#"+replaceElemId).html("Please Install Flash Player!");
  alertMessageInfo("The Adobe Flash player is currently disabled in your browser. Please enable the Flash Player to proceed.",function(){});
}
}
function removeSWFObject(replaceElemId) {
  if($(replaceElemId)) $(replaceElemId).innerHTML = "";
}
function chkFlash() {
    var isIE = (navigator.appVersion.indexOf("MSIE") >= 0);
    var hasFlash = true;

    if(isIE) {
        try{
            var objFlash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
        } catch(e) {
            hasFlash = false;
        }
    } else {
        if(!navigator.plugins["Shockwave Flash"]) {
            hasFlash = false;
        }
    }
    return hasFlash;
}