1)for(var l=
0;l=0){FABridge.attachBridge(j[l],b);t=true;break}}if(t)break}if(!t&&c>1)for(j=0;j=0){FABridge.attachBridge(e[j],b);break}}return true}FABridge.nextBridgeID=0;FABridge.instances={};FABridge.idMap={};FABridge.refCount=0;
FABridge.extractBridgeFromID=function(b){return FABridge.idMap[b>>16]};FABridge.attachBridge=function(b,e){var c=new FABridge(b,e);FABridge[e]=c;var j=FABridge.initCallbacks[e];if(j!=null){for(var k=0;k0)throw Error("You are trying to call recursively into the Flash Player which is not allowed. In most cases the JavaScript setTimeout function, can be used as a workaround.");
else{FABridge.refCount++;retVal=this.target.getPropFromAS(b,e);retVal=this.handleError(retVal);FABridge.refCount--;return retVal}},setPropertyInAS:function(b,e,c){if(FABridge.refCount>0)throw Error("You are trying to call recursively into the Flash Player which is not allowed. In most cases the JavaScript setTimeout function, can be used as a workaround.");else{FABridge.refCount++;retVal=this.target.setPropInAS(b,e,this.serialize(c));retVal=this.handleError(retVal);FABridge.refCount--;return retVal}},
callASFunction:function(b,e){if(FABridge.refCount>0)throw Error("You are trying to call recursively into the Flash Player which is not allowed. In most cases the JavaScript setTimeout function, can be used as a workaround.");else{FABridge.refCount++;retVal=this.target.invokeASFunction(b,this.serialize(e));retVal=this.handleError(retVal);FABridge.refCount--;return retVal}},callASMethod:function(b,e,c){if(FABridge.refCount>0)throw Error("You are trying to call recursively into the Flash Player which is not allowed. In most cases the JavaScript setTimeout function, can be used as a workaround.");
else{FABridge.refCount++;c=this.serialize(c);retVal=this.target.invokeASMethod(b,e,c);retVal=this.handleError(retVal);FABridge.refCount--;return retVal}},invokeLocalFunction:function(b,e){var c,j=this.localFunctionCache[b];if(j!=undefined)c=this.serialize(j.apply(null,this.deserialize(e)));return c},getTypeFromName:function(b){return this.remoteTypeCache[b]},createProxy:function(b,e){var c=this.getTypeFromName(e);instanceFactory.prototype=c;c=new instanceFactory(b);return this.remoteInstanceCache[b]=
c},getProxy:function(b){return this.remoteInstanceCache[b]},addTypeDataToCache:function(b){newType=new ASProxy(this,b.name);for(var e=b.accessors,c=0;c="a"&&c<="z"){j="get"+c.toUpperCase()+e.substr(1);c="set"+c.toUpperCase()+e.substr(1)}else{j=
"get"+e;c="set"+e}b[c]=function(k){this.bridge.setPropertyInAS(this.fb_instance_id,e,k)};b[j]=function(){return this.bridge.deserialize(this.bridge.getPropertyFromAS(this.fb_instance_id,e))}},addMethodToType:function(b,e){b[e]=function(){return this.bridge.deserialize(this.bridge.callASMethod(this.fb_instance_id,e,FABridge.argsToArray(arguments)))}},getFunctionProxy:function(b){var e=this;if(this.remoteFunctionCache[b]==null)this.remoteFunctionCache[b]=function(){e.callASFunction(b,FABridge.argsToArray(arguments))};
return this.remoteFunctionCache[b]},getFunctionID:function(b){if(b.__bridge_id__==undefined){b.__bridge_id__=this.makeID(this.nextLocalFuncID++);this.localFunctionCache[b.__bridge_id__]=b}return b.__bridge_id__},serialize:function(b){var e={},c=typeof b;if(c=="number"||c=="string"||c=="boolean"||c==null||c==undefined)e=b;else if(b instanceof Array){e=[];for(c=0;c0&&FABridge.refCount--;throw Error(b[1]);}return b}};
ASProxy=function(b,e){this.bridge=b;this.typeName=e;return this};ASProxy.prototype={get:function(b){return this.bridge.deserialize(this.bridge.getPropertyFromAS(this.fb_instance_id,b))},set:function(b,e){this.bridge.setPropertyInAS(this.fb_instance_id,b,e)},call:function(b,e){this.bridge.callASMethod(this.fb_instance_id,b,e)},addRef:function(){this.bridge.addRef(this)},release:function(){this.bridge.release(this)}};
(function(){function b(){}if(!window.WebSocket){var e=window.console;if(!e||!e.log||!e.error)e={log:function(){},error:function(){}};if(function(){if("navigator"in window&&"plugins"in navigator&&navigator.plugins["Shockwave Flash"])return!!navigator.plugins["Shockwave Flash"].description;if("ActiveXObject"in window)try{return!!(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}catch(c){}return false}()){e.log(location.protocol);location.protocol=="file:"&&e.error("web-socket-js doesn't work in file:///... URL (without special configuration). Open the page via Web server i.e. http://...");
WebSocket=function(c,j,k,p,t){var l=this;l.readyState=WebSocket.CONNECTING;l.bufferedAmount=0;setTimeout(function(){WebSocket.__addTask(function(){l.__createFlash(c,j,k,p,t)})},1)};WebSocket.prototype.__createFlash=function(c,j,k,p,t){var l=this;l.__flash=WebSocket.__flash.create(c,j,k||null,p||0,t||null);l.__flash.addEventListener("open",function(){try{l.readyState=l.__flash.getReadyState();l.__timer&&clearInterval(l.__timer);if(window.opera)l.__timer=setInterval(function(){l.__handleMessages()},
500);l.onopen&&l.onopen()}catch(u){e.error(u.toString())}});l.__flash.addEventListener("close",function(){try{l.readyState=l.__flash.getReadyState();l.__timer&&clearInterval(l.__timer);l.onclose&&l.onclose()}catch(u){e.error(u.toString())}});l.__flash.addEventListener("message",function(){try{l.__handleMessages()}catch(u){e.error(u.toString())}});l.__flash.addEventListener("error",function(){try{l.__timer&&clearInterval(l.__timer);l.onerror&&l.onerror()}catch(u){e.error(u.toString())}});l.__flash.addEventListener("stateChange",
function(u){try{l.readyState=l.__flash.getReadyState();l.bufferedAmount=u.getBufferedAmount()}catch(y){e.error(y.toString())}})};WebSocket.prototype.send=function(c){if(this.__flash)this.readyState=this.__flash.getReadyState();if(!this.__flash||this.readyState==WebSocket.CONNECTING)throw"INVALID_STATE_ERR: Web Socket connection has not been established";c=this.__flash.send(encodeURIComponent(c));if(c<0)return true;else{this.bufferedAmount=c;return false}};WebSocket.prototype.close=function(){if(this.__flash){this.readyState=
this.__flash.getReadyState();if(this.readyState==WebSocket.OPEN){this.__flash.close();this.readyState=WebSocket.CLOSED;this.__timer&&clearInterval(this.__timer);this.onclose&&this.onclose()}}};WebSocket.prototype.addEventListener=function(c,j){if(!("__events"in this))this.__events={};if(!(c in this.__events)){this.__events[c]=[];if("function"==typeof this["on"+c]){this.__events[c].defaultHandler=this["on"+c];this["on"+c]=this.__createEventHandler(this,c)}}this.__events[c].push(j)};WebSocket.prototype.removeEventListener=
function(c,j){if(!("__events"in this))this.__events={};if(c in this.__events)for(var k=this.__events.length;k>-1;--k)if(j===this.__events[c][k]){this.__events[c].splice(k,1);break}};WebSocket.prototype.dispatchEvent=function(c){if(!("__events"in this))throw"UNSPECIFIED_EVENT_TYPE_ERR";if(!(c.type in this.__events))throw"UNSPECIFIED_EVENT_TYPE_ERR";for(var j=0,k=this.__events[c.type].length;j