function LoadFlash(url,wmode,width,height)
{
document.write(
  '<embed src="' + url + '" wmode=' + wmode +
  ' quality="high" pluginspage=http://www.macromedia.com/go/getflashplayer type="application/x-shockwave-flash" width="' + width +
  '" height="' + height + '"></embed>');
}

function AXObject(id,classid,tagName){
    this.tagName = (typeof tagName == 'string')?tagName:"object";
    this.params = new Object();
    this.variables = new Object();
    this.setVariable("id",id);
    this.setVariable("name",id);
    this.setVariable("classid",classid);
}
AXObject.prototype.setParam = function(key,value){
    this.params[key] = value;
}
AXObject.prototype.getParam = function(key){
    return this.params[key];
}
AXObject.prototype.getParams = function(){
    return this.params;
}
AXObject.prototype.setVariable = function(key,value){
    this.variables[key] = value;
}
AXObject.prototype.getVariable = function(key){
    return this.variables[key];
}
AXObject.prototype.getVariables = function(key){
    return this.variables;
}
AXObject.prototype.getHtml = function(){
    var con = '<'+this.tagName+' ';
    var variables = this.getVariables();
    for(var key in variables){
        con += key + '="' + variables[key] + '" ';
    }
    con += ' >';
    var params = this.getParams();
    for(var key in params){
        con += '<param name="'+ key +'" value="'+ params[key] +'" />';
    } 
    con += '</'+this.tagName+'>';
    return con;
}
AXObject.prototype.write = function(elementId){
    if(typeof elementId == 'undefined'){
        document.write(this.getHtml());
    }else{
        var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
        n.innerHTML = this.getHtml();
    }
}