(function(G){var emulated_;G.funjes=(function(G){var f,e,fire,fs,fired;fs=[];fired=false;fire=function(){if(!fired){fired=true;for(var i=0;i<fs.length;i++){fs[i](G,G.funjes)}}};if(typeof G.document.addEventListener!=="undefined"){G.document.addEventListener("DOMContentLoaded",fire,false)}else{G.document.write('<script id="funjes-onready" defer="defer" src="//:"><\/script>');e=G.document.getElementById("funjes-onready");e.onreadystatechange=function(){if(this.readyState==="complete"){fire()}}}f=function(){if(G.document.readyState==="complete"){fire()}else{if(typeof G.document.readyState!=="undefined"){G.setTimeout(f,10)}}};f();e=G.onload||function(){};G.onload=function(){fire();e()};G.document.onreadystatechange=function(){if(this.readyState==="complete"){fire()}};return function(f){if(fired){f(G,G.funjes)}else{fs.push(f)}}})(G);emulated_=[];(function(emulated){if(typeof G.Function.prototype.apply==="undefined"){(function(){emulated[emulated.length]="Function.apply";var applyCounter,exceptions;applyCounter=0;exceptions=true;
/*@cc_on @*/
/*@if (@_jscript_version < 5)
		exceptions = false
		@end @*/
G.Function.prototype.apply=function(obj,args){var i,tempMethodName,parameters,length;tempMethodName="__applyTemp__b"+(applyCounter++);if(obj===null){obj=G}obj[tempMethodName]=this;parameters=[];length=(args||"").length>>>0;for(i=0;i<length;i++){parameters[i]="args["+i+"]"}if(exceptions){return(new G.Function("obj","args","var a; a = obj."+tempMethodName+"("+parameters+");try{ delete obj['"+tempMethodName+"']; } catch(e) {} return a;"))(obj,args)}else{return(new G.Function("obj","args","var a; a = obj."+tempMethodName+"("+parameters+");if(obj !== window) { delete obj['"+tempMethodName+"']; } return a;"))(obj,args)}}})()}if(typeof G.Function.prototype.call==="undefined"){(function(){emulated[emulated.length]="Function.call";var slice=G.Array.prototype.slice;G.Function.prototype.call=function(obj){return this.apply(obj,slice.apply(arguments,[1]))}})()}if(typeof G.Math.ceil==="undefined"){emulated[emulated.length]="Math.ceil";G.Math.ceil=function(n){return -G.Math.floor(-n)}}if(typeof G.Object.prototype.hasOwnProperty==="undefined"){(function(){emulated[emulated.length]="Object.hasOwnProperty";var op,r;r=new G.RegExp("toLocaleString|hasOwnProperty|propertyIsEnumerable|isPrototypeOf|constructor|toString|valueOf","");op=G.Object.prototype;op.hasOwnProperty=function(key){var result=false,value;key=""+key;if(r.test(key)){result=op[key]!==this[key]}else{for(value in this){if(value===key){result=this===op?false:op[key]!==this[key];break}}}return result}})()}if(typeof G.Object.prototype.isPrototypeOf==="undefined"){emulated[emulated.length]="Object.isPrototypeOf";G.Object.prototype.isPrototypeOf=function(object){var prev;while(true){object=G.funjes.getPrototypeOf(object);if(prev===object){return object===this}if(object===this){return true}prev=object}return false}}if(typeof G.Array.prototype.join==="undefined"){emulated[emulated.length]="Array.join";G.Array.prototype.join=function(){var i,n,s,r;s=typeof arguments[0]==="undefined"?",":G.String(arguments[0]);n=this.length;if(n>0){r=this[0]+"";for(i=1;i<n;i++){r+=s+this[i]}return r}else{return""}}}if(typeof G.String.prototype.localeCompare==="undefined"){emulated[emulated.length]="String.localeCompare";G.String.prototype.localeCompare=function(){G.alert("TODO localeCompare for opera-6")}}if(typeof G.Array.prototype.pop==="undefined"){emulated[emulated.length]="Array.pop";G.Array.prototype.pop=function(){var r;this.length=this.length>>>0;if(this.length===0){return}r=this[this.length-1];G.funjes.unset(this,this.length-1);this.length--;return r}}if(typeof G.Object.prototype.propertyIsEnumerable==="undefined"){emulated[emulated.length]="Object.propertyIsEnumerable";G.Object.prototype.propertyIsEnumerable=function(){G.alert("TODO propertyIsEnumerable for internet_explorer-4")}}if(typeof G.Array.prototype.push==="undefined"){emulated[emulated.length]="Array.push";G.Array.prototype.push=function(){var i,n;n=arguments.length>>>0;for(i=0;i<n;i++){this[this.length]=arguments[i]}return this.length}}if(typeof G.Array.prototype.shift==="undefined"){emulated[emulated.length]="Array.shift";G.Array.prototype.shift=function(){var i,r,n;this.length=this.length>>>0;if(this.length===0){return}r=this[0];n=this.length-1;for(i=0;i<n;i++){this[i]=this[i+1]}this.length--;return r}}if(typeof G.Array.prototype.slice==="undefined"){emulated[emulated.length]="Array.slice";G.Array.prototype.slice=function(i){var b,firstNotIncluded;firstNotIncluded=typeof arguments[1]==="undefined"?this.length:arguments[1];b=[];while(i<firstNotIncluded){b.push(this[i]);i++}return b}}if(typeof G.Array.prototype.splice==="undefined"){emulated[emulated.length]="Array.splice";G.Array.prototype.splice=function(start,deleteCount){var toInsert,toDelete,i;if(deleteCount<0){deleteCount=0}toInsert=G.Array.prototype.slice.call(arguments,2);toDelete=this.slice(start,deleteCount);toInsert=this.slice(0,start).concat(toInsert,this.slice(start+deleteCount));this.length=0;G.Array.prototype.push.apply(this,toInsert);return toDelete}}if(typeof G.String.prototype.substring==="undefined"){if(typeof G.String.prototype.substr==="undefined"){emulated[emulated.length]="String.substring";G.String.prototype.substring=function(start){var substring,firstNotIncluded;firstNotIncluded=typeof arguments[1]==="undefined"?this.length:(arguments[1]+start);substring="";while(start<firstNotIncluded){substring+=this.charAt(start++)}return substring}}else{G.String.prototype.substring=function(start){return this.substr(start,(typeof arguments[2]==="undefined"?this.length:(arguments[2]+start))-start)}}}if(typeof G.Date.prototype.toDateString==="undefined"){emulated[emulated.length]="Date.toDateString";G.Date.prototype.toDateString=function(){G.alert("TODO toDateString for internet_explorer-4")}}if(typeof G.Number.prototype.toExponential==="undefined"){emulated[emulated.length]="Number.toExponential";G.Number.prototype.toExponential=function(){G.alert("TODO toExponential for opera-6")}}if(typeof G.Number.prototype.toFixed==="undefined"){emulated[emulated.length]="Number.toFixed";G.Number.prototype.toFixed=function(){G.alert("TODO toFixed for opera-6")}}if(typeof G.Date.prototype.toLocaleDateString==="undefined"){emulated[emulated.length]="Date.toLocaleDateString";G.Date.prototype.toLocaleDateString=function(){G.alert("TODO toLocaleDateString for internet_explorer-4")}}if(typeof G.String.prototype.toLocaleLowerCase==="undefined"){emulated[emulated.length]="String.toLocaleLowerCase";G.String.prototype.toLocaleLowerCase=function(){G.alert("TODO toLocaleLowerCase for internet_explorer-4")}}if(typeof G.Object.prototype.toLocaleString==="undefined"){emulated[emulated.length]="Object.toLocaleString";G.Object.prototype.toLocaleString=function(){return this.toString()}}if(typeof G.Date.prototype.toLocaleTimeString==="undefined"){emulated[emulated.length]="Date.toLocaleTimeString";G.Date.prototype.toLocaleTimeString=function(){G.alert("TODO toLocaleTimeString for internet_explorer-4")}}if(typeof G.String.prototype.toLocaleUpperCase==="undefined"){emulated[emulated.length]="String.toLocaleUpperCase";G.String.prototype.toLocaleUpperCase=function(){G.alert("TODO toLocaleUpperCase for internet_explorer-4")}}if(typeof G.Number.prototype.toPrecision==="undefined"){emulated[emulated.length]="Number.toPrecision";G.Number.prototype.toPrecision=function(){G.alert("TODO toPrecision for opera-6")}}if(typeof G.Date.prototype.toTimeString==="undefined"){emulated[emulated.length]="Date.toTimeString";G.Date.prototype.toTimeString=function(){G.alert("TODO toTimeString for internet_explorer-4")}}if(typeof G.Array.prototype.unshift==="undefined"){emulated[emulated.length]="Array.unshift";G.Array.prototype.unshift=function(){var i,n,nc;n=arguments.length>>>0;nc=this.length;for(i=0;i<nc;i++){this[i+n]=this[i]}for(i=0;i<n;i++){this[i]=arguments[i]}return this.length}}})(emulated_);G.funjes.Res=(function(F){var self,listeners,resolved,check;self=this;listeners=[];resolved={};check=function(){var i,j,m,r,k;i=0;while(i<listeners.length){if(listeners[i]){j=0;k=listeners[i].keys;m=k.length;r=true;while(j<m){if(!resolved[k[j]]){r=false;break}j++}if(r){k=listeners[i].funktion;listeners[i]=null;k()}}i++}};self.add=function(key){if(!resolved[key]){resolved[key]=true;check()}};self.when=function(keys,funktion){listeners.push({keys:keys,funktion:funktion});check()};self.set=function(key,funjes){F[key]=funjes;self.add(key)}});G.funjes.funjes=function(D){var F,R,i;F=function(f){f(G,F)};R=new G.funjes.Res(F);F.funjes=G.funjes.funjes;F.emulated=[];for(var i=0;i<emulated_.length;i++){F.emulated[i]=emulated_[i]}G.funjes.part0(F,D,R);return F};G.funjes.Iris=(function(){var List,foreach,arrayIndexOf;if(typeof Array.prototype.indexOf==="undefined"){arrayIndexOf=function(a,e){var from,len;len=a.length>>>0;from=Number(arguments[2])||0;from=(from<0)?Math.ceil(from):Math.floor(from);if(from<0){from+=len}while(from<len){if(typeof a[from]!=="undefined"&&a[from]===e){return from}from++}return -1}}else{arrayIndexOf=function(a,e){return a.indexOf(e,Number(arguments[2])||0)}}foreach=function(o,f){for(var j in o){if(o.hasOwnProperty(j)){f(o[j],j)}}};List=function(){};List.prototype.first=null;List.prototype.last=null;List.prototype.fireAll=function(){var i;i=this.first;while(i){i.o.fire();i=i.n}};List.prototype.toFire=function(tofire,p){var i,j,k;i=this.first;while(i){if(!tofire[i.o.id]){for(j=0;k=i.o.keys[j];j++){k=k+".";if(k.substr(0,p.length)===p||p.substr(0,k.length)===k){tofire[i.o.id]=i.o;break}}}i=i.n}};List.prototype.push=function(i){i={o:i};if(this.last===null){this.last=i;this.first=i;i.n=null;i.p=null}else{i.n=null;i.p=this.last;this.last.n=i;this.last=i}return function(){if(i.p!==null){i.p.n=i.n}if(i.n!==null){i.n.p=i.p}if(i.p===null){this.first=i.n}if(i.n===null){this.last=i.p}}};List.prototype.announceAllIndexValues=function(cp){var i,j,ppp,cpi;i=this.first;while(i){ppp=[];for(j=0;cpi=cp[j];j++){ppp.push(i.o[0]+cpi)}i.o[1].announce(ppp);i=i.n}};List.prototype.announceAllPropertyNames=function(cp){var i,j,ppp;i=this.first;while(i){ppp=[];for(j in cp){if(cp.hasOwnProperty(j)){ppp.push(i.o[0]+j)}}i.o[1].announce(ppp);i=i.n}};return function(defaults){var self,store,ties,listeners,relays,unrelays,models,arrayComparators,tieId,resolve,write,getArrayChanges;self=this;self.defaults={};store={};tieId=0;listeners={};unrelays={};ties=new List;relays=new List();models={};arrayComparators={};resolve=function(pa){var a,i,p;a=store[pa[0]];for(i=1;p=pa[i];i++){if(a===null){return null}a=a["get"+p.charAt(0).toUpperCase()+p.substr(1)]()}return a};getArrayChanges=function(a,b,equals){var i,ai,bi,prem,rem,padd,add,mov,old;bi=0;ai=0;prem=[];rem=[];padd=[];add=[];mov=[];old=[];while(ai<a.length&&bi<b.length){if(equals(a[ai],b[bi])){old.push({at:ai,value:a[ai]})}else{prem[ai]=a[ai];padd[bi]=b[bi]}ai++;bi++}while(ai<a.length){for(i=0;i<padd.length;i++){if(equals(padd[i],a[ai])){break}}if(i===padd.length){prem[ai]=a[ai]}else{delete padd[i];mov.push({from:ai,to:i,value:a[ai]})}ai++}while(bi<b.length){for(i=0;i<prem.length;i++){if(equals(prem[i],b[bi])){break}}if(i===prem.length){padd[bi]=b[bi]}else{delete prem[i];mov.push({from:i,to:bi,value:b[bi]})}bi++}for(i=0;i<prem.length;i++){if(typeof prem[i]!=="undefined"){rem.push({from:i,value:prem[i]})}}for(i=0;i<padd.length;i++){if(typeof padd[i]!=="undefined"){add.push({to:i,value:padd[i]})}}return{rem:rem,add:add,mov:mov,old:old,value:b}};write=function(p,v){if(store[p]!==v){store[p]=v;if(models[p]){if(v===null){if(unrelays[p]){unrelays[p]();delete unrelays[p]}}else{if(unrelays[p]){unrelays[p]()}unrelays[p]=v.relay(p+".",self)}}return true}return false};self.require=function(d){foreach(d,function(value,p){if(typeof store[p]==="undefined"){self.defaults[p]=value;store[p]=value;var p2=p.charAt(0).toUpperCase()+p.substr(1);self["set"+p2]=function(v){if(v===store[p]){return false}if(models[p]){var toAnnounce;toAnnounce=[p];p2=p+".";foreach(listeners,function(pr,key){if(key.substr(0,p2.length)===p2){var a,b,i,pri;pr=key.split(".");a=store[p];b=v;for(i=1;pri=pr[i];i++){if(a===null||b===null){return}pri="get"+pri.charAt(0).toUpperCase()+pri.substr(1);a=a[pri]();b=b[pri]()}if(a!==b){toAnnounce.push(key)}}});self.put(v,p);self.announce(toAnnounce)}else{if(arrayComparators[p]){var changes;changes=getArrayChanges(store[p]||[],v,arrayComparators[p]);if(changes.add.length!==0||changes.old.length!==v.length){self.put(v,p);v=changes;changes={};changes[p]=v;self.announce(p,-1,changes)}}else{self.put(v,p);self.announce(p)}}return true};self["get"+p2]=function(){return store[p]}}});if(typeof arguments[1]!=="undefined"){for(d=0;p=arguments[1][d];d++){models[p]=true;if(store[p]!==null){unrelays[p]=store[p].relay(p+".",self)}}}if(typeof arguments[2]!=="undefined"){arrayComparators=arguments[2]}};self.tie=function(keys,dependency){var j,tie,values,unties,key,keysplit,prev,curr,k;unties=[];tie={dependency:dependency,id:"a"+(tieId++),keys:((typeof keys==="string")?[keys]:keys)};keys=[];values=[];for(j=0;key=tie.keys[j];j++){if(typeof listeners[key]==="undefined"){unties.push((listeners[key]=new List()).push(tie.fire))}else{unties.push(listeners[key].push(tie.fire))}if(arrayComparators[key]){values.push("changes['"+key+"']")}else{if(key.indexOf(".")<0){values.push("store['"+key+"']")}else{prev="self";keysplit=key.split(".");for(k=0;curr=keysplit[k];k++){keys.push(prev+" !== null");prev+=".get"+curr.charAt(0).toUpperCase()+curr.substr(1)+"()"}values.push(prev)}}}tie.fire=(new Function("dependency","store","self","return function(changes) { if ("+(keys.length>0?keys.join(" && "):"true")+") { dependency.apply(null, ["+values.join(",")+"]); } }"))(dependency,store,self);unties.push(ties.push(tie));return function(){var i,a;for(i=0;a=unties[i];i++){a()}}};self.get=function(){var i,c;c={};for(i in store){c[i]=store[i]}return c};self.set=function(){var objs,internalChanges,externalChanges,arrayChanges;internalChanges=[];externalChanges={};objs={};arrayChanges={};foreach(arguments[0],function(v,p){var pa,po,pop;if(p.indexOf(".")<0){pa={};if(models[p]){po=p+".";foreach(listeners,function(l,key){if(key.substr(0,po.length)===po){pa[key]=resolve(key.split("."))}})}po=store[p];if(write(p,v)){if(arrayComparators[p]){if(!po){internalChanges.push(p);arrayChanges[p]=getArrayChanges([],v)}else{po=getArrayChanges(po,v,arrayComparators[p]);if(po.add.length!==0||po.old.length!==v.length){internalChanges.push(p);arrayChanges[p]=po}}}else{internalChanges.push(p)}if(models[p]){foreach(pa,function(v2,p2){if(resolve(p2)!==v2){internalChanges.push(p2)}})}}}else{pa=p.split(".");pop=pa[pa.length-1];pa.pop();po=pa.join(".");if(typeof objs[po]==="undefined"){pa=resolve(pa);if(pa===null){return}objs[po]=pa}else{pa=objs[po]}if(pa.put(v,pop)){if(typeof externalChanges[po]==="undefined"){externalChanges[po]=[pop]}else{externalChanges[po].push(pop)}}}});if(internalChanges.length>0){self.announce(internalChanges,-1,arrayChanges)}foreach(externalChanges,function(propertyValueChanges,propertyName){if(propertyValueChanges.length>0){objs[propertyName].announce(propertyValueChanges)}})};self.announceAll=function(){ties.fireAll();relays.announceAllPropertyNames(self.defaults)};self.announce=function(){var tofire,cp,ex,i,j,changes,p,property;tofire={};changes={};if(arguments.length>2&&arguments[arguments.length-2]===-1){changes=arguments[arguments.length-1];ex=[];cp=[];for(i=0;i<arguments.length-2;i++){cp.push(arguments[i])}}else{if(typeof arguments[arguments.length-1]!=="string"&&arguments.length>1){ex=arguments[arguments.length-1];cp=[];for(i=0;i<arguments.length-1;i++){cp.push(arguments[i])}}else{ex=[];cp=arguments}}for(i=0;p=cp[i];i++){if(typeof p==="string"){ties.toFire(tofire,p+".")}else{for(j=0;property=p[j];j++){ties.toFire(tofire,property+".")}}}foreach(tofire,function(tie){if(arrayIndexOf(ex,tie.dependency)===-1){tie.fire(changes)}});relays.announceAllIndexValues(cp)};self.put=function(){if(typeof arguments[1]==="string"){var p,v,pop;v=arguments[0];p=arguments[1];if(p.indexOf(".")<0){return write(p,v)}else{p=p.split(".");pop=p[p.length-1];p.pop();p=resolve(p);if(p===null){return false}return p.put(v,pop)}}else{foreach(arguments[0],self.put)}};self.relay=function(prefix,model){return relays.push([prefix,model])};self.require(defaults,arguments[1],arguments[2])}})();G.funjes.part0=function(F,D,R){R.when(["isArray","isString"],function(){F.forEachIndex=(function(){if(typeof G.Array.forEach==="undefined"){F.emulated.push("funjes.forEachIndex");return function(o,f){var self,i,len;if(typeof f!=="function"){return}self=typeof arguments[2]==="undefined"?null:arguments[2];len=o.length>>>0;for(i=0;i<len;i++){if(typeof o[i]!=="undefined"){f.call(self,o[i],i,o)}}}}else{return function(o,f){var self,i,len;if(typeof f!=="function"){return}self=typeof arguments[2]==="undefined"?null:arguments[2];if(F.isArray(o)||F.isString(o)){G.Array.forEach(o,f,self)}else{len=o.length>>>0;for(i=0;i<len;i++){if(typeof o[i]!=="undefined"){f.call(self,o[i],i,o)}}}}}})();if(typeof F.forEachIndex!=="undefined"){R.add("forEachIndex")}});R.when(["getPrototypeOf"],function(){F.isArray=(function(){var p,c,getPrototypeOf;getPrototypeOf=F.getPrototypeOf;p=getPrototypeOf([]);c=[].constructor;return function(value){return getPrototypeOf(value)===p&&value.constructor===c}})();if(typeof F.isArray!=="undefined"){R.add("isArray")}});R.when(["unset"],function(){F.getPrototypeOf=(function(){if(typeof G.Object.getPrototypeOf==="undefined"){if(typeof"".__proto__==="undefined"){F.emulated.push("funjes.getPrototypeOf");return function(obj){if(typeof obj!=="object"||obj===null){return null}var constructor,realConstructor;constructor=obj.constructor;realConstructor=constructor;if(obj.hasOwnProperty&&obj.hasOwnProperty("constructor")){F.unset(obj,"constructor");realConstructor=obj.constructor;obj.constructor=constructor}if(typeof realConstructor==="undefined"){return null}return realConstructor.prototype}}else{return function(obj){if(typeof obj!=="object"||obj===null){return null}return obj.__proto__}}}else{return function(obj){if(typeof obj!=="object"||obj===null){return null}return G.Object.getPrototypeOf(obj)}}})();if(typeof F.getPrototypeOf!=="undefined"){R.add("getPrototypeOf")}});R.when([],function(){F.unset=(function(o,p){if(typeof o[p]!=="undefined"){delete o[p]}});if(typeof F.unset!=="undefined"){R.add("unset")}});R.when(["getPrototypeOf"],function(){F.isString=(function(){var p,c,getPrototypeOf;getPrototypeOf=F.getPrototypeOf;p=getPrototypeOf("");c="".constructor;return function(value){return getPrototypeOf(value)===p&&value.constructor===c}})();if(typeof F.isString!=="undefined"){R.add("isString")}});R.when(["getElementClassName","getElements"],function(){F.getElementsByClassName=(function(){if(D===null){return}if(D.getElementsByClassName){return function(className){if(typeof arguments[1]==="undefined"){return D.getElementsByClassName(className)}else{return arguments[1].getElementsByClassName(className)}}}else{F.emulated.push("funjes.getElementsByClassName");return function(className){var i,j,n,classes,elements,returnElements,match,current;classes=className.split(" ");elements=F.getElements();returnElements=[];n=classes.length;i=0;while(current=elements[i++]){match=-1;className=" "+F.getElementClassName(current)+" ";for(j=0;j<n;j++){match=className.indexOf(" "+classes[j]+" ");if(match<0){break}}if(match>=0){returnElements.push(current)}}return returnElements}}})();if(typeof F.getElementsByClassName!=="undefined"){R.add("getElementsByClassName")}});R.when([],function(){F.getElementClassName=(function(element){return element.className});if(typeof F.getElementClassName!=="undefined"){R.add("getElementClassName")}});R.when(["getRootNode"],function(){F.getElements=(function(){if(D===null){return}var recursively,findAll;findAll=function(list,parent){if(parent.childNodes){var cn,i;cn=parent.childNodes;list.push(parent);for(i=0;i<cn.length;i++){findAll(list,cn.item(i))}}};recursively=function(){var elements;elements=[];findAll(elements,F.getRootNode());return elements};if(typeof D.getElementsByTagName!=="undefined"){return function(){var els=D.getElementsByTagName("*");if(els.length<1){return recursively()}return els}}else{if(typeof D.all!=="undefined"){return function(){return D.all}}}return recursively})();if(typeof F.getElements!=="undefined"){R.add("getElements")}});R.when(["getNodeName"],function(){F.getRootNode=(function(){if(D===null){return}var r;return function(){if(typeof r==="undefined"){if(D.documentElement){r=D.documentElement}else{if(D.body){r=D.body.parentNode}}if(!r){var i,a,n;a=typeof D.getElementsByTagName==="undefined"?D.all:D.getElementsByTagName("html");if(a){for(i=0;a[i];i++){n=F.getNodeName(a[i]);if(n==="head"){if(typeof a[i].parentElement!=="undefined"){r=a[i].parentElement;break}if(typeof a[i].parentNode!=="undefined"){r=a[i].parentNode;break}}else{if(n==="body"){if(typeof a[i].parentElement!=="undefined"){r=a[i].parentElement;break}if(typeof a[i].parentNode!=="undefined"){r=a[i].parentNode;break}}else{if(n==="html"){r=a[i];break}}}}}}if(!r){r=null}}return r}})();if(typeof F.getRootNode!=="undefined"){R.add("getRootNode")}});R.when([],function(){F.getNodeName=(function(node){if(typeof node.nodeName==="undefined"){if(typeof node.tagName==="undefined"){return}return node.tagName.toLowerCase()}return node.nodeName.toLowerCase()});if(typeof F.getNodeName!=="undefined"){R.add("getNodeName")}});R.when(["isArray","isString"],function(){F.mapIndices=(function(){if(typeof G.Array.map==="undefined"){F.emulated.push("funjes.mapIndices");return function(o,f){var res,self,i,len;if(typeof f!=="function"){return}self=typeof arguments[2]==="undefined"?null:arguments[2];len=o.length>>>0;res=new G.Array(len);for(i=0;i<len;i++){if(typeof o[i]!=="undefined"){res[i]=f.call(self,o[i],i,o)}}return res}}else{return function(o,f){var res,self,i,len;if(typeof f!=="function"){return}self=typeof arguments[2]==="undefined"?null:arguments[2];if(F.isArray(o)||F.isString(o)){return G.Array.map(o,f,self)}else{len=o.length>>>0;res=new G.Array(len);for(i=0;i<len;i++){if(typeof o[i]!=="undefined"){res[i]=f.call(self,o[i],i,o)}}return res}}}})();if(typeof F.mapIndices!=="undefined"){R.add("mapIndices")}});R.when([],function(){F.pass=(function(v){return v});if(typeof F.pass!=="undefined"){R.add("pass")}});R.when(["mapIndices","explodeString","trim"],function(){F.Pair=(function(){var Pair=function(a,b){this.a=a;this.b=b};Pair.prototype.toString=function(){return"[object Pair: "+this.a+", "+this.b+"]"};Pair.prototype.put=function(o){o[this.a]=this.b};Pair.fromEquation=function(e){return Pair.fromArray(F.mapIndices(F.explodeString(e,"=",2),F.trim))};Pair.fromArray=function(o){return new Pair(o[0],o[1])};Pair.fromHTTPHeader=function(h){return Pair.fromArray(F.mapIndices(F.explodeString(h,":",2),F.trim))};return Pair})();if(typeof F.Pair!=="undefined"){R.add("Pair")}});R.when([],function(){F.explodeString=(function(string,separator,max){var i,r,l;r=[];l=0;while(true){if(r.length===max){break}i=string.indexOf(separator,l);if(i<0){break}r.push(string.substring(l,i));l=i+separator.length}if(r.length<max&&l<=string.length){r.push(string.substring(l))}return r});if(typeof F.explodeString!=="undefined"){R.add("explodeString")}});R.when([],function(){F.trim=(function(){var trim,r=new G.RegExp("^\\s*|\\s*$","g");trim=function(s){return s.replace(r,"")};if(trim(" 	afaf   		  ")==="afaf"){return trim}F.emulated.push("funjes.trim");trim=null;r=null;return function(s){var a,b;a=-1;b=s.length;while(s.charCodeAt(--b)<33){}while(s.charCodeAt(++a)<33){}return s.slice(a,b+1)}})();if(typeof F.trim!=="undefined"){R.add("trim")}});R.when(["ImageLoader","LightboxView","LightboxMinimalFrameSizeStrategy"],function(){F.Lightbox=(function(){return function(config,imgs,sizes,progressImg){var v,self,open,lm;self=this;lm=new F.ImageLoader(imgs,sizes);v=new F.LightboxView(lm,typeof arguments[4]==="undefined"?F.LightboxMinimalFrameSizeStrategy:arguments[4],self,progressImg,config);open=false;self.setSlideshow=function(enable){v.setSlideshow(enable)};self.goToNext=function(){self.goTo(lm.getNext())};self.goToPrevious=function(){self.goTo(lm.getPrevious())};self.goTo=function(index){if(lm.getCurrent()===index){return}if(!open){self.open(index);return}lm.setCurrent(index)};self.close=function(){if(open){open=false;v.close()}};self.open=function(){if(!open){open=true;v.open(typeof arguments[0]==="number"?arguments[0]:0)}};self.isOpen=function(){return open}}})();if(typeof F.Lightbox!=="undefined"){R.add("Lightbox")}});R.when(["attachListener","createElementNode","next","previous","doNothing"],function(){F.ImageLoader=(function(){var createNode=function(source){if(source.type==="imageFromURL"){return F.createElementNode("img")}if(source.type==="node"){return source.data}};var attachLoadedHandler=function(node,source,handler){if(source.type==="imageFromURL"){F.attachListener(node,"load",handler);node.setAttribute("src",source.data)}else{if(source.type==="node"){node.style.display="block";handler()}}};var fix=function(a){if(typeof a==="string"){return{type:"imageFromURL",data:a}}if(typeof a.type==="undefined"){return{type:"node",data:a}}return a};var LM=function(imgs,sizes){var i,n,imageIndex,imagesLoaded,images,self,loadEnd,loadBegin,procNr;procNr=0;n=imgs.length;imgs=imgs.slice(0);imagesLoaded=[];images=[];self=this;for(i=0;i<n;i++){imagesLoaded[i]=false;imgs[i]=fix(imgs[i]);images[i]=createNode(imgs[i])}loadEnd=function(j,src,onloadHandler,localProcNr){var img=images[j];attachLoadedHandler(img,src,function(){self.onimagesizechange(j,sizes[j].a,sizes[j].b);imagesLoaded[j]=true;if(img===images[imageIndex]){self.oncurrentloadend();self.oncurrentchangeend()}if(localProcNr===procNr){onloadHandler()}})};loadBegin=function(backwardIndex,forwardIndex,forward,localProcNr){var j,k;k=0;do{if(forward){j=forwardIndex;forwardIndex=F.next(n,forwardIndex)}else{j=backwardIndex;backwardIndex=F.previous(n,backwardIndex)}forward=!forward}while(imagesLoaded[j]&&k++<n);if(!imagesLoaded[j]){loadEnd(j,imgs[j],function(){loadBegin(backwardIndex,forwardIndex,forward,localProcNr)},localProcNr)}};self.oncurrentloadbegin=F.doNothing;self.oncurrentloadend=F.doNothing;self.oncurrentchangebegin=F.doNothing;self.oncurrentchangeend=F.doNothing;self.getNode=function(j){if(j===null){return null}return images[j]};self.getSize=function(){return n};self.isLoaded=function(j){return imagesLoaded[j]};self.getCurrent=function(){return typeof imageIndex==="undefined"?null:imageIndex};self.setCurrent=function(index){imageIndex=index;self.resetCurrent()};self.resetCurrent=function(){if(typeof imageIndex==="undefined"){return}self.oncurrentchangebegin();loadBegin(imageIndex,self.getNext(),false,++procNr);if(imagesLoaded[imageIndex]){self.oncurrentchangeend()}else{self.oncurrentloadbegin()}}};LM.prototype.getNext=function(){return F.next(this.getSize(),this.getCurrent())};LM.prototype.getPrevious=function(){return F.previous(this.getSize(),this.getCurrent())};LM.prototype.getCurrentNode=function(){return this.getNode(this.getCurrent())};return LM})();if(typeof F.ImageLoader!=="undefined"){R.add("ImageLoader")}});R.when(["setTimeout","getNodeName","doNothing","List"],function(){F.attachListener=(function(){if(D===null){return}if(D.implementation&&D.implementation.getFeature&&D.implementation.getFeature("implementation.ecmascript.maria","")===true){return function(node,property,listener){node.addEventListener(property,listener,false);return function(){node.removeEventListener(property,listener,false)}}}var attachImageLoadListener,attachOldschoolListener,mousescrollers;attachImageLoadListener=function(img,listener){var timer,rem,go,gone;go=function(e){if(!gone){gone=true;if(typeof e==="undefined"){e=window.event}listener.apply(img,[e])}};timer=function(){if(img.width>0){go()}else{F.setTimeout(timer,100)}};timer();if(img.attachEvent){img.attachEvent("onload",go)}if(img.addEventListener){img.addEventListener("load",go,false)}rem=attachOldschoolListener(img,"onload",go);return function(){rem();if(img.attachEvent){img.detachEvent("onload",go)}if(img.addEventListener){img.removeEventListener("onload",go)}}};attachOldschoolListener=function(node,property,listener){var previous=node[property]||F.doNothing;if(typeof previous.listeners==="undefined"){node[property]=function(e){e=e||G.event;if(previous(e)!==false&&node[property].listeners){node[property].listeners.foreachApply(e)}};node[property].listeners=new F.List()}return node[property].listeners.push(listener)};(function(){var wheel;mousescrollers=new F.List();wheel=function(event){var v;v=true;if(typeof event==="undefined"){event=G.event}event.down=true;if(event.wheelDelta){event.down=event.wheelDelta<0}else{if(event.detail){event.down=(-event.detail)<0}}mousescrollers.foreach(function(l){if(l(event)===false){v=false}});if(!v){return false}};if(G.addEventListener){G.addEventListener("DOMMouseScroll",wheel,false)}if(typeof G.addEventListener!=="undefined"){G.addEventListener("mousewheel",wheel,false)}else{if(typeof D.attachEvent!=="undefined"){D.attachEvent("onmousewheel",wheel)}else{if(typeof D.onmousewheel!=="undefined"){D.onmousewheel=wheel}}}})();if(typeof D.addEventListener!=="undefined"){if(typeof G.addEventListener==="undefined"){return function(node,event,listener){if(event==="mousewheel"){return mousescrollers.push(listener)}if(F.getNodeName(node)==="img"&&event==="load"){return attachImageLoadListener(node,listener)}if(node===G){if(typeof node.attachEvent!=="undefined"){event="on"+event;var fixingListener=function(e){return listener.apply(node,[e||G.event])};node.attachEvent(event,fixingListener);return function(){node.detachEvent(event,fixingListener)}}else{return attachOldschoolListener(node,"on"+event,listener)}}else{node.addEventListener(event,listener,false);return function(){node.removeEventListener(event,listener,false)}}}}else{return function(node,event,listener){if(event==="mousewheel"){return mousescrollers.push(listener)}if(F.getNodeName(node)==="img"&&event==="load"){return attachImageLoadListener(node,listener)}node.addEventListener(event,listener,false);return function(){node.removeEventListener(event,listener,false)}}}}else{if(typeof D.attachEvent!=="undefined"){return function(node,event,listener){if(event==="mousewheel"){return mousescrollers.push(listener)}if(F.getNodeName(node)==="img"&&event==="load"){return attachImageLoadListener(node,listener)}var fixingListener=function(e){return listener.apply(node,[e||G.event])};event="on"+event;node.attachEvent(event,fixingListener);return function(){node.detachEvent(event,fixingListener)}}}else{return function(node,event,listener){if(event==="mousewheel"){return mousescrollers.push(listener)}if(F.getNodeName(node)==="img"&&event==="load"){return attachImageLoadListener(node,listener)}var done,previous,list;if(node===G&&event==="load"){previous=G.onload||F.doNothing;done=false;event="on"+event;if(typeof G.onload==="undefined"||typeof G.onload.listeners==="undefined"){G.onload=function(e){if(!done){done=true;e=e||G.event;if(previous(e)!==false){list.foreachApply(e)}}};list=new F.List();G.onload.listeners=list}else{list=G.onload.listeners}if(typeof D.onreadystatechange==="undefined"||typeof D.onreadystatechange.listeners==="undefined"){D.onreadystatechange=function(e){if(this.readyState==="complete"&&!done){done=true;e=e||G.event;if(previous(e)!==false){list.foreachApply(e)}}};D.onreadystatechange.listeners=list}return list.push(listener)}else{return attachOldschoolListener(node,"on"+event,listener)}}}}})();if(typeof F.attachListener!=="undefined"){R.add("attachListener")}});R.when([],function(){F.setTimeout=(function(funktion,timeout){return G.setTimeout(funktion,timeout)});if(typeof F.setTimeout!=="undefined"){R.add("setTimeout")}});R.when([],function(){F.doNothing=(function(){});if(typeof F.doNothing!=="undefined"){R.add("doNothing")}});R.when([],function(){F.List=(function(){var El=function(o,n,p){this.o=o;this.n=n;this.p=p};return function(){var first,last,size,push,remove,get,insertBefore;first=null;last=null;size=0;insertBefore=function(e,en){e.n=en;if(en===first){e.p=null}else{e.p=en.p;e.p.n=e}en.p=e};get=function(i){var l;if(l<(size/2)){l=first;while(l!==null&&i-->0){l=l.n}}else{l=last;i=size-i-1;while(l!==null&&i-->0){l=l.p}}return l};remove=function(i){size--;if(i.p!==null){i.p.n=i.n}if(i.n!==null){i.n.p=i.p}if(i.p===null){first=i.n}if(i.n===null){last=i.p}};push=function(i){size++;if(last===null){last=i;first=i;i.n=null;i.p=null}else{i.n=null;i.p=last;last.n=i;last=i}return function(){remove(i)}};this.push=function(o){return push(new El(o))};this.pushLast=this.push;this.pushFirst=function(o){size++;var i;if(last===null){i=new El(o,null,null);last=i;first=i}else{i=new El(o,first,null);first.p=i;first=i}return function(){size--;if(i.p!==null){i.p.n=i.n}if(i.n!==null){i.n.p=i.p}if(i.p===null){first=i.n}if(i.n===null){last=i.p}}};this.getLast=function(){if(last===null){return null}else{return last.o}};this.getFirst=function(){if(last===null){return null}else{return last.o}};this.isEmpty=function(){return size===0};this.isSingle=function(){return size===1};this.size=function(){return size};this.pop=function(){if(last===null){return null}var o=last.o;size--;if(first===last){first=last=null}else{if(last.p!==null){last.p.n=null}last=last.p}return o};this.shift=function(){if(first===null){return null}var o=first.o;size--;if(first===last){first=last=null}else{if(first.n!==null){first.n.p=null}first=first.n}return o};this.foreach=function(itemhandler){var l=first;while(l!==null){itemhandler(l.o);l=l.n}};this.foreachApply=function(){var l,ok;l=first;ok=true;while(l!==null){if(l.o.apply(null,arguments)){ok=false}l=l.n}return ok};this.foreachApplyMethod=function(method,args){var l,ok;l=first;ok=true;while(l!==null){if(l.o[method].apply(l.o,args)){ok=false}l=l.n}return ok};this.has=function(v){var l=first;while(l!==null){if(l.o===v){return true}l=l.n}return false};this.toString=function(){return"[List:"+size+"]"};this.toFullString=function(){var a,e;a=[];e=first;while(e!==null){a[a.length]=e.o;e=e.n}return"[List:"+a+"]"}}})();if(typeof F.List!=="undefined"){R.add("List")}});R.when([],function(){F.createElementNode=(function(){if(D!==null&&typeof D.createElement!=="undefined"){return function(tagName){return D.createElement(tagName)}}})();if(typeof F.createElementNode!=="undefined"){R.add("createElementNode")}});R.when([],function(){F.next=(function(n,index){return(index+1)%n});if(typeof F.next!=="undefined"){R.add("next")}});R.when([],function(){F.previous=(function(n,index){return index>0?(index-1):(n-1)});if(typeof F.previous!=="undefined"){R.add("previous")}});R.when(["clearTimeout","style","merge","setTimeout","ButtonComponent","disableTextSelection","extend","getBodyNode","removeNode","attachListener","Delay","setElementOpacity","StringMap","getWindowInnerDimensions","getWindowScrollPosition","createElementNode","doNothing","Scrollbar","animate"],function(){F.LightboxView=(function(lm,FrameSizeStrategy,c,progressImg,config){var curtainCloseBusy,updateCloseImagePosition,closeImage,curtainOpenBusy,frameOpenBusy,controlsOpen,untieScroll,controlsHide,frameResizeStop,buttonTemplate,frameSizeStrategy,imageSizeMap,currentImage,defaultScrollListener,self,sizes,i,j,d,s,scrollGoDelay,progress,curtainClose,curtainOpen,imageLoaded,next,previous,close,imageOpen,updateFramePosition,scrollbar,frame,frameOpen,slideshow,slideshowTimer,slideshowNext,slideshowStop,curtain;self=this;d=F.getWindowInnerDimensions();s=F.getWindowScrollPosition();updateFramePosition=function(){if(closeImage){updateCloseImagePosition()}frame.style.left=((d.a-frameSizeStrategy.getWidth())/2+s.a)+"px";frame.style.top=((d.b-frameSizeStrategy.getHeight())/2+s.b)+"px"};if(typeof config.frameOverflow==="undefined"){config.frameOverflow="hidden"}frame=F.createElementNode("div");frame.style.display="block";frame.style.position="absolute";frame.style.background="#ffffff";frame.style.zIndex="10001";frame.style.overflow=config.frameOverflow;frameResizeStop=F.doNothing;if(typeof config.scrollbar==="undefined"){config.scrollbar=true}if(typeof config.curtainOpenDuration==="undefined"){config.curtainOpenDuration=100}if(typeof config.curtainCloseDuration==="undefined"){config.curtainCloseDuration=100}if(typeof config.imageOpenDuration==="undefined"){config.imageOpenDuration=200}if(typeof config.frameOpenDuration==="undefined"){config.frameOpenDuration=100}if(typeof config.controls==="undefined"){config.controls=true}if(typeof config.imageHorizontalAlign==="undefined"){config.imageHorizontalAlign="center"}if(!config.controls){config.scrollbar=false;config.controlsAnimation=false}if(config.scrollbar){scrollbar=new F.Scrollbar();scrollbar.setOrientation("horizontal");scrollbar.setInnerWidth(1000);scrollbar.setOuterWidth(100);scrollbar.setPosition("absolute");scrollbar.setZIndex("10002");defaultScrollListener=function(k){k=G.Math.floor(k/scrollbar.getOuterWidth());scrollGoDelay.set(function(){c.goTo(k)})};untieScroll=scrollbar.tie("scroll",defaultScrollListener);scrollGoDelay=new F.Delay();scrollGoDelay.setTime(75)}imageSizeMap=new F.StringMap();if(config.controls){controlsOpen={from:{},to:{},duration:200,funktion:F.animate.squareFunktion,onstart:function(){this.from.button=frameSizeStrategy.getHeight();this.to.button=this.from.button-sizes.buttonBottom;if(config.scrollbar){this.from.scrollbar=this.from.button;this.to.scrollbar=this.from.button-sizes.scrollbarBottom;scrollbar.setParent(frame)}next.getFrame().setParent(frame);previous.getFrame().setParent(frame);slideshow.getFrame().setParent(frame);close.getFrame().setParent(frame)},onprogress:function(p){if(config.scrollbar){scrollbar.setTop(p.scrollbar+"px")}next.getFrame().setTop(p.button);previous.getFrame().setTop(p.button);close.getFrame().setTop(p.button);slideshow.getFrame().setTop(p.button)},onfinish:function(){this.onstart();this.onprogress(this.to)}}}if(config.controlsAnimation){controlsHide={from:{},to:{},duration:200,funktion:F.animate.squareFunktion,onstart:function(p){if(config.scrollbar){this.to.scrollbar=frameSizeStrategy.getHeight();this.from.scrollbar=this.to.button-sizes.scrollbarBottom}this.to.button=frameSizeStrategy.getHeight();this.from.button=this.to.button-sizes.buttonBottom},onprogress:function(p){if(config.scrollbar){scrollbar.setTop(p.scrollbar+"px")}next.getFrame().setTop(p.button);previous.getFrame().setTop(p.button);close.getFrame().setTop(p.button);slideshow.getFrame().setTop(p.button)},onfinish:function(p){if(config.scrollbar){scrollbar.setParent(null)}next.getFrame().setParent(null);previous.getFrame().setParent(null);slideshow.getFrame().setParent(null);close.getFrame().setParent(null)}}}currentImage=null;sizes={};sizes.buttonWidth=config.buttonWidth;sizes.buttonHeight=config.buttonHeight;sizes.buttonMargin=config.buttonMargin;sizes.buttonBottom=config.buttonBottom;if(config.scrollbar){sizes.scrollbarBottom=config.scrollbarBottom}sizes.slideshowButtonWidth=config.slideshowButtonWidth;sizes.frameMinWidth=config.frameMinWidth;sizes.imageMargin=config.imageMargin;sizes.imageTop=sizes.imageMargin;if(config.controls){sizes.nextRight=sizes.buttonWidth+sizes.buttonMargin;sizes.previousRight=sizes.buttonWidth+sizes.buttonMargin+sizes.nextRight;sizes.closeLeft=sizes.buttonMargin;sizes.slideshowLeft=sizes.closeLeft+sizes.buttonWidth+sizes.buttonMargin}if(config.scrollbar){sizes.notForScrollbarWidth=sizes.buttonMargin+sizes.buttonWidth+sizes.buttonMargin+sizes.slideshowButtonWidth+sizes.buttonMargin+sizes.buttonMargin+sizes.buttonWidth+sizes.buttonMargin+sizes.buttonWidth+sizes.buttonMargin;sizes.scrollbarLeft=sizes.buttonMargin+sizes.buttonWidth+sizes.buttonMargin+sizes.slideshowButtonWidth+sizes.buttonMargin}if(config.controls){sizes.notForImageHeight=sizes.buttonMargin+sizes.buttonHeight+sizes.buttonMargin+sizes.imageMargin;sizes.notForImageWidth=sizes.imageMargin+sizes.imageMargin}else{sizes.notForImageHeight=sizes.imageMargin*2;sizes.notForImageWidth=sizes.notForImageHeight}imageSizeMap.set(0,{width:progressImg.dimensions[0]+sizes.notForImageWidth,height:progressImg.dimensions[1]+sizes.notForImageHeight});slideshowTimer=false;progress={busy:false,abortImageOpenAnimation:F.doNothing,node:F.createElementNode("img"),init:function(){this.node.setAttribute("src",progressImg.src);this.node.style.position="absolute";this.node.style.width=progressImg.dimensions[0]+"px";this.node.style.height=progressImg.dimensions[1]+"px"},begin:function(){if(!this.busy){this.busy=true;frame.appendChild(this.node)}},end:function(){if(this.busy){this.busy=false;F.removeNode(this.node)}}};if(config.controls){buttonTemplate={label:config.closeLabel,onBackgroundColor:config.onBackgroundColor,offBackgroundColor:config.offBackgroundColor,onForegroundColor:config.onForegroundColor,offForegroundColor:config.offForegroundColor,klass:config.buttonClass};close=new F.ButtonComponent(buttonTemplate);F.disableTextSelection(close.getFrame().getNode());close.getFrame().setRadius(config.roundRadius);close.getFrame().setWidth(config.buttonWidth);close.getFrame().setHeight(config.buttonHeight);F.style(close.getFrame().getInner(),"fontSize",(config.buttonHeight-(config.roundRadius*2))+"px");F.style(close.getFrame().getInner(),"lineHeight",(config.buttonHeight-(config.roundRadius*2))+"px");close.tie("pushed",function(){if(curtainCloseBusy){return}c.close()});slideshow=new F.ButtonComponent(F.merge(buttonTemplate,{label:config.slideshowLabel,toggle:true}));F.disableTextSelection(slideshow.getFrame().getNode());slideshow.getFrame().setRadius(config.roundRadius);slideshow.getFrame().setWidth(config.buttonWidth);slideshow.getFrame().setHeight(config.buttonHeight);F.style(slideshow.getFrame().getInner(),"fontSize",(config.buttonHeight-(config.roundRadius*2))+"px");F.style(slideshow.getFrame().getInner(),"lineHeight",(config.buttonHeight-(config.roundRadius*2))+"px");slideshow.tie("pushed",function(pushed){if(curtainCloseBusy){return}if(pushed){if(!slideshowTimer){slideshowTimer=F.setTimeout(slideshowNext,config.slideshowTime)}}else{slideshowStop()}});slideshowNext=function(){if(slideshowTimer){c.goToNext();F.setTimeout(slideshowNext,config.slideshowTime)}};slideshowStop=function(){if(slideshowTimer){F.clearTimeout(slideshowTimer);slideshowTimer=false;return true}return false};previous=new F.ButtonComponent(F.merge(buttonTemplate,{label:config.previousLabel}));F.disableTextSelection(previous.getFrame().getNode());previous.getFrame().setRadius(config.roundRadius);previous.getFrame().setWidth(config.buttonWidth);previous.getFrame().setHeight(config.buttonHeight);F.style(previous.getFrame().getInner(),"fontSize",(config.buttonHeight-(config.roundRadius*2))+"px");F.style(previous.getFrame().getInner(),"lineHeight",(config.buttonHeight-(config.roundRadius*2))+"px");previous.tie("pushed",function(){if(curtainCloseBusy){return}c.goToPrevious()});next=new F.ButtonComponent(F.merge(buttonTemplate,{label:config.nextLabel}));F.disableTextSelection(next.getFrame().getNode());next.getFrame().setRadius(config.roundRadius);next.getFrame().setWidth(config.buttonWidth);next.getFrame().setHeight(config.buttonHeight);F.style(next.getFrame().getInner(),"fontSize",(config.buttonHeight-(config.roundRadius*2))+"px");F.style(next.getFrame().getInner(),"lineHeight",(config.buttonHeight-(config.roundRadius*2))+"px");next.tie("pushed",function(){if(curtainCloseBusy){return}c.goToNext()})}progress.init();curtainOpen={from:{opacity:0},to:{opacity:0.8},duration:config.curtainOpenDuration,funktion:F.animate.parabolicFunktion,onstart:function(p){curtainOpenBusy=true;F.setElementOpacity(curtain,p.opacity);F.getBodyNode().appendChild(curtain)},onprogress:function(p){F.setElementOpacity(curtain,p.opacity)},onfinish:function(p){curtainOpenBusy=false;F.setElementOpacity(curtain,p.opacity);F.getBodyNode().appendChild(frame);F.animate(frameOpen)}};curtainClose={from:{opacity:0.8},to:{opacity:0},duration:config.curtainCloseDuration,funktion:F.animate.parabolicFunktion,onstart:function(p){if(closeImage){closeImage.style.display="none"}curtainCloseBusy=true;if(config.controlsAnimation){F.animate(controlsHide)}},onprogress:function(p){F.setElementOpacity(curtain,p.opacity);F.setElementOpacity(frame,p.opacity/0.8)},onfinish:function(p){curtainCloseBusy=false;if(currentImage!==null){F.removeNode(currentImage)}frameSizeStrategy.setWidth(0);frameSizeStrategy.setHeight(0);progress.end();F.setElementOpacity(curtain,p.opacity);F.setElementOpacity(frame,p.opacity);F.removeNode(curtain);F.removeNode(frame)}};frameOpen=F.animate.simpleOpacityDocument({},frame);frameOpen.duration=config.frameOpenDuration;F.extend(frameOpen,"onstart",function(p){frameOpenBusy=true;frameResizeStop=frameSizeStrategy.goTo(lm.getCurrent()+1);if(closeImage){closeImage.style.display="block"}});F.extend(frameOpen,"onfinish",function(p){frameOpenBusy=false});imageOpen=F.animate.simpleOpacityDocument({},function(){return currentImage});imageOpen.duration=config.imageOpenDuration;F.extend(imageOpen,"onfinish",function(p){progress.abortImageOpenAnimation=F.doNothing});curtain=F.createElementNode("div");curtain.style.display="block";curtain.style.position="absolute";curtain.style.left=s.a+"px";curtain.style.top=s.b+"px";curtain.style.width=d.a+"px";curtain.style.height=d.b+"px";curtain.style.backgroundColor=config.curtainColor;curtain.style.zIndex="10000";F.attachListener(G,"resize",function(){d=F.getWindowInnerDimensions();curtain.style.width=d.a+"px";curtain.style.height=d.b+"px";updateFramePosition()});F.attachListener(G,"scroll",function(){s=F.getWindowScrollPosition();curtain.style.left=s.a+"px";curtain.style.top=s.b+"px";updateFramePosition()});F.attachListener(curtain,"click",function(){if(curtainOpenBusy||frameOpenBusy){return}c.close()});if(config.closeImage){closeImage=F.createElementNode("img");closeImage.setAttribute("src",config.closeImage.src);closeImage.style.display="none";closeImage.style.position="absolute";closeImage.style.zIndex="10003";closeImage.style.width=config.closeImage.dimensions.a+"px";closeImage.style.height=config.closeImage.dimensions.b+"px";F.attachListener(closeImage,"click",function(){if(curtainCloseBusy){return}c.close()});F.getBodyNode().appendChild(closeImage);updateCloseImagePosition=function(){closeImage.style.left=(s.a+(d.a+frameSizeStrategy.getWidth()-config.closeImage.dimensions.a)/2)+"px";closeImage.style.top=(s.b+(d.b-frameSizeStrategy.getHeight()-config.closeImage.dimensions.b)/2)+"px"}}lm.oncurrentloadbegin=function(){progress.begin()};lm.oncurrentloadend=function(){progress.end()};lm.oncurrentchangebegin=function(){if(currentImage!==null){F.removeNode(currentImage)}progress.abortImageOpenAnimation();if(config.scrollbar){scrollbar.setScroll(lm.getCurrent()*scrollbar.getOuterWidth())}};lm.oncurrentchangeend=function(){currentImage=lm.getCurrentNode();F.setElementOpacity(currentImage,0);frame.appendChild(currentImage);frameResizeStop=frameSizeStrategy.goTo(lm.getCurrent()+1);progress.abortImageOpenAnimation=F.animate(imageOpen)[1]};lm.onimagesizechange=function(k,w,h){imageSizeMap.set(k+1,{width:w+sizes.notForImageWidth,height:h+sizes.notForImageHeight})};frameSizeStrategy=new FrameSizeStrategy(imageSizeMap);if(config.scrollbar){frameSizeStrategy.onstart=function(){untieScroll();scrollbar.setLeft(sizes.scrollbarLeft+"px")}}frameSizeStrategy.onfinish=function(w,h){if(config.scrollbar){scrollbar.setInnerWidth((w-sizes.notForScrollbarWidth)*lm.getSize());untieScroll=scrollbar.tie("scroll",defaultScrollListener);scrollbar.setScroll(lm.getCurrent()*scrollbar.getOuterWidth())}};frameSizeStrategy.onresize=function(w,h){frame.style.width=w+"px";frame.style.height=h+"px";updateFramePosition();if(currentImage!==null&&imageSizeMap.isSet(lm.getCurrent()+1)){currentImage.style.position="absolute";if(config.imageHorizontalAlign==="center"){currentImage.style.left=((w-imageSizeMap.get(lm.getCurrent()+1).width)/2+sizes.imageMargin)+"px"}else{if(config.imageHorizontalAlign==="left"){currentImage.style.left=sizes.imageMargin+"px"}else{if(config.imageHorizontalAlign==="right"){currentImage.style.left=(w-imageSizeMap.get(lm.getCurrent()+1).width+sizes.imageMargin)+"px"}}}currentImage.style.top=((h-imageSizeMap.get(lm.getCurrent()+1).height)/2+sizes.imageMargin)+"px"}progress.node.style.left=((w-progressImg.dimensions[0]-sizes.notForImageWidth)/2+sizes.imageMargin)+"px";progress.node.style.top=((h-progressImg.dimensions[1]-sizes.notForImageHeight)/2+sizes.imageMargin)+"px";if(config.scrollbar){scrollbar.setOuterWidth(w-sizes.notForScrollbarWidth)}if(!config.controls){return}next.getFrame().setLeft(w-sizes.nextRight);previous.getFrame().setLeft(w-sizes.previousRight);close.getFrame().setLeft(sizes.closeLeft);slideshow.getFrame().setLeft(sizes.slideshowLeft);if(close.getFrame().getParent()!==null){if(config.scrollbar){controlsOpen.onprogress({scrollbar:(h-sizes.scrollbarBottom),button:(h-sizes.buttonBottom)})}else{controlsOpen.onprogress({button:(h-sizes.buttonBottom)})}}};frameSizeStrategy.setMinWidth(sizes.frameMinWidth);frameSizeStrategy.setMinHeight(sizes.notForImageHeight+progressImg.dimensions[1]);self.close=function(){frameResizeStop();if(config.controls){slideshowStop()}lm.setCurrent();F.animate(curtainClose)};self.open=function(k){lm.setCurrent(k);F.animate(curtainOpen);if(config.controls&&close.getFrame().getParent()===null){if(config.controlsAnimation){F.animate(controlsOpen)}else{controlsOpen.onfinish()}}};self.setSlideshow=function(enable){slideshow.setViewOn(enable);slideshow.setPushed(enable)};self.isSlideshow=function(){return slideshow.getPushed()}});if(typeof F.LightboxView!=="undefined"){R.add("LightboxView")}});R.when([],function(){F.clearTimeout=(function(id){G.clearTimeout(id)});if(typeof F.clearTimeout!=="undefined"){R.add("clearTimeout")}});R.when(["forEachProperty","getElementOpacity","setElementOpacity","computeCSS"],function(){F.style=(function(){if(!D.write){return}var style,fs,i,cc;style=function(){if(typeof arguments[2]!=="undefined"&&typeof arguments[1]!=="undefined"&&typeof arguments[0]!=="undefined"){fs[arguments[1]](arguments[0],arguments[2])}else{if(typeof arguments[1]!=="undefined"&&typeof arguments[0]!=="undefined"){return style[arguments[1]](arguments[0])}else{var node=arguments[0],a;a=function(){if(typeof arguments[1]==="undefined"){return style[arguments[0]](node)}else{style[arguments[0]](node,arguments[1])}};F.forEachProperty(fs,function(v,j){a[j]=cc(node,j)});return a}}};fs={};F.forEachProperty({cursor:"cursor",display:"display",width:"width",height:"height",left:"left",top:"top",overflow:"overflow",position:"position",visibility:"visibility",horizontalAlign:"textAlign",color:"backgroundColor",fontColor:"color",fontSize:"fontSize",lineHeight:"lineHeight",fontFamily:"fontFamily"},function(n,name){fs[name]=function(){if(typeof arguments[1]==="undefined"){if(arguments[0].style[n]===""){return F.computeCSS(arguments[0],n)}else{return arguments[0].style[n]}}else{arguments[0].style[n]=arguments[1]}}});fs.opacity=function(){if(typeof arguments[1]==="undefined"){return F.getElementOpacity(arguments[0])}else{F.setElementOpacity(arguments[0],arguments[1])}};cc=function(node,t){return function(){if(typeof arguments[0]==="undefined"){return fs[t](node)}else{fs[t](node,arguments[0])}}};F.forEachProperty(fs,function(v,j){style[j]=v});return style})();if(typeof F.style!=="undefined"){R.add("style")}});R.when([],function(){F.forEachProperty=(function(o,f){var self,i,len;if(typeof f!=="function"){return}self=typeof arguments[2]==="undefined"?null:arguments[2];for(i in o){if(o.hasOwnProperty(i)&&typeof o[i]!=="undefined"){f.call(self,o[i],i,o)}}});if(typeof F.forEachProperty!=="undefined"){R.add("forEachProperty")}});R.when(["opacity","getBodyNode","computeCSS"],function(){F.getElementOpacity=(function(){if(F.opacity){var element,r;element=F.getBodyNode();if(typeof element.style.opacity!=="undefined"){return function(element,e){if(element.style.opacity===""){return F.computeCSS(e,"opacity")}return element.style.opacity}}else{if(typeof element.style.MozOpacity!=="undefined"){return function(element){if(element.style.MozOpacity===""){return F.computeCSS(e,"MozOpacity")}return element.style.MozOpacity}}else{if(typeof element.style.KhtmlOpacity!=="undefined"){return function(element){if(element.style.KhtmlOpacity===""){return F.computeCSS(e,"KhtmlOpacity")}return element.style.KhtmlOpacity}}else{if(typeof element.style.filters!=="undefined"&&typeof element.style.filters.alpha!=="undefined"){return function(element){return element.style.filters.alpha.opacity/100}}else{r=new G.RegExp("alpha(opacity=(.*))","");return function(element){var value;value=(element.style.filter||"").match(r);if(value!==null&&typeof value[1]!=="undefined"){return G.parseFloat(value[1])/100}return 1}}}}}}})();if(typeof F.getElementOpacity!=="undefined"){R.add("getElementOpacity")}});R.when(["getBodyNode"],function(){F.opacity=(function(){var element;element=F.getBodyNode();if(!element){return false}return element&&typeof element.style.opacity!=="undefined"||typeof element.style.MozOpacity!=="undefined"||typeof element.style.KhtmlOpacity!=="undefined"||(typeof element.style.filters!=="undefined"&&typeof element.style.filters.alpha!=="undefined")||typeof element.style.filter!=="undefined"})();if(typeof F.opacity!=="undefined"){R.add("opacity")}});R.when(["getRootNode","getNodeName"],function(){F.getBodyNode=(function(){if(D===null){return}var body;return function(){if(typeof body==="undefined"){if(D.body){body=D.body}else{body=F.getRootNode();if(body){var cn,i;i=0;cn=(body.childNodes)?body.childNodes:((body.children)?body.children:[]);while(cn.item(i)){if(F.getNodeName(cn.item(i))==="body"){body=cn.item(i);return body}i++}}body=null}}return body}})();if(typeof F.getBodyNode!=="undefined"){R.add("getBodyNode")}});R.when([],function(){F.computeCSS=(function(){if(D===null||!G.navigator){return}var computeRegExp1,computeRegExp2,computeRegExp3,compute,userAgent,version,msie,mozilla,safari,safari2,defaultView;userAgent=G.navigator.userAgent.toLowerCase();version=(userAgent.match(new G.RegExp(".+(rv|it|ra|ie)[/: ]([\\d.]+)",""))||[])[1];msie=(new G.RegExp("msie","")).test(userAgent)&&!(new G.RegExp("opera","")).test(userAgent);mozilla=(new G.RegExp("mozilla","")).test(userAgent)&&!(new G.RegExp("(compatible|webkit)","")).test(userAgent);safari=(new G.RegExp("webkit","")).test(userAgent);safari2=safari&&G.parseInt(version)<522&&!(new G.RegExp("adobeair","")).test(userAgent);defaultView=D.defaultView;var colorHelper=function(node){if(!safari){return false}var ret=defaultView.getComputedStyle(node,null);return !ret||ret.getPropertyValue("color")===""};computeRegExp1=new G.RegExp("([A-Z])","g");computeRegExp2=new G.RegExp("\\d+(px)?$","g");computeRegExp3=new G.RegExp("^\\d","g");compute=function(node,name){var ret;var style=node.style;if(defaultView.getComputedStyle){name=name.replace(computeRegExp1,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(node,null);if(computedStyle&&!colorHelper(node)){ret=computedStyle.getPropertyValue(name)}else{var swap=[],stack=[],a=node,i=0;for(;a&&colorHelper(a);a=getParent(a)){stack.unshift(a)}for(;i<stack.length;i++){if(colorHelper(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block"}}ret=(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++){if(swap[i]!==null){stack[i].style.display=swap[i]}}}}else{if(node.currentStyle){ret=node.currentStyle[name]||node.currentStyle[fromDashedToCanonical(name)];if(!computeRegExp2.test(ret)&&computeRegExp3.test(ret)){var left=style.left,rsLeft=node.runtimeStyle.left;node.runtimeStyle.left=node.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;node.runtimeStyle.left=rsLeft}}else{ret=style[name]}}return ret};return compute})();if(typeof F.computeCSS!=="undefined"){R.add("computeCSS")}});R.when(["opacity","getBodyNode"],function(){F.setElementOpacity=(function(){if(F.opacity){var element;element=F.getBodyNode();if(typeof element.style.opacity!=="undefined"){return function(element,value){element.style.opacity=value}}else{if(typeof element.style.MozOpacity!=="undefined"){return function(element,value){element.style.MozOpacity=value}}else{if(typeof element.style.KhtmlOpacity!=="undefined"){return function(element,value){element.style.KhtmlOpacity=value}}else{if(typeof element.style.filters!=="undefined"&&typeof element.style.filters.alpha!=="undefined"){return function(element,value){element.style.filters.alpha.opacity=value*100}}else{if(typeof element.style.filter!=="undefined"){return function(element,value){element.style.filter="alpha(opacity="+(value*100)+")"}}}}}}}})();if(typeof F.setElementOpacity!=="undefined"){R.add("setElementOpacity")}});R.when(["forEachProperty"],function(){F.merge=(function(){var o,i,f;o={};f=function(v,j){o[j]=v};for(i=0;i<arguments.length;i++){F.forEachProperty(arguments[i],f)}return o});if(typeof F.merge!=="undefined"){R.add("merge")}});R.when(["getBodyNode","createTextNode","style","removeChildNodes","merge","RoundedCornersComponent","Model","attachListener"],function(){F.ButtonComponent=(function(){var Button;Button=function(){var self,toOn,toOff,toDown,toUp,defaults,frameMouseOver,frameMouseDown,frameMouseOut;self=this;defaults=F.merge({label:"",toggle:false,pushed:false,down:false,over:false,viewOn:false,onBackgroundColor:"#dddddd",offBackgroundColor:"#ffffff",onForegroundColor:"#222222",offForegroundColor:"#000000"},typeof arguments[0]==="undefined"?{}:arguments[0]);if(typeof defaults.frame==="undefined"){defaults.frame=new F.RoundedCornersComponent()}F.Model.call(self,defaults,["frame"]);if(self.getPushed()){toDown=function(){self.setViewOn(false)};toUp=function(){self.setViewOn(true)}}else{toDown=function(){self.setViewOn(true)};toUp=function(){self.setViewOn(false)}}toUp();self.tie("frame",function(frame){frame.disableTextSelection();if(frameMouseOver){frameMouseOver()}frameMouseOver=F.attachListener(frame.getNode(),"mouseover",function(){self.setOver(true);if(self.getToggle()){if(self.getDown()){if(self.getPushed()){self.setViewOn(false)}else{self.setViewOn(true)}}}else{if(self.getDown()){toDown()}}});if(frameMouseOut){frameMouseOut()}frameMouseOut=F.attachListener(frame.getNode(),"mouseout",function(){if(self.getDown()){if(self.getToggle()){if(self.getPushed()){self.setViewOn(true)}else{self.setViewOn(false)}}else{toUp()}}self.setOver(false)});if(frameMouseDown){frameMouseDown()}frameMouseDown=F.attachListener(frame.getNode(),"mousedown",function(){self.setDown(true);if(self.getToggle()){if(self.getPushed()){self.setViewOn(false)}else{self.setViewOn(true)}}else{toDown()}})});self.tie("frame.inner",function(inner){F.style(inner,"horizontalAlign","center")});self.tie(["label","frame"],function(label,frame){F.removeChildNodes(frame.getInner());frame.getInner().appendChild(F.createTextNode(label))});self.tie(["frame","viewOn","onBackgroundColor","onForegroundColor"],function(frame,viewOn,onBackgroundColor,onForegroundColor){if(viewOn){frame.set({foregroundColor:onBackgroundColor,backgroundColor:onForegroundColor,fontColor:onForegroundColor})}});self.tie(["frame","viewOn","offBackgroundColor","offForegroundColor"],function(frame,viewOn,offBackgroundColor,offForegroundColor){if(!viewOn){frame.set({foregroundColor:offBackgroundColor,backgroundColor:offForegroundColor,fontColor:offForegroundColor})}});F.attachListener(F.getBodyNode(),"mouseup",function(){if(self.getOver()&&self.getDown()){if(self.getPushed()){self.setViewOn(false);self.setPushed(false)}else{if(self.getToggle()){self.setViewOn(true)}else{self.setViewOn(false)}self.setPushed(true)}}self.setDown(false)});self.announceAll()};return Button})();if(typeof F.ButtonComponent!=="undefined"){R.add("ButtonComponent")}});R.when([],function(){F.createTextNode=(function(){if(D!==null&&typeof D.createTextNode!=="undefined"){return function(content){return D.createTextNode(content)}}})();if(typeof F.createTextNode!=="undefined"){R.add("createTextNode")}});R.when([],function(){F.removeChildNodes=(function(node){while(node.firstChild){node.removeChild(node.firstChild)}});if(typeof F.removeChildNodes!=="undefined"){R.add("removeChildNodes")}});R.when(["merge","Model","createElementNode","forEachProperty","isArray","replaceNode","sqr","style","guiComponent","disableTextSelection"],function(){F.RoundedCornersComponent=(function(){if(D===null){return}var addTop,blend,addBottom,roundCorners,sqrt,floor,ceil,round;sqrt=G.Math.sqrt;floor=G.Math.floor;ceil=G.Math.ceil;round=G.Math.round;blend=function(a,b,alpha){var ca,cb,r,g;ca=[G.parseInt("0x"+a.substring(1,3),16),G.parseInt("0x"+a.substring(3,5),16),G.parseInt("0x"+a.substring(5,7),16)];cb=[G.parseInt("0x"+b.substring(1,3),16),G.parseInt("0x"+b.substring(3,5),16),G.parseInt("0x"+b.substring(5,7),16)];r="0"+round(ca[0]+(cb[0]-ca[0])*alpha).toString(16);g="0"+round(ca[1]+(cb[1]-ca[1])*alpha).toString(16);b="0"+round(ca[2]+(cb[2]-ca[2])*alpha).toString(16);return"#"+r.substring(r.length-2)+g.substring(g.length-2)+b.substring(b.length-2)};addTop=function(el,bk,color,sizex,sizey){var i,j,d,lastarc,arc,coverage,arc2,arc3,n_bg,n_fg,n_aa,x,y;d=D.createElement("div");d.style.backgroundColor=bk;lastarc=0;for(i=1;i<=sizey;i++){arc=sqrt(1-F.sqr(1-i/sizey))*sizex;n_bg=sizex-ceil(arc);n_fg=floor(lastarc);n_aa=sizex-n_bg-n_fg;x=D.createElement("div");x.style.height="1px";x.style.overflow="hidden";y=d;x.style.margin="0px "+n_bg+"px";for(j=1;j<=n_aa;j++){if(j===1){if(j===n_aa){coverage=((arc+lastarc)*0.5)-n_fg}else{arc2=sqrt(1-F.sqr(1-(n_bg+1)/sizex))*sizey;coverage=(arc2-(sizey-i))*(arc-n_fg-n_aa+1)*0.5}}else{if(j===n_aa){arc2=sqrt(1-F.sqr((sizex-n_bg-j+1)/sizex))*sizey;coverage=1-(1-(arc2-(sizey-i)))*(1-(lastarc-n_fg))*0.5}else{arc3=sqrt(1-F.sqr((sizex-n_bg-j)/sizex))*sizey;arc2=sqrt(1-F.sqr((sizex-n_bg-j+1)/sizex))*sizey;coverage=((arc2+arc3)*0.5)-(sizey-i)}}x.style.backgroundColor=blend(bk,color,coverage);y.appendChild(x);y=x;x=F.createElementNode("div");x.style.margin="0px 1px";x.style.height="1px";x.style.overflow="hidden"}x.style.backgroundColor=color;y.appendChild(x);lastarc=arc}if(el.childNodes.length===3){F.replaceNode(el.firstChild,d)}else{el.insertBefore(d,el.firstChild)}};addBottom=function(el,bk,color,sizex,sizey){var x,y,i,j,d,lastarc,arc,coverage,arc2,arc3,n_bg,n_fg,n_aa;d=F.createElementNode("div");d.style.backgroundColor=bk;lastarc=0;for(i=1;i<=sizey;i++){arc=sqrt(1-F.sqr(1-i/sizey))*sizex;n_bg=sizex-ceil(arc);n_fg=floor(lastarc);n_aa=sizex-n_bg-n_fg;x=F.createElementNode("div");x.style.height="1px";x.style.overflow="hidden";y=d;x.style.margin="0px "+n_bg+"px";for(j=1;j<=n_aa;j++){if(j===1){if(j===n_aa){coverage=((arc+lastarc)*0.5)-n_fg}else{arc2=sqrt(1-F.sqr(1-(n_bg+1)/sizex))*sizey;coverage=(arc2-(sizey-i))*(arc-n_fg-n_aa+1)*0.5}}else{if(j===n_aa){arc2=sqrt(1-F.sqr((sizex-n_bg-j+1)/sizex))*sizey;coverage=1-(1-(arc2-(sizey-i)))*(1-(lastarc-n_fg))*0.5}else{arc3=sqrt(1-F.sqr((sizex-n_bg-j)/sizex))*sizey;arc2=sqrt(1-F.sqr((sizex-n_bg-j+1)/sizex))*sizey;coverage=((arc2+arc3)*0.5)-(sizey-i)}}x.style.backgroundColor=blend(bk,color,coverage);y.insertBefore(x,y.firstChild);y=x;x=F.createElementNode("div");x.style.margin="0px 1px";x.style.height="1px";x.style.overflow="hidden"}x.style.backgroundColor=color;y.insertBefore(x,y.firstChild);lastarc=arc}if(el.childNodes.length===3){F.replaceNode(el.lastChild,d)}else{el.appendChild(d)}};roundCorners=function(elements,bk,color,sizex,sizey){var i,v,l;v=F.isArray(elements)?elements:[elements];l=v.length;for(i=0;i<l;i++){addTop(v[i],bk,color,sizex,sizey);addBottom(v[i],bk,color,sizex,sizey)}};return function(){var self,node,inner,textSelectionDisabled;self=this;textSelectionDisabled=false;node=F.createElementNode("div");inner=F.createElementNode("div");node.appendChild(inner);F.Model.call(self,F.merge({radius:5,backgroundColor:"#ffffff",foregroundColor:"#000000",fontColor:"#ffffff",position:"absolute",left:0,top:0,width:100,height:20,parent:null,inner:inner},typeof arguments[0]==="undefined"?{}:arguments[0]));F.forEachProperty(F.guiComponent(node),function(setter,property){self.tie(property,setter)});self.tie(["backgroundColor","foregroundColor","radius"],function(backgroundColor,foregroundColor,radius){F.style(node,"color",foregroundColor);roundCorners(node,backgroundColor,foregroundColor,radius,radius)});self.tie("inner",function(newInner){inner=F.replaceNode(inner,newInner)});self.tie(["inner","fontColor"],function(newInner,fontColor){inner=F.replaceNode(inner,newInner);F.style(inner,"fontColor",fontColor)});self.getNode=function(){return node};self.disableTextSelection=function(){if(!textSelectionDisabled){textSelectionDisabled=true;F.disableTextSelection(node)}};self.announceAll()}})();if(typeof F.RoundedCornersComponent!=="undefined"){R.add("RoundedCornersComponent")}});R.when([],function(){F.Model=G.funjes.Iris;if(typeof F.Model!=="undefined"){R.add("Model")}});R.when([],function(){F.replaceNode=(function(node,newNode){if(node.parentNode&&node!==newNode){node.parentNode.replaceChild(newNode,node)}return newNode});if(typeof F.replaceNode!=="undefined"){R.add("replaceNode")}});R.when([],function(){F.sqr=(function(a){return a*a});if(typeof F.sqr!=="undefined"){R.add("sqr")}});R.when(["removeNode"],function(){F.guiComponent=(function(node){return{klass:function(c){node.className=c},position:function(p){node.style.position=p},left:function(l){node.style.left=l+"px"},top:function(t){node.style.top=t+"px"},width:function(w){node.style.width=w+"px"},height:function(h){node.style.height=h+"px"},parent:function(p){F.removeNode(node);if(p!==null){p.appendChild(node)}}}});if(typeof F.guiComponent!=="undefined"){R.add("guiComponent")}});R.when([],function(){F.removeNode=(function(node){if(node.parentNode){node.parentNode.removeChild(node);return true}return false});if(typeof F.removeNode!=="undefined"){R.add("removeNode")}});R.when(["attachListener","destroyEvent"],function(){F.disableTextSelection=(function(node){F.attachListener(node,"mousedown",F.destroyEvent);F.attachListener(node,"drop",F.destroyEvent);F.attachListener(node,"drag",F.destroyEvent);F.attachListener(node,"dragstart",F.destroyEvent);F.attachListener(node,"draggesture",F.destroyEvent);F.attachListener(node,"dragover",F.destroyEvent);F.attachListener(node,"dragexit",F.destroyEvent);F.attachListener(node,"dragdrop",F.destroyEvent);F.attachListener(node,"selectstart",F.destroyEvent);F.attachListener(node,"selectend",F.destroyEvent);F.attachListener(node,"selectionstart",F.destroyEvent);F.attachListener(node,"selectionend",F.destroyEvent);node.style.cursor="default"});if(typeof F.disableTextSelection!=="undefined"){R.add("disableTextSelection")}});R.when([],function(){F.destroyEvent=(function(event){if(event.preventDefault){event.preventDefault()}if(event.stopPropagation){event.stopPropagation()}event.cancelBubble=true;event.returnValue=false;return false});if(typeof F.destroyEvent!=="undefined"){R.add("destroyEvent")}});R.when([],function(){F.extend=(function(object,methodName,extension){var oldMethod=object[methodName];object[methodName]=function(){oldMethod.apply(object,arguments);extension.apply(object,arguments)}});if(typeof F.extend!=="undefined"){R.add("extend")}});R.when(["clearTimeout","setTimeout"],function(){F.Delay=(function(){var time,resetter;time=500;resetter=null;this.reset=function(){if(resetter!==null){F.clearTimeout(resetter);resetter=null}};this.set=function(func){var params=typeof arguments[1]==="undefined"?[]:arguments[1];this.reset();resetter=F.setTimeout(function(){resetter=null;func.apply(null,params)},time)};this.setTime=function(t){time=t};this.getTime=function(){return time};this.isIdle=function(){return resetter===null}});if(typeof F.Delay!=="undefined"){R.add("Delay")}});R.when(["Pair","Board","mapProperties","forEachProperty","getProperties","pass","unset"],function(){F.StringMap=(function(){var self,store,board,put,putUnset;self=(this===G)?{}:this;store=typeof arguments[0]==="undefined"?{}:arguments[0];board=new F.Board();put=function(newValue,key){var oldValue;oldValue=store[key];store[key]=newValue;if(oldValue!==newValue){newValue=new F.Pair(key,newValue);if(typeof oldValue==="undefined"){board.fireEvent("create",newValue)}board.fireEvent("set",newValue)}};putUnset=function(newValue,key){if(typeof store[key]==="undefined"){put(newValue,key)}};self.setAll=function(otherStore){F.forEachProperty(otherStore,put)};self.set=function(key,value){put(value,key)};self.setPair=function(pair){put(pair.b,pair.a)};self.setAllUnset=function(otherStore){F.forEachProperty(otherStore,putUnset)};self.setUnset=function(key,value){putUnset(value,key)};self.setPairUnset=function(pair){putUnset(pair.b,pair.a)};self.isSet=function(key){return typeof store[key]!=="undefined"};self.get=function(key){return store[key]};self.getAll=function(){return F.mapProperties(store,F.pass)};self.unset=function(key){var a;a=new F.Pair(key,store[key]);F.unset(store,key);board.fireEvent("destroy",a);return a.b};self.attachListener=function(type,listener){return board.attachListener(type,listener)};self.getKeys=function(){return F.getProperties(store)}});if(typeof F.StringMap!=="undefined"){R.add("StringMap")}});R.when(["List"],function(){F.Board=(function(){var self,store;self=this;store={};self.attachListener=function(type,listener){if(typeof store[type]==="undefined"){return(store[type]=new F.List()).push(listener)}else{return store[type].push(listener)}};self.fireEvent=function(type,object){if(typeof store[type]!=="undefined"){store[type].foreachApply(object)}}});if(typeof F.Board!=="undefined"){R.add("Board")}});R.when([],function(){F.mapProperties=(function(o,f){var res,self,i;if(typeof f!=="function"){return}self=typeof arguments[2]==="undefined"?null:arguments[2];res={};for(i in o){if(o.hasOwnProperty(i)){res[i]=f.call(self,o[i],i,o)}}return res});if(typeof F.mapProperties!=="undefined"){R.add("mapProperties")}});R.when(["forEachProperty"],function(){F.getProperties=(function(o){var keys;keys=[];F.forEachProperty(o,function(v,i){keys.push(i)});return keys});if(typeof F.getProperties!=="undefined"){R.add("getProperties")}});R.when(["Pair"],function(){F.getWindowInnerDimensions=(function(){if(D===null){return}var isDocumentElementHeightOff,node,getWindowInnerDimensions;isDocumentElementHeightOff=function(){var div,r;div=D.createElement("div");div.style.height="2500px";D.body.insertBefore(div,D.body.firstChild);r=D.documentElement.clientHeight>2400;D.body.removeChild(div);return r};getWindowInnerDimensions=function(){var propPrefix="client",wName,hName;node=D;if(typeof D.clientWidth==="number"){}else{if((D.documentElement&&D.documentElement.clientWidth===0)||isDocumentElementHeightOff()){node=D.body}else{if(D.documentElement.clientHeight>0){node=D.documentElement}else{if(typeof G.innerHeight==="number"){node=G;propPrefix="inner"}}}}isDocumentElementHeightOff=null;wName=propPrefix+"Width";hName=propPrefix+"Height";getWindowInnerDimensions=function(){return new F.Pair(node[wName],node[hName])};return getWindowInnerDimensions()};return function(){return getWindowInnerDimensions()}})();if(typeof F.getWindowInnerDimensions!=="undefined"){R.add("getWindowInnerDimensions")}});R.when(["Pair"],function(){F.getWindowScrollPosition=(function(){if(D===null){return}return function(){if(typeof G.pageYOffset==="number"){return new F.Pair(G.pageXOffset,G.pageYOffset)}else{if(D.body&&(D.body.scrollLeft||D.body.scrollTop)){return new F.Pair(D.body.scrollLeft,D.body.scrollTop)}else{if(D.documentElement&&(D.documentElement.scrollLeft||D.documentElement.scrollTop)){return new F.Pair(D.documentElement.scrollLeft,D.documentElement.scrollTop)}}}return new F.Pair(0,0)}})();if(typeof F.getWindowScrollPosition!=="undefined"){R.add("getWindowScrollPosition")}});R.when(["createElementNode","Model","removeNode","attachListener","getScrollbarWidth"],function(){F.Scrollbar=(function(){return function(){var self,hiddenScroll,node,scrollbars,spacer,cScrollbarWidth,cScrollbarWidthCSS,cSpacerWidth,cSpacerWidthCSS,cSpacerWidthNegativeCSS,cSpacerAndScrollbarWidthCSS;self=this;node=F.createElementNode("div");node.style.overflow="hidden";scrollbars=F.createElementNode("div");scrollbars.style.position="relative";scrollbars.style.overflow="scroll";node.appendChild(scrollbars);spacer=F.createElementNode("div");scrollbars.appendChild(spacer);hiddenScroll=null;F.Model.call(self,{scroll:0,parent:null,zIndex:0,left:0,top:0,position:"static",outerWidth:0,innerWidth:0,orientation:"vertical"});F.attachListener(scrollbars,"scroll",function(){self.setScroll(self.getOrientation()==="horizontal"?scrollbars.scrollLeft:scrollbars.scrollTop)});cScrollbarWidth=F.getScrollbarWidth();cScrollbarWidthCSS=cScrollbarWidth+"px";cSpacerWidth=cScrollbarWidth*2;cSpacerWidthCSS=cSpacerWidth+"px";cSpacerWidthNegativeCSS="-"+cSpacerWidthCSS;cSpacerAndScrollbarWidthCSS=(cSpacerWidth+cScrollbarWidth)+"px";self.tie(["orientation","innerWidth","outerWidth"],function(orientation,innerWidth,outerWidth){if(self.getOrientation()==="horizontal"){spacer.style.width=innerWidth+"px";spacer.style.height=cSpacerWidthCSS;scrollbars.style.width=(outerWidth+cScrollbarWidth)+"px";scrollbars.style.height=cSpacerAndScrollbarWidthCSS;scrollbars.style.top=cSpacerWidthNegativeCSS;scrollbars.style.left="0px";node.style.width=outerWidth+"px";node.style.height=cScrollbarWidthCSS}else{spacer.style.width=cSpacerWidthCSS;spacer.style.height=innerWidth+"px";scrollbars.style.width=cSpacerAndScrollbarWidthCSS;scrollbars.style.height=(outerWidth+cScrollbarWidth)+"px";scrollbars.style.top="0px";scrollbars.style.left=cSpacerWidthNegativeCSS;node.style.width=cScrollbarWidthCSS;node.style.height=outerWidth+"px"}});self.tie("position",function(p){node.style.position=p});self.tie("top",function(p){node.style.top=p});self.tie("left",function(p){node.style.left=p});self.tie("zIndex",function(p){node.style.zIndex=p});self.tie("parent",function(p){if(p===null){F.removeNode(node)}else{p.appendChild(node);if(hiddenScroll!==null){if(self.getOrientation()==="horizontal"){scrollbars.scrollLeft=hiddenScroll}else{scrollbars.scrollTop=hiddenScroll}hiddenScroll=null}}});self.tie("scroll",function(from){if(self.getParent()===null){hiddenScroll=from}else{if(self.getOrientation()==="horizontal"){scrollbars.scrollLeft=from}else{scrollbars.scrollTop=from}}});self.getWidth=function(){return cScrollbarWidth};self.getScroll=function(){return self.getOrientation()==="horizontal"?scrollbars.scrollLeft:scrollbars.scrollTop};self.announceAll()}})();if(typeof F.Scrollbar!=="undefined"){R.add("Scrollbar")}});R.when(["createElementNode","getBodyNode","style","removeNode"],function(){F.getScrollbarWidth=(function(){var scrollBarWidth,b,a,div,div2,S;scrollBarWidth=0;S=F.style;div=F.createElementNode("div");S.width(div,"50px");S.left(div,"-200px");S.position(div,"absolute");S.overflow(div,"hidden");div2=F.createElementNode("div");S.position(div2,"relative");S.width(div,"100%");S.height(div,"100%");div.appendChild(div2);F.getBodyNode().appendChild(div);if(div2.offsetWidth){a=div2.offsetWidth;S.overflow(div,"scroll");b=div2.offsetWidth;if(a===b&&typeof div.clientWidth!=="undefined"){b=div.clientWidth}scrollBarWidth=a-b}else{if(G.getComputedStyle){if(G.defaultView){scrollBarWidth=G.parseInt(G.defaultView.getComputedStyle(div2,null).getPropertyValue("width"));S.overflow(div,"scroll");scrollBarWidth-=G.parseInt(G.defaultView.getComputedStyle(div2,null).getPropertyValue("width"))}else{scrollBarWidth=G.parseInt(G.getComputedStyle(div2,null).getPropertyValue("width"));S.overflow(div,"scroll");scrollBarWidth-=G.parseInt(G.getComputedStyle(div2,null).getPropertyValue("width"))}}}F.removeNode(div);return function(){return scrollBarWidth}})();if(typeof F.getScrollbarWidth!=="undefined"){R.add("getScrollbarWidth")}});R.when(["doNothing","forEachProperty","setTimeout","setElementOpacity"],function(){F.animate=(function(){var animate,sleepDuration;sleepDuration=25;animate=function(animdoc){var p,f,l;animdoc.onstart(animdoc.from);if(animdoc.duration<=1){animdoc.onprogress(animdoc.to);animdoc.onfinish(animdoc.to);return[F.doNothing,F.doNothing]}l={r:true,t:0};p={};f="";F.forEachProperty(animdoc.from,function(v,i){p[i]=v;f+="p['"+i+"'] = "+v+" + "+(animdoc.to[i]-v)+" * t;"});(new G.Function("setTimeout","l","p","animdoc","l.f = function() { if (l.r) { if (l.t <= "+animdoc.duration+") { var t = animdoc.funktion(l.t / "+animdoc.duration+");"+f+"animdoc.onprogress(p);l.t += "+(animdoc.sleepDuration||sleepDuration)+";setTimeout(l.f, "+(animdoc.sleepDuration||sleepDuration)+");} else {animdoc.onprogress(animdoc.to); animdoc.onfinish(animdoc.to);}}};l.f();"))(F.setTimeout,l,p,animdoc);return[function(){l.r=true;l.f()},function(){l.r=false}]};animate.getDefaultSleepDuration=function(){return sleepDuration};animate.parabolicFunktion=function(v){return -1*v*(v-2)};animate.linearFunktion=function(v){return v};animate.squareFunktion=function(v){return v*v};animate.cubicFunktion=function(v){return v*v*v};animate.simpleOpacityDocument=function(document,getNode){var node;if(typeof document.from==="undefined"){document.from={}}if(typeof document.from.opacity==="undefined"){document.from.opacity=0}if(typeof document.to==="undefined"){document.to={}}if(typeof document.to.opacity==="undefined"){document.to.opacity=1}document.onstart=function(p){node=typeof getNode==="object"?getNode:getNode();F.setElementOpacity(node,p.opacity)};document.onprogress=function(p){F.setElementOpacity(node,p.opacity)};document.onfinish=function(p){F.setElementOpacity(node,p.opacity)};if(typeof document.duration==="undefined"){document.duration=200}if(typeof document.funktion==="undefined"){document.funktion=animate.parabolicFunktion}return document};return animate})();if(typeof F.animate!=="undefined"){R.add("animate")}});R.when(["animate","doNothing"],function(){F.LightboxMinimalFrameSizeStrategy=(function(sizeMap){var frameResize,self,width,height,minWidth,minHeight;minWidth=0;minHeight=0;self=this;width=0;height=0;self.goTo=function(i){frameResize.to=sizeMap.get(i);if(typeof frameResize.to==="undefined"){frameResize.to={height:height,width:width}}return F.animate(frameResize)[1]};self.onstart=F.doNothing;self.onresize=F.doNothing;self.getWidth=function(){return width};self.getHeight=function(){return height};self.setWidth=function(w){width=w};self.setHeight=function(h){height=h};self.setMinWidth=function(w){minWidth=w};self.setMinHeight=function(h){minHeight=h};frameResize={from:{},to:{},duration:300,funktion:F.animate.parabolicFunktion,onstart:function(p){frameResize.from.width=width;frameResize.from.height=height;self.onstart(width,height)},setFrameSize:function(p){width=p.width<minWidth?minWidth:p.width;height=p.height<minHeight?minHeight:p.height;self.onresize(width,height)},onprogress:function(p){frameResize.setFrameSize(p)},onfinish:function(p){frameResize.setFrameSize(p);self.onfinish(width,height)}}});if(typeof F.LightboxMinimalFrameSizeStrategy!=="undefined"){R.add("LightboxMinimalFrameSizeStrategy")}});R.when(["doNothing","getWindowInnerDimensions","attachListener","setTimeout"],function(){F.LightboxFrameSizeToWindowSizeStrategy=(function(sizeMap){var self,verticalMargin,horizontalMargin,f;self=this;verticalMargin=40;horizontalMargin=60;self.goTo=function(i){return F.doNothing};self.onstart=F.doNothing;self.onresize=F.doNothing;self.onfinish=F.doNothing;self.getWidth=function(){return F.getWindowInnerDimensions().a-(horizontalMargin*2)};self.getHeight=function(){return F.getWindowInnerDimensions().b-(verticalMargin*2)};self.setWidth=function(w){};self.setHeight=function(h){};self.setMinWidth=function(w){};self.setMinHeight=function(h){};self.setVerticalMargin=function(v){verticalMargin=v};self.setHorizontalMargin=function(v){horizontalMargin=v};f=function(){var d=F.getWindowInnerDimensions();d.a-=(horizontalMargin*2);d.b-=(verticalMargin*2);self.onstart(d.a,d.b);self.onresize(d.a,d.b);self.onfinish(d.a,d.b)};F.attachListener(G,"resize",f);F.setTimeout(f,100)});if(typeof F.LightboxFrameSizeToWindowSizeStrategy!=="undefined"){R.add("LightboxFrameSizeToWindowSizeStrategy")}});R.when([],function(){F.getElementById=(function(){if(D===null){return}var findFirstElementById,isXML;findFirstElementById=function(node,id){node=node.childNodes;for(var i=0,child;child=node.item(i);i++){if(child.nodeType===1){if(child.getAttribute("id")===id){return child}else{if(child=findFirstElementById(child,id)){return child}}}}};isXML=function(elem){return elem.nodeType===9&&elem.documentElement.nodeName!=="HTML"||!!elem.ownerDocument&&elem.ownerDocument.documentElement.nodeName!=="HTML"};return function(id,ctx){var ctx;ctx=arguments[1]||D;if(!isXML(ctx)&&typeof ctx.getElementById!=="undefined"){ctx=ctx.getElementById(id);return ctx.id===id||typeof ctx.getAttribute("id")===id?ctx:null}if(ctx.nodeType===9){if(ctx.documentElement.getAttribute("id")===id){return ctx.documentElement}return findFirstElementById(ctx.documentElement,id)}if(ctx.getAttribute("id")===id){return ctx}return findFirstElementById(ctx,id)}})();if(typeof F.getElementById!=="undefined"){R.add("getElementById")}});R.when([],function(){F.getHash=(function(){return(G.location.hash)?(G.location.hash.charAt(0)==="#"?G.location.hash.substring(1):G.location.hash):""});if(typeof F.getHash!=="undefined"){R.add("getHash")}});R.when([],function(){F.setHash=(function(hash){G.location.hash="#"+hash});if(typeof F.setHash!=="undefined"){R.add("setHash")}});R.when([],function(){F.replaceStringElements=(function(string,from,to){return string.split(from).join(to)});if(typeof F.replaceStringElements!=="undefined"){R.add("replaceStringElements")}});R.when([],function(){F.setElementClassName=(function(element,value){element.className=value});if(typeof F.setElementClassName!=="undefined"){R.add("setElementClassName")}});R.when(["getDirName","normalizePath","getCurrentURI","getURIProtocol","isURI"],function(){F.getURI=(function(){if(G.location){var p,lh,d,ho,dn;ho=G.location;p=ho.protocol;lh=ho.href;ho=ho.protocol+"//"+ho.host;d=lh.indexOf("#");d=F.getDirName((d<0)?lh:lh.substring(0,d));if(d.substr(p.length-1,3)==="://"){d=d.substring(p.length+1)}dn=p+"/"+d+"/";return function(h){if(h.length===0){return F.getCurrentURI()}else{if(F.isURI(h)){var a;a=F.getURIProtocol(h);if(h.substr(a.length,3)==="://"){a=a+":/"}return a+F.normalizePath(h.substring(a.length))+(h.charAt(h.length-1)==="/"?"/":"")}else{if(h.charAt(0)==="/"){return ho+F.normalizePath(h)+(h.charAt(h.length-1)==="/"?"/":"")}else{if(h==="."){return dn}else{if(h===".."){return p+"/"+F.normalizePath(d+"/..")+"/"}else{return p+"/"+F.normalizePath(d+"/"+h)+(h.charAt(h.length-1)==="/"?"/":"")}}}}}}}})();if(typeof F.getURI!=="undefined"){R.add("getURI")}});R.when([],function(){F.getDirName=(function(path){var q,lb,b;q=path.indexOf("?");if(q<0){lb=b=path.indexOf("/");while(b>=0){lb=b;b=path.indexOf("/",lb+1)}}else{lb=b=path.indexOf("/");while(b>=0&&b<q){lb=b;b=path.indexOf("/",lb+1)}}return path.substring(0,lb)});if(typeof F.getDirName!=="undefined"){R.add("getDirName")}});R.when(["replaceStringRange","replaceStringElements"],function(){F.normalizePath=(function(path){var a,b,c;a=path.indexOf("/..");c=path.indexOf("#");c=(c<0)?path.length:c;while(a>=0&&a<c){b=path.substring(0,a-1).lastIndexOf("/");path=F.replaceStringRange(path,b,a+3,"");a=path.indexOf("/..",b)}path=F.replaceStringElements(path.substring(0,c),"/.","")+path.substring(c);path=F.replaceStringElements(path.substring(0,c),"//","/")+path.substring(c);if(path.charAt(path.length-1)==="/"){return path.substring(0,path.length-1)}return path});if(typeof F.normalizePath!=="undefined"){R.add("normalizePath")}});R.when([],function(){F.replaceStringRange=(function(string,from,to,str){return string.substring(0,from)+str+string.substring(to)});if(typeof F.replaceStringRange!=="undefined"){R.add("replaceStringRange")}});R.when([],function(){F.getCurrentURI=(function(){return G.location.href});if(typeof F.getCurrentURI!=="undefined"){R.add("getCurrentURI")}});R.when(["isNumeric","isAlpha"],function(){F.getURIProtocol=(function(h){var i,rel,len;rel=true;len=h.length;for(i=0;i<len;i++){if(h.charAt(i)===":"){return(i>0)?h.substring(0,i):false}else{if(!(F.isAlpha(h,i)||F.isNumeric(h,i)||h.charAt(i)==="+"||h.charAt(i)==="."||h.charAt(i)==="-")){return null}}}return null});if(typeof F.getURIProtocol!=="undefined"){R.add("getURIProtocol")}});R.when([],function(){F.isNumeric=(function(string,index){var c=string.charCodeAt(index);return c>47&&c<58});if(typeof F.isNumeric!=="undefined"){R.add("isNumeric")}});R.when([],function(){F.isAlpha=(function(string,index){var c=string.charAt(index);return c.toLowerCase()!==c.toUpperCase()});if(typeof F.isAlpha!=="undefined"){R.add("isAlpha")}});R.when(["isNumeric","isAlpha"],function(){F.isURI=(function(h){var i,rel,len;rel=true;len=h.length;for(i=0;i<len;i++){if(h.charAt(i)===":"){return(i!==0)}else{if(!(F.isAlpha(h,i)||F.isNumeric(h,i)||h.charAt(i)==="+"||h.charAt(i)==="."||h.charAt(i)==="-")){return false}}}return false});if(typeof F.isURI!=="undefined"){R.add("isURI")}});R.when([],function(){F.setWindowScrollPosition=(function(p){G.scrollTo(p.a,p.b)});if(typeof F.setWindowScrollPosition!=="undefined"){R.add("setWindowScrollPosition")}});R.when(["getObjectFromPairs","getPairsFromHTTPHeaderString","getURI","startsWith"],function(){F.httpInvoke=(function(){var makeObj,currentRootURI;makeObj=null;currentRootURI=null;return function(url){var i,obj,method,handler,message,headers;url=F.getURI(url);if(currentRootURI===null){currentRootURI=F.getURI("/")}if(false&&F.startsWith(url,currentRootURI)&&typeof G.XDomainRequest!=="undefined"){}else{if(makeObj===null){if(typeof G.google!=="undefined"&&typeof G.google.gears!=="undefined"){makeObj=function(){return G.google.gears.factory.create("beta.httprequest")}}else{if(typeof G.XMLHttpRequest!=="undefined"){makeObj=function(){return new G.XMLHttpRequest()}}else{if(typeof G.ActiveXObject!=="undefined"){obj=true;
/*@cc_on @*/
/*@if (@_jscript_version < 5)
					obj = false
					@end @*/
if(obj){obj=["Microsoft.XMLHTTP","Microsoft.XMLhttp","MSXML3.XMLhttp","Msxml2.XMLhttp","MSXML2.XMLhttp","Msxml2.XMLHTTP","Msxml2.XMLHTTP.6.0","Msxml2.XMLhttp.5.0","Msxml2.XMLhttp.4.0","Msxml2.XMLHTTP.3.0","MSXML2.XMLhttp.3.0"];(new Function("classes","reg","var i, o, msg;msg = window.funjes.normalizePath(window.funjes.getDirName(window.location.href) + '/'); for (i = 0; i < classes.length; i++) { try { o = new window.ActiveXObject(classes[i]); o.open('GET', msg, false); o.send(null); reg(classes[i]); return;} catch(e) { } }"))(obj,function(c){makeObj=function(){return new G.ActiveXObject(c)}})}if(makeObj===null){return}}else{return}}}}obj=makeObj()}if(typeof obj.overrideMimeType!=="undefined"){obj.overrideMimeType("text/plain")}if(typeof arguments[1]==="undefined"){method="get"}else{method=arguments[1]}if(typeof arguments[2]==="undefined"){handler=function(){}}else{handler=arguments[2]}if(typeof arguments[3]==="undefined"){message=null}else{message=arguments[3]}if(typeof arguments[4]==="undefined"){headers=[]}else{headers=arguments[4]}obj.onreadystatechange=function(){if(obj!==null&&obj.readyState===4){headers=typeof obj.getAllResponseHeaders==="undefined"?"":obj.getAllResponseHeaders();handler(obj.responseText,obj.status,F.getObjectFromPairs(F.getPairsFromHTTPHeaderString(headers)));obj=null;handler=null;headers=null}};if(typeof arguments[5]==="undefined"){obj.open(method.toUpperCase(),url,true)}else{obj.open(method.toUpperCase(),url,true,arguments[5].username,arguments[5].password)}if(typeof obj.setRequestHeader!=="undefined"){for(i=0;i<headers.length;i++){obj.setRequestHeader(headers[i].a,headers[i].b)}}obj.send(message)}})();if(typeof F.httpInvoke!=="undefined"){R.add("httpInvoke")}});R.when(["forEachIndex"],function(){F.getObjectFromPairs=(function(pairs){var i,o;o={};F.forEachIndex(pairs,function(pair){pair.put(o)});return o});if(typeof F.getObjectFromPairs!=="undefined"){R.add("getObjectFromPairs")}});R.when(["Pair","trim"],function(){F.getPairsFromHTTPHeaderString=(function(str){var t1,t2,t3,i,j,entries;t1=str.split("\r");entries=[];for(i=0;i<t1.length;i++){t2=t1[i].split("\n");for(j=0;j<t2.length;j++){t3=F.trim(t2[j]);if(t3!==""){entries.push(F.Pair.fromHTTPHeader(t3))}}}return entries});if(typeof F.getPairsFromHTTPHeaderString!=="undefined"){R.add("getPairsFromHTTPHeaderString")}});R.when([],function(){F.startsWith=(function(string,needle){if(needle===string){return true}if(needle===""||string===""){return false}return string.indexOf(needle)===0});if(typeof F.startsWith!=="undefined"){R.add("startsWith")}})};G.funjes(function(){var R;R=new G.funjes.Res(G.funjes);G.funjes.emulated=[];(function(){for(var i=0;i<emulated_.length;i++){G.funjes.emulated[i]=emulated_[i]}})();G.funjes.part0(G.funjes,G.document,R)})})(window);
