1)for(var l=
0;l=0){FABridge.attachBridge(g[l],c);t=true;break}}if(t)break}if(!t&&b>1)for(g=0;g=0){FABridge.attachBridge(e[g],c);break}}return true}FABridge.nextBridgeID=0;FABridge.instances={};FABridge.idMap={};FABridge.refCount=0;
FABridge.extractBridgeFromID=function(c){return FABridge.idMap[c>>16]};FABridge.attachBridge=function(c,e){var b=new FABridge(c,e);FABridge[e]=b;var g=FABridge.initCallbacks[e];if(g!=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(c,e);retVal=this.handleError(retVal);FABridge.refCount--;return retVal}},setPropertyInAS:function(c,e,b){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(c,e,this.serialize(b));retVal=this.handleError(retVal);FABridge.refCount--;return retVal}},
callASFunction:function(c,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(c,this.serialize(e));retVal=this.handleError(retVal);FABridge.refCount--;return retVal}},callASMethod:function(c,e,b){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++;b=this.serialize(b);retVal=this.target.invokeASMethod(c,e,b);retVal=this.handleError(retVal);FABridge.refCount--;return retVal}},invokeLocalFunction:function(c,e){var b,g=this.localFunctionCache[c];if(g!=undefined)b=this.serialize(g.apply(null,this.deserialize(e)));return b},getTypeFromName:function(c){return this.remoteTypeCache[c]},createProxy:function(c,e){var b=this.getTypeFromName(e);instanceFactory.prototype=b;b=new instanceFactory(c);return this.remoteInstanceCache[c]=
b},getProxy:function(c){return this.remoteInstanceCache[c]},addTypeDataToCache:function(c){for(var e=new ASProxy(this,c.name),b=c.accessors,g=0;g="a"&&b<="z"){g="get"+b.toUpperCase()+e.substr(1);b="set"+b.toUpperCase()+e.substr(1)}else{g="get"+e;b="set"+
e}c[b]=function(k){this.bridge.setPropertyInAS(this.fb_instance_id,e,k)};c[g]=function(){return this.bridge.deserialize(this.bridge.getPropertyFromAS(this.fb_instance_id,e))}},addMethodToType:function(c,e){c[e]=function(){return this.bridge.deserialize(this.bridge.callASMethod(this.fb_instance_id,e,FABridge.argsToArray(arguments)))}},getFunctionProxy:function(c){var e=this;if(this.remoteFunctionCache[c]==null)this.remoteFunctionCache[c]=function(){e.callASFunction(c,FABridge.argsToArray(arguments))};
return this.remoteFunctionCache[c]},getFunctionID:function(c){if(c.__bridge_id__==undefined){c.__bridge_id__=this.makeID(this.nextLocalFuncID++);this.localFunctionCache[c.__bridge_id__]=c}return c.__bridge_id__},serialize:function(c){var e={},b=typeof c;if(b=="number"||b=="string"||b=="boolean"||b==null||b==undefined)e=c;else if(c instanceof Array){e=[];for(b=0;b0&&FABridge.refCount--;throw Error(c[1]);}return c}};
ASProxy=function(c,e){this.bridge=c;this.typeName=e;return this};ASProxy.prototype={get:function(c){return this.bridge.deserialize(this.bridge.getPropertyFromAS(this.fb_instance_id,c))},set:function(c,e){this.bridge.setPropertyInAS(this.fb_instance_id,c,e)},call:function(c,e){this.bridge.callASMethod(this.fb_instance_id,c,e)},addRef:function(){this.bridge.addRef(this)},release:function(){this.bridge.release(this)}};
(function(){function c(){}if(!window.WebSocket){var e=window.console;if(!e||!e.log||!e.error)e={log:function(){},error:function(){}};if(swfobject.hasFlashPlayerVersion("9.0.0")){location.protocol=="file:"&&e.error("WARNING: web-socket-js doesn't work in file:///... URL unless you set Flash Security Settings properly. Open the page via Web server i.e. http://...");WebSocket=function(b,g,k,p,t){var l=this;l.readyState=WebSocket.CONNECTING;l.bufferedAmount=0;setTimeout(function(){WebSocket.__addTask(function(){l.__createFlash(b,
g,k,p,t)})},1)};WebSocket.prototype.__createFlash=function(b,g,k,p,t){var l=this;l.__flash=WebSocket.__flash.create(b,g,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(b){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";b=this.__flash.send(encodeURIComponent(b));if(b<0)return true;else{this.bufferedAmount=b;return false}};WebSocket.prototype.close=function(){if(this.__flash){this.readyState=this.__flash.getReadyState();if(!(this.readyState==WebSocket.CLOSED||this.readyState==WebSocket.CLOSING)){this.__flash.close();
this.readyState=WebSocket.CLOSED;this.__timer&&clearInterval(this.__timer);this.onclose&&setTimeout(this.onclose,1)}}};WebSocket.prototype.addEventListener=function(b,g){if(!("__events"in this))this.__events={};if(!(b in this.__events)){this.__events[b]=[];if("function"==typeof this["on"+b]){this.__events[b].defaultHandler=this["on"+b];this["on"+b]=this.__createEventHandler(this,b)}}this.__events[b].push(g)};WebSocket.prototype.removeEventListener=function(b,g){if(!("__events"in this))this.__events=
{};if(b in this.__events)for(var k=this.__events.length;k>-1;--k)if(g===this.__events[b][k]){this.__events[b].splice(k,1);break}};WebSocket.prototype.dispatchEvent=function(b){if(!("__events"in this))throw"UNSPECIFIED_EVENT_TYPE_ERR";if(!(b.type in this.__events))throw"UNSPECIFIED_EVENT_TYPE_ERR";for(var g=0,k=this.__events[b.type].length;g