function fEvent(type,target){this.type=type;this.target=target};fEvent.ON_STATECHANGE="ON_STATECHANGE";fEvent.ON_CONTENT="ON_CONTENT";fEvent.ON_INIT="ON_INIT";fEvent.ON_REQUIRED="ON_REQUIRED";fEvent.ON_COMPONENTLOADED="ON_COMPONENTLOADED";fEvent.ON_EMPTY="ON_EMPTY";fEvent.ON_BREAK="ON_BREAK";fEvent.ON_DATA="ON_DATA";fEvent.ON_LOADED="ON_LOADED";fEvent.ON_VALIDATE="ON_VALIDATE";fEvent.ON_VALIDATED="ON_VALIDATED";fEvent.BEFORE_FIRST="BEFORE_FIRST";fEvent.AFTER_LAST="AFTER_LAST";fEvent.BEFORE_CHILD="BEFORE_CHILD";fEvent.AFTER_CHILD="AFTER_CHILD";fEvent.BEFORE_EVENTREGISTERED="BEFORE_EVENTREGISTERED";fEvent.BEFORE_EVENTREMOVED="BEFORE_EVENTREMOVED";fEvent.NOT_MINE="NOT_MINE"
function fHandlerStack(){this._prioList=[];this._usedPrios=[];this._maxPrio=0};fHandlerStack.PRIOMASK=0xFFFF;fHandlerStack.MASKLENGTH=16;fHandlerStack.prototype.register=function(filter,handler,prio){if(prio==fApplication.PRIO_HIGHEST){prio=this._maxPrio+1}else if(prio<fApplication.PRIO_HIGHEST){prio=0}else if(prio>fApplication.PRIO_MAXIMUM)prio=fApplication.PRIO_MAXIMUM;if(prio>this._maxPrio&&prio<fApplication.PRIO_MAXIMUM)this._maxPrio=prio;if(this._prioList[prio]==undefined){this._prioList[prio]=[];this._usedPrios.push(prio);this._usedPrios.sort()};this._prioList[prio].push({filter:filter,handler:handler});var cnt=this._prioList[prio].length-1;if(prio==fApplication.PRIO_LAST)prio=fApplication.PRIO_MAXIMUM+1;return(cnt<<fHandlerStack.MASKLENGTH)+prio};fHandlerStack.prototype.remove=function(handlerId){var pos=(handlerId>>fHandlerStack.MASKLENGTH)&fHandlerStack.PRIOMASK,prio=handlerId&fHandlerStack.PRIOMASK;if(prio==fApplication.PRIO_MAXIMUM+1)prio=fApplication.PRIO_LAST;this._prioList[prio][pos]=null};fHandlerStack.prototype.dispatch=function(event){var r="";for(var p=0,pl=this._usedPrios.length;p<pl;p++){var handlers=this._prioList[this._usedPrios[p]];for(var h=handlers.length-1;h>=0;h--){var handler=handlers[h];if(handler==undefined||handler==null)continue;if(handler.filter)if(typeof event.target!='string'&&typeof event.target.match=='function')if(!event.target.match(handler.filter))continue;try{var pe=handler.handler.call(handler,event);if(typeof (pe)=='string'&&typeof (r)=='string'){r+=pe}else r=pe}catch(e){if(e.message)e=e.message;fLog.error("fApplication.triggerEvent: "+e)}}}}
function fError(msg,code){this._ferror_=true;this.message=msg;this.code=code||0};fError.UNKNOWN=0;fError.UNAUTHORIZED=1;fLog={DEBUG:1,ERROR:2,WARNING:4,NOTICE:8,INFO:16,error:function(msg){fApplication.singleton().invoke("php:fLog::log",{level:fLog.ERROR,msg:msg});if(fApplication.singleton().config['debug.mode']=='true')alert(msg)},warn:function(msg){fApplication.singleton().invoke("php:fLog::log",{level:fLog.WARNING,msg:msg})},log:function(level,msg){fApplication.singleton().invoke("php:fLog::log",{level:level,msg:msg})}};try{console.log}catch(e){console={stringify:function(o,l){var p='',indent='&#160;&#160;&#160;';for(var i=0;i<l;i++)p+=indent;var s='';if(typeof o=='object'){s+=p+'{<br/>';for(var i in o){s+=indent+p+'<i>'+i+'</i>: ';if(typeof o[i]=='object'){s+='<br/>'+console.stringify(o[i],l+1)}else s+=o[i]+'<br/>'};s+=p+'}<br/>'}else s+=p+o;return s},log:function(m){if(fApplication.singleton().config['debug.mode']=='true'){if(!$('#consolelog').length){$('body').append('<div style="margin: 5px; background-color: white; border-top: 1px dotted gray; position: fixed; bottom: 0px; width: 99%; font-family: Consolas; font-size: 8pt">&#160;<b style="cursor: pointer">Console</b> <span style="margin-left: 50px; color: blue; text-decoration: underline; cursor: pointer">empty</span><div id="consolelog" style="border: 1px solid gray; padding: 3px; height: 100px; overflow: auto; "></div></div>');$('#consolelog').parent().find('b').click(function(e){$('#consolelog').toggle()});$('#consolelog').parent().find('span').click(function(e){$('#consolelog').empty()})};$('#consolelog').append(console.stringify(m,0)+'<br/>');document.getElementById('consolelog').scrollIntoView(false)}}}};var rpc={version:"0.8.0.2",requestCount:0};rpc.ServiceProxy=function(serviceURL,options){this.__serviceURL=serviceURL;this.__isCrossSite=false;var urlParts=this.__serviceURL.match(/^(\w+:)\/\/([^\/]+?)(?::(\d+))?(?:$|\/)/);if(urlParts)this.__isCrossSite=(location.protocol!=urlParts[1]||document.domain!=urlParts[2]||location.port!=(urlParts[3]||""));var providedMethodList;this.__isAsynchronous=true;this.__isResponseSanitized=true;this.__authUsername=null;this.__authPassword=null;this.__callbackParamName='JSON-response-callback';this.__protocol='JSON-RPC';this.__dateEncoding='ISO8601';this.__decodeISO8601=true;if(options instanceof Object){if(options.asynchronous!==undefined){this.__isAsynchronous=!!options.asynchronous;if(!this.__isAsynchronous&&this.__isCrossSite)throw Error("It is not possible to establish a synchronous connection to a cross-site RPC service.")};if(options.sanitize!=undefined)this.__isResponseSanitized=!!options.sanitize;if(options.user!=undefined)this.__authUsername=options.user;if(options.password!=undefined)this.__authPassword=options.password;if(options.callbackParamName!=undefined)this.__callbackParamName=options.callbackParamName;if(String(options.protocol).toUpperCase()=='XML-RPC')this.__protocol='XML-RPC';if(options.dateEncoding!=undefined)this.__dateEncoding=options.dateEncoding;if(options.decodeISO8601!=undefined)this.__decodeISO8601=!!options.decodeISO8601;providedMethodList=options.methods};if(this.__isCrossSite)if(this.__isResponseSanitized){throw Error("You are attempting to access a service on another site, and the JSON data returned by cross-site requests cannot be sanitized. You must therefore explicitly set the 'sanitize' option to false (it is true by default) in order to proceed with making potentially insecure cross-site rpc calls.")}else if(this.__protocol=='XML-RPC')throw Error("Unable to use the XML-RPC protocol to access services on other domains.");if(this.__isCrossSite&&!providedMethodList)throw Error("You must manually supply the service's method names since auto-introspection is not permitted for cross-site services.");if(providedMethodList){this.__methodList=providedMethodList}else{var async=this.__isAsynchronous;this.__isAsynchronous=false;this.__methodList=this.__callMethod("system.listMethods",[]);this.__isAsynchronous=async};this.__methodList.push('system.listMethods');this.__methodList.push('system.describe');for(var methodName,i=0;methodName=this.__methodList[i];i++){var methodObject=this,propChain=methodName.split(/\./);for(var j=0;j+1<propChain.length;j++){if(!methodObject[propChain[j]])methodObject[propChain[j]]={};methodObject=methodObject[propChain[j]]};var wrapper=(function(instance,methodName){var call={instance:instance,methodName:methodName};return function(){if(call.instance.__isAsynchronous){if(arguments.length==1&&arguments[0] instanceof Object){call.instance.__callMethod(call.methodName,arguments[0].params,arguments[0].onSuccess,arguments[0].onException,arguments[0].onComplete)}else call.instance.__callMethod(call.methodName,arguments[0],arguments[1],arguments[2],arguments[3]);return undefined}else return call.instance.__callMethod(call.methodName,rpc.toArray(arguments))}})(this,methodName);methodObject[propChain[propChain.length-1]]=wrapper}};rpc.setAsynchronous=function(serviceProxy,isAsynchronous){if(!isAsynchronous&&serviceProxy.__isCrossSite)throw Error("It is not possible to establish a synchronous connection to a cross-site RPC service.");serviceProxy.__isAsynchronous=!!isAsynchronous};rpc.ServiceProxy.prototype.__callMethod=function(methodName,params,successHandler,exceptionHandler,completeHandler){rpc.requestCount++;if(this.__isAsynchronous){if(successHandler&&typeof successHandler!='function')throw Error('The asynchronous onSuccess handler callback function you provided is invalid; the value you provided ('+successHandler.toString()+') is of type "'+typeof (successHandler)+'".');if(exceptionHandler&&typeof exceptionHandler!='function')throw Error('The asynchronous onException handler callback function you provided is invalid; the value you provided ('+exceptionHandler.toString()+') is of type "'+typeof (exceptionHandler)+'".');if(completeHandler&&typeof completeHandler!='function')throw Error('The asynchronous onComplete handler callback function you provided is invalid; the value you provided ('+completeHandler.toString()+') is of type "'+typeof (completeHandler)+'".')};try{if(this.__isAsynchronous||this.__isCrossSite)rpc.pendingRequests[String(rpc.requestCount)]={onSuccess:successHandler,onException:exceptionHandler,onComplete:completeHandler};if(this.__isCrossSite){rpc.callbacks['r'+String(rpc.requestCount)]=(function(instance,id){var call={instance:instance,id:id};return function(response){if(response instanceof Object&&(response.result||response.error)){response.id=call.id;instance.__doCallback(response)}else instance.__doCallback({id:call.id,result:response})}})(this,rpc.requestCount);var script=document.createElement('script');script.setAttribute('type','text/javascript');var src=this.__serviceURL+'/'+methodName+'?'+this.__callbackParamName+'=rpc.callbacks.r'+(rpc.requestCount);if(params)src+='&'+rpc.toQueryString(params);script.setAttribute('src',src);script.setAttribute('id','rpc'+rpc.requestCount);var head=document.getElementsByTagName('head')[0];rpc.pendingRequests[rpc.requestCount].scriptElement=script;head.appendChild(script);return undefined}else{if(params)if(!(params instanceof Object)||params instanceof Date)throw Error('When making asynchronous calls, the parameters for the method must be passed as an array (or a hash); the value you supplied ('+String(params)+') is of type "'+typeof (params)+'".');var request,postData;if(this.__protocol=='XML-RPC'){if(!(params instanceof Array))throw Error("Unable to pass associative arrays to XML-RPC services.");var xml=['<?xml version="1.0"?><methodCall><methodName>'+methodName+'</methodName>'];if(params){xml.push('<params>');for(var i=0;i<params.length;i++)xml.push('<param>'+this.__toXMLRPC(params[i])+'</param>');xml.push('</params>')};xml.push('</methodCall>');postData=xml.join('')}else{request={version:"1.1",method:methodName,id:rpc.requestCount};if(params)request.params=params;postData=this.__toJSON(request)};var xhr;if(window.XMLHttpRequest){xhr=new XMLHttpRequest()}else if(window.ActiveXObject)try{xhr=new ActiveXObject('Msxml2.XMLHTTP')}catch(err){xhr=new ActiveXObject('Microsoft.XMLHTTP')};xhr.open('POST',this.__serviceURL,this.__isAsynchronous,this.__authUsername,this.__authPassword);if(this.__protocol=='XML-RPC'){xhr.setRequestHeader('Content-Type','text/xml');xhr.setRequestHeader('Accept','text/xml')}else{xhr.setRequestHeader('Content-Type','application/json');xhr.setRequestHeader('Accept','application/json')};if(this.__isAsynchronous){xhr.send(postData);var instance=this,requestInfo={id:rpc.requestCount};xhr.onreadystatechange=function(){if(xhr.readyState==4)if(instance.__protocol=='XML-RPC'){var response=instance.__getXMLRPCResponse(xhr,requestInfo.id);instance.__doCallback(response)}else{var response=instance.__evalJSON(xhr.responseText,instance.__isResponseSanitized);if(!response.id)response.id=requestInfo.id;instance.__doCallback(response)}};return undefined}else{xhr.send(postData);var response;if(this.__protocol=='XML-RPC'){response=this.__getXMLRPCResponse(xhr,rpc.requestCount)}else response=this.__evalJSON(xhr.responseText,this.__isResponseSanitized);if(response.error)throw Error('Unable to call "'+methodName+'". Server responsed with error (code '+response.error.code+'): '+response.error.message);this.__upgradeValuesFromJSON(response);return response.result}}}catch(err){var isCaught=false;if(exceptionHandler)isCaught=exceptionHandler(err);if(completeHandler)completeHandler();if(!isCaught)throw err}};rpc.pendingRequests={};rpc.callbacks={};rpc.ServiceProxy.prototype.__doCallback=function(response){if(typeof response!='object')throw Error('The server did not respond with a response object.');if(!response.id)throw Error('The server did not respond with the required response id for asynchronous calls.');if(!rpc.pendingRequests[response.id])throw Error('Fatal error with RPC code: no ID "'+response.id+'" found in pendingRequests.');if(rpc.pendingRequests[response.id].scriptElement){var script=rpc.pendingRequests[response.id].scriptElement;script.parentNode.removeChild(script)};if(rpc.callbacks[response.id])delete rpc.callbacks['r'+response.id];var uncaughtExceptions=[];if(response.error!==undefined){var err=new Error(response.error.message);err.code=response.error.code;if(rpc.pendingRequests[response.id].onException){try{if(!rpc.pendingRequests[response.id].onException(err))uncaughtExceptions.push(err)}catch(err2){uncaughtExceptions.push(err);uncaughtExceptions.push(err2)}}else uncaughtExceptions.push(err)}else if(response.result!==undefined){this.__upgradeValuesFromJSON(response);if(rpc.pendingRequests[response.id].onSuccess)try{rpc.pendingRequests[response.id].onSuccess(response.result)}catch(err){if(rpc.pendingRequests[response.id].onException){try{if(!rpc.pendingRequests[response.id].onException(err))uncaughtExceptions.push(err)}catch(err2){uncaughtExceptions.push(err);uncaughtExceptions.push(err2)}}else uncaughtExceptions.push(err)}};try{if(rpc.pendingRequests[response.id].onComplete)rpc.pendingRequests[response.id].onComplete(response)}catch(err){if(rpc.pendingRequests[response.id].onException){try{if(!rpc.pendingRequests[response.id].onException(err))uncaughtExceptions.push(err)}catch(err2){uncaughtExceptions.push(err);uncaughtExceptions.push(err2)}}else uncaughtExceptions.push(err)};delete rpc.pendingRequests[response.id];if(uncaughtExceptions.length){var code,message='There '+(uncaughtExceptions.length==1?'was 1 uncaught exception':'were '+uncaughtExceptions.length+' uncaught exceptions')+': ';for(var i=0;i<uncaughtExceptions.length;i++){if(i)message+="; ";message+=uncaughtExceptions[i].message;if(uncaughtExceptions[i].code)code=uncaughtExceptions[i].code};var err=new Error(message);err.code=code;throw err}};rpc.ServiceProxy.prototype.__toJSON=function(value){switch(typeof value){case'number':return isFinite(value)?value.toString():'null';case'boolean':return value.toString();case'string':var specialChars={"\b":'\\b',"\t":'\\t',"\n":'\\n',"\f":'\\f',"\r":'\\r','"':'\\"',"\\":'\\\\',"/":'\/'};return'"'+value.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=specialChars[b];if(c)return c;c=b.charCodeAt();return'\\u00'+rpc.zeroPad(c.toString(16))})+'"';case'object':if(value===null){return'null'}else if(value instanceof Array){var json=['['];for(var i=0;i<value.length;i++){if(i)json.push(',');json.push(this.__toJSON(value[i]))};json.push(']');return json.join('')}else if(value instanceof Date){switch(this.__dateEncoding){case'classHinting':return'{"__jsonclass__":["Date",['+value.valueOf()+']]}';case'@timestamp@':case'@ticks@':return'"@'+value.valueOf()+'@"';case'ASP.NET':return'"\\/Date('+value.valueOf()+')\\/"';default:return'"'+rpc.dateToISO8601(value)+'"'}}else if(value instanceof Number||value instanceof String||value instanceof Boolean){return this.__toJSON(value.valueOf())}else{var useHasOwn={}.hasOwnProperty?true:false,json=['{'];for(var key in value)if(!useHasOwn||value.hasOwnProperty(key)){if(json.length>1)json.push(',');json.push(this.__toJSON(key)+':'+this.__toJSON(value[key]))};json.push('}');return json.join('')}};throw new TypeError('Unable to convert the value of type "'+typeof (value)+'" to JSON.')};rpc.isJSON=function(string){var testStr=string.replace(/\\./g,'@').replace(/"[^"\\\n\r]*"/g,'');return(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(testStr)};rpc.ServiceProxy.prototype.__evalJSON=function(json,sanitize){json=json.replace(/^\/\*-secure-([\s\S]*)\*\/\s*$/,"$1");var err;try{if(!sanitize||rpc.isJSON(json))return eval('('+json+')')}catch(e){err=e};throw new SyntaxError('Badly formed JSON string: '+json+" ... "+(err?err.message:''))};rpc.ServiceProxy.prototype.__upgradeValuesFromJSON=function(obj){var matches,useHasOwn={}.hasOwnProperty?true:false;for(var key in obj)if(!useHasOwn||obj.hasOwnProperty(key))if(typeof obj[key]=='string'){if(this.__decodeISO8601&&(matches=obj[key].match(/^(?:(\d\d\d\d)-(\d\d)(?:-(\d\d)(?:T(\d\d)(?::(\d\d)(?::(\d\d)(?:\.(\d+))?)?)?)?)?)$/))){obj[key]=new Date(0);if(matches[1])obj[key].setUTCFullYear(parseInt(matches[1]));if(matches[2])obj[key].setUTCMonth(parseInt(matches[2]-1));if(matches[3])obj[key].setUTCDate(parseInt(matches[3]));if(matches[4])obj[key].setUTCHours(parseInt(matches[4]));if(matches[5])obj[key].setUTCMinutes(parseInt(matches[5]));if(matches[6])obj[key].setUTCMilliseconds(parseInt(matches[6]))}else if(matches=obj[key].match(/^\@(\d+)\@$/)){obj[key]=new Date(parseInt(matches[1]))}else if(matches=obj[key].match(/^\/Date\((\d+)\)\/$/))obj[key]=new Date(parseInt(matches[1]))}else if(obj[key] instanceof Object)if(obj[key].__jsonclass__ instanceof Array){if(obj[key].__jsonclass__[0]=='Date')if(obj[key].__jsonclass__[1] instanceof Array&&obj[key].__jsonclass__[1][0]){obj[key]=new Date(obj[key].__jsonclass__[1][0])}else obj[key]=new Date()}else this.__upgradeValuesFromJSON(obj[key])};rpc.ServiceProxy.prototype.__toXMLRPC=function(value){var xml=['<value>'];switch(typeof value){case'number':if(!isFinite(value)){xml.push('<nil/>')}else if(parseInt(value)==Math.ceil(value)){xml.push('<int>');xml.push(value.toString());xml.push('</int>')}else{xml.push('<double>');xml.push(value.toString());xml.push('</double>')};break;case'boolean':xml.push('<boolean>');xml.push(value?'1':'0');xml.push('</boolean>');break;case'string':xml.push('<string>');xml.push(value.replace(/[<>&]/,function(ch){}));xml.push('</string>');break;case'object':if(value===null){xml.push('<nil/>')}else if(value instanceof Array){xml.push('<array><data>');for(var i=0;i<value.length;i++)xml.push(this.__toXMLRPC(value[i]));xml.push('</data></array>')}else if(value instanceof Date){xml.push('<dateTime.iso8601>'+rpc.dateToISO8601(value)+'</dateTime.iso8601>')}else if(value instanceof Number||value instanceof String||value instanceof Boolean){return rpc.dateToISO8601(value.valueOf())}else{xml.push('<struct>');var useHasOwn={}.hasOwnProperty?true:false;for(var key in value)if(!useHasOwn||value.hasOwnProperty(key)){xml.push('<member>');xml.push('<name>'+key+'</name>');xml.push(this.__toXMLRPC(value[key]));xml.push('</member>')};xml.push('</struct>')};break;default:throw new TypeError('Unable to convert the value of type "'+typeof (value)+'" to XML-RPC.')};xml.push('</value>');return xml.join('')};rpc.ServiceProxy.prototype.__parseXMLRPC=function(valueEl){if(valueEl.childNodes.length==1&&valueEl.childNodes.item(0).nodeType==3)return valueEl.childNodes.item(0).nodeValue;for(var i=0;i<valueEl.childNodes.length;i++)if(valueEl.childNodes.item(i).nodeType==1){var typeEL=valueEl.childNodes.item(i);switch(typeEL.nodeName.toLowerCase()){case'i4':case'int':var intVal=parseInt(typeEL.firstChild.nodeValue);if(isNaN(intVal))throw Error("XML-RPC Parse Error: The value provided as an integer '"+typeEL.firstChild.nodeValue+"' is invalid.");return intVal;case'double':var floatVal=parseFloat(typeEL.firstChild.nodeValue);if(isNaN(floatVal))throw Error("XML-RPC Parse Error: The value provided as a double '"+typeEL.firstChild.nodeValue+"' is invalid.");return floatVal;case'boolean':if(typeEL.firstChild.nodeValue!='0'&&typeEL.firstChild.nodeValue!='1')throw Error("XML-RPC Parse Error: The value provided as a boolean '"+typeEL.firstChild.nodeValue+"' is invalid.");return Boolean(parseInt(typeEL.firstChild.nodeValue));case'string':if(!typeEL.firstChild)return"";return typeEL.firstChild.nodeValue;case'datetime.iso8601':var matches,date=new Date(0);if(matches=typeEL.firstChild.nodeValue.match(/^(?:(\d\d\d\d)-(\d\d)(?:-(\d\d)(?:T(\d\d)(?::(\d\d)(?::(\d\d)(?:\.(\d+))?)?)?)?)?)$/)){if(matches[1])date.setUTCFullYear(parseInt(matches[1]));if(matches[2])date.setUTCMonth(parseInt(matches[2]-1));if(matches[3])date.setUTCDate(parseInt(matches[3]));if(matches[4])date.setUTCHours(parseInt(matches[4]));if(matches[5])date.setUTCMinutes(parseInt(matches[5]));if(matches[6])date.setUTCMilliseconds(parseInt(matches[6]));return date};throw Error("XML-RPC Parse Error: The provided value does not match ISO8601.");case'base64':throw Error("Not able to parse base64 data yet.");case'nil':return null;case'struct':var obj={};for(var memberEl,j=0;memberEl=typeEL.childNodes.item(j);j++)if(memberEl.nodeType==1&&memberEl.nodeName=='member'){var name='';valueEl=null;for(var child,k=0;child=memberEl.childNodes.item(k);k++)if(child.nodeType==1)if(child.nodeName=='name'){name=child.firstChild.nodeValue}else if(child.nodeName=='value')valueEl=child;if(name&&valueEl)obj[name]=this.__parseXMLRPC(valueEl)};return obj;case'array':var arr=[],dataEl=typeEL.firstChild;while(dataEl&&(dataEl.nodeType!=1||dataEl.nodeName!='data'))dataEl=dataEl.nextSibling;if(!dataEl)new Error("XML-RPC Parse Error: Expected 'data' element as sole child element of 'array'.");valueEl=dataEl.firstChild;while(valueEl){if(valueEl.nodeType==1)if(valueEl.nodeName=='value'){arr.push(this.__parseXMLRPC(valueEl))}else throw Error("XML-RPC Parse Error: Illegal element child '"+valueEl.nodeName+"' of an array's 'data' element.");valueEl=valueEl.nextSibling};return arr;default:throw Error("XML-RPC Parse Error: Illegal element '"+typeEL.nodeName+"' child of the 'value' element.")}};return''};rpc.ServiceProxy.prototype.__getXMLRPCResponse=function(xhr,id){var response={};if(!xhr.responseXML)throw Error("Malformed XML document.");var doc=xhr.responseXML.documentElement;if(doc.nodeName!='methodResponse')throw Error("Invalid XML-RPC document.");var valueEl=doc.getElementsByTagName('value')[0];if(valueEl.parentNode.nodeName=='param'&&valueEl.parentNode.parentNode.nodeName=='params'){response.result=this.__parseXMLRPC(valueEl)}else if(valueEl.parentNode.nodeName=='fault'){var fault=this.__parseXMLRPC(valueEl);response.error={code:fault.faultCode,message:fault.faultString}}else throw Error("Invalid XML-RPC document.");if(!response.result&&!response.error)throw Error("Malformed XML-RPC methodResponse document.");response.id=id;return response};rpc.toQueryString=function(params){if(!(params instanceof Object||params instanceof Array)||params instanceof Date)throw Error('You must supply either an array or object type to convert into a query string. You supplied: '+params.constructor);var str='',useHasOwn={}.hasOwnProperty?true:false;for(var key in params)if(useHasOwn&&params.hasOwnProperty(key))if(params[key] instanceof Array){for(var i=0;i<params[key].length;i++){if(str)str+='&';str+=encodeURIComponent(key)+"=";if(params[key][i] instanceof Date){str+=encodeURIComponent(rpc.dateToISO8601(params[key][i]))}else if(params[key][i] instanceof Object){throw Error('Unable to pass nested arrays nor objects as parameters while in making a cross-site request. The object in question has this constructor: '+params[key][i].constructor)}else str+=encodeURIComponent(String(params[key][i]))}}else{if(str)str+='&';str+=encodeURIComponent(key)+"=";if(params[key] instanceof Date){str+=encodeURIComponent(rpc.dateToISO8601(params[key]))}else if(params[key] instanceof Object){throw Error('Unable to pass objects as parameters while in making a cross-site request. The object in question has this constructor: '+params[key].constructor)}else str+=encodeURIComponent(String(params[key]))};return str};rpc.toArray=function(value){if(value instanceof Array)return value;var array=[];for(var i=0;i<value.length;i++)array.push(value[i]);return array};rpc.dateToISO8601=function(date){return date.getUTCFullYear()+'-'+rpc.zeroPad(date.getUTCMonth()+1)+'-'+rpc.zeroPad(date.getUTCDate())+'T'+rpc.zeroPad(date.getUTCHours())+':'+rpc.zeroPad(date.getUTCMinutes())+':'+rpc.zeroPad(date.getUTCSeconds())+'.'+rpc.zeroPad(date.getUTCMilliseconds(),3)};rpc.zeroPad=function(value,width){if(!width)width=2;value=(value==undefined?'':String(value));while(value.length<width)value='0'+value;return value};(function($){$.gt=$.gt||{};$.extend($.gt,{messages:{},lang:'C',setLang:function(code){$.gt.lang=typeof code=='string'&&code!=' '?code:'C'},pl_re:/^Plural-Forms:\s*nplurals\s*=\s*(\d+);\s*plural\s*=\s*([^a-zA-Z0-9\$]*([a-zA-Z0-9\$]+).+)$/m,plural:function(n){return n!=1},load:function(){$('link[rel=gettext]').each(function(){var lang=this.lang;$.get(this.href,function(data){$.gt.messages[lang]=$.gt.messages[lang]||{};try{var messages=eval('('+data+')')}catch(e){return};$.extend($.gt.messages[lang],messages);var pl=$.gt.pl_re.exec($.gt.messages[lang]['']);if(pl){var expr=pl[2],np=pl[1],v=pl[3];try{var fn=eval('(function('+v+') {return '+expr+';})')}catch(e){return};$.gt.plural=fn}})});$.gt.setLang($('html').attr('lang'))},gettext:function(msgstr){var lang=$.gt.lang;if(lang=='C'||typeof $.gt.messages[lang]=='undefined')return msgstr;var trans=$.gt.messages[lang][msgstr];if(typeof trans=='string'){return trans}else if(typeof trans=='object'&&trans.constructor==Array)return trans[0];return msgstr},ngettext:function(){var lang=$.gt.lang,argv=Array.apply(null,arguments),cnt=argv[argv.length-1],sg=argv[0],pls=argv.slice(0,-1),trans=pls;if(lang!='C'&&typeof $.gt.messages[lang]!='undefined')trans=$.gt.messages[lang][sg];if(typeof trans=='string'){return trans}else if(typeof trans=='object'&&trans.constructor==Array){var pl=$.gt.plural(cnt);if(typeof pl=='boolean'&&pls.length==2)pl=pl?1:0;if(typeof pl=='number'&&pl<trans.length)return trans[pl]};return sg}});$('document').ready($.gt.load)})(jQuery);if(typeof _=='undefined')var _=jQuery.gt.gettext;if(typeof n_=='undefined')var n_=jQuery.gt.ngettext;
(function($){function toIntegersAtLease(n)
{return n<10?'0'+n:n;}
Date.prototype.toJSON=function(date)
{return this.getUTCFullYear()+'-'+
toIntegersAtLease(this.getUTCMonth())+'-'+
toIntegersAtLease(this.getUTCDate());};var escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;var meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'}
$.quoteString=function(string)
{if(escapeable.test(string))
{return'"'+string.replace(escapeable,function(a)
{var c=meta[a];if(typeof c==='string'){return c;}
c=a.charCodeAt();return'\\u00'+Math.floor(c/16).toString(16)+(c%16).toString(16);})+'"'}
return'"'+string+'"';}
$.toJSON=function(o,compact)
{var type=typeof(o);if(type=="undefined")
return"undefined";else if(type=="number"||type=="boolean")
return o+"";else if(o===null)
return"null";if(type=="string")
{return $.quoteString(o);}
if(type=="object"&&typeof o.toJSON=="function")
return o.toJSON(compact);if(type!="function"&&typeof(o.length)=="number")
{var ret=[];for(var i=0;i<o.length;i++){ret.push($.toJSON(o[i],compact));}
if(compact)
return"["+ret.join(",")+"]";else
return"["+ret.join(", ")+"]";}
if(type=="function"){throw new TypeError("Unable to convert object of type 'function' to json.");}
ret=[];for(var k in o){var name;var type=typeof(k);if(type=="number")
name='"'+k+'"';else if(type=="string")
name=$.quoteString(k);else
continue;val=$.toJSON(o[k],compact);if(typeof(val)!="string"){continue;}
if(compact)
ret.push(name+":"+val);else
ret.push(name+": "+val);}
return"{"+ret.join(", ")+"}";}
$.compactJSON=function(o)
{return $.toJSON(o,true);}
$.evalJSON=function(src)
{return eval("("+src+")");}
$.secureEvalJSON=function(src)
{var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,'@');filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']');filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,'');if(/^[\],:{}\s]*$/.test(filtered))
return eval("("+src+")");else
throw new SyntaxError("Error parsing JSON, source is not valid.");}})(jQuery);window.dhtmlHistory={isIE:false,isOpera:false,isSafari:false,isKonquerer:false,isGecko:false,isSupported:false,create:function(_1){var _2=this;var UA=navigator.userAgent.toLowerCase();var _4=navigator.platform.toLowerCase();var _5=navigator.vendor||"";if(_5==="KDE"){this.isKonqueror=true;this.isSupported=false;}else{if(typeof window.opera!=="undefined"){this.isOpera=true;this.isSupported=true;}else{if(typeof document.all!=="undefined"){this.isIE=true;this.isSupported=true;}else{if(_5.indexOf("Apple Computer, Inc.")>-1&&parseFloat(navigator.version)<3.0){this.isSafari=true;this.isSupported=(_4.indexOf("mac")>-1);}else{if(UA.indexOf("gecko")!=-1){this.isGecko=true;this.isSupported=true;}}}}}window.historyStorage.setup(_1);if(this.isSafari){this.createSafari();}else{if(this.isOpera){this.createOpera();}}var _6=this.getCurrentLocation();this.currentLocation=_6;if(this.isIE){this.createIE(_6);}var _7=function(){_2.firstLoad=null;};this.addEventListener(window,"unload",_7);if(this.isIE){this.ignoreLocationChange=true;}else{if(!historyStorage.hasKey(this.PAGELOADEDSTRING)){this.ignoreLocationChange=true;this.firstLoad=true;this.fireOnNewListener=true;historyStorage.put(this.PAGELOADEDSTRING,true);}else{this.ignoreLocationChange=false;this.fireOnNewListener=true;}}var _8=function(){_2.checkLocation();};setInterval(_8,100);},initialize:function(){if(this.isIE){if(!historyStorage.hasKey(this.PAGELOADEDSTRING)){this.fireOnNewListener=true;this.firstLoad=true;historyStorage.put(this.PAGELOADEDSTRING,true);}else{this.fireOnNewListener=true;this.firstLoad=false;}}},addListener:function(_9){this.listener=_9;if(this.fireOnNewListener){this.fireHistoryEvent(this.currentLocation);this.fireOnNewListener=false;}},addEventListener:function(o,e,l){if(o.addEventListener){o.addEventListener(e,l,false);}else{if(o.attachEvent){o.attachEvent("on"+e,function(){l(window.event);});}}},add:function(_d,_e){if(this.isSafari){_d=this.removeHash(_d);historyStorage.put(_d,_e);this.currentLocation=_d;window.location.hash=_d;this.putSafariState(_d);}else{var _f=this;var _10=function(){if(_f.currentWaitTime>0){_f.currentWaitTime=_f.currentWaitTime-_f.waitTime;}_d=_f.removeHash(_d);if(document.getElementById(_d)&&_f.debugMode){var e="Exception: History locations can not have the same value as _any_ IDs that might be in the document,"+" due to a bug in IE; please ask the developer to choose a history location that does not match any HTML"+" IDs in this document. The following ID is already taken and cannot be a location: "+_d;throw new Error(e);}historyStorage.put(_d,_e);_f.ignoreLocationChange=true;_f.ieAtomicLocationChange=true;_f.currentLocation=_d;window.location.hash=_d;if(_f.isIE){_f.iframe.src="blank.html?"+_d;}_f.ieAtomicLocationChange=false;};window.setTimeout(_10,this.currentWaitTime);this.currentWaitTime=this.currentWaitTime+this.waitTime;}},isFirstLoad:function(){return this.firstLoad;},getVersion:function(){return "0.6";},getCurrentLocation:function(){var r=(this.isSafari?this.getSafariState():this.getCurrentHash());return r;},getCurrentHash:function(){var r=window.location.href;var i=r.indexOf("#");return (i>=0?r.substr(i+1):"");},PAGELOADEDSTRING:"DhtmlHistory_pageLoaded",listener:null,waitTime:200,currentWaitTime:0,currentLocation:null,iframe:null,safariHistoryStartPoint:null,safariStack:null,safariLength:null,ignoreLocationChange:null,fireOnNewListener:null,firstLoad:null,ieAtomicLocationChange:null,createIE:function(_15){this.waitTime=400;var _16=(historyStorage.debugMode?"width: 800px;height:80px;border:1px solid black;":historyStorage.hideStyles);var _17="rshHistoryFrame";var _18="<iframe frameborder=\"0\" id=\""+_17+"\" style=\""+_16+"\" src=\"blank.html?"+_15+"\"></iframe>";$("body").append(_18);this.iframe=document.getElementById(_17);},createOpera:function(){this.waitTime=400;var _19="<img src=\"javascript:location.href='javascript:dhtmlHistory.checkLocation();';\" style=\""+historyStorage.hideStyles+"\" />";$("body").append(_19);},createSafari:function(){var _1a="rshSafariForm";var _1b="rshSafariStack";var _1c="rshSafariLength";var _1d=historyStorage.debugMode?historyStorage.showStyles:historyStorage.hideStyles;var _1e=(historyStorage.debugMode?"width:800px;height:20px;border:1px solid black;margin:0;padding:0;":historyStorage.hideStyles);var _1f="<form id=\""+_1a+"\" style=\""+_1d+"\">"+"<input type=\"text\" style=\""+_1e+"\" id=\""+_1b+"\" value=\"[]\"/>"+"<input type=\"text\" style=\""+_1e+"\" id=\""+_1c+"\" value=\"\"/>"+"</form>";$("body").append(_1f);this.safariStack=document.getElementById(_1b);this.safariLength=document.getElementById(_1c);if(!historyStorage.hasKey(this.PAGELOADEDSTRING)){this.safariHistoryStartPoint=history.length;this.safariLength.value=this.safariHistoryStartPoint;}else{this.safariHistoryStartPoint=this.safariLength.value;}},getSafariStack:function(){var r=this.safariStack.value;return historyStorage.fromJSON(r);},getSafariState:function(){var _21=this.getSafariStack();var _22=_21[history.length-this.safariHistoryStartPoint-1];return _22;},putSafariState:function(_23){var _24=this.getSafariStack();_24[history.length-this.safariHistoryStartPoint]=_23;this.safariStack.value=historyStorage.toJSON(_24);},fireHistoryEvent:function(_25){var _26=historyStorage.get(_25);this.listener.call(null,_25,_26);},checkLocation:function(){if(!this.isIE&&this.ignoreLocationChange){this.ignoreLocationChange=false;return;}if(!this.isIE&&this.ieAtomicLocationChange){return;}var _27=this.getCurrentLocation();if(_27==this.currentLocation){return;}this.ieAtomicLocationChange=true;if(this.isIE&&this.getIframeHash()!=_27){this.iframe.src="blank.html?"+_27;}else{if(this.isIE){return;}}this.currentLocation=_27;this.ieAtomicLocationChange=false;this.fireHistoryEvent(_27);},getIframeHash:function(){var doc=this.iframe.contentWindow.document;var _29=String(doc.location.search);if(_29.length==1&&_29.charAt(0)=="?"){_29="";}else{if(_29.length>=2&&_29.charAt(0)=="?"){_29=_29.substring(1);}}return _29;},removeHash:function(_2a){var r;if(_2a===null||_2a===undefined){r=null;}else{if(_2a===""){r="";}else{if(_2a.length==1&&_2a.charAt(0)=="#"){r="";}else{if(_2a.length>1&&_2a.charAt(0)=="#"){r=_2a.substring(1);}else{r=_2a;}}}}return r;},iframeLoaded:function(_2c){if(this.ignoreLocationChange){this.ignoreLocationChange=false;return;}var _2d=String(_2c.search);if(_2d.length==1&&_2d.charAt(0)=="?"){_2d="";}else{if(_2d.length>=2&&_2d.charAt(0)=="?"){_2d=_2d.substring(1);}}window.location.hash=_2d;this.fireHistoryEvent(_2d);}};window.historyStorage={setup:function(_2e){if(typeof _2e!=="undefined"){if(_2e.debugMode){this.debugMode=_2e.debugMode;}if(_2e.toJSON){this.toJSON=_2e.toJSON;}if(_2e.fromJSON){this.fromJSON=_2e.fromJSON;}}var _2f="rshStorageForm";var _30="rshStorageField";var _31=this.debugMode?historyStorage.showStyles:historyStorage.hideStyles;var _32=(historyStorage.debugMode?"width: 800px;height:80px;border:1px solid black;":historyStorage.hideStyles);var _33="<form id=\""+_2f+"\" style=\""+_31+"\">"+"<textarea id=\""+_30+"\" style=\""+_32+"\"></textarea>"+"</form>";$("body").append(_33);this.storageField=document.getElementById(_30);if(typeof window.opera!=="undefined"){this.storageField.focus();}},put:function(key,_35){this.assertValidKey(key);if(this.hasKey(key)){this.remove(key);}this.storageHash[key]=_35;this.saveHashTable();},get:function(key){this.assertValidKey(key);this.loadHashTable();var _37=this.storageHash[key];if(_37===undefined){_37=null;}return _37;},remove:function(key){this.assertValidKey(key);this.loadHashTable();delete this.storageHash[key];this.saveHashTable();},reset:function(){this.storageField.value="";this.storageHash={};},hasKey:function(key){this.assertValidKey(key);this.loadHashTable();return (typeof this.storageHash[key]!=="undefined");},isValidKey:function(key){return (typeof key==="string");},showStyles:"border:0;margin:0;padding:0;",hideStyles:"left:-1000px;top:-1000px;width:1px;height:1px;border:0;position:absolute;",debugMode:false,storageHash:{},hashLoaded:false,storageField:null,assertValidKey:function(key){var _3c=this.isValidKey(key);if(!_3c&&this.debugMode){throw new Error("Please provide a valid key for window.historyStorage. Invalid key = "+key+".");}},loadHashTable:function(){if(!this.hashLoaded){var _3d=this.storageField.value;if(_3d!==""&&_3d!==null){this.storageHash=this.fromJSON(_3d);this.hashLoaded=true;}}},saveHashTable:function(){this.loadHashTable();var _3e=this.toJSON(this.storageHash);this.storageField.value=_3e;},toJSON:function(o){return o.toJSONString();},fromJSON:function(s){return s.parseJSON();}};
if(typeof fritz3=="undefined")var fritz3={};var fApplication=(function(){var instance=null
function __construct(){var _handlers=[],_state={},_error=false,_server,_properties,_currentHash="",_pageTracker,_loadedRequires={};this.config={};this.initialize=function(properties){_properties=properties||{};this.config=properties._config;delete properties._config;if(fApplication.prefix==-1&&properties._prefix)fApplication.prefix=properties._prefix;var ro=_properties.rpc||{};ro.asynchronous=ro.asynchronous||true;ro.sanitize=ro.sanitize||true;ro.methods=ro.methods||['fApplication.invoke','fApplication.keepAlive','fApplication.getComponent','fLog.log'];ro.protocol=ro.protocol||'JSON-RPC';var loc=window.location.href;if(window.location.hash!='')loc=loc.substr(0,loc.length-window.location.hash.length);_server=new rpc.ServiceProxy(loc,ro);if(_properties.googleTrackerID)this.googleTrack()};this._keepAlive=function(){if(_server==undefined)this.initialize();_server.fApplication.keepAlive()};this.addHistory=function(params){var qs="";if(typeof params=='string'){qs=params}else for(var i in params){if(qs!="")qs+="&";qs+=i+"=";if(typeof params[i]=="object"||params[i][0]=="["||params[i][0]=="{"||params[i][0]=="\""){qs+=escape($.toJSON(params[i]))}else qs+=escape(params[i])};window.dhtmlHistory.add(qs);_currentHash=qs};this._processHistory=function(hash){if(!hash||hash==_currentHash)return;var params={},p=hash.split("&");for(var i in p){var nv=p[i].split("=");nv[1]=unescape(nv[1]);if(nv[1][0]=="["||nv[1][0]=="{"||nv[1][0]=="\""){params[nv[0]]=$.evalJSON(nv[1])}else params[nv[0]]=nv[1]};_currentHash=hash;this._triggerEvent(fEvent.ON_STATECHANGE,params,undefined)};this.triggerEvent=function(event,target){return this._triggerEvent(event,target,undefined)};this._triggerEvent=function(event,target,swfId){if(!(event instanceof fEvent))event=new fEvent(event,target);var r="";if(_handlers[event.type])_handlers[event.type].dispatch(event);if(swfId!=false){var spec=(typeof (swfId)=='string')?"[id!="+swfId+"]":"";$("object.swfComponent"+spec).each(function(){try{var pe=this._as3trigger(event.type,event.target,false);if(typeof (pe)=='string'&&typeof (r)=='string'){r+=pe}else r=pe}catch(e){}})};return r};this.addListener=function(event,handler,prio){prio=prio||0;var type=event instanceof fEvent?event.type:event,filter=event instanceof fEvent?event.target:event;if(_handlers[type]==undefined)_handlers[type]=new fHandlerStack();return _handlers[type].register(filter,handler,prio)};this.removeListener=function(type,handlerId){if(_handlers[type])_handlers[type].remove(handlerId)};this.lastError=function(){return _error};this.getState=function(state){return _state[state]};this.setState=function(state,value){this._setState(state,value,undefined)};this._setState=function(state,value,swfId){var target={};if(typeof (value)=='string'){_state[state]=value;target[state]=value}else{for(var name in state)_state[name]=state[name];target=state};this._triggerEvent(fEvent.ON_STATECHANGE,target,false);var spec=swfId==undefined?"":"[id!="+swfId+"]";$("object.swfComponent"+spec).each(function(){try{this._as3state(target,undefined,false)}catch(e){}})};this.invoke=function(method,args,onsuccess,onexception){if(method.substr(0,11)=="javascript:"){method=method.substr(11);try{var r=window[method](args);if(onsuccess)onsuccess(r)}catch(e){if(!(e instanceof fError))e=new fError(e,0);_error=e;if(onexception)onexception(e)}}else if(method.substr(0,13)=="actionscript:"){$("object.swfComponent").each(function(){try{var r=this._as3invoke("actionbridge:"+method.substr(13),args);if(onsuccess)onsuccess(r)}catch(e){if(!(e instanceof fError))e=new fError(e,0);_error=e;if(onexception)onexception(e)}})}else{if(_server==undefined)this.initialize();if($("#busy").length==0)$("body").append("<div id='busy'/>");$("#busy").show();_server.fApplication.invoke({params:{method:method,args:args},onSuccess:function(message){if(onsuccess)onsuccess(message);$("#busy").hide()},onException:function(e){_error=e;if(onexception){onexception(e)}else{if(e.message)e=e.message;if(e.match(/^Method.*does not exist$/)){alert(e)}else fLog.error("fApplication.invoke: "+e)};$("#busy").hide();return true}})}};this.googleTrack=function(url){if(_properties.googleTrackerID!=undefined){if(_pageTracker==undefined){_pageTracker=_gat._getTracker(_properties.googleTrackerID);if(_pageTracker._initData!=undefined)_pageTracker._initData()};if(_pageTracker!=undefined&&_pageTracker._trackPageview!=undefined)_pageTracker._trackPageview(url)}};this.getComponent=function(name,properties,where,onsuccess,onexception,method){properties=properties||[];where=where||document;method=method||"append";if(typeof method=="boolean")method=method?"replaceWith":"html";if(_server==undefined)this.initialize();if($("#busy").length==0)$("body").append("<div id='busy'/>");$("#busy").show();_server.fApplication.getComponent({params:{component:name,properties:properties},onSuccess:function(r){for(var i in r.required){var src=r.required[i].replace("{FRITZ3}",fApplication.prefix);if(src.match('.js$')){if(!_loadedRequires[src]){$('head').append('<script src="'+src+'"></script>');_loadedRequires[src]=true}}else if(src.match('.css$')){if(!_loadedRequires[src]){$('head').append('<link type="text/css" rel="stylesheet" src="'+src+'"/>');_loadedRequires[src]=true}}else new Function(src)()};$(where)[method](r.content);new Function(r.init)();if(onsuccess)onsuccess(r.content);fApplication.singleton().triggerEvent(fEvent.ON_COMPONENTLOADED,where);$("#busy").hide()},onException:function(e){if(onexception){onexception(e)}else{if(e.message)e=e.message;fLog.error("fApplication.getComponent: "+e)};$("#busy").hide();return true}})}};return new function(){this.version="0.2";this.timers={};this.googleTracker=undefined;this._jsinvoke=function(method,args){try{return window[method](args)}catch(e){if(!(e instanceof fError))e=new fError(e,0);return e}};this._jstrigger=function(type,target,swfId){return fApplication.singleton()._triggerEvent(type,event,swfId)};this._jsstate=function(state,swfId){return fApplication.singleton()._setState(type,event,swfId)};this.getScript=function(file,callback){var script=document.createElement("script");script.type="text/javascript";script.src=file
function cbWrapper(s){if(callback!=undefined)callback()};if(typeof (script.addEventListener)!='undefined'){script.addEventListener('load',cbWrapper,false)}else{function handleIeState(){if(script.readyState=='loaded')cbWrapper()};script.attachEvent('onreadystatechange',handleIeState)};document.getElementsByTagName("head")[0].appendChild(script)};this.singleton=function(){if(instance===null){instance=new __construct();delete instance.__construct;$(window).load(function(){window.dhtmlHistory.create({toJSON:function(o){return $.toJSON(o)},fromJSON:function(s){return $.evalJSON(s)},blankURL:fApplication.prefix+"external/rsh/blank.html?"});window.dhtmlHistory.initialize();window.dhtmlHistory.addListener(function(newLocation,historyData){fApplication.singleton()._processHistory(newLocation)})});setInterval("fApplication.singleton()._keepAlive()",15*60*1000)};return instance}}()})();fApplication.PRIO_MAXIMUM=100;fApplication.PRIO_FIRST=fApplication.PRIO_MAXIMUM;fApplication.PRIO_LAST=-1;fApplication.PRIO_HIGHEST=-2;fApplication.prefix=-1;var _s=document.getElementsByTagName("SCRIPT");for(var _i=0;_i<_s.length;_i++)if(_s[_i].getAttribute("src")&&(fApplication.prefix=_s[_i].getAttribute("src").indexOf("javascript/fritz"))>-1)fApplication.prefix=_s[_i].getAttribute("src").substr(0,fApplication.prefix);if(typeof jQuery=="undefined")fApplication.getScript(fApplication.prefix+"external/jquery/jquery-1.3.2.min.js");if(typeof rpc=="undefined")fApplication.getScript(fApplication.prefix+"external/json-xml-rpc/client/rpc.js");if(typeof $.toJSON=="undefined")fApplication.getScript(fApplication.prefix+"external/jquery/jquery.json-1.2.min.js");if(typeof window.dhtmlHistory=="undefined")fApplication.getScript(fApplication.prefix+"external/rsh/rsh4jquery.compressed.js");if(typeof fLog=="undefined")fApplication.getScript(fApplication.prefix+"javascript/fLog.js");if(typeof fEvent=="undefined")fApplication.getScript(fApplication.prefix+"javascript/fEvent.js");if(typeof fError=="undefined")fApplication.getScript(fApplication.prefix+"javascript/fError.js")
