var jade={};jade.compat={};jade.messages={};jade.CENTER=0;jade.TOP=1;jade.LEFT=2;
jade.BOTTOM=3;jade.RIGHT=4;jade.ALIGN_NORTHWEST=0;jade.ALIGN_NORTH=1;jade.ALIGN_NORTHEAST=2;
jade.ALIGN_EAST=3;jade.ALIGN_SOUTHEAST=4;jade.ALIGN_SOUTH=5;jade.ALIGN_SOUTHWEST=6;
jade.ALIGN_WEST=7;jade.ALIGN_CENTER=8;jade.ORIENTATION_HORIZONTAL=0;jade.ORIENTATION_VERTICAL=1;
jade.SIZEMODE_PROPORTIONAL=0;jade.SIZEMODE_FIXED=1;jade.STATE_NORMAL=0;jade.STATE_OVER=1;
jade.STATE_DOWN=2;jade.STATE_OFF=3;jade.STATE_ACTIVE=4;jade.VIEWMODE_LIST=0;jade.VIEWMODE_ICON=1;
jade.AUTOSIZE_NONE=0;jade.AUTOSIZE_VERTICAL=1;jade.AUTOSIZE_HORIZONTAL=2;jade.AUTOSIZE_ALL=3;
jade.RENDER_NORMAL=0;jade.RENDER_SCALE=1;jade.RENDER_FIT_IN=2;jade.RENDER_FILL_IN=3;
jade.RENDER_TILE=4;jade.require=function(className){var instance;instance=eval("window."+className);
if(!instance){throw new Error(className+" required")}return instance};jade.inherit=function(b,c){var a;
if(!c){throw Error("parentClass must be set. childClass was "+b)}a=new Function();
a.prototype=c.prototype;b.prototype=new a();b.prototype.constructor=b;b.parentConstructor=c;
b.getName=c.getName;b.getSuperclass=c.getSuperclass};jade.bind=function(d,b,a){var c,e;
if(!d){throw new Error("func must be set")}if(!b){b=window}c=Array.prototype.slice.call(arguments,2);
e=function(){return(d).apply(b,c.concat(c.slice.call(arguments,0)))};e.jadeFunc=d;
e.jadeContext=b;e.equals=function(f){if(!f){return false}return(f.jadeFunc==this["jadeFunc"]&&f.jadeContext==this["jadeContext"])
};return e};jade.defer=function(c,b,a){return window.setTimeout(jade.bind.apply(this,arguments),0)
};jade.queue=function(c,b){var d,e,a;if(!c){throw new Error("func must be set")}if(!b){b=window
}a=(b.jadeCallQueue);if(!a){a=b.jadeCallQueue={}}for(e in a){d=a[e];if(d==c){return +e
}}e=String(jade.defer(function(f){for(e in a){if(a[e]==f){delete a[e]}}f.call(b)},b,c));
a[e]=c;return +e};jade.bindAsEventListener=function(d,b,a){var c,e;if(!d){throw new Error("func must be set")
}if(!b){b=window}c=Array.prototype.slice.call(arguments,2);e=function(){var g,f;g=[];
f="event" in window;g.push((f?window.event:arguments[0]));return(d).apply(b,g.concat(c).concat(c.slice.call(arguments,f?0:1)))
};e.jadeFunc=d;e.jadeContext=b;e.equals=function(f){if(!f){return false}return(f.jadeFunc==e.jadeFunc&&f.jadeContext==e.jadeContext)
};return e};jade.equals=function(b,a){if(b===a){return true}if(b==null||a==null){return false
}if(b.equals){return(b.equals)(a)}if(a.equals){return(a.equals)(b)}return false};
jade.message=function(d,b){var e,c,a;if(!d){throw new Error("messageKey must be set")
}e=jade.messages[d];if(e==null){return"???"+d+"???"}for(c=1,a=arguments.length;c<a;
c++){e=e.toString().replace(new RegExp("\\{"+(c-1)+"\\}","g"),arguments[c])}return e
};jade.isMessagePresent=function(a){if(!a){throw new Error("messageKey must be set")
}return(jade.messages[a]!=null)};