if(typeof(BotR)=='undefined'){var BotR=new Object();}
BotR.errors={noflashplayer:'It seems that you do not have Adobe Flash Player installed on your computer. Without this player you cannot see our videos. Please download and install the player (It\'s small and simple) by following the instructions <a href="http://www.adobe.com/go/getflashplayer" title="Get Adobe Flash Player">on this page</a>.',incompatible:'It seems that your Adobe Flash Player is out of date. You need a more recent version to see our videos. Please download and install the player (It\'s small and simple) by following the instructions <a href="http://www.adobe.com/go/getflashplayer" title="Get Adobe Flash Player">on this page</a>.',downloadvideo:'Download the video here'}
BotR.defaults={reqVersion:9,width:320,height:240}
BotR.params={'allowfullscreen':'true','allowscriptaccess':'always','enablejs':'true','wmode':'opaque'};BotR.swf=function(url,file,width,height,version){if(!document.getElementById){return;}
this.url=url;this.height=(isNaN(parseInt(height)))?BotR.defaults.height:height;this.width=(isNaN(parseInt(width)))?BotR.defaults.width:width;this.reqVersion=(isNaN(parseInt(version)))?BotR.defaults.reqVersion:version;this.params=BotR.params;this.flashvars=new Object();if(file!=''){this.flashvars.file=file;}
this.fallback=false;this.instVersion=this.getVersion();if(!window.opera&&document.all&&this.instVersion.split(',')[0]>7){if(!BotR.unloadSet){BotR.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",BotR.cleanupSWFs);}
window.attachEvent("onbeforeunload",BotR.prepUnload);BotR.unloadSet=true;}}}
BotR.swf.prototype={load:function(container){var v=parseInt(this.instVersion.split(',')[0]);if(v==0){var html=(this.fallback)?this.fallback:BotR.errors.noflashplayer
this.setHtml(container,html,true);}else if(v<this.reqVersion){this.setHtml(container,BotR.errors.incompatible,true);}else{this.setHtml(container,this.swfHtml(container),false);}},getVersion:function(){try{try{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];}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';},setHtml:function(id,html,check_fallback){if(check_fallback&&this.fallback==null)
return false;document.getElementById(id).innerHTML=html;},swfHtml:function(id){var html="";var fv=this.getFlashvars();if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){html='<embed type="application/x-shockwave-flash" src="'+this.url+'" width="'+this.width+'" height="'+this.height+'"';html+=' id="'+id+'swf" name="'+id+'swf" ';for(var key in this.params){html+=[key]+'="'+this.params[key]+'" ';}
if(fv){html+='flashvars="'+fv+'"';}
html+='/>';}else{html='<object id="'+id+'swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.width+'" height="'+this.height+'">';html+='<param name="movie" value="'+this.url+'" />';for(var key in this.params){html+='<param name="'+key+'" value="'+this.params[key]+'" />';}
if(fv){html+='<param name="flashvars" value="'+fv+'" />';}
html+="</object>";}
return html;},setParam:function(name,value){this.params[name]=value;},setFlashvar:function(name,value){this.flashvars[name]=encodeURIComponent(value);},getFlashvars:function(){var pairs=new Array();for(var key in this.flashvars){pairs[pairs.length]=(key+"="+this.flashvars[key]);}
return pairs.join('&');},setFallback:function(link){if(link==null){this.fallback=null}else{var fb='<a href="'+link+'" title="'+
BotR.errors.downloadvideo+'">'
if(this.flashvars.image){fb+='<img src="'+
decodeURIComponent(this.flashvars.image)+'" alt="Video thumbnail" '+'width="'+this.width+'" '+'height="'+this.height+'" />';}else{fb+=BotR.errors.downloadvideo;}
fb+='</a>'
this.fallback=fb;}},cleanupSWFs:function(){var objects=document.getElementsByTagName("OBJECT");for(var i=objects.length-1;i>=0;i--){objects[i].style.display='none';for(var x in objects[i]){if(typeof objects[i][x]=='function'){objects[i][x]=function(){};}}}}}
 
