/*jsonrpc.js*/var escapeJSONChar=function(){var A=["\b","\t","\n","\f","\r"];return function(C){if(C=='"'||C=="\\"){return"\\"+C}if(C.charCodeAt(0)>=32){return C}for(var B=0;B<A.length;B++){if(C==A[B]){return"\\"+C}}return C}}();function escapeJSONString(B){var C=B.split("");for(var A=0;A<C.length;A++){C[A]=escapeJSONChar(C[A])}return'"'+C.join("")+'"'}function toJSON(F){var A="$_$jabsorbed$813492";var H;var E=[];function C(){var I;while(H){I=H[A].prev;delete H[A];H=I}}var G={};var B;function D(J,I,K){var R=[],M,L,Q,O,N;if(J===null||J===undefined){return"null"}else{if(typeof J==="string"){return escapeJSONString(J)}else{if(typeof J==="number"){return J.toString()}else{if(typeof J==="boolean"){return J.toString()}else{if(J[A]){M=[K];Q=I;while(Q){if(L){L.unshift(Q[A].ref)}if(Q===J){O=Q;L=[O[A].ref]}M.unshift(Q[A].ref);Q=Q[A].parent}if(O){if(JSONRpcClient.fixupCircRefs){M.shift();L.shift();E.push([M,L]);return G}else{C();throw new Error("circular reference detected!")}}else{if(JSONRpcClient.fixupDuplicates){L=[J[A].ref];Q=J[A].parent;while(Q){L.unshift(Q[A].ref);Q=Q[A].parent}M.shift();L.shift();E.push([M,L]);return G}}}else{J[A]={parent:I,prev:H,ref:K};H=J}if(J.constructor===Date){return'{javaClass: "java.util.Date", time: '+J.valueOf()+"}"}else{if(J.constructor===Array){for(N=0;N<J.length;N++){B=D(J[N],J,N);R.push(B===G?null:B)}return"["+R.join(", ")+"]"}else{for(var P in J){if(P===A){}else{if(J[P]===null||J[P]===undefined){R.push('"'+P+'": null')}else{if(typeof J[P]=="function"){}else{B=D(J[P],J,P);if(B!==G){R.push(escapeJSONString(P)+": "+B)}}}}}return"{"+R.join(", ")+"}"}}}}}}}B=D(F,null,"root");C();if(E.length){return{json:B,fixups:E}}else{return{json:B}}}function JSONRpcClient(){var B=0,H,A,D,C,E,G=(typeof arguments[0]),F=true;if(G==="function"){this.readyCB=arguments[0];B++}else{if(arguments[0]&&G==="object"&&arguments[0].length){this._addMethods(arguments[0]);B++;F=false}}this.serverURL=arguments[B];this.user=arguments[B+1];this.pass=arguments[B+2];this.objectID=0;if(F){this._addMethods(["system.listMethods"]);H=JSONRpcClient._makeRequest(this,"system.listMethods",[]);if(this.readyCB){C=this;H.cb=function(I,J){if(!J){C._addMethods(I)}C.readyCB(I,J)}}if(!this.readyCB){D=JSONRpcClient._sendRequest(this,H);this._addMethods(D)}else{JSONRpcClient.async_requests.push(H);JSONRpcClient.kick_async()}}}JSONRpcClient.prototype.createCallableProxy=function(G,F){var E,D,C,A,B;E=new JSONRPCCallableProxy(G,F);for(A in JSONRpcClient.knownClasses[F]){E[A]=JSONRpcClient.bind(JSONRpcClient.knownClasses[F][A],E)}return E};function JSONRPCCallableProxy(){this.objectID=arguments[0];this.javaClass=arguments[1];this.JSONRPCType="CallableReference"}JSONRpcClient.knownClasses={};JSONRpcClient.Exception=function(B){var A;for(var C in B){if(B.hasOwnProperty(C)){this[C]=B[C]}}if(this.trace){A=this.trace.match(/^([^:]*)/);if(A){this.name=A[0]}}if(!this.name){this.name="JSONRpcClientException"}};JSONRpcClient.Exception.CODE_REMOTE_EXCEPTION=490;JSONRpcClient.Exception.CODE_ERR_CLIENT=550;JSONRpcClient.Exception.CODE_ERR_PARSE=590;JSONRpcClient.Exception.CODE_ERR_NOMETHOD=591;JSONRpcClient.Exception.CODE_ERR_UNMARSHALL=592;JSONRpcClient.Exception.CODE_ERR_MARSHALL=593;JSONRpcClient.Exception.prototype=new Error();JSONRpcClient.Exception.prototype.toString=function(A,C){var B="";if(this.name){B+=this.name}if(this.message){B+=": "+this.message}if(B.length==0){B="no exception information given"}return B};JSONRpcClient.default_ex_handler=function(A){var B="";for(a in A){B+=a+"\t"+A[a]+"\n"}alert(B)};JSONRpcClient.toplevel_ex_handler=JSONRpcClient.default_ex_handler;JSONRpcClient.profile_async=false;JSONRpcClient.max_req_active=1;JSONRpcClient.requestId=1;JSONRpcClient.fixupCircRefs=true;JSONRpcClient.fixupDuplicates=true;JSONRpcClient.transformDates=false;JSONRpcClient.bind=function(B,A){return function(){return B.apply(A,arguments)}};JSONRpcClient._createMethod=function(A,C){var B=function(){var D=[],G;for(var E=0;E<arguments.length;E++){D.push(arguments[E])}if(typeof D[0]=="function"){G=D.shift()}var F=JSONRpcClient._makeRequest(this,C,D,this.objectID,G);if(!G){return JSONRpcClient._sendRequest(A,F)}else{JSONRpcClient.async_requests.push(F);JSONRpcClient.kick_async();return F.requestId}};return B};JSONRpcClient.prototype.createObject=function(){var C=[],F=null,B,A,E;for(var D=0;D<arguments.length;D++){C.push(arguments[D])}if(typeof C[0]=="function"){F=C.shift()}B=C[0]+".$constructor";A=C[1];E=JSONRpcClient._makeRequest(this,B,A,0,F);if(F===null){return JSONRpcClient._sendRequest(this,E)}else{JSONRpcClient.async_requests.push(E);JSONRpcClient.kick_async();return E.requestId}};JSONRpcClient.CALLABLE_REFERENCE_METHOD_PREFIX=".ref";JSONRpcClient.prototype._addMethods=function(L,G){var C,I,K,D,A,F=[],E,B,M,J;for(var H=0;H<L.length;H++){I=this;K=L[H].split(".");M=L[H].indexOf("[");J=L[H].indexOf("]");if((L[H].substring(0,JSONRpcClient.CALLABLE_REFERENCE_METHOD_PREFIX.length)==JSONRpcClient.CALLABLE_REFERENCE_METHOD_PREFIX)&&(M!=-1)&&(J!=-1)&&(M<J)){E=L[H].substring(M+1,J)}else{for(D=0;D<K.length-1;D++){C=K[D];if(I[C]){I=I[C]}else{I[C]={};I=I[C]}}}C=K[K.length-1];if(E){A=JSONRpcClient._createMethod(this,C);if(!JSONRpcClient.knownClasses[E]){JSONRpcClient.knownClasses[E]={}}JSONRpcClient.knownClasses[E][C]=A}else{A=JSONRpcClient._createMethod(this,L[H]);if((!I[C])&&(!G)){I[C]=JSONRpcClient.bind(A,this)}F.push(A)}E=null}return F};JSONRpcClient._getCharsetFromHeaders=function(A){var E,D,B;try{E=A.getResponseHeader("Content-type");D=E.split(/\s*;\s*/);for(B=0;B<D.length;B++){if(D[B].substring(0,8)=="charset="){return D[B].substring(8,D[B].length)}}}catch(C){}return"UTF-8"};JSONRpcClient.async_requests=[];JSONRpcClient.async_inflight={};JSONRpcClient.async_responses=[];JSONRpcClient.async_timeout=null;JSONRpcClient.num_req_active=0;JSONRpcClient._async_handler=function(){var A,B;JSONRpcClient.async_timeout=null;while(JSONRpcClient.async_responses.length>0){A=JSONRpcClient.async_responses.shift();if(A.canceled){continue}if(A.profile){A.profile.dispatch=new Date()}try{A.cb(A.result,A.ex,A.profile)}catch(C){JSONRpcClient.toplevel_ex_handler(C)}}while(JSONRpcClient.async_requests.length>0&&JSONRpcClient.num_req_active<JSONRpcClient.max_req_active){B=JSONRpcClient.async_requests.shift();if(B.canceled){continue}JSONRpcClient._sendRequest(B.client,B)}};JSONRpcClient.kick_async=function(){if(!JSONRpcClient.async_timeout){JSONRpcClient.async_timeout=setTimeout(JSONRpcClient._async_handler,0)}};JSONRpcClient.cancelRequest=function(B){if(JSONRpcClient.async_inflight[B]){JSONRpcClient.async_inflight[B].canceled=true;return true}var A;for(A in JSONRpcClient.async_requests){if(JSONRpcClient.async_requests[A].requestId==B){JSONRpcClient.async_requests[A].canceled=true;return true}}for(A in JSONRpcClient.async_responses){if(JSONRpcClient.async_responses[A].requestId==B){JSONRpcClient.async_responses[A].canceled=true;return true}}return false};JSONRpcClient._makeRequest=function(B,C,E,H,A){var F={};F.client=B;F.requestId=JSONRpcClient.requestId++;var G="{id:"+F.requestId+",method:";if((H)&&(H>0)){G+='".obj['+H+"]."+C+'"'}else{G+='"'+C+'"'}if(A){F.cb=A}if(JSONRpcClient.profile_async){F.profile={submit:new Date()}}var D=toJSON(E);G+=",params:"+D.json;if(D.fixups){G+=",fixups:"+toJSON(D.fixups).json}F.data=G+"}";return F};JSONRpcClient._sendRequest=function(A,C){var B;if(C.profile){C.profile.start=new Date()}B=JSONRpcClient.poolGetHTTPRequest();JSONRpcClient.num_req_active++;B.open("POST",A.serverURL,!!C.cb,A.user,A.pass);try{B.setRequestHeader("Content-type","text/plain")}catch(D){}if(C.cb){B.onreadystatechange=function(){var E;if(B.readyState==4){B.onreadystatechange=function(){};E={cb:C.cb,result:null,ex:null};if(C.profile){E.profile=C.profile;E.profile.end=new Date()}else{E.profile=false}try{E.result=A._handleResponse(B)}catch(F){E.ex=F}if(!JSONRpcClient.async_inflight[C.requestId].canceled){JSONRpcClient.async_responses.push(E)}delete JSONRpcClient.async_inflight[C.requestId];JSONRpcClient.kick_async()}}}else{B.onreadystatechange=function(){}}JSONRpcClient.async_inflight[C.requestId]=C;try{B.send(C.data)}catch(D){JSONRpcClient.poolReturnHTTPRequest(B);JSONRpcClient.num_req_active--;throw new JSONRpcClient.Exception({code:JSONRpcClient.Exception.CODE_ERR_CLIENT,message:"Connection failed"})}if(!C.cb){delete JSONRpcClient.async_inflight[C.requestId];return A._handleResponse(B)}return null};JSONRpcClient.prototype._handleResponse=function(B){if(!this.charset){this.charset=JSONRpcClient._getCharsetFromHeaders(B)}var A,E,C;try{A=B.status;E=B.statusText;C=B.responseText}catch(D){JSONRpcClient.poolReturnHTTPRequest(B);JSONRpcClient.num_req_active--;JSONRpcClient.kick_async();throw new JSONRpcClient.Exception({code:JSONRpcClient.Exception.CODE_ERR_CLIENT,message:"Connection failed"})}JSONRpcClient.poolReturnHTTPRequest(B);JSONRpcClient.num_req_active--;if(A!=200){throw new JSONRpcClient.Exception({code:A,message:E})}return this.unmarshallResponse(C)};JSONRpcClient.prototype.unmarshallResponse=function(data){function applyFixups(obj,fixups){function findOriginal(ob,original){for(var i=0,j=original.length;i<j;i++){ob=ob[original[i]]}return ob}function applyFixup(ob,fixups,value){var j=fixups.length-1;for(var i=0;i<j;i++){ob=ob[fixups[i]]}ob[fixups[j]]=value}for(var i=0,j=fixups.length;i<j;i++){applyFixup(obj,fixups[i][0],findOriginal(obj,fixups[i][1]))}}function transform_date(obj){var hint,foo,num,i,jsDate;if(obj&&typeof obj==="object"){hint=obj.hasOwnProperty("javaClass");foo=hint?obj.javaClass==="java.util.Date":obj.hasOwnProperty("time");num=0;if(!hint&&foo){for(i in obj){if(obj.hasOwnProperty(i)){num++}}}if(hint&&foo||foo&&num===1){jsDate=new Date(obj.time);return jsDate}else{for(i in obj){if(obj.hasOwnProperty(i)){obj[i]=transform_date(obj[i])}}return obj}}else{return obj}}var obj;try{eval("obj = "+data)}catch(e){throw new JSONRpcClient.Exception({code:550,message:"error parsing result"})}if(obj.error){throw new JSONRpcClient.Exception(obj.error)}var r=obj.result;var i,tmp;if(r){if(r.objectID&&r.JSONRPCType=="CallableReference"){return this.createCallableProxy(r.objectID,r.javaClass)}else{r=JSONRpcClient.extractCallableReferences(this,JSONRpcClient.transformDates?transform_date(r):r);if(obj.fixups){applyFixups(r,obj.fixups)}}}return r};JSONRpcClient.extractCallableReferences=function(B,A){var D,C,E;for(D in A){if(typeof (A[D])=="object"){C=JSONRpcClient.makeCallableReference(B,A[D]);if(C){A[D]=C}else{C=JSONRpcClient.extractCallableReferences(B,A[D]);A[D]=C}}if(typeof (D)=="object"){C=JSONRpcClient.makeCallableReference(B,D);if(C){E=A[D];delete A[D];A[C]=E}else{C=JSONRpcClient.extractCallableReferences(B,D);E=A[D];delete A[D];A[C]=E}}}return A};JSONRpcClient.makeCallableReference=function(A,B){if(B&&B.objectID&&B.javaClass&&B.JSONRPCType=="CallableReference"){return A.createCallableProxy(B.objectID,B.javaClass)}return null};JSONRpcClient.http_spare=[];JSONRpcClient.http_max_spare=8;JSONRpcClient.poolGetHTTPRequest=function(){var A=JSONRpcClient.http_spare.pop();if(A){return A}return JSONRpcClient.getHTTPRequest()};JSONRpcClient.poolReturnHTTPRequest=function(A){if(JSONRpcClient.http_spare.length>=JSONRpcClient.http_max_spare){delete A}else{JSONRpcClient.http_spare.push(A)}};JSONRpcClient.msxmlNames=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","Microsoft.XMLHTTP"];JSONRpcClient.getHTTPRequest=function(){try{JSONRpcClient.httpObjectName="XMLHttpRequest";return new XMLHttpRequest()}catch(B){}for(var A=0;A<JSONRpcClient.msxmlNames.length;A++){try{JSONRpcClient.httpObjectName=JSONRpcClient.msxmlNames[A];return new ActiveXObject(JSONRpcClient.msxmlNames[A])}catch(B){}}JSONRpcClient.httpObjectName=null;throw new JSONRpcClient.Exception({code:0,message:"Can't create XMLHttpRequest object"})}
/*AC_RunActiveContent*/var isMSIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var a;var b;var e;try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=b.GetVariable("$version")}catch(e){}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a="WIN 6,0,21,0";b.AllowScriptAccess="always";a=b.GetVariable("$version")}catch(e){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a=b.GetVariable("$version")}catch(e){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a="WIN 3,0,18,0"}catch(e){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");a="WIN 2,0,0,11"}catch(e){a=-1}}return a};function GetSwfVer(){var a=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var b=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var c=navigator.plugins["Shockwave Flash"+b].description;var d=c.split(" ");var e=d[2].split(".");var f=e[0];var g=e[1];var h=d[3];if(h==""){h=d[4]}if(h[0]=="d"){h=h.substring(1)}else if(h[0]=="r"){h=h.substring(1);if(h.indexOf("d")>0){h=h.substring(0,h.indexOf("d"))}}var a=f+"."+g+"."+h}}else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1)a=4;else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1)a=3;else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1)a=2;else if(isMSIE&&isWin&&!isOpera){a=ControlVersion()}return a};function DetectFlashVer(a,b,c){versionStr=GetSwfVer();if(versionStr==-1){return false}else if(versionStr!=0){if(isMSIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var d=versionArray[0];var e=versionArray[1];var f=versionArray[2];if(d>parseFloat(a)){return true}else if(d==parseFloat(a)){if(e>parseFloat(b))return true;else if(e==parseFloat(b)){if(f>=parseFloat(c))return true}}return false}};function AC_AddExtension(a,b){if(a.indexOf('?')!=-1)return a.replace(/\?/,b+'?');else return a+b};function AC_Generateobj(a,b,c){var d='';if(isMSIE&&isWin&&!isOpera){d+='<object ';for(var i in a){d+=i+'="'+a[i]+'" '}d+='>';for(var i in b){d+='<param name="'+i+'" value="'+b[i]+'" /> '}d+='</object>'}else{d+='<embed ';for(var i in c){d+=i+'="'+c[i]+'" '}d+='> </embed>'}document.write(d)};function AC_FL_RunContent(){var a=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)};function AC_SW_RunContent(){var a=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)};function AC_GetArgs(a,b,c,d,e){var f=new Object();f.embedAttrs=new Object();f.params=new Object();f.objAttrs=new Object();for(var i=0;i<a.length;i=i+2){var g=a[i].toLowerCase();switch(g){case"classid":break;case"pluginspage":f.embedAttrs[a[i]]=a[i+1];break;case"src":case"movie":a[i+1]=AC_AddExtension(a[i+1],b);f.embedAttrs["src"]=a[i+1];f.params[c]=a[i+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":f.objAttrs[a[i]]=a[i+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":f.embedAttrs[a[i]]=f.objAttrs[a[i]]=a[i+1];break;default:f.embedAttrs[a[i]]=f.params[a[i]]=a[i+1]}}f.objAttrs["classid"]=d;if(e)f.embedAttrs["type"]=e;return f};
/*SWFObject*/if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
/*autosuggest*/var idCounter=0;function AutoSuggest(k){var l=this;this.elem=k;this.eligible=new Array();this.inputText=null;this.highlighted=-1;this.div=document.getElementById("autosuggest");var m=false;var n=8;var o=9;var p=13;var q=17;var r=27;var s=37;var t=39;var u=38;var v=40;var V=86;k.setAttribute("autocomplete","off");if(!k.id){var w="autosuggest"+idCounter;idCounter++;k.id=w};this.setSuggestions=function(a){this.suggestions=a};k.onkeydown=function(a){var b=l.getKeyCode(a);switch(b){case o:l.useSuggestion();break;case p:l.hideDiv();break;case V:l.isReady(this.value);break;case r:l.hideDiv();break;case u:if(l.highlighted>0){l.highlighted--}l.changeHighlight(b);try{k.value=l.eligible[l.highlighted][0]}catch(error){}break;case v:if(l.highlighted<(l.eligible.length-1)){l.highlighted++}l.changeHighlight(b);try{k.value=l.eligible[l.highlighted][0]}catch(error){}break}};k.onkeyup=function(a){var b=l.getKeyCode(a);switch(b){case o:case r:case p:case q:case u:case v:case s:case t:return;default:l.isReady(this.value)}};this.isReady=function(a){if(m){return false}if(a.length>0){this.highlighted=-1;l.inputText=ltrim(a).replace("  "," ");l.getSuggestions()}else{l.inputText='';l.hideDiv()}};this.getSuggestions=function(){var a;var b;var c=new Array();try{a=trim(jsonrpc.suggestionBean.suggest(l.inputText));if(!isNull(a)){b=a.split('|');for(var i=0;i<b.length;i++){c[i]=b[i].split(':')}l.setSuggestions(c);l.getEligible();if(l.eligible.length>0){l.createDiv();l.positionDiv();l.showDiv()}else{l.hideDiv()}}else{l.hideDiv()}}catch(error){}};this.useSuggestion=function(){if(this.highlighted>-1){this.elem.value=this.eligible[this.highlighted][0];this.hideDiv();setTimeout("document.getElementById('"+this.elem.id+"').focus()",0)}};this.showDiv=function(){this.div.style.display='block'};this.hideDiv=function(){this.div.style.display='none';this.highlighted=-1};this.disable=function(){m=true;l.hideDiv();return false};this.changeHighlight=function(){var a=this.div.getElementsByTagName("TR");for(var i in a){try{var b=a[i];if(this.highlighted==i&&i<a.length-1){b.className="selected"}else{b.className=""}}catch(error){}}};this.positionDiv=function(){var a=this.elem;var x=0;var y=a.offsetHeight;while(a.offsetParent&&a.tagName.toUpperCase()!='BODY'){x+=a.offsetLeft;y+=a.offsetTop;a=a.offsetParent}x+=a.offsetLeft-7;y+=a.offsetTop+2;this.div.style.left=x+'px';this.div.style.top=y+'px'};this.createDiv=function(){var e=document.createElement("TABLE");var f=document.createElement("TBODY");e.appendChild(f);for(i in this.eligible){var g=this.eligible[i][0];var h=this.eligible[i][1];var j=document.createElement("TR");var a=document.createElement("TD");var b=document.createElement("TD");a.setAttribute('id','a');a.setAttribute('noWrap','true');a.href="javascript:false";a.innerHTML=g;b.setAttribute('id','b');b.setAttribute('noWrap','true');b.href="javascript:false";b.innerHTML=h+' '+'results';if(l.highlighted==i){j.className="selected"}f.appendChild(j);j.appendChild(a);j.appendChild(b)}var j=document.createElement("TR");var c=document.createElement("TD");c.setAttribute('id','c');isIE()?c.attachEvent('onclick',l.disable):c.setAttribute('onclick','autoSuggest.disable();');c.colSpan=2;c.href="javascript:false";c.innerHTML='disable X';f.appendChild(j);j.appendChild(c);this.div.replaceChild(e,this.div.childNodes[0]);e.onmouseover=function(a){var b=l.getEventSource(a);while(b.parentNode&&b.tagName.toUpperCase()!="TR"){b=b.parentNode}var c=l.div.getElementsByTagName("TR");for(i in c){var d=c[i];if(d==b&&i<c.length-1){l.highlighted=i;break}else{l.highlighted=-1}}l.changeHighlight()};e.onclick=function(a){if(!m){l.useSuggestion();l.hideDiv();l.cancelEvent(a);dosearch()}return false};this.div.className="suggestion_list";this.div.style.position='absolute'};this.getEligible=function(){this.eligible=new Array();for(i in this.suggestions){var a=this.suggestions[i];if(a[0].toLowerCase().indexOf(this.inputText.toLowerCase())=="0"){this.eligible[this.eligible.length]=a}}};this.getKeyCode=function(a){if(a){return a.keyCode}if(window.event){return window.event.keyCode}};this.getEventSource=function(a){if(a){return a.target}if(window.event){return window.event.srcElement}};this.cancelEvent=function(a){if(a){a.preventDefault();a.stopPropagation()}if(window.event){window.event.returnValue=false}}};
/*jwp.js*/var seekedPosition=0;var seekedDuration=0;var playerId;var currentItem;var errorRetryRtmpt=false;var completedBookmark=false;function Item(a,b,c,d,e,f,g,h){this.id=a;this.title=b;this.duration=c;this.image=d;this.localPlay=e;this.swfObj=f;this.url=g;this.origURL=h};function play(){getPlayer(playerId).sendEvent('PLAY',true)};function stop(){getPlayer(playerId).sendEvent('STOP',null)};function pause(){getPlayer(playerId).sendEvent('PLAY',false)};function seek(a,b){completedBookmark=false;timeMilliToSeconds(a,b);getPlayer(playerId).sendEvent('SEEK',seekedPosition)};function controllerPlayHandler(a){if(a.state&&completedBookmark){getPlayer(playerId).sendEvent('SEEK',seekedPosition)}else{completedBookmark=false}};function modelTimeHandler(a){if((a.position-seekedPosition)>seekedDuration){pause();completedBookmark=true}};function modelErrorHandler(a){var b="Stream not found";if(a.message.match(b)&&!errorRetryRtmpt){CONNECTION_URL=CONNECTION_URL_RTMPT;clearPlayer();setTimeout('displayPlayer()');errorRetryRtmpt=true}};function playerReady(a){getPlayer(playerId).addModelListener("TIME","modelTimeHandler");getPlayer(playerId).addModelListener("ERROR","modelErrorHandler");getPlayer(playerId).addControllerListener("PLAY","controllerPlayHandler")};function initPlayerItem(a,b,c){clearPlayer();currentItem=a;completedBookmark=false;seekedPosition=0;seekedDuration=0;timeMilliToSeconds(b,c);playerId=a.swfObj.attributes.id;displayPlayer(true)};function clearPlayer(){try{stop()}catch(e){}try{document.getElementById("flash_adclip").innerHTML=""}catch(e){}try{document.getElementById("flash_"+currentItem.id).innerHTML=""}catch(e){}}function displayPlayer(a){a=true;currentItem.swfObj.addVariable("allowscriptaccess","always");currentItem.swfObj.addParam("allowfullscreen",true);currentItem.swfObj.addParam("flashvars","file="+currentItem.url+"&"+"streamer="+CONNECTION_URL+"&"+"autostart="+a+"&"+"displayclick=none"+"&"+"duration="+round((currentItem.duration/1000),1)+"&"+"fullscreen=true"+"&"+"start="+seekedPosition);currentItem.swfObj.write("flash_"+currentItem.id)};function timeMilliToSeconds(a,b){seekedPosition=round((a/1000),1);seekedDuration=round((b/1000),1)};function getPlayer(a){if(navigator.appName.indexOf("Microsoft")!=-1){return window[a]}else{return document[a]}};function round(n,x){var a=n;a=Math.round(a*Math.pow(10,x))/Math.pow(10,x);return a};
/*_do.js*/function Element(a,b){this.key=a;this.value=b};function HashMap(){this.array=new Array()};HashMap.prototype.put=function(a,b){if((typeof a!="undefined")&&(typeof b!="undefined")){this.remove(a);this.array[this.array.length]=new Element(a,b)}};HashMap.prototype.get=function(a){for(var k=0;k<this.array.length;k++){if(this.array[k].key==a){return this.array[k].value}}};HashMap.prototype.previous=function(a){for(var k=0;k<this.array.length;k++){if(this.array[k].key==a){try{return this.array[k-1].value}catch(e){}}}};HashMap.prototype.next=function(a){for(var k=0;k<this.array.length;k++){if(this.array[k].key==a){try{return this.array[k+1].value}catch(e){}}}};HashMap.prototype.lastKey=function(){try{return this.array[this.array.length-1].key}catch(e){}};HashMap.prototype.remove=function(a){for(var k=0;k<this.array.length;k++){if(this.array[k].key==a){this.array.splice(k,1);return this.size()}}};HashMap.prototype.size=function(){return this.array.length};HashMap.prototype.contains=function(a){for(var k=0;k<this.array.length;k++){if(this.array[k].key==a){return true}}return false};var itemsMap=new HashMap();var swfObj;window.onload=function(e){fixView();initSuggestionsObjects();getObj("searchField").focus();try{showAd()}catch(e){}};window.onunload=function(e){initItemsView()};function _previewMovie(a){previewMovie(itemsMap.get(a),'0')};function initItemsView(){try{if(lastOpenedItem){closeItem(lastOpenedItem)}}catch(e){}};function fixView(){try{closeItemEqualizer();openItemEqualizer()}catch(e){}try{getObj('_container').style.minWidth=(screen.width/1.2)+'px';getObj('_container').style.width='100%'}catch(e){}};var jsonrpc;var autoSuggest;function initSuggestionsObjects(){jsonrpc=new JSONRpcClient(base+"/"+"JSON-RPC");autoSuggest=new AutoSuggest(getObj('searchField'));setEvents();jsonrpc.suggestionBean.suggest("test")};function setEvents(){var a;var b;var c;var d;var f;var g=getObj("searchField");window.document.onclick=function(e){b=document.all?event.y:e.pageY;c=document.all?event.x:e.pageX;if((b<g.offsetTop||b>(g.offsetTop+g.offsetHeight))||(c<g.offsetLeft||c>(g.offsetLeft+g.offsetWidth))){hide()}};if(isIE()){window.document.onfocusout=function(){b=event.y;c=event.x;if((b<0||b>document.body.offsetHeight)||(c<0||c>document.body.offsetWidth)){hide()}}}window.focus=function(e){hide()};window.onresize=function(e){fixView();hide()};window.onblur=function(e){hide()};window.unload=function(e){hide()};function hide(){autoSuggest.hideDiv()}};function trim(s){return s.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"").replace(/\s+/g," ")};function ltrim(s){return s.replace(/^\s+/,"")};function rtrim(s){return s.replace(/\s+$/,"")};function strip(s){return s.replace(/[\*\\\|\:\;\{\}\%\"\'\(\)\.\-\,]/g,"")};function stripDigits(s){return s.replace(/[0123456789]/g,"")};function isNull(a){return a==''||typeof a=="undefined"||a==null||a=="null"||a=='null'};function isUndefined(a){return typeof a=='undefined'};function trimNull(s){if(isNull(s)){return''}return s};function isIE(){return navigator.appName=="Microsoft Internet Explorer"};function getObj(a){if(document.getElementById){return document.getElementById(a)}if(document.all){return document.all[a]}if(document.layers){return document.layers[a]}};function dosearch(){var a=document.search.searchField.value;var b=a;var c=document.search.sort.value;var d='';var e='/clips/';if(isNull(trim(a)))return false;a=encodeURIComponent(cleanQuery(a));if(isNull(trim(a)))return false;a=encodeURIComponent(a).replace(/\%2520/g,"+").replace(/\%253A/g,"%3A");d=d.concat(a).concat('?');d=d.concat('sort=').concat(document.search.sort.value);window.location.href=base.concat(e).concat(d)};function cleanQuery(s){if(tokenizeInstances(s,'"')%2>0)s=s.replace(/\x22/g,' ');if(tokenizeInstances(s,'(')!=tokenizeInstances(s,')'))s=s.replace(/[()]/g,' ');return s.replace(/^\s+|\s+$/g,"")};function tokenizeInstances(a,b){return a.split(b).length-1};