var $runtime="dhtml";var $dhtml=true;var $as3=false;var $as2=false;var $swf10=false;var $j2me=false;var $debug=false;var $js1=true;var $backtrace=false;var $swf7=false;var $swf9=false;var $swf8=false;var $svg=false;var $profile=false;var _Copyright="Portions of this file are copyright (c) 2001-2010 by Laszlo Systems, Inc. All rights reserved.";var $modules={};$modules.runtime=this;$modules.lz=$modules.runtime;$modules.user=$modules.lz;var global=$modules.user;var __ES3Globals={Array:Array,Boolean:Boolean,Date:Date,Function:Function,Math:Math,Number:Number,Object:Object,RegExp:RegExp,String:String,Error:Error,EvalError:EvalError,RangeError:RangeError,ReferenceError:ReferenceError,SyntaxError:SyntaxError,TypeError:TypeError,URIError:URIError};var globalValue=function($0){
if($0.charAt(0)=="<"&&$0.charAt($0.length-1)==">"){
return lz[$0.substring(1,$0.length-1)]
}else if($0 in this){
return this[$0]
}else if($0 in global){
return global[$0]
}else if($0 in __ES3Globals){
return __ES3Globals[$0]
};return void 0
};var $lzsc$issubclassof=function($0,$1){
return $0===$1||($1["$lzsc$isa"]?$1.$lzsc$isa($0.prototype):$0.prototype instanceof $1)
};var $lzc$getFunctionDependencies=function($0,$1,$2,$3,$4){
switch(arguments.length){
case 4:
$4=null;
};var $5=[],$6=null;try{
$6=$2["$lzc$"+$0+"_dependencies"]
}
catch($7){};if(!(Function["$lzsc$isa"]?Function.$lzsc$isa($6):$6 instanceof Function)){
}else{
try{
$5=$6.apply($2,[$1,$2].concat($3))
}
catch($7){}};return $5
};var Instance=function(){
this.constructor=arguments.callee;this.$lzsc$initialize.apply(this,arguments)
};Instance.prototype.constructor=Instance;Instance.classname="Instance";Instance.prototype.classname="Object";(function(){
var $0=function($0){
for(var $1=$0.length-1;$1>=1;$1-=2){
var $2=$0[$1];var $3=$0[$1-1];if($2!==void 0||!($3 in this)){
this[$3]=$2
};if(!($2 instanceof Function))continue;var $4=this.constructor;if($2.hasOwnProperty("$superclasses")){
var $5=$2.$superclasses,$6=false;for(var $7=$5.length-1;$7>=0;$7--){
if($5[$7]===$4){
$6=true;break
}};if(!$6){
$2.$superclasses.push($4)
}}else if($2.hasOwnProperty("$superclass")&&$2.$superclass!==$4){
var $8=$2.$superclass;delete $2.$superclass;$2.$superclasses=[$8,$4]
}else{
$2.$superclass=$4
}}};$0.call(Instance.prototype,["addProperties",$0])
})();Instance.prototype.addProperties(["addProperty",function($0,$1){
this.addProperties([$0,$1])
}]);Instance.prototype.addProperty("nextMethod",function($0,$1){
var $2;if($0.hasOwnProperty("$superclass")){
$2=$0.$superclass.prototype[$1]
}else if($0.hasOwnProperty("$superclasses")){
var $3=$0.$superclasses;for(var $4=$3.length-1;$4>=0;$4--){
var $5=$3[$4];if(this instanceof $5){
$2=$5.prototype[$1];break
}}};if(!$2){
$2=function(){}};return $2
});Instance.prototype.addProperty("$lzsc$initialize",function(){});if(lz.embed.browser.isSafari&&lz.embed.browser.version>="531.21"&&lz.embed.browser.version<"533.16"){
Instance.prototype.addProperty("$lzsc$safarikludge",function(){})
};var Class={prototype:new Instance(),addProperty:Instance.prototype.addProperty,addProperties:function($0){
this.prototype.addProperties($0)
},addStaticProperty:function($0,$1){
this[$0]=$1
},allClasses:{Instance:Instance},make:function($0,instanceProperties,$1,$2,$3){
switch(arguments.length){
case 1:
instanceProperties=null;
case 2:
$1=null;
case 3:
$2=null;
case 4:
$3=null;
};var superclass=null;if($1 instanceof Array){
for(var $4=$1.length-1;$4>=0;$4--){
var $5=$1[$4];if($5 instanceof Function){
$1.splice($4,1);superclass=$5
}}}else if($1 instanceof Function){
superclass=$1;$1=null
};if(!superclass){
superclass=Instance
};var $6=function(){
this.constructor=arguments.callee;if(this["$lzsc$safarikludge"]&&this.$lzsc$safarikludge!==Instance.prototype.$lzsc$safarikludge){
this.$lzsc$safarikludge()
};if(this.$lzsc$initialize!==Instance.prototype.$lzsc$initialize){
this.$lzsc$initialize.apply(this,arguments)
}};$6.constructor=this;$6.classname=$0;var $7=function(){
this.constructor=superclass
};$7.prototype=superclass.prototype;var $8=new $7();if($1 instanceof Array){
for(var $9=$1.length-1;$9>=0;$9--){
var $a=$1[$9];$8=$a.makeInterstitial($8,$9>0?$1[$9-1]:$6)
}};if($3 instanceof Array){
for(var $9=$3.length-1;$9>=0;$9--){
var $a=$3[$9];$a.addImplementation($0,$6)
}};$6.prototype=$8;this.addStaticProperty.call($6,"addStaticProperty",this.addStaticProperty);$6.addStaticProperty("addProperty",this.addProperty);$6.addStaticProperty("addProperties",this.addProperties);if($2){
for(var $9=$2.length-1;$9>=1;$9-=2){
var $b=$2[$9];var $c=$2[$9-1];$6.addStaticProperty($c,$b)
}};if(instanceProperties){
$6.addProperties(instanceProperties);if(lz.embed.browser.isSafari&&lz.embed.browser.version=="531.21"){
$6.addProperty("$lzsc$safarikludge",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$safarikludge"]||this.nextMethod(arguments.callee,"$lzsc$safarikludge")).call(this);for(var $0=instanceProperties.length-1;$0>=1;$0-=2){
var $1=instanceProperties[$0];if(Function["$lzsc$isa"]?Function.$lzsc$isa($1):$1 instanceof Function)continue;var $2=instanceProperties[$0-1];if($1!==void 0||!($2 in this)){
this[$2]=$1
}}})
}};global[$0]=this.allClasses[$0]=$6;return $6
}};var Mixin={prototype:new Instance(),allMixins:{},addProperty:function($0,$1){
this.prototype[$0]=$1;this.instanceProperties.push($0,$1);var $2=this.implementations;for(var $3 in $2){
var $4=$2[$3];$4.addProperty($0,$1)
}},addStaticProperty:function($0,$1){
this[$0]=$1
},makeInterstitial:function($0,$1){
var $2=this.implementations;var $3=this.classname+"+"+$0.constructor.classname;var $4=$1.classname+"|"+$3;if($2[$4]){
return $2[$4]
};$0.addProperties(this.instanceProperties);var $5=function(){
this.constructor=arguments.callee
};$5.prototype=$0;$5.classname=$3;var $6=new $5();$2[$4]=$6;return $6
},addImplementation:function($0,$1){
this.implementations[$0]={constructor:$1}},$lzsc$isa:function($0){
var $1=this.implementations;for(var $2 in $1){
if($0 instanceof $1[$2].constructor){
return true
}};return false
},make:function($0,$1,$2,$3,$4){
switch(arguments.length){
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=null;
case 4:
$4=null;
};var $5={constructor:this,classname:$0,_dbg_typename:this._dbg_name,_dbg_name:$0,prototype:$2?$2.make():new Object(),instanceProperties:$2?$2.instanceProperties.slice(0):new Array(),implementations:{}};this.addStaticProperty.call($5,"addStaticProperty",this.addStaticProperty);$5.addStaticProperty("addProperty",this.addProperty);$5.addStaticProperty("makeInterstitial",this.makeInterstitial);$5.addStaticProperty("addImplementation",this.addImplementation);$5.addStaticProperty("$lzsc$isa",this.$lzsc$isa);if($3){
for(var $6=$3.length-1;$6>=1;$6-=2){
var $7=$3[$6];var $8=$3[$6-1];$5.addStaticProperty($8,$7)
}};if($1){
for(var $6=$1.length-1;$6>=1;$6-=2){
var $7=$1[$6];var $8=$1[$6-1];$5.addProperty($8,$7)
}};global[$0]=this.allMixins[$0]=$5;return $5
}};Class.make("LzBootstrapMessage",["message","","length",0,"$lzsc$initialize",function($0){
switch(arguments.length){
case 0:
$0=null;
};if($0!=null){
this.appendInternal(""+$0,$0)
}},"appendInternal",function($0,$1){
switch(arguments.length){
case 1:
$1=null;
};this.message+=$0;this.length=this.message.length
},"append",function(){
var $0=Array.prototype.slice.call(arguments,0);var $1=$0.length;for(var $2=0;$2<$1;$2++){
this.appendInternal(String($0[$2]))
}},"charAt",function($0){
return this.message.charAt($0)
},"charCodeAt",function($0){
return this.message.charCodeAt($0)
},"indexOf",function($0){
return this.message.indexOf($0)
},"lastIndexOf",function($0){
return this.message.lastIndexOf($0)
},"toLowerCase",function(){
return new LzMessage(this.message.toLowerCase())
},"toUpperCase",function(){
return new LzMessage(this.message.toUpperCase())
},"toString",function(){
return this.message||""
},"valueOf",function(){
return this.message||""
},"concat",function(){
var $0=Array.prototype.slice.call(arguments,0);return new LzMessage(this.message.concat.apply(this.message,$0))
},"slice",function(){
var $0=Array.prototype.slice.call(arguments,0);return this.message.slice.apply(this.message,$0)
},"split",function(){
var $0=Array.prototype.slice.call(arguments,0);return this.message.split.apply(this.message,$0)
},"substr",function(){
var $0=Array.prototype.slice.call(arguments,0);return this.message.substr.apply(this.message,$0)
},"substring",function(){
var $0=Array.prototype.slice.call(arguments,0);return this.message.substring.apply(this.message,$0)
},"toHTML",function(){
return this["toString"]().toHTML()
}],null,["xmlEscape",function($0){
if($0&&(typeof $0=="string"||(String["$lzsc$isa"]?String.$lzsc$isa($0):$0 instanceof String))){
var $1=$0.length;var $2="";for(var $3=0;$3<$1;$3++){
var $4=$0.charAt($3);switch($4){
case "<":
$2+="<";break;
case "&":
$2+="&";break;
default:
$2+=$4;
}};return $2
}else{
return $0
}}]);(function($0){
with($0)with($0.prototype){}})(LzBootstrapMessage);var LzMessage=LzBootstrapMessage;String.prototype.toHTML=function(){
return LzMessage.xmlEscape(this)
};Class.make("LzFormatCallback",["callback",void 0,"$lzsc$initialize",function($0){
this.callback=$0
},"call",function(){
return this.callback.call(null)
}]);Mixin.make("LzFormatter",["toNumber",function($0){
return Number($0)
},"pad",function($0,$1,$2,$3,$4,$5,$6){
switch(arguments.length){
case 0:
$0="";
case 1:
$1=0;
case 2:
$2=null;
case 3:
$3=" ";
case 4:
$4="-";
case 5:
$5=10;
case 6:
$6=false;
};var $7=typeof $0=="number";if($7){
if($2!=null){
var $8=Math.pow(10,-$2);$0=Math.round($0/$8)*$8
};$0=Number($0).toString($5);if($4!="-"){
if($0.indexOf("-")!=0){
if($0!=0){
$0=$4+$0
}else{
$0=" "+$0
}}}}else{
$0=""+$0
};var $9=$0.length;if($2!=null){
if($7){
var $a=$0.lastIndexOf(".");if($a==-1){
var $b=0;if($6||$2>0){
$0+="."
}}else{
var $b=$9-($a+1)
};if($b>$2){
$0=$0.substring(0,$9-($b-$2))
}else{
for(var $c=$b;$c<$2;$c++)$0+="0"
}}else{
$0=$0.substring(0,$2)
}};$9=$0.length;var $d=false;if($1<0){
$1=-$1;$d=true
};if($9>=$1){
return $0
};if($d){
for(var $c=$9;$c<$1;$c++)$0=$0+" "
}else{
$4=null;if($3!=" "){
if(" +-".indexOf($0.substring(0,1))>=0){
$4=$0.substring(0,1);$0=$0.substring(1)
}};for(var $c=$9;$c<$1;$c++)$0=$3+$0;if($4!=null){
$0=$4+$0
}};return $0
},"abbreviate",function($0,$1){
switch(arguments.length){
case 1:
$1=Infinity;
};if($0){
var $2="\u2026";if($0.length>$1-$2.length){
$0=$0.substring(0,$1-$2.length)+$2
}};return $0
},"stringEscape",function($0,$1){
switch(arguments.length){
case 1:
$1=false;
};var $2=LzFormatter.singleEscapeCharacters;var $3='"';var $4="";var $5="'";if($1){
$5="";var $6=$0.split("'").length;var $7=$0.split('"').length;if($6>$7){
$3="'";$4='"'
}else{
$3='"';$4="'"
}};var $8="";for(var $9=0,$a=$0.length;$9<$a;$9++){
var $b=$0.charAt($9);var $c=$0.charCodeAt($9);if($c in $2){
if($b!=$3&&$b!=$5){
$8+=$2[$c]
}else{
$8+=$b
}}else if($c>=0&&$c<=31||$c>=127&&$c<=159){
$8+="\\x"+this.pad($c,2,0,"0","",16)
}else{
$8+=$b
}};return $4+$8+$4
},"formatToString",function($0){
var $8;var $9;$8=function($0){
if($0>=al){
return null
};return args[$0]
};$9=function($0){};switch(arguments.length){
case 0:
$0="";
};var args=Array.prototype.slice.call(arguments,1);var al=args.length;if(!(typeof $0=="string"||(String["$lzsc$isa"]?String.$lzsc$isa($0):$0 instanceof String))||al>0!=$0.indexOf("%")>=0){
args=[$0].concat(args);al++;var $1=new LzMessage();for(var $2=0;$2$7){
$7=$6
}};if($7this.size){
var $0=(this.curslot+1)%this.slots;var $1=this.data;if(this.destroyable){
var $2=$1[$0];for(var $3 in $2){
$2[$3].destroy()
}};$1[$0]={};this.curslot=$0;this.capacity=1
}},"put",function($0,$1){
var $2=this.get($0);if($2===void 0){
this.ensureSlot()
};this.data[this.curslot][$0]=$1;return $2
},"get",function($0){
var $1=this.slots;var $2=this.curslot;var $3=this.data;for(var $4=0;$4<$1;++$4){
var $5=($2+$4)%$1;var $6=$3[$5][$0];if($6!==void 0){
if($5!=$2){
delete $3[$5][$0];this.ensureSlot();$3[this.curslot][$0]=$6
};return $6
}};return void 0
}]);Class.make("LzEventable",["$lzsc$initialize",function(){},"__LZdeleted",false,"_events",null,"__delegates",null,"ondestroy",LzDeclaredEvent,"destroy",function(){
if(this.ondestroy.ready)this.ondestroy.sendEvent(this);this.__LZdeleted=true;this.__LZdelegatesQueue=null;this.__LZdeferDelegates=false;if(this._events!=null){
for(var $0=this._events.length-1;$0>=0;$0--){
this._events[$0].clearDelegates()
};this._events=null
};if(this.__delegates!=null)this.removeDelegates()
},"removeDelegates",function(){
if(this.__delegates!=null){
for(var $0=this.__delegates.length-1;$0>=0;$0--){
var $1=this.__delegates[$0];if($1.__LZdeleted!=true){
$1.destroy()
}};this.__delegates=null
}},"__LZdeferDelegates",false,"__LZdelegatesQueue",null,"childOf",function($0,$1){
switch(arguments.length){
case 1:
$1=null;
};return false
},"customSetters",{},"__invokeCustomSetter",function($0,$1){
return false
},"setAttribute",function($0,$1,$2){
switch(arguments.length){
case 2:
$2=null;
};if(this.__LZdeleted){
return
};if(this.customSetters[$0]){
if(this.__invokeCustomSetter($0,$1)==true){
return
}};var $3="$lzc$set_"+$0;if(Function["$lzsc$isa"]?Function.$lzsc$isa(this[$3]):this[$3] instanceof Function){
this[$3]($1)
}else{
this[$0]=$1;var $4=this["on"+$0];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($4):$4 instanceof LzEvent){
if($4.ready)$4.sendEvent($1)
}}}]);lz.Eventable=LzEventable;Class.make("LzStyleAttrBinder",["target",void 0,"dest",void 0,"source",void 0,"$lzsc$initialize",function($0,$1,$2){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this);this.target=$0;this.dest=$1;this.source=$2
},"bind",function($0){
switch(arguments.length){
case 0:
$0=null;
};var $1=this.target;var $2=this.dest;var $3=$1[$2];var $4=$1[this.source];if($4!==$3||!$1.inited){
{
if(!$1.__LZdeleted){
var $lzsc$czke6v="$lzc$set_"+$2;if(Function["$lzsc$isa"]?Function.$lzsc$isa($1[$lzsc$czke6v]):$1[$lzsc$czke6v] instanceof Function){
$1[$lzsc$czke6v]($4)
}else{
$1[$2]=$4;var $lzsc$9qaokn=$1["on"+$2];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$9qaokn):$lzsc$9qaokn instanceof LzEvent){
if($lzsc$9qaokn.ready){
$lzsc$9qaokn.sendEvent($4)
}}}}}}}],LzEventable);Class.make("$lz$class_TypeService",["PresentationTypes",void 0,"$lzsc$initialize",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this);this.PresentationTypes={}},"acceptTypeValue",function($0,$1,$2,$3){
var $4=$0?this.PresentationTypes[$0]:null;if($1!=null){
if($4!=null){
return $4.accept($1,$2,$3)
}};return $1
},"presentTypeValue",function($0,$1,$2,$3){
var $4=this.PresentationTypes[$0];if($4!=null){
return $4.present($1,$2,$3)
};return $1
},"addType",function($0,$1){
this.PresentationTypes[$0]=$1
},"addTypeAlias",function($0,$1){
var $2=this.PresentationTypes[$1];if(!$2){
return
};this.PresentationTypes[$0]=$2
}],null,["Type",void 0]);(function($0){
with($0)with($0.prototype){
{
$lz$class_TypeService.Type=new $lz$class_TypeService()
}}})($lz$class_TypeService);lz.TypeService=$lz$class_TypeService;lz.Type=lz.TypeService.Type;Class.make("$lz$class_PresentationType",["_dbg_typename","type","_dbg_name",function(){
return this.constructor.lzxtype
},"accept",function($0,$1,$2){},"present",function($0,$1,$2){
return String($0)
}],null,["nullValue",null]);Class.make("$lz$class_StringPresentationType",["accept",function($0,$1,$2){
return String($0)
}],$lz$class_PresentationType,["lzxtype","string","nullValue",""]);lz.Type.addType("string",new $lz$class_StringPresentationType());lz.Type.addTypeAlias("html","string");Class.make("$lz$class_TextPresentationType",["accept",function($0,$1,$2){
var $3=$lz$class_TextPresentationType.xmlEscapes;var $4="";for(var $5=0,$6=$0.length;$5<$6;$5++){
var $7=$0.charAt($5);$4+=$3[$7]||$7
};return $4
},"present",function($0,$1,$2){
var $3="";for(var $4=0,$5=$0.length;$4<$5;$4++){
var $6=$0.charAt($4);if($6=="&"){
var $7=$0.indexOf(";",$4);if($7>$4){
var $8=$0.substring($4,$7);switch($8){
case "amp":
break;
case "lt":
$6="<";break;
case "gt":
$6=">";break;
case "quot":
$6='"';break;
case "apos":
$6="'";break;
default:
$6="&"+$8+";";
};$4=$7
}};$3+=$6
};return $3
}],$lz$class_PresentationType,["lzxtype","text","nullValue","","xmlEscapes",{"&":"&","<":"<",">":">",'"':""","'":"'"}]);lz.Type.addTypeAlias("text","string");Class.make("$lz$class_BooleanPresentationType",["accept",function($0,$1,$2){
switch($0.toLowerCase()){
case "":
case "0":
case "false":
return false;
default:
return true;
}}],$lz$class_PresentationType,["nullValue",false,"lzxtype","boolean"]);lz.Type.addType("boolean",new $lz$class_BooleanPresentationType());lz.Type.addTypeAlias("inheritableBoolean","boolean");Class.make("$lz$class_NumberPresentationType",["accept",function($0,$1,$2){
return Number($0)
}],$lz$class_PresentationType,["nullValue",0,"lzxtype","number"]);lz.Type.addType("number",new $lz$class_NumberPresentationType());lz.Type.addTypeAlias("numberExpression","number");Class.make("$lz$class_ColorPresentationType",["accept",function($0,$1,$2){
if($0==-1){
return null
};return LzColorUtils.hextoint($0)
},"present",function($0,$1,$2){
var $3=lz.colors;for(var $4 in $3){
if($3[$4]===$0){
return $4
}};return LzColorUtils.inttohex($0)
}],$lz$class_PresentationType,["nullValue",0,"lzxtype","color"]);lz.Type.addType("color",new $lz$class_ColorPresentationType());Class.make("$lz$class_ExpressionPresentationType",["accept",function($0,$1,$2){
switch($0){
case "undefined":
return void 0;
case "null":
return null;
case "false":
return false;
case "true":
return true;
case "NaN":
return 0/0;
case "Infinity":
return Infinity;
case "-Infinity":
return -Infinity;
case "":
return "";
};if(!isNaN($0)){
return Number($0)
};return String($0)
}],$lz$class_PresentationType,["nullValue",null,"lzxtype","expression"]);lz.Type.addType("expression",new $lz$class_ExpressionPresentationType());Class.make("$lz$class_SizePresentationType",["accept",function($0,$1,$2){
if($0=="null"){
return null
};return Number($0)
}],$lz$class_PresentationType,["nullValue",null,"lzxtype","size"]);lz.Type.addType("size",new $lz$class_SizePresentationType());Class.make("$lz$class_CSSDeclarationPresentationType",["PropRE",new RegExp("^\\s*(\\S*)\\s*:\\s*(\\S*)\\s*$"),"HyphenRE",new RegExp("-(\\w)","g"),"CapitalRE",new RegExp("[:upper:]","g"),"accept",function($0,$1,$2){
var $3=$0.split(",");var $4={};for(var $5=0,$6=$3.length;$5<$6;$5++){
var $7=$3[$5];var $8=$7.match(this.PropRE);if($8.length=3){
var $9=$8[1].replace(this.HyphenRE,function($0,$1){
return $1[1].toUpperCase()
});$4[$9]=$8[2]
}};return $4
},"present",function($0,$1,$2){
var $3=[];for(var $4 in $0){
var $5=$4.replace(this.CapitalRE,function($0,$1){
return "-"+$1[1].toLowerCase()
});$3.push($5+": "+$0[$4])
};return $3.join(", ")
}],$lz$class_PresentationType,["nullValue",{},"lzxtype","css"]);lz.Type.addType("css",new $lz$class_CSSDeclarationPresentationType());Class.make("LzNode",["__LZisnew",false,"__LZdeferredcarr",null,"classChildren",null,"animators",null,"__animatedAttributes",void 0,"_instanceAttrs",null,"_instanceChildren",null,"__LzValueExprs",null,"__LZhasConstraint",function($0){
return($0 in this.__LzValueExprs)&&!(LzStyleConstraintExpr["$lzsc$isa"]?LzStyleConstraintExpr.$lzsc$isa(this.__LzValueExprs[$0]):this.__LzValueExprs[$0] instanceof LzStyleConstraintExpr)
},"$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=false;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this);this.__LZUID="__U"+ ++LzNode.__UIDs;this.__LZdeferDelegates=true;if($1){
if($1["$lzc$bind_id"]){
this.$lzc$bind_id=$1.$lzc$bind_id
};if($1["$lzc$bind_name"]){
this.$lzc$bind_name=$1.$lzc$bind_name
}};var $4=this.$lzc$bind_id;if($4){
$4.call(null,this)
};var $5=this.$lzc$bind_name;if($5){
$5.call(null,this)
};this._instanceAttrs=$1;this._instanceChildren=$2;var $6=new LzInheritedHash(this["constructor"].attributes);if(!(LzState["$lzsc$isa"]?LzState.$lzsc$isa(this):this instanceof LzState)){
for(var $7 in $6){
var $8=$6[$7];if($8&&(LzAttributeDescriptor["$lzsc$isa"]?LzAttributeDescriptor.$lzsc$isa($8):$8 instanceof LzAttributeDescriptor)){
var $9=$8.value
}else{
var $9=$8
};if(!($8&&(LzInitExpr["$lzsc$isa"]?LzInitExpr.$lzsc$isa($8):$8 instanceof LzInitExpr))){
var $a="$lzc$set_"+$7;if(!this[$a]){
if(Function["$lzsc$isa"]?Function.$lzsc$isa($9):$9 instanceof Function){
this.addProperty($7,$9)
}else if($9!==void 0){
this[$7]=$9
};delete $6[$7];continue
}};if(this[$7]===void 0){
this[$7]=null
}}};if($1){
LzNode.mergeAttributes($1,$6)
};if($4){
$6.$lzc$bind_id=LzNode._ignoreAttribute
};if($5){
$6.$lzc$bind_name=LzNode._ignoreAttribute
};this.__LZisnew=!$3;var $b=this["constructor"]["children"];if(Array["$lzsc$isa"]?Array.$lzsc$isa($b):$b instanceof Array){
$2=LzNode.mergeChildren($2,$b)
};if($6["datapath"]!=null){
delete $6["$datapath"]
};var $c=this.__LzValueExprs={};for(var $7 in $6){
var $9=$6[$7];if(LzValueExpr["$lzsc$isa"]?LzValueExpr.$lzsc$isa($9):$9 instanceof LzValueExpr){
$c[$7]=$9;delete $6[$7]
}};try{
this.construct($0,$6)
}
catch($d){
if($d===LzNode.__LzEarlyAbort){
return
}else{
throw $d
}};for(var $7 in $c){
$6[$7]=$c[$7]
};this.__LzValueExprs=null;this.__LZapplyArgs($6,true);if(this.__LZdeleted){
return
};this.__LZdeferDelegates=false;var $e=this.__LZdelegatesQueue;if($e){
LzDelegate.__LZdrainDelegatesQueue($e);this.__LZdelegatesQueue=null
};if(this.onconstruct.ready)this.onconstruct.sendEvent(this);if($2&&$2.length){
this.createChildren($2)
}else{
this.__LZinstantiationDone()
}},"oninit",LzDeclaredEvent,"onconstruct",LzDeclaredEvent,"ondata",LzDeclaredEvent,"clonenumber",null,"onclonenumber",LzDeclaredEvent,"__LZinstantiated",false,"__LZpreventSubInit",null,"__LZresolveDict",null,"__LZsourceLocation",null,"__LZUID",void 0,"__LZPropertyCache",null,"__LZCSSProp",null,"__LZCSSType",null,"__LZCSSFallback",null,"__LZRuleCache",null,"__LZconstraintdelegates",null,"isinited",false,"inited",false,"oninited",LzDeclaredEvent,"subnodes",null,"datapath",null,"$lzc$set_datapath",function($0){
if(null!=this.datapath&&$0!==LzNode._ignoreAttribute){
this.datapath.setXPath($0)
}else{
new LzDatapath(this,{xpath:$0})
}},"initstage",null,"$isstate",false,"parent",void 0,"cloneManager",null,"name",null,"$lzc$bind_name",null,"id",null,"$lzc$set_id",-1,"$lzc$bind_id",null,"defaultplacement",null,"placement",null,"$lzc$set_placement",-1,"$cfn",0,"immediateparent",null,"dependencies",null,"classroot",void 0,"nodeLevel",0,"styleclass","","onstyleclass",LzDeclaredEvent,"__LZCSSStyleclass",null,"$lzc$set_styleclass",function($0){
this.styleclass=$0;if($0.indexOf(" ")>=0){
this.__LZCSSStyleclass=" "+$0+" "
}else{
this.__LZCSSStyleclass=null
};if(this.onstyleclass.ready){
this.onstyleclass.sendEvent($0)
}},"__LZCSSDependencies",null,"__applyCSSConstraints",function(){
var $0=this.__LZCSSDependencies;if($0){
this.__LZCSSDependencies=null;var $1=this.__applyCSSConstraintDel;if($1){
$1.unregisterAll()
}else{
if(!this.__LZconstraintdelegates){
this.__LZconstraintdelegates=[]
};$1=this.__applyCSSConstraintDel=new LzDelegate(this,"__reapplyCSS");this.__LZconstraintdelegates.push($1)
};for(var $2 in $0){
var $3="on"+$2;var $4=$0[$2];for(var $5=0,$6=$4.length;$5<$6;$5++){
var $7=$4[$5];$1.register($7,$3)
}}}},"__reapplyCSS",function($0){
switch(arguments.length){
case 0:
$0=null;
};var $1=LzCSSStyle.getPropertyCache(this);this.__LZRuleCache=null;this.__LZPropertyCache=null;var $2=LzCSSStyle.getPropertyCache(this);var $3=this.__LZCSSProp;var $4=this.__LZCSSType;var $5=this.__LZCSSFallback;for(var $6 in $3){
var $7=$3[$6];if($1[$7]!=$2[$7]){
this.__LZstyleBindAttribute($6,$7,$4[$6],$5[$6])
}};this.__applyCSSConstraints()
},"__LZstyleBindAttribute",function($0,$1,$2,$3,$4){
switch(arguments.length){
case 3:
$3=void 0;
case 4:
$4=true;
};var $5=this["__LZPropertyCache"]||LzCSSStyle.getPropertyCache(this);if(!this.__LZCSSProp){
this.__LZCSSProp={}};this.__LZCSSProp[$0]=$1;if(!this.__LZCSSType){
this.__LZCSSType={}};this.__LZCSSType[$0]=$2;if(!this.__LZCSSFallback){
this.__LZCSSFallback={}};this.__LZCSSFallback[$0]=$3;var $6=$5[$1];if(typeof $6=="string"&&$6.length>2&&$6.indexOf("0x")==0&&!isNaN($6)){
$6=Number($6)
};if(LzStyleExpr["$lzsc$isa"]?LzStyleExpr.$lzsc$isa($6):$6 instanceof LzStyleExpr){
if(LzStyleAttr["$lzsc$isa"]?LzStyleAttr.$lzsc$isa($6):$6 instanceof LzStyleAttr){
var $7=$6;var $8=$7.sourceAttributeName;var $9=new LzStyleAttrBinder(this,$0,$8);if(!this.__LZconstraintdelegates){
this.__LZconstraintdelegates=[]
};this.__LZconstraintdelegates.push(new LzDelegate($9,"bind",this,"on"+$8));$9.bind()
}else if(LzStyleIdent["$lzsc$isa"]?LzStyleIdent.$lzsc$isa($6):$6 instanceof LzStyleIdent){
var $a=$6;this.acceptAttribute($0,$2,$a.sourceValueID)
}}else if($6!==void 0){
if(this[$0]!==$6){
{
if(!this.__LZdeleted){
var $lzsc$qjgu4o="$lzc$set_"+$0;if(Function["$lzsc$isa"]?Function.$lzsc$isa(this[$lzsc$qjgu4o]):this[$lzsc$qjgu4o] instanceof Function){
this[$lzsc$qjgu4o]($6)
}else{
this[$0]=$6;var $lzsc$6lei59=this["on"+$0];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$6lei59):$lzsc$6lei59 instanceof LzEvent){
if($lzsc$6lei59.ready){
$lzsc$6lei59.sendEvent($6)
}}}}}}}else if(LzInitExpr["$lzsc$isa"]?LzInitExpr.$lzsc$isa($3):$3 instanceof LzInitExpr){
this.applyConstraintExpr($3)
}else{
if(this[$0]!==$3){
{
if(!this.__LZdeleted){
var $lzsc$gj5aem="$lzc$set_"+$0;if(Function["$lzsc$isa"]?Function.$lzsc$isa(this[$lzsc$gj5aem]):this[$lzsc$gj5aem] instanceof Function){
this[$lzsc$gj5aem]($3)
}else{
this[$0]=$3;var $lzsc$c7sr2z=this["on"+$0];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$c7sr2z):$lzsc$c7sr2z instanceof LzEvent){
if($lzsc$c7sr2z.ready){
$lzsc$c7sr2z.sendEvent($3)
}}}}}}}},"construct",function($0,$1){
var $2=$0;this.parent=$2;if($2){
var $3=$2;if($1["ignoreplacement"]||this.ignoreplacement){
this.placement=null
}else{
var $4=$1["placement"]||$2.defaultplacement;while($4!=null){
if($3.determinePlacement==LzNode.prototype.determinePlacement){
var $5=$3.searchSubnodes("name",$4);if($5==null)$5=$3
}else{
var $5=$3.determinePlacement(this,$4,$1)
};$4=$5!=$3?$5.defaultplacement:null;$3=$5
};this.placement=$4
};if(this.__LZdeleted){
throw LzNode.__LzEarlyAbort
};var $6=$3.subnodes;if($6==null){
$3.subnodes=[this]
}else{
$6[$6.length]=this
};var $7=$3.nodeLevel;this.nodeLevel=$7?$7+1:1;this.immediateparent=$3
}else{
this.nodeLevel=1
}},"init",function(){
return
},"__LZinstantiationDone",function(){
this.__LZinstantiated=true;if(!this.__LZdeleted&&(!this.immediateparent||this.immediateparent.isinited||this.initstage=="early"||this.__LZisnew&&lz.Instantiator.syncNew)){
this.__LZcallInit()
}},"__LZsetPreventInit",function(){
this.__LZpreventSubInit=[]
},"__LZclearPreventInit",function(){
var $0=this.__LZpreventSubInit;this.__LZpreventSubInit=null;var $1=$0.length;for(var $2=0;$2<$1;$2++){
$0[$2].__LZcallInit()
}},"__LZcallInit",function($0){
switch(arguments.length){
case 0:
$0=null;
};if(this.parent&&this.parent.__LZpreventSubInit){
this.parent.__LZpreventSubInit.push(this);return
};this.isinited=true;if(this.__LZresolveDict!=null)this.__LZresolveReferences();if(this.__LZdeleted)return;var $1=this.subnodes;if($1){
for(var $2=0;$2<$1.length;){
var $3=$1[$2++];var $4=$1[$2];if($3.isinited||!$3.__LZinstantiated)continue;$3.__LZcallInit();if(this.__LZdeleted)return;if($4!=$1[$2]){
while($2>0){
if($4==$1[--$2])break
}}}};this.init();if(this.oninit.ready)this.oninit.sendEvent(this);if(this.datapath&&this.datapath.__LZApplyDataOnInit){
this.datapath.__LZApplyDataOnInit()
};this.inited=true;if(this.oninited.ready){
this.oninited.sendEvent(true)
}},"completeInstantiation",function(){
if(!this.isinited){
var $0=this.initstage;this.initstage="early";if($0=="defer"){
lz.Instantiator.createImmediate(this,this.__LZdeferredcarr)
}else{
lz.Instantiator.completeTrickle(this)
}}},"ignoreplacement",false,"$lzc$set_$delegates",-1,"$lzc$set_$classrootdepth",-1,"$lzc$set_$datapath",-1,"__LZapplyArgs",function($0,$1){
var $2=LzNode._ignoreAttribute;var $3={};var $4=null;var $5=null;var $6=null;if("name" in $0){
this.$lzc$set_name($0.name);delete $0.name
};for(var $7 in $0){
var $8=$0[$7];if($8&&(LzAttributeDescriptor["$lzsc$isa"]?LzAttributeDescriptor.$lzsc$isa($8):$8 instanceof LzAttributeDescriptor)){
var $9=$8.value
}else{
var $9=$8
};if($3[$7]||$9===$2)continue;$3[$7]=true;var $a="$lzc$set_"+$7;if($8&&(LzInitExpr["$lzsc$isa"]?LzInitExpr.$lzsc$isa($8):$8 instanceof LzInitExpr)){
if($8 instanceof LzConstraintExpr){
if($6==null){
$6=[]
};$6.push($8)
}else if($8 instanceof LzOnceExpr){
if($5==null){
$5=[]
};$5.push($8)
};if(this[$7]===void 0){
this[$7]=null
}}else if(!this[$a]){
if(Function["$lzsc$isa"]?Function.$lzsc$isa($9):$9 instanceof Function){
this.addProperty($7,$9)
}else if($9!==void 0){
this[$7]=$9
};if(!$1){
var $b=this["on"+$7];if($b){
if($b.ready){
$b.sendEvent($0[$7])
}}}}else if(this[$a]!=-1){
if($4==null){
$4=[]
};$4.push($a,$9);if(this[$7]===void 0){
this[$7]=null
}}};if("$delegates" in $0){
var $c=$0.$delegates;var $d=this.__LZconstraintdelegates;var $e;for(var $f=0,$g=$c.length;$f<$g;$f+=3){
if($c[$f+2]){
if($e==null){
$e=[]
};$e.push($c[$f],$c[$f+1],$c[$f+2])
}else{
var $h=$c[$f+1];if(!$d){
$d=this.__LZconstraintdelegates=[]
};$d.push(new LzDelegate(this,$h,this,$c[$f]))
}};if($e!=null){
this.__LZstoreAttr($e,"$delegates")
}};if("$classrootdepth" in $0){
var $i=$0.$classrootdepth;if($i){
var $j=this.parent;while(--$i>0){
$j=$j.parent
};this.classroot=$j
}};if(("$datapath" in $0)&&$0.$datapath!==$2){
var $k=$0.$datapath;this.makeChild($k,true)
};if($4){
for(var $f=0,$g=$4.length;$f<$g;$f+=2){
if(this.__LZdeleted)return;this[$4[$f]]($4[$f+1])
}};if($5!=null){
this.__LZstoreAttr($5,"$inits")
};if($6!=null){
this.__LZstoreAttr($6,"$constraints")
}},"createChildren",function($0){
if(this.__LZdeleted)return;if("defer"==this.initstage){
this.__LZdeferredcarr=$0
}else if("late"==this.initstage){
lz.Instantiator.trickleInstantiate(this,$0)
}else if(this.__LZisnew&&lz.Instantiator.syncNew||"immediate"==this.initstage){
lz.Instantiator.createImmediate(this,$0)
}else{
lz.Instantiator.requestInstantiation(this,$0)
}},"makeChild",function($0,$1){
switch(arguments.length){
case 1:
$1=null;
};if(this.__LZdeleted){
return
};var $2=$0["class"];if(!$2){
if($0["tag"]){
$2=lz[$0.tag]
}};var $3;if($2){
$3=new $2(this,$0.attrs,("children" in $0)?$0.children:null,$1)
};return $3
},"$lzc$set_$setters",function($0){},"dataBindAttribute",function($0,$1,$2){
if(!this.datapath){
this.$lzc$set_datapath(".")
};if(!this.__LZconstraintdelegates){
this.__LZconstraintdelegates=[]
};this.__LZconstraintdelegates.push(new LzDataAttrBind(this.datapath,$0,$1,$2))
},"__LZstoreAttr",function($0,$1){
if(this.__LZresolveDict==null){
this.__LZresolveDict={}};this.__LZresolveDict[$1]=$0
},"__LZresolveReferences",function(){
var $0=this.__LZresolveDict;if($0!=null){
this.__LZresolveDict=null;var $1=$0["$inits"];if($1!=null){
for(var $2=0,$3=$1.length;$2<$3;$2++){
this[$1[$2].methodName](null);if(this.__LZdeleted)return
}};var $4=$0["$constraints"];if($4!=null){
for(var $2=0,$3=$4.length;$2<$3;$2++){
this.applyConstraintExpr($4[$2]);if(this.__LZdeleted)return
}};if(this.__LZCSSDependencies!=null){
this.__applyCSSConstraints()
};if(this["__LZresolveOtherReferences"]){
this.__LZresolveOtherReferences($0)
};if($0["$delegates"])this.__LZsetDelegates($0.$delegates)
}},"__LZsetDelegates",function($0){
if($0.length<1){
return
};var $1=this.__LZconstraintdelegates;if(!$1){
$1=this.__LZconstraintdelegates=[]
};var $2=$0.length;for(var $3=0;$3<$2;$3+=3){
var $4=$0[$3+2];var $5=$4!=null?this[$4]():null;if($5==null)$5=this;var $6=$0[$3+1];$1.push(new LzDelegate(this,$6,$5,$0[$3]))
}},"applyConstraint",function($0,$1,$2){
var $3="$cf"+this.$cfn++;this.addProperty($3,$1);return this.applyConstraintMethod($3,$2)
},"applyConstraintMethod",function($0,$1){
if($1&&$1.length>0){
var $2=this.__LZconstraintdelegates;if(!$2){
$2=this.__LZconstraintdelegates=[]
};var $3;for(var $4=0,$5=$1.length;$4<$5;$4+=2){
$3=$1[$4];if($3){
$2.push(new LzDelegate(this,$0,$3,"on"+$1[$4+1]))
}}};this[$0](null)
},"applyConstraintExpr",function($0){
if($0 instanceof LzStyleConstraintExpr){
var $1=$0;this.__LZstyleBindAttribute($1.attribute,$1.property,$1.type,$1.fallback,$1.warn);return
};var $2=$0.methodName;if(!(Function["$lzsc$isa"]?Function.$lzsc$isa(this[$2]):this[$2] instanceof Function)){
return
};var $3=null;if($0 instanceof LzAlwaysExpr){
var $4=$0;var $5=$4.dependenciesName;if(!(Function["$lzsc$isa"]?Function.$lzsc$isa(this[$5]):this[$5] instanceof Function)){
}else{
try{
$3=this[$5]();for(var $6=0,$7=$3.length;$6<$7;$6+=2){
var $8=$3[$6];if($8!=null&&!(LzEventable["$lzsc$isa"]?LzEventable.$lzsc$isa($8):$8 instanceof LzEventable)){
$3[$6]=null
}}}
catch($9){}}};this.applyConstraintMethod($2,$3)
},"releaseConstraint",function($0){
if(this._instanceAttrs!=null){
var $1=this._instanceAttrs[$0];if($1 instanceof LzConstraintExpr){
var $2=$1.methodName;return this.releaseConstraintMethod($2)
}};return false
},"releaseConstraintMethod",function($0){
var $1=false;var $2=this.__LZconstraintdelegates;if($2){
for(var $3=0;$3<$2.length;){
var $4=$2[$3];if((LzDelegate["$lzsc$isa"]?LzDelegate.$lzsc$isa($4):$4 instanceof LzDelegate)&&$4.c===this&&$4.m===this[$0]){
if($4.__LZdeleted!=true){
$4.destroy()
};$2.splice($3,1);$1=true
}else{
$3++
}}};return $1
},"$lzc$set_name",function($0){
if(!($0===null||typeof $0=="string")){
return
};var $1=this.name;var $2=this.parent;var $3=this.immediateparent;if($1&&$1!=$0){
if(this.$lzc$bind_name){
if(globalValue($1)===this){
this.$lzc$bind_name.call(null,this,false)
}};if($2){
if($1&&$2[$1]===this){
$2[$1]=null
}};if($3){
if($1&&$3[$1]===this){
$3[$1]=null
}}};if($0&&$0.length){
if($2){
$2[$0]=this
};if($3){
$3[$0]=this
}};this.name=$0
},"setDatapath",function($0){
this.$lzc$set_datapath($0)
},"data",null,"$lzc$set_data",function($0){
this.data=$0;if(LzDataNodeMixin["$lzsc$isa"]?LzDataNodeMixin.$lzsc$isa($0):$0 instanceof LzDataNodeMixin){
var $1=this.datapath||new LzDatapath(this);$1.setPointer($0)
};if(this.ondata.ready)this.ondata.sendEvent($0)
},"setData",function($0,$1){
switch(arguments.length){
case 1:
$1=null;
};this.$lzc$set_data($0)
},"applyData",function($0){},"updateData",function(){
return void 0
},"setSelected",function($0){},"options",{},"$lzc$set_options",function($0){
if(this.options===this["constructor"].prototype.options){
this.options=new LzInheritedHash(this.options)
};for(var $1 in $0){
this.options[$1]=$0[$1]
}},"getOption",function($0){
return this.options[$0]
},"setOption",function($0,$1){
if(this.options===this["constructor"].prototype.options){
this.options=new LzInheritedHash(this.options)
};this.options[$0]=$1
},"determinePlacement",function($0,$1,$2){
if($1==null){
var $3=null
}else{
var $3=this.searchSubnodes("name",$1)
};return $3==null?this:$3
},"searchImmediateSubnodes",function($0,$1){
var $2=this.subnodes;if($2==null)return null;for(var $3=$2.length-1;$3>=0;$3--){
var $4=$2[$3];if($4[$0]==$1){
return $4
}};return null
},"searchSubnodes",function($0,$1){
var $2=this.subnodes?this.subnodes.concat():[];while($2.length>0){
var $3=$2;$2=new Array();for(var $4=$3.length-1;$4>=0;$4--){
var $5=$3[$4];if($5[$0]==$1){
return $5
};var $6=$5.subnodes;if($6){
for(var $7=$6.length-1;$7>=0;$7--){
$2.push($6[$7])
}}}};return null
},"searchParents",function($0){
return this.searchParentAttrs([$0])[$0]
},"searchParentAttrs",function($0){
var $1={};if(!$0.length)return $1;var $2=$0.slice();var $3=this;do{
$3=$3.immediateparent;if($3==null){
return $1
};var $4=0;var $5=$2.length;while($4<$5){
var $6=$2[$4];if($3[$6]!=null){
$1[$6]=$3;$2.splice($4,1);$5--
}else{
$4++
}}}while($3!=canvas&&$5>0);return $1
},"getUID",function(){
return this.__LZUID
},"childOf",function($0,$1){
switch(arguments.length){
case 1:
$1=null;
};if($0==null){
return false
};var $2=this;while($2.nodeLevel>=$0.nodeLevel){
if($2==$0){
return true
};$2=$2.immediateparent
};return false
},"destroy",function(){
if(this.__LZdeleted==true){
return
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["destroy"]||this.nextMethod(arguments.callee,"destroy")).call(this);if(this.subnodes!=null){
for(var $0=this.subnodes.length-1;$0>=0;$0--){
this.subnodes[$0].destroy()
}};if(this.$lzc$bind_id){
this.$lzc$bind_id.call(null,this,false)
};if(this.$lzc$bind_name){
this.$lzc$bind_name.call(null,this,false)
};var $1=this.parent;var $2=this.name;if($1!=null&&$2!=null){
if($1[$2]===this){
$1[$2]=null
};if(this.immediateparent[$2]===this){
this.immediateparent[$2]==null
}};if(this.__LZconstraintdelegates!=null){
this.__LZconstraintdelegates=null
};if(this.immediateparent&&this.immediateparent.subnodes){
for(var $0=this.immediateparent.subnodes.length-1;$0>=0;$0--){
if(this.immediateparent.subnodes[$0]===this){
this.immediateparent.subnodes.splice($0,1);break
}}};this.data=null
},"animate",function($0,$1,$2,$3,$4){
switch(arguments.length){
case 3:
$3=null;
case 4:
$4=null;
};if($2==0){
var $5=$3?this[$0]+$1:$1;{
if(!this.__LZdeleted){
var $lzsc$f8tzeh="$lzc$set_"+$0;if(Function["$lzsc$isa"]?Function.$lzsc$isa(this[$lzsc$f8tzeh]):this[$lzsc$f8tzeh] instanceof Function){
this[$lzsc$f8tzeh]($5)
}else{
this[$0]=$5;var $lzsc$844jmi=this["on"+$0];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$844jmi):$lzsc$844jmi instanceof LzEvent){
if($lzsc$844jmi.ready){
$lzsc$844jmi.sendEvent($5)
}}}}};return null
};var $6={attribute:$0,to:$1,duration:$2,relative:$3,target:this};for(var $7 in $4)$6[$7]=$4[$7];return new LzAnimator(null,$6)
},"toString",function(){
return this.getDebugIdentification()
},"getDebugIdentification",function(){
var $0=this["constructor"].tagname;if(this["name"]!=null){
$0+=" name: "+this.name
};if(this["id"]!=null){
$0+=" id: "+this.id
};return $0
},"nodePath",function($0,$1){
switch(arguments.length){
case 1:
$1=Infinity;
};if($0===canvas){
return ""
};var $2=$0.id;if(typeof $2=="string"&&globalValue($2)===$0){
return "#"+$2
};var $3=$0.name;if(typeof $3=="string"&&globalValue($3)===$0){
return "#"+$3
};var $4=$0.immediateparent||$0.parent;var $5="";if($4!=null){
if(typeof $3=="string"&&$4[$3]===$0){
$5="@"+$3
}else{
var $6=$0.constructor.tagname;if(!$6){
$5="anonymous"
}else{
$5=$6;var $7=$4.subnodes;var $8,$9=0;for(var $a=0,$b=$7.length;$a<$b;$a++){
var $c=$7[$a];if($6==$c.constructor.tagname){
$9++;if($8)break
};if($0===$c){
$8=$9
}};if($9>1){
$5+="["+$8+"]"
}}};if($5.length>=$1){
return "\u2026"
};try{
return this.nodePath($4,$1-$5.length-1)+"/"+$5
}
catch($d){
return "\u2026/"+$5
}};return $5
},"acceptTypeValue",function($0,$1,$2,$3){
return lz.Type.acceptTypeValue($0,$1,$2,$3)
},"acceptAttribute",function($0,$1,$2){
$2=lz.Type.acceptTypeValue($1,$2,this,$0);if(this[$0]!==$2){
{
if(!this.__LZdeleted){
var $lzsc$jsm90r="$lzc$set_"+$0;if(Function["$lzsc$isa"]?Function.$lzsc$isa(this[$lzsc$jsm90r]):this[$lzsc$jsm90r] instanceof Function){
this[$lzsc$jsm90r]($2)
}else{
this[$0]=$2;var $lzsc$d18dsr=this["on"+$0];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$d18dsr):$lzsc$d18dsr instanceof LzEvent){
if($lzsc$d18dsr.ready){
$lzsc$d18dsr.sendEvent($2)
}}}}}}},"presentTypeValue",function($0,$1,$2,$3){
return lz.Type.presentTypeValue($0,$1,$2,$3)
},"presentAttribute",function($0,$1){
return lz.Type.presentTypeValue($1,this[$0],this,$0)
},"$lzc$presentAttribute_dependencies",function($0,$1,$2,$3){
return [$1,$2]
},"ontransition",LzDeclaredEvent,"transition",void 0,"$lzc$set_transition",function($0){
if($6===$0)return;this.transition=$0;var $1={};var $2=0;var $3=$0.split(",");for(var $4=0,$5=$3.length;$4<$5;$4++){
var $6=$3[$4].split(" ");var $7=$6.shift();if($7){
var $8=$6.shift();$8=parseFloat($8)*1000;if(!$8||isNaN($8))continue;var $9=$6.shift();if($9=="ease-in"){
$9="easein"
}else if($9=="ease-out"){
$9="easeout"
}else if($9=="linear"){
}else{
$9="ease"
};$1[$7]={duration:$8,motion:$9};$2++
}};this.__transitionAttributes=$1;this.customSetters=$1
},"__invokeCustomSetter",function($0,$1){
if(this.inited!=true)return false;var $2=this.__transitionAttributes&&this.__transitionAttributes[$0];if($2&&this[$0]!==$1){
this.animate($0,$1,$2.duration,false,{motion:$2.motion})
};return true
}],LzEventable,["tagname","node","attributes",new LzInheritedHash(),"mergeAttributes",function($0,$1){
for(var $2 in $0){
var $3=$0[$2];if($3===LzNode._ignoreAttribute){
delete $1[$2]
}else if(LzInitExpr["$lzsc$isa"]?LzInitExpr.$lzsc$isa($3):$3 instanceof LzInitExpr){
$1[$2]=$3
}else{
if(Object["$lzsc$isa"]?Object.$lzsc$isa($3):$3 instanceof Object){
var $4=$1[$2];if(Object["$lzsc$isa"]?Object.$lzsc$isa($4):$4 instanceof Object){
if((Array["$lzsc$isa"]?Array.$lzsc$isa($3):$3 instanceof Array)&&(Array["$lzsc$isa"]?Array.$lzsc$isa($4):$4 instanceof Array)){
$1[$2]=$3.concat($4);continue
}else if(($3.constructor===Object||(LzInheritedHash["$lzsc$isa"]?LzInheritedHash.$lzsc$isa($3):$3 instanceof LzInheritedHash))&&($4.constructor===Object||(LzInheritedHash["$lzsc$isa"]?LzInheritedHash.$lzsc$isa($4):$4 instanceof LzInheritedHash))){
var $5=new LzInheritedHash($4);for(var $6 in $3){
$5[$6]=$3[$6]
};$1[$2]=$5;continue
}}};$1[$2]=$3
}}},"mergeChildren",function($0,$1){
if(Array["$lzsc$isa"]?Array.$lzsc$isa($1):$1 instanceof Array){
$0=$1.concat((Array["$lzsc$isa"]?Array.$lzsc$isa($0):$0 instanceof Array)?$0:[])
};return $0
},"__LzEarlyAbort",{toString:function(){
return "Early Abort"
}},"_ignoreAttribute",{toString:function(){
return "_ignoreAttribute"
}},"__UIDs",0]);(function($0){
with($0)with($0.prototype){}})(LzNode);lz[LzNode.tagname]=LzNode;Class.make("$lzc$class_userClassPlacement",["$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=null;
};$0.defaultplacement=$1
}]);Class.make("LzDelegate",["__delegateID",0,"__events",null,"$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 2:
$2=null;
case 3:
$3=null;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this);if(!(LzEventable["$lzsc$isa"]?LzEventable.$lzsc$isa($0):$0 instanceof LzEventable)){};if($0==null||$0["__LZdeleted"]){
return
};this.c=$0;var $4=$0[$1];if(!(Function["$lzsc$isa"]?Function.$lzsc$isa($4):$4 instanceof Function)){
return
};this.m=$4;if($4.length!=1){};if($2!=null){
this.register($2,$3)
};this.__delegateID=LzDelegate.__nextID++
},"c",void 0,"m",void 0,"hasevents",false,"enabled",true,"event_called",false,"execute",function($0){
var $1=this.c;if(this.enabled&&$1){
if($1["__LZdeleted"]){
return
};var $2=this.m;return $2&&$2.call($1,$0)
}},"register",function($0,$1){
var $2=false;if(!(LzEventable["$lzsc$isa"]?LzEventable.$lzsc$isa($0):$0 instanceof LzEventable)){};if(this.c==null||this.c["__LZdeleted"]){
return
};if($0!==this.c&&!$2){
if(this.__tracked==false){
this.__tracked=true;var $3=this.c["__delegates"];if($3==null){
this.c.__delegates=[this]
}else{
$3.push(this)
}}};var $4=$0[$1];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($4):$4 instanceof LzEvent){
$4.addDelegate(this)
}else{
if($4&&!(LzDeclaredEventClass["$lzsc$isa"]?LzDeclaredEventClass.$lzsc$isa($4):$4 instanceof LzDeclaredEventClass)){
return
};var $5=$4&&$4.actual||LzEvent;$4=new $5($0,$1,this)
};var $6=this.__events;if($6==null){
this.__events=[$4]
}else{
$6.push($4)
};this.hasevents=true
},"unregisterAll",function(){
if(this.hasevents==false)return;var $0=this.__events;for(var $1=0,$2=$0.length;$1<$2;$1++){
$0[$1].removeDelegate(this)
};$0.length=0;this.hasevents=false
},"unregisterFrom",function($0){
if(this.hasevents==false)return;var $1=this.__events;for(var $2=0,$3=$1.length;$2<$3;$2++){
var $4=$1[$2];if($4===$0){
$4.removeDelegate(this);$1.splice($2,1)
}};this.hasevents=$1.length>0
},"disable",function(){
this.enabled=false
},"enable",function(){
this.enabled=true
},"toString",function(){
return "Delegate for "+this.c+" calls "+this.m+" "+this.__delegateID
},"__tracked",false,"__LZdeleted",false,"destroy",function(){
if(this.__LZdeleted==true)return;this.__LZdeleted=true;if(this.hasevents)this.unregisterAll();this.hasevents=false;this.__events=null;this.c=null;this.m=null
}],null,["__nextID",1,"__LZdrainDelegatesQueue",function($0){
var $1=$0.length;var $2=0;if($2<$1){
var $3=new Array();var $4=new Array();while($2<$1){
var $5=$0[$2];var $6=$0[$2+1];var $7=$0[$2+2];$5.locked=true;$5.ready=false;$4.push($5);if(!$6.event_called){
$6.event_called=true;$3.push($6);if($6.c&&!$6.c.__LZdeleted&&$6.m){
$6.m.call($6.c,$7)
}};$2+=3
};while($6=$3.pop()){
$6.event_called=false
};while($5=$4.pop()){
$5.locked=false;$5.ready=$5.delegateList.length!=0
}};$0.length=0
}]);lz.Delegate=LzDelegate;Class.make("LzEvent",["delegateList",null,"$lzsc$initialize",function($0,$1,$2){
switch(arguments.length){
case 2:
$2=null;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this);var $3=$0["_events"];if($3==null){
$0._events=[this]
}else{
$3.push(this)
};$0[$1]=this;if($2){
this.delegateList=[$2];this.ready=true
}else{
this.delegateList=[]
}},"locked",false,"addDelegate",function($0){
this.ready=true;this.delegateList.push($0)
},"sendEvent",function($0){
switch(arguments.length){
case 0:
$0=null;
};if(this.locked||!this.ready){
return
};this.locked=true;this.ready=false;var $1=this.delegateList;var $2=new Array();var $3;var $4=$1.length;while(--$4>=0){
$3=$1[$4];if($3&&$3.enabled&&!$3.event_called){
$3.event_called=true;$2.push($3);var $5=$3.c;if($5&&!$5.__LZdeleted){
if($5.__LZdeferDelegates){
var $6=$5.__LZdelegatesQueue;if(!$6){
$5.__LZdelegatesQueue=[this,$3,$0]
}else{
$6.push(this,$3,$0)
}}else if($3.m){
$3.m.call($5,$0)
}}}};while($3=$2.pop()){
$3.event_called=false
};this.locked=false;this.ready=$1.length!=0
},"removeDelegate",function($0){
switch(arguments.length){
case 0:
$0=null;
};var $1=this.delegateList;for(var $2=0,$3=$1.length;$2<$3;$2++){
if($1[$2]===$0){
$1.splice($2,1);break
}};this.ready=$1.length!=0
},"clearDelegates",function(){
var $0=this.delegateList;while($0.length){
$0[0].unregisterFrom(this)
};this.ready=false
},"getDelegateCount",function(){
return this.delegateList.length
},"toString",function(){
return "LzEvent"
}],LzDeclaredEventClass);lz.Event=LzEvent;Class.make("LzNotifyingEvent",["$lzsc$initialize",function($0,$1,$2){
switch(arguments.length){
case 2:
$2=null;
};var $3=this.ready;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2);if(this.ready!=$3){
this.notify(this.ready)
}},"addDelegate",function($0){
var $1=this.ready;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["addDelegate"]||this.nextMethod(arguments.callee,"addDelegate")).call(this,$0);if(this.ready!=$1){
this.notify(this.ready)
}},"removeDelegate",function($0){
switch(arguments.length){
case 0:
$0=null;
};var $1=this.ready;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["removeDelegate"]||this.nextMethod(arguments.callee,"removeDelegate")).call(this,$0);if(this.ready!=$1){
this.notify(this.ready)
}},"clearDelegates",function(){
var $0=this.ready;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["clearDelegates"]||this.nextMethod(arguments.callee,"clearDelegates")).call(this);if(this.ready!=$0){
this.notify(this.ready)
}},"notify",function($0){}],LzEvent);lz.NotifyingEvent=LzNotifyingEvent;var LzResourceLibrary={};Class.make("LzKernelUtils",null,null,["CSSDimension",function($0,$1){
switch(arguments.length){
case 1:
$1="px";
};if($0==0)return $0;var $2=$0;if(isNaN($0)){
if(typeof $0=="string"&&$0.indexOf("%")==$0.length-1&&!isNaN($0.substring(0,$0.length-1))){
return $0
}else{
$2=0
}}else if($0===Infinity){
$2=~0>>>1
}else if($0===-Infinity){
$2=~(~0>>>1)
};return $2+$1
},"range",function($0,$1,$2){
switch(arguments.length){
case 2:
$2=null;
};$0=$0>$1?$1:$0;if($2!=null){
$0=$0<$2?$2:$0
};return $0
},"rect",function($0,$1,$2,$3,$4,$5,$6,$7,$8){
switch(arguments.length){
case 5:
$5=0;
case 6:
$6=null;
case 7:
$7=null;
case 8:
$8=null;
};var $9=Math.min($3,$4)*0.5;$5=LzKernelUtils.range($5||0,$9,0);if($8==null){
$8=$7=$6=$5
}else{
$8=LzKernelUtils.range($8||0,$9,0);$7=LzKernelUtils.range($7||0,$9,0);$6=LzKernelUtils.range($6||0,$9,0)
};var $a=$0["curveTo"]?"curveTo":"quadraticCurveTo";$0.moveTo($1,$2+$5);$0.lineTo($1,$2+$4-$8);if($8!=0){
$0[$a]($1,$2+$4,$1+$8,$2+$4)
};$0.lineTo($1+$3-$7,$2+$4);if($7!=0){
$0[$a]($1+$3,$2+$4,$1+$3,$2+$4-$7)
};$0.lineTo($1+$3,$2+$6);if($6!=0){
$0[$a]($1+$3,$2,$1+$3-$6,$2)
};$0.lineTo($1+$5,$2);if($5!=0){
$0[$a]($1,$2,$1,$2+$5)
}},"parselzoptions",function($0){
var $1=$0.split(new RegExp("([,()])"));var $2=1;var $3=2;var $4={};var $5=$2;var $6=[];var $7=null;var $8=0;while($1.length>0){
var $9=$1[0];var $1=$1.slice(1);if($9=="")continue;switch($5){
case $2:
if($9==","){
if($7!=null&&$8==0){
$4[$7]=[true]
}}else if($9=="("){
$5=$3;$6=[];$4[$7]=$6
}else{
$7=$9
}break;
case $3:
if($9==")"){
$7=null;$5=$2;$8=0
}else if($9==","){
}else{
$6.push($9);$8++
}break;
}};if($7!=null&&$8==0){
$4[$7]=[true]
};return $4
}]);var LzIdleKernel={__callbacks:[],__update:function(){
var $0=LzIdleKernel;var $1=$0.__callbacks;var $2=LzTimeKernel.getTimer();for(var $3=$1.length-2;$3>=0;$3-=2){
var $4=$1[$3];var $5=$1[$3+1];$4[$5]($2)
}},__intervalID:null,addCallback:function($0,$1){
var $2=LzIdleKernel;var $3=$2.__callbacks;for(var $4=$3.length-2;$4>=0;$4-=2){
if($3[$4]===$0&&$3[$4+1]==$1){
return
}};($2.__callbacks=$3.slice(0)).push($0,$1);if($2.__intervalID==null){
$2.__intervalID=setInterval(LzIdleKernel.__update,1000/$2.__fps)
}},removeCallback:function($0,$1){
var $2=LzIdleKernel;var $3=$2.__callbacks;for(var $4=$3.length-2;$4>=0;$4-=2){
if($3[$4]===$0&&$3[$4+1]==$1){
$2.__callbacks=$3=$3.slice(0);var $5=$3.splice($4,2);if($3.length==0){
clearInterval($2.__intervalID);$2.__intervalID=null
};return $5
}}},__fps:30,setFrameRate:function($0){
LzIdleKernel.__fps=$0;if(LzIdleKernel.__intervalID!=null){
clearInterval(LzIdleKernel.__intervalID);LzIdleKernel.__intervalID=setInterval(LzIdleKernel.__update,1000/$0)
}}};Class.make("LzLibraryCleanup",["lib",null,"$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=false;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3)
},"$lzc$set_libname",function($0){
this.lib=LzLibrary.findLibrary($0);this.lib.loadfinished()
}],LzNode,["attributes",new LzInheritedHash(LzNode.attributes)]);var getTimer=function(){
return LzTimeKernel.getTimer()
};global=window;lz.BrowserUtils={__scopeid:0,__scopes:[],getcallbackstr:function($0,$1){
var $2=lz.BrowserUtils.__scopeid++;if($0.__callbacks==null){
$0.__callbacks={sc:$2}}else{
$0.__callbacks[$2]=$2
};lz.BrowserUtils.__scopes[$2]=$0;return "if (lz.BrowserUtils.__scopes["+$2+"]) lz.BrowserUtils.__scopes["+$2+"]."+$1+".apply(lz.BrowserUtils.__scopes["+$2+"], [])"
},getcallbackfunc:function($0,name,args){
var sc=lz.BrowserUtils.__scopeid++;if($0.__callbacks==null){
$0.__callbacks={sc:sc}}else{
$0.__callbacks[sc]=sc
};lz.BrowserUtils.__scopes[sc]=$0;return( function(){
var $0=lz.BrowserUtils.__scopes[sc];if($0)return $0[name].apply($0,args)
})
},removecallback:function($0){
if($0.__callbacks!=null){
for(var $1 in $0.__callbacks){
var $2=$0.__callbacks[$1];delete lz.BrowserUtils.__scopes[$2]
};delete $0.__callbacks
}},hasFeature:function($0,$1){
return document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature($0,$1)
}};var LzPool=function($0,$1,$2,$3){
this.cache={};if(typeof $0=="function")this.getter=$0;if(typeof $1=="function")this.cacheHit=$1;if(typeof $2=="function")this.destroyer=$2;if($3)this.owner=$3
};LzPool.prototype.cache=null;LzPool.prototype.get=function($0,$1){
var $2=Array.prototype.slice.call(arguments,2);var $3=this.cache[$0];if($1||$3==null){
$2.unshift($0);$3=this.getter.apply(this,$2);if(!$1)this.cache[$0]=$3
}else if(this.cacheHit){
$2.unshift($0,$3);this.cacheHit.apply(this,$2)
};if(this.owner)$3.owner=this.owner;return $3
};LzPool.prototype.flush=function($0){
if(this.destroyer)this.destroyer($0,this.cache[$0]);delete this.cache[$0]
};LzPool.prototype.destroy=function(){
for(var $0 in this.cache){
this.flush($0)
};this.owner=null;this.cache=null
};LzPool.prototype.getter=null;LzPool.prototype.destroyer=null;LzPool.prototype.cacheHit=null;var LzKeyboardKernel={__downKeysHash:{},__keyboardEvent:function($0){
if(!$0)$0=window.event;var $1={};var $2=false;var $3=$0["keyCode"];var $4=$0.type;var $5=LzKeyboardKernel.__downKeysHash;if($3>=0&&$3!=16&&$3!=17&&$3!=18&&$3!=224){
var $6=String.fromCharCode($3).toLowerCase();if($4=="keyup"){
if($5[$6]!=null){
$1[$6]=false;$2=true
};$5[$6]=null
}else if($4=="keydown"){
if($5[$6]==null){
$1[$6]=true;$2=true
};$5[$6]=$3
}};if(LzKeyboardKernel.__updateControlKeys($0,$1)){
$2=true
};if($2){
var $7=LzKeyboardKernel.__scope;var $8=LzKeyboardKernel.__callback;if($7&&$7[$8]){
$7[$8]($1,$3,"on"+$4)
}};if($3>=0){
if($3==9){
$0.cancelBubble=true;return false
}else if(LzKeyboardKernel.__cancelKeys&&($3==13||$3==0||$3==37||$3==38||$3==39||$3==40||$3==8)){
$0.cancelBubble=true;return false
}}},__updateControlKeys:function($0,$1){
var $2=LzSprite.quirks;var $3=LzKeyboardKernel.__downKeysHash;var $4=false;if($1){
var $5=false
}else{
$1={};var $5=true
};var $6=$0["altKey"];if($3["alt"]!=null!=$6){
$3["alt"]=$6?18:null;$1["alt"]=$6;$4=true;if($2["alt_key_sends_control"]){
$1["control"]=$1["alt"]
}};var $7=$0["ctrlKey"];if($3["control"]!=null!=$7){
$3["control"]=$7?17:null;$1["control"]=$7;$4=true
};var $8=$0["shiftKey"];if($3["shift"]!=null!=$8){
$3["shift"]=$8?16:null;$1["shift"]=$8;$4=true
};if($2["hasmetakey"]){
var $9=$0["metaKey"];if($3["meta"]!=null!=$9){
$3["meta"]=$9?224:null;$1["meta"]=$9;$4=true;$1["control"]=$9
}};if($4&&$5){
var $a=LzKeyboardKernel.__scope;var $b=LzKeyboardKernel.__callback;if($a&&$a[$b]){
$a[$b]($1,0,"on"+$0.type)
}};return $4
},__allKeysUp:function(){
var $0=null;var $1=false;var $2=null;var $3=LzKeyboardKernel.__downKeysHash;for(var $4 in $3){
if($3[$4]!=null){
$1=true;if(!$0){
$0={}};$0[$4]=false;if($4.length==1){
if(!$2){
$2=[]
};$2.push($3[$4])
};$3[$4]=null
}};var $5=LzKeyboardKernel.__scope;var $6=LzKeyboardKernel.__callback;if($1&&$5&&$5[$6]){
if(!$2){
$5[$6]($0,0,"onkeyup")
}else for(var $7=0,$8=$2.length;$7<$8;$7++){
$5[$6]($0,$2[$7],"onkeyup")
}};LzKeyboardKernel.__downKeysHash={}},__callback:null,__scope:null,__cancelKeys:true,__lockFocus:null,setCallback:function($0,$1){
this.__scope=$0;this.__callback=$1
},__lastcontrolscope:null,setKeyboardControl:function($0,$1){
if(!$1&&LzKeyboardKernel.__lockFocus){
$0=true
};var $2=null;var $3=LzSprite.__rootSprite.options.cancelkeyboardcontrol!=true||true;if($3&&$0){
$2=LzKeyboardKernel.__keyboardEvent
};if(LzSprite.quirks.keyboardlistentotop){
var $4=window.top.document
}else{
var $4=document
};var $5=LzKeyboardKernel.__lastcontrolscope;if($5&&$5!=$4){
$5.onkeydown=$5.onkeyup=$5.onkeypress=null;if($2){
LzKeyboardKernel.__lastcontrolscope=$4
}};$4.onkeydown=$2;$4.onkeyup=$2;$4.onkeypress=$2
},gotLastFocus:function(){
if(!LzSprite.__mouseActivationDiv.mouseisover)LzKeyboardKernel.setKeyboardControl(false)
},setGlobalFocusTrap:function($0){
LzKeyboardKernel.__lockFocus=$0;if(LzSprite.quirks.activate_on_mouseover){
var $1=LzSprite.__mouseActivationDiv;if($0){
$1.onmouseover()
}else{
$1.onmouseout()
}}}};var LzMouseKernel={__lastMouseDown:null,__lastMouseOver:null,__x:0,__y:0,owner:null,__showncontextmenu:null,__mouseEvent:function($0){
$0=$0||window.event;var $1=$0.target||$0.srcElement;var $2="on"+$0.type;if(window["LzKeyboardKernel"]&&LzKeyboardKernel["__updateControlKeys"]){
LzKeyboardKernel.__updateControlKeys($0)
};if(LzSprite.prototype.capabilities.touchevents){
var $3=1;if($2==="ontouchstart"){
$2="onmousedown"
}else if($2==="ontouchmove"){
$2="onmousemove"
}else if($2==="ontouchend"){
$2="onmouseup";$3=0
};if($0.touches.length!=$3){
return true
}};var $4=window["LzInputTextSprite"]&&LzInputTextSprite.prototype;if($4&&$4.__lastshown!=null){
if(LzSprite.quirks.fix_ie_clickable){
$4.__hideIfNotFocused($2)
}else if($2!="onmousemove"){
$4.__hideIfNotFocused()
}};if($2==="onmousemove"){
LzMouseKernel.__sendMouseMove($0);if($4&&$4.__lastshown!=null){
if($1&&$1.owner&&!($1.owner instanceof LzInputTextSprite)){
if(!$4.__lastshown.__isMouseOver()){
$4.__lastshown.__hide()
}}}}else if($2==="oncontextmenu"||$0.button==2){
return LzMouseKernel.__handleContextMenu($0)
}else{
LzMouseKernel.__sendEvent($2)
}},__sendEvent:function($0,$1){
if($0==="onclick"&&$1==null){
return
};if(LzMouseKernel.__callback){
LzMouseKernel.__scope[LzMouseKernel.__callback]($0,$1)
}},__callback:null,__scope:null,setCallback:function($0,$1){
this.__scope=$0;this.__callback=$1
},__mousecontrol:false,setMouseControl:function($0){
if($0===LzMouseKernel.__mousecontrol)return;LzMouseKernel.__mousecontrol=$0;LzMouseKernel.__sendEvent($0?"onmouseenter":"onmouseleave");var $1=lz.embed[$0?"attachEventHandler":"removeEventHandler"];if(LzSprite.prototype.capabilities.touchevents){
$1(document,"touchmove",LzMouseKernel,"__mouseEvent")
}else{
$1(document,"mousemove",LzMouseKernel,"__mouseEvent")
};document.oncontextmenu=$0?LzMouseKernel.__mouseEvent:null
},__showhand:"pointer",showHandCursor:function($0){
var $1=$0===true?"pointer":"default";this.__showhand=$1;LzMouseKernel.setCursorGlobal($1)
},setCursorGlobal:function($0){
if(LzSprite.quirks.no_cursor_colresize){
return
};var $0=LzSprite.__defaultStyles.hyphenate($0);LzSprite.prototype.__setCSSClassProperty(".lzclickdiv","cursor",$0);LzSprite.prototype.__setCSSClassProperty(".lzdiv","cursor",$0);LzSprite.prototype.__setCSSClassProperty(".lzcanvasdiv","cursor",$0);LzSprite.prototype.__setCSSClassProperty(".lzcanvasclickdiv","cursor",$0)
},restoreCursor:function(){
if(LzSprite.quirks.no_cursor_colresize){
return
};if(LzMouseKernel.__amLocked)return;LzSprite.prototype.__setCSSClassProperty(".lzclickdiv","cursor",LzMouseKernel.__showhand);LzSprite.prototype.__setCSSClassProperty(".lzdiv","cursor","default");LzSprite.prototype.__setCSSClassProperty(".lzcanvasdiv","cursor","default");LzSprite.prototype.__setCSSClassProperty(".lzcanvasclickdiv","cursor","default")
},lock:function(){
LzMouseKernel.__amLocked=true
},unlock:function(){
LzMouseKernel.__amLocked=false;LzMouseKernel.restoreCursor()
},disableMouseTemporarily:function(){
this.setGlobalClickable(false);this.__resetonmouseover=true
},__resetonmouseover:false,__resetMouse:function(){
if(this.__resetonmouseover){
this.__resetonmouseover=false;this.setGlobalClickable(true)
}},__globalClickable:true,setGlobalClickable:function($0){
if($0===this.__globalClickable)return;this.__globalClickable=$0;var $1=document.getElementById("lzcanvasclickdiv");if(LzSprite.quirks.fix_ie_clickable){
LzSprite.prototype.__setCSSClassProperty(".lzclickdiv","display",$0?"":"none")
};if($1)$1.style.display=$0?"":"none"
},__sendMouseMove:function($0,$1,$2){
var $3="mousemove"===$0.type;var $4=true;if(LzSprite.prototype.capabilities.touchevents){
var $5=$0.touches;var $6=$5&&$5[0];if($6){
LzMouseKernel.__x=$6.pageX;LzMouseKernel.__y=$6.pageY
};$3=true;$4=false
}else if($0.pageX||$0.pageY){
LzMouseKernel.__x=$0.pageX;LzMouseKernel.__y=$0.pageY
}else if($0.clientX||$0.clientY){
var $7=document.body,$8=document.documentElement;LzMouseKernel.__x=$0.clientX+$7.scrollLeft+$8.scrollLeft;LzMouseKernel.__y=$0.clientY+$7.scrollTop+$8.scrollTop
};if($1){
LzMouseKernel.__x+=$1
};if($2){
LzMouseKernel.__y+=$2
};if($3){
LzMouseKernel.__sendEvent("onmousemove");return $4
};return false
},__contextmenumouse2:false,__handleContextMenu:function($0){
LzMouseKernel.__sendMouseMove($0);var $1=LzMouseKernel.__findContextMenu($0);if($1){
var $2="on"+$0.type;var $3=$1.kernel.showbuiltins;var $4=false;if(LzSprite.prototype.quirks.has_dom2_mouseevents){
if($2==="oncontextmenu"){
if(LzMouseKernel.__contextmenumouse2){
LzMouseKernel.__contextmenumouse2=false;return false
}}else if($2==="onmousedown"&&$0.button==2){
$4=true
}else{
return true
}}else if($2!=="oncontextmenu"){
return true
};var $5=$0.target||$0.srcElement;if($5&&$5.owner&&$3!==true){
LzMouseKernel.__contextmenumouse2=$4;if(LzMouseKernel.__showncontextmenu){
LzContextMenuKernel.lzcontextmenu.hide()
}else{
$1.kernel.__show()
};return false
}};return true
},__findContextMenu:function($0){
var $1=LzSprite.__rootSprite.__contextmenu;var $2=LzSprite.quirks;if(document.elementFromPoint){
var $3=$2.swf8_contextmenu;if(window.pageXOffset){
var $4=$0.pageX-window.top.pageXOffset;var $5=$0.pageY-window.top.pageYOffset
}else{
var $4=$0.clientX;var $5=$0.clientY
};var $6=LzSprite.__rootSprite.__LZdiv;var $7=[];if($2.fix_contextmenu){
$7.push($6,$6.style.display);var $8=$6.style.zIndex;$6.style.zIndex=-1000;var $9=LzSprite.__rootSprite.__LZclickcontainerdiv;var $a=$9.style.zIndex;$7.push($9,$9.style.display);$9.style.zIndex=-9999
};do{
var $b=document.elementFromPoint($4,$5);if(!$b){
break
}else{
var $c=$b.owner;if(!$c){
}else if($c.__contextmenu){
$1=$c.__contextmenu;break
}else if($2.ie_elementfrompoint&&$c.scrolldiv===$b){
}else if($3&&($c.__LZdiv===$b&&$c.bgcolor!=null||$c instanceof LzTextSprite)){
break
};$7.push($b,$b.style.display);$b.style.display="none"
}}while($b!==$6&&$b.tagName!="HTML");for(var $d=$7.length-1;$d>=0;$d-=2){
$7[$d-1].style.display=$7[$d]
};if($2.fix_contextmenu){
$6.style.zIndex=$8;$9.style.zIndex=$a
}}else{
var $e=($0.srcElement||$0.target).owner;if($e){
while($e.__parent){
if($e.__contextmenu){
var $f=$e.getMouse();if($f.x>=0&&$f.x<$e.width&&$f.y>=0&&$f.y<$e.height){
$1=$e.__contextmenu;break
}};$e=$e.__parent
}}};return $1
}};Class.make("LzBrowserKernel",null,null,["loadURL",function($0,$1,$2){
switch(arguments.length){
case 1:
$1=null;
case 2:
$2=null;
};if($1!=null){
if($2!=null){
window.open($0,$1,$2)
}else{
window.open($0,$1)
}}else{
window.location=$0
}},"loadJS",function($0,$1){
LzBrowserKernel.loadURL("javascript:"+$0+";void(0);",$1)
},"callJS",function($0,$1){
var $2=null;var $3=eval($0);var $4=$0.split(".");if($4.length>1){
$4.pop();$2=eval($4.join("."))
};var $5=Array.prototype.slice.call(arguments,2);if($3){
var $6=$3.apply($2,$5)
};if($1&&typeof $1=="function")$1($6);return $6
},"setHistory",function($0){
lz.embed.history.set($0)
},"callMethod",function($0){
return eval($0)
},"getVersion",function(){
return navigator.userAgent
},"getOS",function(){
return navigator.platform
},"getLoadURL",function(){
if(LzSprite.__rootSprite&&LzSprite.__rootSprite._url){
var $0=LzSprite.__rootSprite._url
}else{
var $0=lz.embed.__propcache.url
};if(!$0)$0=new String(window.location);var $1=$0.indexOf(":");var $2=$0.indexOf("/");if($1>-1){
if($0.indexOf("://")==$1){
return $0
}else if($0.charAt($1+1)=="/"){
$0=$0.substring(0,$1+1)+"/"+$0.substring($1+1);return $0
}else{
var $3=new LzURL(new String(window.location));$0=$0.substring(0,$1+1)+"/"+$3.path+$0.substring($1+1);return $0
}}else{
if($2==0){
return $0
}else{
var $4=new String(window.location);var $5=$4.lastIndexOf("/");$4=$4.substring(0,$5+1);return $4+$0
}}},"getInitArg",function($0){
var $1=global;var $2=LzSprite.__rootSprite._id;if($2){
$1=lz.embed.applications[$2].initargs
};if($0==null)return $1;return $1[$0]
},"getLzOption",function($0){
var $1=global;var $2=LzSprite.__rootSprite._id;if($2){
$1=lz.embed.applications[$2].options
};if($0==null)return $1;return $1[$0]
},"getAppID",function(){
return LzSprite.__rootSprite._id
},"isAAActive",function(){
return false
}]);var LzSprite=function($0,$1){
if($0==null)return;this.constructor=arguments.callee;this.owner=$0;this.uid=LzSprite.prototype.uid++;this.aadescriptionDiv=null;this.__csscache={};var $2=this.quirks;if($1){
this.isroot=true;LzSprite.__rootSprite=this;var div=document.createElement("div");div.className="lzcanvasdiv";$2["scrollbar_width"]=LzSprite._getScrollbarWidth();if($2.ie6_improve_memory_performance){
try{
document.execCommand("BackgroundImageCache",false,true)
}
catch($3){}};var $4=lz.embed.__propcache;var $5=LzSprite.__rootSpriteContainer=$4.appenddiv;var $6=$5;$5.style.margin=0;$5.style.padding=0;$5.style.border="0 none";$5.style.overflow="hidden";$5.style.textAlign="left";if($2["container_divs_require_overflow"]){
$6=document.createElement("div");$6.className="lzappoverflow";$5.appendChild($6);$6.owner=this;LzSprite.__rootSpriteOverflowContainer=$6
};if($2.fix_contextmenu){
var $7=document.createElement("div");$7.className="lzcanvascontextdiv";$7.id="lzcanvascontextdiv";$6.appendChild($7);$7.owner=this;this.__LZcontextcontainerdiv=$7
};if($4.bgcolor){
div.style.backgroundColor=$4.bgcolor;this.bgcolor=$4.bgcolor
};if($4.id){
this._id=$4.id
};if($4.url){
this._url=$4.url
};var $8=$4.options;if($8){
this.options=$8
};LzSprite.blankimage=$8.serverroot+LzSprite.blankimage;if($2.use_css_sprites&&$8.usemastersprite){
$2.use_css_master_sprite=$8.usemastersprite;var $9=LzResourceLibrary&&LzResourceLibrary.__allcss&&LzResourceLibrary.__allcss.path;if($9){
LzSprite.__masterspriteurl=LzSprite.__rootSprite.options.approot+$9
}};LzSprite.__defaultStyles.writeCSS($2.write_css_with_createstylesheet);$6.appendChild(div);this.__LZdiv=div;if($2.fix_clickable){
var $a=document.createElement("div");$a.className="lzcanvasclickdiv";$a.id="lzcanvasclickdiv";$6.appendChild($a);this.__LZclickcontainerdiv=$a;LzSprite.__setClickable(true,$6)
};if($2["css_hide_canvas_during_init"]){
var $b="display";var $c="none";if($2["safari_visibility_instead_of_display"]){
$b="visibility";$c="hidden"
};this.__LZdiv.style[$b]=$c;if($2["fix_clickable"])this.__LZclickcontainerdiv.style[$b]=$c;if($2["fix_contextmenu"])this.__LZcontextcontainerdiv.style[$b]=$c
};if($2.activate_on_mouseover){
div.mouseisover=false;div.onmouseover=function($0){
if(LzSprite.quirks.keyboardlistentotop_in_frame){
if(LzSprite.__rootSprite.options.cancelkeyboardcontrol!=true){
LzSprite.quirks.keyboardlistentotop=true;LzKeyboardKernel.setKeyboardControl(true)
}};if(LzSprite.quirks.focus_on_mouseover){
if(LzSprite.prototype.getSelectedText()==""){
div.focus()
}};if(LzInputTextSprite.prototype.__focusedSprite==null)LzKeyboardKernel.setKeyboardControl(true);LzMouseKernel.setMouseControl(true);this.mouseisover=true
};div.onmouseout=function($0){
if(!$0){
$0=window.event;var $1=$0.toElement
}else{
var $1=$0.relatedTarget
};var $2=LzSprite.quirks;if($2.inputtext_anonymous_div){
try{
$1&&$1.parentNode
}
catch($0){
return
}};var $3=false;if($1){
var $4=LzContextMenuKernel.lzcontextmenu;if($1.owner&&$1.className.indexOf("lz")==0){
$3=true
}else if($4&&($1===$4||$1.parentNode===$4)){
$3=true
}};if($3){
var $5=LzMouseKernel.__globalClickable;if($2.fix_ie_clickable){
LzMouseKernel.setGlobalClickable(true)
};if($2.focus_on_mouseover){
if(LzInputTextSprite.prototype.__lastshown==null){
if(LzSprite.prototype.getSelectedText()==""){
div.focus()
}}};LzKeyboardKernel.setKeyboardControl(true);LzMouseKernel.setMouseControl(true);LzMouseKernel.__resetMouse();this.mouseisover=true;if($2.fix_clickable&&!$5&&LzMouseKernel.__globalClickable){
var $6=$0.target||$0.srcElement;if($6){
var $7=$6["owner"];if(LzSprite["$lzsc$isa"]?LzSprite.$lzsc$isa($7):$7 instanceof LzSprite){
$7=$7["owner"]
};if(LzView["$lzsc$isa"]?LzView.$lzsc$isa($7):$7 instanceof LzView){
LzMouseKernel.__sendEvent("onmouseout",$7)
}}}}else{
if($2.focus_on_mouseover){
if(LzInputTextSprite.prototype.__lastshown==null){
if(LzSprite.prototype.getSelectedText()==""){
div.blur()
}}};LzKeyboardKernel.setKeyboardControl(false);LzMouseKernel.setMouseControl(false);this.mouseisover=false
}};if(LzSprite.quirks.keyboardlistentotop_in_frame){
window.onfocus=function($0){
if(LzSprite.__rootSprite.options.cancelkeyboardcontrol!=true){
div.onmouseover()
}}};LzSprite.__mouseActivationDiv=div
};LzFontManager.__createContainerDiv();if($2.prevent_selection){
document.onselectstart=function($0){
if(!$0){
$0=window.event;var $1=$0.srcElement
}else{
var $1=$0.srcElement.parentNode
};if($1.owner instanceof LzTextSprite){
if(!$1.owner.selectable){
return false
}}else{
return false
}}}}else{
this.__LZdiv=document.createElement("div");this.__LZdiv.className="lzdiv"
};this.__LZdiv.owner=this;if($2.ie_leak_prevention){
this.__sprites[this.uid]=this
}};LzSprite.__defaultStyles={lzdiv:{position:"absolute",borderStyle:"solid",borderWidth:0},lzclickdiv:{position:"absolute",borderStyle:"solid",borderColor:"transparent",borderWidth:0},lzcanvasdiv:{position:"absolute"},lzcanvasclickdiv:{zIndex:100000,position:"absolute"},lzcanvascontextdiv:{position:"absolute"},lzappoverflow:{position:"absolute",overflow:"hidden"},lztextcontainer:{position:"absolute",cursor:"default"},lzinputtextcontainer:{position:"absolute",overflow:"hidden"},lzinputtextcontainer_click:{position:"absolute"},lztext:{fontFamily:"Verdana,Vera,sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"11px",whiteSpace:"nowrap",position:"absolute",textAlign:"left",textIndent:0,letterSpacing:0,textDecoration:"none"},lzswftext:{fontFamily:"Verdana,Vera,sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"11px",whiteSpace:"nowrap",position:"absolute",lineHeight:"1.2em",textAlign:"left",textIndent:0,letterSpacing:0,textDecoration:"none",wordWrap:"break-word",MsWordBreak:"break-all",padding:"2px"},lzinputtext:{fontFamily:"Verdana,Vera,sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"11px",width:"100%",height:"100%",borderWidth:0,backgroundColor:"transparent",position:"absolute",textAlign:"left",textIndent:0,letterSpacing:0,textDecoration:"none",whiteSpace:"nowrap"},lzswfinputtext:{fontFamily:"Verdana,Vera,sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"11px",width:"100%",height:"100%",borderWidth:0,backgroundColor:"transparent",position:"absolute",lineHeight:"1.2em",textAlign:"left",textIndent:0,letterSpacing:0,textDecoration:"none",wordWrap:"break-word",MsWordBreak:"break-all",outline:"none",paddingTop:"1px",paddingBottom:"3px",paddingRight:"3px",paddingLeft:"1px",whiteSpace:"nowrap"},lzswfinputtextmultiline:{fontFamily:"Verdana,Vera,sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"11px",width:"100%",height:"100%",borderWidth:0,backgroundColor:"transparent",position:"absolute",overflow:"hidden",lineHeight:"1.2em",textAlign:"left",textIndent:0,letterSpacing:0,textDecoration:"none",wordWrap:"break-word",MsWordBreak:"break-all",outline:"none",whiteSpace:"pre-wrap",paddingTop:"1px",paddingBottom:"3px",paddingRight:"3px",paddingLeft:"1px"},lztextlink:{cursor:"pointer"},lzaccessibilitydiv:{display:"none"},lzcontext:{position:"absolute",borderStyle:"solid",borderColor:"transparent",borderWidth:0},lzimg:{position:"absolute",backgroundRepeat:"no-repeat",border:"0 none"},lzgraphicscanvas:{position:"absolute"},"#lzTextSizeCache":{position:"absolute",top:"-20000px",left:"-20000px"},writeCSS:function($0){
var $1=[];var $2="";for(var $3 in this){
if($3=="writeCSS"||$3=="hyphenate"||$3=="__replace"||$3=="__re")continue;$2+=$3.indexOf("#")==-1?".":"";$2+=$3+"{";for(var $4 in this[$3]){
var $5=this[$3][$4];$2+=this.hyphenate($4)+":"+$5+";"
};$2+="}"
};$2+=LzFontManager.generateCSS();if($0){
if(!document.styleSheets["lzstyles"]){
var $6=document.createStyleSheet();$6.owningElement.id="lzstyles";$6.cssText=$2
}}else{
var $7=document.createElement("style");lz.embed.__setAttr($7,"type","text/css");$7.appendChild(document.createTextNode($2));document.getElementsByTagName("head")[0].appendChild($7)
}},__re:new RegExp("[A-Z]","g"),hyphenate:function($0){
return $0.replace(this.__re,this.__replace)
},__replace:function($0){
return "-"+$0.toLowerCase()
}};LzSprite.__styleNames={borderRadius:"borderRadius",userSelect:"userSelect",transformOrigin:"transformOrigin",transform:"transform",boxShadow:"boxShadow"};LzSprite.prototype.uid=0;LzSprite.quirks={fix_clickable:true,fix_ie_background_height:false,fix_ie_clickable:false,ie_alpha_image_loader:false,ie_leak_prevention:false,prevent_selection:false,ie_elementfrompoint:false,invisible_parent_image_sizing_fix:false,emulate_flash_font_metrics:true,inner_html_strips_newlines:true,inner_html_no_entity_apos:false,css_hide_canvas_during_init:true,firefox_autocomplete_bug:false,hand_pointer_for_clickable:true,alt_key_sends_control:false,safari_textarea_subtract_scrollbar_height:false,no_cursor_colresize:false,safari_visibility_instead_of_display:false,preload_images_only_once:false,absolute_position_accounts_for_offset:false,canvas_div_cannot_be_clipped:false,inputtext_parents_cannot_contain_clip:false,set_height_for_multiline_inputtext:false,ie_opacity:false,text_measurement_use_insertadjacenthtml:false,text_content_use_inner_text:false,text_selection_use_range:false,document_size_use_offsetheight:false,text_ie_carriagereturn:false,ie_paste_event:false,safari_paste_event:false,text_event_charcode:true,keypress_function_keys:true,ie_timer_closure:false,keyboardlistentotop:false,document_size_compute_correct_height:false,ie_mouse_events:false,activate_on_mouseover:true,ie6_improve_memory_performance:false,text_height_includes_padding:false,inputtext_size_includes_margin:false,listen_for_mouseover_out:true,focus_on_mouseover:true,textstyle_on_textdiv:false,textdeco_on_textdiv:false,use_css_sprites:true,preload_images:true,scrollbar_width:15,inputtext_strips_newlines:false,swf8_contextmenu:true,inputtext_anonymous_div:false,clipped_scrollbar_causes_display_turd:false,hasmetakey:true,textgrabsinputtextfocus:false,input_highlight_bug:false,autoscroll_textarea:false,fix_contextmenu:true,size_blank_to_zero:true,has_dom2_mouseevents:false,container_divs_require_overflow:false,fix_ie_css_syntax:false,match_swf_letter_spacing:false,use_css_master_sprite:false,write_css_with_createstylesheet:false,inputtext_use_background_image:false,show_img_before_changing_size:false,use_filter_for_dropshadow:false,keyboardlistentotop_in_frame:false,forcemeasurescrollheight:false,resize2dcanvas:false,textmeasurementalphastring:false,textlinksneedmouseevents:false,dont_clip_clickdivs:false,explicitly_set_border_radius:false,prevent_selection_with_onselectstart:false};LzSprite.prototype.capabilities={rotation:false,scalecanvastopercentage:false,readcanvassizefromsprite:true,opacity:true,colortransform:false,audio:false,accessibility:true,htmlinputtext:false,advancedfonts:false,bitmapcaching:false,persistence:false,clickregion:false,minimize_opacity_changes:false,history:true,runtimemenus:false,setclipboard:false,proxypolicy:false,linescrolling:false,allowfullscreen:false,setid:true,globalfocustrap:false,"2dcanvas":true,dropshadows:false,cornerradius:false,rgba:false,css2boxmodel:true,medialoading:true,backgroundrepeat:true,touchevents:false,directional_layout:false,scaling:false,customcontextmenu:true};LzSprite.__updateQuirks=function(){
var $0=LzSprite.quirks;var $1=LzSprite.prototype.capabilities;var $2=LzSprite.__styleNames;var $3=LzSprite.__defaultStyles;if(window["lz"]&&lz.embed&&lz.embed.browser){
var $4=lz.embed.browser;if($4.isIE){
if($4.version<7){
$0["ie_alpha_image_loader"]=true;$0["document_size_compute_correct_height"]=true;$0["ie6_improve_memory_performance"]=true
}else{
$0["prevent_selection"]=true;$0["invisible_parent_image_sizing_fix"]=true;if($4.osversion>=6){
$0["ie_alpha_image_loader"]=true
};if($4.version>7){
$0["resize2dcanvas"]=true
}};$0["ie_opacity"]=true;$0["ie_timer_closure"]=true;$0["ie_leak_prevention"]=true;$0["fix_ie_clickable"]=true;$0["fix_ie_background_height"]=true;$0["inner_html_no_entity_apos"]=true;$1["minimize_opacity_changes"]=true;$0["set_height_for_multiline_inputtext"]=true;$0["text_measurement_use_insertadjacenthtml"]=true;$0["text_content_use_inner_text"]=true;$0["text_selection_use_range"]=true;$0["text_ie_carriagereturn"]=true;$0["ie_paste_event"]=true;$0["keypress_function_keys"]=false;$0["text_event_charcode"]=false;$0["ie_mouse_events"]=true;$0["inputtext_size_includes_margin"]=true;$0["focus_on_mouseover"]=false;$0["textstyle_on_textdiv"]=true;$0["use_css_sprites"]=!$0["ie_alpha_image_loader"];$0["textgrabsinputtextfocus"]=true;$0["ie_elementfrompoint"]=true;$0["fix_ie_css_syntax"]=true;$0["write_css_with_createstylesheet"]=true;$0["hasmetakey"]=false;$0["inputtext_use_background_image"]=true;$0["show_img_before_changing_size"]=true;$0["use_filter_for_dropshadow"]=true;$0["forcemeasurescrollheight"]=true;$3["lzswfinputtext"].resize="none";$3["lzswfinputtextmultiline"].resize="none";$1["dropshadows"]=true;$3["#lzTextSizeCache"].zoom=1;$3["#lzTextSizeCache"].position="relative";$0["prevent_selection_with_onselectstart"]=true
}else if($4.isSafari||$4.isChrome){
$2.borderRadius="WebkitBorderRadius";$2.borderTopLeftRadius="WebkitBorderTopLeftRadius";$2.borderTopRightRadius="WebkitBorderTopRightRadius";$2.borderBottomRightRadius="WebkitBorderBottomRightRadius";$2.borderBottomLeftRadius="WebkitBorderBottomLeftRadius";$2.boxShadow="WebkitBoxShadow";$2.userSelect="WebkitUserSelect";$2.transform="WebkitTransform";$2.transformOrigin="WebkitTransformOrigin";$0["safari_visibility_instead_of_display"]=true;$0["absolute_position_accounts_for_offset"]=true;if($4.version<525.18){
$0["canvas_div_cannot_be_clipped"]=true;$0["invisible_parent_image_sizing_fix"]=true;$0["safari_textarea_subtract_scrollbar_height"]=true
};$0["document_size_use_offsetheight"]=true;if($4.version>523.1){
$1["rotation"]=true;$1["scaling"]=true;$1["dropshadows"]=true;$1["cornerradius"]=true;$0["explicitly_set_border_radius"]=true;$1["rgba"]=true
};$0["safari_paste_event"]=true;$0["keypress_function_keys"]=false;if($4.version<523.15){
$0["keyboardlistentotop"]=true
};if(window.top!==window){
$0["keyboardlistentotop_in_frame"]=true
};if($4.version>=530.19){
$1["threedtransform"]=true
};if($4.isIphone){
$0["canvas_div_cannot_be_clipped"]=true;$1["touchevents"]=true
};$0["inputtext_strips_newlines"]=true;$0["prevent_selection"]=true;$0["container_divs_require_overflow"]=true;$0["forcemeasurescrollheight"]=true;$3.lzswfinputtext.paddingTop="0px";$3.lzswfinputtext.paddingBottom="2px";$3.lzswfinputtext.paddingLeft="1px";$3.lzswfinputtext.paddingRight="3px";$3.lzswfinputtextmultiline.paddingTop="2px";$3.lzswfinputtextmultiline.paddingBottom="2px";$3.lzswfinputtextmultiline.paddingLeft="2px";$3.lzswfinputtextmultiline.paddingRight="2px"
}else if($4.isOpera){
$0["invisible_parent_image_sizing_fix"]=true;$0["no_cursor_colresize"]=true;$0["absolute_position_accounts_for_offset"]=true;$0["canvas_div_cannot_be_clipped"]=true;$0["document_size_use_offsetheight"]=true;$0["text_event_charcode"]=false;$0["textdeco_on_textdiv"]=true;$0["text_ie_carriagereturn"]=true;$0["textmeasurementalphastring"]=true;if($4.version>=10.6){
$3.lzswftext.wordWrap="normal";$3.lzswfinputtext.wordWrap="normal";$3.lzswfinputtextmultiline.wordWrap="normal";$0["dont_clip_clickdivs"]=true
}}else if($4.isFirefox){
$2.borderRadius="MozBorderRadius";$2.boxShadow="MozBoxShadow";$2.userSelect="MozUserSelect";$2.transform="MozTransform";$2.transformOrigin="MozTransformOrigin";$0["inputtext_anonymous_div"]=true;if($4.OS=="Windows"){
$0["clipped_scrollbar_causes_display_turd"]=true;$0["input_highlight_bug"]=true
};if($4.version<2){
$0["firefox_autocomplete_bug"]=true
}else if($4.version<3){
$3.lzswftext.lineHeight="119%";$3.lzswfinputtext.lineHeight="119%";$3.lzswfinputtextmultiline.lineHeight="119%"
}else if($4.version<4){
if($4.subversion<6){
$0["text_height_includes_padding"]=true
};if($4.version<3.5){
$0["container_divs_require_overflow"]=true
}};$0["autoscroll_textarea"]=true;if($4.version>=3.5){
$1["rotation"]=true;$1["scaling"]=true
};if($4.version>=3.1){
$1["dropshadows"]=true;$1["cornerradius"]=true;$1["rgba"]=true
}};if($4.OS=="Mac"){
$0["detectstuckkeys"]=true;$0["alt_key_sends_control"]=true;$0["match_swf_letter_spacing"]=true
};if($4.OS=="Android"){
$1["touchevents"]=true
};if($0["hand_pointer_for_clickable"]){
$3.lzclickdiv.cursor="pointer"
};if($0["inner_html_strips_newlines"]==true){
LzSprite.prototype.inner_html_strips_newlines_re=RegExp("$","mg")
};$3.lzimg[$2.userSelect]="none";if($1.rotation){
$3.lzdiv[$2.transformOrigin]="0 0"
};if($0["inputtext_use_background_image"]){
$3.lzinputtext["background"]=$3.lzswfinputtext["background"]=$3.lzswfinputtextmultiline["background"]="url("+LzSprite.blankimage+")"
};LzSprite.prototype.br_to_newline_re=RegExp("
","mg");if(lz.BrowserUtils.hasFeature("mouseevents","2.0")){
$0["has_dom2_mouseevents"]=true
};if($0["match_swf_letter_spacing"]){
$3.lzswftext.letterSpacing=$3.lzswfinputtext.letterSpacing=$3.lzswfinputtextmultiline.letterSpacing="0.01em"
}};LzSprite.prototype.quirks=$0
};LzSprite._getScrollbarWidth=function(){
var $0=document.createElement("div");$0.style.width="50px";$0.style.height="50px";$0.style.overflow="hidden";$0.style.position="absolute";$0.style.top="-200px";$0.style.left="-200px";var $1=document.createElement("div");$1.style.height="100px";$0.appendChild($1);var $2=document.body;$2.appendChild($0);var $3=$0.clientWidth;$0.style.overflowY="scroll";var $4=$0.clientWidth;LzSprite.prototype.__discardElement($0);return $3-$4
};LzSprite.__updateQuirks();LzSprite.setRootX=function($0){
var $1=LzSprite.__rootSpriteContainer;$1.style.position="absolute";$1.style.left=LzSprite.prototype.CSSDimension($0);setTimeout(LzScreenKernel.__resizeEvent,0)
};LzSprite.setRootWidth=function($0){
LzSprite.__rootSpriteContainer.style.width=LzSprite.prototype.CSSDimension($0);setTimeout(LzScreenKernel.__resizeEvent,0)
};LzSprite.setRootY=function($0){
var $1=LzSprite.__rootSpriteContainer;$1.style.position="absolute";$1.style.top=LzSprite.prototype.CSSDimension($0);setTimeout(LzScreenKernel.__resizeEvent,0)
};LzSprite.setRootHeight=function($0){
LzSprite.__rootSpriteContainer.style.height=LzSprite.prototype.CSSDimension($0);setTimeout(LzScreenKernel.__resizeEvent,0)
};LzSprite.prototype.__LZdiv=null;LzSprite.prototype.__LZimg=null;LzSprite.prototype.__LZclick=null;LzSprite.prototype.x=null;LzSprite.prototype.y=null;LzSprite.prototype.opacity=1;LzSprite.prototype.width=null;LzSprite.prototype.height=null;LzSprite.prototype.playing=false;LzSprite.prototype.clickable=false;LzSprite.prototype.frame=1;LzSprite.prototype.frames=null;LzSprite.blankimage="lps/includes/blank.gif";LzSprite.prototype.resource=null;LzSprite.prototype.source=null;LzSprite.prototype.visible=true;LzSprite.prototype.clip=null;LzSprite.prototype.stretches=null;LzSprite.prototype.resourceWidth=null;LzSprite.prototype.resourceHeight=null;LzSprite.prototype.cursor=null;LzSprite.prototype._w="0pt";LzSprite.prototype._h="0pt";LzSprite.prototype.__LZcontext=null;LzSprite.prototype.initted=false;LzSprite.prototype.init=function($0){
this.setVisible($0);if(this.isroot){
if(this.quirks["css_hide_canvas_during_init"]){
var $1="display";if(this.quirks["safari_visibility_instead_of_display"]){
$1="visibility"
};this.__LZdiv.style[$1]="";if(this.quirks["fix_clickable"])this.__LZclickcontainerdiv.style[$1]="";if(this.quirks["fix_contextmenu"])this.__LZcontextcontainerdiv.style[$1]=""
};if(this._id){
lz.embed[this._id]._ready(this.owner)
}};this.initted=true
};LzSprite.prototype.__topZ=1;LzSprite.prototype.__parent=null;LzSprite.prototype.__children=null;LzSprite.prototype.addChildSprite=function($0){
if($0.__parent!=null)return;$0.__parent=this;if(this.__children){
this.__children.push($0)
}else{
this.__children=[$0]
};this.__LZdiv.appendChild($0.__LZdiv);if($0.__LZclickcontainerdiv){
if(!this.__LZclickcontainerdiv){
this.__LZclickcontainerdiv=this.__createContainerDivs("click")
};this.__LZclickcontainerdiv.appendChild($0.__LZclickcontainerdiv)
};$0.__setZ(++this.__topZ)
};LzSprite.prototype.setResource=function($0){
if(this.resource==$0)return;this.resource=$0;if($0.indexOf("http:")==0||$0.indexOf("https:")==0){
this.skiponload=false;this.setSource($0);return
};var $1=LzResourceLibrary[$0];if($1){
this.resourceWidth=$1.width;this.resourceHeight=$1.height;if(this.quirks.use_css_sprites){
if(this.quirks.use_css_master_sprite&&$1.spriteoffset!=null){
this.__csssprite=LzSprite.__masterspriteurl;this.__cssspriteoffset=$1.spriteoffset
}else if($1.sprite){
this.__csssprite=this.getBaseUrl($1)+$1.sprite;this.__cssspriteoffset=0
}}else{
this.__csssprite=null;if(this.__bgimage)this.__setBGImage(null)
}};var $2=this.getResourceUrls($0);this.owner.resourceevent("totalframes",$2.length);this.frames=$2;if(this.quirks.preload_images&&!(this.stretches==null&&this.__csssprite)){
this.__preloadFrames()
};this.skiponload=true;this.setSource($2[0],true)
};LzSprite.prototype.getResourceUrls=function($0){
var $1=[];var $2=LzResourceLibrary[$0];if(!$2){
return $1
};var $3=this.getBaseUrl($2);for(var $4=0;$4<$2.frames.length;$4++){
$1[$4]=$3+$2.frames[$4]
};return $1
};LzSprite.prototype.getBaseUrl=function($0){
return LzSprite.__rootSprite.options[$0.ptype=="sr"?"serverroot":"approot"]
};LzSprite.prototype.CSSDimension=LzKernelUtils.CSSDimension;LzSprite.prototype.loading=false;LzSprite.prototype.setSource=function($0,$1){
if($0==null||$0=="null"){
this.unload();return
};if(this.quirks.size_blank_to_zero){
if(this.__sizedtozero&&$0!=null){
this.__restoreSize()
}};if($1=="reset"){
$1=false
}else if($1!=true){
this.skiponload=false;this.resource=$0;if(this.playing)this.stop();this.__updateLoadStatus(0);this.__csssprite=null;if(this.__bgimage)this.__setBGImage(null)
};if($1=="memorycache"){
$1=true
};if(this.loading){
if(this.__ImgPool&&this.source){
this.__ImgPool.flush(this.source)
};this.__destroyImage(null,this.__LZimg);this.__LZimg=null
};this.source=$0;if(this.backgroundrepeat){
this.__createIMG();this.__setBGImage($0);this.__updateBackgroundRepeat();this.owner.resourceload({width:this.resourceWidth,height:this.resourceHeight,resource:this.resource,skiponload:this.skiponload});return
}else if(this.stretches==null&&this.__csssprite){
this.__createIMG();this.__updateStretches();this.__setBGImage(this.__csssprite);this.owner.resourceload({width:this.resourceWidth,height:this.resourceHeight,resource:this.resource,skiponload:this.skiponload});return
};if(!this.quirks.preload_images){
this.owner.resourceload({width:this.resourceWidth,height:this.resourceHeight,resource:this.resource,skiponload:this.skiponload})
};this.loading=true;if(!this.__ImgPool){
this.__ImgPool=new LzPool(LzSprite.prototype.__getImage,LzSprite.prototype.__gotImage,LzSprite.prototype.__destroyImage,this)
};var $2=this.__ImgPool.get($0,$1!=true);this.__bindImage($2);if(this.loading){
if(this.skiponload&&this.quirks.ie_alpha_image_loader)this.__updateIEAlpha($2)
}else{
if(this.quirks.ie_alpha_image_loader){
this.__updateIEAlpha($2)
}else if(this.stretches){
this.__updateStretches()
}};if(this.clickable)this.setClickable(true)
};LzSprite.prototype.__bindImage=function($0){
if(this.__LZimg&&this.__LZimg.owner){
this.__LZdiv.replaceChild($0,this.__LZimg);this.__LZimg=$0
}else{
this.__LZimg=$0;this.__LZdiv.appendChild(this.__LZimg)
};if(this.cornerradius!=null){
this.__applyCornerRadius($0)
}};LzSprite.prototype.__setBGImage=function($0){
if(this.__LZimg){
var $1=$0?"url('"+$0+"')":null;this.__bgimage=this.__LZimg.style.backgroundImage=$1
};if($1!=null){
var $2=-this.__cssspriteoffset||0;this.__LZimg.style.backgroundPosition="0 "+$2+"px"
}};LzSprite.prototype.__createIMG=function(){
if(!this.__LZimg){
var $0=document.createElement("img");$0.className="lzimg";$0.owner=this;$0.src=LzSprite.blankimage;this.__bindImage($0)
}};if(LzSprite.quirks.ie_alpha_image_loader){
LzSprite.prototype.__updateIEAlpha=function($0){
var $1=this.resourceWidth;var $2=this.resourceHeight;if(this.stretches=="both"){
$1="100%";$2="100%"
}else if(this.stretches=="width"){
$1="100%"
}else if(this.stretches=="height"){
$2="100%"
};if($1==null)$1=this.width==null?"100%":this.CSSDimension(this.width);if($2==null)$2=this.height==null?"100%":this.CSSDimension(this.height);$0.style.width=$1;$0.style.height=$2
}};LzSprite.prototype.setClickable=function($0){
$0=!(!$0);if(this.clickable===$0)return;if(!this.__LZclickcontainerdiv){
this.__LZclickcontainerdiv=this.__createContainerDivs("click")
};if(this.__LZimg!=null){
if(!this.__LZclick){
if(this.quirks.fix_ie_clickable){
this.__LZclick=document.createElement("img");this.__LZclick.src=LzSprite.blankimage
}else{
this.__LZclick=document.createElement("div")
};this.__LZclick.owner=this;this.__LZclick.className="lzclickdiv";this.__LZclick.style.width=this._w;this.__LZclick.style.height=this._h;if(this.quirks.fix_clickable){
this.__LZclickcontainerdiv.appendChild(this.__LZclick)
}else{
this.__LZdiv.appendChild(this.__LZclick)
}};if(this.quirks.fix_clickable){
if(this.quirks.fix_ie_clickable){
var $1=$0&&this.visible?"":"none";this.__LZclickcontainerdiv.style.display=$1;this.__LZclick.style.display=$1
}else{
this.__LZclick.style.display=$0?"":"none"
}}}else{
if(this.quirks.fix_clickable){
if(!this.__LZclick){
if(this.quirks.fix_ie_clickable){
this.__LZclick=document.createElement("img");this.__LZclick.src=LzSprite.blankimage
}else{
this.__LZclick=document.createElement("div")
};this.__LZclick.owner=this;this.__LZclick.className="lzclickdiv";this.__LZclick.style.width=this._w;this.__LZclick.style.height=this._h;this.__LZclickcontainerdiv.appendChild(this.__LZclick)
};if(this.quirks.fix_ie_clickable){
this.__LZclick.style.display=$0&&this.visible?"":"none"
}else{
this.__LZclick.style.display=$0?"":"none"
}}};this.clickable=$0
};LzSprite.__setClickable=function($0,$1){
if($1._clickable===$0)return;$1._clickable=$0;var $2=$0?LzSprite.__clickDispatcher:null;if(LzSprite.prototype.capabilities.touchevents){
$1.ontouchstart=$2;$1.ontouchmove=$2;$1.ontouchend=$2
}else{
$1.onclick=$2;$1.onmousedown=$2;$1.onmouseup=$2;$1.onmousemove=$2;if(LzSprite.quirks.listen_for_mouseover_out){
$1.onmouseover=$2;$1.onmouseout=$2
};if(LzSprite.quirks.ie_mouse_events){
$1.ondrag=$2;$1.ondblclick=$2
}}};LzSprite.__clickDispatcher=function($0){
$0=$0||window.event;$0.cancelBubble=true;if($0.button===2){
return LzMouseKernel.__handleContextMenu($0)
};if(LzKeyboardKernel&&LzKeyboardKernel["__updateControlKeys"]){
LzKeyboardKernel.__updateControlKeys($0);if(LzKeyboardKernel.__cancelKeys){
$0.cancelBubble=true
}};if(LzMouseKernel.__sendMouseMove($0)){
return
};var $1=$0.target||$0.srcElement;var $2=$1&&$1.owner;if(!$2){
return
};var $3="on"+$0.type;if(LzSprite.quirks.ie_mouse_events){
if($3==="onmouseenter"){
$3="onmouseover"
}else if($3==="onmouseleave"){
$3="onmouseout"
}else if($3==="ondblclick"){
$2.__mouseEvent("onmousedown");$2.__mouseEvent("onmouseup");$2.__mouseEvent("onclick");return false
}else if($3==="ondrag"){
return false
}};if(LzSprite.prototype.capabilities.touchevents){
if($3==="ontouchstart"){
if($0.touches.length!=1){
return true
};$3="onmousedown";$2.__mouseEvent("onmouseover");$2.__mouseEvent("onmousedown")
}else if($3==="ontouchmove"){
if($0.touches.length!=1){
return true
};LzMouseKernel.__sendMouseMove($0);$3="onmousemove"
}else if($3==="ontouchend"){
if($0.touches.length!=0){
return true
};$3="onmouseup";$0.cancelBubble=false;var $4=lz.BrowserUtils.getcallbackfunc($2,"__mouseEvent",["onmouseout"]);setTimeout($4,0);var $4=lz.BrowserUtils.getcallbackfunc($2,"__mouseEvent",["onclick"]);setTimeout($4,0)
}else{
return true
}};if($2.isroot===true){
if($3==="onmouseup"){
var $5=LzMouseKernel.__lastMouseDown;if($5&&$5!==$2){
$5.__globalmouseup($0)
};var $6=LzInputTextSprite.prototype.__focusedSprite;if($6&&$6!==$2){
$6.deselect()
}};LzMouseKernel.__sendEvent($3,null);return false
};if($2 instanceof LzInputTextSprite&&$2.selectable===true){
if($3==="onmousedown"){
LzInputTextSprite.prototype.__focusedSprite=$2
}else if($3==="onmouseout"){
if(!$2.__isMouseOver()){
$2.__hide()
}}else{
$2.__show()
};if($3!=="onmouseout"){
$2.__mouseEvent($3)
};return
};if($3=="onmousedown"){
$2.__mouseisdown=true;LzMouseKernel.__lastMouseDown=$2
}else if($3==="onmouseup"){
var $5=LzMouseKernel.__lastMouseDown;if($5&&$5!==$2){
$5.__globalmouseup($0)
};var $6=LzInputTextSprite.prototype.__focusedSprite;if($6&&$6!==$2){
$6.deselect()
};if(LzMouseKernel.__lastMouseDown!==$2){
return
}else{
$2.__mouseisdown=false;LzMouseKernel.__lastMouseDown=null
};$0.cancelBubble=false
};return $2.__mouseEvent($3)||false
};LzSprite.prototype.__mouseisdown=false;LzSprite.prototype.__mouseEvent=function($0){
if($0=="onmousedown"){
var $1=LzInputTextSprite.prototype.__focusedSprite;if($1&&$1!=this){
$1.deselect()
}}else if($0=="onmouseover"){
LzMouseKernel.__lastMouseOver=this;if(this.quirks.activate_on_mouseover){
var $2=LzSprite.__mouseActivationDiv;if(!$2.mouseisover){
$2.onmouseover()
}}};if(this.owner.mouseevent){
if(LzMouseKernel.__lastMouseDown){
if($0==="onmouseover"||$0==="onmouseout"){
var $3=LzMouseKernel.__lastMouseDown===this;if($0=="onmouseover"){
LzMouseKernel.__lastMouseOver=this
}else if($3&&LzMouseKernel.__lastMouseOver===this){
LzMouseKernel.__lastMouseOver=null
};if($3){
LzMouseKernel.__sendEvent($0,this.owner);var $4=$0=="onmouseover"?"onmousedragin":"onmousedragout";LzMouseKernel.__sendEvent($4,this.owner)
};return
}};if(this.quirks.fix_clickable&&!LzMouseKernel.__globalClickable){
if(lz["html"]&&this.owner&&(lz.html["$lzsc$isa"]?lz.html.$lzsc$isa(this.owner):this.owner instanceof lz.html)&&($0=="onmouseout"||$0=="onmouseover")){
return
}};LzMouseKernel.__sendEvent($0,this.owner)
}};LzSprite.prototype.__isMouseOver=function($0){
var $1=this.getMouse();var $2=this.__findParents("visible",false,true);if($2.length)return false;return $1.x>=0&&$1.y>=0&&$1.xthis.frames.length?1:this.frame+1;this.__setFrame($0)
};if(LzSprite.quirks.preload_images_only_once){
LzSprite.prototype.__preloadurls={}};LzSprite.prototype.__preloadFrames=function(){
if(!this.__ImgPool){
this.__ImgPool=new LzPool(LzSprite.prototype.__getImage,LzSprite.prototype.__gotImage,LzSprite.prototype.__destroyImage,this)
};var $0=this.frames.length;for(var $1=0;$1<$0;$1++){
var $2=this.frames[$1];if(this.quirks.preload_images_only_once){
if($1>0&&LzSprite.prototype.__preloadurls[$2]){
continue
};LzSprite.prototype.__preloadurls[$2]=true
};var $3=this.__ImgPool.get($2,false,true);if(this.quirks.ie_alpha_image_loader){
this.__updateIEAlpha($3)
}}};LzSprite.prototype.__findParents=function($0,$1,$2){
var $3=[];var $4=LzSprite.__rootSprite;var $5=this;while($5&&$5!==$4){
if($5[$0]==$1){
$3.push($5);if($2)return $3
};$5=$5.__parent
};return $3
};LzSprite.prototype.__imgonload=function($0,$1){
if(this.loading!=true)return;if(this.__imgtimoutid!=null){
clearTimeout(this.__imgtimoutid);this.__imgtimoutid=null
};this.loading=false;if(!$1){
if(this.quirks.ie_alpha_image_loader){
$0._parent.style.display=""
}else{
$0.style.display=""
}};this.resourceWidth=$1&&$0["__LZreswidth"]?$0.__LZreswidth:$0.width;this.resourceHeight=$1&&$0["__LZresheight"]?$0.__LZresheight:$0.height;if(!$1){
if(this.quirks.invisible_parent_image_sizing_fix&&this.resourceWidth==0){
var $2=function($0){
this.resourceWidth=$0.width;this.resourceHeight=$0.height
};this.__processHiddenParents($2,$0)
};if(this.quirks.ie_alpha_image_loader){
$0._parent.__lastcondition="__imgonload"
}else{
$0.__lastcondition="__imgonload";$0.__LZreswidth=this.resourceWidth;$0.__LZresheight=this.resourceHeight
};if(this.quirks.ie_alpha_image_loader){
this.__updateIEAlpha(this.__LZimg)
}else if(this.stretches){
this.__updateStretches()
}};this.owner.resourceload({width:this.resourceWidth,height:this.resourceHeight,resource:this.resource,skiponload:this.skiponload});if(this.skiponload!=true){
this.__updateLoadStatus(1)
};if(this.quirks.ie_alpha_image_loader){
this.__clearImageEvents(this.__LZimg)
}else{
this.__clearImageEvents($0)
}};LzSprite.prototype.__processHiddenParents=function($0){
var $1=this.__findParents("visible",false);var $2=$1.length;for(var $3=0;$3<$2;$3++){
$1[$3].__LZdiv.style.display=""
};var $4=Array.prototype.slice.call(arguments,1);var $5=$0.apply(this,$4);for(var $3=0;$3<$2;$3++){
var $6=$1[$3];$6.__LZdiv.style.display=$6.__csscache.__LZdivdisplay||""
};return $5
};LzSprite.prototype.__imgonerror=function($0,$1){
if(this.loading!=true)return;if(this.__imgtimoutid!=null){
clearTimeout(this.__imgtimoutid);this.__imgtimoutid=null
};this.loading=false;this.resourceWidth=1;this.resourceHeight=1;if(!$1){
if(this.quirks.ie_alpha_image_loader){
$0._parent.__lastcondition="__imgonerror"
}else{
$0.__lastcondition="__imgonerror"
};if(this.quirks.ie_alpha_image_loader){
this.__updateIEAlpha(this.__LZimg)
}else if(this.stretches){
this.__updateStretches()
}};this.owner.resourceloaderror();if(this.skiponload!=true){
this.__updateLoadStatus(0)
};if(this.quirks.ie_alpha_image_loader){
this.__clearImageEvents(this.__LZimg)
}else{
this.__clearImageEvents($0)
}};LzSprite.prototype.__imgontimeout=function($0,$1){
if(this.loading!=true)return;this.__imgtimoutid=null;this.loading=false;this.resourceWidth=1;this.resourceHeight=1;if(!$1){
if(this.quirks.ie_alpha_image_loader){
$0._parent.__lastcondition="__imgontimeout"
}else{
$0.__lastcondition="__imgontimeout"
};if(this.quirks.ie_alpha_image_loader){
this.__updateIEAlpha(this.__LZimg)
}else if(this.stretches){
this.__updateStretches()
}};this.owner.resourceloadtimeout();if(this.skiponload!=true){
this.__updateLoadStatus(0)
};if(this.quirks.ie_alpha_image_loader){
this.__clearImageEvents(this.__LZimg)
}else{
this.__clearImageEvents($0)
}};LzSprite.prototype.__updateLoadStatus=function($0){
this.owner.resourceevent("loadratio",$0);this.owner.resourceevent("framesloadratio",$0)
};LzSprite.prototype.__destroyImage=function($0,$1){
if($1){
if($1.owner){
var $2=$1.owner;if($2.__imgtimoutid!=null){
clearTimeout($2.__imgtimoutid);$2.__imgtimoutid=null
};lz.BrowserUtils.removecallback($2)
};LzSprite.prototype.__clearImageEvents($1);LzSprite.prototype.__discardElement($1)
};if(LzSprite.quirks.preload_images_only_once){
LzSprite.prototype.__preloadurls[$0]=null
}};LzSprite.prototype.__clearImageEvents=function($0){
if(!$0||$0.__cleared)return;if(LzSprite.quirks.ie_alpha_image_loader){
var $1=$0.sizer;if($1){
if($1.tId)clearTimeout($1.tId);$1.onerror=null;$1.onload=null;$1.onloadforeal=null;$1._parent=null;var $2={width:$1.width,height:$1.height,src:$1.src};LzSprite.prototype.__discardElement($1);$0.sizer=$2
}}else{
$0.onerror=null;$0.onload=null
};$0.__cleared=true
};LzSprite.prototype.__gotImage=function($0,$1,$2){
if(this.owner.skiponload||$2==true){
this.owner[$1.__lastcondition]({width:this.owner.resourceWidth,height:this.owner.resourceHeight},true)
}else{
if(LzSprite.quirks.ie_alpha_image_loader){
this.owner[$1.__lastcondition]($1.sizer,true)
}else{
this.owner[$1.__lastcondition]($1,true)
}}};LzSprite.prototype.__getImage=function($0,$1){
if(LzSprite.quirks.ie_alpha_image_loader){
var im=document.createElement("div");im.style.overflow="hidden";if(this.owner&&$1!=true){
im.owner=this.owner;if(!im.sizer){
im.sizer=document.createElement("img");im.sizer._parent=im
};im.sizer.onload=function(){
im.sizer.tId=setTimeout(this.onloadforeal,1)
};im.sizer.onloadforeal=lz.BrowserUtils.getcallbackfunc(this.owner,"__imgonload",[im.sizer]);im.sizer.onerror=lz.BrowserUtils.getcallbackfunc(this.owner,"__imgonerror",[im.sizer]);var $2=lz.BrowserUtils.getcallbackfunc(this.owner,"__imgontimeout",[im.sizer]);this.owner.__imgtimoutid=setTimeout($2,LzSprite.medialoadtimeout);im.sizer.src=$0
};if(!$1)im.style.display="none";if(this.owner.stretches){
im.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+$0+"',sizingMethod='scale')"
}else{
im.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+$0+"')"
}}else{
var im=document.createElement("img");im.className="lzimg";if(!$1)im.style.display="none";if(this.owner&&$1!=true){
im.owner=this.owner;im.onload=lz.BrowserUtils.getcallbackfunc(this.owner,"__imgonload",[im]);im.onerror=lz.BrowserUtils.getcallbackfunc(this.owner,"__imgonerror",[im]);var $2=lz.BrowserUtils.getcallbackfunc(this.owner,"__imgontimeout",[im]);this.owner.__imgtimoutid=setTimeout($2,LzSprite.medialoadtimeout)
};im.src=$0
};if(im)im.__lastcondition="__imgonload";return im
};LzSprite.prototype.setClip=function($0){
if(this.clip===$0)return;this.clip=$0;if(this.quirks.size_blank_to_zero){
if(this.__sizedtozero&&$0){
this.__restoreSize()
}};this.__updateClip()
};LzSprite.prototype._clip="";LzSprite.prototype.__updateClip=function(){
var $0=this.quirks;if(this.isroot&&this.quirks.canvas_div_cannot_be_clipped)return;var $1="";if(this.clip&&this.width!=null&&this.width>=0&&this.height!=null&&this.height>=0){
$1="rect(0px "+this._w+" "+this._h+" 0px)"
}else if(this._clip){
$1=$0.fix_ie_css_syntax?"rect(auto auto auto auto)":""
};if($1!==this._clip){
this._clip=$1;this.__LZdiv.style.clip=$1
}else{
return
};if($0.fix_clickable&&$0.dont_clip_clickdivs!=true){
if(this.__LZclickcontainerdiv){
this.__LZclickcontainerdiv.style.clip=$1
}};if($0.fix_contextmenu&&this.__LZcontextcontainerdiv){
this.__LZcontextcontainerdiv.style.clip=$1
}};LzSprite.prototype.stretchResource=function($0){
$0=$0!="none"?$0:null;if(this.stretches==$0)return;this.stretches=$0;if(!($0==null&&this.__csssprite)&&this.__bgimage){
if(this.quirks.preload_images)this.__preloadFrames();this.__setBGImage(null);this.__setFrame(this.frame,true)
};this.__updateStretches()
};LzSprite.prototype.__updateStretches=function(){
if(this.loading)return;var $0=this.quirks;if($0.ie_alpha_image_loader)return;var $1=this.__LZimg;if($1){
if($0.show_img_before_changing_size){
var $2=$1.style;var $3=$2.display;$2.display="none"
};if(this.stretches=="both"){
$1.width=this.width;$1.height=this.height
}else if(this.stretches=="height"){
$1.width=this.resourceWidth;$1.height=this.height
}else if(this.stretches=="width"){
$1.width=this.width;$1.height=this.resourceHeight
}else{
$1.width=this.resourceWidth;$1.height=this.resourceHeight
};if($0.show_img_before_changing_size){
$2.display=$3
}}};LzSprite.prototype.predestroy=function(){};LzSprite.prototype.destroy=function($0){
switch(arguments.length){
case 0:
$0=true;
};if(this.__LZdeleted==true)return;this.__LZdeleted=true;if($0){
if(this.__parent){
var $1=this.__parent.__children;for(var $2=$1.length-1;$2>=0;$2--){
if($1[$2]===this){
$1.splice($2,1);break
}}}};if(this.__ImgPool)this.__ImgPool.destroy();if(this.__LZimg)this.__discardElement(this.__LZimg);this.__skipdiscards=$0!=true;if(this.__LZclick){
this.__discardElement(this.__LZclick)
};if(this.__LzInputDiv){
this.__setTextEvents(false);this.__discardElement(this.__LzInputDiv)
};if(this.__LZdiv){
if(this.isroot){
if(this.quirks.activate_on_mouseover){
this.__LZdiv.onmouseover=null;this.__LZdiv.onmouseout=null
};if(LzSprite.quirks.prevent_selection){
this.__LZdiv.onselectstart=null
}};if(LzSprite.quirks.prevent_selection_with_onselectstart){
if(this.selectable){
this.setSelectable(false)
}};this.__discardElement(this.__LZdiv)
};if(this.__LZinputclickdiv){
this.__discardElement(this.__LZinputclickdiv)
};if(this.__LZclickcontainerdiv){
this.__discardElement(this.__LZclickcontainerdiv)
};if(this.__LZcontextcontainerdiv){
this.__discardElement(this.__LZcontextcontainerdiv)
};if(this.__LZcontext){
this.__discardElement(this.__LZcontext)
};if(this.__LZtextdiv){
this.__discardElement(this.__LZtextdiv)
};if(this.__LZcanvas){
if(this.quirks.ie_leak_prevention){
this.__LZcanvas.owner=null;this.__LZcanvas.getContext=null
};this.__discardElement(this.__LZcanvas)
};this.__ImgPool=null;if(this.quirks.ie_leak_prevention){
delete this.__sprites[this.uid]
};if(this.isroot){
lz.BrowserUtils.scopes=null
}};LzSprite.prototype.getMouse=function(){
var $0=this.__getPos();return {x:LzMouseKernel.__x-$0.x,y:LzMouseKernel.__y-$0.y}};LzSprite.prototype.__poscache=null;LzSprite.prototype.__poscacheid=0;LzSprite.__poscachecnt=0;LzSprite.prototype.__getPos=function(){
if(!LzSprite.__rootSprite.initted){
return lz.embed.getAbsolutePosition(this.__LZdiv)
};var $0=false;var $1=true;var $2=LzSprite.__rootSprite;var $3,$4;for(var $5=this;$5!==$2;$5=$3){
$3=$5.__parent;if($3){
if($5.__poscacheid<$3.__poscacheid){
$0=true;$4=$3
}}else{
$1=false;break
}};if($0&&$1){
var $6=++LzSprite.__poscachecnt;for(var $5=this;$5!==$4;$5=$5.__parent){
$5.__poscache=null;$5.__poscacheid=$6
}};var $7=this.__poscache;if(!$7){
$7=this.__processHiddenParents(lz.embed.getAbsolutePosition,this.__LZdiv);if($1){
this.__poscache=$7
}};return $7
};LzSprite.prototype.getWidth=function(){
var $0=this.__LZdiv.clientWidth;return $0==0?this.width:$0
};LzSprite.prototype.getHeight=function(){
var $0=this.__LZdiv.clientHeight;return $0==0?this.height:$0
};LzSprite.prototype.setCursor=function($0){
if(this.quirks.no_cursor_colresize){
return
};if($0===this.cursor)return;if(this.clickable!==true)this.setClickable(true);this.cursor=$0;if(this.quirks.fix_clickable){
this.__LZclick.style.cursor=LzSprite.__defaultStyles.hyphenate($0)
}};LzSprite.prototype.setShowHandCursor=function($0){
if($0==true){
this.setCursor("pointer")
}else{
this.setCursor("default")
}};LzSprite.prototype.getDisplayObject=function(){
return this.__LZdiv
};LzSprite.prototype.__LZcanvas=null;LzSprite.prototype.getContext=function(){
if(this.__LZcanvas&&this.__LZcanvas.getContext){
return this.__LZcanvas.getContext("2d")
};var $0=document.createElement("canvas");$0.owner=this;this.__LZcanvas=$0;$0.className="lzgraphicscanvas";if(this.__LZdiv.firstChild){
this.__LZdiv.insertBefore($0,this.__LZdiv.firstChild)
}else{
this.__LZdiv.appendChild($0)
};lz.embed.__setAttr($0,"width",this.width);lz.embed.__setAttr($0,"height",this.height);if(this.cornerradius!=null){
this.__applyCornerRadius($0)
};if(lz.embed.browser.isIE){
this.__maxTries=10;this.__initcanvasie()
}else{
return $0.getContext("2d")
}};LzSprite.prototype.setContextCallback=function($0,$1){
this.__canvascallbackscope=$0;this.__canvascallbackname=$1
};LzSprite.prototype.bringToFront=function(){
if(!this.__parent){
return
};var $0=this.__parent.__children;if($0.length<2)return;$0.sort(LzSprite.prototype.__zCompare);this.sendInFrontOf($0[$0.length-1])
};LzSprite.prototype.__setZ=function($0){
this.__LZdiv.style.zIndex=$0;var $1=this.quirks;if($1.fix_clickable&&this.__LZclickcontainerdiv){
this.__LZclickcontainerdiv.style.zIndex=$0
};if($1.fix_contextmenu&&this.__LZcontextcontainerdiv){
this.__LZcontextcontainerdiv.style.zIndex=$0
};this.__z=$0
};LzSprite.prototype.__zCompare=function($0,$1){
if($0.__z<$1.__z)return -1;if($0.__z>$1.__z)return 1;return 0
};LzSprite.prototype.sendToBack=function(){
if(!this.__parent){
return
};var $0=this.__parent.__children;if($0.length<2)return;$0.sort(LzSprite.prototype.__zCompare);this.sendBehind($0[0])
};LzSprite.prototype.sendBehind=function($0){
if(!$0||$0===this)return;if(!this.__parent){
return
};var $1=this.__parent.__children;if($1.length<2)return;$1.sort(LzSprite.prototype.__zCompare);var $2=false;for(var $3=0;$3<$1.length;$3++){
var $4=$1[$3];if($4==$0)$2=$0.__z;if($2!=false){
$4.__setZ(++$4.__z)
}};this.__setZ($2)
};LzSprite.prototype.sendInFrontOf=function($0){
if(!$0||$0===this)return;if(!this.__parent){
return
};var $1=this.__parent.__children;if($1.length<2)return;$1.sort(LzSprite.prototype.__zCompare);var $2=false;for(var $3=0;$3<$1.length;$3++){
var $4=$1[$3];if($2!=false){
$4.__setZ(++$4.__z)
};if($4==$0)$2=$0.__z+1
};this.__setZ($2)
};LzSprite.prototype.__setFrame=function($0,$1){
if($0<1){
$0=1
}else if($0>this.frames.length){
$0=this.frames.length
};var $2=false;if($1){
$2=$0==this.frame
}else if($0==this.frame){
return
};this.frame=$0;var $3=this.frames[this.frame-1];if(this.backgroundrepeat){
this.__setBGImage($3);this.__updateBackgroundRepeat()
}else if(this.stretches==null&&this.__csssprite){
if(!this.__bgimage){
this.__createIMG();this.__setBGImage(this.__csssprite)
};var $4=(this.frame-1)*-this.resourceWidth;var $5=-this.__cssspriteoffset||0;this.__LZimg.style.backgroundPosition=$4+"px "+$5+"px"
}else{
this.setSource($3,true)
};if($2)return;this.owner.resourceevent("frame",this.frame);if(this.frames.length==this.frame)this.owner.resourceevent("lastframe",null,true)
};LzSprite.prototype.__discardElement=function($0){
if(this.__skipdiscards)return;if($0.parentNode)$0.parentNode.removeChild($0)
};LzSprite.prototype.getZ=function(){
return this.__z
};LzSprite.prototype.updateResourceSize=function(){
this.owner.resourceload({width:this.resourceWidth,height:this.resourceHeight,resource:this.resource,skiponload:true})
};LzSprite.prototype.unload=function(){
this.resource=null;this.source=null;this.resourceWidth=null;this.resourceHeight=null;if(this.__ImgPool){
this.__ImgPool.destroy();this.__ImgPool=null
};if(this.__LZimg){
this.__destroyImage(null,this.__LZimg);this.__LZimg=null
};this.__updateLoadStatus(0)
};LzSprite.prototype.__setCSSClassProperty=function($0,$1,$2){
var $3=document.all?"rules":"cssRules";var $4=document.styleSheets;var $5=$4.length-1;for(var $6=$5;$6>=0;$6--){
var $7=$4[$6][$3];var $8=$7.length-1;for(var $9=$8;$9>=0;$9--){
if($7[$9].selectorText==$0){
$7[$9].style[$1]=$2
}}}};LzSprite.prototype.setDefaultContextMenu=function($0){
LzSprite.__rootSprite.__contextmenu=$0
};LzSprite.prototype.setContextMenu=function($0){
this.__contextmenu=$0;if(!this.quirks.fix_contextmenu||this.__LZcontext)return;var $1=document.createElement("div");$1.className="lzcontext";if(!this.__LZcontextcontainerdiv){
this.__LZcontextcontainerdiv=this.__createContainerDivs("context")
};this.__LZcontextcontainerdiv.appendChild($1);this.__LZcontext=$1;this.__LZcontext.style.width=this._w;this.__LZcontext.style.height=this._h;$1.owner=this
};LzSprite.prototype.__createContainerDivs=function($0){
var $1="__LZ"+$0+"containerdiv";var $2=true;if(this.quirks.dont_clip_clickdivs&&$0==="click"){
$2=false
};if(this[$1]){
return this[$1]
};var $3=this.__findParents($1,null);for(var $4=$3.length-1;$4>=0;$4--){
var $5=$3[$4];var $6=document.createElement("div");$6.className=$5 instanceof LzTextSprite?"lztextcontainer":"lzdiv";var $7=$5.__parent&&$5.__parent[$1];if($7){
$7.appendChild($6)
};this.__copystyles($5.__LZdiv,$6,$2);if($5._id&&!$6.id){
$6.id=$0+$5._id
};$6.owner=$5;$5[$1]=$6
};return $6
};LzSprite.prototype.__copystyles=function($0,$1,$2){
$2=$2==null?true:$2;var $3=$0.owner;var $4=$3._x;if($4){
$1.style.left=$4
};var $5=$3._y;if($5){
$1.style.top=$5
};var $6=$3.__csscache.__LZdivdisplay||"";if($6){
$1.style.display=$6
};$1.style.zIndex=$3._z||$0.style.zIndex;if($2&&$3._clip){
$1.style.clip=$3._clip
};if($3._transform){
$1.style[stylename]=$3._transform
}};LzSprite.prototype.getContextMenu=function(){
return this.__contextmenu
};LzSprite.prototype.rotation=0;LzSprite.prototype.setRotation=function($0){
if(this.rotation==$0)return;this.rotation=$0;this._rotation="rotate("+$0+"deg) ";this.__updateTransform()
};LzSprite.prototype._transform="";LzSprite.prototype.__updateTransform=function($0){
var $1=(this._xscale||"")+(this._yscale||"")+(this._rotation||"");if($1===this._transform)return;this._transform=$1;var $2=LzSprite.__styleNames.transform;this.__LZdiv.style[$2]=$1;if(this.__LZclickcontainerdiv){
this.__LZclickcontainerdiv.style[$2]=$1
};if(this.__LZcontextcontainerdiv){
this.__LZcontextcontainerdiv.style[$2]=$1
}};LzSprite.prototype.backgroundrepeat=null;LzSprite.prototype.tilex=false;LzSprite.prototype.tiley=false;LzSprite.prototype.setBackgroundRepeat=function($0){
if(this.backgroundrepeat==$0)return;var $1=false;var $2=false;if($0=="repeat"){
$1=$2=true
}else if($0=="repeat-x"){
$1=true
}else if($0=="repeat-y"){
$2=true
};this.tilex=$1;this.tiley=$2;this.backgroundrepeat=$0;if(!this.__LZimg)this.__createIMG();this.__updateBackgroundRepeat();if($0){
this.__setBGImage(this.source);this.__LZimg.src=LzSprite.blankimage
}else{
if(this.__bgimage)this.__setBGImage(null);$0="";this.skiponload=true;this.setSource(this.source,"reset")
};this.__LZdiv.style.backgroundRepeat=$0
};LzSprite.prototype.__updateBackgroundRepeat=function(){
if(this.__LZimg){
this.__LZimg.style.backgroundRepeat=this.backgroundrepeat;this.__LZimg.style.backgroundPosition="0 0";this.__LZimg.width=this.backgroundrepeat?this.width:this.resourceWidth;this.__LZimg.height=this.backgroundrepeat?this.height:this.resourceHeight
}};if(LzSprite.quirks.ie_leak_prevention){
LzSprite.prototype.__sprites={};function __cleanUpForIE(){
LzTextSprite.prototype.__cleanupdivs();LzTextSprite.prototype._sizecache={};var $0=LzSprite.prototype.__sprites;for(var $1 in $0){
$0[$1].destroy();$0[$1]=null
};LzSprite.prototype.__sprites={}};lz.embed.attachEventHandler(window,"beforeunload",window,"__cleanUpForIE");LzSprite.prototype.__discardElement=function($0){
if(!$0||!$0.nodeType)return;if($0.nodeType>=1&&$0.nodeType<13){
if($0.owner)$0.owner=null;var $1=document.getElementById("__LZIELeakGarbageBin");if(!$1){
$1=document.createElement("DIV");$1.id="__LZIELeakGarbageBin";$1.style.display="none";document.body.appendChild($1)
};$1.appendChild($0);$1.innerHTML=""
}}};LzSprite.prototype.getSelectedText=function(){
if(window.getSelection){
return window.getSelection().toString()
}else if(document.selection){
return document.selection.createRange().text.toString()
}else if(document.getSelection){
return document.getSelection()
}};LzSprite.prototype.setAADescription=function($0){
var $1=this.aadescriptionDiv;if($1==null){
this.aadescriptionDiv=$1=document.createElement("LABEL");$1.className="lzaccessibilitydiv";if(!this.__LZdiv.id)this.__LZdiv.id="sprite_"+this.uid;lz.embed.__setAttr($1,"for",this.__LZdiv.id);this.__LZdiv.appendChild($1)
};$1.innerHTML=$0
};LzSprite.prototype.setAccessible=function($0){
LzSprite.__rootSprite.accessible=$0
};LzSprite.prototype._accProps=null;LzSprite.prototype.setAAActive=function($0){
this.__LzAccessibilityActive=$0
};LzSprite.prototype.setAASilent=function($0){};LzSprite.prototype.setAAName=function($0){};LzSprite.prototype.aafocus=function(){
try{
if(this.__LZdiv!=null){
this.__LZdiv.blur();this.__LZdiv.focus()
}}
catch($0){}};LzSprite.prototype.setAATabIndex=function($0){};LzSprite.prototype.sendAAEvent=function($0,$1,$2){
try{
if(this.__LZdiv!=null){
this.__LZdiv.focus()
}}
catch($3){}};LzSprite.prototype.setID=function($0){
if(!this._id)this._id=$0;if(!this.__LZdiv.id)this.__LZdiv.id=this._dbg_typename+$0;if(this.__LZclickcontainerdiv&&!this.__LZclickcontainerdiv.id)this.__LZclickcontainerdiv.id="click"+$0;if(this.__LZcontextcontainerdiv&&!this.__LZcontextcontainerdiv.id)this.__LZcontextcontainerdiv.id=this.__LZcontextcontainerdiv.id="context"+$0
};LzSprite.prototype.__resizecanvas=function(){
if(this.width>0&&this.height>0){
if(this.__LZcanvas){
lz.embed.__setAttr(this.__LZcanvas,"width",this.width);lz.embed.__setAttr(this.__LZcanvas,"height",this.height);this.__docanvascallback()
};if(this.__LZcanvas&&this["_canvashidden"]){
this._canvashidden=false;this.applyCSS("display","","__LZcanvas")
}}else if(this.__LZcanvas&&this["_canvashidden"]!=true){
this._canvashidden=true;this.applyCSS("display","none","__LZcanvas")
}};LzSprite.prototype.__docanvascallback=function(){
var $0=this.__canvascallbackscope[this.__canvascallbackname];if($0){
$0.call(this.__canvascallbackscope,this.__LZcanvas.getContext("2d"));if(LzSprite.quirks.resize2dcanvas){
var $1=this.__LZcanvas.firstChild;$1.style.width=this._w;$1.style.height=this._h
}}};LzSprite.prototype.__initcanvasie=function(){
if(this.__canvasTId)clearTimeout(this.__canvasTId);try{
if(this.__LZcanvas&&this.__LZcanvas.parentNode!=null){
this.__LZcanvas=G_vmlCanvasManager.initElement(this.__LZcanvas);this.__docanvascallback();return
}}
catch($0){};if(--this.__maxTries>0){
var $1=lz.BrowserUtils.getcallbackstr(this,"__initcanvasie");this.__canvasTId=setTimeout($1,50)
}};LzSprite.prototype.__getShadowCSS=function($0,$1,$2,$3){
if($0==null||$1==0&&$3==0){
return ""
};if(this.capabilities.minimize_opacity_changes){
$1=Math.round($1);$3=Math.round($3);$2=Math.round($2)
};if(this.quirks.use_filter_for_dropshadow){
if($1==0){
this.xoffset=this.yoffset=-$3;this.applyCSS("left",this.x+this.xoffset);this.applyCSS("top",this.y+this.yoffset);if($3>0){
var $4=LzColorUtils.inttohex($0);return "progid:DXImageTransform.Microsoft.Glow(Color='"+$4+"',Strength="+$3+")"
}}else{
$2+=90;var $4=LzColorUtils.inttohex($0);return "progid:DXImageTransform.Microsoft.Shadow(Color='"+$4+"',Direction="+$2+",Strength="+$1+")"
}}else{
var $5=$2*Math.PI/180;var $6=this.CSSDimension(Math.cos($5)*$1);var $7=this.CSSDimension(Math.sin($5)*$1);var $8=LzColorUtils.torgb($0);return $8+" "+$6+" "+$7+" "+this.CSSDimension($3)
}};LzSprite.prototype.shadow=null;LzSprite.prototype.updateShadow=function($0,$1,$2,$3){
var $4=this.__getShadowCSS($0,$1,$2,$3);if($4===this.shadow)return;this.shadow=$4;if(this.quirks.use_filter_for_dropshadow){
this.__LZdiv.style.filter=this.setFilter("shadow",$4)
}else{
var $5=LzSprite.__styleNames.boxShadow;if(this.__LZcanvas){
this.__LZdiv.style[$5]="";this.__LZcanvas.style[$5]=$4
}else{
this.__LZdiv.style[$5]=$4
}};if(this.quirks.size_blank_to_zero){
if(this.__sizedtozero){
this.__restoreSize()
}}};LzSprite.prototype.cornerradius=null;LzSprite.prototype.setCornerRadius=function($0){
var $1="";for(var $2=0,$3=$0.length;$2<$3;$2++){
$0[$2]=this.CSSDimension($0[$2])
};$1=$0.join(" ");if($1==this.cornerradius)return;this.cornerradius=$1;this.__applyCornerRadius(this.__LZdiv);if(this.__LZclick){
this.__applyCornerRadius(this.__LZclick)
};if(this.__LZcontext){
this.__applyCornerRadius(this.__LZcontext)
};if(this.__LZcanvas){
this.__applyCornerRadius(this.__LZcanvas)
};if(this.__LZimg){
this.__applyCornerRadius(this.__LZimg)
}};LzSprite.prototype.__applyCornerRadius=function($0){
var $1=LzSprite.__styleNames;if(this.quirks.explicitly_set_border_radius){
var $2=this.cornerradius.split(" ");$0.style[$1.borderTopLeftRadius]=$2[0];$0.style[$1.borderTopRightRadius]=$2[1];$0.style[$1.borderBottomRightRadius]=$2[2];$0.style[$1.borderBottomLeftRadius]=$2[3]
}else{
$0.style[$1.borderRadius]=this.cornerradius
}};LzSprite.prototype.__csscache;LzSprite.prototype.setCSS=function($0,$1,$2){
if($2)$1=this.CSSDimension($1);var $3=this["set_"+$0];if($3){
$3.call(this,$1)
}else{
this.applyCSS($0,$1);if(this.__LZclickcontainerdiv){
this.applyCSS($0,$1,"__LZclickcontainerdiv")
};if(this.__LZcontextcontainerdiv){
this.applyCSS($0,$1,"__LZcontextcontainerdiv")
}}};LzSprite.prototype.applyCSS=function($0,$1,$2){
if(!$2)$2="__LZdiv";var $3=$2+$0;var $4=this.__csscache;if($4[$3]===$1){
return
};var $5=this[$2].style;$4[$3]=$5[$0]=$1
};LzSprite.prototype.set_borderColor=function($0){
if($0==null)$0="";this.__LZdiv.style.borderColor=$0
};LzSprite.prototype.borderwidth=0;LzSprite.prototype.set_borderWidth=function($0){
if(this.borderwidth===$0)return;this.borderwidth=$0;if(this.quirks.size_blank_to_zero){
if(this.__sizedtozero&&$0!=null){
this.__restoreSize()
}};if($0==0){
$0=""
};this.__LZdiv.style.borderWidth=$0;if(this.__LZclick){
this.__LZclick.style.borderWidth=$0
};if(this.__LZcontext){
this.__LZcontext.style.borderWidth=$0
}};LzSprite.prototype.set_padding=function($0){
if(this.padding===$0)return;this.padding=$0;if(this.quirks.size_blank_to_zero){
if(this.__sizedtozero&&$0!=null){
this.__restoreSize()
}};if($0==0){
$0=""
};if(this.__LZclick){
this.__LZclick.style.padding=$0
};if(this.__LZcontext){
this.__LZcontext.style.padding=$0
}};LzSprite.medialoadtimeout=30000;LzSprite.setMediaLoadTimeout=function($0){
LzSprite.medialoadtimeout=$0
};LzSprite.setMediaErrorTimeout=function($0){};LzSprite.prototype.xscale=1;LzSprite.prototype.setXScale=function($0){
if(this.xscale==$0)return;this.xscale=$0;this._xscale="scaleX("+$0+") ";this.__updateTransform()
};LzSprite.prototype.yscale=1;LzSprite.prototype.setYScale=function($0){
if(this.yscale==$0)return;this.yscale=$0;this._yscale="scaleY("+$0+") ";this.__updateTransform()
};Class.make("LzLibrary",["loaded",false,"loading",false,"sprite",null,"href",void 0,"stage","late","onload",LzDeclaredEvent,"construct",function($0,$1){
this.stage=$1.stage;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["construct"]||this.nextMethod(arguments.callee,"construct")).call(this,$0,$1);this.sprite=new LzSprite(this,false,$1);LzLibrary.libraries[$1.name]=this
},"init",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["init"]||this.nextMethod(arguments.callee,"init")).call(this);if(this.stage=="late"){
this.load()
}},"destroy",function(){
if(this.sprite){
this.sprite.destroy();this.sprite=null
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["destroy"]||this.nextMethod(arguments.callee,"destroy")).call(this)
},"toString",function(){
return "Library "+this.href+" named "+this.name
},"load",function(){
if(this.loading||this.loaded){
return
};this.loading=true;lz.embed.__dhtmlLoadLibrary(this.href)
},"loadfinished",function(){
this.loading=false;if(this.onload.ready)this.onload.sendEvent(true)
}],LzNode,["tagname","import","attributes",new LzInheritedHash(LzNode.attributes),"libraries",{},"findLibrary",function($0){
return LzLibrary.libraries[$0]
},"stripQueryString",function($0){
if($0.indexOf("?")>0){
$0=$0.substring(0,$0.indexOf("?"))
};return $0
},"__LZsnippetLoaded",function($0){
$0=LzLibrary.stripQueryString($0);var $1=null;var $2=LzLibrary.libraries;for(var $3 in $2){
var $4=LzLibrary.stripQueryString($2[$3].href);if($4==$0){
$1=$2[$3];break
}};if($1==null){
}else{
$1.loaded=true;$1.parent.__LzLibraryLoaded($1.name)
}}]);lz[LzLibrary.tagname]=LzLibrary;var LzTextSprite=function($0){
if($0==null)return;this.constructor=arguments.callee;this.owner=$0;this.uid=LzSprite.prototype.uid++;this.__csscache={};this.__LZdiv=document.createElement("div");this.__LZdiv.className="lztextcontainer";this.scrolldiv=this.__LZtextdiv=document.createElement("div");this.scrolldivtagname="div";this.scrolldiv.owner=this;if(this.quirks.emulate_flash_font_metrics){
this.className=this.scrolldiv.className="lzswftext"
}else{
this.className=this.scrolldiv.className="lztext"
};this.__LZdiv.appendChild(this.scrolldiv);this.__LZdiv.owner=this;if(this.quirks.ie_leak_prevention){
this.__sprites[this.uid]=this
}};LzTextSprite.prototype=new LzSprite(null);LzTextSprite.prototype.__initTextProperties=function($0){
this.setFontName($0.font);this.setFontStyle($0.fontstyle);this.setFontSize($0.fontsize);this.setTextColor($0.fgcolor)
};LzTextSprite.prototype._fontStyle="normal";LzTextSprite.prototype._fontWeight="normal";LzTextSprite.prototype._fontSize="11px";LzTextSprite.prototype._fontFamily="Verdana,Vera,sans-serif";LzTextSprite.prototype._whiteSpace="nowrap";LzTextSprite.prototype._textAlign="left";LzTextSprite.prototype._textIndent=0;LzTextSprite.prototype.__LZtextIndent=0;LzTextSprite.prototype._letterSpacing=0;LzTextSprite.prototype._textDecoration="none";LzTextSprite.prototype.__wpadding=4;LzTextSprite.prototype.__hpadding=4;LzTextSprite.prototype.__sizecacheupperbound=1000;LzTextSprite.prototype.selectable=false;LzTextSprite.prototype.text="";LzTextSprite.prototype.resize=true;LzTextSprite.prototype.restrict=null;LzTextSprite.prototype.scrolldiv=null;LzTextSprite.prototype.scrolldivtagname=null;LzTextSprite.prototype.setFontSize=function($0){
if($0==null||$0<0)return;var $1=this.CSSDimension($0);if(this._fontSize!=$1){
this._fontSize=$1;this.scrolldiv.style.fontSize=$1;if(this.quirks["emulate_flash_font_metrics"]){
var $2=Math.round($0*1.2);this.scrolldiv.style.lineHeight=this.CSSDimension($2);this._lineHeight=$2
};this.__updatefieldsize()
}};LzTextSprite.prototype.setFontStyle=function($0){
var $1;if($0=="plain"){
$1="normal";$0="normal"
}else if($0=="bold"){
$1="bold";$0="normal"
}else if($0=="italic"){
$1="normal";$0="italic"
}else if($0=="bold italic"||$0=="bolditalic"){
$1="bold";$0="italic"
};var $2=false;if($1!=this._fontWeight){
this._fontWeight=$1;this.scrolldiv.style.fontWeight=$1;$2=true
};if($0!=this._fontStyle){
this._fontStyle=$0;this.scrolldiv.style.fontStyle=$0;$2=true
};if($2){
this.__updatefieldsize()
}};LzTextSprite.prototype.setFontName=function($0){
if($0!=this._fontFamily){
this._fontFamily=$0;this.scrolldiv.style.fontFamily=$0;this.__updatefieldsize()
}};LzTextSprite.prototype.setTextColor=function($0){
if(this.textcolor===$0)return;this.textcolor=$0;this.__LZdiv.style.color=LzColorUtils.inttohex($0)
};LzTextSprite.prototype.lineHeight=null;LzTextSprite.prototype.scrollTop=null;LzTextSprite.prototype.scrollHeight=null;LzTextSprite.prototype.scrollLeft=null;LzTextSprite.prototype.scrollWidth=null;LzTextSprite.prototype.scrolling=false;LzTextSprite.prototype.setScrolling=function($0){
var $1=this.className;if($1=="lzswftext"||$1=="lzswfinputtextmultiline"){
var $2=this.height;var $3=this.width;var $4=this.CSSDimension;if($0||$1=="lzswfinputtextmultiline"){
this.scrolling=$0;this.applyCSS("overflow","scroll","scrolldiv");$2+=this.quirks.scrollbar_width;$3+=this.quirks.scrollbar_width
}else{
this.scrolling=false;this.applyCSS("overflow","","scrolldiv")
};var $5=this.scrolldiv;var $6=$4($2);var $7=$4($3);if($0){
$5.style.clip="rect(0 "+$7+" "+$6+" 0)"
}else if($5.style.clip){
$5.style.clip=this.quirks["fix_ie_css_syntax"]?"rect(auto auto auto auto)":""
};$5.style.width=$7;$5.style.height=$6
};return $0&&this.scrolling
};LzTextSprite.prototype.scrollevents=false;LzTextSprite.prototype.setScrollEvents=function($0){
this.scrollevents=this.setScrolling($0);this.__updatefieldsize()
};LzTextSprite.prototype.__updatefieldsizeTID=null;LzTextSprite.prototype.__updatefieldsize=function(){
var $0=LzFontManager.isFontLoaded(this,this._fontFamily,this._fontStyle,this._fontWeight);if(!$0||!this.initted)return;this.owner._updateSize();var $1=lz.BrowserUtils.getcallbackfunc(this,"__updatefieldsizeCallback",[]);if(this.__updatefieldsizeTID!=null){
clearTimeout(this.__updatefieldsizeTID)
};this.__updatefieldsizeTID=setTimeout($1,0)
};LzTextSprite.prototype.__fontLoaded=function(){
this._cachevalue=this._cacheStyleKey=this._cacheTextKey=null;this.__updatefieldsize()
};LzTextSprite.prototype.__updatefieldsizeCallback=function(){
var $0=this.getLineHeight();if(this.lineHeight!==$0){
this.lineHeight=$0;this.owner.scrollevent("lineHeight",$0)
};if(!this.scrollevents)return;this.__updatefieldprop("scrollHeight");this.__updatefieldprop("scrollTop");this.__updatefieldprop("scrollWidth");this.__updatefieldprop("scrollLeft")
};LzTextSprite.prototype.setMaxLength=function($0){
return
};LzTextSprite.prototype.__updatefieldprop=function($0){
var $1=this.scrolldiv[$0];if(this[$0]!==$1||$0=="scrollHeight"){
this[$0]=$1;this.owner.scrollevent($0,$1)
}};LzTextSprite.prototype.setText=function($0,$1){
if(this.multiline&&$0&&$0.indexOf("\n")>=0){
if(this.quirks["inner_html_strips_newlines"]){
$0=$0.replace(this.inner_html_strips_newlines_re,"
")
}};if($0&&this.quirks["inner_html_no_entity_apos"]){
$0=$0.replace(RegExp("'","mg"),"'")
};if($1!=true&&this.text==$0)return;this.text=$0;this.scrolldiv.innerHTML=$0;this.__updatefieldsize()
};LzTextSprite.prototype.multiline=false;LzTextSprite.prototype.setMultiline=function($0){
this.multiline=$0;if($0){
var $1="normal";this.applyCSS("overflow","hidden","scrolldiv")
}else{
var $1=this.className==="lzswfinputtextmultiline"?"pre-wrap":"nowrap";this.applyCSS("overflow","","scrolldiv")
};if(this._whiteSpace!==$1){
this._whiteSpace=$1;this.scrolldiv.style.whiteSpace=$1
};if(this.quirks["text_height_includes_padding"]){
this.__hpadding=$0?3:4
};this.setText(this.text,true)
};LzTextSprite.prototype.setPattern=function($0){
if($0==null||$0==""){
this.restrict=null
}else if($0.substring(0,1)=="["&&$0.substring($0.length-2,$0.length)=="]*"){
this.restrict=RegExp($0.substring(0,$0.length-1)+"|[\\r\\n]","g")
}};LzTextSprite.prototype.getTextWidth=function($0){
if(!this.initted&&!$0)return 0;var $1;var $2=this.className+"/"+this.scrolldiv.style.cssText;var $3=this._cachevalue;if(this._cacheStyleKey==$2&&this._cacheTextKey==this.text&&("width" in $3)){
$1=$3.width
}else{
$1=this.getTextDimension("width")
};if($1!=0&&this.quirks["emulate_flash_font_metrics"]){
$1+=this.__wpadding
};return $1
};LzTextSprite.prototype.getLineHeight=function(){
if(this._lineHeight)return this._lineHeight;if(!this.initted)return 0;var $0=this.className+"/"+this.scrolldiv.style.cssText;var $1=this._cachevalue;if(this._cacheStyleKey==$0&&("lineheight" in $1)){
var $2=$1.lineheight
}else{
var $2=this.getTextDimension("lineheight")
};this._lineHeight=$2;return $2
};LzTextSprite.prototype.getTextfieldHeight=function($0){
if(!this.initted&&!$0)return 0;var $1=null;if(this.multiline&&this.text!=""){
var $2=this.className+"/"+this.scrolldiv.style.cssText;var $3=this._cachevalue;if(this._cacheStyleKey==$2&&this._cacheTextKey==this.text&&("height" in $3)){
$1=$3.height
}else{
$1=this.getTextDimension("height")
};if(this.quirks["safari_textarea_subtract_scrollbar_height"]){
$1+=24
}}else{
$1=this.getLineHeight()
};if(this.quirks["emulate_flash_font_metrics"]){
$1+=this.__hpadding
};return $1
};LzTextSprite.prototype._sizecache={counter:0};if(LzSprite.quirks.ie_leak_prevention){
LzTextSprite.prototype.__divstocleanup=[];LzTextSprite.prototype.__cleanupdivs=function(){
var $0=LzTextSprite.prototype.__divstocleanup;var $1=LzSprite.prototype.__discardElement;var $2=$0.length;for(var $3=0;$3<$2;$3++){
$1($0[$3])
};LzTextSprite.prototype.__divstocleanup=[]
}};LzTextSprite.prototype._cacheStyleKey=null;LzTextSprite.prototype._cacheTextKey=null;LzTextSprite.prototype._cachevalue=null;LzTextSprite.prototype.getTextDimension=function($0){
var $1=this.text;var $2="auto";switch($0){
case "lineheight":
if(this._lineHeight){
return this._lineHeight
}if(LzSprite.prototype.quirks["textmeasurementalphastring"]){
$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
}else{
$1='Yq_gy"9;'
}break;
case "height":
$2=this.CSSDimension(this.width);break;
case "width":
if(this.text==""){
return 0
}break;
default:
};var $3=this.scrolldiv;var $4=this.className;var $5=$4+"/"+$3.style.cssText;var $6=this._cachevalue;if(this._cacheStyleKey==$5&&($0=="lineheight"||this._cacheTextKey==$1)&&($0 in $6)){
return $6[$0]
};this._cacheStyleKey=$5;if($0!="lineheight"){
this._cacheTextKey=$1
};var $7="padding:0px;overflow:visible;width:"+$2+";height:auto;"+(this._fontSize?"font-size:"+this._fontSize+";":"")+(this._fontWeight?"font-weight:"+this._fontWeight+";":"")+(this._fontStyle?"font-style:"+this._fontStyle+";":"")+(this._fontFamily?"font-family:"+this._fontFamily+";":"")+(this._fontSize?"font-size:"+this._fontSize+";":"")+(this._letterSpacing?"letter-spacing:"+this._letterSpacing+";":"")+(this._whiteSpace?"white-space:"+this._whiteSpace+";":"");this._cachevalue=LzFontManager.getSize($0,$4,$7,this.scrolldivtagname,$1);return this._cachevalue[$0]
};LzTextSprite.prototype.setSelectable=function($0){
this.selectable=$0;this.__LZdiv.style.cursor=$0?"auto":"";if(this.quirks["prevent_selection_with_onselectstart"]){
var $1=$0?this.__onselectstartHandler:this.__cancelhandler;this.__LZdiv.onselectstart=$1
}else{
var $2=$0?"text":"none";var $3=LzSprite.__styleNames.userSelect;this.__LZdiv.style[$3]=$2
}};LzTextSprite.prototype.$LzSprite$__mouseEvent=LzSprite.prototype.__mouseEvent;LzTextSprite.prototype.__mouseEvent=function($0){
this.$LzSprite$__mouseEvent($0);return this.selectable
};LzTextSprite.prototype.__onselectstartHandler=function($0){
$0=$0||window.event;$0.cancelBubble=true;return true
};LzTextSprite.prototype.__cancelhandler=function(){
return false
};LzTextSprite.prototype.setResize=function($0){
this.resize=$0;this.applyCSS("overflow",$0?"":"hidden","scrolldiv")
};LzTextSprite.prototype.setSelection=function($0,$1){
switch(arguments.length){
case 1:
$1=null;
};if($1==null){
$1=$0
};if(this.quirks["text_selection_use_range"]){
var $2=document.body.createTextRange();$2.moveToElementText(this.scrolldiv);if($0>$1){
var $3=$0;$0=$1;$1=$3
};var $3=$0;var $4=$1-$2.text.length;$2.moveStart("character",$3);$2.moveEnd("character",$4);$2.select()
}else{
var $2=document.createRange();var $5=0;$2.setStart(this.scrolldiv.childNodes[0],$0);$2.setEnd(this.scrolldiv.childNodes[0],$1);var $6=window.getSelection();$6.removeAllRanges();$6.addRange($2)
}};LzTextSprite.prototype.__findNodeByOffset=function($0){
var $1=this.scrolldiv.childNodes[0];var $2=0;while($1){
if($1.nodeType==3){
$0+=$1.textContent.length
}else if($1.nodeType==1&&$1.nodeName=="BR"){
$0+=1
};if($2>=$0){
return $1
};$1=$1.nextSibling
}};LzTextSprite.prototype.__getGlobalRange=function(){
var $0;if(this.quirks["text_selection_use_range"]){
$0=document.selection.createRange()
}else if(window.getSelection){
$0=window.getSelection()
};try{
if($0){
if(this.quirks["text_selection_use_range"]){
return $0
}else if($0.getRangeAt){
return $0.getRangeAt(0)
}else{
var $1=document.createRange();$1.setStart($0.anchorNode,$0.anchorOffset);$1.setEnd($0.focusNode,$0.focusOffset);return $1
}}}
catch($2){}};LzTextSprite.prototype.__textareaToRange=function($0){
var $1=$0.getBookmark();var $2,$3;$3=$2=this.scrolldiv.innerHTML;var $4=this.__getRangeOwner($0);if(!($4 instanceof LzTextSprite)){
return
};do{
var $5="~~~"+Math.random()+"~~~"
}while($2.indexOf($5)!=-1);$0.text=$5+$0.text+$5;$2=this.scrolldiv.innerHTML;$2=$2.replace("
"," ");var $6={};$6.startOffset=$2.indexOf($5);$2=$2.replace($5,"");$6.endOffset=$2.indexOf($5);this.scrolldiv.innerHTML=$3;$0.moveToBookmark($1);$0.select();return $6
};LzTextSprite.prototype.__getRangeOwner=function($0){
if(!$0)return;if(this.quirks["text_selection_use_range"]){
var $0=$0.duplicate();$0.collapse();return $0.parentElement().owner
}else{
if($0.startContainer.parentNode==$0.endContainer.parentNode)return $0.startContainer.parentNode.owner
}};LzTextSprite.prototype.__getOffset=function($0){
var $1=0;while($0=$0.previousSibling){
if($0.nodeType==3){
$1+=$0.textContent.length
}else if($0.nodeType==1&&$0.nodeName=="BR"){
$1+=1
}};return $1
};LzTextSprite.prototype.getSelectionPosition=function(){
var $0=this.__getGlobalRange();if(this.__getRangeOwner($0)===this){
if(this.quirks["text_selection_use_range"]){
$0=this.__textareaToRange($0);return $0.startOffset
}else{
var $1=0;if(this.multiline){
$1=this.__getOffset($0.startContainer)
};return $0.startOffset+$1
}}else{
return -1
}};LzTextSprite.prototype.getSelectionSize=function(){
var $0=this.__getGlobalRange();if(this.__getRangeOwner($0)===this){
if(this.quirks["text_selection_use_range"]){
$0=this.__textareaToRange($0)
}else{
if(this.multiline){
var $1=this.__getOffset($0.startContainer);var $2=this.__getOffset($0.endContainer);return $0.endOffset+$2-($0.startOffset+$1)
}};return $0.endOffset-$0.startOffset
}else{
return -1
}};LzTextSprite.prototype.getScroll=function(){};LzTextSprite.prototype.getMaxScroll=function(){};LzTextSprite.prototype.setScroll=function(){};LzTextSprite.prototype.setYScroll=function($0){
this.scrolldiv.scrollTop=this.scrollTop=-$0
};LzTextSprite.prototype.setXScroll=function($0){
this.scrolldiv.scrollLeft=this.scrollLeft=-$0
};LzTextSprite.prototype.$LzSprite$setX=LzSprite.prototype.setX;LzTextSprite.prototype.setX=function($0){
var $1=this.scrolling;var $2=$1&&this.quirks["clipped_scrollbar_causes_display_turd"];if($1){
var $3=this.scrolldiv;var $4=$3.scrollLeft;var $5=$3.scrollTop;if($2){
this.applyCSS("overflow","hidden","scrolldiv");$3.style.paddingRight=$3.style.paddingBottom=this.quirks.scrollbar_width
}};this.$LzSprite$setX($0);if($1){
if($2){
this.applyCSS("overflow","scroll","scrolldiv");$3.style.paddingRight=$3.style.paddingBottom="0"
};$3.scrollLeft=$4;$3.scrollTop=$5
}};LzTextSprite.prototype.$LzSprite$setY=LzSprite.prototype.setY;LzTextSprite.prototype.setY=function($0){
var $1=this.scrolling;var $2=$1&&this.quirks["clipped_scrollbar_causes_display_turd"];if($1){
var $3=this.scrolldiv;var $4=$3.scrollLeft;var $5=$3.scrollTop;if($2){
this.applyCSS("overflow","hidden","scrolldiv");$3.style.paddingRight=$3.style.paddingBottom=this.quirks.scrollbar_width
}};this.$LzSprite$setY($0);if($1){
if($2){
this.applyCSS("overflow","scroll","scrolldiv");$3.style.paddingRight=$3.style.paddingBottom="0"
};$3.scrollLeft=$4;$3.scrollTop=$5
}};LzTextSprite.prototype.$LzSprite$setWidth=LzSprite.prototype.setWidth;LzTextSprite.prototype.__widthcss=0;LzTextSprite.prototype.setWidth=function($0){
if($0==null||$0<0||isNaN($0))return;var $1=this.$LzSprite$setWidth($0);if($1==null)return;var $2=$0>=this.__wpadding?$0-this.__wpadding:0;if(this.scrolling){
$2+=this.quirks.scrollbar_width
};var $3=$2;var $4=this.__LZtextIndent<0?-1*this.__LZtextIndent:0;if($2>=$4){
$2-=$4
};var $5=this.CSSDimension;var $6=$5($2);if($6!==this.__widthcss){
this.__widthcss=$6;var $7=this.scrolldiv;$7.style.width=$6;if(this.scrolling){
var $8=$5(this.height||0);var $9=$5($3);$7.style.clip="rect(0 "+$9+" "+$8+" 0)"
}};return $2
};LzTextSprite.prototype.$LzSprite$setHeight=LzSprite.prototype.setHeight;LzTextSprite.prototype.__heightcss=0;LzTextSprite.prototype.setHeight=function($0){
if($0==null||$0<0||isNaN($0))return;var $1=this.$LzSprite$setHeight($0);if($1==null)return;var $2=$0>=this.__hpadding?$0-this.__hpadding:0;if(this.scrolling||this.classname=="lzswfinputtextmultiline"){
$2+=this.quirks.scrollbar_width
};var $3=this.CSSDimension;var $4=$3($2);if($4!==this.__heightcss){
this.__heightcss=$4;var $5=this.scrolldiv;$5.style.height=$4;if(this.scrolling){
var $6=$3(this.width||0);$5.style.clip="rect(0 "+$6+" "+$4+" 0)"
}};return $2
};LzTextSprite.prototype.enableClickableLinks=function($0){};LzTextSprite.prototype.makeTextLink=function($0,$1){
LzTextSprite.addLinkID(this);var $2=this.uid;return '"+$0+""
};$modules.lz.__callTextLink=function($0,$1){
var $2=LzTextSprite.linkIDMap[$0];if($2!=null){
$2.owner.ontextlink.sendEvent($1)
}};LzTextSprite.linkIDMap=[];LzTextSprite.addLinkID=function($0){
LzTextSprite.linkIDMap[$0.uid]=$0
};LzTextSprite.deleteLinkID=function($0){
delete LzTextSprite.linkIDMap[$0]
};LzTextSprite.prototype.$LzSprite$destroy=LzSprite.prototype.destroy;LzTextSprite.prototype.destroy=function(){
LzTextSprite.deleteLinkID(this.owner.getUID());this.$LzSprite$destroy(this)
};LzTextSprite.prototype.setTextAlign=function($0){
if(this._textAlign!=$0){
this._textAlign=$0;this.scrolldiv.style.textAlign=$0
}};LzTextSprite.prototype.setTextIndent=function($0){
var $1=this.CSSDimension($0);if(this._textIndent!=$1){
var $2=$0<0||this.__LZtextIndent<0;this._textIndent=$1;this.__LZtextIndent=$0;this.scrolldiv.style.textIndent=$1;if($2){
this.scrolldiv.style.paddingLeft=$0>=0?"":$1.substr(1);var $3=this.setWidth(this.width)
}}};LzTextSprite.prototype.setLetterSpacing=function($0){
$0=this.CSSDimension($0);if(this._letterSpacing!=$0){
this._letterSpacing=$0;this.scrolldiv.style.letterSpacing=$0
}};LzTextSprite.prototype.setTextDecoration=function($0){
if(this._textDecoration!=$0){
this._textDecoration=$0;this.scrolldiv.style.textDecoration=$0
}};LzTextSprite.prototype.getDisplayObject=function(){
return this.scrolldiv
};LzTextSprite.prototype.updateShadow=function($0,$1,$2,$3){
var $4=this.__getShadowCSS($0,$1,$2,$3);if(this.quirks.use_filter_for_dropshadow){
this.scrolldiv.style.filter=this.setFilter("shadow",$4)
}else{
this.scrolldiv.style.textShadow=$4
};this.shadow=$4;this.applyCSS("overflow","","scrolldiv")
};var LzInputTextSprite=function($0){
if($0==null)return;this.constructor=arguments.callee;this.owner=$0;this.uid=LzSprite.prototype.uid++;this.__csscache={};this.__LZdiv=document.createElement("div");this.__LZdiv.className="lzinputtextcontainer";this.__LZdiv.owner=this;if(this.quirks.autoscroll_textarea){
this.dragging=false
};if(this.quirks.ie_leak_prevention){
this.__sprites[this.uid]=this
};this.__createInputText()
};LzInputTextSprite.prototype=new LzTextSprite(null);LzInputTextSprite.prototype.__lastshown=null;LzInputTextSprite.prototype.__focusedSprite=null;LzInputTextSprite.prototype.__lastfocus=null;LzInputTextSprite.prototype._cancelfocus=false;LzInputTextSprite.prototype._cancelblur=false;LzInputTextSprite.prototype.____crregexp=new RegExp("\\r\\n","g");LzInputTextSprite.prototype.__createInputText=function($0){
if(this.__LzInputDiv)return;var $1="";if(this.owner){
if(this.owner.password){
$1="password"
}else if(this.owner.multiline){
$1="multiline"
}};this.__createInputDiv($1);$0=$0||"";lz.embed.__setAttr(this.__LzInputDiv,"value",$0);if(this.quirks.fix_clickable){
if(this.quirks.fix_ie_clickable){
this.__LZinputclickdiv=document.createElement("img");this.__LZinputclickdiv.src=LzSprite.blankimage
}else{
this.__LZinputclickdiv=document.createElement("div")
};this.__LZinputclickdiv.className="lzclickdiv";this.__LZinputclickdiv.owner=this;this.setClickable(true);if(!this.__LZclickcontainerdiv){
this.__LZclickcontainerdiv=this.__createContainerDivs("click")
};if(this.quirks.input_highlight_bug){
var $2=document.createElement("div");$2.style.backgroundColor="white";$2.style.width=0;this.__LZclickcontainerdiv.appendChild($2);$2.appendChild(this.__LZinputclickdiv)
}else{
this.__LZclickcontainerdiv.appendChild(this.__LZinputclickdiv)
}};this.__LZdiv.appendChild(this.__LzInputDiv);this.__setTextEvents(true)
};LzInputTextSprite.prototype.__createInputDiv=function($0){
var $1="input";if($0==="password"){
this.multiline=false;this.__LzInputDiv=document.createElement($1);lz.embed.__setAttr(this.__LzInputDiv,"type","password")
}else if($0==="multiline"){
$1="textarea";this.multiline=true;this.__LzInputDiv=document.createElement($1)
}else{
this.multiline=false;this.__LzInputDiv=document.createElement($1);lz.embed.__setAttr(this.__LzInputDiv,"type","text")
};if(this.quirks.firefox_autocomplete_bug){
lz.embed.__setAttr(this.__LzInputDiv,"autocomplete","off")
};this.__LzInputDiv.owner=this;if(this.quirks.emulate_flash_font_metrics){
if(this.multiline){
this.className=this.__LzInputDiv.className="lzswfinputtextmultiline";this._whiteSpace="pre-wrap"
}else{
this.className=this.__LzInputDiv.className="lzswfinputtext"
}}else{
this.className=this.__LzInputDiv.className="lzinputtext"
};if(this.owner){
lz.embed.__setAttr(this.__LzInputDiv,"name",this.owner.name)
};this.scrolldiv=this.__LzInputDiv;this.scrolldivtagname=$1;this.scrolldiv.owner=this;this.setScrolling(this.multiline)
};LzInputTextSprite.prototype.setMultiline=function($0){
var $1=this.multiline;this.multiline=$0;if(this.multiline!==$1){
var $2=this.__LzInputDiv;this.__setTextEvents(false);this.__createInputDiv($0?"multiline":"");var $3=this.__LzInputDiv;lz.embed.__setAttr($3,"style",$2.style.cssText);if(this.quirks["fix_ie_css_syntax"]){
$3.style.fontStyle=$2.style.fontStyle;$3.style.fontWeight=$2.style.fontWeight;$3.style.fontSize=$2.style.fontSize;$3.style.fontFamily=$2.style.fontFamily;$3.style.color=$2.style.color
};var $4=$2.scrollLeft;var $5=$2.scrollTop;this.__discardElement($2);this.__LZdiv.appendChild($3);this.setScrollEvents(this.owner.scrollevents);$3.scrollLeft=$4;$3.scrollTop=$5;this.__setTextEvents(true);this.setText(this.text,true)
}};LzInputTextSprite.prototype.__show=function(){
if(this.__shown==true||this.disabled==true)return;this.__hideIfNotFocused();LzInputTextSprite.prototype.__lastshown=this;this.__shown=true;if(this.quirks["inputtext_parents_cannot_contain_clip"]){
var $0=this.__findParents("clip",true);var $1=$0.length;if($1>1){
if(this._shownclipvals==null){
this._shownclipvals=[];this._shownclippedsprites=$0;for(var $2=0;$2<$1;$2++){
var $3=$0[$2];this._shownclipvals[$2]=$3.__LZclickcontainerdiv.style.clip;var $4=this.quirks["fix_ie_css_syntax"]?"rect(auto auto auto auto)":"";$3.__LZclickcontainerdiv.style.clip=$4
}}}};LzMouseKernel.setGlobalClickable(false);if(LzSprite.quirks.prevent_selection){
this.__LZdiv.onselectstart=this.__onselectstartHandler
}};LzInputTextSprite.prototype.__hideIfNotFocused=function($0){
var $1=LzInputTextSprite.prototype;if($1.__lastshown==null)return;var $2=LzSprite.quirks;if($2.textgrabsinputtextfocus){
var $3=window.event;if($3&&$3.srcElement&&$3.srcElement.owner&&$3.srcElement.owner instanceof LzTextSprite){
if($0=="onmousedown"){
$1.__lastshown.gotFocus()
};return
}};if($1.__focusedSprite!=$1.__lastshown){
$1.__lastshown.__hide()
}};LzInputTextSprite.prototype.__hide=function($0){
if(this.__shown!=true||this.disabled==true)return;if(LzInputTextSprite.prototype.__lastshown==this){
LzInputTextSprite.prototype.__lastshown=null
};this.__shown=false;if(this.quirks["inputtext_parents_cannot_contain_clip"]){
if(this._shownclipvals!=null){
for(var $1=0;$1")!=-1){
$0=$0.replace(this.br_to_newline_re,"\r")
}};this.text=$0;this.__createInputText($0);this.__LzInputDiv.value=$0;this.__updatefieldsize()
};LzInputTextSprite.prototype.__setTextEvents=function($0){
var $1=this.__LzInputDiv;var $2=$0?this.__textEvent:null;$1.onblur=$2;$1.onfocus=$2;if(this.quirks.ie_mouse_events){
$1.onmouseleave=$2
}else{
$1.onmouseout=$2
};$1.onmousemove=$2;$1.onmousedown=$2;$1.onmouseup=$2;$1.onkeyup=$2;$1.onkeydown=$2;$1.onkeypress=$2;$1.onchange=$2;if(this.quirks.ie_paste_event||this.quirks.safari_paste_event){
$1.onpaste=$0?(function($0){
this.owner.__pasteHandlerEx($0)
}):null
}};LzInputTextSprite.prototype.__pasteHandlerEx=function($0){
var $1=!(!this.restrict);var $2=this.multiline&&this.owner.maxlength>0;if($1||$2){
$0=$0||window.event;if(this.quirks.safari_paste_event){
var $3=$0.clipboardData.getData("text/plain")
}else{
var $3=window.clipboardData.getData("TEXT");$3=$3.replace(this.____crregexp,"\n")
};var $4=false;var $5=this.getSelectionSize();if($5<0)$5=0;if($1){
var $6=$3.match(this.restrict);if($6==null){
var $7=""
}else{
var $7=$6.join("")
};$4=$7!=$3;$3=$7
};if($2){
var $8=this.owner.maxlength+$5;if(this.quirks.text_ie_carriagereturn){
var $9=this.__LzInputDiv.value.replace(this.____crregexp,"\n").length
}else{
var $9=this.__LzInputDiv.value.length
};var $a=$8-$9;if($a>0){
if($3.length>$a){
$3=$3.substring(0,$a);$4=true
}}else{
$3="";$4=true
}};if($4){
$0.returnValue=false;if($0.preventDefault){
$0.preventDefault()
};if($3.length>0){
if(this.quirks.safari_paste_event){
var $b=this.__LzInputDiv.value;var $c=this.getSelectionPosition();this.__LzInputDiv.value=$b.substring(0,$c)+$3+$b.substring($c+$5);$c+=$3.length;this.__LzInputDiv.setSelectionRange($c,$c)
}else{
var $d=document.selection.createRange();$d.text=$3
}}}}};LzInputTextSprite.prototype.__pasteHandler=function(){
var selpos=this.getSelectionPosition();var selsize=this.getSelectionSize();var val=this.__LzInputDiv.value;var that=this;setTimeout(function(){
var $0=!(!that.restrict);var $1=that.multiline&&that.owner.maxlength>0;var $2=that.__LzInputDiv.value;var $3=$2.length;var $4=that.owner.maxlength;if($0||$1&&$3>$4){
var $5=val.length;var $6=$2.substr(selpos,$3-$5+selsize);if($0){
var $7=$6.match(that.restrict);$6=$7!=null?$7.join(""):""
};if($1){
var $8=$4+selsize-$5;$6=$6.substring(0,$8)
};that.__LzInputDiv.value=val.substring(0,selpos)+$6+val.substring(selpos+selsize);selpos+=$6.length;that.__LzInputDiv.setSelectionRange(selpos,selpos)
}},1)
};LzInputTextSprite.prototype.__textEvent=function($0){
$0=$0||window.event;var $1=this.owner;if($1.__LZdeleted==true)return;if($1.__skipevent){
$1.__skipevent=false;return
};var $2="on"+$0.type;if(LzSprite.quirks.ie_mouse_events){
if($2==="onmouseleave"){
$2="onmouseout"
}};var $3=$1.quirks;if($2==="onmousedown"||$2==="onmouseup"||$2==="onmouseout"||$2==="onmousemove"){
if($3.autoscroll_textarea){
if($2==="onmousedown"){
$1.dragging=true
}else if($2==="onmouseup"||$2==="onmouseout"){
$1.dragging=false
}else if($2==="onmousemove"){
if($1.dragging){
var $4=$1.__LzInputDiv;var $5=$0.pageY-$4.offsetTop;if($5<=3){
$4.scrollTop-=$1.lineHeight?$1.lineHeight:10
};if($5>=$4.clientHeight-3){
$4.scrollTop+=$1.lineHeight?$1.lineHeight:10
}}}};if($2==="onmouseout"){
$1.__mouseEvent($2)
}else if($2==="onmousedown"){
$1.__mouseisdown=true
}else if($2==="onmouseup"){
$0.cancelBubble=true;if(!$1.__isMouseOver()){
$1.__globalmouseup($0);$1.deselect()
}else{
$1.__mouseEvent($2)
}};return
};if($1.__shown!=true){
if($2==="onfocus"){
$1.__skipevent=true;$1.__show();$1.__LzInputDiv.blur();LzInputTextSprite.prototype.__lastfocus=$1;LzKeyboardKernel.setKeyboardControl(true)
}};var $6=this.owner.owner;if($2==="onfocus"){
LzMouseKernel.setGlobalClickable(false);LzInputTextSprite.prototype.__focusedSprite=$1;$1.__show();if($1._cancelfocus){
$1._cancelfocus=false;return
};if(window["LzKeyboardKernel"])LzKeyboardKernel.__cancelKeys=false
}else if($2==="onblur"){
if(window["LzKeyboardKernel"])LzKeyboardKernel.__cancelKeys=true;if(LzInputTextSprite.prototype.__focusedSprite===$1){
LzInputTextSprite.prototype.__focusedSprite=null
};$1.__hide();if($1._cancelblur){
$1._cancelblur=false;return
}}else if($2==="onkeypress"){
if($1.restrict||$1.multiline&&$6.maxlength&&$6.maxlength=32||$7===13);if($9){
var $a=false;if($7!=13&&$1.restrict){
$a=0>String.fromCharCode($8).search($1.restrict)
};if(!$a){
var $b=$1.getSelectionSize();if($b<=0){
if($3.text_ie_carriagereturn){
var $c=$1.__LzInputDiv.value.replace($1.____crregexp,"\n")
}else{
var $c=$1.__LzInputDiv.value
};var $d=$c.length,$e=$6.maxlength;if($d>=$e){
$a=true
}}};if($a){
$0.returnValue=false;if($0.preventDefault){
$0.preventDefault()
}}}else{
if($3.keypress_function_keys){
var $f=false;if($0.ctrlKey&&!$0.altKey&&!$0.shiftKey){
var $g=String.fromCharCode($8);$f=$g==="v"||$g==="V"
}else if($0.shiftKey&&!$0.altKey&&!$0.ctrlKey){
$f=$7===45
};if($f){
if($1.restrict){
$1.__pasteHandler()
}else{
var $d=$1.__LzInputDiv.value.length,$e=$6.maxlength;if($d<$e||$1.getSelectionSize()>0){
$1.__pasteHandler()
}else{
$0.returnValue=false;if($0.preventDefault){
$0.preventDefault()
}}}}}};$1.__updatefieldsize()
};return
};if($6){
if($2==="onkeydown"||$2==="onkeyup"){
var $4=$1.__LzInputDiv;var $h=$4.value;if($h!=$1.text){
$1.text=$h;if($1.multiline){
if($1.quirks["forcemeasurescrollheight"]){
$4.style.height=0;var $i=$4.scrollTop;$4.scrollTop=0;if($1._h!=0){
$4.style.height=$1._h
};if($i!=0){
$4.scrollTop=$i
}}};$6.inputtextevent("onchange",$h)
};if($3.autoscroll_textarea&&$2==="onkeydown"&&$4.selectionStart===$h.length){
$4.scrollTop=$4.scrollHeight-$4.clientHeight+20
}}else{
$6.inputtextevent($2)
}}};LzInputTextSprite.prototype.$LzTextSprite$setClickable=LzTextSprite.prototype.setClickable;LzInputTextSprite.prototype.setClickable=function($0){
this.__clickable=$0;this.$LzTextSprite$setClickable(true)
};LzInputTextSprite.prototype.setEnabled=function($0){
this.disabled=!$0;this.__LzInputDiv.disabled=this.disabled
};LzInputTextSprite.prototype.setMaxLength=function($0){
if($0==Infinity){
$0=~0>>>1
};var $1=this.getText();this.__LzInputDiv.maxLength=$0;if($1&&$1.length>$0){
this.owner._updateSize()
}};LzInputTextSprite.prototype.select=function(){
this.__show();try{
this.__LzInputDiv.focus()
}
catch($0){};LzInputTextSprite.prototype.__lastfocus=this;setTimeout(LzInputTextSprite.prototype.__selectLastFocused,50);if(window["LzKeyboardKernel"])LzKeyboardKernel.__cancelKeys=false
};LzInputTextSprite.prototype.__selectLastFocused=function(){
if(LzInputTextSprite.prototype.__lastfocus!=null){
LzInputTextSprite.prototype.__lastfocus.__LzInputDiv.select()
}};LzInputTextSprite.prototype.setSelection=function($0,$1){
switch(arguments.length){
case 1:
$1=null;
};if($1==null){
$1=$0
};this._cancelblur=true;this.__show();LzInputTextSprite.prototype.__lastfocus=this;if(this.quirks["text_selection_use_range"]){
var $2=this.__LzInputDiv.createTextRange();var $3=this.__LzInputDiv.value;if($0>$1){
var $4=$0;$0=$1;$1=$4
};if(this.multiline){
var $5=0;var $6=0;while($5<$0){
$5=$3.indexOf("\r\n",$5+2);if($5==-1)break;$6++
};var $7=0;while($5<$1){
$5=$3.indexOf("\r\n",$5+2);if($5==-1)break;$7++
};var $8=0;while($5<$3.length){
$5=$3.indexOf("\r\n",$5+2);if($5==-1)break;$8++
};var $9=$2.text.length;var $4=$0;var $a=$1-$3.length+$6+$7+$8+1
}else{
var $4=$0;var $a=$1-$2.text.length
};$2.moveStart("character",$4);$2.moveEnd("character",$a);$2.select()
}else{
this.__LzInputDiv.setSelectionRange($0,$1)
};this.__LzInputDiv.focus();if(window["LzKeyboardKernel"])LzKeyboardKernel.__cancelKeys=false
};LzInputTextSprite.prototype.getSelectionPosition=function(){
if(!this.__shown||this.disabled==true)return -1;if(this.quirks["text_selection_use_range"]){
if(this.multiline){
var $0=this._getTextareaSelection()
}else{
var $0=this._getTextSelection()
};if($0){
return $0.start
}else{
return -1
}}else{
return this.__LzInputDiv.selectionStart
}};LzInputTextSprite.prototype.getSelectionSize=function(){
if(!this.__shown||this.disabled==true)return -1;if(this.quirks["text_selection_use_range"]){
if(this.multiline){
var $0=this._getTextareaSelection()
}else{
var $0=this._getTextSelection()
};if($0){
return $0.end-$0.start
}else{
return -1
}}else{
return this.__LzInputDiv.selectionEnd-this.__LzInputDiv.selectionStart
}};if(LzSprite.quirks["text_selection_use_range"]){
LzInputTextSprite.prototype._getTextSelection=function(){
this.__LzInputDiv.focus();var $0=document.selection.createRange();var $1=$0.getBookmark();var $2=contents=this.__LzInputDiv.value;do{
var $3="~~~"+Math.random()+"~~~"
}while(contents.indexOf($3)!=-1);var $4=$0.parentElement();if($4==null||!($4.type=="text"||$4.type=="textarea")){
return
};$0.text=$3+$0.text+$3;contents=this.__LzInputDiv.value;var $5={};$5.start=contents.indexOf($3);contents=contents.replace($3,"");$5.end=contents.indexOf($3);this.__LzInputDiv.value=$2;$0.moveToBookmark($1);$0.select();return $5
};LzInputTextSprite.prototype._getTextareaSelection=function(){
var $0=this.__LzInputDiv;var $1=document.selection.createRange().duplicate();if($1.parentElement()==$0){
var $2=document.body.createTextRange();$2.moveToElementText($0);$2.setEndPoint("EndToStart",$1);var $3=document.body.createTextRange();$3.moveToElementText($0);$3.setEndPoint("StartToEnd",$1);var $4=false,$5=false,$6=false;var $7,$8,$9,$a,$b,$c;$7=$8=$2.text;$9=$a=$1.text;$b=$c=$3.text;do{
if(!$4){
if($2.compareEndPoints("StartToEnd",$2)==0){
$4=true
}else{
$2.moveEnd("character",-1);if($2.text==$7){
$8+="\r\n"
}else{
$4=true
}}};if(!$5){
if($1.compareEndPoints("StartToEnd",$1)==0){
$5=true
}else{
$1.moveEnd("character",-1);if($1.text==$9){
$a+="\r\n"
}else{
$5=true
}}};if(!$6){
if($3.compareEndPoints("StartToEnd",$3)==0){
$6=true
}else{
$3.moveEnd("character",-1);if($3.text==$b){
$c+="\r\n"
}else{
$6=true
}}}}while(!$4||!$5||!$6);var $d=$8+$a+$c;var $e=false;if($0.value==$d){
$e=true
};var $f=$8.length;var $g=$f+$a.length;var $h=$a;var $i=this.__LzInputDiv.value;var $j=0;var $k=0;while($j<$f){
$j=$i.indexOf("\r\n",$j+2);if($j==-1)break;$k++
};var $l=0;while($j<$g){
$j=$i.indexOf("\r\n",$j+2);if($j==-1)break;$l++
};var $m=0;while($j<$i.length){
$j=$i.indexOf("\r\n",$j+2);if($j==-1)break;$m++
};$f-=$k;$g-=$l+$k;return {start:$f,end:$g}}}};LzInputTextSprite.prototype.deselect=function(){
this.__hide();if(this.__LzInputDiv&&this.__LzInputDiv.blur)this.__LzInputDiv.blur();if(window["LzKeyboardKernel"])LzKeyboardKernel.__cancelKeys=true
};LzInputTextSprite.prototype.__fontStyle="normal";LzInputTextSprite.prototype.__fontWeight="normal";LzInputTextSprite.prototype.__fontSize="11px";LzInputTextSprite.prototype.__fontFamily="Verdana,Vera,sans-serif";LzInputTextSprite.prototype.$LzTextSprite$setFontSize=LzTextSprite.prototype.setFontSize;LzInputTextSprite.prototype.setFontSize=function($0){
this.$LzTextSprite$setFontSize($0);if(this.__fontSize!=this._fontSize){
this.__fontSize=this._fontSize;this.__LzInputDiv.style.fontSize=this._fontSize
}};LzInputTextSprite.prototype.$LzTextSprite$setFontStyle=LzTextSprite.prototype.setFontStyle;LzInputTextSprite.prototype.setFontStyle=function($0){
this.$LzTextSprite$setFontStyle($0);if(this.__fontStyle!=this._fontStyle){
this.__fontStyle=this._fontStyle;this.__LzInputDiv.style.fontStyle=this._fontStyle
};if(this.__fontWeight!=this._fontWeight){
this.__fontWeight=this._fontWeight;this.__LzInputDiv.style.fontWeight=this._fontWeight
}};LzInputTextSprite.prototype.$LzTextSprite$setFontName=LzTextSprite.prototype.setFontName;LzInputTextSprite.prototype.setFontName=function($0){
this.$LzTextSprite$setFontName($0);if(this.__fontFamily!=this._fontFamily){
this.__fontFamily=this._fontFamily;this.__LzInputDiv.style.fontFamily=this._fontFamily
}};LzInputTextSprite.prototype.$LzTextSprite$setWidth=LzTextSprite.prototype.setWidth;LzInputTextSprite.prototype.__iwidthcss=0;LzInputTextSprite.prototype.setWidth=function($0){
if($0==null||$0<0||isNaN($0))return;var $1=this.$LzTextSprite$setWidth($0);if($1==null)return;if(this.quirks.fix_clickable&&$1!==null){
$1=this.CSSDimension($1);if($1!==this.__iwidthcss){
this.__iwidthcss=$1;this.__LZinputclickdiv.style.width=$1
}}};LzInputTextSprite.prototype.$LzTextSprite$setHeight=LzTextSprite.prototype.setHeight;LzInputTextSprite.prototype.__iheightcss=0;LzInputTextSprite.prototype.setHeight=function($0){
if($0==null||$0<0||isNaN($0))return;var $1=this.$LzTextSprite$setHeight($0);if($1==null)return;if(this.quirks.fix_clickable&&$1!==null){
$1=this.CSSDimension($1);if($1!==this.__iheightcss){
this.__iheightcss=$1;this.__LZinputclickdiv.style.height=$1
}}};LzInputTextSprite.prototype.setColor=function($0){
if(this.color==$0)return;this.color=$0;this.__LzInputDiv.style.color=LzColorUtils.inttohex($0)
};LzInputTextSprite.prototype.getText=function(){
if(this.multiline&&this.quirks.text_ie_carriagereturn){
return this.__LzInputDiv.value.replace(this.____crregexp,"\n")
}else{
return this.__LzInputDiv.value
}};LzInputTextSprite.findSelection=function(){
if(LzInputTextSprite.__focusedSprite&&LzInputTextSprite.__focusedSprite.owner){
return LzInputTextSprite.__focusedSprite.owner
}};LzInputTextSprite.prototype.setTextColor=function($0){
if(this.textcolor===$0)return;this.textcolor=$0;this.scrolldiv.style.color=LzColorUtils.inttohex($0)
};var LzXMLParser={parseXML:function($0,$1,$2){
try{
var $3=new DOMParser();var $4=$3.parseFromString($0,"text/xml");var $5=this.getParserError($4);if($5){
throw new Error($5)
}else{
return $4.firstChild
}}
catch($lzsc$e){
if(Error["$lzsc$isa"]?Error.$lzsc$isa($lzsc$e):$lzsc$e instanceof Error){
lz.$lzsc$thrownError=$lzsc$e
};throw $lzsc$e
}},getParserError:function($0){
var $1=lz.embed.browser;if($1.isIE){
return this.__checkIE($0)
}else if($1.isFirefox||$1.isOpera){
return this.__checkFirefox($0)
}else if($1.isSafari){
return this.__checkSafari($0)
}},__checkIE:function($0){
var $1=$0.parseError;if($1.errorCode!=0){
return $1.reason
}},__checkFirefox:function($0){
var $1=$0.documentElement;if($1&&$1.nodeName=="parsererror"){
var $2=$1.firstChild.nodeValue;return $2.match(".*")[0]
}},__checkSafari:function($0){
var $1=$0.documentElement;if($1 instanceof HTMLElement){
($1=$1.firstChild)&&($1=$1.firstChild)
}else{
$1=$1.firstChild
};if($1&&$1.nodeName=="parsererror"){
var $2=$1.childNodes[1].textContent;return $2.match("[^:]*: (.*)")[1]
}}};if(typeof DOMParser=="undefined"){
var DOMParser=function(){};DOMParser.prototype.parseFromString=function($0,$1){
if(typeof window.ActiveXObject!="undefined"){
var $2=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.3.0","MSXML.DomDocument"];var $3=null;for(var $4=0;$4<$2.length;$4++){
try{
$3=new ActiveXObject($2[$4]);break
}
catch($5){}};$3.loadXML($0);return $3
}else if(typeof XMLHttpRequest!="undefined"){
$1=$1||"application/xml";var $6=new XMLHttpRequest();$6.open("GET","data:"+$1+";charset=utf-8,"+encodeURIComponent($0),false);if($6.overrideMimeType){
$6.overrideMimeType($1)
};$6.send(null);return $6.responseXML
}}};var LzXMLTranslator={whitespacePat:new RegExp("^\\s*$"),stringTrimPat:new RegExp("^\\s+|\\s+$","g"),copyXML:function($0,$1,$2){
var $3=this.copyBrowserXML($0,true,$1,$2);if($3 instanceof LzDataElement){
return $3
}else{
return null
}},copyBrowserNode:function($0,$1,$2,$3){
var $4=$0.nodeType;if($4==3||$4==4){
var $5=$0.nodeValue;if(!($1&&this.whitespacePat.test($5))){
if($2){
$5=$5.replace(this.stringTrimPat,"")
};return new LzDataText($5)
}}else if($4==1||$4==9){
var $6=!$3&&($0.localName||$0.baseName)||$0.nodeName;var $7={};var $8=$0.attributes;if($8){
for(var $9=0,$a=$8.length;$9<$a;$9++){
var $b=$8[$9];if($b){
var $c=!$3&&($b.localName||$b.baseName)||$b.name;$7[$c]=$b.value
}}};var $d=new LzDataElement($6);$d.attributes=$7;return $d
}},copyBrowserXML:function($0,$1,$2,$3){
var $4=new LzDataElement(null);if(!$0.firstChild){
return $4.appendChild(this.copyBrowserNode($0,$1,$2,$3))
};var $5=this.whitespacePat;var $6=this.stringTrimPat;var $7=$4;var $8,$9=$0;for(;;){
var $a=$9.nodeType;if($a==3||$a==4){
var $b=$9.nodeValue;if(!($1&&$5.test($b))){
if($2){
$b=$b.replace($6,"")
};var $c=$7.childNodes;var $d=$c[$c.length-1];if($d instanceof LzDataText){
$d.data+=$b
}else{
var $e=new LzDataText($b);$e.parentNode=$7;$e.ownerDocument=$4;$e.__LZo=$c.push($e)-1
}}}else if($a==1||$a==9){
var $f=!$3&&($9.localName||$9.baseName)||$9.nodeName;var $g={};var $h=$9.attributes;if($h){
for(var $i=0,$j=$h.length;$i<$j;$i++){
var $k=$h[$i];if($k){
var $l=!$3&&($k.localName||$k.baseName)||$k.name;$g[$l]=$k.value
}}};var $e=new LzDataElement($f);$e.attributes=$g;$e.parentNode=$7;$e.ownerDocument=$4;$e.__LZo=$7.childNodes.push($e)-1;if($8=$9.firstChild){
$7=$e;$9=$8;continue
}};while(!($8=$9.nextSibling)){
$9=$9.parentNode;$7=$7.parentNode;if($9===$0){
return $4.childNodes[0]
}};$9=$8
}}};var LzHTTPLoader=function($0,$1){
this.owner=$0;this.options={parsexml:true,serverproxyargs:null};this.requestheaders={};this.requestmethod=LzHTTPLoader.GET_METHOD
};LzHTTPLoader.GET_METHOD="GET";LzHTTPLoader.POST_METHOD="POST";LzHTTPLoader.PUT_METHOD="PUT";LzHTTPLoader.DELETE_METHOD="DELETE";LzHTTPLoader.prototype.__timeoutID=0;LzHTTPLoader.prototype.loadSuccess=function($0,$1){};LzHTTPLoader.prototype.loadError=function($0,$1){};LzHTTPLoader.prototype.loadTimeout=function($0,$1){};LzHTTPLoader.prototype.loadContent=function($0,$1){
if(this.options["parsexml"]){
this.translateXML()
}else{
this.loadSuccess(this,$1)
}};LzHTTPLoader.prototype.translateXML=function(){
var $0=this.responseXML;if($0==null||$0.childNodes.length==0||lz.embed.browser.isFirefox&&LzXMLParser.getParserError($0)!=null){
this.loadError(this,null)
}else{
var $1;var $2=$0.childNodes;for(var $3=0;$3<$2.length;$3++){
var $4=$2.item($3);if($4.nodeType==1){
$1=$4;break
}};if($1!=null){
var $5=LzXMLTranslator.copyXML($1,this.options.trimwhitespace,this.options.nsprefix);this.loadSuccess(this,$5)
}else{
this.loadError(this,null)
}}};LzHTTPLoader.prototype.getResponse=function(){
return this.responseText
};LzHTTPLoader.prototype.getResponseStatus=function(){
return this.responseStatus
};LzHTTPLoader.prototype.getResponseHeaders=function(){
return this.responseHeaders
};LzHTTPLoader.prototype.getResponseHeader=function($0){
return this.responseHeaders[$0]
};LzHTTPLoader.prototype.setRequestHeaders=function($0){
this.requestheaders=$0
};LzHTTPLoader.prototype.setRequestHeader=function($0,$1){
this.requestheaders[$0]=$1
};LzHTTPLoader.prototype.setOption=function($0,$1){
this.options[$0]=$1
};LzHTTPLoader.prototype.getOption=function($0){
return this.options[$0]
};LzHTTPLoader.prototype.setProxied=function($0){
this.setOption("proxied",$0)
};LzHTTPLoader.prototype.setQueryParams=function($0){
this.queryparams=$0
};LzHTTPLoader.prototype.setQueryString=function($0){
this.querystring=$0
};LzHTTPLoader.prototype.setQueueing=function($0){
this.setOption("queuing",$0)
};LzHTTPLoader.prototype.abort=function(){
if(this.req){
this.__abort=true;this.req.abort();this.req=null;this.removeTimeout(this)
}};LzHTTPLoader.prototype.open=function($0,$1,$2,$3){
if(this.req){
this.abort()
};this.req=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");this.responseStatus=0;this.responseHeaders=null;this.responseText=null;this.responseXML=null;this.__abort=false;this.__timeout=false;this.__timeoutID=0;this.requesturl=$1;this.requestmethod=$0
};LzHTTPLoader.prototype.send=function($0){
this.loadXMLDoc(this.requestmethod,this.requesturl,this.requestheaders,$0,true)
};LzHTTPLoader.prototype.makeProxiedURL=function($0,$1,$2,$3,$4,$5){
var $6={serverproxyargs:this.options.serverproxyargs,sendheaders:this.options.sendheaders,trimwhitespace:this.options.trimwhitespace,nsprefix:this.options.nsprefix,timeout:this.timeout,cache:this.options.cacheable,ccache:this.options.ccache,proxyurl:$0,url:$1,secure:this.secure,postbody:$5,headers:$4,httpmethod:$2,service:$3};return lz.Browser.makeProxiedURL($6)
};LzHTTPLoader.prototype.timeout=Infinity;LzHTTPLoader.prototype.setTimeout=function($0){
this.timeout=$0
};LzHTTPLoader.prototype.setupTimeout=function($0,$1){
$0.__timeoutID=setTimeout(LzHTTPLoader.__LZhandleXMLHTTPTimeout,$1,$0)
};LzHTTPLoader.prototype.removeTimeout=function($0){
var $1=$0.__timeoutID;if($1!=0){
clearTimeout($1)
}};LzHTTPLoader.__LZhandleXMLHTTPTimeout=function($0){
$0.__timeout=true;if($0.req){
$0.req.abort();$0.req=null
};$0.loadTimeout($0,null)
};LzHTTPLoader.prototype.getElapsedTime=function(){
return new Date().getTime()-this.gstart
};LzHTTPLoader.prototype.__setRequestHeaders=function($0,$1){
if($1!=null){
for(var $2 in $1){
var $3=$1[$2];$0.setRequestHeader($2,$3)
}}};LzHTTPLoader.prototype.__getAllResponseHeaders=function($0){
var $1=new RegExp("^([-\\w]+):\\s*(\\S(?:.*\\S)?)\\s*$","mg");var $2=$0.getAllResponseHeaders();var $3={};var $4;while(($4=$1.exec($2))!=null){
$3[$4[1]]=$4[2]
};return $3
};LzHTTPLoader.prototype.loadXMLDoc=function($0,$1,$2,$3,$4){
if(this.req){
var self=this;this.req.onreadystatechange=function(){
var $0=self.req;if($0==null){
return
};if($0.readyState==4){
if(self.__timeout){
}else if(self.__abort){
}else{
self.removeTimeout(self);self.req=null;var $1=-1;try{
$1=$0.status
}
catch($2){};self.responseStatus=$1;if($1==200||$1==304){
self.responseXML=$0.responseXML;self.responseText=$0.responseText;self.responseHeaders=self.__getAllResponseHeaders($0);self.loadContent(self,self.responseText)
}else{
self.loadError(self,null)
}}}};try{
this.req.open($0,$1,true)
}
catch($5){
this.req=null;this.loadError(this,null);return
};if($0=="POST"&&$2["content-type"]==null){
$2["content-type"]="application/x-www-form-urlencoded"
};this.__setRequestHeaders(this.req,$2);this.gstart=new Date().getTime();try{
this.req.send($3)
}
catch($5){
this.req=null;this.loadError(this,null);return
};if(isFinite(this.timeout)){
this.setupTimeout(this,this.timeout)
}}};LzHTTPLoader.prototype.destroy=function(){
return
};var LzScreenKernel={width:null,height:null,__resizeEvent:function(){
var $0=LzSprite.__rootSpriteContainer;LzScreenKernel.width=$0.offsetWidth;LzScreenKernel.height=$0.offsetHeight;if(LzScreenKernel.__callback)LzScreenKernel.__scope[LzScreenKernel.__callback]({width:LzScreenKernel.width,height:LzScreenKernel.height})
},__init:function(){
lz.embed.attachEventHandler(window.top,"resize",LzScreenKernel,"__resizeEvent")
},__callback:null,__scope:null,setCallback:function($0,$1){
this.__scope=$0;this.__callback=$1;this.__init();this.__resizeEvent()
}};Class.make("LzContextMenuKernel",["$lzsc$initialize",function($0){
this.owner=$0
},"owner",null,"showbuiltins",false,"_delegate",null,"setDelegate",function($0){
this._delegate=$0
},"addItem",function($0){},"hideBuiltInItems",function(){
this.showbuiltins=false
},"showBuiltInItems",function(){
this.showbuiltins=true
},"clearItems",function(){},"__show",function(){
if(LzMouseKernel.__showncontextmenu===this){
return
}else{
LzMouseKernel.__showncontextmenu=this
};var $0=this.owner;var $1=this._delegate;if($1!=null)$1.execute($0);if($0.onmenuopen.ready)$0.onmenuopen.sendEvent($0);var $2=[];var $3=$0.getItems();var $4={};for(var $5=0;$5<$3.length;$5++){
var $6=$3[$5].kernel.cmenuitem;var $7=$6.caption;if($6.visible!=true||($7 in $4)){
continue
};$4[$7]=true;if($6.separatorBefore){
$2.push({type:"separator"})
};if($6.enabled){
$2.push({type:"text",label:$7,offset:$5})
}else{
$2.push({type:"disabled",label:$7,offset:$5})
}};var $8=LzContextMenuKernel.lzcontextmenu||LzContextMenuKernel.__create();$8.setItems($2);$8.show()
},"__hide",function(){
LzMouseKernel.__showncontextmenu=null
},"__select",function($0){
var $1=this.owner.getItems();if($1&&$1[$0])$1[$0].kernel.__select()
}],null,["lzcontextmenu",null,"__create",function(){
var $0=LzContextMenuKernel.lzcontextmenu;if(!$0){
LzContextMenuKernel.lzcontextmenu=$0=new (lz.lzcontextmenu)(canvas)
};return $0
}]);Class.make("LzContextMenuItemKernel",["$lzsc$initialize",function($0,$1,$2){
this.owner=$0;this.cmenuitem={visible:true,enabled:true,separatorBefore:false,caption:$1};this.setDelegate($2)
},"owner",null,"cmenuitem",null,"_delegate",null,"setDelegate",function($0){
this._delegate=$0
},"setCaption",function($0){
this.cmenuitem.caption=$0
},"getCaption",function(){
return this.cmenuitem.caption
},"setEnabled",function($0){
this.cmenuitem.enabled=$0
},"setSeparatorBefore",function($0){
this.cmenuitem.separatorBefore=$0
},"setVisible",function($0){
this.cmenuitem.visible=$0
},"__select",function(){
var $0=this.owner;var $1=this._delegate;if($1!=null){
if($1 instanceof LzDelegate){
$1.execute($0)
}else if(typeof $1==="function"){
$1()
}};if($0.onselect.ready)$0.onselect.sendEvent($0)
}]);if(LzSprite.quirks.ie_timer_closure){
(function($0){
window.setTimeout=$0(window.setTimeout);window.setInterval=$0(window.setInterval)
})(function(f){
return( function(c,$0){
var a=Array.prototype.slice.call(arguments,2);if(typeof c!="function")c=new Function(c);return( f(function(){
c.apply(this,a)
},$0))
})
})
};var LzTimeKernel={setTimeout:function(){
return window.setTimeout.apply(window,arguments)
},setInterval:function(){
return window.setInterval.apply(window,arguments)
},clearTimeout:function($0){
return window.clearTimeout($0)
},clearInterval:function($0){
return window.clearInterval($0)
},startTime:new Date().valueOf(),getTimer:function(){
return new Date().valueOf()-LzTimeKernel.startTime
}};var LzFontManager=new Object();LzFontManager.fonts={};LzFontManager.addFont=function($0,$1,$2,$3,$4){
var $5={name:$0,style:$1,weight:$2,url:$3,ptype:$4};this.fonts[$0+"_"+$1+"_"+$2]=$5
};LzFontManager.generateCSS=function(){
var $0=this.fonts;var $1="";for(var $2 in $0){
var $3=$0[$2];var $4=this.getURL($3);var $2=$4.lastIndexOf(".ttf");var $5=$4.substring(0,$2)+".eot";$1+="@font-face{font-family:"+$3.name+";src:url("+$5+');src:local("'+$3.name+'"), url('+$4+') format("truetype");font-weight:'+$3.weight+";font-style:"+$3.style+";}"
};return $1
};LzFontManager.getURL=function($0){
return LzSprite.prototype.getBaseUrl($0)+$0.url
};LzFontManager.__fontloadstate={counter:0};LzFontManager.__fontloadcallbacks={};LzFontManager.isFontLoaded=function($0,$1,$2,$3){
var $4=this.fonts[$1+"_"+$2+"_"+$3];if(!$4)return true;var $5=this.getURL($4);var $6=this.__fontloadstate[$5];if($6){
var $7=$6.state;if($7>=2){
return true
}}else{
var $8="font-family:"+$1+";font-style:"+$2+";font-weight:"+$3+";width:auto;height:auto;";var $9=this.__createMeasureDiv("lzswftext",$8);this.__setTextContent($9,"div",'Yq_gy"9;ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789-=abcdefghijklmnopqrstuvwxyz');$9.style.display="inline";var $a=$9.clientWidth;var $b=$9.clientHeight;$9.style.display="none";var $6={state:1,timer:new Date().valueOf()};this.__fontloadstate[$5]=$6;this.__fontloadstate.counter++;var $c=lz.BrowserUtils.getcallbackfunc(LzFontManager,"__measurefontdiv",[$9,$a,$b,$5]);$6.TID=setInterval($c,Math.random()*20+30)
};this.__fontloadcallbacks[$0.uid]=$0
};LzFontManager.fontloadtimeout=15000;LzFontManager.__measurefontdiv=function($0,$1,$2,$3){
$0.style.display="inline";var $4=$0.clientWidth;var $5=$0.clientHeight;$0.style.display="none";var $6=this.__fontloadstate[$3];if($4==$1&&$5==$2){
var $7=new Date().valueOf()-$6.timer;if($70&&$6.counter%this.__sizecacheupperbound==0){
this.__clearMeasureCache();$7=null
};if(!$7){
$7=$6[$5]={}};var $8=$1+"/"+$2+"/"+$3;var $9=$6[$8];if(!$9){
var $9=this.__createMeasureDiv($1,$2);$6[$8]=$9
};this.__setTextContent($9,$3,$4);$9.style.display="inline";$7[$0]=$0=="width"?$9.clientWidth:$9.clientHeight;$9.style.display="none";return $7
};LzFontManager.__createMeasureDiv=function($0,$1){
var $2="div";var $3=this.__sizecache;if(LzSprite.prototype.quirks["text_measurement_use_insertadjacenthtml"]){
var $4="<"+$2+' id="testSpan'+$3.counter+'"';$4+=' class="'+$0+'"';$4+=' style="'+$1+'">';$4+=""+$2+">";this.__rootdiv.insertAdjacentHTML("beforeEnd",$4);var $5=document.all["testSpan"+$3.counter];if(LzSprite.prototype.quirks.ie_leak_prevention){
LzTextSprite.prototype.__divstocleanup.push($5)
}}else{
var $5=document.createElement($2);lz.embed.__setAttr($5,"class",$0);lz.embed.__setAttr($5,"style",$1);this.__rootdiv.appendChild($5)
};$3.counter++;return $5
};LzFontManager.__setTextContent=function($0,$1,$2){
switch($1){
case "div":
$0.innerHTML=$2;break;
case "input":
case "textarea":
if(LzSprite.prototype.quirks["text_content_use_inner_text"]){
$0.innerText=$2
}else{
$0.textContent=$2
}break;
default:
}};Class.make("LzView",["$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=false;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3)
},"__LZlayout",void 0,"__LZstoredbounds",void 0,"__movecounter",0,"__mousecache",null,"playing",false,"_visible",void 0,"$lzc$set_visible",function($0){
if(this._visible==$0)return;this._visible=$0;if($0){
var $1="visible"
}else if($0==null){
var $1="collapse"
}else{
var $1="hidden"
};this.visibility=$1;if(this.onvisibility.ready)this.onvisibility.sendEvent(this.visibility);this.__LZupdateShown()
},"onaddsubview",LzDeclaredEvent,"onblur",LzDeclaredEvent,"onclick",LzDeclaredEvent,"onclickable",LzDeclaredEvent,"onfocus",LzDeclaredEvent,"onframe",LzDeclaredEvent,"onheight",LzDeclaredEvent,"onkeyup",LzDeclaredEvent,"onkeydown",LzDeclaredEvent,"onlastframe",LzDeclaredEvent,"onload",LzDeclaredEvent,"onframesloadratio",LzDeclaredEvent,"onloadratio",LzDeclaredEvent,"onerror",LzDeclaredEvent,"ontimeout",LzDeclaredEvent,"onmousedown",LzDeclaredEvent,"onmouseout",LzDeclaredEvent,"onmouseover",LzDeclaredEvent,"onmousetrackover",LzDeclaredEvent,"onmousetrackup",LzDeclaredEvent,"onmousetrackout",LzDeclaredEvent,"onmouseup",LzDeclaredEvent,"onmousedragin",LzDeclaredEvent,"onmousedragout",LzDeclaredEvent,"onmouseupoutside",LzDeclaredEvent,"onopacity",LzDeclaredEvent,"onplay",LzDeclaredEvent,"onremovesubview",LzDeclaredEvent,"onresource",LzDeclaredEvent,"onresourceheight",LzDeclaredEvent,"onresourcewidth",LzDeclaredEvent,"onrotation",LzDeclaredEvent,"onstop",LzDeclaredEvent,"ontotalframes",LzDeclaredEvent,"onunstretchedheight",LzDeclaredEvent,"onunstretchedwidth",LzDeclaredEvent,"onvisible",LzDeclaredEvent,"onvisibility",LzDeclaredEvent,"onwidth",LzDeclaredEvent,"onx",LzDeclaredEvent,"onxoffset",LzDeclaredEvent,"ony",LzDeclaredEvent,"onyoffset",LzDeclaredEvent,"onfont",LzDeclaredEvent,"onfontsize",LzDeclaredEvent,"onfontstyle",LzDeclaredEvent,"ondblclick",LzDeclaredEvent,"DOUBLE_CLICK_TIME",500,"onclip",LzDeclaredEvent,"capabilities",void 0,"construct",function($0,$1){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["construct"]||this.nextMethod(arguments.callee,"construct")).call(this,$0?$0:canvas,$1);this.mask=this.immediateparent.mask;this.__makeSprite($1);this.capabilities=this.sprite.capabilities;if($1["width"]!=null||this.__LZhasConstraint("width")){
this.hassetwidth=true;this.__LZcheckwidth=false
};if($1["height"]!=null||this.__LZhasConstraint("height")){
this.hassetheight=true;this.__LZcheckheight=false
};if($1["clip"]){
this.clip=$1.clip;this.makeMasked()
};var $2=LzNode._ignoreAttribute;if($1["stretches"]!=null){
this.$lzc$set_stretches($1.stretches);$1.stretches=$2
};if($1["resource"]!=null){
this.$lzc$set_resource($1.resource);$1.resource=$2
}},"__spriteAttribute",function($0,$1){
if(this[$0]){
if(!this.__LZdeleted){
var $lzsc$i08t1p="$lzc$set_"+$0;if(Function["$lzsc$isa"]?Function.$lzsc$isa(this[$lzsc$i08t1p]):this[$lzsc$i08t1p] instanceof Function){
this[$lzsc$i08t1p]($1)
}else{
this[$0]=$1;var $lzsc$73vhde=this["on"+$0];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$73vhde):$lzsc$73vhde instanceof LzEvent){
if($lzsc$73vhde.ready){
$lzsc$73vhde.sendEvent($1)
}}}}}},"__makeSprite",function($0){
this.sprite=new LzSprite(this,false)
},"init",function(){
if(this.__updateshadowoninit){
delete this.__updateshadowoninit;this.__updateShadow()
};if(this.sprite){
this.sprite.init(this.visible)
}},"addSubview",function($0){
if($0.addedToParent)return;if(this.sprite){
this.sprite.addChildSprite($0.sprite)
};if(this.subviews.length==0){
this.subviews=[]
};this.subviews.push($0);$0.addedToParent=true;if(this.__LZcheckwidth)this.__LZcheckwidthFunction($0);if(this.__LZcheckheight)this.__LZcheckheightFunction($0);if(this.onaddsubview.ready)this.onaddsubview.sendEvent($0)
},"__LZinstantiationDone",function(){
var $0=this.immediateparent;if($0){
$0.addSubview(this)
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["__LZinstantiationDone"]||this.nextMethod(arguments.callee,"__LZinstantiationDone")).call(this)
},"mask",void 0,"focusable",false,"focustrap",void 0,"clip",false,"$lzc$set_clip",function($0){
this.clip=$0;if($0){
this.makeMasked()
}else{
this.removeMask()
};if(this.onclip.ready)this.onclip.sendEvent(this.clip)
},"align","left","$lzc$set_align",function($0){
var $1;$1=function($0){
switch($0){
case "center":
return "__LZalignCenter";
case "right":
return "__LZalignRight";
case "left":
return null;
}};if(this.align==$0)return;var $2=$1(this.align);var $3=$1($0);if($2!=null){
this.releaseConstraintMethod($2)
};if($3!=null){
this.applyConstraintMethod($3,[this.immediateparent,"width",this,"width"])
}else{
this.$lzc$set_x(0)
};this.align=$0
},"valign","top","$lzc$set_valign",function($0){
var $1;$1=function($0){
switch($0){
case "middle":
return "__LZvalignMiddle";
case "bottom":
return "__LZvalignBottom";
case "top":
return null;
}};if(this.valign==$0)return;var $2=$1(this.valign);var $3=$1($0);if($2!=null){
this.releaseConstraintMethod($2)
};if($3!=null){
this.applyConstraintMethod($3,[this.immediateparent,"height",this,"height"])
}else{
this.$lzc$set_y(0)
};this.valign=$0
},"source",void 0,"$lzc$set_source",function($0){
this.setSource($0)
},"clickregion",void 0,"onclickregion",LzDeclaredEvent,"$lzc$set_clickregion",function($0){
if(this.capabilities.clickregion){
if(this.clickregion!==$0){
if(!this.clickable){
this.$lzc$set_clickable(true)
};this.sprite.setClickRegion($0)
}};this.clickregion=$0;if(this.onclickregion.ready)this.onclickregion.sendEvent($0)
},"cursor",void 0,"fgcolor",null,"onfgcolor",LzDeclaredEvent,"$lzc$set_fgcolor",function($0){
if($0!=null&&isNaN($0)){
$0=lz.Type.acceptTypeValue("color",$0,this,"fgcolor")
};this.fgcolor=$0;if(this.onfgcolor.ready)this.onfgcolor.sendEvent($0)
},"font",void 0,"$lzc$set_font",function($0){
this.font=$0;if(this.onfont.ready){
this.onfont.sendEvent(this.font)
}},"fontstyle",void 0,"$lzc$set_fontstyle",function($0){
if($0=="plain"||$0=="bold"||$0=="italic"||$0=="bolditalic"||$0=="bold italic"){
this.fontstyle=$0;if(this.onfontstyle.ready){
this.onfontstyle.sendEvent(this.fontstyle)
}}},"fontsize",void 0,"$lzc$set_fontsize",function($0){
if(!($0<=0||isNaN($0))){
this.fontsize=$0;if(this.onfontsize.ready){
this.onfontsize.sendEvent(this.fontsize)
}}},"stretches","none","$lzc$set_stretches",function($0){
if(!($0=="none"||$0=="both"||$0=="width"||$0=="height")){
var $1=$0==null?"both":($0=="x"?"width":($0=="y"?"height":"none"));$0=$1
}else if(this.stretches==$0){
return
};if(this.backgroundrepeat!="norepeat"){
this.$lzc$set_backgroundrepeat("norepeat")
};this.stretches=$0;this.sprite.stretchResource($0);if($0=="width"||$0=="both"){
this._setrescwidth=true;this.__LZcheckwidth=true;this.reevaluateSize("width")
};if($0=="height"||$0=="both"){
this._setrescheight=true;this.__LZcheckheight=true;this.reevaluateSize("height")
}},"backgroundrepeat","norepeat","onbackgroundrepeat",LzDeclaredEvent,"$lzc$set_backgroundrepeat",function($0){
if(!this.capabilities.backgroundrepeat){
return
}else if($0!="repeat"&&$0!="repeat-x"&&$0!="repeat-y"&&$0!="norepeat"){
return
};if($0!==this.backgroundrepeat){
if($0!="norepeat"&&this.stretches!="none"){
this.$lzc$set_stretches("none")
};this.backgroundrepeat=$0;if($0=="norepeat")$0=null;this.sprite.setBackgroundRepeat($0)
};if(this.onbackgroundrepeat.ready)this.onbackgroundrepeat.sendEvent(this.backgroundrepeat)
},"layout",void 0,"$lzc$set_layout",function($0){
this.layout=$0;if(!this.isinited){
this.__LZstoreAttr($0,"layout");return
};var $1=$0["class"];if($1==null){
$1="simplelayout"
};if(this.__LZlayout){
this.__LZlayout.destroy()
};if($1!="none"){
var $2={};for(var $3 in $0){
if($3!="class"){
$2[$3]=$0[$3]
}};if($1=="null"){
this.__LZlayout=null;return
};this.__LZlayout=new (lz[$1])(this,$2)
}},"aaactive",void 0,"$lzc$set_aaactive",function($0){
if(this.capabilities.accessibility){
this.aaactive=$0;this.sprite.setAAActive($0)
}},"aaname",void 0,"$lzc$set_aaname",function($0){
if(this.capabilities.accessibility){
this.aaname=$0;this.sprite.setAAName($0)
}},"aadescription",void 0,"$lzc$set_aadescription",function($0){
if(this.capabilities.accessibility){
this.aadescription=$0;this.sprite.setAADescription($0)
}},"aatabindex",void 0,"$lzc$set_aatabindex",function($0){
if(this.capabilities.accessibility){
this.aatabindex=$0;this.sprite.setAATabIndex($0)
}},"aasilent",void 0,"$lzc$set_aasilent",function($0){
if(this.capabilities.accessibility){
this.aasilent=$0;this.sprite.setAASilent($0)
}},"sendAAEvent",function($0,$1,$2){
switch(arguments.length){
case 2:
$2=false;
};if(this.capabilities.accessibility){
this.sprite.sendAAEvent($0,$1,$2)
}},"sprite",null,"visible",true,"visibility","collapse","$lzc$set_visibility",function($0){
if(this.visibility==$0)return;this.visibility=$0;if(this.onvisibility.ready)this.onvisibility.sendEvent($0);this.__LZupdateShown()
},"__LZvizO",true,"__LZvizLoad",true,"__LZvizDat",true,"opacity",1,"$lzc$set_opacity",function($0){
if(this.opacity!==$0){
this.opacity=$0;if(this.capabilities.opacity){
this.sprite.setOpacity($0)
};var $1=$0!=0;if(this.__LZvizO!=$1){
this.__LZvizO=$1;this.__LZupdateShown()
}};if(this.onopacity.ready)this.onopacity.sendEvent($0)
},"bgcolor",null,"onbgcolor",LzDeclaredEvent,"$lzc$set_bgcolor",function($0){
if($0!=null&&isNaN($0)){
$0=lz.Type.acceptTypeValue("color",$0,this,"bgcolor")
}else if($0<0){
$0=null
};this.sprite.setBGColor($0);this.bgcolor=$0;if(this.onbgcolor.ready)this.onbgcolor.sendEvent($0)
},"x",0,"__set_x_memo",void 0,"$lzc$set_x",function($0){
this.x=$0;if(this.__set_x_memo===$0){
if(this.onx.ready){
this.onx.sendEvent(this.x)
};return
};this.__set_x_memo=$0;this.__mousecache=null;if(this.__LZhasoffset){
if(this.capabilities.rotation){
$0-=this.xoffset*this.__LZrcos-this.yoffset*this.__LZrsin
}else{
$0-=this.xoffset
}};if(this.pixellock){
$0=$0|0
};this.sprite.setX($0);var $1=this.immediateparent;if($1.__LZcheckwidth){
$1.__LZcheckwidthFunction(this)
};if(this.onx.ready){
this.onx.sendEvent(this.x)
}},"y",0,"__set_y_memo",void 0,"$lzc$set_y",function($0){
this.y=$0;if(this.__set_y_memo===$0){
if(this.ony.ready){
this.ony.sendEvent(this.y)
};return
};this.__set_y_memo=$0;this.__mousecache=null;if(this.__LZhasoffset){
if(this.capabilities.rotation){
$0-=this.xoffset*this.__LZrsin+this.yoffset*this.__LZrcos
}else{
$0-=this.yoffset
}};if(this.pixellock){
$0=$0|0
};this.sprite.setY($0);var $1=this.immediateparent;if($1.__LZcheckheight){
$1.__LZcheckheightFunction(this)
};if(this.ony.ready){
this.ony.sendEvent(this.y)
}},"rotation",0,"$lzc$set_rotation",function($0){
if(this.capabilities.rotation){
this.sprite.setRotation($0)
};this.rotation=$0;this.usegetbounds=this.__LZhasoffset||this.rotation!=0||this.xscale!=1||this.yscale!=1;var $1=Math.PI/180*this.rotation;this.__LZrsin=Math.sin($1);this.__LZrcos=Math.cos($1);if(this.onrotation.ready)this.onrotation.sendEvent($0);if(this.__LZhasoffset){
this.__set_x_memo=void 0;this.$lzc$set_x(this.x);this.__set_y_memo=void 0;this.$lzc$set_y(this.y)
};var $2=this.immediateparent;if($2.__LZcheckwidth)$2.__LZcheckwidthFunction(this);if($2.__LZcheckheight)$2.__LZcheckheightFunction(this)
},"width",0,"__set_width_memo",void 0,"$lzc$set_width",function($0){
if($0!=null){
this.hassetwidth=true;this.width=$0
}else{
this.hassetwidth=false
};if(this.__set_width_memo===$0){
if(this.onwidth.ready){
this.onwidth.sendEvent(this.width)
};return
};this.__set_width_memo=$0;if($0==null){
this.__LZcheckwidth=true;if(this._setrescwidth){
this.unstretchedwidth=null
};this.reevaluateSize("width");return
};if(this.pixellock){
$0=$0|0
};if(!this._setrescwidth){
this.__LZcheckwidth=false
};if(!(LzText["$lzsc$isa"]?LzText.$lzsc$isa(this):this instanceof LzText)){
this.sprite.setWidth($0)
};var $1=this.immediateparent;if($1&&$1.__LZcheckwidth){
$1.__LZcheckwidthFunction(this)
};if(this.onwidth.ready){
this.onwidth.sendEvent(this.width)
}},"height",0,"__set_height_memo",void 0,"$lzc$set_height",function($0){
if($0!=null){
this.hassetheight=true;this.height=$0
}else{
this.hassetheight=false
};if(this.__set_height_memo===$0){
if(this.onheight.ready){
this.onheight.sendEvent(this.height)
};return
};this.__set_height_memo=$0;if($0==null){
this.__LZcheckheight=true;if(this._setrescheight){
this.unstretchedheight=null
};this.reevaluateSize("height");return
};if(this.pixellock){
$0=$0|0
};if(!this._setrescheight){
this.__LZcheckheight=false
};this.sprite.setHeight($0);var $1=this.immediateparent;if($1&&$1.__LZcheckheight){
$1.__LZcheckheightFunction(this)
};if(this.onheight.ready){
this.onheight.sendEvent(this.height)
}},"unstretchedwidth",0,"unstretchedheight",0,"subviews",[],"xoffset",0,"$lzc$set_xoffset",function($0){
this.xoffset=$0;this.__LZhasoffset=this.xoffset!=0||this.yoffset!=0||this.__widthoffset!=0||this.__heightoffset!=0;this.usegetbounds=this.__LZhasoffset||this.rotation!=0||this.xscale!=1||this.yscale!=1;this.__set_x_memo=void 0;this.$lzc$set_x(this.x);this.__set_y_memo=void 0;this.$lzc$set_y(this.y);if(this.onxoffset.ready)this.onxoffset.sendEvent($0)
},"yoffset",0,"$lzc$set_yoffset",function($0){
this.yoffset=$0;this.__LZhasoffset=this.xoffset!=0||this.yoffset!=0||this.__widthoffset!=0||this.__heightoffset!=0;this.usegetbounds=this.__LZhasoffset||this.rotation!=0||this.xscale!=1||this.yscale!=1;this.__set_x_memo=void 0;this.$lzc$set_x(this.x);this.__set_y_memo=void 0;this.$lzc$set_y(this.y);if(this.onyoffset.ready)this.onyoffset.sendEvent($0)
},"__LZrsin",0,"__LZrcos",1,"totalframes",1,"frame",1,"$lzc$set_frame",function($0){
this.frame=$0;this.stop($0);if(this.onframe.ready)this.onframe.sendEvent($0)
},"framesloadratio",0,"loadratio",0,"hassetheight",false,"hassetwidth",false,"addedToParent",null,"masked",false,"pixellock",null,"clickable",false,"$lzc$set_clickable",function($0){
this.sprite.setClickable($0);this.clickable=$0;if(this.onclickable.ready)this.onclickable.sendEvent($0)
},"showhandcursor",null,"$lzc$set_showhandcursor",function($0){
this.showhandcursor=$0;this.sprite.setShowHandCursor($0)
},"resource",null,"$lzc$set_resource",function($0){
if($0==null||$0==this._resource)return;this.resource=this._resource=$0;this.sprite.setResource($0)
},"resourcewidth",0,"resourceheight",0,"__LZcheckwidth",true,"__LZcheckheight",true,"__LZhasoffset",null,"__LZoutlieheight",null,"__LZoutliewidth",null,"setLayout",function($0){
this.$lzc$set_layout($0)
},"setFontName",function($0,$1){
switch(arguments.length){
case 1:
$1=null;
};this.$lzc$set_font($0)
},"_setrescwidth",false,"_setrescheight",false,"searchSubviews",function($0,$1){
var $2=this.subviews.concat();while($2.length>0){
var $3=$2;$2=new Array();for(var $4=$3.length-1;$4>=0;$4--){
var $5=$3[$4];if($5[$0]==$1){
return $5
};var $6=$5.subviews;for(var $7=$6.length-1;$7>=0;$7--){
$2.push($6[$7])
}}};return null
},"layouts",null,"_resource",null,"setResource",function($0){
this.$lzc$set_resource($0)
},"resourceload",function($0){
if("resource" in $0){
this.resource=$0.resource;if(this.onresource.ready)this.onresource.sendEvent($0.resource)
};if(this.resourcewidth!=$0.width){
if("width" in $0){
this.resourcewidth=$0.width;if(this.onresourcewidth.ready)this.onresourcewidth.sendEvent($0.width)
};if(!this.hassetwidth&&this.resourcewidth!=this.width||this._setrescwidth&&this.unstretchedwidth!=this.resourcewidth){
this.updateWidth(this.resourcewidth)
}};if(this.resourceheight!=$0.height){
if("height" in $0){
this.resourceheight=$0.height;if(this.onresourceheight.ready)this.onresourceheight.sendEvent($0.height)
};if(!this.hassetheight&&this.resourceheight!=this.height||this._setrescheight&&this.unstretchedheight!=this.resourceheight){
this.updateHeight(this.resourceheight)
}};if($0.skiponload!=true){
if(this.onload.ready)this.onload.sendEvent(this)
}},"resourceloaderror",function($0){
switch(arguments.length){
case 0:
$0=null;
};this.resourcewidth=0;this.resourceheight=0;if(this.onresourcewidth.ready)this.onresourcewidth.sendEvent(0);if(this.onresourceheight.ready)this.onresourceheight.sendEvent(0);this.reevaluateSize();if(this.onerror.ready)this.onerror.sendEvent($0)
},"resourceloadtimeout",function($0){
switch(arguments.length){
case 0:
$0=null;
};this.resourcewidth=0;this.resourceheight=0;if(this.onresourcewidth.ready)this.onresourcewidth.sendEvent(0);if(this.onresourceheight.ready)this.onresourceheight.sendEvent(0);this.reevaluateSize();if(this.ontimeout.ready)this.ontimeout.sendEvent($0)
},"resourceevent",function($0,$1,$2,$3){
switch(arguments.length){
case 2:
$2=false;
case 3:
$3=false;
};var $4=$3==true||$2==true||this[$0]!=$1;if($2!=true)this[$0]=$1;if($4){
var $5=this["on"+$0];if($5.ready)$5.sendEvent($1)
}},"destroy",function(){
if(this.__LZdeleted)return;var $0=this.immediateparent;var $1=$0&&!$0.__LZdeleted;if($1){
if(this.sprite)this.sprite.predestroy();if(this.addedToParent){
var $2=$0.subviews;if($2!=null){
for(var $3=$2.length-1;$3>=0;$3--){
if($2[$3]==this){
$2.splice($3,1);break
}}}}};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["destroy"]||this.nextMethod(arguments.callee,"destroy")).call(this);if(this.sprite){
this.sprite.destroy($1)
};if($1){
this.$lzc$set_visible(false);if(this.addedToParent){
if($0["__LZoutliewidth"]==this){
$0.__LZoutliewidth=null
};if($0["__LZoutlieheight"]==this){
$0.__LZoutlieheight=null
};if($0.onremovesubview.ready)$0.onremovesubview.sendEvent(this)
}}},"setVisible",function($0){
this.$lzc$set_visible($0)
},"setVisibility",function($0){
this.$lzc$set_visibility($0)
},"__LZupdateShown",function(){
if(this.visibility=="collapse"){
var $0=this.__LZvizO&&this.__LZvizDat&&this.__LZvizLoad
}else{
var $0=this.visibility=="visible"
};if($0!=this.visible){
this.visible=$0;if(this.sprite){
this.sprite.setVisible($0)
};var $1=this.immediateparent;if($1&&$1.__LZcheckwidth)$1.__LZcheckwidthFunction(this);if($1&&$1.__LZcheckheight)$1.__LZcheckheightFunction(this);if(this.onvisible.ready)this.onvisible.sendEvent($0)
}},"setWidth",function($0){
this.$lzc$set_width($0)
},"setHeight",function($0){
this.$lzc$set_height($0)
},"setOpacity",function($0){
this.$lzc$set_opacity($0)
},"setX",function($0){
this.$lzc$set_x($0)
},"setY",function($0){
this.$lzc$set_y($0)
},"setRotation",function($0){
this.$lzc$set_rotation($0)
},"setAlign",function($0){
this.$lzc$set_align($0)
},"__LZalignCenter",function($0){
switch(arguments.length){
case 0:
$0=null;
};var $1=this.immediateparent;this.$lzc$set_x($1.width/2-this.width/2)
},"__LZalignRight",function($0){
switch(arguments.length){
case 0:
$0=null;
};var $1=this.immediateparent;this.$lzc$set_x($1.width-this.width)
},"setXOffset",function($0){
this.$lzc$set_xoffset($0)
},"setYOffset",function($0){
this.$lzc$set_yoffset($0)
},"getBounds",function(){
var $0=(this.width+this.__widthoffset)*this.xscale;var $1=(this.height+this.__heightoffset)*this.yscale;var $2=[-this.xoffset,-this.yoffset,$0-this.xoffset,-this.yoffset,-this.xoffset,$1-this.yoffset,$0-this.xoffset,$1-this.yoffset,this.rotation,this.x,this.y];if(this.__LZstoredbounds){
var $3=$2.length-1;while($2[$3]==LzView.__LZlastmtrix[$3]){
if($3--==0){
return this.__LZstoredbounds
}}};var $4={};for(var $3=0;$3<8;$3+=2){
var $5=$2[$3];var $6=$2[$3+1];var $7=$5*this.__LZrcos-$6*this.__LZrsin;var $8=$5*this.__LZrsin+$6*this.__LZrcos;if($4.xoffset==null||$4.xoffset>$7){
$4.xoffset=$7
};if($4.yoffset==null||$4.yoffset>$8){
$4.yoffset=$8
};if($4.width==null||$4.width<$7){
$4.width=$7
};if($4.height==null||$4.height<$8){
$4.height=$8
}};$4.width-=$4.xoffset;$4.height-=$4.yoffset;$4.x=this.x+$4.xoffset;$4.y=this.y+$4.yoffset;this.__LZstoredbounds=$4;LzView.__LZlastmtrix=$2;return $4
},"$lzc$getBounds_dependencies",function($0,$1){
return [$1,"rotation",$1,"x",$1,"y",$1,"width",$1,"height"]
},"setValign",function($0){
this.$lzc$set_valign($0)
},"__LZvalignMiddle",function($0){
switch(arguments.length){
case 0:
$0=null;
};var $1=this.immediateparent;this.$lzc$set_y($1.height/2-this.height/2)
},"__LZvalignBottom",function($0){
switch(arguments.length){
case 0:
$0=null;
};var $1=this.immediateparent;this.$lzc$set_y($1.height-this.height)
},"setColor",function($0){
this.$lzc$set_fgcolor($0)
},"getColor",function(){
return this.fgcolor
},"setColorTransform",function($0){
if(this.capabilities.colortransform){
this.$lzc$set_colortransform({redMultiplier:$0.ra!=null?$0.ra/100:1,redOffset:$0.rb,greenMultiplier:$0.ga!=null?$0.ga/100:1,greenOffset:$0.gb,blueMultiplier:$0.ba!=null?$0.ba/100:1,blueOffset:$0.bb,alphaMultiplier:$0.aa!=null?$0.aa/100:1,alphaOffset:$0.ab})
}},"oncolortransform",LzDeclaredEvent,"colortransform",void 0,"$lzc$set_colortransform",function($0){
if(this.capabilities.colortransform){
if(this.colortransform===$0){
this.oncolortransform.sendEvent($0);return
};if($0.redMultiplier==null)$0.redMultiplier=1;if($0.redOffset==null)$0.redOffset=0;if($0.greenMultiplier==null)$0.greenMultiplier=1;if($0.greenOffset==null)$0.greenOffset=0;if($0.blueMultiplier==null)$0.blueMultiplier=1;if($0.blueOffset==null)$0.blueOffset=0;if($0.alphaMultiplier==null)$0.alphaMultiplier=1;if($0.alphaOffset==null)$0.alphaOffset=0;this.colortransform=$0;this.sprite.setColorTransform($0);if(this.oncolortransform.ready)this.oncolortransform.sendEvent($0);if($0.redOffset||$0.greenOffset||$0.blueOffset||$0.alphaOffset){
this.tintcolor=LzColorUtils.rgbatoint($0.redOffset,$0.greenOffset,$0.blueOffset,$0.alphaOffset);if(this.ontintcolor.ready)this.ontintcolor.sendEvent(this.tintcolor)
}}},"getColorTransform",function(){
if(this.capabilities.colortransform){
return this.sprite.getColorTransform()
}},"__LZcheckSize",function($0,$1,$2){
if($0.addedToParent){
if($0.usegetbounds){
var $3=$0.getBounds()
}else{
var $3=$0
};var $4=$3[$2]+$3[$1];var $5=this["_setresc"+$1]?this["unstretched"+$1]:this[$1];if($4>$5&&$0.visible){
this["__LZoutlie"+$1]=$0;if($1=="width"){
this.updateWidth($4)
}else this.updateHeight($4)
}else if(this["__LZoutlie"+$1]==$0&&($4<$5||!$0.visible)){
this.reevaluateSize($1)
}}},"__LZcheckwidthFunction",function($0){
this.__LZcheckSize($0,"width","x")
},"__LZcheckheightFunction",function($0){
this.__LZcheckSize($0,"height","y")
},"measureSize",function($0){
var $1=this["resource"+$0];for(var $2=this.subviews.length-1;$2>=0;$2--){
var $3=this.subviews[$2];if($3.visible){
if($3.usegetbounds){
var $4=$3.getBounds()
}else{
var $4=$3
};var $5=$4[$0=="width"?"x":"y"]+$4[$0];if($5>$1){
$1=$5
}}};return $1
},"measureWidth",function(){
return this.measureSize("width")
},"measureHeight",function(){
return this.measureSize("height")
},"updateSize",function($0,$1){
if($0=="width"){
this.updateWidth($1)
}else this.updateHeight($1)
},"updateWidth",function($0){
if(this._setrescwidth){
this.unstretchedwidth=$0;if(this.onunstretchedwidth.ready)this.onunstretchedwidth.sendEvent($0)
};if(!this.hassetwidth){
this.width=$0;this.sprite.setWidth($0);if(this.onwidth.ready)this.onwidth.sendEvent($0);var $1=this.immediateparent;if($1.__LZcheckwidth)$1.__LZcheckwidthFunction(this)
}},"updateHeight",function($0){
if(this._setrescheight){
this.unstretchedheight=$0;if(this.onunstretchedheight.ready)this.onunstretchedheight.sendEvent($0)
};if(!this.hassetheight){
this.height=$0;this.sprite.setHeight($0);if(this.onheight.ready)this.onheight.sendEvent($0);var $1=this.immediateparent;if($1.__LZcheckheight)$1.__LZcheckheightFunction(this)
}},"reevaluateSize",function($0){
switch(arguments.length){
case 0:
$0=null;
};if($0==null){
var $1="height";this.reevaluateSize("width")
}else{
var $1=$0
};if(this["hasset"+$1]&&!this["_setresc"+$1])return;var $2=this["_setresc"+$1]?this["unstretched"+$1]:this[$1];var $3=this["resource"+$1]||0;this["__LZoutlie"+$1]=this;for(var $4=this.subviews.length-1;$4>=0;$4--){
var $5=this.subviews[$4];if($5.usegetbounds){
var $6=$5.getBounds();var $7=$6[$1=="width"?"x":"y"]+$6[$1]
}else{
var $7=$5[$1=="width"?"x":"y"]+$5[$1]
};if($5.visible&&$7>$3){
$3=$7;this["__LZoutlie"+$1]=$5
}};if($2!=$3){
if($1=="width"){
this.updateWidth($3)
}else this.updateHeight($3)
}},"updateResourceSize",function(){
this.sprite.updateResourceSize();this.reevaluateSize()
},"setAttributeRelative",function($0,$1){
var $2=this.getLinkage($1);var $3=$1[$0];if($0=="x"||$0=="y"){
$2.update($0);{
var $lzsc$ofxkzc=($3-$2[$0+"offset"])/$2[$0+"scale"];if(!this.__LZdeleted){
var $lzsc$glf2q9="$lzc$set_"+$0;if(Function["$lzsc$isa"]?Function.$lzsc$isa(this[$lzsc$glf2q9]):this[$lzsc$glf2q9] instanceof Function){
this[$lzsc$glf2q9]($lzsc$ofxkzc)
}else{
this[$0]=$lzsc$ofxkzc;var $lzsc$5c7s53=this["on"+$0];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$5c7s53):$lzsc$5c7s53 instanceof LzEvent){
if($lzsc$5c7s53.ready){
$lzsc$5c7s53.sendEvent($lzsc$ofxkzc)
}}}}}}else if($0=="width"||$0=="height"){
var $4=$0=="width"?"x":"y";$2.update($4);var $5=$4+"scale";{
var $lzsc$kserwz=$3*$1[$5]/$2[$5]/this[$5];if(!this.__LZdeleted){
var $lzsc$2wbmrs="$lzc$set_"+$0;if(Function["$lzsc$isa"]?Function.$lzsc$isa(this[$lzsc$2wbmrs]):this[$lzsc$2wbmrs] instanceof Function){
this[$lzsc$2wbmrs]($lzsc$kserwz)
}else{
this[$0]=$lzsc$kserwz;var $lzsc$kpvu11=this["on"+$0];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$kpvu11):$lzsc$kpvu11 instanceof LzEvent){
if($lzsc$kpvu11.ready){
$lzsc$kpvu11.sendEvent($lzsc$kserwz)
}}}}}}},"$lzc$setAttributeRelative_dependencies",function($0,$1,$2,$3){
var $4=$0.getLinkage($3);var $5=2;var $6=[];if($2=="width"){
var $7="x"
}else if($2=="height"){
var $7="y"
}else{
var $7=$2
};var $8=$7=="x"?"width":"height";while($5){
if($5==2){
var $9=$4.uplinkArray
}else{
var $9=$4.downlinkArray
};$5--;for(var $a=$9.length-1;$a>=0;$a--){
$6.push($9[$a],$7);if($6["_setresc"+$8]){
$6.push([$9[$a],$8])
}}};return $6
},"getAttributeRelative",function($0,$1){
if($1===this){
return this[$0]
};var $2=this.getLinkage($1);if($0=="x"||$0=="y"){
$2.update($0);return this[$0]*$2[$0+"scale"]+$2[$0+"offset"]
}else if($0=="width"||$0=="height"){
var $3=$0=="width"?"x":"y";$2.update($3);var $4=$3+"scale";return this[$0]*this[$4]*$2[$4]/$1[$4]
}},"$lzc$getAttributeRelative_dependencies",function($0,$1,$2,$3){
var $4=$1.getLinkage($3);var $5=2;var $6=[$1,$2];if($2=="width"){
var $7="x"
}else if($2=="height"){
var $7="y"
}else{
var $7=$2
};var $8=$7=="x"?"width":"height";while($5){
if($5==2){
var $9=$4.uplinkArray
}else{
var $9=$4.downlinkArray
};$5--;for(var $a=$9.length-1;$a>=0;$a--){
var $b=$9[$a];$6.push($b,$7);if($b["_setresc"+$8]){
$6.push($b,$8)
}}};return $6
},"__LZviewLinks",null,"getLinkage",function($0){
if(this.__LZviewLinks==null){
this.__LZviewLinks=new Object()
};var $1=$0.getUID();if(this.__LZviewLinks[$1]==null){
this.__LZviewLinks[$1]=new LzViewLinkage(this,$0)
};return this.__LZviewLinks[$1]
},"mouseevent",function($0){
if(this[$0]&&this[$0].ready)this[$0].sendEvent(this)
},"getMouse",function($0){
switch(arguments.length){
case 0:
$0=null;
};if(this.__mousecache==null||this.__movecounter!==lz.GlobalMouse.__movecounter){
this.__movecounter=lz.GlobalMouse.__movecounter;this.__mousecache=this.sprite.getMouse()
};if($0==null)return this.__mousecache;return this.__mousecache[$0]
},"$lzc$getMouse_dependencies",function(){
var $0=Array.prototype.slice.call(arguments,0);return [lz.Idle,"idle"]
},"containsPt",function($0,$1){
var $2=0;var $3=0;var $4=this;do{
if(!$4.visible)return false;if($4.masked||$4===this){
var $5=$0-$2;var $6=$1-$3;if($5<0||$5>=$4.width||$6<0||$6>=$4.height){
return false
}};$2-=$4.x;$3-=$4.y;$4=$4.immediateparent
}while($4!==canvas);return true
},"bringToFront",function(){
if(!this.sprite){
return
};this.sprite.bringToFront()
},"getDepthList",function(){
var $0=this.subviews.concat();$0.sort(this.__zCompare);return $0
},"__zCompare",function($0,$1){
var $2=$0.sprite.getZ();var $3=$1.sprite.getZ();if($2<$3)return -1;if($2>$3)return 1;return 0
},"sendBehind",function($0){
if($0===this)return;return $0?this.sprite.sendBehind($0.sprite):false
},"sendInFrontOf",function($0){
if($0===this)return;return $0?this.sprite.sendInFrontOf($0.sprite):false
},"sendToBack",function(){
this.sprite.sendToBack()
},"setResourceNumber",function($0){
this.$lzc$set_frame($0)
},"stretchResource",function($0){
this.$lzc$set_stretches($0)
},"setBGColor",function($0){
this.$lzc$set_bgcolor($0)
},"setSource",function($0,$1,$2,$3){
switch(arguments.length){
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=null;
};this.sprite.setSource($0,$1,$2,$3)
},"unload",function(){
this._resource=null;this.sprite.unload()
},"makeMasked",function(){
this.sprite.setClip(true);this.masked=true;this.mask=this
},"removeMask",function(){
this.sprite.setClip(false);this.masked=false;this.mask=null
},"setClickable",function($0){
this.$lzc$set_clickable($0)
},"$lzc$set_cursor",function($0){
this.sprite.setCursor($0)
},"setCursor",function($0){
switch(arguments.length){
case 0:
$0=null;
};this.$lzc$set_cursor($0)
},"$lzc$set_play",function($0){
if($0){
this.play()
}else{
this.stop()
}},"setPlay",function($0){
this.$lzc$set_play($0)
},"getMCRef",function(){
return this.getDisplayObject()
},"getDisplayObject",function(){
return this.sprite.getDisplayObject()
},"play",function($0,$1){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=false;
};this.sprite.play($0,$1)
},"stop",function($0,$1){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=false;
};this.sprite.stop($0,$1)
},"setVolume",function($0){
if(this.capabilities.audio){
this.sprite.setVolume($0)
}},"getVolume",function(){
if(this.capabilities.audio){
return this.sprite.getVolume()
};return NaN
},"setPan",function($0){
if(this.capabilities.audio){
this.sprite.setPan($0)
}},"getPan",function(){
if(this.capabilities.audio){
return this.sprite.getPan()
};return NaN
},"getZ",function(){
return this.sprite.getZ()
},"seek",function($0){
if(this.capabilities.audio){
if(this.sprite.isaudio){
this.sprite.seek($0,this.playing);return
}};var $1=$0*canvas.framerate;if(this.playing){
this.play($1,true)
}else{
this.stop($1,true)
}},"getCurrentTime",function(){
if(this.capabilities.audio){
if(this.sprite.isaudio){
return this.sprite.getCurrentTime()
}};return this.frame/canvas.framerate
},"$lzc$getCurrentTime_dependencies",function($0,$1){
return [$1,"frame"]
},"getTotalTime",function(){
if(this.capabilities.audio){
if(this.sprite.isaudio){
return this.sprite.getTotalTime()
}};return this.totalframes/canvas.framerate
},"$lzc$getTotalTime_dependencies",function($0,$1){
return [$1,"load"]
},"getID3",function(){
if(this.capabilities.audio){
if(this.sprite.isaudio){
return this.sprite.getID3()
}};return null
},"setShowHandCursor",function($0){
this.$lzc$set_showhandcursor($0)
},"setAccessible",function($0){
if(this.capabilities.accessibility){
this.sprite.setAccessible($0)
}},"setAAActive",function($0){
this.$lzc$set_aaactive($0)
},"setAAName",function($0){
this.$lzc$set_aaname($0)
},"setAADescription",function($0){
this.$lzc$set_aadescription($0)
},"setAATabIndex",function($0){
this.$lzc$set_aatabindex($0)
},"setAASilent",function($0){
this.$lzc$set_aasilent($0)
},"shouldYieldFocus",function(){
return true
},"blurring",false,"getProxyURL",function($0){
switch(arguments.length){
case 0:
$0=null;
};var $1=this.proxyurl;if($1==null){
return null
}else if(typeof $1=="string"){
return $1
}else if(typeof $1=="function"){
return $1($0)
}},"__LZcheckProxyPolicy",function($0){
if(this.__proxypolicy!=null){
return this.__proxypolicy($0)
};var $1=LzView.__LZproxypolicies;for(var $2=$1.length-1;$2>=0;$2--){
var $3=$1[$2]($0);if($3!=null)return $3
};return canvas.proxied
},"setProxyPolicy",function($0){
this.__proxypolicy=$0
},"__proxypolicy",null,"setProxyURL",function($0){
this.$lzc$set_proxyurl($0)
},"proxyurl",function($0){
return canvas.getProxyURL($0)
},"$lzc$set_proxyurl",function($0){
this.proxyurl=$0
},"contextmenu",null,"$lzc$set_contextmenu",function($0){
this.contextmenu=$0;this.sprite.setContextMenu($0)
},"setContextMenu",function($0){
this.$lzc$set_contextmenu($0)
},"getContextMenu",function(){
return this.contextmenu
},"getNextSelection",function(){},"getPrevSelection",function(){},"cachebitmap",false,"$lzc$set_cachebitmap",function($0){
if($0!=this.cachebitmap){
this.cachebitmap=$0;if(this.capabilities.bitmapcaching){
this.sprite.setBitmapCache($0)
}}},"oncontext",LzDeclaredEvent,"context",null,"$lzc$set_context",function($0){
this.context=$0;if(this.oncontext.ready){
this.oncontext.sendEvent($0)
}},"createContext",function(){
if(this.capabilities["2dcanvas"]){
this.sprite.setContextCallback(this,"$lzc$set_context");var $0=this.sprite.getContext();if($0){
{
if(!this.__LZdeleted){
if(Function["$lzsc$isa"]?Function.$lzsc$isa(this["$lzc$set_context"]):this["$lzc$set_context"] instanceof Function){
this["$lzc$set_context"]($0)
}else{
this["context"]=$0;var $lzsc$vaeqza=this["oncontext"];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$vaeqza):$lzsc$vaeqza instanceof LzEvent){
if($lzsc$vaeqza.ready){
$lzsc$vaeqza.sendEvent($0)
}}}}}}}},"onshadowangle",LzDeclaredEvent,"shadowangle",0,"$lzc$set_shadowangle",function($0){
if(this.capabilities["dropshadows"]){
this.shadowangle=$0;this.__updateShadow();if(this.onshadowangle.ready){
this.onshadowangle.sendEvent($0)
}}},"onshadowdistance",LzDeclaredEvent,"shadowdistance",10,"$lzc$set_shadowdistance",function($0){
if(this.capabilities["dropshadows"]){
if($0<0.01)$0=0;this.shadowdistance=$0;this.__updateShadow();if(this.onshadowdistance.ready){
this.onshadowdistance.sendEvent($0)
}}},"onshadowcolor",LzDeclaredEvent,"shadowcolor",0,"$lzc$set_shadowcolor",function($0){
if(this.capabilities["dropshadows"]){
this.shadowcolor=LzColorUtils.torgb($0);this.__updateShadow();if(this.onshadowcolor.ready){
this.onshadowcolor.sendEvent($0)
}}},"onshadowblurradius",LzDeclaredEvent,"shadowblurradius",4,"$lzc$set_shadowblurradius",function($0){
if(this.capabilities["dropshadows"]){
if($0<0.01)$0=0;this.shadowblurradius=$0;this.__updateShadow();if(this.onshadowblurradius.ready){
this.onshadowblurradius.sendEvent($0)
}}},"__updateShadow",function(){
if(!this.isinited){
this.__updateshadowoninit=true
}else{
this.sprite.updateShadow(this.shadowcolor,this.shadowdistance,this.shadowangle,this.shadowblurradius)
}},"ontintcolor",LzDeclaredEvent,"tintcolor","","$lzc$set_tintcolor",function($0){
if(this.capabilities.colortransform){
var $1={redMultiplier:0,greenMultiplier:0,blueMultiplier:0,alphaMultiplier:1};if($0!=null&&$0!=""){
if(isNaN($0)){
var $0=lz.Type.acceptTypeValue("color",$0,this,"tintcolor")
};var $2=LzColorUtils.inttorgba($0);$1.redOffset=$2[0];$1.greenOffset=$2[1];$1.blueOffset=$2[2];if($2[3]!=null){
$1.alphaOffset=$2[3]
}};this.$lzc$set_colortransform($1);return
};this.tintcolor=$0;if(this.ontintcolor.ready)this.ontintcolor.sendEvent($0)
},"oncornerradius",LzDeclaredEvent,"cornerradius","4","$lzc$set_cornerradius",function($0){
if(this.capabilities["cornerradius"]){
if(this.cornerradius!==$0){
var $1=String($0).split(" ");var $2=$1.length;if($2==0)return;if($2<=1)$1[1]=$1[0];if($2<=3)$1[3]=$1[1];if($2<=2)$1[2]=$1[0];for(var $3=0,$2=$1.length;$3<$2;$3++){
$1[$3]=parseFloat($1[$3])
};this.sprite.setCornerRadius($1)
}};this.cornerradius=$0;if(this.oncornerradius.ready)this.oncornerradius.sendEvent($0)
},"isMouseOver",function(){
var $0=this.getMouse();return this.containsPt($0.x,$0.y)
},"$lzc$isMouseOver_dependencies",function(){
var $0=Array.prototype.slice.call(arguments,0);return [lz.Idle,"idle"]
},"isInFrontOf",function($0){
if(!$0||$0.parent!==this.parent)return null;return this.sprite.getZ()>$0.sprite.getZ()
},"isBehind",function($0){
if(!$0||$0.parent!==this.parent)return null;return this.sprite.getZ()<$0.sprite.getZ()
},"__widthoffset",0,"__heightoffset",0,"__styleinfo",{},"setCSS",function($0,$1){
var $2=this.__styleinfo[$0];if(!$2){
return
};if(this.capabilities[$2.capability]){
this.sprite.setCSS($0,$1,$2.isdimension)
};if($2.affectsoffset){
this.__LZhasoffset=this.xoffset!=0||this.yoffset!=0||this.__widthoffset!=0||this.__heightoffset!=0;this.usegetbounds=this.__LZhasoffset||this.rotation!=0||this.xscale!=1||this.yscale!=1;var $3=this.immediateparent;if($3.__LZcheckwidth)$3.__LZcheckwidthFunction(this);if($3.__LZcheckheight)$3.__LZcheckheightFunction(this)
}},"__LZresolveOtherReferences",function($0){
var $1=$0["layout"];if($1!=null){
this.$lzc$set_layout($1)
}},"usegetbounds",false,"xscale",1,"onxscale",LzDeclaredEvent,"$lzc$set_xscale",function($0){
if(this.capabilities.scaling){
this.xscale=$0;this.usegetbounds=this.__LZhasoffset||this.rotation!=0||this.xscale!=1||this.yscale!=1;this.sprite.setXScale($0)
};if(this.onxscale.ready)this.onxscale.sendEvent($0)
},"yscale",1,"onyscale",LzDeclaredEvent,"$lzc$set_yscale",function($0){
if(this.capabilities.scaling){
this.yscale=$0;this.usegetbounds=this.__LZhasoffset||this.rotation!=0||this.yscale!=1||this.yscale!=1;this.sprite.setYScale($0)
};if(this.onyscale.ready)this.onyscale.sendEvent($0)
}],LzNode,["tagname","view","attributes",new LzInheritedHash(LzNode.attributes),"__LZlastmtrix",[0,0,0,0,0,0,0,0,0,0,0],"__LZproxypolicies",[],"addProxyPolicy",function($0){
LzView.__LZproxypolicies.push($0)
},"removeProxyPolicy",function($0){
var $1=LzView.__LZproxypolicies;for(var $2=0;$2<$1.length;$2++){
if($1[$2]==$0){
LzView.__LZproxypolicies=$1.splice($2,1);return true
}};return false
},"__warnCapability",function($0,$1){
switch(arguments.length){
case 1:
$1="";
}}]);(function($0){
with($0)with($0.prototype){}})(LzView);lz[LzView.tagname]=LzView;Class.make("LzTextscrollEvent",["__senderscope",void 0,"$lzsc$initialize",function($0,$1,$2){
switch(arguments.length){
case 2:
$2=null;
};this.__senderscope=$0;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2)
},"notify",function($0){
if(this.__senderscope){
var $1=this.__senderscope;if($0){
$1.__scrollEventListeners++
}else{
$1.__scrollEventListeners--
};var $2=$1.__scrollEventListeners>0||$1.__userscrollevents;if($2!=$1.scrollevents){
$1.__set_scrollevents($2)
}}}],LzNotifyingEvent,["LzDeclaredTextscrollEvent",void 0]);LzTextscrollEvent.LzDeclaredTextscrollEvent=new LzDeclaredEventClass(LzTextscrollEvent);Class.make("LzTextlinkEvent",["__senderscope",void 0,"$lzsc$initialize",function($0,$1,$2){
switch(arguments.length){
case 2:
$2=null;
};this.__senderscope=$0;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2)
},"notify",function($0){
var $1=this.__senderscope;if($1&&$1.tsprite){
$1.tsprite.activateLinks($0)
}}],LzNotifyingEvent,["LzDeclaredTextlinkEvent",void 0]);LzTextlinkEvent.LzDeclaredTextlinkEvent=new LzDeclaredEventClass(LzTextlinkEvent);Class.make("LzText",["$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=false;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3)
},"selectable",false,"hasdirectionallayout",false,"onselectable",LzDeclaredEvent,"$lzc$set_selectable",function($0){
$0=!(!$0);this.selectable=$0;this.tsprite.setSelectable($0);if(this.onselectable.ready)this.onselectable.sendEvent($0)
},"direction","ltr","ondirection",LzDeclaredEvent,"$lzc$set_direction",function($0){
this.direction=$0;if(this.capabilities.directional_layout){
this.tsprite.setDirection($0)
};if(this.ondirection.ready)this.ondirection.sendEvent($0)
},"antiAliasType","advanced","$lzc$set_antiAliasType",function($0){
if(this.capabilities.advancedfonts){
if($0=="normal"||$0=="advanced"){
this.antiAliasType=$0;this.tsprite.setAntiAliasType($0)
}}},"gridFit","pixel","$lzc$set_gridFit",function($0){
if(this.capabilities.advancedfonts){
if($0=="none"||$0=="pixel"||$0=="subpixel"){
this.gridFit=$0;this.tsprite.setGridFit($0)
}}},"sharpness",0,"$lzc$set_sharpness",function($0){
if(this.capabilities.advancedfonts){
if($0>=-400&&$0<=400){
this.sharpness=$0;this.tsprite.setSharpness($0)
}}},"thickness",0,"$lzc$set_thickness",function($0){
if(this.capabilities.advancedfonts){
if($0>=-200&&$0<=200){
this.thickness=$0;this.tsprite.setThickness($0)
}}},"$lzc$set_clip",function($0){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzc$set_clip"]||this.nextMethod(arguments.callee,"$lzc$set_clip")).call(this,$0);if(this.isinited&&this.scrollevents&&!this.clip){
this.$lzc$set_scrollevents(false)
}},"$lzc$set_width",function($0){
this.tsprite.setWidth($0);(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzc$set_width"]||this.nextMethod(arguments.callee,"$lzc$set_width")).call(this,$0);if(this.scrollwidth0&&$1!=this.height){
this.updateHeight($1)
}}},"getDefaultWidth",function(){
return 0
},"updateAttribute",function($0,$1){
this[$0]=$1;var $2=this["on"+$0];if($2.ready){
$2.sendEvent($1)
}},"updateLineAttribute",function($0,$1){
var $2;if(this.capabilities.linescrolling){
$2=this.tsprite.pixelToLineNo($1)
}else{
$2=Math.ceil($1/this.lineheight)+1
};this.updateAttribute($0,$2)
},"lineheight",0,"$lzc$set_lineheight",function($0){},"onlineheight",LzDeclaredEvent,"__scrollEventListeners",0,"scrollevents",false,"__userscrollevents",false,"$lzc$set_scrollevents",function($0){
this.__userscrollevents=$0;if(this.scrollevents!==$0){
this.__set_scrollevents($0)
}},"__set_scrollevents",function($0){
if(this.scrollevents==$0)return;this.scrollevents=$0;this.tsprite.setScrollEvents($0);if(this.onscrollevents.ready)this.onscrollevents.sendEvent($0)
},"onscrollevents",LzDeclaredEvent,"yscroll",0,"$lzc$set_yscroll",function($0){
if($0>0){
$0=0
};this.tsprite.setYScroll($0);this.updateAttribute("yscroll",$0);this.updateLineAttribute("scroll",-$0)
},"onyscroll",LzTextscrollEvent.LzDeclaredTextscrollEvent,"scrollheight",0,"$lzc$set_scrollheight",function($0){},"onscrollheight",LzTextscrollEvent.LzDeclaredTextscrollEvent,"xscroll",0,"$lzc$set_xscroll",function($0){
if($0>0){
$0=0
};this.tsprite.setXScroll($0);this.updateAttribute("xscroll",$0);this.updateAttribute("hscroll",-$0)
},"onxscroll",LzTextscrollEvent.LzDeclaredTextscrollEvent,"scrollwidth",0,"$lzc$set_scrollwidth",function($0){},"onscrollwidth",LzTextscrollEvent.LzDeclaredTextscrollEvent,"scroll",1,"$lzc$set_scroll",function($0){
if($0<1||$0>this.maxscroll){
$0=$0<1?1:this.maxscroll
};var $1;if(this.capabilities.linescrolling){
$1=this.tsprite.lineNoToPixel($0)
}else{
$1=($0-1)*this.lineheight
};this.$lzc$set_yscroll(-$1)
},"onscroll",LzTextscrollEvent.LzDeclaredTextscrollEvent,"maxscroll",1,"$lzc$set_maxscroll",function($0){},"onmaxscroll",LzTextscrollEvent.LzDeclaredTextscrollEvent,"hscroll",0,"$lzc$set_hscroll",function($0){
if($0<0||$0>this.maxhscroll){
$0=$0<1?1:this.maxhscroll
};this.$lzc$set_xscroll(-$0)
},"onhscroll",LzTextscrollEvent.LzDeclaredTextscrollEvent,"maxhscroll",0,"$lzc$set_maxhscroll",function($0){},"onmaxhscroll",LzTextscrollEvent.LzDeclaredTextscrollEvent,"scrollevent",function($0,$1){
switch($0){
case "scrollTop":
this.updateAttribute("yscroll",-$1);this.updateLineAttribute("scroll",$1);break;
case "scrollLeft":
this.updateAttribute("xscroll",-$1);this.updateAttribute("hscroll",$1);break;
case "scrollHeight":
this.updateAttribute("scrollheight",$1);this.updateLineAttribute("maxscroll",Math.max(0,$1-this.height));break;
case "scrollWidth":
this.updateAttribute("scrollwidth",$1);this.updateAttribute("maxhscroll",Math.max(0,$1-this.width));break;
case "lineHeight":
this.updateAttribute("lineheight",$1);if(this.inited){
this.updateLineAttribute("scroll",-this.yscroll)
}break;
default:
}},"multiline",false,"$lzc$set_multiline",function($0){
$0=!(!$0);if($0!==this.multiline){
this.multiline=$0;this.tsprite.setMultiline($0)
}},"resize",true,"$lzc$set_resize",function($0){
$0=!(!$0);if($0!==this.resize){
this.resize=$0;this.tsprite.setResize($0)
}},"text","","$lzc$set_text",function($0){
$0=String($0);if($0==this.getText()){
if(this.ontext.ready)this.ontext.sendEvent($0);return
};if(this.visible)this.tsprite.setVisible(this.visible);if($0.length>this.maxlength){
$0=$0.substring(0,this.maxlength)
};this.tsprite.setText($0);this.text=$0;if(this.ontext.ready)this.ontext.sendEvent($0)
},"_updateSize",function(){
if(!this.isinited){
return
};if(this.width==0||this.resize&&this.multiline==false){
var $0=this.tsprite.getTextWidth();if($0!=this.width){
this.$lzc$set_width($0)
}};if(!this.hassetheight){
var $1=this.tsprite.getTextfieldHeight();if($1>0&&$1!=this.height){
this.updateHeight($1)
}}},"ontext",LzDeclaredEvent,"ontextlink",LzDeclaredEvent,"maxlength",Infinity,"$lzc$set_maxlength",function($0){
if($0==null){
$0=Infinity
};if(this.maxlength===$0)return;if(isNaN($0)){
return
};this.maxlength=$0;this.tsprite.setMaxLength($0);if(this.onmaxlength.ready)this.onmaxlength.sendEvent($0)
},"onmaxlength",LzDeclaredEvent,"pattern",void 0,"$lzc$set_pattern",function($0){
if($0==null||$0=="")return;this.pattern=$0;this.tsprite.setPattern($0);if(this.onpattern.ready)this.onpattern.sendEvent($0)
},"onpattern",LzDeclaredEvent,"$lzc$set_fontstyle",function($0){
if($0=="plain"||$0=="bold"||$0=="italic"||$0=="bolditalic"||$0=="bold italic"){
var $1=this.fontstyle;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzc$set_fontstyle"]||this.nextMethod(arguments.callee,"$lzc$set_fontstyle")).call(this,$0);if(this.__keepconstraint!=true&&this["__cascadeDelfontstyle"]){
this.__cascadeDelfontstyle.unregisterAll();this.__cascadeDelfontstyle=null
};if($1!==this.fontstyle){
this.tsprite.setFontStyle($0)
}}},"$lzc$set_font",function($0){
var $1=this.font;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzc$set_font"]||this.nextMethod(arguments.callee,"$lzc$set_font")).call(this,$0);if(this.__keepconstraint!=true&&this["__cascadeDelfont"]){
this.__cascadeDelfont.unregisterAll();this.__cascadeDelfont=null
};if($1!==this.font){
this.tsprite.setFontName($0)
}},"$lzc$set_fontsize",function($0){
if($0<=0||isNaN($0)){
}else{
var $1=this.fontsize;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzc$set_fontsize"]||this.nextMethod(arguments.callee,"$lzc$set_fontsize")).call(this,$0);if(this.__keepconstraint!=true&&this["__cascadeDelfontsize"]){
this.__cascadeDelfontsize.unregisterAll();this.__cascadeDelfontsize=null
};if($1!==this.fontsize){
this.tsprite.setFontSize($0)
}}},"$lzc$set_fgcolor",function($0){
var $1=this.fgcolor;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzc$set_fgcolor"]||this.nextMethod(arguments.callee,"$lzc$set_fgcolor")).call(this,$0);if(this.__keepconstraint!=true&&this["__cascadeDelfgcolor"]){
this.__cascadeDelfgcolor.unregisterAll();this.__cascadeDelfgcolor=null
};if($1!==this.fgcolor){
this.tsprite.setTextColor(this.fgcolor)
}},"__keepconstraint",false,"$lzc$set_cascadedfontsize",function($0){
this.__keepconstraint=true;this.$lzc$set_fontsize($0);this.__keepconstraint=false
},"$lzc$set_cascadedfont",function($0){
this.__keepconstraint=true;this.$lzc$set_font($0);this.__keepconstraint=false
},"$lzc$set_cascadedfontstyle",function($0){
this.__keepconstraint=true;this.$lzc$set_fontstyle($0);this.__keepconstraint=false
},"$lzc$set_cascadedfgcolor",function($0){
this.__keepconstraint=true;this.$lzc$set_fgcolor($0);this.__keepconstraint=false
},"textalign","left","$lzc$set_textalign",function($0){
$0=$0?$0.toLowerCase():"left";if(!($0=="left"||$0=="right"||$0=="center"||$0=="justify")){
$0="left"
};this.textalign=$0;this.tsprite.setTextAlign($0)
},"textindent",0,"$lzc$set_textindent",function($0){
if(isNaN($0)){
}else{
this.textindent=$0;this.tsprite.setTextIndent($0)
}},"letterspacing",0,"$lzc$set_letterspacing",function($0){
if(isNaN($0)){
}else{
this.letterspacing=$0;this.tsprite.setLetterSpacing($0)
}},"textdecoration","none","$lzc$set_textdecoration",function($0){
$0=$0?$0.toLowerCase():"none";if(!($0=="none"||$0=="underline")){
$0="none"
};this.textdecoration=$0;this.tsprite.setTextDecoration($0)
},"construct",function($0,$1){
this.hasdirectionallayout=("hasdirectionallayout" in $1)?$1.hasdirectionallayout:false;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["construct"]||this.nextMethod(arguments.callee,"construct")).call(this,$0,$1);var $2={font:null,fontsize:null,fontstyle:null,fgcolor:null};var $3={hassetheight:this.hassetheight,height:this.height};var $4=[];for(var $5 in $2){
if($5 in $1){
this[$5]=$3[$5]=$1[$5]
}else{
$4.push($5)
}};if($4.length>0){
var $6=this.searchParentAttrs($4);for(var $5 in $6){
var $7=$6[$5];this[$5]=$3[$5]=$7[$5];this["__cascadeDel"+$5]=new LzDelegate(this,"$lzc$set_cascaded"+$5,$7,"on"+$5)
}};this.tsprite.__initTextProperties($3);this.yscroll=0;this.xscroll=0;this.$lzc$set_resize(("resize" in $1)?!(!$1.resize):this.resize);if($1["maxlength"]!=null){
this.$lzc$set_maxlength($1.maxlength)
};this.text=$1["text"]!=null?String($1.text):"";if(this.text.length>this.maxlength){
this.text=this.text.substring(0,this.maxlength)
};this.$lzc$set_multiline(("multiline" in $1)?$1.multiline:this.multiline);this.tsprite.setText(this.text);if(!this.hassetwidth){
if(this.multiline){
$1.width=this.parent.width
}else{
if(this.text!=null&&this.text!=""&&this.text.length>0){
$1.width=this.tsprite.getTextWidth()
}else{
$1.width=this.getDefaultWidth()
}}}else{
this.$lzc$set_resize(false)
};if(this.hassetheight&&("height" in $1)){
this.$lzc$set_height($1.height)
};if($1["pattern"]!=null){
this.$lzc$set_pattern($1.pattern)
};if(this.capabilities.advancedfonts){
if(!("antiAliasType" in $1)){
this.$lzc$set_antiAliasType("advanced")
};if(!("gridFit" in $1)){
this.$lzc$set_gridFit("subpixel")
}};if(LzSprite.quirks&&LzSprite.quirks.textlinksneedmouseevents){
this.ontextlink=LzTextlinkEvent.LzDeclaredTextlinkEvent
}},"init",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["init"]||this.nextMethod(arguments.callee,"init")).call(this);if(this.scrollevents&&!this.clip){};this._updateSize()
},"tsprite",void 0,"__makeSprite",function($0){
this.sprite=this.tsprite=new LzTextSprite(this,$0,this.hasdirectionallayout)
},"setResize",function($0){
this.$lzc$set_resize($0)
},"addText",function($0){
this.$lzc$set_text(this.getText()+$0)
},"clearText",function(){
this.$lzc$set_text("")
},"setMaxLength",function($0){
this.$lzc$set_maxlength($0)
},"setPattern",function($0){
this.$lzc$set_pattern($0)
},"getTextWidth",function(){
return this.tsprite.getTextWidth(true)
},"$lzc$getTextWidth_dependencies",function($0,$1){
return [$1,"text"]
},"getTextHeight",function(){
return this.tsprite.getTextfieldHeight(true)
},"$lzc$getTextHeight_dependencies",function($0,$1){
return [$1,"text"]
},"applyData",function($0){
if(null==$0){
this.clearText()
}else{
this.$lzc$set_text($0)
}},"setScroll",function($0){
this.$lzc$set_scroll($0)
},"getScroll",function(){
return this.scroll
},"getMaxScroll",function(){
return this.maxscroll
},"$lzc$getMaxScroll_dependencies",function($0,$1){
return [$1,"maxscroll"]
},"getBottomScroll",function(){
return this.scroll+this.height/this.lineheight
},"setXScroll",function($0){
this.$lzc$set_xscroll($0)
},"setYScroll",function($0){
this.$lzc$set_yscroll($0)
},"setHScroll",function($0){
this.$lzc$set_hscroll($0)
},"annotateAAimg",function($0){
if(typeof $0=="undefined"){
return
};if($0.length==0){
return
};var $1="";var $2=0;var $3=0;var $4;var $5=""){
break
};if($8==$6){
if($d!=" "){
$8=$4;$a=$d
}}else if($8==$4){
if($d==" "||$d=="="){
$8=$7
}else{
$a+=$d
}}else if($8==$7){
if($d==" "||$d=="="){
continue
}else{
$8=$5;$c=$d;$b=""
}}else if($8==$5){
if($d!=$c){
$b+=$d
}else{
$8=$6;$0[$a]=$b
}}};return $3
},"setText",function($0){
this.$lzc$set_text($0)
},"format",function($0){
var $1=Array.prototype.slice.call(arguments,1);this.$lzc$set_text(this.formatToString.apply(this,[$0].concat($1)).toString().toHTML())
},"addFormat",function($0){
var $1=Array.prototype.slice.call(arguments,1);this.$lzc$set_text(this.getText()+this.formatToString.apply(this,[$0].concat($1)).toString().toHTML())
},"getText",function(){
return this.text
},"$lzc$getText_dependencies",function($0,$1){
return [$1,"text"]
},"escapeText",function($0){
var $1=$0==null?this.text:$0;var $2;for(var $3 in LzText.escapeChars){
while($1.indexOf($3)>-1){
$2=$1.indexOf($3);$1=$1.substring(0,$2)+LzText.escapeChars[$3]+$1.substring($2+1)
}};return $1
},"setSelectable",function($0){
this.$lzc$set_selectable($0)
},"setFontSize",function($0){
this.$lzc$set_fontsize($0)
},"setFontStyle",function($0){
this.$lzc$set_fontstyle($0)
},"setMultiline",function($0){
this.$lzc$set_multiline($0)
},"setBorder",function($0){
this.tsprite.setBorder($0)
},"setWordWrap",function($0){
this.tsprite.setWordWrap($0)
},"setEmbedFonts",function($0){
this.tsprite.setEmbedFonts($0)
},"setAntiAliasType",function($0){
this.$lzc$set_antiAliasType($0)
},"getAntiAliasType",function(){
if(this.capabilities.advancedfonts){
return this.antiAliasType
}},"setGridFit",function($0){
this.$lzc$set_gridFit($0)
},"getGridFit",function(){
if(this.capabilities.advancedfonts){
return this.gridFit
}},"setSharpness",function($0){
this.$lzc$set_sharpness($0)
},"getSharpness",function(){
if(this.capabilities.advancedfonts){
return this.sharpness
}},"setThickness",function($0){
this.$lzc$set_thickness($0)
},"getThickness",function(){
if(this.capabilities.advancedfonts){
return this.thickness
}},"setSelection",function($0,$1){
switch(arguments.length){
case 1:
$1=null;
};if($1==null){
$1=$0
};this.tsprite.setSelection($0,$1)
},"getSelectionPosition",function(){
return this.tsprite.getSelectionPosition()
},"getSelectionSize",function(){
return this.tsprite.getSelectionSize()
},"makeTextLink",function($0,$1){
return this.tsprite.makeTextLink($0,$1)
},"toString",function(){
return "LzText: "+this.getText()
}],[LzFormatter,LzView],["tagname","text","attributes",new LzInheritedHash(LzView.attributes),"escapeChars",{">":">","<":"<"}]);(function($0){
with($0)with($0.prototype){
{
LzText.attributes.pixellock=true;LzText.attributes.selectable=false
}}})(LzText);lz[LzText.tagname]=LzText;Class.make("LzInputText",["$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=false;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3)
},"password",void 0,"onenabled",LzDeclaredEvent,"getDefaultWidth",function(){
return 100
},"_onfocusDel",null,"_onblurDel",null,"_modemanagerDel",null,"construct",function($0,$1){
this.password=("password" in $1)?!(!$1.password):false;this.focusable=true;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["construct"]||this.nextMethod(arguments.callee,"construct")).call(this,$0,$1);this.$lzc$set_resize(("resize" in $1)?!(!$1.resize):false);this._onfocusDel=new LzDelegate(this,"_gotFocusEvent",this,"onfocus");this._onblurDel=new LzDelegate(this,"_gotBlurEvent",this,"onblur");this._modemanagerDel=new LzDelegate(this,"_modechanged",lz.ModeManager,"onmode")
},"isprite",void 0,"__makeSprite",function($0){
this.sprite=this.tsprite=this.isprite=new LzInputTextSprite(this,$0,this.hasdirectionallayout)
},"_focused",false,"_gotFocusEvent",function($0){
switch(arguments.length){
case 0:
$0=null;
};this._focused=true;this.isprite.gotFocus()
},"_gotBlurEvent",function($0){
switch(arguments.length){
case 0:
$0=null;
};this._focused=false;this.isprite.gotBlur()
},"inputtextevent",function($0,$1){
switch(arguments.length){
case 1:
$1=null;
};if($0=="onfocus"&&this._focused)return;if($0=="onblur"&&!this._focused)return;if($0=="onfocus"){
this._focused=true;if(lz.Focus.getFocus()!==this){
var $2=lz.Keys.isKeyDown("tab");lz.Focus.setFocus(this,$2);if(lz.Focus.getFocus()!==this&&this._focused){
this._gotBlurEvent()
}}}else if($0=="onchange"){
this.text=this.isprite.getText();if(this.multiline&&!this.hassetheight){
var $3=this.isprite.getTextfieldHeight();if(this.height!=$3){
this.updateHeight($3)
}};if(this.ontext.ready)this.ontext.sendEvent(this.text)
}else if($0=="onblur"){
this._focused=false;if(lz.Focus.getFocus()===this){
lz.Focus.clearFocus()
}}},"updateData",function(){
return this.isprite.getText()
},"enabled",true,"$lzc$set_enabled",function($0){
this.focusable=true;this.enabled=$0;this.isprite.setEnabled($0);if(this.onenabled.ready)this.onenabled.sendEvent($0)
},"setEnabled",function($0){
this.$lzc$set_enabled($0)
},"setHTML",function($0){
if(this.capabilities["htmlinputtext"]){
this.isprite.setHTML($0)
}},"getText",function(){
if(this.isprite!=null){
return this.isprite.getText()
}else{
return ""
}},"_allowselectable",true,"_selectable",void 0,"_modechanged",function($0){
this._setallowselectable(!$0||lz.ModeManager.__LZallowInput($0,this))
},"_setallowselectable",function($0){
this._allowselectable=$0;this.$lzc$set_selectable(this._selectable)
},"$lzc$set_selectable",function($0){
this._selectable=$0;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzc$set_selectable"]||this.nextMethod(arguments.callee,"$lzc$set_selectable")).call(this,this._allowselectable?$0:false)
}],LzText,["tagname","inputtext","attributes",new LzInheritedHash(LzText.attributes)]);(function($0){
with($0)with($0.prototype){
{
LzNode.mergeAttributes({selectable:true,enabled:true,clip:true},LzInputText.attributes)
}}})(LzInputText);lz[LzInputText.tagname]=LzInputText;Class.make("LzViewLinkage",["xscale",1,"yscale",1,"xoffset",0,"yoffset",0,"uplinkArray",null,"downlinkArray",null,"$lzsc$initialize",function($0,$1){
if($0===$1){
return
};var $2=this.uplinkArray=[];var $3=$0;do{
$3=$3.immediateparent;$2.push($3)
}while($3!==canvas);var $4=this.downlinkArray=[];var $3=$1;do{
$3=$3.immediateparent;$4.push($3)
}while($3!==canvas);while($2.length>1&&$4[$4.length-1]===$2[$2.length-1]&&$4[$4.length-2]===$2[$2.length-2]){
$4.pop();$2.pop()
}},"update",function($0){
var $1=$0+"scale";var $2=$0+"offset";var $3=this.uplinkArray;var $4=this.downlinkArray;var $5=1;var $6=0;if($3){
var $7=$3.length-1;var $8=$3[$7--];$5*=$8[$1];for(;$7>=0;$7--){
$8=$3[$7];$6+=$8[$0]*$5;$5*=$8[$1]
}};var $9=1;var $a=0;if($4){
var $7=$4.length-1;var $8=$4[$7--];$9*=$8[$1];for(;$7>=0;$7--){
$8=$4[$7];$a+=$8[$0]*$9;$9*=$8[$1]
}};this[$1]=$5/$9;this[$2]=($6-$a)/$9
}]);Class.make("LzCanvas",["updatePercentCreatedEnabled",true,"_lzinitialsubviews",[],"totalnodes",void 0,"framerate",30,"onframerate",LzDeclaredEvent,"creatednodes",void 0,"__LZproxied",void 0,"embedfonts",void 0,"lpsbuild",void 0,"lpsbuilddate",void 0,"appbuilddate",void 0,"runtime",void 0,"allowfullscreen",void 0,"fullscreen",void 0,"onfullscreen",LzDeclaredEvent,"__LZmouseupDel",void 0,"__LZmousedownDel",void 0,"__LZmousemoveDel",void 0,"__LZDefaultCanvasMenu",void 0,"httpdataprovider",null,"defaultdataprovider",null,"$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=null;
};if(!$1["medialoadtimeout"])$1.medialoadtimeout=this.medialoadtimeout;if(!$1["mediaerrortimeout"])$1.mediaerrortimeout=this.mediaerrortimeout;if($1["fontsize"]!=null){
this.fontsize=LzCanvas.attributes.fontsize.fallback=$1.fontsize;delete $1.fontsize
};if($1["fontstyle"]!=null){
this.fontstyle=LzCanvas.attributes.fontstyle.fallback=$1.fontstyle;delete $1.fontstyle
};if($1["font"]!=null){
this.font=LzCanvas.attributes.font.fallback=$1.font;delete $1.font
};if($1["bgcolor"]!=null){
LzCanvas.attributes.bgcolor.fallback=$1.bgcolor;delete $1.bgcolor
};if($1["width"]!=null){
LzCanvas.attributes.width.fallback=$1.width;delete $1.width
};if($1["height"]!=null){
LzCanvas.attributes.height.fallback=$1.height;delete $1.height
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3);if(this.fgcolor==null)this.fgcolor=0;if(this.fontsize==null)this.fontsize=11;this.datasets={};this.__LZcheckwidth=null;this.__LZcheckheight=null;this.hassetwidth=true;this.hassetheight=true
},"construct",function($0,args){
var $2;$2=function($0,$1){
var $2=args[$0];delete args[$0];if($2!=null){
return !(!$2)
}else if($1!=null){
var $3=lz.Browser.getInitArg($1);if($3!=null){
return $3=="true"
}};return void 0
};this.__makeSprite(null);var $1=this.sprite.capabilities;this.capabilities=$1;this.immediateparent=this;this.datapath=new LzDatapath(this);this.mask=null;this.accessible=$2("accessible",null);if($1.accessibility==true){
this.sprite.setAccessible(this.accessible);if(this.accessible){
this.sprite.setAAActive(true);this.sprite.setAASilent(false)
}}else if(this.accessible){
this.accessible=false
};this.history=$2("history","history");if(this.history&&$1.history!=true){
this.history=false
};this.allowfullscreen=$2("allowfullscreen","allowfullscreen");if(this.allowfullscreen&&$1.allowfullscreen!=true){
this.allowfullscreen=false
};this.fullscreen=false;this.viewLevel=0;this.totalnodes=0;this.creatednodes=0;this.percentcreated=0;if(!args.framerate){
args.framerate=30
};this.proxied=$2("proxied","lzproxied");if(this.proxied==null){
this.proxied=args.__LZproxied=="true"
};if(typeof args.proxyurl=="undefined"){
this.proxyurl=lz.Browser.getBaseURL().toString()
};if(args.focustrap!=null){
if($1.globalfocustrap!=true){
delete args.focustrap
}};LzScreenKernel.setCallback(this,"__windowResize");delete args.width;delete args.height;if($1.allowfullscreen==true){
LzScreenKernel.setFullscreenCallback(this,"__fullscreenEventCallback","__fullscreenErrorCallback")
};this.lpsversion=args.lpsversion+"."+this.__LZlfcversion;delete args.lpsversion;if(!this.version){
this.version=this.lpsversion
};this.isinited=false;this._lzinitialsubviews=[];this.datasets={};global.canvas=this;this.parent=this;this.makeMasked();this.__LZmouseupDel=new LzDelegate(this,"__LZmouseup",lz.GlobalMouse,"onmouseup");this.__LZmousedownDel=new LzDelegate(this,"__LZmousedown",lz.GlobalMouse,"onmousedown");this.__LZmousemoveDel=new LzDelegate(this,"__LZmousemove",lz.GlobalMouse,"onmousemove");this.defaultdataprovider=this.httpdataprovider=new LzHTTPDataProvider();this.id=lz.Browser.getAppID()
},"__LZmouseup",function($0){
if(this.onmouseup.ready)this.onmouseup.sendEvent()
},"__LZmousemove",function($0){
if(this.onmousemove.ready)this.onmousemove.sendEvent()
},"__LZmousedown",function($0){
if(this.onmousedown.ready)this.onmousedown.sendEvent()
},"__makeSprite",function($0){
this.sprite=new LzSprite(this,true)
},"onmouseleave",LzDeclaredEvent,"onmouseenter",LzDeclaredEvent,"onpercentcreated",LzDeclaredEvent,"onmousemove",LzDeclaredEvent,"onafterinit",LzDeclaredEvent,"lpsversion",void 0,"lpsrelease",void 0,"version",null,"scriptlimits",void 0,"__LZlfcversion","0","proxied",true,"dataloadtimeout",30000,"medialoadtimeout",30000,"$lzc$set_medialoadtimeout",function($0){
if(this.capabilities["medialoading"]){
LzSprite.setMediaLoadTimeout($0)
}},"mediaerrortimeout",4500,"$lzc$set_mediaerrortimeout",function($0){
if(this.capabilities["medialoading"]){
LzSprite.setMediaErrorTimeout($0)
}},"percentcreated",void 0,"datasets",null,"compareVersion",function($0,$1){
switch(arguments.length){
case 1:
$1=null;
};if($1==null){
$1=this.lpsversion
};if($0==$1)return 0;var $2=$0.split(".");var $3=$1.split(".");var $4=0;while($4<$2.length||$4<$3.length){
var $5=Number($2[$4])||0;var $6=Number($3[$4++])||0;if($5<$6){
return -1
}else if($5>$6){
return 1
}};return 0
},"$lzc$set_resource",function($0){},"$lzc$set_focustrap",function($0){
lz.Keys.setGlobalFocusTrap($0)
},"toString",function(){
return "This is the canvas"
},"$lzc$set_framerate",function($0){
$0*=1;if($0<1){
$0=1
}else if($0>1000){
$0=1000
};this.framerate=$0;lz.Idle.setFrameRate($0);if(this.onframerate.ready)this.onframerate.sendEvent($0)
},"$lzc$set_fullscreen",function($0){
switch(arguments.length){
case 0:
$0=true;
};if(this.capabilities.allowfullscreen==true){
LzScreenKernel.showFullScreen($0)
}},"__fullscreenEventCallback",function($0,$1){
this.fullscreen=$1;if(this.onfullscreen.ready)this.onfullscreen.sendEvent($0)
},"__fullscreenErrorCallback",function($0){},"$lzc$set_allowfullscreen",function($0){
this.allowfullscreen=$0
},"initDone",function(){
var $0=[];var $1=[];var $2=this._lzinitialsubviews;for(var $3=0,$4=$2.length;$3<$4;++$3){
var $5=$2[$3];if($5["attrs"]&&$5.attrs["initimmediate"]){
$0.push($5)
}else{
$1.push($5)
}};$0.push.apply($0,$1);this._lzinitialsubviews=[];lz.Instantiator.requestInstantiation(this,$0)
},"init",function(){
this.sprite.init(true);if(this.history==true){
lz.History.__start(this.id)
};if(this.contextmenu==null){
this.buildDefaultMenu()
}},"deferInit",true,"__LZinstantiationDone",function(){
this.__LZinstantiated=true;if(this.deferInit){
this.deferInit=false;return
};this.percentcreated=1;this.updatePercentCreatedEnabled=false;if(this.onpercentcreated.ready)this.onpercentcreated.sendEvent(this.percentcreated);lz.Instantiator.resume();this.__LZcallInit()
},"updatePercentCreated",function(){
this.percentcreated=Math.max(this.percentcreated,this.creatednodes/this.totalnodes);this.percentcreated=Math.min(0.99,this.percentcreated);if(this.onpercentcreated.ready)this.onpercentcreated.sendEvent(this.percentcreated)
},"initiatorAddNode",function($0,$1){
this.totalnodes+=$1;this._lzinitialsubviews.push($0)
},"__LZcallInit",function($0){
switch(arguments.length){
case 0:
$0=null;
};if(this.isinited)return;this.isinited=true;if(this.__LZresolveDict!=null)this.__LZresolveReferences();var $1=this.subnodes;if($1){
for(var $2=0;$2<$1.length;){
var $3=$1[$2++];var $4=$1[$2];if($3.isinited||!$3.__LZinstantiated)continue;$3.__LZcallInit();if($4!=$1[$2]){
while($2>0){
if($4==$1[--$2])break
}}}};this.init();if(this.oninit.ready)this.oninit.sendEvent(this);if(this.onafterinit.ready)this.onafterinit.sendEvent(this);if(this.datapath&&this.datapath.__LZApplyDataOnInit){
this.datapath.__LZApplyDataOnInit()
};this.inited=true;if(this.oninited.ready){
this.oninited.sendEvent(true)
}},"isProxied",function(){
return this.proxied
},"$lzc$set_width",function($0){
LzSprite.setRootWidth($0)
},"$lzc$set_x",function($0){
LzSprite.setRootX($0)
},"$lzc$set_height",function($0){
LzSprite.setRootHeight($0)
},"$lzc$set_y",function($0){
LzSprite.setRootY($0)
},"setDefaultContextMenu",function($0){
this.$lzc$set_contextmenu($0);this.sprite.setDefaultContextMenu($0)
},"buildDefaultMenu",function(){
if(!this.capabilities.customcontextmenu)return;this.__LZDefaultCanvasMenu=new LzContextMenu();this.__LZDefaultCanvasMenu.hideBuiltInItems();var $0=new LzContextMenuItem("About OpenLaszlo...",new LzDelegate(this,"__LZdefaultMenuItemHandler"));this.__LZDefaultCanvasMenu.addItem($0);if(this.proxied){
var $1=new LzContextMenuItem("View Source",new LzDelegate(this,"__LZviewSourceMenuItemHandler"));this.__LZDefaultCanvasMenu.addItem($1)
};this.setDefaultContextMenu(this.__LZDefaultCanvasMenu)
},"__LZdefaultMenuItemHandler",function($0){
lz.Browser.loadURL("http://www.openlaszlo.org","lz_about")
},"__LZviewSourceMenuItemHandler",function($0){
var $1=lz.Browser.getBaseURL()+"?lzt=source";lz.Browser.loadURL($1,"lz_source")
},"__windowResize",function($0){
this.width=$0.width;if(this.onwidth.ready)this.onwidth.sendEvent(this.width);this.sprite.setWidth(this.width);this.height=$0.height;if(this.onheight.ready)this.onheight.sendEvent(this.height);this.sprite.setHeight(this.height)
},"LzInstantiateView",function($0,$1){
switch(arguments.length){
case 1:
$1=1;
};canvas.initiatorAddNode($0,$1)
},"lzAddLocalData",function($0,$1,$2,$3){
switch(arguments.length){
case 3:
$3=false;
};return new LzDataset(canvas,{name:$0,initialdata:$1,trimwhitespace:$2,nsprefix:$3})
},"__LzLibraryLoaded",function($0){
canvas.initiatorAddNode({attrs:{libname:$0},"class":LzLibraryCleanup},1);canvas.initDone()
}],LzView,["tagname","canvas","attributes",new LzInheritedHash(LzView.attributes),"versionInfoString",function(){
return "URL: "+lz.Browser.getLoadURL()+"\n"+"LPS\n"+" Version: "+canvas.lpsversion+"\n"+" Release: "+canvas.lpsrelease+"\n"+" Build: "+canvas.lpsbuild+"\n"+" Date: "+canvas.lpsbuilddate+"\n"+"Application\n"+" Date: "+canvas.appbuilddate+"\n"+"Target: "+canvas.runtime+"\n"+"Runtime: "+lz.Browser.getVersion()+"\n"+"OS: "+lz.Browser.getOS()+"\n"
}]);(function($0){
with($0)with($0.prototype){
{
attributes.bgcolor=new LzStyleConstraintExpr("bgcolor","color","background-color",16777215,false);attributes.font=new LzStyleConstraintExpr("font","string","font-family","Verdana,Vera,sans-serif",false);attributes.fontsize=new LzStyleConstraintExpr("fontsize","number","font-size",11,false);attributes.fontstyle=new LzStyleConstraintExpr("fontstyle","string","font-style","plain",false);attributes.fgcolor=new LzStyleConstraintExpr("fgcolor","color","font-color",0,false);attributes.width=new LzStyleConstraintExpr("width","string","width","100%",false);attributes.height=new LzStyleConstraintExpr("height","string","height","100%",false)
}}})(LzCanvas);lz[LzCanvas.tagname]=LzCanvas;var canvas;Class.make("LzScript",["src",void 0,"$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=false;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3);$1.script()
}],LzNode,["tagname","script","attributes",new LzInheritedHash(LzNode.attributes)]);lz[LzScript.tagname]=LzScript;Class.make("LzAnimatorGroup",["$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=false;
};if($1&&("start" in $1)){
$1.started=$1.start;$1.start=LzNode._ignoreAttribute
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3)
},"updateDel",void 0,"crepeat",void 0,"startTime",void 0,"__LZpauseTime",void 0,"actAnim",void 0,"notstarted",void 0,"needsrestart",void 0,"attribute",void 0,"start",true,"$lzc$set_start",function($0){
this.start=$0;this.$lzc$set_started($0)
},"started",void 0,"onstarted",LzDeclaredEvent,"$lzc$set_started",function($0){
this.started=$0;if(this.onstarted.ready)this.onstarted.sendEvent($0);if(!this.isinited){
return
};if($0){
this.doStart()
}else{
this.stop()
}},"onstart",LzDeclaredEvent,"onstop",LzDeclaredEvent,"from",void 0,"to",void 0,"duration",void 0,"onduration",LzDeclaredEvent,"$lzc$set_duration",function($0){
if(isNaN($0)){
$0=0
}else{
$0=Number($0)
};this.duration=$0;var $1=this.subnodes;if($1){
for(var $2=0;$2<$1.length;++$2){
if(LzAnimatorGroup["$lzsc$isa"]?LzAnimatorGroup.$lzsc$isa($1[$2]):$1[$2] instanceof LzAnimatorGroup){
$1[$2].$lzc$set_duration($0)
}}};if(this.onduration.ready)this.onduration.sendEvent($0)
},"indirect",false,"relative",false,"motion","easeboth","repeat",1,"onrepeat",LzDeclaredEvent,"$lzc$set_repeat",function($0){
if($0<=0){
$0=Infinity
};this.repeat=$0
},"paused",false,"onpaused",LzDeclaredEvent,"$lzc$set_paused",function($0){
if(this.paused&&!$0){
this.__LZaddToStartTime(new Date().getTime()-this.__LZpauseTime)
}else if(!this.paused&&$0){
this.__LZpauseTime=new Date().getTime()
};this.paused=$0;if(this.onpaused.ready)this.onpaused.sendEvent($0)
},"target",void 0,"ontarget",LzDeclaredEvent,"$lzc$set_target",function($0){
this.target=$0;var $1=this.subnodes;if($1){
for(var $2=0;$2<$1.length;$2++){
if(LzAnimatorGroup["$lzsc$isa"]?LzAnimatorGroup.$lzsc$isa($1[$2]):$1[$2] instanceof LzAnimatorGroup){
$1[$2].$lzc$set_target($0)
}}};if(this.ontarget.ready)this.ontarget.sendEvent($0)
},"process","sequential","isactive",false,"animatorProps",{attribute:true,from:true,duration:true,to:true,relative:true,target:true,process:true,indirect:true,motion:true},"construct",function($0,$1){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["construct"]||this.nextMethod(arguments.callee,"construct")).call(this,$0,$1);var $2=this.immediateparent;if(LzAnimatorGroup["$lzsc$isa"]?LzAnimatorGroup.$lzsc$isa($2):$2 instanceof LzAnimatorGroup){
for(var $3 in this.animatorProps){
if($1[$3]==null){
$1[$3]=$2[$3]
}};if($2.animators==null){
$2.animators=[this]
}else{
$2.animators.push(this)
};$1.started=LzNode._ignoreAttribute
}else{
this.target=$2
};if(!this.updateDel)this.updateDel=new LzDelegate(this,"update")
},"init",function(){
if(!this.target)this.target=this.immediateparent;if(this.started)this.doStart();(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["init"]||this.nextMethod(arguments.callee,"init")).call(this)
},"doStart",function(){
if(this.isactive)return false;this.isactive=true;if(this.onstart.ready)this.onstart.sendEvent(new Date().getTime());this.prepareStart();this.updateDel.register(lz.Idle,"onidle");return true
},"prepareStart",function(){
this.crepeat=this.repeat;for(var $0=this.animators.length-1;$0>=0;$0--){
this.animators[$0].notstarted=true
};this.actAnim=this.animators.concat()
},"resetAnimator",function(){
this.actAnim=this.animators.concat();for(var $0=this.animators.length-1;$0>=0;$0--){
this.animators[$0].needsrestart=true
}},"update",function($0){
if(this.paused){
return false
};var $1=this.actAnim.length-1;if($1>0&&this.process=="sequential")$1=0;for(var $2=$1;$2>=0;$2--){
var $3=this.actAnim[$2];if($3.notstarted){
$3.isactive=true;$3.prepareStart();$3.notstarted=false
}else if($3.needsrestart){
$3.resetAnimator();$3.needsrestart=false
};if($3.update($0)){
this.actAnim.splice($2,1)
}};if(!this.actAnim.length){
return this.checkRepeat()
};return false
},"pause",function($0){
switch(arguments.length){
case 0:
$0=null;
};if($0==null){
$0=!this.paused
};this.$lzc$set_paused($0)
},"__LZaddToStartTime",function($0){
this.startTime+=$0;if(this.actAnim){
for(var $1=0;$10&&this.process=="sequential")$0=0;for(var $1=$0;$1>=0;$1--){
this.actAnim[$1].stop()
}};this.__LZhalt()
},"__LZfinalizeAnim",function(){
this.__LZhalt()
},"__LZhalt",function(){
this.isactive=false;this.updateDel.unregisterAll();if(this.onstop.ready)this.onstop.sendEvent(new Date().getTime())
},"checkRepeat",function(){
if(this.crepeat==1){
this.__LZfinalizeAnim();return true
}else{
this.crepeat--;if(this.onrepeat.ready)this.onrepeat.sendEvent(new Date().getTime());this.resetAnimator();return false
}},"destroy",function(){
this.stop();this.animators=null;this.actAnim=null;var $0=this.immediateparent;var $1=$0.animators;if($1&&$1.length){
for(var $2=0;$2<$1.length;$2++){
if($1[$2]==this){
$1.splice($2,1);break
}};if(LzAnimatorGroup["$lzsc$isa"]?LzAnimatorGroup.$lzsc$isa($0):$0 instanceof LzAnimatorGroup){
var $3=$0.actAnim;if($3&&$3.length){
for(var $2=0;$2<$3.length;$2++){
if($3[$2]==this){
$3.splice($2,1);break
}}}}};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["destroy"]||this.nextMethod(arguments.callee,"destroy")).call(this)
},"toString",function(){
if(this.animators){
return "Group of "+this.animators.length
};return "Empty group"
}],LzNode,["tagname","animatorgroup","attributes",new LzInheritedHash(LzNode.attributes)]);(function($0){
with($0)with($0.prototype){
{
LzAnimatorGroup.attributes.started=true;LzAnimatorGroup.attributes.ignoreplacement=true
}}})(LzAnimatorGroup);lz[LzAnimatorGroup.tagname]=LzAnimatorGroup;Class.make("LzAnimator",["$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=false;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3)
},"calcMethod",void 0,"currentValue",void 0,"doBegin",void 0,"beginPoleDelta",0.25,"endPoleDelta",0.25,"primary_K",1,"origto",void 0,"beginPole",void 0,"endPole",void 0,"counterkey",void 0,"construct",function($0,$1){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["construct"]||this.nextMethod(arguments.callee,"construct")).call(this,$0,$1);this.calcMethod=this.calcNextValue
},"$lzc$set_motion",function($0){
this.motion=$0;if($0=="linear"){
this.calcMethod=this.calcNextValueLinear
}else{
this.calcMethod=this.calcNextValue;this.beginPoleDelta=0.25;this.endPoleDelta=0.25;if($0=="easeout"){
this.beginPoleDelta=100
}else if($0=="easein"){
this.endPoleDelta=15
}}},"$lzc$set_to",function($0){
this.origto=Number($0)
},"onattribute",LzDeclaredEvent,"$lzc$set_attribute",function($0){
this.attribute=$0;this.counterkey=$0+"_lzcounter";if(this.onattribute.ready)this.onattribute.sendEvent($0)
},"calcControlValues",function(){
var $0=0;this.currentValue=$0;var $1=this.to;var $2=this.indirect?-1:1;if($0<$1){
this.beginPole=$0-$2*this.beginPoleDelta;this.endPole=$1+$2*this.endPoleDelta
}else{
this.beginPole=$0+$2*this.beginPoleDelta;this.endPole=$1-$2*this.endPoleDelta
};this.primary_K=1;var $3=1*(this.beginPole-$1)*($0-this.endPole);var $4=1*(this.beginPole-$0)*($1-this.endPole);if($4!=0)this.primary_K=Math.abs($3/$4)
},"doStart",function(){
if(this.isactive)return;this.isactive=true;this.prepareStart();this.updateDel.register(lz.Idle,"onidle")
},"updateCounter",function($0){
var $1=this.target.__animatedAttributes;var $2=$1[this.counterkey];if($2==null){
$2=$0
}else{
$2+=$0
};if($2==0){
delete $1[this.counterkey]
}else{
$1[this.counterkey]=$2
};return $2
},"prepareStart",function(){
this.crepeat=this.repeat;var $0=this.target;var $1=this.attribute;var $2=$0.__animatedAttributes;if($2==null){
$2=$0.__animatedAttributes={}};if(this.from!=null){
{
var $lzsc$y6rzll=Number(this.from);if(!$0.__LZdeleted){
var $lzsc$l2wpj0="$lzc$set_"+$1;if(Function["$lzsc$isa"]?Function.$lzsc$isa($0[$lzsc$l2wpj0]):$0[$lzsc$l2wpj0] instanceof Function){
$0[$lzsc$l2wpj0]($lzsc$y6rzll)
}else{
$0[$1]=$lzsc$y6rzll;var $lzsc$ckzsfh=$0["on"+$1];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$ckzsfh):$lzsc$ckzsfh instanceof LzEvent){
if($lzsc$ckzsfh.ready){
$lzsc$ckzsfh.sendEvent($lzsc$y6rzll)
}}}}}};if($2[$1]==null){
$2[$1]=Number($0[$1])
};if(this.relative){
this.to=this.origto
}else{
this.to=this.origto-$2[$1]
};$2[$1]+=this.to;this.updateCounter(1);this.currentValue=0;this.calcControlValues();this.doBegin=true
},"resetAnimator",function(){
var $0=this.target;var $1=this.attribute;var $2=$0.__animatedAttributes;if($2[$1]==null){
$2[$1]=Number($0[$1])
};var $3=this.from;if($3!=null){
$2[$1]+=Number($3-$2[$1]);{
var $lzsc$ulzn5=Number($3);if(!$0.__LZdeleted){
var $lzsc$av6itx="$lzc$set_"+$1;if(Function["$lzsc$isa"]?Function.$lzsc$isa($0[$lzsc$av6itx]):$0[$lzsc$av6itx] instanceof Function){
$0[$lzsc$av6itx]($lzsc$ulzn5)
}else{
$0[$1]=$lzsc$ulzn5;var $lzsc$1sfi1h=$0["on"+$1];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$1sfi1h):$lzsc$1sfi1h instanceof LzEvent){
if($lzsc$1sfi1h.ready){
$lzsc$1sfi1h.sendEvent($lzsc$ulzn5)
}}}}}};if(!this.relative){
var $4=this.origto-$2[$1];if(this.to!=$4){
this.to=$4;this.calcControlValues()
}};$2[$1]+=this.to;this.updateCounter(1);this.currentValue=0;this.doBegin=true
},"beginAnimator",function($0){
this.startTime=$0;if(this.onstart.ready)this.onstart.sendEvent($0);this.doBegin=false
},"stop",function(){
if(!this.isactive)return;this.isactive=false;var $0=this.attribute;var $1=this.target.__animatedAttributes;if(this.updateCounter(-1)==0){
delete $1[$0]
}else{
$1[$0]-=this.to-this.currentValue
};this.__LZhalt()
},"__LZfinalizeAnim",function(){
var $0=this.target;var $1=this.attribute;var $2=$0.__animatedAttributes;if(this.updateCounter(-1)==0){
var $3=$2[$1];delete $2[$1];{
if(!$0.__LZdeleted){
var $lzsc$ic3yjm="$lzc$set_"+$1;if(Function["$lzsc$isa"]?Function.$lzsc$isa($0[$lzsc$ic3yjm]):$0[$lzsc$ic3yjm] instanceof Function){
$0[$lzsc$ic3yjm]($3)
}else{
$0[$1]=$3;var $lzsc$pumjm7=$0["on"+$1];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$pumjm7):$lzsc$pumjm7 instanceof LzEvent){
if($lzsc$pumjm7.ready){
$lzsc$pumjm7.sendEvent($3)
}}}}}};this.__LZhalt()
},"calcNextValue",function($0){
var $1=this.currentValue;var $2=this.endPole;var $3=this.beginPole;var $4=Math.exp($0*1/this.duration*Math.log(this.primary_K));if($4!=1){
var $5=$3*$2*(1-$4);var $6=$2-$4*$3;if($6!=0)$1=$5/$6
};return $1
},"calcNextValueLinear",function($0){
var $1=$0/this.duration;return $1*this.to
},"update",function($0){
if(this.doBegin){
this.beginAnimator($0)
}else{
if(!this.paused){
var $1=$0-this.startTime;var $2=false;if($1=0){
var $3=$0===$1;if($0.parentNode!=null){
if($0.parentNode===this){
if(!$3){
var $4=this.__LZremoveChild($0);if($4!=-1&&$4<$2){
$2-=1
}}}else{
$0.parentNode.removeChild($0)
}};if(!$3){
this.__LZcoDirty=true;this.childNodes.splice($2,0,$0)
};$0.$lzc$set_ownerDocument(this.ownerDocument);$0.parentNode=this;if($0.onparentNode.ready)$0.onparentNode.sendEvent(this);if(this.onchildNodes.ready)this.onchildNodes.sendEvent($0);this.ownerDocument.handleDocumentChange("insertBefore",this,0);return $0
};return null
}},"replaceChild",function($0,$1){
if($0==null){
return null
}else{
var $2=this.__LZgetCO($1);if($2>=0){
var $3=$0===$1;if($0.parentNode!=null){
if($0.parentNode===this){
if(!$3){
var $4=this.__LZremoveChild($0);if($4!=-1&&$4<$2){
$2-=1
}}}else{
$0.parentNode.removeChild($0)
}};if(!$3){
$0.__LZo=$2;this.childNodes[$2]=$0
};$0.$lzc$set_ownerDocument(this.ownerDocument);$0.parentNode=this;if($0.onparentNode.ready)$0.onparentNode.sendEvent(this);if(this.onchildNodes.ready)this.onchildNodes.sendEvent($0);this.ownerDocument.handleDocumentChange("childNodes",this,0,$0);return $0
};return null
}},"removeChild",function($0){
var $1=this.__LZgetCO($0);if($1>=0){
this.__LZcoDirty=true;this.childNodes.splice($1,1);if(this.onchildNodes.ready)this.onchildNodes.sendEvent($0);this.ownerDocument.handleDocumentChange("removeChild",this,0,$0);return $0
};return null
},"appendChild",function($0){
if($0==null){
return null
}else{
if($0.parentNode!=null){
if($0.parentNode===this){
this.__LZremoveChild($0)
}else{
$0.parentNode.removeChild($0)
}};this.childNodes.push($0);$0.__LZo=this.childNodes.length-1;$0.$lzc$set_ownerDocument(this.ownerDocument);$0.parentNode=this;if($0.onparentNode.ready)$0.onparentNode.sendEvent(this);if(this.onchildNodes.ready)this.onchildNodes.sendEvent($0);this.ownerDocument.handleDocumentChange("appendChild",this,0,$0);return $0
}},"hasChildNodes",function(){
return this.childNodes.length>0
},"cloneNode",function($0){
switch(arguments.length){
case 0:
$0=false;
};var $1=new LzDataElement(this.nodeName,this.attributes);if($0){
var $2=this.childNodes;var $3=[];for(var $4=$2.length-1;$4>=0;--$4){
$3[$4]=$2[$4].cloneNode(true)
};$1.$lzc$set_childNodes($3)
};return $1
},"getAttr",function($0){
return this.attributes[$0]
},"$lzc$getAttr_dependencies",function($0,$1){
return [$1,"attributes"]
},"setAttr",function($0,$1){
$1=String($1);this.attributes[$0]=$1;if(this.onattributes.ready)this.onattributes.sendEvent($0);this.ownerDocument.handleDocumentChange("attributes",this,1,{name:$0,value:$1,type:"set"});return $1
},"removeAttr",function($0){
var $1=this.attributes[$0];delete this.attributes[$0];if(this.onattributes.ready)this.onattributes.sendEvent($0);this.ownerDocument.handleDocumentChange("attributes",this,1,{name:$0,value:$1,type:"remove"});return $1
},"hasAttr",function($0){
return this.attributes[$0]!=null
},"$lzc$hasAttr_dependencies",function($0,$1){
return [$1,"attributes"]
},"getFirstChild",function(){
return this.childNodes[0]
},"$lzc$getFirstChild_dependencies",function($0,$1){
return [this,"childNodes"]
},"getLastChild",function(){
return this.childNodes[this.childNodes.length-1]
},"$lzc$getLastChild_dependencies",function($0,$1){
return [this,"childNodes"]
},"__LZgetCO",function($0){
if($0!=null){
var $1=this.childNodes;if(!this.__LZcoDirty){
var $2=$0.__LZo;if($1[$2]===$0){
return $2
}}else{
for(var $2=$1.length-1;$2>=0;--$2){
if($1[$2]===$0){
return $2
}}}};return -1
},"__LZremoveChild",function($0){
var $1=this.__LZgetCO($0);if($1>=0){
this.__LZcoDirty=true;this.childNodes.splice($1,1)
};return $1
},"__LZupdateCO",function(){
var $0=this.childNodes;for(var $1=0,$2=$0.length;$1<$2;$1++){
$0[$1].__LZo=$1
};this.__LZcoDirty=false
},"$lzc$set_attributes",function($0){
var $1={};for(var $2 in $0){
$1[$2]=$0[$2]
};this.attributes=$1;if(this.onattributes.ready)this.onattributes.sendEvent($1);this.ownerDocument.handleDocumentChange("attributes",this,1)
},"setAttrs",function($0){
this.$lzc$set_attributes($0)
},"$lzc$set_childNodes",function($0){
if(!$0)$0=[];this.childNodes=$0;if($0.length>0){
var $1=true;var $2=$0[0].parentNode;if($2!=null&&$2!==this&&$2.childNodes===$0){
$1=false;$2.$lzc$set_childNodes([])
};for(var $3=0;$3<$0.length;$3++){
var $4=$0[$3];if($4){
if($1&&$4.parentNode!=null){
if($4.parentNode!==this){
$4.parentNode.removeChild($4)
}};$4.$lzc$set_ownerDocument(this.ownerDocument);$4.parentNode=this;if($4.onparentNode.ready)$4.onparentNode.sendEvent(this);$4.__LZo=$3
}}};this.__LZcoDirty=false;if(this.onchildNodes.ready)this.onchildNodes.sendEvent($0);this.ownerDocument.handleDocumentChange("childNodes",this,0)
},"setChildNodes",function($0){
this.$lzc$set_childNodes($0)
},"$lzc$set_nodeName",function($0){
this.nodeName=$0;if(this.onnodeName.ready)this.onnodeName.sendEvent($0);if(this.parentNode){
if(this.parentNode.onchildNodes.ready)this.parentNode.onchildNodes.sendEvent(this);if(this.parentNode.onchildNode.ready)this.parentNode.onchildNode.sendEvent(this)
};this.ownerDocument.handleDocumentChange("childNodeName",this.parentNode,0);this.ownerDocument.handleDocumentChange("nodeName",this,1)
},"setNodeName",function($0){
this.$lzc$set_nodeName($0)
},"__LZgetText",function(){
var $0="";var $1=this.childNodes;for(var $2=0,$3=$1.length;$2<$3;$2++){
var $4=$1[$2];if($4.nodeType==LzDataElement.TEXT_NODE){
$0+=$4.data
}};return $0
},"getElementsByTagName",function($0){
var $1=[];var $2=this.childNodes;for(var $3=0,$4=$2.length;$3<$4;$3++){
if($2[$3].nodeName==$0){
$1.push($2[$3])
}};return $1
},"__LZlt","<","__LZgt",">","serialize",function(){
return this.serializeInternal()
},"serializeInternal",function($0){
switch(arguments.length){
case 0:
$0=Infinity;
};var $1=this.__LZlt+this.nodeName;var $2=this.attributes;for(var $3 in $2){
$1+=" "+$3+'="'+LzDataElement.__LZXMLescape($2[$3])+'"';if($1.length>$0){
break
}};var $4=this.childNodes;if($1.length<=$0&&$4.length){
$1+=this.__LZgt;for(var $5=0,$6=$4.length;$5<$6;$5++){
$1+=$4[$5].serialize();if($1.length>$0){
break
}};$1+=this.__LZlt+"/"+this.nodeName+this.__LZgt
}else{
$1+="/"+this.__LZgt
};return $1
},"handleDocumentChange",function($0,$1,$2,$3){
switch(arguments.length){
case 3:
$3=null;
};var $4={who:$1,what:$0,type:$2};if($3)$4.cobj=$3;if(this.__LZchangeQ){
this.__LZchangeQ.push($4)
}else{
if(this.onDocumentChange.ready)this.onDocumentChange.sendEvent($4)
}},"toString",function(){
return this.serialize()
},"__LZdoLock",function($0){
if(!this.__LZchangeQ){
this.__LZchangeQ=[];this.__LZlocker=$0
}},"__LZdoUnlock",function($0){
if(this.__LZlocker!=$0){
return
};var $1=this.__LZchangeQ;this.__LZchangeQ=null;this.__LZlocker=null;if($1!=null){
for(var $2=0,$3=$1.length;$2<$3;$2++){
var $4=true;var $5=$1[$2];for(var $6=0;$6<$2;$6++){
var $7=$1[$6];if($5.who==$7.who&&$5.what==$7.what&&$5.type==$7.type){
$4=false;break
}};if($4){
this.handleDocumentChange($5.what,$5.who,$5.type)
}}}}]);lz.DataElementMixin=LzDataElementMixin;Class.make("LzDataElement",["$lzsc$initialize",function($0,$1,$2){
switch(arguments.length){
case 1:
$1=null;
case 2:
$2=null;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this);this.nodeName=$0;this.nodeType=LzDataElement.ELEMENT_NODE;this.ownerDocument=this;if($1){
this.$lzc$set_attributes($1)
}else{
this.attributes={}};if($2){
this.$lzc$set_childNodes($2)
}else{
this.childNodes=[];this.__LZcoDirty=false
}}],[LzDataElementMixin,LzDataNodeMixin,LzDataNode],["NODE_CLONED",1,"NODE_IMPORTED",2,"NODE_DELETED",3,"NODE_RENAMED",4,"NODE_ADOPTED",5,"makeNodeList",function($0,$1){
var $2=[];for(var $3=0;$3<$0;$3++){
$2[$3]=new LzDataElement($1)
};return $2
},"valueToElement",function($0){
return new LzDataElement("element",{},LzDataElement.__LZv2E($0))
},"__LZdateToJSON",function($0){
var $1;var $2;$1=function($0){
return($0<10?"0":"")+$0
};$2=function($0){
return($0<10?"00":($0<100?"0":""))+$0
};if(isFinite($0.valueOf())){
return $0.getUTCFullYear()+"-"+$1($0.getUTCMonth()+1)+"-"+$1($0.getUTCDate())+"T"+$1($0.getUTCHours())+":"+$1($0.getUTCMinutes())+":"+$1($0.getUTCSeconds())+"."+$2($0.getUTCMilliseconds())+"Z"
}else{
return null
}},"__LZv2E",function($0){
var $1=[];if(typeof $0=="object"){
if((LzDataElement["$lzsc$isa"]?LzDataElement.$lzsc$isa($0):$0 instanceof LzDataElement)||(LzDataText["$lzsc$isa"]?LzDataText.$lzsc$isa($0):$0 instanceof LzDataText)){
$1[0]=$0
}else if(Date["$lzsc$isa"]?Date.$lzsc$isa($0):$0 instanceof Date){
var $2=LzDataElement.__LZdateToJSON($0);if($2!=null){
$1[0]=new LzDataText($2)
}}else if(Array["$lzsc$isa"]?Array.$lzsc$isa($0):$0 instanceof Array){
var $3=$0.__LZtag!=null?$0.__LZtag:"item";for(var $4=0;$4<$0.length;$4++){
var $5=LzDataElement.__LZv2E($0[$4]);$1[$4]=new LzDataElement($3,null,$5)
}}else{
var $4=0;for(var $6 in $0){
if($6.indexOf("__LZ")==0)continue;$1[$4++]=new LzDataElement($6,null,LzDataElement.__LZv2E($0[$6]))
}}}else if($0!=null){
$1[0]=new LzDataText(String($0))
};return $1.length!=0?$1:null
},"ELEMENT_NODE",1,"TEXT_NODE",3,"DOCUMENT_NODE",9,"__LZescapechars",{"&":"&","<":"<",">":">",'"':""","'":"'"},"__LZXMLescape",function($0){
if(typeof $0!="string")return $0;var $1=LzDataElement.__LZescapechars;var $2=$0.length;var $3="";for(var $4=0;$4<$2;$4++){
var $5=$0.charCodeAt($4);if($5<32){
$3+=""+$5.toString(16)+";"
}else{
var $6=$0.charAt($4);$3+=$1[$6]||$6
}};return $3
},"stringToLzData",function($0,$1,$2){
switch(arguments.length){
case 1:
$1=false;
case 2:
$2=false;
};if($0!=null&&$0!=""){
var $3;try{
$3=LzXMLParser.parseXML($0,$1,$2)
}
catch($4){};if($3!=null){
var $5=LzXMLTranslator.copyXML($3,$1,$2);return $5
}};return null
},"whitespaceChars",{" ":true,"\r":true,"\n":true,"\t":true},"trim",function($0){
var $1=LzDataElement.whitespaceChars;var $2=$0.length;var $3=0;var $4=$2-1;var $5;while($3<$2){
$5=$0.charAt($3);if($1[$5]!=true)break;$3++
};while($4>$3){
$5=$0.charAt($4);if($1[$5]!=true)break;$4--
};return $0.slice($3,$4+1)
}]);lz.DataElement=LzDataElement;Class.make("LzDataText",["$lzsc$initialize",function($0){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this);this.nodeType=LzDataElement.TEXT_NODE;this.data=$0
},"ondata",LzDeclaredEvent,"nodeName","#text","data","","$lzc$set_data",function($0){
this.data=$0;if(this.ondata.ready){
this.ondata.sendEvent($0)
};if(this.ownerDocument){
this.ownerDocument.handleDocumentChange("data",this,1)
}},"setData",function($0){
this.$lzc$set_data($0)
},"cloneNode",function($0){
switch(arguments.length){
case 0:
$0=false;
};var $1=new LzDataText(this.data);return $1
},"serialize",function(){
return LzDataElement.__LZXMLescape(this.data)
},"toString",function(){
return this.data
}],[LzDataNodeMixin,LzDataNode]);lz.DataText=LzDataText;Class.make("LzDataRequest",["requestor",null,"src",null,"timeout",Infinity,"status",null,"rawdata",null,"error",null,"onstatus",LzDeclaredEvent,"$lzsc$initialize",function($0){
switch(arguments.length){
case 0:
$0=null;
};this.requestor=$0
}],LzEventable,["SUCCESS","success","TIMEOUT","timeout","ERROR","error","READY","ready","LOADING","loading"]);lz.DataRequest=LzDataRequest;Class.make("LzDataProvider",["$lzsc$initialize",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this)
},"doRequest",function($0){},"abortLoadForRequest",function($0){}],LzEventable);lz.DataProvider=LzDataProvider;Class.make("LzHTTPDataRequest",["method","GET","postbody",void 0,"proxied",void 0,"proxyurl",void 0,"multirequest",false,"queuerequests",false,"queryparams",null,"requestheaders",null,"getresponseheaders",false,"responseheaders",void 0,"cacheable",false,"clientcacheable",false,"trimwhitespace",false,"nsprefix",false,"serverproxyargs",null,"xmldata",null,"loadtime",0,"loadstarttime",void 0,"secure",false,"secureport",void 0,"parsexml",true,"loader",null,"$lzsc$initialize",function($0){
switch(arguments.length){
case 0:
$0=null;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0)
}],LzDataRequest);lz.HTTPDataRequest=LzHTTPDataRequest;Class.make("LzHTTPDataProvider",["__loaders",null,"$lzsc$initialize",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this)
},"makeLoader",function($0){
var $1=$0.proxied;if(this.__loaders==null)this.__loaders=[];var $2=new LzHTTPLoader(this,$1);this.__loaders.push($2);$0.loader=$2;$2.loadSuccess=this.loadSuccess;$2.loadError=this.loadError;$2.loadTimeout=this.loadTimeout;$2.setProxied($1);var $3=$0.secure;if($3==null){
if($0.src.substring(0,5)=="https"){
$3=true
}};$2.secure=$3;if($3){
$2.baserequest=lz.Browser.getBaseURL($3,$0.secureport);$2.secureport=$0.secureport
};return $2
},"abortLoadForRequest",function($0){
$0.loader.abort()
},"doRequest",function($0){
var $1=$0;if(!$1.src)return;var $2=$1.proxied;var $3=$1.loader;if($3==null||$1.multirequest==true||$1.queuerequests==true){
$3=this.makeLoader($1)
};$3.dataRequest=$1;$3.setQueueing($1.queuerequests);$3.setTimeout($1.timeout);$3.setOption("serverproxyargs",$1.serverproxyargs);$3.setOption("cacheable",$1.cacheable==true);$3.setOption("timeout",$1.timeout);$3.setOption("trimwhitespace",$1.trimwhitespace==true);$3.setOption("nsprefix",$1.nsprefix==true);$3.setOption("sendheaders",$1.getresponseheaders==true);$3.setOption("parsexml",$1.parsexml);if($1.clientcacheable!=null){
$3.setOption("ccache",$1.clientcacheable)
};var $4={};var $5=$1.requestheaders;if($5!=null){
var $6=$5.getNames();for(var $7=0;$7<$6.length;$7++){
var $8=$6[$7];var $9=$5.getValue($8);if($2){
$4[$8]=$9
}else{
$3.setRequestHeader($8,$9)
}}};var $a=$1.queryparams;var $b=true;var $c=$1.postbody;if($c==null&&$a!=null){
$c=$a.serialize("=","&",true)
}else{
$b=false
};$3.setOption("hasquerydata",$b);var $d=new LzURL($1.src);if($1.method=="GET"){
if($d.query==null){
$d.query=$c
}else{
if($c!=null){
$d.query+="&"+$c
}};$c=null
};var $e="__lzbc__="+new Date().getTime();if(!$2&&$1.method=="POST"&&($c==null||$c=="")){
$c=$e
};var $f;if($2){
$f=$3.makeProxiedURL($1.proxyurl,$d.toString(),$1.method,"xmldata",$4,$c);var $g=$f.indexOf("?");var $h=$f.substring($g+1,$f.length);var $i=$f.substring(0,$g);$f=$i+"?"+$e;$c=$h
}else{
if(!$1.clientcacheable){
if($1.method=="GET"){
if($d.query==null){
$d.query=$e
}else{
$d.query+="&"+$e
}}};$f=$d.toString()
};$1.loadstarttime=new Date().getTime();$1.status=LzDataRequest.LOADING;$3.open($2?"POST":$1.method,$f,null,null);$3.send($c)
},"loadSuccess",function($0,$1){
var $2=$0.dataRequest;$2.status=LzDataRequest.SUCCESS;$0.owner.loadResponse($2,$1)
},"loadError",function($0,$1){
var $2=$0.dataRequest;$2.status=LzDataRequest.ERROR;$0.owner.loadResponse($2,$1)
},"loadTimeout",function($0,$1){
var $2=$0.dataRequest;$2.loadtime=new Date().getTime()-$2.loadstarttime;$2.status=LzDataRequest.TIMEOUT;if($2.onstatus.ready)$2.onstatus.sendEvent($2)
},"setRequestError",function($0,$1){
$0.error=$1;$0.status=LzDataRequest.ERROR
},"loadResponse",function($0,$1){
$0.loadtime=new Date().getTime()-$0.loadstarttime;$0.rawdata=$0.loader.getResponse();if($1==null){
this.setRequestError($0,"client could not parse XML from server");if($0.onstatus.ready)$0.onstatus.sendEvent($0);return
};var $2=$0.proxied;if(!$0.parsexml){
if($0.onstatus.ready)$0.onstatus.sendEvent($0);return
}else if($2&&$1.childNodes[0].nodeName=="error"){
this.setRequestError($0,$1.childNodes[0].attributes["msg"]);if($0.onstatus.ready)$0.onstatus.sendEvent($0);return
};var $3=new (lz.Param)();var $4=null;if($2){
var $5=$1.childNodes.length>1&&$1.childNodes[1].childNodes?$1.childNodes[1].childNodes:null;if($5!=null){
for(var $6=0;$6<$5.length;$6++){
var $7=$5[$6];if($7.attributes)$3.addValue($7.attributes.name,$7.attributes.value)
}};if($1.childNodes[0].childNodes)$4=$1.childNodes[0].childNodes[0]
}else{
var $5=$0.loader.getResponseHeaders();if($5){
$3.addObject($5)
};$4=$1
};$0.xmldata=$4;$0.responseheaders=$3;if($0.onstatus.ready)$0.onstatus.sendEvent($0)
},"destroy",function(){
for(var $0=this.__loaders.length-1;$0>-1;$0--){
this.__loaders[$0].destroy()
};this.__loaders=null;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["destroy"]||this.nextMethod(arguments.callee,"destroy")).call(this)
}],LzDataProvider);lz.HTTPDataProvider=LzHTTPDataProvider;Class.make("LzDataset",["rawdata",null,"dataprovider",void 0,"multirequest",false,"dataRequest",null,"dataRequestClass",LzHTTPDataRequest,"dsloadDel",null,"errorstring",void 0,"reqOnInitDel",void 0,"secureport",void 0,"proxyurl",null,"onerror",LzDeclaredEvent,"ontimeout",LzDeclaredEvent,"timeout",60000,"$lzc$set_timeout",function($0){
this.timeout=$0
},"postbody",null,"$lzc$set_postbody",function($0){
this.postbody=$0
},"acceptencodings",false,"type",null,"params",null,"nsprefix",false,"getresponseheaders",false,"querytype","GET","$lzc$set_querytype",function($0){
this.querytype=$0.toUpperCase()
},"trimwhitespace",false,"cacheable",false,"clientcacheable",false,"querystring",null,"src",null,"$lzc$set_src",function($0){
this.src=$0;if(this.autorequest){
this.doRequest()
}},"autorequest",false,"$lzc$set_autorequest",function($0){
this.autorequest=$0
},"request",false,"$lzc$set_request",function($0){
this.request=$0;if($0&&!this.isinited){
this.reqOnInitDel=new LzDelegate(this,"doRequest",this,"oninit")
}},"headers",null,"proxied",null,"$lzc$set_proxied",function($0){
var $1={"true":true,"false":false,"null":null,inherit:null}[$0];if($1!==void 0){
this.proxied=$1
}},"isProxied",function(){
return this.proxied!=null?this.proxied:canvas.proxied
},"responseheaders",null,"queuerequests",false,"oncanvas",void 0,"$lzc$set_initialdata",function($0){
if($0!=null){
var $1=LzDataElement.stringToLzData($0,this.trimwhitespace,this.nsprefix);if($1!=null){
this.$lzc$set_data($1.childNodes)
}}},"$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=null;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3)
},"construct",function($0,$1){
this.nodeType=LzDataElement.DOCUMENT_NODE;this.ownerDocument=this;this.attributes={};this.childNodes=[];this.queuerequests=false;this.oncanvas=$0==canvas||$0==null;if(!("proxyurl" in $1)){
this.proxyurl=canvas.getProxyURL()
};if(("timeout" in $1)&&$1.timeout){
this.timeout=$1.timeout
}else{
this.timeout=canvas.dataloadtimeout
};if(("dataprovider" in $1)&&$1.dataprovider){
this.dataprovider=$1.dataprovider
}else{
this.dataprovider=canvas.defaultdataprovider
};if("autorequest" in $1){
this.autorequest=$1.autorequest
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["construct"]||this.nextMethod(arguments.callee,"construct")).call(this,$0,$1)
},"$lzc$set_name",function($0){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzc$set_name"]||this.nextMethod(arguments.callee,"$lzc$set_name")).call(this,$0);if($0!=null){
this.nodeName=$0;if(this.oncanvas){
canvas[$0]=this
}else{
$0=this.parent.getUID()+"."+$0
};canvas.datasets[$0]=this
}},"destroy",function(){
this.$lzc$set_childNodes([]);this.dataRequest=null;var $0=this.name;if(this.oncanvas){
if(canvas[$0]===this){
delete canvas[$0]
}}else{
$0=this.parent.getUID()+"."+$0
};if(canvas.datasets[$0]===this){
delete canvas.datasets[$0]
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["destroy"]||this.nextMethod(arguments.callee,"destroy")).call(this)
},"getErrorString",function(){
return this.errorstring
},"getLoadTime",function(){
var $0=this.dataRequest;return $0?$0.loadtime:0
},"getSrc",function(){
return this.src
},"getQueryString",function(){
if(typeof this.querystring=="undefined"){
return ""
}else{
return this.querystring
}},"getParams",function(){
if(this.params==null){
this.params=new (lz.Param)()
};return this.params
},"$lzc$set_data",function($0){
if($0==null){
return
}else if($0 instanceof Array){
this.$lzc$set_childNodes($0)
}else{
this.$lzc$set_childNodes([$0])
};this.data=$0;if(this.ondata.ready)this.ondata.sendEvent(this)
},"gotError",function($0){
this.errorstring=$0;if(this.onerror.ready)this.onerror.sendEvent(this)
},"gotTimeout",function(){
if(this.ontimeout.ready)this.ontimeout.sendEvent(this)
},"getContext",function($0){
switch(arguments.length){
case 0:
$0=null;
};return this
},"getDataset",function(){
return this
},"getPointer",function(){
var $0=new LzDatapointer(null);$0.p=this.getContext();return $0
},"setQueryString",function($0){
this.params=null;if(typeof $0=="object"){
if($0 instanceof lz.Param){
this.querystring=$0.toString()
}else{
var $1=new (lz.Param)();for(var $2 in $0){
$1.setValue($2,$0[$2],true)
};this.querystring=$1.toString();$1.destroy()
}}else{
this.querystring=$0
};if(this.autorequest){
this.doRequest()
}},"setQueryParam",function($0,$1){
this.querystring=null;if(!this.params){
this.params=new (lz.Param)()
};this.params.setValue($0,$1);if(this.autorequest){
this.doRequest()
}},"setQueryParams",function($0){
this.querystring=null;if(!this.params){
this.params=new (lz.Param)()
};if($0){
this.params.addObject($0)
}else if($0==null){
this.params.remove()
};if($0&&this.autorequest){
this.doRequest()
}},"setSrc",function($0){
this.$lzc$set_src($0)
},"setProxyRequests",function($0){
this.$lzc$set_proxied($0)
},"setRequest",function($0){
this.$lzc$set_request($0)
},"setAutorequest",function($0){
this.$lzc$set_autorequest($0)
},"setPostBody",function($0){
this.$lzc$set_postbody($0)
},"setQueryType",function($0){
this.$lzc$set_querytype($0)
},"setInitialData",function($0){
this.$lzc$set_initialdata($0)
},"abort",function(){
var $0=this.dataRequest;if($0){
this.dataprovider.abortLoadForRequest($0)
}},"doRequest",function($0){
switch(arguments.length){
case 0:
$0=null;
};if(!this.src)return;if(this.multirequest||this.dataRequest==null||this.queuerequests){
this.dataRequest=new (this.dataRequestClass)(this)
};var $1=this.dataRequest;$1.src=this.src;$1.timeout=this.timeout;$1.status=LzDataRequest.READY;$1.method=this.querytype;$1.postbody=null;if(this.querystring){
$1.queryparams=new (lz.Param)();$1.queryparams.addObject(lz.Param.parseQueryString(this.querystring))
}else{
$1.queryparams=this.params
};if(this.querytype.toUpperCase()=="POST"){
$1.postbody=this.postbody;if($1.queryparams){
var $2=$1.queryparams.getValue("lzpostbody");if($2!=null){
$1.queryparams.remove("lzpostbody");$1.postbody=$2
}}};$1.proxied=this.isProxied();$1.proxyurl=this.proxyurl;$1.queuerequests=this.queuerequests;$1.requestheaders=this.headers;$1.getresponseheaders=this.getresponseheaders;$1.secureport=this.secureport;$1.cacheable=this.cacheable;$1.clientcacheable=this.clientcacheable;$1.trimwhitespace=this.trimwhitespace;$1.nsprefix=this.nsprefix;if(this.dsloadDel==null){
this.dsloadDel=new LzDelegate(this,"handleDataResponse",$1,"onstatus")
}else{
this.dsloadDel.register($1,"onstatus")
};this.dataprovider.doRequest($1)
},"handleDataResponse",function($0){
if(this.dsloadDel!=null){
this.dsloadDel.unregisterFrom($0.onstatus)
};this.rawdata=$0.rawdata;this.errorstring=null;if($0.status==LzDataRequest.SUCCESS){
if(this.responseheaders!=null){
this.responseheaders.destroy()
};this.responseheaders=$0.responseheaders;this.$lzc$set_data($0.xmldata)
}else if($0.status==LzDataRequest.ERROR){
this.gotError($0.error)
}else if($0.status==LzDataRequest.TIMEOUT){
this.gotTimeout()
}},"setHeader",function($0,$1){
if(!this.headers){
this.headers=new (lz.Param)()
};this.headers.setValue($0,$1)
},"getRequestHeaderParams",function(){
return this.headers
},"clearRequestHeaderParams",function(){
if(this.headers){
this.headers.remove()
}},"getResponseHeader",function($0){
var $1=this.responseheaders;if($1){
var $2=$1.getValues($0);if($2&&$2.length==1){
return $2[0]
}else{
return $2
}};return void 0
},"getAllResponseHeaders",function(){
return this.responseheaders
},"toString",function(){
return "LzDataset "+":"+this.name
}],[LzDataElementMixin,LzDataNodeMixin,LzNode],["tagname","dataset","attributes",new LzInheritedHash(LzNode.attributes),"slashPat","/","queryStringToTable",function($0){
var $1={};var $2=$0.split("&");for(var $3=0;$3<$2.length;++$3){
var $4=$2[$3];var $5="";var $6=$4.indexOf("=");if($6>0){
$5=unescape($4.substring($6+1));$4=$4.substring(0,$6)
};if($4 in $1){
var $7=$1[$4];if($7 instanceof Array){
$7.push($5)
}else{
$1[$4]=[$7,$5]
}}else{
$1[$4]=$5
}};return $1
}]);(function($0){
with($0)with($0.prototype){
{
LzDataset.attributes.name="localdata"
}}})(LzDataset);lz[LzDataset.tagname]=LzDataset;Class.make("__LzHttpDatasetPoolClass",["_uid",0,"_p",[],"get",function($0,$1,$2,$3){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=false;
};var $4;if(this._p.length>0){
$4=this._p.pop()
}else{
$4=new LzDataset(null,{name:"LzHttpDatasetPool"+this._uid,type:"http",acceptencodings:$3});this._uid++
};if($0!=null){
$0.register($4,"ondata")
};if($1!=null){
$1.register($4,"onerror")
};if($2!=null){
$2.register($4,"ontimeout")
};return $4
},"recycle",function($0){
$0.setQueryParams(null);$0.$lzc$set_postbody(null);$0.clearRequestHeaderParams();$0.ondata.clearDelegates();$0.ontimeout.clearDelegates();$0.onerror.clearDelegates();$0.$lzc$set_data([]);this._p.push($0)
}]);var LzHttpDatasetPool=new __LzHttpDatasetPoolClass();Class.make("LzDatapointer",["$lzc$set_xpath",function($0){
this.setXPath($0)
},"$lzc$set_context",function($0){
this.setDataContext($0)
},"$lzc$set_pointer",function($0){
this.setPointer($0)
},"$lzc$set_p",function($0){
this.setPointer($0)
},"p",null,"context",null,"__LZtracking",null,"__LZtrackDel",null,"xpath",null,"parsedPath",null,"__LZlastdotdot",null,"__LZspecialDotDot",false,"__LZdotdotCheckDel",null,"errorDel",null,"timeoutDel",null,"rerunxpath",false,"onp",LzDeclaredEvent,"onDocumentChange",LzDeclaredEvent,"onerror",LzDeclaredEvent,"ontimeout",LzDeclaredEvent,"onrerunxpath",LzDeclaredEvent,"$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=null;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3)
},"gotError",function($0){
if(this.onerror.ready)this.onerror.sendEvent($0)
},"gotTimeout",function($0){
if(this.ontimeout.ready)this.ontimeout.sendEvent($0)
},"xpathQuery",function($0){
var $1=this.parsePath($0);var $2=$1.getContext(this);var $3=this.__LZgetNodes($1,$2?$2:this.p);if($3==null)return null;if($1.aggOperator!=null){
if($1.aggOperator=="last"){
if(Array["$lzsc$isa"]?Array.$lzsc$isa($3):$3 instanceof Array){
return $3.length
}else{
if(!$2&&$3===this.p){
if($1.selectors&&$1.selectors.length>0){
var $4=$1.selectors;var $5=0;while($4[$5]=="."&&$5<$4.length){
++$5
};return $5!=$4.length?1:this.__LZgetLast()
}else{
return this.__LZgetLast()
}}else{
return 1
}}}else if($1.aggOperator=="position"){
if(Array["$lzsc$isa"]?Array.$lzsc$isa($3):$3 instanceof Array){
var $6=[];for(var $5=0;$5<$3.length;$5++){
$6.push($5+1)
};return $6
}else{
if(!$2&&$3===this.p){
if($1.selectors&&$1.selectors.length>0){
var $4=$1.selectors;var $5=0;while($4[$5]=="."&&$5<$4.length){
++$5
};return $5!=$4.length?1:this.__LZgetPosition()
}else{
return this.__LZgetPosition()
}}else{
return 1
}}}}else if($1.operator!=null){
if(Array["$lzsc$isa"]?Array.$lzsc$isa($3):$3 instanceof Array){
var $7=[];for(var $5=0;$5<$3.length;$5++){
$7.push(this.__LZprocessOperator($3[$5],$1))
};return $7
}else{
return this.__LZprocessOperator($3,$1)
}}else{
return $3
}},"$lzc$xpathQuery_dependencies",function($0,$1,$2){
if(this["parsePath"]){
var $3=this.parsePath($2);return [$3.hasDotDot?$1.context.getContext().ownerDocument:$1,"DocumentChange"]
}else{
return [$1,"DocumentChange"]
}},"setPointer",function($0){
this.setXPath(null);if($0!=null){
this.setDataContext($0.ownerDocument)
}else{
this.__LZsetTracking(null)
};var $1=this.data!=$0;var $2=this.p!=$0;this.p=$0;this.data=$0;this.__LZsendUpdate($1,$2);return $0!=null
},"getDataset",function(){
if(this.p==null){
if(this.context===this){
return null
}else{
return this.context.getDataset()
}}else{
return this.p.ownerDocument
}},"setXPath",function($0){
if(!$0){
this.xpath=null;this.parsedPath=null;if(this.p)this.__LZsetTracking(this.p.ownerDocument);return false
};this.xpath=$0;this.parsedPath=this.parsePath($0);var $1=this.parsedPath.getContext(this);if(this.rerunxpath&&this.parsedPath.hasDotDot&&!$1){
this.__LZspecialDotDot=true
}else{
if(this.__LZdotdotCheckDel){
this.__LZdotdotCheckDel.unregisterAll()
}};this.setDataContext($1);return this.runXPath()
},"runXPath",function(){
if(!this.parsedPath){
return false
};var $0=null;if(this.context&&((LzDatapointer["$lzsc$isa"]?LzDatapointer.$lzsc$isa(this.context):this.context instanceof LzDatapointer)||(LzDataset["$lzsc$isa"]?LzDataset.$lzsc$isa(this.context):this.context instanceof LzDataset)||(AnonDatasetGenerator["$lzsc$isa"]?AnonDatasetGenerator.$lzsc$isa(this.context):this.context instanceof AnonDatasetGenerator))){
$0=this.context.getContext()
};if($0){
var $1=this.__LZgetNodes(this.parsedPath,$0,0)
}else{
var $1=null
};if($1==null){
this.__LZHandleNoNodes();return false
}else if(Array["$lzsc$isa"]?Array.$lzsc$isa($1):$1 instanceof Array){
this.__LZHandleMultiNodes($1);return false
}else{
this.__LZHandleSingleNode($1);return true
}},"__LZsetupDotDot",function($0){
if(this.__LZlastdotdot!=$0.ownerDocument){
if(this.__LZdotdotCheckDel==null){
this.__LZdotdotCheckDel=new LzDelegate(this,"__LZcheckDotDot")
}else{
this.__LZdotdotCheckDel.unregisterAll()
};this.__LZlastdotdot=$0.ownerDocument;this.__LZdotdotCheckDel.register(this.__LZlastdotdot,"onDocumentChange")
}},"__LZHandleSingleNode",function($0){
if(this.__LZspecialDotDot)this.__LZsetupDotDot($0);this.__LZupdateLocked=true;this.__LZpchanged=$0!=this.p;this.p=$0;this.__LZsetData();this.__LZupdateLocked=false;this.__LZsendUpdate()
},"__LZHandleNoNodes",function(){
var $0=this.p!=null;var $1=this.data!=null;this.p=null;this.data=null;this.__LZsendUpdate($1,$0)
},"__LZHandleMultiNodes",function($0){
this.__LZHandleNoNodes();return null
},"__LZsetData",function(){
if(this.parsedPath&&this.parsedPath.aggOperator!=null){
if(this.parsedPath.aggOperator=="last"){
this.data=this.__LZgetLast();this.__LZsendUpdate(true)
}else if(this.parsedPath.aggOperator=="position"){
this.data=this.__LZgetPosition();this.__LZsendUpdate(true)
}}else if(this.parsedPath&&this.parsedPath.operator!=null){
this.__LZsimpleOperatorUpdate()
}else{
if(this.data!=this.p){
this.data=this.p;this.__LZsendUpdate(true)
}}},"__LZgetLast",function(){
var $0=this.context;if($0==null||$0===this||!(LzDatapointer["$lzsc$isa"]?LzDatapointer.$lzsc$isa($0):$0 instanceof LzDatapointer)){
return 1
}else{
return $0.__LZgetLast()||1
}},"__LZgetPosition",function(){
var $0=this.context;if($0==null||$0===this||!(LzDatapointer["$lzsc$isa"]?LzDatapointer.$lzsc$isa($0):$0 instanceof LzDatapointer)){
return 1
}else{
return $0.__LZgetPosition()||1
}},"__LZupdateLocked",false,"__LZpchanged",false,"__LZdchanged",false,"__LZsendUpdate",function($0,$1){
switch(arguments.length){
case 0:
$0=false;
case 1:
$1=false;
};this.__LZdchanged=$0||this.__LZdchanged;this.__LZpchanged=$1||this.__LZpchanged;if(this.__LZupdateLocked){
return false
};if(this.__LZdchanged){
if(this.ondata.ready)this.ondata.sendEvent(this.data);this.__LZdchanged=false
};if(this.__LZpchanged){
if(this.onp.ready)this.onp.sendEvent(this.p);this.__LZpchanged=false;if(this.onDocumentChange.ready)this.onDocumentChange.sendEvent({who:this.p,type:2,what:"context"})
};return true
},"isValid",function(){
return this.p!=null
},"__LZsimpleOperatorUpdate",function(){
var $0=this.p!=null?this.__LZprocessOperator(this.p,this.parsedPath):void 0;var $1=false;if(this.data!=$0||this.parsedPath.operator=="attributes"){
this.data=$0;$1=true
};this.__LZsendUpdate($1)
},"parsePath",function($0){
if(LzDatapath["$lzsc$isa"]?LzDatapath.$lzsc$isa($0):$0 instanceof LzDatapath){
var $1=$0.xpath
}else{
var $1=$0
};var $2=LzDatapointer.ppcache;var $3=$2[$1];if($3==null){
$3=new LzParsedPath($1,this);$2[$1]=$3
};return $3
},"getLocalDataContext",function($0){
var $1=this.parent;if($0){
var $2=$0;for(var $3=0;$3<$2.length&&$1!=null;$3++){
$1=$1[$2[$3]]
};if($1!=null&&!(LzDataset["$lzsc$isa"]?LzDataset.$lzsc$isa($1):$1 instanceof LzDataset)&&(LzDataset["$lzsc$isa"]?LzDataset.$lzsc$isa($1["localdata"]):$1["localdata"] instanceof LzDataset)){
$1=$1["localdata"];return $1
}};if($1!=null&&(LzDataset["$lzsc$isa"]?LzDataset.$lzsc$isa($1):$1 instanceof LzDataset)){
return $1
}else{
return null
}},"__LZgetNodes",function($0,$1,$2){
switch(arguments.length){
case 2:
$2=0;
};if($1==null){
return null
};if($0.selectors!=null){
var $3=$0.selectors.length;for(var $4=$2;$4<$3;$4++){
var $5=$0.selectors[$4];var $6=LzDatapointer.pathSymbols[$5]||0;var $7=$0.selectors[$4+1];if($7&&!(String["$lzsc$isa"]?String.$lzsc$isa($7):$7 instanceof String)&&$7["pred"]=="range"){
var $8=$0.selectors[++$4]
}else{
var $8=null
};var $9=null;if((Object["$lzsc$isa"]?Object.$lzsc$isa($5):$5 instanceof Object)&&("pred" in $5)&&null!=$5.pred){
if($5.pred=="hasattr"){
$1=$1.hasAttr($5.attr)?$1:null
}else if($5.pred=="attrval"){
if($1.attributes!=null){
$1=$1.attributes[$5.attr]==$5.val?$1:null
}else{
$1=null
}}}else if($6==0){
$9=this.nodeByName($5,$8,$1)
}else if($6==1){
$1=$1.ownerDocument
}else if($6==2){
$1=$1.parentNode
}else if($6==3){
$9=[];if($1.childNodes){
var $a=$1.childNodes;var $b=$a.length;var $c=$8!=null?$8[0]:0;var $d=$8!=null?$8[1]:$b;var $e=0;for(var $f=0;$f<$b;$f++){
var $g=$a[$f];if($g.nodeType==LzDataElement.ELEMENT_NODE){
$e++;if($e>=$c){
$9.push($g)
};if($e==$d){
break
}}}}};if($9!=null){
if($9.length>1){
if($4==$3-1){
return $9
};var $h=[];for(var $f=0;$f<$9.length;$f++){
var $i=this.__LZgetNodes($0,$9[$f],$4+1);if($i!=null){
if(Array["$lzsc$isa"]?Array.$lzsc$isa($i):$i instanceof Array){
for(var $j=0;$j<$i.length;$j++){
$h.push($i[$j])
}}else{
$h.push($i)
}}};if($h.length==0){
return null
}else if($h.length==1){
return $h[0]
}else{
return $h
}}else{
$1=$9[0]
}};if($1==null){
return null
}}};return $1
},"getContext",function($0){
switch(arguments.length){
case 0:
$0=null;
};return this.p
},"nodeByName",function($0,$1,$2){
if(!$2){
$2=this.p;if(!this.p)return null
};var $3=[];if($2.childNodes!=null){
var $4=$2.childNodes;var $5=$4.length;var $6=$1!=null?$1[0]:0;var $7=$1!=null?$1[1]:$5;var $8=0;for(var $9=0;$9<$5;$9++){
var $a=$4[$9];if($a.nodeName==$0){
$8++;if($8>=$6){
$3.push($a)
};if($8==$7){
break
}}}};return $3
},"$lzc$set_rerunxpath",function($0){
this.rerunxpath=$0;if(this.onrerunxpath.ready)this.onrerunxpath.sendEvent($0)
},"dupePointer",function(){
var $0=new LzDatapointer();$0.setFromPointer(this);return $0
},"__LZdoSelect",function($0,$1){
var $2=this.p;for(;$2!=null&&$1>0;$1--){
if($2.nodeType==LzDataNode.TEXT_NODE){
if($0=="getFirstChild")break
};$2=$2[$0]()
};if($2!=null&&$1==0){
this.setPointer($2);return true
};return false
},"selectNext",function($0){
switch(arguments.length){
case 0:
$0=null;
};return this.__LZdoSelect("getNextSibling",$0?$0:1)
},"selectPrev",function($0){
switch(arguments.length){
case 0:
$0=null;
};return this.__LZdoSelect("getPreviousSibling",$0?$0:1)
},"selectChild",function($0){
switch(arguments.length){
case 0:
$0=null;
};return this.__LZdoSelect("getFirstChild",$0?$0:1)
},"selectParent",function($0){
switch(arguments.length){
case 0:
$0=null;
};return this.__LZdoSelect("getParent",$0?$0:1)
},"selectNextParent",function(){
var $0=this.p;if(this.selectParent()&&this.selectNext()){
return true
}else{
this.setPointer($0);return false
}},"getNodeOffset",function(){
return this.getXPathIndex()
},"getXPathIndex",function(){
if(!this.p){
return 0
};return this.p.getOffset()+1
},"getNodeType",function(){
if(!this.p){
return
};return this.p.nodeType
},"getNodeName",function(){
if(!this.p){
return null
};return this.p.nodeName
},"setNodeName",function($0){
if(!this.p){
return
};if(this.p.nodeType!=LzDataElement.TEXT_NODE){
this.p.$lzc$set_nodeName($0)
}},"getNodeAttributes",function(){
if(!this.p){
return null
};if(this.p.nodeType!=LzDataElement.TEXT_NODE){
return this.p.attributes
};return null
},"getNodeAttribute",function($0){
if(!this.p){
return null
};if(this.p.nodeType!=LzDataElement.TEXT_NODE){
return this.p.attributes[$0]
};return null
},"setNodeAttribute",function($0,$1){
if(!this.p){
return
};if(this.p.nodeType!=LzDataElement.TEXT_NODE){
this.p.setAttr($0,$1)
}},"deleteNodeAttribute",function($0){
if(!this.p){
return
};if(this.p.nodeType!=LzDataElement.TEXT_NODE){
this.p.removeAttr($0)
}},"getNodeText",function(){
if(!this.p){
return null
};if(this.p.nodeType!=LzDataElement.TEXT_NODE){
return this.p.__LZgetText()
};return null
},"setNodeText",function($0){
if(!this.p){
return
};if(this.p.nodeType!=LzDataElement.TEXT_NODE){
var $1=false;var $2=this.p.childNodes;for(var $3=0;$3<$2.length;$3++){
var $4=$2[$3];if($4.nodeType==LzDataElement.TEXT_NODE){
$4.$lzc$set_data($0);$1=true;break
}};if(!$1){
this.p.appendChild(new LzDataText($0))
}}},"getNodeCount",function(){
if(!this.p||this.p.nodeType==LzDataElement.TEXT_NODE)return 0;return this.p.childNodes.length||0
},"addNode",function($0,$1,$2){
switch(arguments.length){
case 1:
$1=null;
case 2:
$2=null;
};if(!this.p){
return null
};var $3=new LzDataElement($0,$2);if($1!=null){
$3.appendChild(new LzDataText($1))
};if(this.p.nodeType!=LzDataElement.TEXT_NODE){
this.p.appendChild($3)
};return $3
},"deleteNode",function(){
if(!this.p){
return
};var $0=this.p;if(!this.rerunxpath){
if(!(this.selectNext()||this.selectPrev())){
this.__LZHandleNoNodes()
}};$0.parentNode.removeChild($0);return $0
},"sendDataChange",function($0){
this.getDataset().sendDataChange($0)
},"comparePointer",function($0){
return this.p==$0.p
},"addNodeFromPointer",function($0){
if(!$0.p)return null;if(!this.p){
return null
};var $1=$0.p.cloneNode(true);if(this.p.nodeType!=LzDataElement.TEXT_NODE){
this.p.appendChild($1)
};return new LzDatapointer(null,{pointer:$1})
},"setFromPointer",function($0){
this.setPointer($0.p)
},"__LZprocessOperator",function($0,$1){
if($0==null){
return
};var $2=$1.operator;switch($2){
case "serialize":
return $0.serialize();
case "text":
return $0.nodeType!=LzDataElement.TEXT_NODE?$0.__LZgetText():void 0;
case "name":
return $0.nodeName;
default:
if($1.hasAttrOper){
if($0.nodeType!=LzDataElement.TEXT_NODE&&$0["attributes"]){
if($2=="attributes"){
return $0.attributes
}else{
return $0.attributes[$2.substr(11)]
}}else{
return
}}
}},"makeRootNode",function(){
return new LzDataElement("root")
},"finishRootNode",function($0){
return $0.childNodes[0]
},"makeElementNode",function($0,$1,$2){
var $3=new LzDataElement($1,$0);$2.appendChild($3);return $3
},"makeTextNode",function($0,$1){
var $2=new LzDataText($0);$1.appendChild($2);return $2
},"serialize",function(){
if(this.p==null){
return null
};return this.p.serialize()
},"setDataContext",function($0,$1){
switch(arguments.length){
case 1:
$1=false;
};if($0==null){
this.context=this;if(this.p){
this.__LZsetTracking(this.p.ownerDocument)
}}else if(this.context!=$0){
this.context=$0;if(this.errorDel!=null){
this.errorDel.unregisterAll();this.timeoutDel.unregisterAll()
};this.__LZsetTracking($0);var $2=this.xpath!=null;if($2){
if(this.errorDel==null){
this.errorDel=new LzDelegate(this,"gotError");this.timeoutDel=new LzDelegate(this,"gotTimeout")
};this.errorDel.register($0,"onerror");this.timeoutDel.register($0,"ontimeout")
}}},"__LZcheckChange",function($0){
if(!this.rerunxpath){
if(!this.p||$0.who==this.context){
this.runXPath()
}else if(this.__LZneedsOpUpdate($0)){
this.__LZsimpleOperatorUpdate()
};return false
}else{
if($0.type==2||($0.type==0||$0.type==1&&this.parsedPath&&this.parsedPath.hasOpSelector)&&(this.parsedPath&&this.parsedPath.hasDotDot||this.p==null||this.p.childOfNode($0.who))){
this.runXPath();return true
}else if(this.__LZneedsOpUpdate($0)){
this.__LZsimpleOperatorUpdate()
};return false
}},"__LZneedsOpUpdate",function($0){
switch(arguments.length){
case 0:
$0=null;
};var $1=this.parsedPath;if($1!=null&&$1.operator!=null){
var $2=$0.who;var $3=$0.type;if($1.operator!="text"){
return $3==1&&$2==this.p
}else{
return $3==0&&$2==this.p||$2.parentNode==this.p&&$2.nodeType==LzDataElement.TEXT_NODE
}}else{
return false
}},"__LZcheckDotDot",function($0){
var $1=$0.who;var $2=$0.type;if(($2==0||$2==1&&this.parsedPath.hasOpSelector)&&this.context.getContext().childOfNode($1)){
this.runXPath()
}},"destroy",function(){
if(this.__LZdeleted)return;this.__LZsetTracking(null);this.p=null;this.data=null;this.__LZlastdotdot=null;this.context=null;this.__LZtracking=null;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["destroy"]||this.nextMethod(arguments.callee,"destroy")).call(this)
},"__LZsetTracking",function($0,$1,$2){
switch(arguments.length){
case 1:
$1=false;
case 2:
$2=false;
};var $3=this.__LZtracking;var $4=this.__LZtrackDel;if($0){
if($3!=null&&$3.length==1&&$3[0]===$0){
return
};if($4){
$4.unregisterAll()
};var $5=$1||this.xpath;if($5){
if(!$4){
this.__LZtrackDel=$4=new LzDelegate(this,"__LZcheckChange")
};this.__LZtracking=$3=[$0];$4.register($0,"onDocumentChange")
}}else{
this.__LZtracking=[];if($4){
this.__LZtrackDel.unregisterAll()
}}}],LzNode,["tagname","datapointer","attributes",{ignoreplacement:true},"ppcache",{},"pathSymbols",{"/":1,"..":2,"*":3,".":4}]);lz[LzDatapointer.tagname]=LzDatapointer;Class.make("LzParam",["d",null,"delimiter","&","$lzc$set_delimiter",function($0){
this.setDelimiter($0)
},"separator","=","$lzc$set_separator",function($0){
this.setSeparator($0)
},"$lzsc$initialize",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this);this.d={}},"parseQueryString",function($0){
return lz.Param.parseQueryString($0)
},"addObject",function($0){
for(var $1 in $0){
this.setValue($1,$0[$1])
}},"clone",function($0){
switch(arguments.length){
case 0:
$0=null;
};var $1=new (lz.Param)();for(var $2 in this.d){
$1.d[$2]=this.d[$2].concat()
};return $1
},"remove",function($0){
switch(arguments.length){
case 0:
$0=null;
};if($0==null){
this.d={}}else{
var $1=this.d[$0];if($1!=null){
$1.shift();if(!$1.length){
delete this.d[$0]
}}}},"setValue",function($0,$1,$2){
switch(arguments.length){
case 2:
$2=false;
};if($2)$1=encodeURIComponent($1);this.d[$0]=[$1]
},"addValue",function($0,$1,$2){
switch(arguments.length){
case 2:
$2=false;
};if($2)$1=encodeURIComponent($1);var $3=this.d[$0];if($3==null){
this.d[$0]=[$1]
}else{
$3.push($1)
}},"getValue",function($0){
var $1=this.d[$0];if($1!=null){
return $1[0]
};return null
},"getValues",function($0){
var $1=this.d[$0];if($1!=null){
return $1.concat()
};return null
},"getValueNoCase",function($0){
var $1=this.getValues($0);return $1!=null&&$1.length==1?$1[0]:$1
},"getNames",function(){
var $0=[];for(var $1 in this.d){
$0.push($1)
};return $0
},"setDelimiter",function($0){
var $1=this.delimiter;this.delimiter=$0;return $1
},"setSeparator",function($0){
var $1=this.separator;this.separator=$0;return $1
},"toString",function(){
return this.serialize()
},"serialize",function($0,$1,$2){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=null;
case 2:
$2=false;
};var $0=$0==null?this.separator:$0;var $3=$1==null?this.delimiter:$1;var $4="";var $5=false;for(var $6 in this.d){
var $7=this.d[$6];if($7!=null){
for(var $8=0;$8<$7.length;++$8){
if($5)$4+=$3;$4+=$6+$0+($2?encodeURIComponent($7[$8]):$7[$8]);$5=true
}}};return $4
}],LzEventable,["parseQueryString",function($0){
var $1={};if(!$0)return $1;var $2=$0.split("&");for(var $3=0;$3<$2.length;++$3){
var $4=$2[$3];var $5="";var $6=$4.indexOf("=");if($6>0){
$5=unescape($4.substring($6+1));$4=$4.substring(0,$6)
};$1[$4]=$5
};return $1
}]);lz.Param=LzParam;Class.make("LzParsedPath",["path",null,"selectors",null,"context",null,"dsetname",null,"dsrcname",null,"islocaldata",null,"operator",null,"aggOperator",null,"hasAttrOper",false,"hasOpSelector",false,"hasDotDot",false,"getContext",function($0){
if(this.context!=null){
return this.context
}else{
if(this.islocaldata!=null){
return $0.getLocalDataContext(this.islocaldata)
}else{
if(this.dsrcname!=null){
return canvas[this.dsrcname][this.dsetname]
}else{
if(this.dsetname!=null){
return canvas.datasets[this.dsetname]
}}}};return null
},"$lzsc$initialize",function($0,$1){
this.path=$0;this.selectors=[];var $2=$0.indexOf(":/");if($2>-1){
var $3=$0.substring(0,$2).split(":");if($3.length>1){
var $4=LzParsedPath.trim($3[0]);var $5=LzParsedPath.trim($3[1]);if($4=="local"){
this.islocaldata=$5.split(".")
}else{
this.dsrcname=$4;this.dsetname=$5
}}else{
var $6=LzParsedPath.trim($3[0]);if($6=="new"){
this.context=new AnonDatasetGenerator(this)
}else{
this.dsetname=$6
}};var $7=$0.substring($2+2)
}else{
var $7=$0
};var $8=[];var $9="";var $a=false;var $b=false;for(var $c=0;$c<$7.length;$c++){
var $d=$7.charAt($c);if($d=="\\"&&$b==false){
$b=true;continue
}else if($b==true){
$b=false;$9+=$d;continue
}else if($a==false&&$d=="/"){
$8.push($9);$9="";continue
}else if($d=="'"){
$a=$a?false:true
};$9+=$d
};$8.push($9);if($8!=null){
for(var $c=0;$c<$8.length;$c++){
var $e=LzParsedPath.trim($8[$c]);if($c==$8.length-1){
if($e.charAt(0)=="@"){
this.hasAttrOper=true;if($e.charAt(1)=="*"){
this.operator="attributes"
}else{
this.operator="attributes."+$e.substring(1,$e.length)
};continue
}else if($e.charAt($e.length-1)==")"){
if($e.indexOf("last")>-1){
this.aggOperator="last"
}else if($e.indexOf("position")>-1){
this.aggOperator="position"
}else if($e.indexOf("name")>-1){
this.operator="name"
}else if($e.indexOf("text")>-1){
this.operator="text"
}else if($e.indexOf("serialize")>-1){
this.operator="serialize"
};continue
}else if($e==""){
continue
}};var $f=$e.split("[");var $g=LzParsedPath.trim($f[0]);this.selectors.push($g==""?"/":$g);if($g==""||$g==".."){
this.hasDotDot=true
};if($f!=null){
for(var $h=1;$h<$f.length;$h++){
var $i=LzParsedPath.trim($f[$h]);$i=$i.substring(0,$i.length-1);if(LzParsedPath.trim($i).charAt(0)=="@"){
var $j=$i.split("=");var $k;var $l=$j.shift().substring(1);if($j.length>0){
var $m=LzParsedPath.trim($j.join("="));$m=$m.substring(1,$m.length-1);$k={pred:"attrval",attr:LzParsedPath.trim($l),val:LzParsedPath.trim($m)}}else{
$k={pred:"hasattr",attr:LzParsedPath.trim($l)}};this.selectors.push($k);this.hasOpSelector=true
}else{
var $k=$i.split("-");$k[0]=LzParsedPath.trim($k[0]);if($k[0]==""){
$k[0]=1
};if($k[1]!=null){
$k[1]=LzParsedPath.trim($k[1])
};if($k[1]==""){
$k[1]=Infinity
}else if($k.length==1){
$k[1]=$k[0]
};$k.pred="range";this.selectors.push($k)
}}}}}},"toString",function(){
return "Parsed path for path: "+this.path
},"debugWrite",function(){}],null,["trim",function($0){
var $1=0;var $2=false;while($0.charAt($1)==" "){
$1++;$2=true
};var $3=$0.length-$1;while($0.charAt($1+$3-1)==" "){
$3--;$2=true
};return $2?$0.substr($1,$3):$0
}]);Class.make("AnonDatasetGenerator",["pp",null,"__LZdepChildren",null,"onDocumentChange",LzDeclaredEvent,"onerror",LzDeclaredEvent,"ontimeout",LzDeclaredEvent,"noncontext",true,"$lzsc$initialize",function($0){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this);this.pp=$0
},"getContext",function(){
var $0=new LzDataset(null,{name:null});var $1=this.pp.selectors;if($1!=null){
var $2=$0.getPointer();for(var $3=0;$3<$1.length;$3++){
if($1[$3]=="/")continue;$2.addNode($1[$3]);$2.selectChild()
}};return $0
},"getDataset",function(){
return null
}],LzEventable);Class.make("LzDatapath",["datacontrolsvisibility",true,"$lzc$set_datacontrolsvisibility",function($0){
this.datacontrolsvisibility=$0
},"__LZtakeDPSlot",true,"storednodes",null,"__LZneedsUpdateAfterInit",false,"__LZdepChildren",null,"sel",false,"__LZisclone",false,"pooling",false,"replication",void 0,"axis","y","spacing",0,"sortpath",void 0,"$lzc$set_sortpath",function($0){
this.setOrder($0)
},"setOrder",function($0,$1){
switch(arguments.length){
case 1:
$1=null;
};if(this.__LZisclone){
this.immediateparent.cloneManager.setOrder($0,$1)
}else{
this.sortpath=$0;if($1!=null){
this.sortorder=$1
}}},"sortorder","ascending","$lzc$set_sortorder",function($0){
this.setComparator($0)
},"setComparator",function($0){
if(this.__LZisclone){
this.immediateparent.cloneManager.setComparator($0)
}else{
this.sortorder=$0
}},"$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=null;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3)
},"construct",function($0,$1){
this.rerunxpath=true;(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["construct"]||this.nextMethod(arguments.callee,"construct")).call(this,$0,$1);if($1.datacontrolsvisibility!=null){
this.datacontrolsvisibility=$1.datacontrolsvisibility
};if(this.__LZtakeDPSlot){
this.immediateparent.datapath=this;var $2=this.immediateparent.searchParents("datapath").datapath;if($2!=null){
var $3=$2.__LZdepChildren;if($3!=null){
$2.__LZdepChildren=[];for(var $4=$3.length-1;$4>=0;$4--){
var $5=$3[$4];if($5!==this&&!(LzDataAttrBind["$lzsc$isa"]?LzDataAttrBind.$lzsc$isa($5):$5 instanceof LzDataAttrBind)&&$5.immediateparent!=this.immediateparent&&$5.immediateparent.childOf(this.immediateparent)){
$5.setDataContext(this,true)
}else{
$2.__LZdepChildren.push($5)
}}}}}},"__LZHandleMultiNodes",function($0){
var $1;if(this.replication=="lazy"){
$1=LzLazyReplicationManager
}else if(this.replication=="resize"){
$1=LzResizeReplicationManager
}else{
$1=LzReplicationManager
};this.storednodes=$0;var $2=new $1(this,this._instanceAttrs);this.storednodes=null;return $2
},"setNodes",function($0){
var $1=this.__LZHandleMultiNodes($0);if(!$1)$1=this;$1.__LZsetTracking(null);if($0){
for(var $2=0;$2<$0.length;$2++){
var $3=$0[$2];var $4=$3.ownerDocument;$1.__LZsetTracking($4,true,$3!=$4)
}}},"__LZsendUpdate",function($0,$1){
switch(arguments.length){
case 0:
$0=false;
case 1:
$1=false;
};var $2=this.__LZpchanged;if(!(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["__LZsendUpdate"]||this.nextMethod(arguments.callee,"__LZsendUpdate")).call(this,$0,$1)){
return false
};if(this.immediateparent.isinited){
this.__LZApplyData($2)
}else{
this.__LZneedsUpdateAfterInit=true
};return true
},"__LZApplyDataOnInit",function(){
if(this.__LZneedsUpdateAfterInit){
this.__LZApplyData();this.__LZneedsUpdateAfterInit=false
}},"__LZApplyData",function($0){
switch(arguments.length){
case 0:
$0=false;
};var $1=this.immediateparent;if(this.datacontrolsvisibility){
if(LzView["$lzsc$isa"]?LzView.$lzsc$isa($1):$1 instanceof LzView){
var $2=$1;$2.__LZvizDat=this.p!=null;$2.__LZupdateShown()
}};var $3=$0||$1.data!=this.data||this.parsedPath&&this.parsedPath.operator=="attributes";this.data=this.data==null?null:this.data;$1.data=this.data;if($3){
if($1.ondata.ready)$1.ondata.sendEvent(this.data);var $4=this.parsedPath;if($4&&($4.operator!=null||$4.aggOperator!=null)){
$1.applyData(this.data)
}}},"setDataContext",function($0,$1){
switch(arguments.length){
case 1:
$1=false;
};if($0==null&&this.immediateparent!=null){
$0=this.immediateparent.searchParents("datapath").datapath;$1=true
};if($0==this.context)return;if($1){
if($0.__LZdepChildren==null){
$0.__LZdepChildren=[this]
}else{
$0.__LZdepChildren.push(this)
}}else{
if(this.context&&(LzDatapath["$lzsc$isa"]?LzDatapath.$lzsc$isa(this.context):this.context instanceof LzDatapath)){
var $2=this.context.__LZdepChildren;if($2){
for(var $3=0;$3<$2.length;$3++){
if($2[$3]===this){
$2.splice($3,1);break
}}}}};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["setDataContext"]||this.nextMethod(arguments.callee,"setDataContext")).call(this,$0)
},"destroy",function(){
if(this.__LZdeleted)return;this.__LZupdateLocked=true;var $0=this.context;if($0&&!$0.__LZdeleted&&(LzDatapath["$lzsc$isa"]?LzDatapath.$lzsc$isa($0):$0 instanceof LzDatapath)){
var $1=$0.__LZdepChildren;if($1!=null){
for(var $2=0;$2<$1.length;$2++){
if($1[$2]===this){
$1.splice($2,1);break
}}}};var $3=this.immediateparent;if(!$3.__LZdeleted){
var $4=this.__LZdepChildren;if($4!=null&&$4.length>0){
var $5=$3.searchParents("datapath").datapath;for(var $2=0;$2<$4.length;$2++){
$4[$2].setDataContext($5,true)
};this.__LZdepChildren=null
}};if($3.datapath===this){
$3.datapath=null
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["destroy"]||this.nextMethod(arguments.callee,"destroy")).call(this)
},"updateData",function(){
this.__LZupdateData()
},"__LZupdateData",function($0){
switch(arguments.length){
case 0:
$0=false;
};if(!$0&&this.p){
this.p.__LZlockFromUpdate(this)
};var $1=this.parsedPath?this.parsedPath.operator:null;if($1!=null){
var $2=this.immediateparent.updateData();if($2!==void 0){
if($1=="name"){
this.setNodeName($2)
}else if($1=="text"){
this.setNodeText($2)
}else if($1=="attributes"){
this.p.$lzc$set_attributes($2)
}else{
this.setNodeAttribute($1.substring(11),$2)
}}};var $3=this.__LZdepChildren;if($3!=null){
for(var $4=0;$4<$3.length;$4++){
$3[$4].__LZupdateData(true)
}};if(!$0&&this.p){
this.p.__LZunlockFromUpdate(this)
}},"toString",function(){
return "Datapath for "+this.immediateparent
},"__LZcheckChange",function($0){
if(!(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["__LZcheckChange"]||this.nextMethod(arguments.callee,"__LZcheckChange")).call(this,$0)){
if($0.who.childOfNode(this.p,true)){
if(this.onDocumentChange.ready)this.onDocumentChange.sendEvent($0)
}};return false
},"__LZsetTracking",function($0,$1,$2){
switch(arguments.length){
case 1:
$1=false;
case 2:
$2=false;
};if(!$0||!$1){
return(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["__LZsetTracking"]||this.nextMethod(arguments.callee,"__LZsetTracking")).call(this,$0,true)
};var $3=this.__LZtracking;var $4=this.__LZtrackDel;if($2){
var $5=$3.length;for(var $6=0;$6<$5;$6++){
if($3[$6]===$0){
return
}}};if(!$4){
this.__LZtrackDel=$4=new LzDelegate(this,"__LZcheckChange")
};$3.push($0);$4.register($0,"onDocumentChange")
},"$lzc$set___LZmanager",function($0){
this.__LZisclone=true;this.immediateparent.cloneManager=$0;this.parsedPath=$0.parsedPath;this.xpath=$0.xpath;this.setDataContext($0)
},"setClonePointer",function($0){
var $1=this.p!=$0;this.p=$0;if($1){
if($0&&this.sel!=$0.sel){
this.sel=$0.sel||false;this.immediateparent.setSelected(this.sel)
};this.__LZpchanged=true;this.__LZsetData()
}},"setSelected",function($0){
this.p.sel=$0;this.sel=$0;this.immediateparent.setSelected($0)
},"__LZgetLast",function(){
var $0=this.context;if(this.__LZisclone){
return $0.nodes.length
}else if(this.p==$0.getContext()&&(LzDatapointer["$lzsc$isa"]?LzDatapointer.$lzsc$isa($0):$0 instanceof LzDatapointer)){
return $0.__LZgetLast()
}else{
return 1
}},"__LZgetPosition",function(){
if(this.__LZisclone){
return this.immediateparent.clonenumber+1
}else{
var $0=this.context;if(this.p==$0.getContext()&&(LzDatapointer["$lzsc$isa"]?LzDatapointer.$lzsc$isa($0):$0 instanceof LzDatapointer)){
return $0.__LZgetPosition()
}else{
return 1
}}}],LzDatapointer,["tagname","datapath","attributes",new LzInheritedHash(LzDatapointer.attributes)]);lz[LzDatapath.tagname]=LzDatapath;Class.make("LzReplicationManager",["asyncnew",true,"initialnodes",void 0,"clonePool",void 0,"cloneClass",void 0,"cloneParent",void 0,"cloneAttrs",void 0,"cloneChildren",void 0,"hasdata",void 0,"orderpath",void 0,"comparator",void 0,"__LZxpathconstr",null,"__LZxpathdepend",null,"visible",true,"__LZpreventXPathUpdate",false,"nodes",void 0,"clones",void 0,"__LZdataoffset",0,"onnodes",LzDeclaredEvent,"onclones",LzDeclaredEvent,"onvisible",LzDeclaredEvent,"$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 2:
$2=null;
case 3:
$3=null;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3)
},"getDefaultPooling",function(){
return false
},"construct",function($0,$1){
this.pooling=this.getDefaultPooling();this.__LZtakeDPSlot=false;this.datacontrolsvisibility=false;var $2=$0.immediateparent;this.classroot=$2.classroot;if($2===canvas){
this.nodes=[];this.clones=[];this.clonePool=[];return
};this.datapath=this;var $3=$2.name;if($3!=null){
$1.name=$3;$2.immediateparent[$3]=null;$2.parent[$3]=null
};var $4=$2.$lzc$bind_id;if($4!=null){
$4.call(null,$2,false);$2.$lzc$bind_id=null;this.$lzc$bind_id=$4;$4.call(null,this)
};var $5=$2.$lzc$bind_name;if($5!=null){
$5.call(null,$2,false);$2.$lzc$bind_name=null;this.$lzc$bind_name=$5;$5.call(null,this)
};$1.xpath=LzNode._ignoreAttribute;if($0.sortpath!=null){
$1.sortpath=$0.sortpath
};if($0.sortorder!=null||$0.sortorder){
$1.sortorder=$0.sortorder
};this.initialnodes=$0.storednodes;if($0.__LZspecialDotDot){
this.__LZspecialDotDot=true;if($0.__LZdotdotCheckDel){
$0.__LZdotdotCheckDel.unregisterAll()
};$0.__LZspecialDotDot=false
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["construct"]||this.nextMethod(arguments.callee,"construct")).call(this,$2.parent,$1);if($1.name!=null&&$2.parent!=$2.immediateparent){
$2.immediateparent[$1.name]=this
};this.xpath=$0.xpath;this.parsedPath=$0.parsedPath;this.cloneClass=$2.constructor;this.cloneParent=$2.parent;var $6=new LzInheritedHash($2._instanceAttrs);$6.datapath=LzNode._ignoreAttribute;$6.$datapath={"class":lz.datapath};$6.$datapath.attrs={datacontrolsvisibility:$0.datacontrolsvisibility,__LZmanager:this};delete $6.id;delete $6.name;delete $6.$lzc$bind_id;delete $6.$lzc$bind_name;this.cloneAttrs=$6;if($0.datacontrolsvisibility){
this.visible=true
}else{
if(!$2.isinited){
var $7=this.__LZgetInstanceAttr($2,"visible");if(typeof $7=="boolean"||(Boolean["$lzsc$isa"]?Boolean.$lzsc$isa($7):$7 instanceof Boolean)){
this.visible=$7
}else{
this.visible=$2.visible
}}else{
this.visible=$2.visible
}};if($1.pooling!=null){
this.pooling=$1.pooling
};var $8=this.__LZgetInstanceAttr($2,"datapath");if(LzAlwaysExpr["$lzsc$isa"]?LzAlwaysExpr.$lzsc$isa($8):$8 instanceof LzAlwaysExpr){
var $9=$8;this.__LZxpathconstr=$2[$9.methodName];this.__LZxpathdepend=$2[$9.dependenciesName];this.__LZpreventXPathUpdate=true;this.applyConstraintExpr(new LzAlwaysExpr("datapath","string","__LZxpathconstr","__LZxpathdepend"));this.__LZpreventXPathUpdate=false;if(this.pooling){
$2.releaseConstraintMethod($9.methodName)
}}else{
var $a=this.__LZgetInstanceAttr($0,"xpath");if(LzAlwaysExpr["$lzsc$isa"]?LzAlwaysExpr.$lzsc$isa($a):$a instanceof LzAlwaysExpr){
var $b=new LzRefNode(this);var $c=$a;$b.__LZxpathconstr=$0[$c.methodName];$b.__LZxpathdepend=$0[$c.dependenciesName];this.__LZpreventXPathUpdate=true;$b.applyConstraintExpr(new LzAlwaysExpr("xpath","string","__LZxpathconstr","__LZxpathdepend"));this.__LZpreventXPathUpdate=false;if(this.pooling){
$0.releaseConstraintMethod($c.methodName)
}}};this.__LZsetCloneAttrs();if($2._instanceChildren){
this.cloneChildren=$2._instanceChildren.concat()
}else{
this.cloneChildren=[]
};var $d=$0.context;this.clones=[];this.clonePool=[];if(this.pooling){
$0.$lzc$set___LZmanager(this);this.clones.push($2);$2.immediateparent.addSubview($2)
}else{
this.destroyClone($2)
};this.setDataContext($d,$d instanceof LzDatapointer)
},"__LZgetInstanceAttr",function($0,$1){
var $2=$0._instanceAttrs;if($2&&($1 in $2)){
return $2[$1]
}else{
var $3=$0["constructor"].attributes;if($3&&($1 in $3)){
return $3[$1]
}};return void 0
},"__LZsetCloneAttrs",function(){},"__LZapplyArgs",function($0,$1){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["__LZapplyArgs"]||this.nextMethod(arguments.callee,"__LZapplyArgs")).call(this,$0,$1);if(this.__LZdeleted){
return
};this.__LZHandleMultiNodes(this.initialnodes);this.initialnodes=null;if(this.visible==false){
this.$lzc$set_visible(false)
}},"setDataContext",function($0,$1){
switch(arguments.length){
case 1:
$1=false;
};if($0==null&&this.immediateparent!=null&&this.immediateparent["datapath"]!=null){
$0=this.immediateparent.datapath;$1=true
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["setDataContext"]||this.nextMethod(arguments.callee,"setDataContext")).call(this,$0,$1)
},"getCloneNumber",function($0){
return this.clones[$0]
},"__LZHandleNoNodes",function(){
this.nodes=[];var $0=this.clones;while($0.length){
if(this.pooling){
this.poolClone()
}else{
var $1=$0.pop();this.destroyClone($1)
}}},"__LZHandleSingleNode",function($0){
this.__LZHandleMultiNodes([$0])
},"__LZHandleMultiNodes",function($0){
var $1=this.parent&&this.parent.layouts?this.parent.layouts:[];for(var $2=0;$2<$1.length;++$2){
$1[$2].lock()
};this.hasdata=true;var $3=this.nodes;this.nodes=$0;if(this.onnodes.ready)this.onnodes.sendEvent(this.nodes);if(this.__LZspecialDotDot)this.__LZsetupDotDot($0[0]);if(this.orderpath!=null&&this.nodes){
this.nodes=this.mergesort(this.nodes,0,this.nodes.length-1)
};this.__LZadjustVisibleClones($3,true);var $4=this.clones.length;for(var $2=0;$2<$4;$2++){
var $5=this.clones[$2];var $6=$2+this.__LZdataoffset;$5.clonenumber=$6;if(this.nodes){
$5.datapath.setClonePointer(this.nodes[$6])
};if($5.onclonenumber.ready)$5.onclonenumber.sendEvent($6)
};if(this.onclones.ready)this.onclones.sendEvent(this.clones);for(var $2=0;$2<$1.length;++$2){
$1[$2].unlock()
};return null
},"__LZadjustVisibleClones",function($0,$1){
var $2=this.__LZdiffArrays($0,this.nodes);if(!this.pooling){
while(this.clones.length>$2){
var $3=this.clones.pop();this.destroyClone($3)
}};lz.Instantiator.enableDataReplicationQueuing(this);while(this.nodes&&this.nodes.length>this.clones.length){
var $4=this.getNewClone();if(!$4)break;this.clones.push($4)
};lz.Instantiator.clearDataReplicationQueue(this);while(this.nodes&&this.nodes.length$1.toLowerCase()){
return 1
}else{
return 0
}},"setOrder",function($0,$1){
switch(arguments.length){
case 1:
$1=null;
};this.orderpath=null;if($1!=null){
this.setComparator($1)
};this.orderpath=$0;if(this.nodes&&this.nodes.length){
this.__LZHandleMultiNodes(this.nodes)
}},"setComparator",function($0){
if($0=="descending"){
$0=this.descDict
}else if($0=="ascending"){
$0=this.ascDict
}else if(Function["$lzsc$isa"]?Function.$lzsc$isa($0):$0 instanceof Function){};this.comparator=$0;if(this.orderpath!=null&&this.nodes&&this.nodes.length){
this.__LZHandleMultiNodes(this.nodes)
}},"getNewClone",function($0){
switch(arguments.length){
case 0:
$0=null;
};if(!this.cloneParent){
return null
};if(this.clonePool.length){
var $1=this.reattachClone(this.clonePool.pop())
}else{
var $1=new (this.cloneClass)(this.cloneParent,this.cloneAttrs,this.cloneChildren,$0==null?this.asyncnew:!$0)
};if(this.visible==false)$1.$lzc$set_visible(false);return $1
},"poolClone",function(){
var $0=this.clones.pop();this.detachClone($0);this.clonePool.push($0)
},"destroyClone",function($0){
$0.destroy()
},"$lzc$set_datapath",function($0){
this.setXPath($0)
},"setXPath",function($0){
if(this.__LZpreventXPathUpdate)return false;return(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["setXPath"]||this.nextMethod(arguments.callee,"setXPath")).apply(this,arguments)
},"handleDeletedNode",function($0){
var $1=this.clones[$0];if(this.pooling){
this.detachClone($1);this.clonePool.push($1)
}else{
this.destroyClone($1)
};this.nodes.splice($0,1);this.clones.splice($0,1)
},"getCloneForNode",function($0,$1){
switch(arguments.length){
case 1:
$1=false;
};var $2=this.clones;var $3=$2.length;for(var $4=0;$4<$3;$4++){
if($2[$4].datapath.p==$0){
return $2[$4]
}};return null
},"toString",function(){
return "ReplicationManager in "+this.immediateparent
},"setVisible",function($0){
this.$lzc$set_visible($0)
},"$lzc$set_visible",function($0){
this.visible=$0;var $1=this.clones;var $2=$1.length;for(var $3=0;$3<$2;$3++){
$1[$3].$lzc$set_visible($0)
};if(this.onvisible.ready)this.onvisible.sendEvent($0)
},"__LZcheckChange",function($0){
this.p=this.nodes[0];var $1=(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["__LZcheckChange"]||this.nextMethod(arguments.callee,"__LZcheckChange")).call(this,$0);this.p=null;if(!$1){
var $2=$0.who;var $3=this.clones;var $4=$3.length;for(var $5=0;$5<$4;$5++){
var $6=$3[$5];var $7=$6.datapath;if($7.__LZneedsOpUpdate($0)){
$7.__LZsetData()
};if($2.childOfNode($7.p,true)){
if($7.onDocumentChange.ready)$7.onDocumentChange.sendEvent($0)
}}};return false
},"__LZneedsOpUpdate",function($0){
switch(arguments.length){
case 0:
$0=null;
};return false
},"getContext",function($0){
switch(arguments.length){
case 0:
$0=null;
};return this.nodes[0]
},"detachClone",function($0){
if($0.isdetatchedclone)return;$0.$lzc$set_visible(false);$0.addedToParent=false;var $1=$0.immediateparent.subviews;for(var $2=$1.length-1;$2>=0;$2--){
if($1[$2]==$0){
$1.splice($2,1);break
}};$0.datapath.__LZtrackDel.unregisterAll();var $3=$0.immediateparent.onremovesubview;if($3.ready)$3.sendEvent($0);$0.isdetatchedclone=true;$0.datapath.p=null
},"reattachClone",function($0){
if(!$0.isdetatchedclone)return $0;$0.immediateparent.addSubview($0);$0.$lzc$set_visible(this.visible);$0.isdetatchedclone=false;return $0
},"__LZdiffArrays",function($0,$1){
var $2=0;var $3=$0?$0.length:0;var $4=$1?$1.length:0;while($2<$3&&$2<$4){
if($0[$2]!=$1[$2]){
return $2
};$2++
};return $2
},"updateData",function(){
this.__LZupdateData()
},"__LZupdateData",function($0){
switch(arguments.length){
case 0:
$0=false;
};var $1=this.clones;var $2=$1.length;for(var $3=0;$3<$2;$3++){
$1[$3].datapath.updateData()
}}],LzDatapath);lz.ReplicationManager=LzReplicationManager;Class.make("LzRefNode",["__LZxpathconstr",null,"__LZxpathdepend",null,"xpath",null,"$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=false;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3)
},"$lzc$set_xpath",function($0){
this.parent.$lzc$set_xpath($0)
}],LzNode);Class.make("LzDataAttrBind",["$lzsc$initialize",function($0,$1,$2,$3){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0);this.type=$3;this.setAttr=$1;this.pathparent=$0;this.node=$0.immediateparent;this.setXPath($2);this.rerunxpath=true;if($0.__LZdepChildren==null){
$0.__LZdepChildren=[this]
}else{
$0.__LZdepChildren.push(this)
}},"$pathbinding",true,"setAttr",void 0,"pathparent",void 0,"node",void 0,"type",void 0,"__LZlast",-1,"__LZsendUpdate",function($0,$1){
switch(arguments.length){
case 0:
$0=false;
case 1:
$1=false;
};var $2=this.__LZpchanged;var $3=(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["__LZsendUpdate"]||this.nextMethod(arguments.callee,"__LZsendUpdate")).call(this,$0,$1);if($3){
var $4=this.data;var $5=this.node;var $6=this.setAttr;if($4==null){
$4=null
};var $7=lz.Type.acceptTypeValue(this.type,$4,$5,$6);if($2||$5[$6]!==$7||!$5.inited||this.parsedPath.operator=="attributes"){
{
if(!$5.__LZdeleted){
var $lzsc$plduwl="$lzc$set_"+$6;if(Function["$lzsc$isa"]?Function.$lzsc$isa($5[$lzsc$plduwl]):$5[$lzsc$plduwl] instanceof Function){
$5[$lzsc$plduwl]($7)
}else{
$5[$6]=$7;var $lzsc$7vxc4h=$5["on"+$6];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$7vxc4h):$lzsc$7vxc4h instanceof LzEvent){
if($lzsc$7vxc4h.ready){
$lzsc$7vxc4h.sendEvent($7)
}}}}}}};return $3
},"destroy",function(){
if(this.__LZdeleted)return;var $0=this.pathparent.__LZdepChildren;if($0!=null){
for(var $1=0;$1<$0.length;$1++){
if($0[$1]===this){
$0.splice($1,1);break
}}};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["destroy"]||this.nextMethod(arguments.callee,"destroy")).call(this)
},"setDataContext",function($0,$1){
switch(arguments.length){
case 1:
$1=false;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["setDataContext"]||this.nextMethod(arguments.callee,"setDataContext")).call(this,$0||this.pathparent,$1)
},"updateData",function(){
this.__LZupdateData()
},"__LZupdateData",function($0){
switch(arguments.length){
case 0:
$0=false;
};var $1=this.parsedPath.operator;if($1!=null){
var $2=this.node.presentAttribute(this.setAttr,this.type);if(this.data!=$2){
if($1=="name"){
this.setNodeName($2)
}else if($1=="text"){
this.setNodeText($2)
}else if($1=="attributes"){
this.p.$lzc$set_attributes($2)
}else{
this.setNodeAttribute($1.substring(11),$2)
}}}},"__LZHandleMultiNodes",function($0){
var $1=this.parsedPath;if($1&&$1.aggOperator=="last"){
this.__LZlast=$0.length;this.__LZHandleSingleNode($0[0]);return null
}else{
return(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["__LZHandleMultiNodes"]||this.nextMethod(arguments.callee,"__LZHandleMultiNodes")).call(this,$0)
}},"__LZgetLast",function(){
return this.__LZlast!=-1?this.__LZlast:(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["__LZgetLast"]||this.nextMethod(arguments.callee,"__LZgetLast")).call(this)
},"runXPath",function(){
this.__LZlast=-1;return(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["runXPath"]||this.nextMethod(arguments.callee,"runXPath")).call(this)
},"toString",function(){
return "binder "+this.xpath
}],LzDatapointer);Class.make("LzLazyReplicationManager",["sizeAxis",void 0,"cloneimmediateparent",void 0,"updateDel",void 0,"__LZoldnodelen",void 0,"viewsize",0,"totalsize",0,"mask",null,"$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 2:
$2=null;
case 3:
$3=null;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3)
},"getDefaultPooling",function(){
return true
},"construct",function($0,$1){
if($1.pooling!=null){
$1.pooling=true
};if($1.axis!=null){
this.axis=$1.axis
};this.sizeAxis=this.axis=="x"?"width":"height";(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["construct"]||this.nextMethod(arguments.callee,"construct")).call(this,$0,$1);this.mask=$0.immediateparent.immediateparent.mask;var $2;if(this.cloneAttrs.options!=null){
$2=new LzInheritedHash(this.cloneAttrs.options);$2["ignorelayout"]=true
}else{
$2={ignorelayout:true}};var $3=this.clones[0];if($3){
$3.setOption("ignorelayout",true);var $4=$3.immediateparent.layouts;if($4!=null){
for(var $5=0;$5<$4.length;$5++){
$4[$5].removeSubview($3)
}}};this.cloneAttrs.options=$2;var $6=this.getNewClone(true);this.cloneimmediateparent=$6.immediateparent;if(this.initialnodes){
$6.datapath.setClonePointer(this.initialnodes[1])
};this.viewsize=$6[this.sizeAxis];$6.datapath.setClonePointer(null);this.clones.push($6);if($1.spacing==null){
$1.spacing=0
};this.totalsize=this.viewsize+$1.spacing;{
var $lzsc$q75esc=this.axis;var $lzsc$h3c7mt=this.totalsize;if(!$6.__LZdeleted){
var $lzsc$1ndxlp="$lzc$set_"+$lzsc$q75esc;if(Function["$lzsc$isa"]?Function.$lzsc$isa($6[$lzsc$1ndxlp]):$6[$lzsc$1ndxlp] instanceof Function){
$6[$lzsc$1ndxlp]($lzsc$h3c7mt)
}else{
$6[$lzsc$q75esc]=$lzsc$h3c7mt;var $lzsc$q6kz6u=$6["on"+$lzsc$q75esc];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$q6kz6u):$lzsc$q6kz6u instanceof LzEvent){
if($lzsc$q6kz6u.ready){
$lzsc$q6kz6u.sendEvent($lzsc$h3c7mt)
}}}}};this.__LZdataoffset=0;this.updateDel=new LzDelegate(this,"__LZhandleUpdate");this.updateDel.register(this.cloneimmediateparent,"on"+this.axis);this.updateDel.register(this.mask,"on"+this.sizeAxis)
},"__LZhandleUpdate",function($0){
this.__LZadjustVisibleClones(null,null)
},"__LZsetCloneAttrs",function(){
var $0;if(this.cloneAttrs.options!=null){
$0=new LzInheritedHash(this.cloneAttrs.options);$0["ignorelayout"]=true
}else{
$0={ignorelayout:true}};this.cloneAttrs.options=$0
},"__LZHandleNoNodes",function(){
this.__LZHandleMultiNodes([])
},"__LZadjustVisibleClones",function($0,$1){
var $2=this.cloneimmediateparent;var $3=this.nodes;var $4=this.axis;var $5=this.sizeAxis;var $6=this.totalsize;if($3){
var $7=$3.length;if(this.__LZoldnodelen!=$7){
{
var $lzsc$egq15n=$7*$6-this.spacing;if(!$2.__LZdeleted){
var $lzsc$iyhbl7="$lzc$set_"+$5;if(Function["$lzsc$isa"]?Function.$lzsc$isa($2[$lzsc$iyhbl7]):$2[$lzsc$iyhbl7] instanceof Function){
$2[$lzsc$iyhbl7]($lzsc$egq15n)
}else{
$2[$5]=$lzsc$egq15n;var $lzsc$43sya2=$2["on"+$5];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$43sya2):$lzsc$43sya2 instanceof LzEvent){
if($lzsc$43sya2.ready){
$lzsc$43sya2.sendEvent($lzsc$egq15n)
}}}}};this.__LZoldnodelen=$7
}};if(!(this.mask&&this.mask["hasset"+$5]))return;var $8=0;if($6!=0){
$8=Math.floor(-$2[$4]/$6);if(0>$8)$8=0
};var $9=0;var $a=this.clones.length;var $b=$8-this.__LZdataoffset;var $c=$8*$6+$2[$4];var $d=0;if(typeof $c=="number"){
$d=1+Math.floor((this.mask[$5]-$c)/$6)
};if($3!=null){
var $7=$3.length;if($d+$8>$7){
$d=$7-$8
}};if($b==0&&$d==$a)return;lz.Instantiator.enableDataReplicationQueuing(this);var $e=this.clones;this.clones=[];for(var $f=0;$f<$d;$f++){
var $g=null;if($f+$b<0){
if($d+$b<$a&&$a>0){
$g=$e[--$a]
}else{
$g=this.getNewClone()
}}else if($f+$b>=$a){
if($9<$b&&$9<$a){
$g=$e[$9++]
}else{
$g=this.getNewClone()
}};if($g){
this.clones[$f]=$g;{
var $lzsc$n81tp1=($f+$8)*$6;if(!$g.__LZdeleted){
var $lzsc$an74m="$lzc$set_"+$4;if(Function["$lzsc$isa"]?Function.$lzsc$isa($g[$lzsc$an74m]):$g[$lzsc$an74m] instanceof Function){
$g[$lzsc$an74m]($lzsc$n81tp1)
}else{
$g[$4]=$lzsc$n81tp1;var $lzsc$7bom50=$g["on"+$4];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$7bom50):$lzsc$7bom50 instanceof LzEvent){
if($lzsc$7bom50.ready){
$lzsc$7bom50.sendEvent($lzsc$n81tp1)
}}}}};$g.clonenumber=$8+$f;if($3){
$g.datapath.setClonePointer($3[$8+$f])
};if($g.onclonenumber.ready)$g.onclonenumber.sendEvent($f)
}else{
this.clones[$f]=$e[$f+$b]
}};var $h=this.clonePool;while($9<$b&&$9<$a){
var $i=$e[$9++];this.detachClone($i);$h.push($i)
};while($a>$d+$b&&$a>0){
var $i=$e[--$a];this.detachClone($i);$h.push($i)
};this.__LZdataoffset=$8;lz.Instantiator.clearDataReplicationQueue(this)
},"toString",function(){
return "Lazy clone manager in "+this.cloneimmediateparent
},"getCloneForNode",function($0,$1){
switch(arguments.length){
case 1:
$1=false;
};var $2=(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["getCloneForNode"]||this.nextMethod(arguments.callee,"getCloneForNode")).call(this,$0)||null;if(!$2&&!$1){
$2=this.getNewClone();$2.datapath.setClonePointer($0);this.detachClone($2);this.clonePool.push($2)
};return $2
},"getCloneNumber",function($0){
return this.getCloneForNode(this.nodes[$0])
}],LzReplicationManager);lz.LazyReplicationManager=LzLazyReplicationManager;Class.make("LzResizeReplicationManager",["datasizevar",void 0,"__LZresizeupdating",void 0,"$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 2:
$2=null;
case 3:
$3=null;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3)
},"getDefaultPooling",function(){
return false
},"construct",function($0,$1){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["construct"]||this.nextMethod(arguments.callee,"construct")).call(this,$0,$1);this.datasizevar="$"+this.getUID()+"track"
},"__LZHandleCloneResize",function($0){
var $1=this.datapath.p;if($1){
var $2=this.cloneManager;var $3=$2.datasizevar;var $4=$1.getUserData($3)||$2.viewsize;if($0!=$4){
$1.setUserData($3,$0);$2.__LZadjustVisibleClones(null,false)
}}},"__LZsetCloneAttrs",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["__LZsetCloneAttrs"]||this.nextMethod(arguments.callee,"__LZsetCloneAttrs")).call(this);var $0=this.cloneAttrs;$0.__LZHandleCloneResize=this.__LZHandleCloneResize;if(!$0["$delegates"]){
$0.$delegates=[]
};$0.$delegates.push("on"+(this.axis=="y"?"height":"width"),"__LZHandleCloneResize",null)
},"getPositionByNode",function($0){
var $1=-this.spacing;var $2;if(this.nodes!=null){
for(var $3=0;$3$3)$3=0;var $4=this.mask[this.sizeAxis];var $5=-1;var $6=this.__LZdataoffset;if($1){
while(this.clones.length)this.poolClone();var $7=null;var $8=0
}else{
var $7=this.clones;var $8=$7.length
};this.clones=[];var $9=-this.spacing;var $a=false;var $b=-1;var $c;var $d=true;for(var $e=0;$e<$2;$e++){
var $f=this.nodes[$e];var $g=$f.getUserData(this.datasizevar);var $h=$g==null?this.viewsize:$g;$9+=this.spacing;if(!$a&&$5==-1&&$9-$3+$h>=0){
$d=$e!=0;$a=true;$c=$9;$5=$e;var $i=$e-$6;$i=$i>$8?$8:$i;if($i>0){
for(var $j=0;$j<$i;$j++){
var $k=$7[$j];this.__LZreleaseClone($k)
}}}else if($a&&$9-$3>$4){
$a=false;$b=$e-$5;var $l=$e-$6;$l=$l<0?0:$l;if($l<$8){
for(var $j=$l;$j<$8;$j++){
var $k=$7[$j];this.__LZreleaseClone($k)
}}};if($a){
if($e>=$6&&$e<$6+$8){
var $m=$7[$e-$6]
}else{
var $m=null
};this.clones[$e-$5]=$m
};$9+=$h
};var $n=$c;if($d)$n+=this.spacing;for(var $e=0;$e0){
$2="0"+$2;$3--
};return $2
},"torgb",function($0){
if(typeof $0=="string"&&$0.indexOf("rgb")!=-1)return $0;var $1=LzColorUtils.inttohex($0);if(typeof $1!="string")return $1;if(typeof $0=="number"||lz.colors[$0]!=null)$0=$1;var $2=LzColorUtils.__cache;var $3="torgb"+$1;if($2[$3])return $2[$3];if(++$2.counter>1000){
$2={counter:0}};if($0.length<6){
$0="#"+$0.charAt(1)+$0.charAt(1)+$0.charAt(2)+$0.charAt(2)+$0.charAt(3)+$0.charAt(3)+($0.length>4?$0.charAt(4)+$0.charAt(4):"")
};$2[$3]=($0.length>7?"rgba(":"rgb(")+parseInt($0.substring(1,3),16)+","+parseInt($0.substring(3,5),16)+","+parseInt($0.substring(5,7),16)+($0.length>7?","+parseInt($0.substring(7),16)/255:"")+")";return $2[$3]
},"tohsv",function($0){
var $1=LzColorUtils.__cache;var $2="tohsv"+$0;if($1[$2])return $1[$2];if(++$1.counter>1000){
$1={counter:0}};$0=LzColorUtils.hextoint($0);var $3=($0>>16&255)/255,$4=($0>>8&255)/255,$5=($0&255)/255;var $6=Math.min($3,Math.min($4,$5)),$7=Math.max($3,Math.max($4,$5));var $8=$7;var $9=$7-$6;if($9==0){
$1[$2]={h:0,s:0,v:$8}}else{
var $a=$9/$7;if($3==$7){
var $b=($4-$5)/$9
}else if($4==$7){
var $b=2+($5-$3)/$9
}else{
var $b=4+($3-$4)/$9
};$b*=60;if($b<0){
$b+=360
};$1[$2]={h:$b,s:$a,v:$8}};return $1[$2]
},"fromhsv",function($0,$1,$2){
var $3=LzColorUtils.__cache;var $4="fromhsv"+$0+$1+$2;if($3[$4])return $3[$4];if(++$3.counter>1000){
$3={counter:0}};var $5=$0/60;var $6=$5|0;var $7=$6%6;var $8=$5-$6;var $9=$2*(1-$1);var $a=$2*(1-$8*$1);var $5=$2*(1-(1-$8)*$1);var $b,$c,$d;switch($7){
case 0:
$b=$2;$c=$5;$d=$9;break;
case 1:
$b=$a;$c=$2;$d=$9;break;
case 2:
$b=$9;$c=$2;$d=$5;break;
case 3:
$b=$9;$c=$a;$d=$2;break;
case 4:
$b=$5;$c=$9;$d=$2;break;
case 5:
$b=$2;$c=$9;$d=$a;break;
};return $3[$4]=LzColorUtils.rgbatoint($b*255,$c*255,$d*255)
},"convertColor",function($0){
if($0=="null"||$0==null)return null;return LzColorUtils.hextoint($0)
},"hextoint",function($0){
var $1=LzColorUtils.stringToColor($0);if(typeof $1!="string")return $1;var $2=LzColorUtils.__cache;var $3="hextoint"+$0;if($2[$3])return $2[$3];if(++$2.counter>1000){
$2={counter:0}};var $4=$0;$4=$4.slice(1);var $5=0;if($4.length>6){
$5=parseInt($4.slice(6),16)/25500;$4=$4.slice(0,6)
};var $1=parseInt($4,16);switch($4.length){
case 3:
$4=(($1&3840)<<8|($1&240)<<4|$1&15)*17+$5;break;
case 6:
$4=$1+$5;break;
default:
$4=0;break;
};$2[$3]=$4;return $4
},"inttohex",function($0,$1){
switch(arguments.length){
case 1:
$1=6;
};var $2=LzColorUtils.stringToColor($0);if(typeof $2!="number")return $2;var $3=LzColorUtils.__cache;var $4="inttohex"+$2;if($3[$4])return $3[$4];if(++$3.counter>1000){
$3={counter:0}};var $5="#"+LzColorUtils.dectohex($2,$1);var $6=LzColorUtils.findalpha($0);if($6!=null){
var $7=$6.toString(16);if($7.length==1){
$7="0"+$7
};$5+=$7
};$3[$4]=$5;return $5
},"inttocolorobj",function($0){
var $1=LzColorUtils.hextoint($0);var $2=LzColorUtils.__cache;var $3="inttocolorobj"+$1;if($2[$3])return $2[$3];if(++$2.counter>1000){
$2={counter:0}};var $4=$1|0;var $5=LzColorUtils.findalpha($1);if($5!=null){
$5*=100/255
};$2[$3]={color:$4,alpha:$5};return $2[$3]
},"rgbatoint",function($0,$1,$2,$3){
switch(arguments.length){
case 3:
$3=null;
};var $4=($0&255)<<16|($1&255)<<8|$2&255;if($3!=null){
$4+=$3*0.01
};return $4
},"inttorgba",function($0){
return [$0>>16&255,$0>>8&255,$0&255,LzColorUtils.findalpha($0)]
},"findalpha",function($0){
if($0==null)return;$0=Number($0);var $1=$0-($0|0);if($1!=0&&!isNaN($1)){
return $1*25600|0
}},"applyTransform",function($0,$1){
var $2=LzColorUtils.inttorgba($0);var $3=$2[0];var $4=$2[1];var $5=$2[2];var $6=$2[3];$3=$3*$1["redMultiplier"]+$1["redOffset"];$3=Math.min($3,255);$4=$4*$1["greenMultiplier"]+$1["greenOffset"];$4=Math.min($4,255);$5=$5*$1["blueMultiplier"]+$1["blueOffset"];$5=Math.min($5,255);if($6!=null){
$6=$6*$1["alphaMultiplier"]+$1["alphaOffset"];$6=Math.min($6,255)
};return LzColorUtils.rgbatoint($3,$4,$5,$6)
}]);lz.ColorUtils=LzColorUtils;Class.make("LzUtilsClass",["__SimpleExprPattern",void 0,"__ElementPattern",void 0,"$lzsc$initialize",function(){
this.__SimpleExprPattern=new RegExp("^\\s*([$_A-Za-z][$\\w]*)((\\s*\\.\\s*[$_A-Za-z][$\\w]*)|(\\s*\\[\\s*\\d+\\s*\\]))*\\s*$");this.__ElementPattern=new RegExp("([$_A-Za-z][$\\w]*)|(\\d+)","g")
},"color",{hextoint:function($0){
return LzColorUtils.hextoint($0)
},inttohex:function($0){
return LzColorUtils.inttohex($0)
},torgb:function($0){
return LzColorUtils.torgb($0)
}},"hextoint",function($0){
return LzColorUtils.hextoint($0)
},"inttohex",function($0,$1){
switch(arguments.length){
case 1:
$1=6;
};return LzColorUtils.inttohex($0,$1)
},"dectohex",function($0,$1){
switch(arguments.length){
case 1:
$1=0;
};return LzColorUtils.dectohex($0,$1)
},"stringToColor",function($0){
return LzColorUtils.stringToColor($0)
},"torgb",function($0){
return LzColorUtils.torgb($0)
},"fromrgb",function($0){
return LzColorUtils.fromrgb($0)
},"colornames",lz.colors,"__parseArgs",function($0,$1){
switch(arguments.length){
case 1:
$1=null;
};if($0=="")return [];if($1==null)$1=canvas;var $2=[];var $3=null;var $4="";for(var $5=0,$6=$0.length;$5<$6;$5++){
var $7=$8;var $8=$0.charAt($5);if($8=='"'||$8=="'"){
if($3==null){
$3=$8
}else if($3==$8){
$3=null
}}else if($8==","){
if(!$3){
$2.push($4);$4="";continue
}}else if($8==" "||$8=="\t"||$8=="\n"||$8=="\r"){
if($3==null&&($7==","||$7==" "||$7=="\t"||$7=="\n"||$7=="\r")){
continue
}};$4+=$8
};$2.push($4);for(var $5=0;$5<$2.length;$5++){
var $9=$2[$5];if($9=="")continue;var $a=$9.charAt($9);var $b=parseFloat($9);if(!isNaN($b)){
$2[$5]=$b
}else if($a=='"'||$a=="'"){
var $c=$9.lastIndexOf($a);$2[$5]=$9.substring(1,$c)
}else if($9=="true"||$9=="false"){
$2[$5]=$9=="true"
}else if($1[$9]){
$2[$5]=$1[$9]
}else{
$2[$5]=null
}};return $2
},"safeEval",function($0){
if($0.indexOf("new ")==0)return this.safeNew($0);var $1=$0.indexOf("(");var $2=null;if($1!=-1){
var $3=$0.lastIndexOf(")");$2=$0.substring($1+1,$3);$0=$0.substring(0,$1)
};var $4=null,$5;if($0.match(this.__SimpleExprPattern)){
var $6=$0.match(this.__ElementPattern);$5=globalValue($6[0]);for(var $7=1,$8=$6.length;$7<$8;$7++){
$4=$5;$5=$5[$6[$7]]
}};if($2==null){
return $5
};var $9=lz.Utils.__parseArgs($2,$4);if($5){
var $a=$5.apply($4,$9);return $a
}},"safeNew",function($0){
var $1=$0;var $2=$0.indexOf("new ");if($2==-1)return $0;$0=$0.substring($2+4);var $3=$0.indexOf("(");if($3!=-1){
var $4=$0.indexOf(")");var $5=$0.substring($3+1,$4);$0=$0.substring(0,$3)
};var $6=globalValue($0);if(!$6)return;var $5=lz.Utils.__parseArgs($5);var $7=$5.length;if($7==0){
return new $6()
}else if($7==1){
return new $6($5[0])
}else if($7==2){
return new $6($5[0],$5[1])
}else if($7==3){
return new $6($5[0],$5[1],$5[2])
}else if($7==4){
return new $6($5[0],$5[1],$5[2],$5[3])
}else if($7==5){
return new $6($5[0],$5[1],$5[2],$5[3],$5[4])
}else if($7==6){
return new $6($5[0],$5[1],$5[2],$5[3],$5[4],$5[5])
}else if($7==7){
return new $6($5[0],$5[1],$5[2],$5[3],$5[4],$5[5],$5[6])
}else if($7==8){
return new $6($5[0],$5[1],$5[2],$5[3],$5[4],$5[5],$5[6],$5[7])
}else if($7==9){
return new $6($5[0],$5[1],$5[2],$5[3],$5[4],$5[5],$5[6],$5[7],$5[8])
}else if($7==10){
return new $6($5[0],$5[1],$5[2],$5[3],$5[4],$5[5],$5[6],$5[7],$5[8],$5[9])
}else if($7==11){
return new $6($5[0],$5[1],$5[2],$5[3],$5[4],$5[5],$5[6],$5[7],$5[8],$5[9],$5[10])
}}]);lz.Utils=new LzUtilsClass();var LzUtils=lz.Utils;Class.make("LzInstantiatorService",["checkQDel",null,"$lzsc$initialize",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this);this.checkQDel=new LzDelegate(this,"checkQ")
},"halted",false,"isimmediate",false,"isdatareplicating",false,"istrickling",false,"isUpdating",false,"safe",true,"timeout",500,"makeQ",[],"trickleQ",[],"tricklingQ",[],"datareplQ",null,"dataQ",[],"syncNew",true,"trickletime",10,"setSafeInstantiation",function($0){
this.safe=$0;if(this.instanceQ.length){
this.timeout=Infinity
}},"requestInstantiation",function($0,$1){
if(this.isimmediate){
this.createImmediate($0,$1.concat())
}else{
var $2=this.newReverseArray($1);if(this.isdatareplicating){
this.datareplQ.push($2,$0)
}else if(this.istrickling){
this.tricklingQ.push($0,$2)
}else{
this.makeQ.push($0,$2);this.checkUpdate()
}}},"enableDataReplicationQueuing",function($0){
if(this.isdatareplicating){
this.dataQ.push(this.datareplQ)
}else{
this.isdatareplicating=true
};this.datareplQ=[]
},"clearDataReplicationQueue",function($0){
var $1=this.datareplQ;if(this.dataQ.length>0){
this.datareplQ=this.dataQ.pop()
}else{
this.isdatareplicating=false;this.datareplQ=null
};var $2=$0.cloneParent;var $3=this.makeQ;var $4=$3.length;var $5=$4;for(var $6=0;$6<$4;$6+=2){
if($3[$6].parent===$2){
$5=$6;break
}};$1.push(0,$5);$1.reverse();$3.splice.apply($3,$1);this.checkUpdate()
},"newReverseArray",function($0){
var $1=$0.length;var $2=Array($1);for(var $3=0,$4=$1-1;$3<$1;){
$2[$3++]=$0[$4--]
};return $2
},"checkUpdate",function(){
if(!(this.isUpdating||this.halted)){
this.checkQDel.register(lz.Idle,"onidle");this.isUpdating=true
}},"checkQ",function($0){
switch(arguments.length){
case 0:
$0=null;
};if(!this.makeQ.length){
if(!this.tricklingQ.length){
if(!this.trickleQ.length){
this.checkQDel.unregisterAll();this.isUpdating=false;return
}else{
var $1=this.trickleQ.shift();var $2=this.trickleQ.shift();this.tricklingQ.push($1,this.newReverseArray($2))
}};this.istrickling=true;this.makeSomeViews(this.tricklingQ,this.trickletime);this.istrickling=false
}else{
canvas.creatednodes+=this.makeSomeViews(this.makeQ,this.timeout);if(canvas.updatePercentCreatedEnabled){
canvas.updatePercentCreated()
}}},"makeSomeViews",function($0,$1){
var $2=new Date().getTime();var $3=0;while(new Date().getTime()-$2<$1&&$0.length){
var $4=$0.length;var $5=$0[$4-1];var $6=$0[$4-2];var $7=false;if($6["__LZdeleted"]||$5[0]&&$5[0]["__LZdeleted"]){
$0.length-=2;continue
};try{
while(new Date().getTime()-$2<$1){
if($4!=$0.length){
break
};if(!$5.length){
$7=true;break
};var $8=$5.pop();if($8){
$6.makeChild($8,true);$3++
}}}
finally{};if($7){
$0.length=$4-2;$6.__LZinstantiationDone()
}};return $3
},"trickleInstantiate",function($0,$1){
this.trickleQ.push($0,$1);this.checkUpdate()
},"createImmediate",function($0,$1){
var $2=this.newReverseArray($1);var $3=this.isimmediate;this.isimmediate=true;this.makeSomeViews([$0,$2],Infinity);this.isimmediate=$3
},"completeTrickle",function($0){
if(this.tricklingQ[0]==$0){
var $1=this.isimmediate;this.isimmediate=true;this.makeSomeViews(this.tricklingQ,Infinity);this.isimmediate=$1;this.tricklingQ=[]
}else{
var $2=this.trickleQ;var $3=$2.length;for(var $4=0;$4<$3;$4+=2){
if($2[$4]==$0){
var $5=$2[$4+1];$2.splice($4,2);this.createImmediate($0,$5);return
}}}},"halt",function(){
this.isUpdating=false;this.halted=true;this.checkQDel.unregisterAll()
},"resume",function(){
this.halted=false;this.checkUpdate()
},"drainQ",function($0){
var $1=this.timeout;var $2=this.trickletime;var $3=this.halted;this.timeout=$0;this.trickletime=$0;this.halted=false;this.isUpdating=true;this.checkQ();this.halted=$3;this.timeout=$1;this.trickletime=$2;return !this.isUpdating
}],LzEventable,["LzInstantiator",void 0]);(function($0){
with($0)with($0.prototype){
{
LzInstantiatorService.LzInstantiator=new LzInstantiatorService()
}}})(LzInstantiatorService);lz.Instantiator=LzInstantiatorService.LzInstantiator;Class.make("LzGlobalMouseService",["$lzsc$initialize",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this)
},"onmousemove",LzDeclaredEvent,"onmouseup",LzDeclaredEvent,"onmouseupoutside",LzDeclaredEvent,"onmouseover",LzDeclaredEvent,"onmouseout",LzDeclaredEvent,"onmousedown",LzDeclaredEvent,"onmousedragin",LzDeclaredEvent,"onmousedragout",LzDeclaredEvent,"onmouseleave",LzDeclaredEvent,"onmouseenter",LzDeclaredEvent,"onmouseevent",LzDeclaredEvent,"onclick",LzDeclaredEvent,"ondblclick",LzDeclaredEvent,"__movecounter",0,"__mouseactive",true,"__mouseEvent",function($0,$1){
if($0=="onmouseleave"){
this.__mouseactive=false;if(canvas.onmouseleave.ready){
canvas.onmouseleave.sendEvent(null)
}}else if($0=="onmouseenter"){
this.__mouseactive=true;if(canvas.onmouseenter.ready){
canvas.onmouseenter.sendEvent(null)
}}else if($0=="onmousemove"){
this.__movecounter++
};var $2=this[$0];if($2){
if($2.ready){
$2.sendEvent($1)
};if(this.onmouseevent.ready){
this.onmouseevent.sendEvent({type:$0,target:$1})
}}},"__mouseUpOutsideHandler",function(){
LzMouseKernel.__mouseUpOutsideHandler()
}],LzEventable,["LzGlobalMouse",void 0]);(function($0){
with($0)with($0.prototype){
{
LzGlobalMouseService.LzGlobalMouse=new LzGlobalMouseService()
}}})(LzGlobalMouseService);lz.GlobalMouseService=LzGlobalMouseService;lz.GlobalMouse=LzGlobalMouseService.LzGlobalMouse;Class.make("LzBrowserService",["capabilities",LzSprite.prototype.capabilities,"$lzsc$initialize",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this)
},"loadURL",function($0,$1,$2){
switch(arguments.length){
case 1:
$1=null;
case 2:
$2=null;
};LzBrowserKernel.loadURL($0,$1,$2)
},"loadJS",function($0,$1){
switch(arguments.length){
case 1:
$1=null;
};LzBrowserKernel.loadJS.apply(null,arguments)
},"callJS",function($0,$1,$2){
switch(arguments.length){
case 1:
$1=null;
case 2:
$2=null;
};try{
return LzBrowserKernel.callJS.apply(null,arguments)
}
catch($3){
return null
}},"getVersion",function(){
return LzBrowserKernel.getVersion()
},"getOS",function(){
return LzBrowserKernel.getOS()
},"getLoadURL",function(){
return LzBrowserKernel.getLoadURL()
},"getURL",function(){
return LzBrowserKernel.callJS("eval",false,"window.location.href")
},"getInitArg",function($0){
switch(arguments.length){
case 0:
$0=null;
};return LzBrowserKernel.getInitArg($0)
},"oldOptionName",function($0){
return LzBrowserService.sOptionNameMap[$0]
},"getLzOption",function($0){
switch(arguments.length){
case 0:
$0=null;
};var $1=LzBrowserKernel.getLzOption($0);if($1==null){
var $2=LzBrowserService.sOptionNameMap[$0];if($2!=null){
$0=$2
};return LzBrowserKernel.getInitArg($0)
}},"getAppID",function(){
return LzBrowserKernel.getAppID()
},"showMenu",function($0){
if(this.capabilities.runtimemenus){
LzBrowserKernel.showMenu($0)
}},"setClipboard",function($0){
if(this.capabilities.setclipboard){
LzBrowserKernel.setClipboard($0)
}},"setWindowTitle",function($0){
LzBrowserKernel.callJS("eval",null,'top.document.title="'+$0+'"')
},"isAAActive",function(){
if(this.capabilities.accessibility){
return LzBrowserKernel.isAAActive()
}else{
return false
}},"updateAccessibility",function(){
if(this.capabilities.accessibility){
LzBrowserKernel.updateAccessibility()
}},"loadProxyPolicy",function($0){
if(this.capabilities.proxypolicy){
LzBrowserKernel.loadProxyPolicy($0)
}},"postToLps",true,"parsedloadurl",null,"defaultPortNums",{http:80,https:443},"getBaseURL",function($0,$1){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=null;
};var $2=this.getLoadURLAsLzURL();if($0){
$2.protocol="https"
};if($1){
$2.port=$1
}else if($0&&$1==null){
$2.port=this.defaultPortNums[$2.protocol]
};$2.query=null;return $2
},"getLoadURLAsLzURL",function(){
if(!this.parsedloadurl){
this.parsedloadurl=new LzURL(this.getLoadURL())
};return this.parsedloadurl.dupe()
},"toAbsoluteURL",function($0,$1){
if($0.indexOf("://")>-1||$0.indexOf("/@WEBAPP@/")==0||$0.indexOf("file:")==0){
return $0
};var $2=this.getLoadURLAsLzURL();$2.query=null;if($0.indexOf(":")>-1){
var $3=$0.indexOf(":");var $4=$2.protocol=="https";$2.protocol=$0.substring(0,$3);if($1||$4){
if($2.protocol=="http"){
$2.protocol="https"
}};var $5=$0.substring($3+1,$0.length);if($5.charAt(0)=="/"){
$2.path=$0.substring($3+1);$2.file=null
}else{
$2.file=$0.substring($3+1)
}}else{
if($0.charAt(0)=="/"){
$2.path=$0;$2.file=null
}else{
$2.file=$0
}};return $2.toString()
},"xmlEscape",function($0){
return LzDataElement.__LZXMLescape($0)
},"urlEscape",function($0){
return encodeURIComponent($0)
},"urlUnescape",function($0){
return decodeURIComponent($0)
},"usePost",function(){
return this.postToLps&&this.supportsPost()
},"supportsPost",function(){
return true
},"makeProxiedURL",function($0){
var $1=$0.headers;var $2=$0.postbody;var $3=$0.proxyurl;var $4=$0.serverproxyargs;var $5;if($4){
$5={url:this.toAbsoluteURL($0.url,$0.secure),lzt:$0.service,reqtype:$0.httpmethod.toUpperCase()};for(var $6 in $4){
$5[$6]=$4[$6]
}}else{
$5={url:this.toAbsoluteURL($0.url,$0.secure),lzt:$0.service,reqtype:$0.httpmethod.toUpperCase(),sendheaders:$0.sendheaders,trimwhitespace:$0.trimwhitespace,nsprefix:$0.trimwhitespace,timeout:$0.timeout,cache:$0.cacheable,ccache:$0.ccache}};if($2!=null){
$5.lzpostbody=$2
};$5.lzr=$runtime;if($1!=null){
var $7="";for(var $8 in $1){
$7+=$8+": "+$1[$8]+"\n"
};if($7!=""){
$5["headers"]=$7
}};if(!$0.ccache){
$5.__lzbc__=new Date().getTime()
};var $9="?";for(var $a in $5){
var $b=$5[$a];if(typeof $b=="string"){
$b=encodeURIComponent($b);$b=$b.replace(LzDataset.slashPat,"%2F")
};$3+=$9+$a+"="+$b;$9="&"
};return $3
}],null,["LzBrowser",void 0,"sOptionNameMap",{runtime:"lzr",backtrace:"lzbacktrace",proxied:"lzproxied",usemastersprite:"lzusemastersprite"}]);(function($0){
with($0)with($0.prototype){
{
LzBrowserService.LzBrowser=new LzBrowserService()
}}})(LzBrowserService);lz.BrowserService=LzBrowserService;lz.Browser=LzBrowserService.LzBrowser;Class.make("LzModeManagerService",["onmode",LzDeclaredEvent,"__LZlastclick",null,"__LZlastClickTime",0,"willCall",false,"eventsLocked",false,"modeArray",new Array(),"remotedebug",null,"$lzsc$initialize",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this);LzMouseKernel.setCallback(this,"rawMouseEvent")
},"makeModal",function($0){
if($0&&(this.modeArray.length==0||!this.hasMode($0))){
this.modeArray.push($0);if(this.onmode.ready)this.onmode.sendEvent($0);var $1=lz.Focus.getFocus();if($1&&!$1.childOf($0)){
lz.Focus.clearFocus()
}}},"release",function($0){
var $1=this.modeArray;for(var $2=$1.length-1;$2>=0;$2--){
if($1[$2]===$0){
$1.splice($2,$1.length-$2);var $3=$1[$2-1];if(this.onmode.ready)this.onmode.sendEvent($3||null);var $4=lz.Focus.getFocus();if($3&&$4&&!$4.childOf($3)){
lz.Focus.clearFocus()
};return
}}},"releaseAll",function(){
this.modeArray=new Array();if(this.onmode.ready)this.onmode.sendEvent(null)
},"handleMouseEvent",function($0,$1){
if($1=="onmouseup")lz.Track.__LZmouseup(null);if($0==null){
$0=this.__findInputtextSelection()
};lz.GlobalMouse.__mouseEvent($1,$0);if(this.eventsLocked){
return
};var $2=true;for(var $3=this.modeArray.length-1;$2&&$3>=0;--$3){
var $4=this.modeArray[$3];if(!$4){
continue
};if($0&&$0.childOf($4)){
break
}else{
$2=$4.passModeEvent?$4.passModeEvent($1,$0):false
}};if(!$0){
return
};if($2){
if($1=="onclick"){
if(this.__LZlastclick===$0&&$0.ondblclick.ready&&LzTimeKernel.getTimer()-this.__LZlastClickTime<$0.DOUBLE_CLICK_TIME){
$1="ondblclick";lz.GlobalMouse.__mouseEvent($1,$0);this.__LZlastclick=null
}else{
this.__LZlastclick=$0;this.__LZlastClickTime=LzTimeKernel.getTimer()
}};$0.mouseevent($1);if($1=="onmousedown"){
lz.Focus.__LZcheckFocusChange($0)
}}},"__LZallowInput",function($0,$1){
return $1.childOf($0)
},"__LZallowFocus",function($0){
var $1=this.modeArray.length;return $1==0||$0.childOf(this.modeArray[$1-1])
},"globalLockMouseEvents",function(){
this.eventsLocked=true
},"globalUnlockMouseEvents",function(){
this.eventsLocked=false
},"hasMode",function($0){
var $1=this.modeArray;for(var $2=$1.length-1;$2>=0;$2--){
if($0===$1[$2]){
return true
}};return false
},"getModalView",function(){
return this.modeArray[this.modeArray.length-1]||null
},"__findInputtextSelection",function(){
return LzInputTextSprite.findSelection()
},"rawMouseEvent",function($0,$1){
if($0=="onmousemove"){
lz.GlobalMouse.__mouseEvent("onmousemove",null)
}else{
this.handleMouseEvent($1,$0)
}}],LzEventable,["LzModeManager",void 0]);(function($0){
with($0)with($0.prototype){
{
LzModeManagerService.LzModeManager=new LzModeManagerService()
}}})(LzModeManagerService);lz.ModeManagerService=LzModeManagerService;lz.ModeManager=LzModeManagerService.LzModeManager;Class.make("LzCursorService",["$lzsc$initialize",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this)
},"showHandCursor",function($0){
LzMouseKernel.showHandCursor($0)
},"setCursorGlobal",function($0){
LzMouseKernel.setCursorGlobal($0)
},"lock",function(){
LzMouseKernel.lock()
},"unlock",function(){
LzMouseKernel.unlock()
},"restoreCursor",function(){
LzMouseKernel.restoreCursor()
}],LzEventable,["LzCursor",void 0]);(function($0){
with($0)with($0.prototype){
{
LzCursorService.LzCursor=new LzCursorService()
}}})(LzCursorService);lz.CursorService=LzCursorService;lz.Cursor=LzCursorService.LzCursor;Class.make("LzKeysService",["$lzsc$initialize",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this);LzKeyboardKernel.setCallback(this,"__keyEvent");if(lz.embed["mousewheel"]){
lz.embed.mousewheel.setCallback(this,"__mousewheelEvent")
}},"downKeysHash",{},"downKeysArray",[],"keycombos",{},"onkeydown",LzDeclaredEvent,"onkeyup",LzDeclaredEvent,"onmousewheeldelta",LzDeclaredEvent,"onkeyevent",LzDeclaredEvent,"codemap",{shift:16,control:17,alt:18},"ctrlKey",false,"__keyEvent",function($0,$1,$2,$3){
switch(arguments.length){
case 3:
$3=false;
};this.ctrlKey=$3;var $4=this.codemap;for(var $5 in $0){
var $6=$0[$5];if($4[$5]!=null)$1=$4[$5];if($6){
this.gotKeyDown($1)
}else{
this.gotKeyUp($1)
}}},"__allKeysUp",function(){
this.downKeysHash={};this.downKeysArray=[];LzKeyboardKernel.__allKeysUp()
},"__browserTabEvent",function($0){
LzKeyboardKernel.__browserTabEvent($0)
},"gotKeyDown",function($0,$1){
switch(arguments.length){
case 1:
$1=null;
};var $2=this.downKeysHash;var $3=this.downKeysArray;var $4=!$2[$0];if($4){
$2[$0]=true;$3.push($0);$3.sort()
};if($4||$1!="extra"){
if($2[229]!=true){
if(this.onkeydown.ready)this.onkeydown.sendEvent($0);if(this.onkeyevent.ready){
this.onkeyevent.sendEvent({type:"onkeydown",key:$0})
}}};if($4){
var $5=this.keycombos;for(var $6=0;$6<$3.length&&$5!=null;$6++){
$5=$5[$3[$6]]
};if($5!=null&&("delegates" in $5)){
var $7=$5.delegates;for(var $6=0;$6<$7.length;$6++){
$7[$6].execute($3)
}}}},"gotKeyUp",function($0){
var $1=this.downKeysHash;var $2=$1[$0];delete $1[$0];var $3=this.downKeysArray;$3.length=0;for(var $4 in $1){
$3.push($4)
};if($2){
if(this.onkeyup.ready)this.onkeyup.sendEvent($0);if(this.onkeyevent.ready){
this.onkeyevent.sendEvent({type:"onkeyup",key:$0})
}}},"isKeyDown",function($0){
if(typeof $0=="string"){
return this.downKeysHash[this.keyCodes[$0.toLowerCase()]]==true
}else{
var $1=true;var $2=this.downKeysHash;var $3=this.keyCodes;for(var $4=0;$4<$0.length;$4++){
$1=$1&&$2[$3[$0[$4].toLowerCase()]]==true
};return $1
}},"callOnKeyCombo",function($0,$1){
var $2=this.keyCodes;var $3=[];for(var $4=0;$4<$1.length;$4++){
$3.push($2[$1[$4].toLowerCase()])
};$3.sort();var $5=this.keycombos;for(var $4=0;$4<$3.length;$4++){
var $6=$5[$3[$4]];if($6==null){
$5[$3[$4]]=$6={delegates:[]}};$5=$6
};$5.delegates.push($0)
},"removeKeyComboCall",function($0,$1){
var $2=this.keyCodes;var $3=[];for(var $4=0;$4<$1.length;$4++){
$3.push($2[$1[$4].toLowerCase()])
};$3.sort();var $5=this.keycombos;for(var $4=0;$4<$3.length;$4++){
$5=$5[$3[$4]];if($5==null){
return false
}};for(var $4=$5.delegates.length-1;$4>=0;$4--){
if($5.delegates[$4]==$0){
$5.delegates.splice($4,1)
}}},"enableEnter",function($0){},"mousewheeldelta",0,"__mousewheelEvent",function($0){
if(lz.GlobalMouse.__mouseactive){
this.mousewheeldelta=$0;if(this.onmousewheeldelta.ready)this.onmousewheeldelta.sendEvent($0);if(this.onkeyevent.ready){
this.onkeyevent.sendEvent({type:"onmousewheeldelta",key:$0})
}}},"gotLastFocus",function($0){
LzKeyboardKernel.gotLastFocus()
},"setGlobalFocusTrap",function($0){
if(canvas.capabilities.globalfocustrap){
LzKeyboardKernel.setGlobalFocusTrap($0)
}},"keyCodes",{"0":48,")":48,";":186,":":186,"1":49,"!":49,"=":187,"+":187,"2":50,"@":50,"<":188,",":188,"3":51,"#":51,"-":189,"_":189,"4":52,"$":52,">":190,".":190,"5":53,"%":53,"/":191,"?":191,"6":54,"^":54,"`":192,"~":192,"7":55,"&":55,"[":219,"{":219,"8":56,"*":56,"\\":220,"|":220,"9":57,"(":57,"]":221,"}":221,'"':222,"'":222,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,numbpad0:96,numbpad1:97,numbpad2:98,numbpad3:99,numbpad4:100,numbpad5:101,numbpad6:102,numbpad7:103,numbpad8:104,numbpad9:105,multiply:106,"add":107,subtract:109,decimal:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,backspace:8,tab:9,clear:12,enter:13,shift:16,control:17,alt:18,"pause":19,"break":19,capslock:20,esc:27,spacebar:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,"delete":46,help:47,numlock:144,screenlock:145,"IME":229}],LzEventable,["LzKeys",void 0]);(function($0){
with($0)with($0.prototype){
{
LzKeysService.LzKeys=new LzKeysService()
}}})(LzKeysService);lz.KeysService=LzKeysService;lz.Keys=LzKeysService.LzKeys;Class.make("LzAudioService",["capabilities",LzSprite.prototype.capabilities,"$lzsc$initialize",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this)
},"playSound",function($0){
if(this.capabilities.audio){
LzAudioKernel.playSound($0)
}},"stopSound",function(){
if(this.capabilities.audio){
LzAudioKernel.stopSound()
}},"startSound",function(){
if(this.capabilities.audio){
LzAudioKernel.startSound()
}},"getVolume",function(){
if(this.capabilities.audio){
return LzAudioKernel.getVolume()
};return NaN
},"setVolume",function($0){
if(this.capabilities.audio){
LzAudioKernel.setVolume($0)
}},"getPan",function(){
if(this.capabilities.audio){
return LzAudioKernel.getPan()
};return NaN
},"setPan",function($0){
if(this.capabilities.audio){
LzAudioKernel.setPan($0)
}}],null,["LzAudio",void 0]);(function($0){
with($0)with($0.prototype){
{
LzAudioService.LzAudio=new LzAudioService()
}}})(LzAudioService);lz.AudioService=LzAudioService;lz.Audio=LzAudioService.LzAudio;Class.make("LzHistoryService",["$lzsc$initialize",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this)
},"isReady",false,"ready",false,"onready",LzDeclaredEvent,"persist",false,"_persistso",null,"offset",0,"__lzdirty",false,"__lzhistq",[],"__lzcurrstate",{},"capabilities",LzSprite.prototype.capabilities,"onoffset",LzDeclaredEvent,"receiveHistory",function($0){
if(this.persist&&!this._persistso){
this.__initPersist()
};var $1=this.__lzhistq.length;var $2=$0*1;if(!$2){
$2=0
}else if($2>$1-1){
$2=$1
};var $3=this.__lzhistq[$2];for(var $4 in $3){
var $5=$3[$4];{
var $lzsc$7sxekq=global[$5.c];var $lzsc$prthp8=$5.n;var $lzsc$4m5q00=$5.v;if(!$lzsc$7sxekq.__LZdeleted){
var $lzsc$i6vsfh="$lzc$set_"+$lzsc$prthp8;if(Function["$lzsc$isa"]?Function.$lzsc$isa($lzsc$7sxekq[$lzsc$i6vsfh]):$lzsc$7sxekq[$lzsc$i6vsfh] instanceof Function){
$lzsc$7sxekq[$lzsc$i6vsfh]($lzsc$4m5q00)
}else{
$lzsc$7sxekq[$lzsc$prthp8]=$lzsc$4m5q00;var $lzsc$yixlrk=$lzsc$7sxekq["on"+$lzsc$prthp8];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$yixlrk):$lzsc$yixlrk instanceof LzEvent){
if($lzsc$yixlrk.ready){
$lzsc$yixlrk.sendEvent($lzsc$4m5q00)
}}}}}};this.offset=$2;if(this.onoffset.ready)this.onoffset.sendEvent($2);return $2
},"receiveEvent",function($0,$1){
{
if(!canvas.__LZdeleted){
var $lzsc$dipco5="$lzc$set_"+$0;if(Function["$lzsc$isa"]?Function.$lzsc$isa(canvas[$lzsc$dipco5]):canvas[$lzsc$dipco5] instanceof Function){
canvas[$lzsc$dipco5]($1)
}else{
canvas[$0]=$1;var $lzsc$ssz62b=canvas["on"+$0];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$ssz62b):$lzsc$ssz62b instanceof LzEvent){
if($lzsc$ssz62b.ready){
$lzsc$ssz62b.sendEvent($1)
}}}}}},"getCanvasAttribute",function($0){
return canvas[$0]
},"setCanvasAttribute",function($0,$1){
this.receiveEvent($0,$1)
},"callMethod",function($0){
return LzBrowserKernel.callMethod($0)
},"save",function($0,$1,$2){
if(typeof $0!="string"){
if($0["id"])$0=$0["id"];if(!$0)return
};if($2==null)$2=global[$0][$1];this.__lzcurrstate[$0]={c:$0,n:$1,v:$2};this.__lzdirty=true
},"commit",function(){
if(!this.__lzdirty)return;this.__lzhistq[this.offset]=this.__lzcurrstate;this.__lzhistq.length=this.offset+1;if(this.persist){
if(!this._persistso){
this.__initPersist()
};this._persistso.data[this.offset]=this.__lzcurrstate
};this.__lzcurrstate={};this.__lzdirty=false
},"move",function($0){
switch(arguments.length){
case 0:
$0=1;
};this.commit();var $1=this.offset+$0;if(0>=$1)$1=0;if(this.__lzhistq.length>=$1){
LzBrowserKernel.setHistory($1)
}},"next",function(){
this.move(1)
},"prev",function(){
this.move(-1)
},"__initPersist",function(){
if(this.persist){
if(!this._persistso){
this._persistso=LzBrowserKernel.getPersistedObject("historystate")
};if(this._persistso&&this._persistso.data){
var $0=this._persistso.data;this.__lzhistq=[];for(var $1 in $0){
this.__lzhistq[$1]=$0[$1]
}}}else{
if(this._persistso)this._persistso=null
}},"clear",function(){
if(this.persist){
if(!this._persistso){
this._persistso=LzBrowserKernel.getPersistedObject("historystate")
};this._persistso.clear()
};this.__lzhistq=[];this.offset=0;if(this.onoffset.ready)this.onoffset.sendEvent(0)
},"setPersist",function($0){
if(this.capabilities.persistence){
this.persist=$0
}},"__start",function($0){
lz.Browser.callJS("lz.embed.history.listen('"+$0+"')");this.isReady=true;this.ready=true;if(this.onready.ready)this.onready.sendEvent(true)
}],LzEventable,["LzHistory",void 0]);(function($0){
with($0)with($0.prototype){
{
LzHistoryService.LzHistory=new LzHistoryService()
}}})(LzHistoryService);lz.HistoryService=LzHistoryService;lz.History=LzHistoryService.LzHistory;Class.make("LzTrackService",["__LZreg",new Object(),"__LZactivegroups",null,"__LZtrackDel",null,"__LZmouseupDel",null,"__LZdestroydel",null,"__LZlastmouseup",null,"$lzsc$initialize",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this);this.__LZtrackDel=new LzDelegate(this,"__LZtrack");this.__LZmouseupDel=new LzDelegate(this,"__LZmouseup",lz.GlobalMouse,"onmouseup");this.__LZdestroydel=new LzDelegate(this,"__LZdestroyitem");this.__LZactivegroups=[]
},"register",function($0,$1){
if($0==null||$1==null)return;var $2=this.__LZreg[$1];if(!$2){
this.__LZreg[$1]=$2=[];$2.__LZlasthit=null;$2.__LZactive=false
};$2.push($0);this.__LZdestroydel.register($0,"ondestroy")
},"unregister",function($0,$1){
if($0==null||$1==null)return;var $2=this.__LZreg[$1];if($2){
for(var $3=0;$3<$2.length;$3++){
if($2[$3]==$0){
if($2.__LZlasthit==$0){
if(this.__LZlastmouseup==$0){
this.__LZlastmouseup=null
};$2.__LZlasthit=null
};$2.splice($3,1)
}};if($2.length==0){
if($2.__LZactive){
this.deactivate($1)
};delete this.__LZreg[$1]
}};this.__LZdestroydel.unregisterFrom($0.ondestroy)
},"__LZdestroyitem",function($0){
for(var $1 in this.__LZreg){
this.unregister($0,$1)
}},"activate",function($0){
var $1=this.__LZreg[$0];if($1&&!$1.__LZactive){
$1.__LZactive=true;var $2=this.__LZactivegroups;if($2.length==0){
this.__LZtrackDel.register(lz.Idle,"onidle")
};$2.push($1)
}},"deactivate",function($0){
var $1=this.__LZreg[$0];if($1&&$1.__LZactive){
var $2=this.__LZactivegroups;for(var $3=0;$3<$2.length;++$3){
if($2[$3]==$1){
$2.splice($3,1);break
}};if($2.length==0){
this.__LZtrackDel.unregisterAll()
};$1.__LZactive=false;if(this.__LZlastmouseup==$1.__LZlasthit){
this.__LZlastmouseup=null
};$1.__LZlasthit=null
}},"__LZtopview",function($0,$1){
var $2=$0;var $3=$1;while($2.nodeLevel<$3.nodeLevel){
$3=$3.immediateparent;if($3==$0)return $1
};while($3.nodeLevel<$2.nodeLevel){
$2=$2.immediateparent;if($2==$1)return $0
};while($2.immediateparent!=$3.immediateparent){
$2=$2.immediateparent;$3=$3.immediateparent
};return $2.getZ()>$3.getZ()?$0:$1
},"__LZfindTopmost",function($0){
var $1=$0[0];for(var $2=1;$2<$0.length;$2++){
$1=this.__LZtopview($1,$0[$2])
};return $1
},"__LZtrackgroup",function($0,$1){
for(var $2=0;$2<$0.length;$2++){
var $3=$0[$2];if($3.visible){
var $4=$3.getMouse(null);if($3.containsPt($4.x,$4.y)){
$1.push($3)
}}}},"__LZtrack",function($0){
var $1=[];var $2=this.__LZactivegroups;for(var $3=0;$3<$2.length;++$3){
var $4=$2[$3];var $5=[];this.__LZtrackgroup($4,$5);var $6=$4.__LZlasthit;if($5.length){
var $7=this.__LZfindTopmost($5);if($7==$6)continue;$1.push($7)
}else{
var $7=null
};if($6){
var $8=$6.onmousetrackout;if($8.ready)$8.sendEvent($6)
};$4.__LZlasthit=$7
};for(var $3=0,$9=$1.length;$3<$9;++$3){
var $a=$1[$3];if($a.onmousetrackover.ready)$a.onmousetrackover.sendEvent($a)
}},"__LZmouseup",function($0){
var $1=this.__LZactivegroups.slice();for(var $2=0;$2<$1.length;++$2){
var $3=$1[$2].__LZlasthit;if($3){
var $4=$3.onmousetrackup;if($4.ready){
if(this.__LZlastmouseup==$3){
this.__LZlastmouseup=null
}else{
this.__LZlastmouseup=$3;$4.sendEvent($3)
}}}}}],LzEventable,["LzTrack",void 0]);(function($0){
with($0)with($0.prototype){
{
LzTrackService.LzTrack=new LzTrackService()
}}})(LzTrackService);lz.TrackService=LzTrackService;lz.Track=LzTrackService.LzTrack;Class.make("LzIdleEvent",["$lzsc$initialize",function($0,$1,$2){
switch(arguments.length){
case 2:
$2=null;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2)
},"notify",function($0){
if($0){
LzIdleKernel.addCallback(this,"sendEvent")
}else if(!$0){
LzIdleKernel.removeCallback(this,"sendEvent")
}}],LzNotifyingEvent);Class.make("LzIdleService",["coi",void 0,"regNext",false,"removeCOI",null,"onidle",new LzDeclaredEventClass(LzIdleEvent),"$lzsc$initialize",function(){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this);this.coi=new Array();this.removeCOI=new LzDelegate(this,"removeCallIdleDelegates")
},"callOnIdle",function($0){
this.coi.push($0);if(!this.regNext){
this.regNext=true;this.removeCOI.register(this,"onidle")
}},"removeCallIdleDelegates",function($0){
var $1=this.coi.slice(0);this.coi.length=0;for(var $2=0;$2<$1.length;$2++){
$1[$2].execute($0)
};if(this.coi.length==0){
this.removeCOI.unregisterFrom(this.onidle);this.regNext=false
}},"setFrameRate",function($0){
switch(arguments.length){
case 0:
$0=30;
};LzIdleKernel.setFrameRate($0)
}],LzEventable,["LzIdle",void 0]);(function($0){
with($0)with($0.prototype){
{
LzIdleService.LzIdle=new LzIdleService()
}}})(LzIdleService);lz.IdleService=LzIdleService;lz.Idle=LzIdleService.LzIdle;Class.make("LzCSSStyleRule",["parsed",null,"specificity",0,"properties",void 0,"$lzsc$initialize",function($0,$1){
this.parsed=$0;if($0["length"]){
var $2=0;for(var $3=0,$4=$0.length;$3<$4;$3++){
$2+=$0[$3].s
};this.specificity=$2
}else{
this.specificity=$0.s
};this.properties=$1
},"_lexorder",void 0,"_dbg_name",function(){
var pname;pname=function($0){
var $1=$0["t"];var $2=$0["i"];var $3=$0["a"];if(!($1||$2||$3)){
return "*"
};var $4=$0["v"];var $5=$0["m"]||"=";return($1?$1:"")+($2?"#"+$2:"")+($3?($3=="styleclass"?"."+$4:"["+$3+($4?$5+$4:"")+"]"):"")+(("&" in $0)?pname($0["&"]):"")
};var $0=this.parsed;if($0["length"]){
var $1="";for(var $2=0;$2<$0.length;$2++){
$1+=pname($0[$2])+" "
};$1=$1.substring(0,$1.length-1)
}else{
var $1=pname($0)
};return $1
},"equal",function($0){
var equal;equal=function($0,$1){
return $0["t"]==$1["t"]&&$0["i"]==$1["i"]&&$0["a"]==$1["a"]&&$0["v"]==$1["v"]&&$0["m"]==$1["m"]&&(!$0["&"]&&!$1["&"]||$0["&"]&&$1["&"]&&equal($0["&"],$1["&"]))
};var $1=this.parsed;var $2=$0.parsed;if($1["length"]!=$2["length"]){
return false
};if($1["length"]){
for(var $3=$1.length-1;$3>=0;$3--){
if(!equal($1[$3],$2[$3])){
return false
}}};if(!equal($1,$2)){
return false
};var $4=this.properties;var $5=$0.properties;for(var $6 in $4){
if($4[$6]!==$5[$6]){
return false
}};for(var $7 in $5){
if($4[$7]!==$5[$7]){
return false
}};return true
}]);(function($0){
with($0)with($0.prototype){}})(LzCSSStyleRule);lz.CSSStyleRule=LzCSSStyleRule;Class.make("LzCSSStyleDependencies",["count",0,"deps",void 0,"$lzsc$initialize",function(){
this.deps={}},"gather",function($0,$1){
if(!($1 in this.deps)){
this.deps[$1]=[$0];this.count++;return
};var $2=this.deps[$1];for(var $3=0,$4=$2.length;$3<$4;$3++){
if($0===$2[$3]){
return
}};this.deps[$1].push($0);this.count++
}]);Class.make("LzCSSStyleClass",["$lzsc$initialize",function(){
this._rules=[];this._attrRules={};this._idRules={};this._tagRules={}},"getComputedStyle",function($0){
var $1=new LzCSSStyleDeclaration();$1.setNode($0);return $1
},"getPropertyValueFor",function($0,$1){
var $2=$0["__LZPropertyCache"]||this.getPropertyCache($0);if($1 in $2){
return $2[$1]
};return $2[$1]=void 0
},"getPropertyCache",function($0){
if(!$0)return {};var $1=$0["__LZPropertyCache"];if($1){
return $1
};var $2=$0.immediateparent;if(!$2||$2===canvas){
var $3={}}else{
var $3=$2["__LZPropertyCache"]||this.getPropertyCache($2)
};var $4=$0["__LZRuleCache"]||this.getRulesCache($0);if($4.length==0){
return $0.__LZPropertyCache=$3
};var $1={};for(var $5 in $3){
$1[$5]=$3[$5]
};for(var $6=$4.length-1;$6>=0;$6--){
var $7=$4[$6].properties;for(var $8 in $7){
$1[$8]=$7[$8]
}};return $0.__LZPropertyCache=$1
},"getRulesCache",function($0){
var $1=$0["__LZRuleCache"];if($1){
return $1
};$1=new Array();var $2=new Array();if(this._rulenum!=this._lastSort){
this._sortRules()
};var $3=$0["id"];if($3){
var $4=this._idRules;if($3 in $4){
$2=$2.concat($4[$3])
}};var $5=this._attrRules;for(var $6 in $5){
if($0[$6]!==void 0){
$2=$2.concat($5[$6])
}};var $7=this._tagRules;for(var $8 in $7){
var $9=lz[$8];if($9&&($9["$lzsc$isa"]?$9.$lzsc$isa($0):$0 instanceof $9)){
$2=$2.concat($7[$8])
}};$2.concat(this._rules);var $a=new LzCSSStyleDependencies();var $b=false;var $c=Infinity;for(var $d=0,$e=$2.length;$d<$e;$d++){
var $f=$2[$d];if(!$b){
var $g=$f.specificity;if(!$g||$g>=$c){
$b=true
}else{
$c=$g
}};var $h=$f.parsed;var $i=!(!$h["length"]);if($i){
$h=$h[$h.length-1]
};var $j=$h["t"];var $k=$j?lz[$j]:null;var $l=$h["i"];var $m=false;if((!$j||$k&&($k["$lzsc$isa"]?$k.$lzsc$isa($0):$0 instanceof $k))&&(!$l||$0["id"]==$l)){
if(!$i){
if(!$h["a"]&&!$h["&"]){
$m=true
}else{
var $n=$h["a"]?$h:$h["&"];var $o=$n.a;do{
$m=false;if($0[$o]!==void 0){
if($o!="name"){
$a.gather($0,$o)
};if(!("v" in $n)){
$m=true
}else{
var $p=$0[$o];$p+="";var $q=$n.v;if(!$n["m"]){
$m=$p==$q
}else{
var $r=$n.m;if($r=="~="){
$m=$p==$q||$0.__LZCSSStyleclass&&$0.__LZCSSStyleclass.indexOf(" "+$q+" ")>=0
}else if($r=="|="){
$m=$p.indexOf($q+"-")==0
}}}};if($m&&$n["&"]){
$n=$n["&"];$o=$n.a
}else{
$n=null
}}while($n)
}}else{
$m=this._compoundSelectorApplies($f.parsed,$0,$a)
}};if($m){
$1.push($f)
}};if($b){
$1.sort(this.__compareSpecificity)
};$0.__LZRuleCache=$1;if($a.count>0){
$0.__LZCSSDependencies=$a.deps
};return $1
},"__compareSpecificity",function($0,$1){
var $2=$0.specificity;var $3=$1.specificity;if($2!=$3){
return $2<$3?1:-1
};var $4=$0.parsed;var $5=$1.parsed;var $6=$0._lexorder<$1._lexorder?1:-1;if(!$4["length"]&&!$5["length"]){
var $7=$4["t"];var $8=$5["t"];if(!$7||!$8||$7==$8){
return $6
};var $9=lz[$7];var $a=lz[$8];if($9&&$a){
if($lzsc$issubclassof($9,$a)){
return -1
};if($lzsc$issubclassof($a,$9)){
return 1
}};return $6
};for(var $b=0;$b<$4.length;$b++){
var $c=$4[$b];var $d=$5[$b];if(!$c||!$d){
break
};var $7=$c["t"];var $8=$d["t"];if($7&&$8&&$7!=$8){
var $9=lz[$7];var $a=lz[$8];if($9&&$a){
if($lzsc$issubclassof($9,$a)){
return -1
};if($lzsc$issubclassof($a,$9)){
return 1
}}}};return $6
},"_printRuleArray",function($0){},"_compoundSelectorApplies",function($0,$1,$2){
for(var $3=$1,$4=$0.length-1;$4>=0&&$3!==canvas;$4--,$3=$3.parent){
var $5=$0[$4];var $6=$5["t"];var $7=$6?lz[$6]:null;var $8=$5["i"];while($3!==canvas){
var $9=false;if((!$6||$7&&($7["$lzsc$isa"]?$7.$lzsc$isa($3):$3 instanceof $7))&&(!$8||$3["id"]==$8)){
if(!$5["a"]&&!$5["&"]){
$9=true
}else{
var $a=$5["a"]?$5:$5["&"];var $b=$a.a;do{
$9=false;if($3[$b]!==void 0){
if($b!="name"){
$2.gather($3,$b)
};if(!("v" in $a)){
$9=true
}else{
var $c=$3[$b];$c+="";var $d=$a.v;if(!$a["m"]){
$9=$c==$d
}else{
var $e=$a.m;if($e=="~="){
$9=$c==$d||$3.__LZCSSStyleclass&&$3.__LZCSSStyleclass.indexOf(" "+$d+" ")>=0
}else if($e=="|="){
$9=$c.indexOf($d+"-")==0
}}}};if($9&&$a["&"]){
$a=$a["&"];$b=$a.a
}else{
$a=null
}}while($a)
};if($9){
if($4==0){
return true
}else{
break
}}};if($3===$1){
return false
};$3=$3.parent
}};return false
},"_rules",void 0,"_attrRules",void 0,"_idRules",void 0,"_tagRules",void 0,"_rulenum",0,"_lastSort",-1,"_sortRules",function(){
var $0;$0=function($0){
for(var $1=$0.length-2;$1>=0;$1--){
if($0[$1].equal($0[$1+1])){
$0.splice($1+1,1)
}}};if(this._rulenum!=this._lastSort){
this._rules.sort(this.__compareSpecificity);$0(this._rules);for(var $1 in this._attrRules){
var $2=this._attrRules[$1];$2.sort(this.__compareSpecificity);$0($2)
};for(var $1 in this._idRules){
var $3=this._idRules[$1];$3.sort(this.__compareSpecificity);$0($3)
};for(var $1 in this._tagRules){
var $4=this._tagRules[$1];$4.sort(this.__compareSpecificity);$0($4)
};this._lastSort=this._rulenum
}},"_addRule",function($0){
$0._lexorder=this._rulenum++;var $1=$0.parsed;if($1["length"]){
$1=$1[$1.length-1]
};if("i" in $1){
var $2=$1.i;var $3=this._idRules[$2];if(!$3){
$3=this._idRules[$2]=[]
};$3.push($0)
}else if("a" in $1){
var $4=$1.a;var $5=this._attrRules[$4];if(!$5){
$5=this._attrRules[$4]=[]
};$5.push($0)
}else if("t" in $1){
var $6=$1.t;var $7=this._tagRules[$6];if(!$7){
$7=this._tagRules[$6]=[]
};$7.push($0)
}else{
this._rules.push($0)
}}]);(function($0){
with($0)with($0.prototype){}})(LzCSSStyleClass);var LzCSSStyle=new LzCSSStyleClass();lz.CSSStyle=LzCSSStyleClass;Class.make("LzCSSStyleDeclaration",["$lzsc$initialize",function(){},"_node",null,"getPropertyValue",function($0){
return LzCSSStyle.getPropertyValueFor(this._node,$0)
},"setNode",function($0){
this._node=$0
}]);(function($0){
with($0)with($0.prototype){}})(LzCSSStyleDeclaration);lz.CSSStyleDeclaration=LzCSSStyleDeclaration;Class.make("LzStyleSheet",["$lzsc$initialize",function($0,$1,$2,$3){
this.type=$3;this.disabled=false;this.ownerNode=null;this.parentStyleSheet=null;this.href=$1;this.title=$0;this.media=$2
},"type",null,"disabled",null,"ownerNode",null,"parentStyleSheet",null,"href",null,"title",null,"media",null]);Class.make("LzCSSStyleSheet",["$lzsc$initialize",function($0,$1,$2,$3,$4,$5){
(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3);this.ownerRule=$4;this.cssRules=$5
},"ownerRule",null,"cssRules",null,"insertRule",function($0,$1){
if(!this.cssRules){
this.cssRules=[]
};if($1<0){
return null
};if($1","attributes",new LzInheritedHash(LzView.attributes)]);Class.make("$lzc$class_lzcontextmenu",["inset",void 0,"__drawnitems",void 0,"__overnow",void 0,"$ii6lnt6",function($0){
this.__globalmousedel=new (lz.Delegate)(this,"__handlemouse")
},"select",function($0){
var $1=LzMouseKernel.__showncontextmenu;if($1)$1.__select($0);this.hide()
},"show",function(){
if(this.visible&&this.__overnow!=null){
this.select(this.__overnow);this.__overnow=null;return
};this.__overnow=null;var $0=canvas.getMouse();if($0.x>canvas.width-this.width)$0.x=canvas.width-this.width;if($0.y>canvas.height-this.height)$0.y=canvas.height-this.height;this.bringToFront();{
var $lzsc$clf60f=$0.x;if(!this.__LZdeleted){
if(Function["$lzsc$isa"]?Function.$lzsc$isa(this["$lzc$set_x"]):this["$lzc$set_x"] instanceof Function){
this["$lzc$set_x"]($lzsc$clf60f)
}else{
this["x"]=$lzsc$clf60f;var $lzsc$kqamy1=this["onx"];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$kqamy1):$lzsc$kqamy1 instanceof LzEvent){
if($lzsc$kqamy1.ready){
$lzsc$kqamy1.sendEvent($lzsc$clf60f)
}}}}};{
var $lzsc$bmhny=$0.y;if(!this.__LZdeleted){
if(Function["$lzsc$isa"]?Function.$lzsc$isa(this["$lzc$set_y"]):this["$lzc$set_y"] instanceof Function){
this["$lzc$set_y"]($lzsc$bmhny)
}else{
this["y"]=$lzsc$bmhny;var $lzsc$l9m4ib=this["ony"];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$l9m4ib):$lzsc$l9m4ib instanceof LzEvent){
if($lzsc$l9m4ib.ready){
$lzsc$l9m4ib.sendEvent($lzsc$bmhny)
}}}}};{
if(!this.__LZdeleted){
if(Function["$lzsc$isa"]?Function.$lzsc$isa(this["$lzc$set_visible"]):this["$lzc$set_visible"] instanceof Function){
this["$lzc$set_visible"](true)
}else{
this["visible"]=true;var $lzsc$621n5b=this["onvisible"];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$621n5b):$lzsc$621n5b instanceof LzEvent){
if($lzsc$621n5b.ready){
$lzsc$621n5b.sendEvent(true)
}}}}};this.__globalmousedel.register(lz.GlobalMouse,"onmousedown")
},"hide",function(){
this.__globalmousedel.unregisterAll();var $0=LzMouseKernel.__showncontextmenu;if($0)$0.__hide();{
if(!this.__LZdeleted){
if(Function["$lzsc$isa"]?Function.$lzsc$isa(this["$lzc$set_visible"]):this["$lzc$set_visible"] instanceof Function){
this["$lzc$set_visible"](false)
}else{
this["visible"]=false;var $lzsc$mvanqs=this["onvisible"];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$mvanqs):$lzsc$mvanqs instanceof LzEvent){
if($lzsc$mvanqs.ready){
$lzsc$mvanqs.sendEvent(false)
}}}}}},"setItems",function($0){
this.__drawnitems={};var $1=this.container.subviews;for(var $2=$1.length-1;$2>=0;$2--){
var $3=$1[$2];if(!$3)continue;$3.destroy()
};var $4=$0.length;var $5=0;for(var $2=0;$2<$4;$2++){
var $6=$0[$2];var $7=lz["lzcontextmenu"+$6.type];if($7){
var $8=new $7(this,{data:$6.offset,text:$6.label});{
if(!$8.__LZdeleted){
if(Function["$lzsc$isa"]?Function.$lzsc$isa($8["$lzc$set_y"]):$8["$lzc$set_y"] instanceof Function){
$8["$lzc$set_y"]($5)
}else{
$8["y"]=$5;var $lzsc$l97d1g=$8["ony"];if(LzEvent["$lzsc$isa"]?LzEvent.$lzsc$isa($lzsc$l97d1g):$lzsc$l97d1g instanceof LzEvent){
if($lzsc$l97d1g.ready){
$lzsc$l97d1g.sendEvent($5)
}}}}};$5+=$8.height
}};this.items=$0;this.background.redraw()
},"registerRedraw",function($0){
this.__drawnitems[$0.getUID()]=$0;this.background.redraw()
},"unregisterRedraw",function($0){
delete this.__drawnitems[$0.getUID()];this.background.redraw()
},"__handlemouse",function($0){
if(!$0){
this.hide();return
};do{
if(lz.lzcontextmenu["$lzsc$isa"]?lz.lzcontextmenu.$lzsc$isa($0):$0 instanceof lz.lzcontextmenu){
return
};$0=$0.immediateparent
}while($0!==canvas);this.hide()
},"background",void 0,"container",void 0,"$lzsc$initialize",function($0,$1,$2,$3){
switch(arguments.length){
case 0:
$0=null;
case 1:
$1=null;
case 2:
$2=null;
case 3:
$3=false;
};(arguments.callee["$superclass"]&&arguments.callee.$superclass.prototype["$lzsc$initialize"]||this.nextMethod(arguments.callee,"$lzsc$initialize")).call(this,$0,$1,$2,$3)
}],LzView,["tagname","lzcontextmenu","children",[{attrs:{$classrootdepth:1,$delegates:["oninit","$ii6lntb",null,"onwidth","__doredraw",null,"onheight","__doredraw",null,"oncontext","__doredraw",null,"onvisible","__doredraw",null],height:new LzAlwaysExpr("height","size","$ii6lnt9","$ii6lnta",null),name:"background",width:new LzAlwaysExpr("width","size","$ii6lnt7","$ii6lnt8",null)},"class":$lzc$class_ii6lntc},{attrs:{$classrootdepth:1,name:"container",x:3,y:3},"class":LzView},{attrs:"container","class":$lzc$class_userClassPlacement}],"attributes",new LzInheritedHash(LzView.attributes)]);(function($0){
with($0)with($0.prototype){
{
LzNode.mergeAttributes({$delegates:["oninit","$ii6lnt6",null],__drawnitems:{},__overnow:null,inset:5,options:{ignorelayout:true},visible:false},$lzc$class_lzcontextmenu.attributes)
}}})($lzc$class_lzcontextmenu);lz["lzcontextmenuseparator"]=$lzc$class_lzcontextmenuseparator;lz["lzcontextmenutext"]=$lzc$class_lzcontextmenutext;lz["lzcontextmenudisabled"]=$lzc$class_lzcontextmenudisabled;lz["lzcontextmenu"]=$lzc$class_lzcontextmenu;