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.php?id="+a)},play:function(a){this.param=a;if(swfobject.getFlashPlayerVersion().major>=8)if(this.param.id==undefined)console.log("FILMTIME ID NOT SPECIFIED");else{var b="position:fixed;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 "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};if(this.param.video!=undefined)this.flashvars.video=this.param.video;this.flashvars.align=this.param.align!=undefined?this.param.align:"bottomleft";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;this.params={wmode:"transparent",menu:"false",allowScriptAccess:"always",quality:"autohigh",bgcolor:"#000000"};this.attributes={style:"outline:none"};a=swfobject.getFlashPlayerVersion();a=a.major+"."+a.minor+"."+a.release;this.send("stat.php?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/player.swf","filmtime_player_flash",
"120","50","8.0.0","",this.flashvars,this.params,this.attributes);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"},videoFinished:function(a){this.send("stat.php?stat_id="+a)},setSize:function(a,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"){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";document.getElementById("filmtime_player").style.marginLeft=-(a/2)+"px"}},send:function(a){var b=new Date;
this.script!=undefined&&document.getElementsByTagName("head")[0].removeChild(this.script);var c=document.createElement("script");c.setAttribute("src",this.f_url+a+"&cache="+b.getTime());this.script=document.getElementsByTagName("head")[0].appendChild(c)}};
filmtime.setup(255);