function insertYouTube(yt_width, yt_height, yt_param) {
  document.write('<object width="' + yt_width + '" height="' + yt_height + '">');
  document.write(' <param name="movie" value="http://www.youtube.com/v/' + yt_param + '&hl=de&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999"></param>');
  document.write(' <param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>');
  document.write(' <embed src="http://www.youtube.com/v/' + yt_param + '&hl=de&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="' + yt_width + '" height="' + yt_height + '"></embed>');
  document.write('</object>');
}



function newWindow(url,width,height){
  var params='width='+width+',height='+height+',toolbar=no,location=no,directories=no,scrollbars=no,status=no,menubar=no,resizable=no'
  window.open(url,'Popup',params);
}

function flashVersionRegEx(data){
  var regex = /.*[a-zA-Z][^0-9](.*[0-9][^a-zA-Z])..*/;
  regex.exec(data);
  versionNumber = RegExp.$1;
  pointSearch = versionNumber.indexOf(".");
  versionNumber = versionNumber.substring(0,pointSearch);
  return versionNumber;
}

function flashXml(i_path, i_name, i_width, i_height,i_bgcolor, i_fb,i_link,i_usemap,i_pagelink){
    if(i_link){
        i_minVersion=6;
    }else{
         i_minVersion=5;
    }
 return(insertFlashXml(i_minVersion, i_path, i_name, i_width, i_height,i_bgcolor, i_fb,i_link,i_usemap,i_pagelink));
      }

function insertFlashXml(i_minVersion, i_path, i_name, i_width, i_height,i_bgcolor, i_fb,i_link,i_usemap,i_pagelink) {
    if(i_path){
      if(i_link){
        i_link="?xmlpath="+escape(i_link);
        var linkarray=i_link.split("/");
        i_link=linkarray.join("%2F");
        i_path=i_path+i_link;
      }
  }
  if(!i_usemap){i_usemap="";}

  insertFlash(i_minVersion, i_path, i_name, i_width, i_height,i_bgcolor, i_fb,i_usemap,i_pagelink);
}


function insertFlash(i_minVersion, i_path, i_name, i_width, i_height,i_bgcolor, i_fb,i_usemap,i_pagelink) {

  if ((i_path.length > 1) && isFlash(i_minVersion)){
    if(i_pagelink){
    if (i_path.indexOf("?")>0){
      i_pagelink="&xmlpath="+escape(i_pagelink);
    }else{
      i_pagelink="?xmlpath="+escape(i_pagelink);
    }

      var linkarray=i_pagelink.split("/");
      i_pagelink=linkarray.join("%2F");
      i_path=i_path+i_pagelink;
    }

  document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
  document.write(' codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"');
  document.write(' ID="' + i_name + '" WIDTH="' + i_width + '" HEIGHT="' + i_height + '">');
  document.write(' <PARAM NAME=movie VALUE="' + i_path +'"> ');
  document.write(' <PARAM NAME=quality VALUE=high> ');
  document.write(' <PARAM NAME=menu VALUE=false> ');
  document.write(' <PARAM NAME=wmode VALUE=opaque> ');
  document.write(' <PARAM NAME=bgcolor VALUE=#' + i_bgcolor + '> ');
  document.write('<EMBED SRC="' + i_path +'"');
  document.write(' NAME=' + i_name + ' swLiveConnect="TRUE" WIDTH="' + i_width + '" HEIGHT="' + i_height + '"');
  document.write(' QUALITY="high" WMODE="opaque" MENU="false" BGCOLOR="#' + i_bgcolor + '"');
  document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
  document.write('</EMBED>');
  document.write('</OBJECT>');
 }else {document.write('<div><img src="' + i_fb+'" width="'+i_width+'" height="'+i_height+'" border="0" usemap="#'+i_usemap+'" /></div>');

 }

}

function isFlash(inVersion){
 FlashMode =0;
 if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
  versionIndex = flashVersionRegEx(navigator.plugins["Shockwave Flash"].description);
  if ( versionIndex >= inVersion ) {
     FlashMode = 1;
   }

 }
 else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
    && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0 )) {
  theStr='FlashMode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+inVersion+'"))) \n';
  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write(theStr);
  document.write('</SCRIPT\> \n');

 }
 return FlashMode;
}

<!-- CLICK -TRACKER DELAY CODE START -->
var toSleep = true; 

function stopTimer(){
  toSleep=false;
}

function eventTracker(LinkName){
  var secureID="vKx9a3";
  var redirectUrl="http://www.etracker.de/skin/de.def/img/1px.gif";
  etrackerSink=new Image(1,1);
  toSleep=true;
  etrackerSink.src="http://www.etracker.de/lnkcnt.php?et="+secureID+"&url="+redirectUrl+"&lnkname="+LinkName;
  etrackerSink.onload=stopTimer;
  if(toSleep==true){
    maxDelay(500);
  }
  return true;
}

function maxDelay(gap){
  var then,now;
  then=newDate().getTime();
  now=then; 
  while( toSleep==true&&(now-then)<gap){
    now=new Date().getTime();
  }
}
<!-- CLICK -TRACKER DELAY CODE END -->

