function flashObject(w,h,u,bg,wm,id){ 
 var clickTag="";
 this.width = w;
 this.height = h;
 this.swf = u;
 this.bgcolour = bg;
 this.wmode = wm;
 this.prefswfid = id;
 if(document.all){
  var ftflashstr='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"';
  ftflashstr+='ID="'+this.prefswfid+'" width="'+this.width+'" height="'+this.height+'">';
  ftflashstr+='<PARAM NAME=movie VALUE="'+this.swf+'">';
  ftflashstr+='<PARAM NAME=FlashVars VALUE="'+clickTag+'"/>';
  ftflashstr+='<PARAM NAME=quality VALUE=autohigh>';
  ftflashstr+='<PARAM NAME=bgcolor VALUE=#'+this.bgcolour+'>';
  ftflashstr+='<PARAM NAME=wmode VALUE="'+this.wmode+'">';
  ftflashstr+='<PARAM NAME="allowScriptAccess" value="always"/>';
  ftflashstr+='<PARAM NAME="allowFullScreen" value="true"/>';
  ftflashstr+='</OBJECT>';
 }else{
  var ftflashstr='<EMBED name="'+this.prefswfid+'" id="'+this.prefswfid+'" sr'+'c="'+this.swf+'" FlashVars="'+clickTag+'" quality="autohigh" swLiveConnect="TRUE" WIDTH="'+this.width+'" height="'+this.height+'" bgcolor="#'+this.bgcolour+'" wmode="'+this.wmode+'" allowScriptAccess="always" allowFullScreen="true"';
  ftflashstr+=' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">';
  ftflashstr+='</EMBED>';
 }
 document.write(ftflashstr);
}


function wloHeadlineSetter (){  
 var self=this;
 this.flash=null;
 this.flashContainer=null;
 this.flashContainerID="Tpresenterheader";
 this.headlineID=null;
 this.init=function(id){
 this.headlineID=id;
 this.flashContainer=document.getElementById(this.flashContainerID);
 this.flash= this.flashContainer ? this.flashContainer.getElementsByTagName("embed")[0] : null;
 this.flash= !this.flash ? this.flashContainer.getElementsByTagName("object")[0] : this.flash;
 if(this.flash===null && this.flash.setTextField === "undefined"){
  window.setTimeout(function(){
   self.init(id);
  },200);
  return false;
 }else{
  window.setTimeout(function(){
   self.setHeadline(id);
   },1000) /* maybe you have to increase this value */
   return true;
  }
 }
 this.setHeadline=function(id){
  if (this.flash && typeof this.flash.setTextField != "undefined") {                  
   var prams = {inputValue: id,options: {}};
   this.flash.setTextField(prams);
  }   
 }  
}
var wloHeadline = new wloHeadlineSetter;


