var filmtime={f_url:"http://player.filmtime.com.au/",setup:function(a){if(window.swfobject)this.swfObjLoaded(a);else{var b=document.createElement("script");b.type="text/javascript";if(b.readyState)b.onreadystatechange=function(){if(b.readyState=="loaded"||b.readyState=="complete"){b.onreadystatechange=null;filmtime.swfObjLoaded(a)}};else b.onload=function(){filmtime.swfObjLoaded(a)};b.src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js";document.getElementsByTagName("head")[0].appendChild(b)}},
swfObjLoaded:function(a){this.send("play_video.js?id="+a+(location.protocol=="https:"?"&referer="+document.location.href:""))},play:function(a){this.param=a;if(swfobject.getFlashPlayerVersion().major>=8)if(this.param.id==undefined)console.log("FILMTIME ID NOT SPECIFIED");else{a="fixed";if(this.param.align!=undefined)switch(this.param.align){case "a":case "ca":case "ac":a="absolute";break}var b="position:"+a+";z-index:999999;margin:0px;padding:0px;";if(this.script==undefined)b+="width:120px;height:50px;";
if(this.param.align!=undefined)switch(this.param.align){case "a":b+="top:"+(this.param.yoffset!=undefined?this.param.yoffset:0)+"px;left:"+(this.param.xoffset!=undefined?this.param.xoffset:0)+"px;";break;case "ca":b+="top:"+(this.param.yoffset!=undefined?this.param.yoffset:0)+"px;left:50%;margin-left:60px;";break;case "ac":b+="top:"+(document.body.clientHeight/2-25)+"px;left:"+(this.param.xoffset!=undefined?this.param.xoffset:0)+"px;";break;case "bc":b+="bottom:0px;left:50%;margin-left:60px;";break;
case "tl":b+="top:0px;left:0px;";break;case "tr":b+="top:0px;right:0px;";break;case "br":b+="bottom:0px;right:0px;";break;default:b+="bottom:0px;left:0px;"}else b+="bottom:0px;left:0px;";if(/MSIE/i.test(navigator.userAgent))if(/MSIE 6/i.test(navigator.userAgent)||this.param.ieUseAbsolute!=undefined&&this.param.ieUseAbsolute==true||document.compatMode=="BackCompat")b+=this.param.align!=undefined&&this.param.align.substring(0,3)=="top"?"position:absolute;top:expression(eval(document.compatMode && document.compatMode=='CSS1Compat') ? documentElement.scrollTop : document.body.scrollTop);":
"position:absolute;top:expression(eval(document.compatMode && document.compatMode=='CSS1Compat') ? documentElement.scrollTop +(documentElement.clientHeight-this.clientHeight) : document.body.scrollTop +(document.body.clientHeight-this.clientHeight))";if((div=document.getElementById("filmtime_player"))!=null)div.style.cssText=b;else{a=document.createElement("div");a.setAttribute("id","filmtime_player");a.style.cssText=b;b=document.createElement("div");b.setAttribute("id","filmtime_player_flash");a.appendChild(b);
document.body.appendChild(a)}this.flashvars={id:this.param.id,domain:document.location.hostname};if(this.param.video!=undefined)this.flashvars.video=this.param.video;if(this.param.ghost!=undefined)this.flashvars.ghost=this.param.ghost;if(this.param.ghostscale!=undefined)this.flashvars.ghostscale=this.param.ghostscale;if(this.param.link!=undefined)this.flashvars.link=this.param.link;if(this.param.align!=undefined&&this.param.align!="a")this.flashvars.align=this.param.align;if(this.param.skin!=undefined)this.flashvars.player_skin=
this.param.skin;if(this.param.preload!=undefined)this.flashvars.preload=this.param.preload;if(this.param.playNumberTimes!=undefined)this.flashvars.playNumberTimes=this.param.playNumberTimes;if(this.param.playExpiry!=undefined)this.flashvars.playExpiry=this.param.playExpiry;if(this.param.controlsx!=undefined)this.flashvars.controlsx=this.param.controlsx;if(this.param.controlsy!=undefined)this.flashvars.controlsy=this.param.controlsy;if(this.param.loopStopped!=undefined)this.flashvars.loopStopped=this.param.loopStopped;
this.params={wmode:"transparent",menu:"false",allowscriptaccess:"always",quality:"autohigh",bgcolor:"#000000"};this.attributes={style:"outline:none",id:"filmtime_player_flash",name:"filmtime_player_flash"};a=swfobject.getFlashPlayerVersion();a=a.major+"."+a.minor+"."+a.release;this.send("stat.js?version="+a+"&id="+this.param.id+(this.param.video!=undefined?"&video="+this.param.video:""))}return true},ready:function(a){this.flashvars.stat_id=a;swfobject.embedSWF("http://presenters.s3.amazonaws.com/AS2player.swf",
"filmtime_player_flash","120","50","8.0.0","",this.flashvars,this.params,this.attributes);if(this.param.align!="ca"){if(this.param.xoffset!=undefined)document.getElementById("filmtime_player_flash").style.marginLeft=this.param.xoffset+"px";if(this.param.yoffset!=undefined)document.getElementById("filmtime_player_flash").style.marginTop=this.param.yoffset+"px"}a=/Firefox[\/\s](\d+\.\d+)/.exec(navigator.userAgent);if(a!=null&&parseFloat(a[1])<4)document.getElementById("filmtime_player").onmousemove=
function(){document.getElementById("filmtime_player_flash").mouse_moved()}},videoFinished:function(a){this.send("stat.js?stat_id="+a)},setSize:function(a,b){if(document.getElementById("filmtime_player_flash").width!=a||document.getElementById("filmtime_player_flash").height!=b){document.getElementById("filmtime_player_flash").width=a;document.getElementById("filmtime_player_flash").height=b;document.getElementById("filmtime_player").style.width=a+"px";document.getElementById("filmtime_player").style.height=
b+"px";if(this.param.align=="bc"){var c=-(a/2);if(this.param.xoffset!=undefined&&this.param.xoffset!=0)c+=parseInt(this.param.xoffset);if(this.param.yoffset!=undefined&&this.param.yoffset!=0)document.getElementById("filmtime_player").style.marginBottom=-this.param.yoffset+"px";document.getElementById("filmtime_player").style.marginLeft=c+"px"}if(this.param.align=="ca"){c=-(a/2);if(this.param.xoffset!=undefined&&this.param.xoffset!=0)c+=parseInt(this.param.xoffset);document.getElementById("filmtime_player").style.marginLeft=
c+"px"}if(this.param.align=="ac")document.getElementById("filmtime_player").style.Top=document.body.clientHeight/2-b/2+"px"}},send:function(a){this.script!=undefined&&document.getElementsByTagName("head")[0].removeChild(this.script);var b=document.createElement("script");b.setAttribute("src",this.f_url+a);this.script=document.getElementsByTagName("head")[0].appendChild(b)}};
filmtime.setup(221);
