 
 
 
 // Viel Spass!
 
 
 
 
 function initvideowin(){
  vw.mainpath='./'; 
  }


function initvideo(name,video,width,height,groesse_qt,groesse_wm,groesse_rm,videotext,root,pic){
   this.name=name;
   this.video=video;
   this.width=width;
   this.height=height;
   this.groesse_qt=groesse_qt;
   this.groesse_wm=groesse_wm;
   this.groesse_rm=groesse_rm;
   this.videotext=videotext;
   this.root="http://www.animationlabs.de/";
   this.pic=pic;
   
   this.videotype='';
   this.lastvideotype='';
   this.qt=false;
   this.wm=false;
   this.rm=false;
   
   this.showvideo=showvideo;
   this.writewm=writewm;
   this.writerm=writerm;
   this.writeqt=writeqt;
   this.writenovid=writenovid;
   this.writedl=writedl;
   this.writenag=writenag;
   
   this.writeplayer=writeplayer;
   this.vidrm=vidrm;
   this.vidwm=vidwm;
   this.vidqt=vidqt;
   this.viddl=viddl;
   this.vidst=vidst;
   this.keinlinksklick=keinlinksklick;
   this.setvideocookie=setvideocookie;
   this.setlastvideocookie=setlastvideocookie;
   this.vidplay=vidplay;
   this.vidstop=vidstop;
   this.vidpause=vidpause;
 }
 
 
 function keinlinksklick(){
 if (navigator.appVersion.indexOf("Macintosh")==-1){
  alert('Bitte benutzen Sie zum Download die rechte Maustaste und w&auml;hlen sie "Ziel speichern unter...".');
  this.showvideo();
  }
  return true;
 }

function showvideo(){


if (navigator.userAgent.indexOf('Opera')!=-1){
 alert('Unter Opera steht die Streaming-Video Funktionalit&auml;t unserer Website nicht zur Verf&uuml;gung. Sie k&ouml;nnen die Videos aber herunterladen.');
 this.setvideocookie('alvideotype','download');
 }
 
 if (window.screenX){
  var wleft=window.screenX;
  }
 else if (window.screenLeft){
  var wleft=window.screenLeft;
  }
 else{
  var wleft=0;
  } 
 wleft+=50;
 wleft+='';
 if (window.screenTop){
  var wtop=window.screenTop;
  }
 else if (window.screenY){
  var wtop=window.screenY;
  }
 else{
  var wtop=0;
  } 
 wtop+=50;
 wtop+='';
 
 if (skin=='blue'){
  var bgcol='#000033';
  var tcol='#FFFFFF';
  var lcol='#99FFFF';
  }
 else if (skin=='silver'){
  var bgcol='#99CCCC';
  var tcol='#000033';
  var lcol='#006699';
  }
 else if (skin=='red'){
  bgcol='#330000';
  tcol='#FFFFFF';
  lcol='#CCCCCC';
  } 
 
 vw=window.open('','alvid','innerWidth=350,innerHeight=346,width=350,height=346,resizable=no,top='+wtop+',left='+wleft+',scrollbars=no,menubar=no,toolbar=no,status=no,location=no,toolbar=no,copyurlhistory=no');
 
 vw.focus();
 
 //alert(skin_pre);
 
 vw.document.open('text/html');
 vw.document.write('<html><head><title>Animation Labs Video</title><link rel="stylesheet" type="text/css" href="'+this.root+'al.css"></head>');
  
 vw.document.write('<body bgcolor="'+bgcol+'" text="'+tcol+'" link="'+lcol+'" vlink="'+lcol+'" background="'+this.root+'pics/'+'standard_bg1.jpg" leftmargin="0" topmargin="0" rightmargin="0" marginheight="0" marginwidth="0" bottommargin="0" onload="opener.initvideowin()">');
 

 vw.document.write('<table width=350 height=342 border=0 cellspacing=0 cellpadding=0>');
 vw.document.write('<tr><td colspan=3 align="left" valign="top" width="100%"><img src="'+this.root+'pics/'+'dummy.gif" width="1" height="18" alt="" border="0"><br><img src="'+this.root+'pics/'+'video_hl_stream.jpg" width="265" height="13" alt="" border="0"><br></td></tr>');
 vw.document.write('<tr><td valign="top" width=15><img src="'+this.root+'pics/'+'dummy.gif" width=15 height=1 alt="" border=0><br></td>');
 vw.document.write('<td><font class="ftn" face="verdana,sans-serif" size=1><div align="right">'+this.videotext+'</div><img src="'+this.root+'pics/'+'dummy.gif" width=1 height=4 alt="" border=0><br>');
 
 

 if (getscookie('alvideotype')=='' && this.videotype==''){
   
   this.writenag();
   
   this.qt=detectQuickTime()+'';
   this.wm=detectWindowsMedia()+'';
   this.rm=detectReal()+'';
   

   setscookie ('alqtpresent',this.qt);
   setscookie ('alwmpresent',this.wm);
   setscookie ('alrmpresent',this.rm);
   
   var os=getos();   
   if (os.indexOf('win')!=-1){
    
 if (this.rm=='true'){
    this.setvideocookie('alvideotype','rm');
    }
   else if (this.wm=='true'){
    this.setvideocookie('alvideotype','wm');
    }
   else if (this.qt=='true'){
    this.setvideocookie('alvideotype','qt');
    }
   else{
    this.setvideocookie('alvideotype','nv');
    } 
 
   }
   
   else{
   
   if (this.rm=='true'){
    this.setvideocookie('alvideotype','rm');
    }
   else if (this.qt=='true'){
    this.setvideocookie('alvideotype','qt');
    }
   else if (this.wm=='true'){
    this.setvideocookie('alvideotype','wm');
    }
   else{
    this.setvideocookie('alvideotype','nv');
    } 
   
   }
   
 
 }
 
 else if (getscookie('alvideotype')=='download' || this.videotype=='download'){
   
  this.writedl();
  
  }
 
 else if (getscookie('alvideotype')!='' || this.videotype!=''){
 
     if (getscookie('alvideotype')!='' && this.videotype==''){
   this.videotype=getscookie('alvideotype');
   this.qt=getscookie('alqtpresent');
      this.wm=getscookie('alwmpresent');
   this.rm=getscookie('alrmpresent');
   }
 
  if (this.videotype=='qt'){
   this.setlastvideocookie('alvideotype','qt');
   this.writeqt();
   }
  else if (this.videotype=='wm'){
   this.setlastvideocookie('alvideotype','wm');
   this.writewm();
   }
  else if (this.videotype=='rm'){
   this.setlastvideocookie('alvideotype','wm');
   this.writerm();
   }
  else{
   this.writenovid();
   }
   }
   
   
    vw.document.write('<a href="javascript:self.close()"><img src="'+this.root+'pics/'+'ksc_99ffff.gif" width="9" height="8" alt="" border="0">Schlie&szlig;en</a>');
    vw.document.write('<img src="'+this.root+'pics/'+'dummy.gif" width="15" height="1" alt="" border="0"></font></td></tr></table><br>');
    vw.document.write('</body></html>');
    vw.document.close();
 
 }

function writeplayer(vobj,vcontroller,vtype){

  bilder =  new Array('b_anim','b_post','b_multi','b_web','npfl_','npfr_','b_ref','b_pro','b_kont','b_site','b_cc','video_b_start','video_b_stop','video_b_pause');
  bilddata(bilder);

  if (vtype=='wm'){
   var fext='.wmv';
   var fgroesse=this.groesse_wm;
   }
  else if (vtype=='qt'){
   var fext='.mov';
   var fgroesse=this.groesse_qt;
   }
  else if (vtype=='rm'){
   var fext='.rm';
   var fgroesse=this.groesse_rm;
   }

 vw.document.write(vobj+'<br></font></td>');
 vw.document.write('<td valign="top" width=15><img src="'+this.root+'pics/'+'dummy.gif" width="15" height="1" alt="" border="0"><br></td></tr>'); 
 vw.document.write('<tr><td colspan=3 valign="top">');
 vw.document.write('<table width=350 border=0 cellspacing=0 cellpadding=0><tr><td align="left">');
 var bottomspacerheight=18;

 if (vcontroller=='false'){
  type="'"+this.videotype+"'";
  
  bottomspacerheight=28;
  
  var b1="'"+"video_b_start'";
  var b2="'"+"video_b_stop'";
  var b3="'"+"video_b_pause'";
  
  vw.document.write('<img src="'+this.root+'pics/'+'dummy.gif" width=1 height=8 alt="" border=0><br>');
  vw.document.write('<img src="'+this.root+'pics/'+'dummy.gif" width=13 height=1 alt="" border=0>');
  vw.document.write('<a href="javascript:opener.'+this.name+'.vidplay();" onmouseover="opener.pcvid('+b1+')" onmouseout="opener.pcvid('+b1+')"><img name="'+'video_b_start" style="filter:progid:DXImageTransform.Microsoft.Fade(duration=.25)" src="'+this.root+'pics/'+'video_b_start1.jpg" width="63" height="14" alt="" border="0"></a>');
  vw.document.write('<a href="javascript:opener.'+this.name+'.vidstop();" onmouseover="opener.pcvid('+b2+')" onmouseout="opener.pcvid('+b2+')"><img name="'+'video_b_stop" style="filter:progid:DXImageTransform.Microsoft.Fade(duration=.25)" src="'+this.root+'pics/'+'video_b_stop1.jpg" width="56" height="14" alt="" border="0"></a>');
  vw.document.write('<a href="javascript:opener.'+this.name+'.vidpause();" onmouseover="opener.pcvid('+b3+')" onmouseout="opener.pcvid('+b3+')"><img name="'+'video_b_pause" style="filter:progid:DXImageTransform.Microsoft.Fade(duration=.25)" src="'+this.root+'pics/'+'video_b_pause1.jpg" width="65" height="14" alt="" border="0"></a>');
  
  }

 vw.document.write('</td><td align="right"><font class="ftn" face="verdana,sans-serif" size=1><img src="'+this.root+'pics/dummy.gif" width=1 height=6 alt="" border=0><br>'); 
  
 if (this.videotype!='qt' && this.qt=='true'){
  vw.document.write('<a href="javascript:opener.'+this.name+'.vidqt()"><img src="'+this.root+'pics/video_logo_qt_7.gif" width="9" height="8" alt="" border="0">QT</a>&nbsp;&nbsp;');
  }

 if (this.videotype!='wm' && this.wm=='true'){
  vw.document.write('<a href="javascript:opener.'+this.name+'.vidwm()"><img src="'+this.root+'pics/video_logo_wm_7.gif" width="10" height="8" alt="" border="0">WMV</a>&nbsp;&nbsp;');
  }

 if (this.videotype!='rm' && this.rm=='true'){
  vw.document.write('<a href="javascript:opener.'+this.name+'.vidrm()"><img src="'+this.root+'pics/video_logo_rm_7.gif" width="11" height="8" alt="" border="0">Real</a>');
  }
  
  vw.document.write('<img src="'+this.root+'pics/'+'dummy.gif" width="15" height="1" alt="" border="0"></font></td></tr></table><br>');
  vw.document.write('</td></tr><tr><td valign="bottom" align="right" colspan=3 height="100%"><font class="ftn" face="verdana,sans-serif" size=1>');
    
  //vw.document.write('<a href="'+this.root+'videos/'+this.video+fext+'" onclick="opener.'+this.name+'.keinlinksklick()"><img src="'+this.root+'pics/'+'kpf_99ffff_d.gif" width="9" height="8" alt="" border="0">'+this.video+fext'</a>'+fgroesse+'&nbsp;&nbsp;');
  vw.document.write('<a href="'+this.root+'videos/'+this.video+fext+'" onclick="opener.'+this.name+'.keinlinksklick()"><img src="'+this.root+'pics/'+'kpf_99ffff_d.gif" width="9" height="8" alt="" border="0">Download</a>'+fgroesse+'&nbsp;&nbsp;');
  
 }

 function writewm(){
  var vobj='<OBJECT ID="wmp" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject">';
  vobj+='<PARAM NAME="FileName" VALUE="'+this.root+'videos/'+this.video+'.wmv">';
  vobj+='<PARAM NAME="ShowControls" VALUE="False">';
  vobj+='<PARAM NAME="ShowStatusBar" VALUE="False">';
  vobj+='<embed src="'+this.root+'videos/'+this.video+'.wmv" type="application/x-mplayer2" Name="MediaPlayer" AutoStart=1 pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" ShowControls=1 width=320 height=286></embed>';
  vobj+='</OBJECT>';
  this.writeplayer(vobj,'false','wm');
 }
 
 function writerm(){
 
 
  var vobj='<OBJECT ID="rmp" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=320 HEIGHT=240>';
  vobj+='<PARAM NAME="SRC" VALUE="'+this.root+'videos/'+this.video+'.rpm">';
  vobj+='<PARAM NAME="AUTOSTART" VALUE="true">';
  vobj+='<PARAM NAME="CONTROLS" VALUE="ImageWindow">';
  vobj+='<PARAM NAME="CONSOLE" VALUE="one">';
  vobj+='<embed SRC="'+this.root+'videos/'+this.video+'.rpm" WIDTH="320" HEIGHT="240" CONTROLS="ImageWindow" CONSOLE="one" MAINTAINASPECT="true"></embed><br>';
  vobj+='<embed SRC="'+this.root+'videos/'+this.video+'.rpm" WIDTH="320" HEIGHT="0" CONTROLS="ControlPanel" CONSOLE="one" AUTOSTART="true"></embed>';
  vobj+='</OBJECT>'; 
  this.writeplayer(vobj,'false','rm');
 } 

 

     
 
 function writeqt(){
 
  if (getscookie('alquicktimeversion')!=''){
   quicktimeversion=getscookie('alquicktimeversion');
   }
  else{ 
   detectQuickTime();
   }
   
  if (getos().indexOf('win')!=-1 && getbrowser()=='ie' && quicktimeversion<6){
   var qtcontroller='true';
   qtheight=parseInt(this.height)+16;
   }
  else{
   var qtcontroller='false';
   qtheight=this.height;
   }
   
 var vobj='<OBJECT ID="qtp" CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="320"HEIGHT="'+qtheight+'" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">'; 
 vobj+='<PARAM name="SRC" VALUE="'+this.root+'videos/'+this.video+'.mov">'; 
 vobj+='<PARAM name="AUTOPLAY" VALUE="true">'; 
 vobj+='<PARAM name="CONTROLLER" VALUE="'+qtcontroller+'">'; 
 vobj+='<embed src="'+this.root+'videos/'+this.video+'.mov" type="video/quicktime" enablejavascript="true" controller="'+qtcontroller+'" width=320 height='+qtheight+'></embed>'; 
 vobj+='</OBJECT>'; 
 this.writeplayer(vobj,qtcontroller,'qt');
 }
 
 
 function writenag(){
  vw.document.write('<br><br>Da wir unsere Arbeiten auch im Internet optimal pr&auml;sentieren m&ouml;chten, stehen die Streaming-Videos nur in einer Breitband-Version zur Verf&uuml;gung.<br><br>');
  vw.document.write('Falls Sie keine schnelle Internetverbindung besitzen, k&ouml;nnen Sie die Filme auch herunterladen.<br><br><br>')
  vw.document.write('<a href="javascript:opener.'+this.name+'.showvideo()"><img src="'+this.root+'pics/'+'kpf_99ffff_r.gif" width="9" height="8" alt="" border="0">Streaming Videos</a> (Breitband-Verbindung)<br><br>');
  vw.document.write('<a href="javascript:opener.'+this.name+'.viddl()"><img src="'+this.root+'pics/'+'kpf_99ffff_r.gif" width="9" height="8" alt="" border="0">Videodownload</a> (Modem- oder ISDN), ca. '+this.groesse_wm.substring(7,10)+' MB');
  
  vw.document.write('<br><br><br>F&uuml;r die Streaming-Variante ermittelt der Videoplayer automatisch das f&uuml;r Ihr System optimale Format (Real Media, Windows Media oder Quicktime).');
  
  vw.document.write('</font></td>');
  vw.document.write('<td valign="top" width=15><img src="'+this.root+'pics/'+'dummy.gif" width="15" height="1" alt="" border="0"><br></td></tr>'); 
  vw.document.write('<tr><td align="right" height=74 valign="bottom" colspan=3><font class="ftn" face="verdana,sans-serif" size=1><img src="'+this.root+'pics/'+'dummy.gif" width="1" height="1" alt="" border="0"><br>');  

 }
 
 function writedl(){
 
  vw.document.write('<br><br><div align="center"><img src="'+this.root+'pics/screenshots/'+this.pic+'" width=200 height=150 border=0></div><br><br><b>Video-Download (Format '+this.width+'x'+this.height+' Pixel)</b><br><br>');
  vw.document.write('<img src="'+this.root+'pics/'+'video_logo_qt_7.gif" width="9" height="8" alt="" border="0">Quicktime: <a href="'+this.root+'videos/'+this.video+'.mov" onclick="opener.'+this.name+'.keinlinksklick()">'+this.video+'.mov</a>'+this.groesse_qt+'<br>');
  vw.document.write('<img src="'+this.root+'pics/'+'video_logo_wm_7.gif" width="9" height="8" alt="" border="0">Windows Media: <a href="'+this.root+'videos/'+this.video+'.wmv" onclick="opener.'+this.name+'.keinlinksklick()">'+this.video+'.wmv</a>'+this.groesse_wm+'<br>');
  vw.document.write('<img src="'+this.root+'pics/'+'video_logo_rm_7.gif" width="9" height="8" alt="" border="0">RealMedia: <a href="'+this.root+'videos/'+this.video+'.rm" onclick="opener.'+this.name+'.keinlinksklick()">'+this.video+'.rm</a>'+this.groesse_rm+'<br>');
  vw.document.write('</font></td>');
  vw.document.write('<td valign="top" width=15><img src="'+this.root+'pics/'+'dummy.gif" width="15" height="1" alt="" border="0"><br></td></tr>'); 
  vw.document.write('<td align="right" colspan=3 height="100%" valign="bottom"><font class="ftn" face="verdana,sans-serif" size=1>');
  
   if (this.qt == 'true' || this.wm == 'true' || this.rm == 'true' || getscookie('alqtpresent') == 'true' || getscookie('alwmpresent') == 'true' || getscookie('alrmpresent') == 'true'){
    
    this.qt=getscookie('alqtpresent');
    this.wm=getscookie('alwmpresent');
    this.rm=getscookie('alrmpresent');
    this.lastvideotype=getscookie('allastvideotype');
 
    vw.document.write('<a href="javascript:opener.'+this.name+'.vidst()"><img src="'+this.root+'pics/'+'kpf_99ffff_r.gif" width="9" height="8" alt="" border="0">Videostream</a>&nbsp;&nbsp;');
   } 
  
 
 }
 
 
 function writenovid(){
  vw.document.write('<br><br><br>Es wurde kein Streaming-Video Plugin gefunden.<br>Sie k&ouml;nnen die Filme aber auch herunterladen.<br><br><br>');
  vw.document.write('<a href="javascript:opener.'+this.name+'.viddl()"><img src="'+this.root+'pics/'+'kpf_99ffff_r.gif" width="9" height="8" alt="" border="0">Videodownload</a>');
  vw.document.write('</font></td>');
  vw.document.write('<td valign="top" width=15><img src="'+this.root+'pics/'+'dummy.gif" width="15" height="1" alt="" border="0"><br></td></tr>'); 
  vw.document.write('<td align="right" colspan=3 height="100%" valign="bottom"><font class="ftn" face="verdana,sans-serif" size=1><br>');  

 } 
 
function vidrm(){
  this.setvideocookie('alvideotype','rm');
  this.showvideo();
 }
 
function vidwm(){
  this.setvideocookie('alvideotype','wm');
  this.showvideo();
 }

function vidqt(){
  this.setvideocookie('alvideotype','qt');
  this.showvideo();
 }
 
 function viddl(){
  this.setvideocookie('alvideotype','download');
  this.showvideo();
 }
 
 function vidst(){
  this.setvideocookie('alvideotype',this.lastvideotype);
  this.showvideo();
 }
 
function setvideocookie(name,wert){
 setscookie('alvideotype',wert);
 this.videotype=wert;
} 

function setlastvideocookie(name,wert){
 setscookie('allastvideotype',wert);
 this.lastvideotype=wert;
} 
 
function setscookie (name,wert){
 if (getscookie('alcookietest')!=''){
  window.document.cookie=name+'='+wert;
  }
} 

function getscookie(Name) {
  var search = Name + '=';
  var returnvalue = '';
  if (window.document.cookie.length > 0) {
    offset = window.document.cookie.indexOf(search);
    if (offset != -1) { 
      offset += search.length;
      end = window.document.cookie.indexOf(';', offset);
      if (end == -1) end = window.document.cookie.length;
      returnvalue=unescape(window.document.cookie.substring(offset, end));
      }
   }
  return returnvalue;
}

function getRealPlayer() {
 if (typeof(vw.document.embeds[0]) == 'object') {
  return vw.document.embeds[0];
 } else {
  return vw.document.rmp;
 }

}

function getMediaPlayer() {
 if (typeof(vw.document.embeds[0]) == 'object') {
  return vw.document.embeds[0];
 } else {
  return vw.document.wmp;
 }
} 

function getQuickTime() {
 if (typeof(vw.document.embeds[0]) == 'object') {
  return vw.document.embeds[0];
 } else {
  return vw.document.qtp;
 }
} 

function vidplay(){

 if (this.videotype=='qt'){
  playerObject = getQuickTime();
  playerObject.Play();
 }
 else if (this.videotype=='wm'){
  playerObject = getMediaPlayer();
  playerObject.Play();
 }
 else if (this.videotype=='rm'){
  playerObject = getRealPlayer();
  playerObject.DoPlay();
 }
}

function vidpause(){

 if (this.videotype=='qt'){
 playerObject = getQuickTime();
 playerObject.Stop();
 }
 else if (this.videotype=='wm'){
 playerObject=getMediaPlayer();
 playerObject.Pause();
 }
 else if (this.videotype=='rm'){
 playerObject = getRealPlayer();
 playerObject.DoPause();
 }
}

function vidstop(){

 if (this.videotype=='qt'){
 playerObject = getQuickTime(); 
 playerObject.Rewind();
 playerObject.Stop();
 }
 else if (this.videotype=='wm'){
  playerObject = getMediaPlayer();
  playerObject.Stop();
   if (getbrowser == 'ns') {
 playerObject.SetCurrentPosition(0);
    }
   else{
 playerObject.CurrentPosition = 0;
   }
 }
 else if (this.videotype=='rm'){
 playerObject = getRealPlayer(); 
 playerObject.DoStop();
 }
}
  
 
function initpluginfinder(){
 quicktimeversion=-1;
 detectableWithVB = false;
 pluginFound = false;
 writeControlsDetector();
}

function canDetectPlugins() {
    if( detectableWithVB || (navigator.plugins && navigator.plugins.length > 0) ) {
 return true;
    } else {
 return false;
    }
}


function detectQuickTime() {
    pluginFound = detectPlugin('QuickTime');
    if(!pluginFound && detectableWithVB) {
 pluginFound = detectQuickTimeActiveXControl();
    }
 setscookie ('alquicktimeversion',quicktimeversion);
  return pluginFound;
}

function detectReal() {
    pluginFound = detectPlugin('RealPlayer');
    if(!pluginFound && detectableWithVB) {
 pluginFound = (detectActiveXControl('rmocx.RealPlayer G2 Control') ||
         detectActiveXControl('RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)') ||
         detectActiveXControl('RealVideo.RealVideo(tm) ActiveX Control (32-bit)'));
    }
    return pluginFound;
}

function detectWindowsMedia() {
    pluginFound = detectPlugin('Windows Media');
    if(!pluginFound && detectableWithVB) {
 pluginFound = detectActiveXControl('MediaPlayer.MediaPlayer.1');
    }
    return pluginFound;
}

function detectPlugin() {
    var daPlugins = detectPlugin.arguments;
    var pluginFound = false;
    if (navigator.plugins && navigator.plugins.length > 0) {
 var pluginsArrayLength = navigator.plugins.length;
 for (pluginsArrayCounter=0; pluginsArrayCounter < pluginsArrayLength; pluginsArrayCounter++ ) {
     var numFound = 0;
     for(namesCounter=0; namesCounter < daPlugins.length; namesCounter++) {
  
   if (navigator.plugins[pluginsArrayCounter].name.indexOf("QuickTime") > -1) {
            quicktimeversion = parseFloat(navigator.plugins[pluginsArrayCounter].name.substring(18));
         }
  
  
  if( (navigator.plugins[pluginsArrayCounter].name.indexOf(daPlugins[namesCounter]) >= 0) || 
      (navigator.plugins[pluginsArrayCounter].description.indexOf(daPlugins[namesCounter]) >= 0) ) {
      numFound++;
  }   
     }
     if(numFound == daPlugins.length) {
  pluginFound = true;

  break;
     }
 }
    }
    return pluginFound;
} 

function writeControlsDetector(){

if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1)) {
    document.writeln('<script language="VBscript">');
    document.writeln('detectableWithVB = False');
    document.writeln('If ScriptEngineMajorVersion >= 2 then');
    document.writeln('  detectableWithVB = True');
    document.writeln('End If');
    document.writeln('Function detectActiveXControl(activeXControlName)');
    document.writeln('  on error resume next');
    document.writeln('  detectActiveXControl = False');
    document.writeln('  If detectableWithVB Then');
    document.writeln('     detectActiveXControl = IsObject(CreateObject(activeXControlName))');
    document.writeln('  End If');
    document.writeln('End Function');
    document.writeln('Function detectQuickTimeActiveXControl()');
    document.writeln('  on error resume next');
    document.writeln('  detectQuickTimeActiveXControl = False');
    document.writeln('  If detectableWithVB Then');
    document.writeln('    detectQuickTimeActiveXControl = False');
    document.writeln('    hasQuickTimeChecker = false');
    document.writeln('    Set hasQuickTimeChecker = CreateObject("QuickTimeCheckObject.QuickTimeCheck.1")');
    document.writeln('    If IsObject(hasQuickTimeChecker) Then');
    document.writeln('      If hasQuickTimeChecker.IsQuickTimeAvailable(0) Then ');
    document.writeln('        detectQuickTimeActiveXControl = True');
    document.writeln('       quicktimeversion = CInt(Hex(hasQuickTimeChecker.quicktimeversion) / 1000000)');
    document.writeln('      End If');
    document.writeln('    End If');
    document.writeln('  End If');
    document.writeln('End Function');
    document.writeln('</scr' + 'ipt>');
}

}

initpluginfinder();
 document.cookie='alcookietest=kruemelmonster';
