 function getFlashVersion(){
  // ie
  try {
    try {
      // avoid fp6 minor version lookup issues
      // see: http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
      var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6');
      try { axo.AllowScriptAccess = 'always'; }
      catch(e) { return '6,0,0'; }
    } catch(e) {}
    return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];
  // other browsers
  } catch(e) {
    try {
      if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
        return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1];
      }
    } catch(e) {}
  }
  return '0,0,0';
}

      
function ToonBanner(BestandNaam, versie)
{
 if((navigator.userAgent.match(/iPhone/i)) || 
    (navigator.userAgent.match(/iPod/i)) || 
    (navigator.userAgent.match(/iPad/i)) || 
    (navigator.userAgent.match(/webOS/i)) || 
    (navigator.userAgent.match(/Android/i)) ||
    (navigator.userAgent.match(/SymbianOS/i)) ||
    (navigator.userAgent.match(/BlackBerry/i)) ||
    (getFlashVersion().split(',').shift() < 6)
   )
 {
   document.write('<img alt="Banner" src="' + BestandNaam + '.jpg" width="1000" height="254" border="0" />');
   
   if(screen.width<801)
   {
   document.getElementById("top_menu").style.fontSize = "20px";
   document.getElementById("top_menu").style.height= "35px";
   document.getElementById("top_menu").style.backgroundRepeat= "repeat";
  }
  
 }
 else
 {

  document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="1000" height="254" id="flash">');
  if (typeof versie == "undefined") {
 	  	document.write ('<param name="movie" value="' + BestandNaam + '.swf" />');
     }
  	else
  	{
 	  	document.write ('<param name="movie" value="' + BestandNaam + '.swf?versie=' + versie +'" />');
   	}
  
  document.write ('<param name="quality" value="high" />');
  document.write ('<param name="bgcolor" value="#FFFFFF" />');
  document.write ('<param name="menu" value="false" />');
  document.write ('<embed src="' + BestandNaam + '.swf" quality=high bgcolor=#FFFFFF WIDTH="1000" HEIGHT="254" swLiveConnect=true ID="flash1" ALIGN="top" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></embed>');
  document.write ('</object>');

 }
}	

