/*  
	THIS LICENSE APPLIES TO ALL LINES PAST THIS LINE UP TO THE LINE BEGINNING WITH '//EOS'

	Animator.js 1.1.9
	
	This library is released under the BSD license:

	Copyright (c) 2006, Bernard Sumption. All rights reserved.
	
	Redistribution and use in source and binary forms, with or without
	modification, are permitted provided that the following conditions are met:
	
	Redistributions of source code must retain the above copyright notice, this
	list of conditions and the following disclaimer. Redistributions in binary
	form must reproduce the above copyright notice, this list of conditions and
	the following disclaimer in the documentation and/or other materials
	provided with the distribution. Neither the name BernieCode nor
	the names of its contributors may be used to endorse or promote products
	derived from this software without specific prior written permission. 
	
	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
	AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
	IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
	ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
	ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
	DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
	SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
	CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
	LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
	OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
	DAMAGE.
*/
function Animator(options){this.setOptions(options);var _this=this;this.timerDelegate=function(){_this.onTimerEvent()};this.subjects=[];this.target=0;this.state=0;this.lastTime=null;};Animator.prototype={setOptions:function(options){this.options=Animator.applyDefaults({interval:20,duration:400,onComplete:function(){},onStep:function(){},transition:Animator.tx.easeInOut},options);},seekTo:function(to){this.seekFromTo(this.state,to);},seekFromTo:function(from,to){this.target=Math.max(0,Math.min(1,to));this.state=Math.max(0,Math.min(1,from));this.lastTime=new Date().getTime();if(!this.intervalId){this.intervalId=window.setInterval(this.timerDelegate,this.options.interval);}},jumpTo:function(to){this.target=this.state=Math.max(0,Math.min(1,to));this.propagate();},toggle:function(){this.seekTo(1-this.target);},addSubject:function(subject){this.subjects[this.subjects.length]=subject;return this;},clearSubjects:function(){this.subjects=[];},propagate:function(){var value=this.options.transition(this.state);for(var i=0;i<this.subjects.length;i++){if(this.subjects[i].setState){this.subjects[i].setState(value);}else{this.subjects[i](value);}}},onTimerEvent:function(){var now=new Date().getTime();var timePassed=now-this.lastTime;this.lastTime=now;var movement=(timePassed/this.options.duration)*(this.state<this.target?1:-1);if(Math.abs(movement)>=Math.abs(this.state-this.target)){this.state=this.target;}else{this.state+=movement;} try{this.propagate();}finally{this.options.onStep.call(this);if(this.target==this.state){window.clearInterval(this.intervalId);this.intervalId=null;this.options.onComplete.call(this);}}},play:function(){this.seekFromTo(0,1)},reverse:function(){this.seekFromTo(1,0)},stop:function(){this.target=this.state},inspect:function(){var str="#<Animator:\n";for(var i=0;i<this.subjects.length;i++){str+=this.subjects[i].inspect();}; str+=">";return str;}}; Animator.applyDefaults=function(defaults,prefs){prefs=prefs||{};var prop,result={};for(prop in defaults)result[prop]=prefs[prop]!==undefined?prefs[prop]:defaults[prop];return result;}; Animator.makeArray=function(o){if(o==null)return[];if(!o.length)return[o];var result=[];for(var i=0;i<o.length;i++)result[i]=o[i];return result;}; Animator.camelize=function(string){var oStringList=string.split('-');if(oStringList.length==1)return oStringList[0];var camelizedString=string.indexOf('-')==0?oStringList[0].charAt(0).toUpperCase()+oStringList[0].substring(1):oStringList[0];for(var i=1,len=oStringList.length;i<len;i++){var s=oStringList[i];camelizedString+=s.charAt(0).toUpperCase()+s.substring(1);};return camelizedString;};Animator.apply=function(el,style,options){if(style instanceof Array){return new Animator(options).addSubject(new CSSStyleSubject(el,style[0],style[1]));};return new Animator(options).addSubject(new CSSStyleSubject(el,style));};Animator.makeEaseIn=function(a){return function(state){return Math.pow(state,a*2);}};Animator.makeEaseOut=function(a){return function(state){return 1-Math.pow(1-state,a*2);}};Animator.makeElastic=function(bounces){return function(state){state=Animator.tx.easeInOut(state);return((1-Math.cos(state*Math.PI*bounces))*(1-state))+state;}};Animator.makeADSR=function(attackEnd,decayEnd,sustainEnd,sustainLevel){if(sustainLevel==null)sustainLevel=0.5;return function(state){if(state<attackEnd){return state/attackEnd;};if(state<decayEnd){return 1-((state-attackEnd)/(decayEnd-attackEnd)*(1-sustainLevel));};if(state<sustainEnd){return sustainLevel;};return sustainLevel*(1-((state-sustainEnd)/(1-sustainEnd)));}};Animator.makeBounce=function(bounces){var fn=Animator.makeElastic(bounces);return function(state){state=fn(state);return state<=1?state:2-state;}};Animator.tx={easeInOut:function(pos){return((-Math.cos(pos*Math.PI)/2)+0.5);},linear:function(x){return x;},easeIn:Animator.makeEaseIn(1.5),easeOut:Animator.makeEaseOut(1.5),strongEaseIn:Animator.makeEaseIn(2.5),strongEaseOut:Animator.makeEaseOut(2.5),elastic:Animator.makeElastic(1),veryElastic:Animator.makeElastic(3),bouncy:Animator.makeBounce(1),veryBouncy:Animator.makeBounce(3)};function NumericalStyleSubject(els,property,from,to,units){this.els=Animator.makeArray(els);if(property=='ieopacity'&&window.ActiveXObject){this.property='filter';}else{this.property=Animator.camelize(property);};this.from=parseFloat(from);this.to=parseFloat(to);this.units=units!=null?units:'px';};NumericalStyleSubject.prototype={setState:function(state){var style=this.getStyle(state);var visibility=(this.property=='opacity'&&state==0)?'hidden':'';var j=0;for(var i=0;i<this.els.length;i++){try{this.els[i].style[this.property]=style;}catch(e){if(this.property!='fontWeight')throw e;};if(j++>20)return;}},getStyle:function(state){state=this.from+((this.to-this.from)*state);if(this.property=='filter')return"alpha(opacity="+Math.round(state*100)+")";if(this.property=='opacity')return state;return Math.round(state)+this.units;},inspect:function(){return"\t"+this.property+"("+this.from+this.units+" to "+this.to+this.units+")\n";}};function ColorStyleSubject(els,property,from,to){this.els=Animator.makeArray(els);this.property=Animator.camelize(property);this.to=this.expandColor(to);this.from=this.expandColor(from);this.origFrom=from;this.origTo=to;};ColorStyleSubject.prototype={expandColor:function(color){var hexColor,red,green,blue;hexColor=ColorStyleSubject.parseColor(color);if(hexColor){red=parseInt(hexColor.slice(1,3),16);green=parseInt(hexColor.slice(3,5),16);blue=parseInt(hexColor.slice(5,7),16);return[red,green,blue]};if(window.DEBUG){alert("Invalid colour: '"+color+"'");}},getValueForState:function(color,state){return Math.round(this.from[color]+((this.to[color]-this.from[color])*state));},setState:function(state){var color='#'+ColorStyleSubject.toColorPart(this.getValueForState(0,state))+ColorStyleSubject.toColorPart(this.getValueForState(1,state))+ColorStyleSubject.toColorPart(this.getValueForState(2,state));for(var i=0;i<this.els.length;i++){this.els[i].style[this.property]=color;}},inspect:function(){return"\t"+this.property+"("+this.origFrom+" to "+this.origTo+")\n";}}; ColorStyleSubject.parseColor=function(string){var color='#',match;if(match=ColorStyleSubject.parseColor.rgbRe.exec(string)){var part;for(var i=1;i<=3;i++){part=Math.max(0,Math.min(255,parseInt(match[i])));color+=ColorStyleSubject.toColorPart(part);}; return color;};if(match=ColorStyleSubject.parseColor.hexRe.exec(string)){if(match[1].length==3){for(var i=0;i<3;i++){color+=match[1].charAt(i)+match[1].charAt(i);};return color;};return'#'+match[1];};return false;};ColorStyleSubject.toColorPart=function(number){if(number>255)number=255;var digits=number.toString(16);if(number<16)return'0'+digits;return digits;};ColorStyleSubject.parseColor.rgbRe=/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i;ColorStyleSubject.parseColor.hexRe=/^\#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;function DiscreteStyleSubject(els,property,from,to,threshold){this.els=Animator.makeArray(els);this.property=Animator.camelize(property);this.from=from;this.to=to;this.threshold=threshold||0.5;};DiscreteStyleSubject.prototype={setState:function(state){var j=0;for(var i=0;i<this.els.length;i++){this.els[i].style[this.property]=state<=this.threshold?this.from:this.to;}},inspect:function(){return"\t"+this.property+"("+this.from+" to "+this.to+" @ "+this.threshold+")\n";}};function CSSStyleSubject(els,style1,style2){els=Animator.makeArray(els);this.subjects=[];if(els.length==0)return;var prop,toStyle,fromStyle;if(style2){fromStyle=this.parseStyle(style1,els[0]);toStyle=this.parseStyle(style2,els[0]);}else{toStyle=this.parseStyle(style1,els[0]);fromStyle={};for(prop in toStyle){fromStyle[prop]=CSSStyleSubject.getStyle(els[0],prop);}};var prop;for(prop in fromStyle){if(fromStyle[prop]==toStyle[prop]){delete fromStyle[prop];delete toStyle[prop];}};var prop,units,match,type,from,to;for(prop in fromStyle){var fromProp=String(fromStyle[prop]);var toProp=String(toStyle[prop]);if(toStyle[prop]==null){if(window.DEBUG)alert("No to style provided for '"+prop+'"');continue;};if(from=ColorStyleSubject.parseColor(fromProp)){to=ColorStyleSubject.parseColor(toProp);type=ColorStyleSubject;}else if(fromProp.match(CSSStyleSubject.numericalRe)&&toProp.match(CSSStyleSubject.numericalRe)){from=parseFloat(fromProp);to=parseFloat(toProp);type=NumericalStyleSubject;match=CSSStyleSubject.numericalRe.exec(fromProp);var reResult=CSSStyleSubject.numericalRe.exec(toProp);if(match[1]!=null){units=match[1];}else if(reResult[1]!=null){units=reResult[1];}else{units=reResult;}}else if(fromProp.match(CSSStyleSubject.discreteRe)&&toProp.match(CSSStyleSubject.discreteRe)){from=fromProp;to=toProp;type=DiscreteStyleSubject;units=0;}else{if(window.DEBUG){alert("Unrecognised format for value of "+prop+": '"+fromStyle[prop]+"'");};continue;};this.subjects[this.subjects.length]=new type(els,prop,from,to,units);}};CSSStyleSubject.prototype={parseStyle:function(style,el){var rtn={};if(style.indexOf(":")!=-1){var styles=style.split(";");for(var i=0;i<styles.length;i++){var parts=CSSStyleSubject.ruleRe.exec(styles[i]);if(parts){rtn[parts[1]]=parts[2];}}}else{var prop,value,oldClass;oldClass=el.className;el.className=style;for(var i=0;i<CSSStyleSubject.cssProperties.length;i++){prop=CSSStyleSubject.cssProperties[i];value=CSSStyleSubject.getStyle(el,prop);if(value!=null){rtn[prop]=value;}};el.className=oldClass;};return rtn;},setState:function(state){for(var i=0;i<this.subjects.length;i++){this.subjects[i].setState(state);}},inspect:function(){var str="";for(var i=0;i<this.subjects.length;i++){str+=this.subjects[i].inspect();};return str;}};CSSStyleSubject.getStyle=function(el,property){var style;if(document.defaultView&&document.defaultView.getComputedStyle){style=document.defaultView.getComputedStyle(el,"").getPropertyValue(property);if(style){return style;}};property=Animator.camelize(property);if(el.currentStyle){style=el.currentStyle[property];};return style||el.style[property]};CSSStyleSubject.ruleRe=/^\s*([a-zA-Z\-]+)\s*:\s*(\S(.+\S)?)\s*$/;CSSStyleSubject.numericalRe=/^-?\d+(?:\.\d+)?(%|[a-zA-Z]{2})?$/;CSSStyleSubject.discreteRe=/^\w+$/;CSSStyleSubject.cssProperties=['azimuth','background','background-attachment','background-color','background-image','background-position','background-repeat','border-collapse','border-color','border-spacing','border-style','border-top','border-top-color','border-right-color','border-bottom-color','border-left-color','border-top-style','border-right-style','border-bottom-style','border-left-style','border-top-width','border-right-width','border-bottom-width','border-left-width','border-width','bottom','clear','clip','color','content','cursor','direction','display','elevation','empty-cells','css-float','font','font-family','font-size','font-size-adjust','font-stretch','font-style','font-variant','font-weight','height','left','letter-spacing','line-height','list-style','list-style-image','list-style-position','list-style-type','margin','margin-top','margin-right','margin-bottom','margin-left','max-height','max-width','min-height','min-width','orphans','outline','outline-color','outline-style','outline-width','overflow','padding','padding-top','padding-right','padding-bottom','padding-left','pause','position','right','size','table-layout','text-align','text-decoration','text-indent','text-shadow','text-transform','top','vertical-align','visibility','white-space','width','word-spacing','z-index','opacity','outline-offset','overflow-x','overflow-y'];function AnimatorChain(animators,options){this.animators=animators;this.setOptions(options);for(var i=0;i<this.animators.length;i++){this.listenTo(this.animators[i]);};this.forwards=false;this.current=0;};AnimatorChain.prototype={setOptions:function(options){this.options=Animator.applyDefaults({resetOnPlay:true},options);},play:function(){this.forwards=true;this.current=-1;if(this.options.resetOnPlay){for(var i=0;i<this.animators.length;i++){this.animators[i].jumpTo(0);}};this.advance();},reverse:function(){this.forwards=false;this.current=this.animators.length;if(this.options.resetOnPlay){for(var i=0;i<this.animators.length;i++){this.animators[i].jumpTo(1);}};this.advance();},toggle:function(){if(this.forwards){this.seekTo(0);}else{this.seekTo(1);}},listenTo:function(animator){var oldOnComplete=animator.options.onComplete;var _this=this;animator.options.onComplete=function(){if(oldOnComplete)oldOnComplete.call(animator);_this.advance();}},advance:function(){if(this.forwards){if(this.animators[this.current+1]==null)return;this.current++;this.animators[this.current].play();}else{if(this.animators[this.current-1]==null)return;this.current--;this.animators[this.current].reverse();}},seekTo:function(target){if(target<=0){this.forwards=false;this.animators[this.current].seekTo(0);}else{this.forwards=true;this.animators[this.current].seekTo(1);}}};function Accordion(options){this.setOptions(options);var selected=this.options.initialSection,current;if(this.options.rememberance){current=document.location.hash.substring(1);};this.rememberanceTexts=[];this.ans=[];var _this=this;for(var i=0;i<this.options.sections.length;i++){var el=this.options.sections[i];var an=new Animator(this.options.animatorOptions);var from=this.options.from+(this.options.shift*i);var to=this.options.to+(this.options.shift*i);an.addSubject(new NumericalStyleSubject(el,this.options.property,from,to,this.options.units));an.jumpTo(0);var activator=this.options.getActivator(el);activator.index=i;activator.onclick=function(){_this.show(this.index)};this.ans[this.ans.length]=an;this.rememberanceTexts[i]=activator.innerHTML.replace(/\s/g,"");if(this.rememberanceTexts[i]===current){selected=i;}};this.show(selected);};Accordion.prototype={setOptions:function(options){this.options=Object.extend({sections:null,getActivator:function(el){return document.getElementById(el.getAttribute("activator"))},shift:0,initialSection:0,rememberance:true,animatorOptions:{}},options||{});},show:function(section){for(var i=0;i<this.ans.length;i++){this.ans[i].seekTo(i>section?1:0);};if(this.options.rememberance){document.location.hash=this.rememberanceTexts[section];}}};
//EOS

/* 
	THIS LICENSE APPLIES TO ALL LINES PAST THIS LINE TO THE END OF THIS DOCUMENT

	Second Sketch Javascript Library 1.3

	Copyright (c) 2010, Addae Headley. All rights reserved.

	THIS LIBRARY IS PROPRIETARY SOFTWARE. ITS USE, DISTRIBUTION, REPRODUCTION, 
	OR MODIFICATION IS STRICTLY PROHIBITED UNLESS WRITTEN PERMISSION IS GRANTED 
	BY THE AUTHOR.

	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
	AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
	IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
	ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
	ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
	DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
	SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
	CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
	LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
	OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
	DAMAGE.
*/
var $gl=[];var $ie=function () {if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) return new Number(RegExp.$1);else return 0;}();var $sn=function(p){var r=[],l=p.childNodes,i; for(i in l){if(l[i].nodeType===1) {r.push(l[i])}} return r};var $an=function(p){var r=[],l=$sn(p),i; for(i in l){r.push(l[i]); r=r.concat($an(l[i]))} return r;};var $en=function(){ return $an(document.body); };var $ft=function(l,i){var r=[],t=i.toUpperCase(),c;for (c in l){ if(t===l[c].nodeName) r.push(l[c])}return r;};var $fc=function(l,i){var r=[],c,n;for(c in l) {n=" "+l[c].className+" ";if(n.match(" "+i+" ")) r.push(l[c]);};return r;};var $fi=function(i){return document.getElementById(i)};var $fp=function(o,p){if (!p && (typeof o === 'string')) {p=o; o=document.body;}else if (!p && (typeof o !== 'string')) return o;var b=document.body,n=o?o:b,l=p.split("/"),s,cn,m;for (t in l) {if (!n) continue;s=l[t].substr(1);if (l[t] === '..'){n=n===b?b:n.parentNode;}else if (l[t].charAt(0) === "*") {cn = " "+n.className+" ";while ((n !== b) && (!cn.match(" "+s+" "))) {n=n===b?b:n.parentNode;cn = " "+n.className+" ";};}else if ((l[t].charAt(0) === ".") &&(l[t].length===1));else if (l[t].charAt(0) === "^") n=b;else if (l[t].charAt(0) === "#") n=$fi(s);else if (l[t].charAt(0) === ".") n=$fc($an(n),s)[0];else if (l[t].charAt(0) === "$") n=$ft($sn(n),s)[0];else if (l[t].charAt(0) === "~") n=$fc($sn(n),s)[0];else if (l[t].charAt(0) === "%") n=$sn(n)[parseInt(s)];};return n;};var $ap=function(o,p){return ("#" + $id(o) + "/" + p);};var $id=function(n,i) {var u = null;if (!n) return;if (!n.id || n.id===null || n.id==="") { n.id = 'node' + unique(); };return n.id;};var $go=function() {var store = {};return function(n,p) {if (typeof n==='string' && !p) {var a=n.split(':');n=$fp(a.shift());p=a;};n=typeof n==='string'?$fp(n):n;if (typeof p === 'string') p=p.split(":");if (!n) return;$id(n);if (!store[n.id]) {store[n.id] = {};};if (p) { return getObjSafe(store[n.id],p);}else { return store[n.id]; }};}();var $so = function(n,o,v) {if (!n) return;sto($go(n),o,v);};var $ao=function(n) {var t=l=0;do { t+=n.offsetTop||0;l+=n.offsetLeft||0;n=n.offsetParent; } while (n);return [l,t];};var gcd = function (a, b) {return ( b == 0 ) ? (a):( gcd(b, a % b) );};function lcm(ar) {var _gcm = function (a, b) {return ( b == 0 ) ? (a):( _gcm(b, a % b) );};var _lcm = function (a, b) {return ( a / _gcm(a,b) ) * b;};if (ar.length > 1) {ar.push( _lcm(ar.shift(), ar.shift()));return lcm(ar);} else {return ar[0];};};function Timer (o) {var pl=0, du=1000, sc=1, sk=0, so=0, di=1, cb=[], nt=0, dt=0, sr=0, lr=0, sp=1, t=this, n=0;if (o.duration) du=this.du=o.duration;if (o.segments) sc=o.segments-1;if (o.skip)     sk=1;if (o.position)pos(o.position, o.direction);n=this.n=Math.floor(du/(sc+1));var run = function () {if (!pl) return;if (so<0 && di<0) {so=0; stop();}else if (so>(sc+1) && di>0) {so=sc+1; stop();}else {var ss=so;for (var i in cb) {if (pl && ss==so) cb[i].f({timer:t, callbackID:cb[i].i, state:so/(sc+1), segment:Math.floor(so), segments:sc+1, direction:di});};if (ss==so) so+=di;};};var play = this.play = this.pl = function (ti) {if (pl) return t;pl=1;nt = setInterval(run, n);return t;};var stop = this.stop = this.st = function () {if (!pl) return t;pl=0;clearInterval(nt);return t;};var tick = this.tick = this.ti = function () {stop();run();return t;};var adv = this.advance = this.ad = function () {so+=di;return t;};var pos = this.pos = this.po = function (p) {var pi=pl;so = Math.floor(p*(sc+1));if (so<0 && di>0) so=0;else if (so>(sc+1) && di<1) so=(sc+1);return t;};var dir = this.direction = this.di = function (d) {var pi=pl;di=(d>0)?1:-1;return t;};var spe = this.speed = this.sp = function (s) {if (!s) return t;du=this.du=du*sp/s;sp=s;n=this.n=Math.floor(du/sc);if (pl) { stop(); play(); };return t;};var dur = this.duration = this.du = function (d) {du=this.du=d;n=this.n=parseInt(du/sc);if (pl) pos(so/(sc+1));return t;};var csf = function (a,b) {if (a.p > b.p) return 1;else if (a.p < b.p) return -1;return 0;};this.addCall = this.ac = function (i, p, f) {if (p>100) p=100;if (p<0) p=0;cb.push({i:i,p:p,f:f});cb.sort(csf);return t;};this.deleteCall = this.dc = function (c) {var cn=-1;for (var i=0; i<cb.length; i++) {if (cb[i].i==c) cn=i;};if (cn>=0) cb.splice(cn,1);return t;};this.getCall = this.gc = function (c) {for (var i=0; i<cb.length; i++) {if (cb[i].i==c) return cb[i];};return 0;};var details = this.details = this.de = function () {var st=so/(sc+1);return {timer:t, play:pl, duration:du, speed:sp, direction:di, state:(so)/du, segment:so, segments:sc+1};};};function TimerChain () {var pl=0, du=this.du=0, ch=[], cu=0, ct={}, t=this, rt=0, sp=1, lp=0, lj=0;var upc = function() {du=0;for (var i=0; i<ch.length; i+=1) {ch[i].o=du;du+=ch[i].t.de().duration;};this.du=du;};var tif = function(i,f) {return function(o) {lp=o.duration*o.state;if ((o.segment == o.segments) &&(f==0) && (o.direction>0)) {if ((cu+1) < ch.length) {ch[cu].t.st();cu+=1;ch[cu].t.po(0).pl();}else stop();}else if ((o.segment == 0) &&(f==1) && (o.direction<0)) {cu-=1;pl=0;if (cu > 0) play();else stop();};};};this.addTimer = this.at = function (p,i,m) {if (p==-1 || p>=ch.length) {ch.push({i:i,t:m,o:0});p=ch.length;}else if (p<=0) {ch.unshift({i:i,t:m,o:0});p=0;}else ch.splice(p,0,{i:i,t:m,o:0});if (!m.gc("__TIFF"))m.ac("__TIFF",100,tif(p,1));if (!m.gc("__TIFE"))m.ac("__TIFE",100,tif(p,0));upc();return t;};this.deleteTimer = this.dt = function (p) {if (p<0 || p>=ch.length) return t;ch.splice(p,1);upc();};this.speed = this.sp = function (s) {sp=s;for (var i=0; i<ch.length; i+=1)ch[i].t.sp(s);return t;};var pos = this.pos = this.po = function (p) {var pi=pl;var of=du*p;var co=0;for (var i=0; i<ch.length; i+=1) {var dr = ch[i].t.de().duration;if ((of>=co)&&(of<=(co+dr))) {if (pi) stop();cu=i;ch[cu].t.pos((of-co)/dr);lj=(of-co);if (pi) play();};co+=dr;};return t;};var dir = this.direction = this.di = function (d) {for (var i=0; i<ch.length; i+=1)ch[i].t.di(s);return t;};var play = this.play = this.pl = function() {if (pl) return t;pl=1;ch[cu].t.pl();return t;};var stop = this.stop = this.st = function() {if (!pl) return t;pl=0;ch[cu].t.st();return t;};this.jumpTo = this.jt = function (j) {lj+=j;stop();if (cu>=ch.length || cu<0) return t;else if ((j<0) && (lp+lj<0)) {ch[cu].t.pos(0).tick();cu-=1;if (cu>-1)lj=lp=ch[ch].t.pos(1).tick().du;}else if ((j>0) &&(lp+lj>ch[cu].t.du)) {ch[cu].t.pos(1).tick();cu+=1;if (cu<ch.length) {ch[cu].t.pos(0).tick();lj=lp=0;};}else if (j>0&&(lj>lp+ch[cu].t.n)) {ch[cu].t.pos(lj/ch[cu].t.du).tick();lj=lp=j;}else if (j<0&&(lj<lp-ch[cu].t.n)) {ch[cu].t.pos(lj/ch[cu].t.du).tick();lj=lp=j;};return t;};};function Keyframer () {var fl=[], li=[], ti=this.ti=new Timer(), po=0, du=0, lr=0, di=1;ti.ac('__adv',100,function(o) {var ct=(new Date).getTime();if (((po+ct-lr)<=du)||(po>=0)) {po+=(ct-lr)*di;for (var i=0; i<li.length; i++) {li[i].jt((ct-lr)*di);};lr=(new Date).getTime();};});ti.ac('__lop',100,function(o) {if (o.state == 1) o.timer.pos(0);});var upd = function() {du=0;for (var i=0; i<li.length; i++) {if ((li[i].o + li[i].c.du)>du) {du = (li[i].o + li[i].c.du);};};};var add = this.add = this.ad = function(o,i,c) {li.push({o:o,i:i,c:c});upd();return t;};var rem = this.remove = this.rm = function(c) {var cn=-1;for (var i=0; i<li.length; i++) {if (li[i].i==c) cn=i;};if (cn>0) li.splice(cn,1);upd();return t;};var pos = this.pos = this.po = function(p) {po=du*p;for (var i=0; i<li.length; i++) {var co = po - li[i].o;if (co>=0 && co<=li[i].c.du) {li[i].pos(co/li[i].c.du);}else if (co>li[i].c.du) li[i].pos(1);else li[i].pos(0);};return t;};};var spi = function (content,container,final) {var i,n;var spills    = $ft($sn(container),'div');var tests     = [];var h,sn,sp,se,tn,tp,te,full=0;var createTests = function() {var i;tests=[];for (i in spills) {n = spills[i].cloneNode(true);container.appendChild(n);n.style.overflow='hidden';tests.push(n);};};var destroyTests = function() {var i;for (i in tests) {container.removeChild(tests[i]);};};var copy = function (f,t) {var i,l=f.attributes;for (i=0; i<l.length; i+=1) {t.setAttribute(l[i].name,l[i].value);};};var write = function(n) {var i, w=n.nodeValue.split(' ');for (i=0; i < w.length; i +=1) {if (!w[i]) continue;te.textContent += w[i] + ' ';if ((!full) && (tn.scrollHeight > h) && (tp === (tests.length - 1))) {full=1;sn=final;se=replicate(n,sn);};if (full) {se.textContent += w[i] + ' ';}else if (tn.scrollHeight > h) {tp+=1; sp+=1;tn=tests[tp];sn=spills[sp];h = sn.offsetHeight;te=replicate(n,tn);se=replicate(n,sn);i -= 1;}else {se.textContent += w[i] + ' ';};};};var replicate = function(n,t) {var c=n,p=t,a=[],i,e;while (c !== content) {a.unshift(c);c=c.parentNode;};for (i in a) {if (a[i].nodeType === 1) e=document.createElement(a[i].nodeName);else if (a[i].nodeType === 3) e=document.createTextNode('');p.appendChild(e);p=e;if (a[i].nodeType === 1) copy(a[i],p);};return p;};var doSpill = function(n) {var i,j,s=n.childNodes,e;for (i in s) {if (!s[i].nodeName) {continue;}else if (s[i].nodeType === 1) {e=document.createElement(s[i].nodeName);se=se.appendChild(e);se=e;copy(s[i],se);e=document.createElement(s[i].nodeName);te=te.appendChild(e);te=e;copy(s[i],te);doSpill(s[i]);}else if (s[i].nodeType === 3) {e = document.createTextNode('');se.appendChild(e);se=e;e = document.createTextNode('');te.appendChild(e);te=e;write(s[i]);se = se.parentNode;te = te.parentNode;};};se = se.parentNode;te = te.parentNode;};this.spill = function() {createTests();full=0;h=spills[0].offsetHeight;sp=0;se=spills[0];sn=spills[0];tp=0;te=tests[0];tn=tests[0];doSpill (content);destroyTests();};};$gl['spi'] = function(c,o,f) { new spi($fp(c),$fp(o),$fp(f)).spill(); };function ani(n,h,p,b) {var al=[],l,c,i,j,ac,s,k,kd,ki,kt,hc,nd,la,o;if (!n) return;la = h.g('la').st();nd = $go(n);if (b||!getObjSafe(nd,['__ss','ani',la])){ks=h.gl('kf');for (i in ks) {k=ks[i]; o={};if (!k.g('du').em()) o.duration   = parseInt(k.g('du').st());if (!k.g('in').em()) o.interval   = parseInt(k.g('in').st());if (!k.g('tr').em()) o.transition = new hcc(n,k.g('tr')).c();var a=new Animator(o);for (j in k.s) {s=k.s[j];if (s.n==='cu') a.addSubject(new hcc(n,s).c());};al.push(a);};ac=al.length>1?new AnimatorChain(al):al[0];sto(nd,['__ss','ani',la],ac);}else ac=getObjSafe(nd,['__ss','ani',la]);if (!ac) return;if ((typeof p==='object')&&(typeof p.toString==='function')) p=p.toString();if (p==='p') ac.play();else if (p==='r') ac.reverse();else if (p==='b') ac.seekTo(0);else if (p==='e') ac.seekTo(1);else if (p==='s') ac.stop();else if (p==='t') ac.toggle();else if (typeof p === 'number') ac.seekTo(p);else if (p.match(/\-/)) ac.seekFromTo(p.split("-")[0],p.split("-")[1]);};$gl['ani'] = function (n,h,p,b) {return ani($fp(n),$go(h),p,b);};$gl['anisCSSS']=function(n,fr,to) {return new CSSStyleSubject($fp(n),fr,to);};function ElementHideOnZeroSubject(n,d) {this.n = n;this.d = d?d:'block';this.setState = function(state) {if (state==0) this.n.style.display='none';else {if (this.n.style.display!==this.d) this.n.style.display=this.d;};};};$gl['anisEHOZ']=function(n,d) {return new ElementHideOnZeroSubject($fp(n),d);};function ElementHideOnStateSubject(n,s,d) {d = d?d:'block';this.setState = function(state) {if (state===s) n.style.display='none';else n.style.display=d;};};$gl['anisEHOS']=function(n,s,d) {return new ElementRemoveOnStateSubject($fp(n),s);};function ElementRemoveOnStateSubject(n,s) {var n = n;var p = n.parentNode;this.setState = function(state) {if (!n) return;if (state===s) p.removeChild(n);};};$gl['anisEROS']=function(n,s) {return new ElementRemoveOnStateSubject($fp(n),s);};function ElementCallOnStateSubject(c,s) {if (!s) s=1;this.setState = function(state) {if ((state===s) &&(c instanceof hcc)) c.c();};};$gl['anisECOS']=function(c,s) {return new ElementCallOnStateSubject(c,s);};function ElementScrollHeightSubject(n) {this.n = n;this.s=this.n.scrollHeight;this.setState = function(state) {if (state<1) this.s=this.n.scrollHeight;this.n.style.height = (this.s*state+1)+'px';};};$gl['anisESHS']=function(n) {return new ElementScrollHeightSubject($fp(n));};function ElementScrollWidthSubject(n) {this.n = n;this.s=this.n.scrollWidth;this.setState = function(state) {if (state<0.3) this.s=this.n.scrollWidth;this.n.style.width = (this.s*state+1)+'px';};};$gl['anisESWS']=function(n) {return new ElementScrollWidthSubject($fp(n));};function ScrollWindowSubject(tx,ty) {this.tx = tx;this.ty = ty;this.setState = function(state) {var cx = $ie?document.body.scrollLeft:window.pageXOffset;var cy = $ie?document.body.scrollTop:window.pageYOffset;var tx = this.tx;var ty = this.ty;var ox = (cx/(1-state)) - ((state*tx)/(1-state));var oy = (cy/(1-state)) - ((state*ty)/(1-state));window.scrollTo(ox+((tx-ox)*state),oy+((ty-oy)*state));};};$gl['anisSWSU'] = function(tx,ty) {return new ScrollWindowSubject(tx,ty);};$gl['anisSTNO']=function(n) {var cx,cy,sx,sy,tx,ty;t = $fp(n);tx = t.offsetWidth;ty = t.offsetHeight;return new ScrollWindowSubject(tx,ty);};function ElementScrollParallaxSubject(tx,ty,sl,rl) {this.tx = tx;this.ty = ty;this.sl = sl;this.rl = rl;this.setState = function(state) {var i,ox,oy,tx,ty,n;for (i in sl) {n  = sl[i];tx  = this.tx * rl[i];ty  = this.ty * rl[i];ox = (n.scrollLeft/(1-state)) - ((state * tx)/(1-state));n.scrollLeft = ox + ((tx - ox) * state);oy = (n.scrollTop/(1-state)) - ((state * ty)/(1-state));n.scrollTop = oy + ((ty - oy) * state);};};};$gl['anisESPS'] = function (tx,ty,si,ri) {var sl=[],rl=[],i,n;if ((si instanceof Array) && (ri instanceof Array)) {for (i in si) {n=$fp(si[i]);if (n && (ri[i] instanceof number)) { sl.push(n); rl.push(ri[i]); };};}else if ((si instanceof String) && (ri instanceof number)) {n=$fp(si);if (n) { sl.push(n); rl.push(ri); };};return new ElementScrollParallaxSubject(tx,ty,sl,rl);};function AnchorZoomSubject(n,ax,ay,z) {var s=0,l,t,w,h;this.setState = function(state) {if (s===0) {w=n.offsetWidth;h=n.offsetHeight;l=n.offsetLeft;t=n.offsetTop;s=1;};var cw = w + (state * ((z*w)-w));var ch = h + (state * ((z*h)-h));n.style.width  = cw + "px";n.style.height = ch + "px";n.style.left   = (l - (cw * ax)) + "px";n.style.top    = (t - (ch * ay)) + "px";if (state===0) s=0;};};$gl['anisAZSU'] = function (n,ax,ay,z) {return new AnchorZoomSubject($fp(n),ax,ay,z);};function PlaceOnTopSubject(n,b,e,t) {this.setState = function(state) {if (state < t) n.style.zIndex=b;else n.style.zIndex=e;};};$gl['anisPOTS'] = function(n,b,e,t) {return new PlaceOnTopSubject($fp(n),b,e,t);};function NullAnimationSubject () {this.setState = function(state) {};};$gl['anisNASU']=function() { return new NullAnimationSubject(); };function FadeInOutAnimationSubject (n,i) {var fi=0;if (i<0) i=i*-1;else fi=1;this.setState = function(state) {if (state===0) return;if (fi===1)	{if ($ie) n.style.filter = "alpha(opacity="+Math.round(state*i*100)+")";else n.style.opacity = state*i;}else {if ($ie) n.style.filter = "alpha(opacity="+Math.round((1-state)*i*100)+")";else n.style.opacity = (1-state)*i;};};};$gl['anisFDIO']=function(n,i) { return new FadeInOutAnimationSubject($fp(n),i); };function MoveXYAnimationSubject (n,tx,ty,fx,fy) {var ttx=tx,tty=ty,tfx=fx,tfy=fy;this.setState = function(state) {if ((fx === undefined) && (state < 1)) { tfx=n.offsetLeft; tfy=n.offsetTop; };n.style.left=(tfx + (ttx-tfx)*state) + "px";n.style.top=(tfy + (tty-tfy)*state) + "px";};};$gl['anisMVXY']=function(n,tx,ty,fx,fy) {return new MoveXYAnimationSubject($fp(n),tx,ty,fx,fy);};function ScrollFromToAnimationSubject (n,tx,ty,fx,fy) {var ttx=tx,tty=ty,tfx=fx,tfy=fy;this.setState = function(state) {if ((fx === undefined) && (state < 1)) {tfx=n.scrollLeft; tfy=n.scrollTop; };n.scrollLeft = parseInt(tfx+((ttx-tfx)*state));n.scrollTop  = parseInt(tfy+((tty-tfy)*state));};};$gl['anisSCFT']=function(n,tx,ty,fx,fy) {return new ScrollFromToAnimationSubject($fp(n),tx,ty,fx,fy);};$gl['anitLINE']=function() { return Animator.tx.linear };$gl['anitEAIO']=function() { return Animator.tx.easeInOut };$gl['anitELAS']=Animator.makeElastic;$gl['anitEAIN']=Animator.makeEaseIn;$gl['anitEAOU']=Animator.makeEaseOut;$gl['anitBOUN']=Animator.makeBounce;function HDL(n,c,d){function pn (that,b,p) {var d="";while(1){var sc= b.charAt(p);if (p>=b.length) {if (d!=="") that.s.push(new HDL(HDL.UNNAMED,null,d));return p;}else if (sc==="<") {if ((b.charAt(p+1)==="[")&&(b.charAt(p+2)!=="_")) {p+=2;if (d!=="") that.s.push(new HDL(HDL.UNNAMED,null,d)); d="";var nn="",t=0;do {if ((b.charAt(p)==="_")&&(b.substr(p,3)==="_]>")) {nn+="]>"; p+=3;}else if (b.charAt(p)===":") { t=1; p+=1; }else if (b.substr(p,2)==="]>") { t=1; }else { nn+=b.charAt(p); p+=1;}} while((t===0)&&(p<b.length));var no = new HDL(nn);if (b.substr(p,2)==="]>") p+=2;else p=pn(no,b,p);that.s.push(no); that.u[nn]=no;}else if ((b.charAt(p+1)==="#")&&(b.charAt(p+2)!=="_")) {var e=0;do {if ((b.substr(p,2)==="<#")&&(b.charAt(p+2)!=="_")) {e++;p+=2}else if ((b.substr(p,2)==="#>")&&(b.charAt(p-1)!=="_")) {e--;p+=2}else {p++}} while ((e>0)&&(p<b.length));}else if (b.substr(p,3)==="<[_") { d+="<["; p+=3 }else if (b.substr(p,3)==="<#_") { d+="<#"; p+=3 }else if (b.substr(p,3)==="<%_") { d+="<%"; p+=3 }else { d+=b.charAt(p); p+=1}}else if ((sc==="]")&&(b.charAt(p+1)===">")) {if (d!=="") that.s.push(new HDL(HDL.UNNAMED,null,d));return p+2;}else if (sc==="_") {if (b.substr(p,3)==="_]>") { d+="]>"; p+=3; }else if (b.substr(p,3)==="_#>") { d+="#>"; p+=3 }else if (b.substr(p,3)==="_%>") { d+="%>"; p+=3 }else { d+=b.charAt(p); p+=1}}else { d+=sc; p+=1; };};};function es(d) {d=d.replace(/<\[/g,"<[_");d=d.replace(/\]>/g,"_]>");d=d.replace(/<#/g,"<#_");d=d.replace(/#>/g,"_#>");d=d.replace(/<\%/g,"<%_");d=d.replace(/\%>/g,"_%>");return d;};this.addempty=this.ae = function(n) { };this.get=this.g=function(p){var k=[],c,n;if (p) {k=p.split(":");c=k.shift();}if (k.length===0) return this.gn(c);else return this.gn(c).g(k.join(":"));return new HDL();};this.getByName=this.gn=function(n){return this.u[n]?this.u[n]:new HDL();};this.getList=this.gl=function(n){var l=[];for (i in this.s) { if (this.s[i].n===n) l.push(this.s[i]);};return l;};this.copy=this.cp=function() {var h=new HDL(),i,c;h.n = this.n;h.d = this.d;for (i in this.s) {h.s[i] = this.s[i].copy();}return h;};this.string=this.st=function(e) {var s="",i;if (this.d!==""){ if (e) return es(this.d); else return this.d;	}for (i in this.s) { var n=this.s[i]; if (n.d!=="") s+=n.d; }return e?es(s):s;};this.toString=this.ts=function(e){var b="";if (this.d!=="") return this.d;for (i in this.s) {var s=this.s[i];if ((s.n!==HDL.UNNAMED)&&(this.d!==""))b+= "<%"+s.n+":"+s.d.length+"b:"+s.d+"%>";else if ((s.n!==HDL.UNNAMED)&&(s.s.length===0)&&(s.d===""))b+="<["+s.n+"]>";else if (s.n!==HDL.UNNAMED) b+="<["+s.n+":"+s.ts()+"]>";else if (s.n===HDL.UNNAMED) b+=s.d;}return e?es(b):b;};this.empty=this.em=function(){if ((this.d!=="")||(this.s.length!==0)) return 0;return 1;};this.n=n;this.d=d?d:"";this.s=[];this.u={};if (c) pn(this,c,0);};HDL.UNNAMED = ":text";$gl['alr'] = alert;function cal () {var s=Array.prototype.slice, a=s.apply(arguments),n=a.shift(),c=a.shift(),o;n=$fp(n);o=$go(n,['call',c]);if (o instanceof hcc) return o.c([],a);};$gl['cal'] = cal;$gl['cpy'] = function (n,t,i) {n=$fp(n); t=$fp(t);if (!n||!t) return;var c,p=n.parentNode;c=n.cloneNode(true);c.id = i?i:"";t.appendChild(c);act($an(c)); ini($an(c)); return (c);};$gl['act'] = function (n) {if (!(n=$fp(n))) return;act($an(n)); };$gl['ini'] = function (n) {if (!(n=$fp(n))) return;ini($an(n)); };$gl['ins'] = function(t,h) {if (!(t=$fp(t))) return;t.innerHTML = h;};$gl['del'] = function(n) {n=$fp(n);if (!n) return;var p = n.parentNode;p.removeChild(n);return n;};$gl['mov'] = function(n,t) {n=$fp(n); t=$fp(t);if (!n || !t) return;var p = n.parentNode;p.removeChild(n);t.appendChild(n);return n;};$gl['sty'] = function(n,p,v) {var i;n=$fp(n);if (n instanceof Array) { for (i in n) n[i].style[p]=v; }else if (n) { n.style[p]=v; }};$gl['swc'] = function(n,f,t) {var a=$fp(n), c=a.className;c=c.replace(f,t);if (t) a.className = c; else a.className += " " + f;};function scr(n,x,y) {n=$fp(n);if (!n) return;n.scrollLeft = x;n.scrollTop = y;};$gl['scr'] = scr;function deb () {var s = Array.prototype.slice, a=s.apply(arguments);var d=$fi('debug');if (!d) return;d.innerHTML=a+"<br/>"+d.innerHTML;d.scrollTop=d.scrollHeight;};$gl['deb'] = deb;var unique = function() {var unique=0;return function () {unique += 1;return unique;};}();function nonempty () {var s=Array.prototype.slice, a=s.apply(arguments), i;for (i in a) {if ((a[i] === null) || (a[i] === undefined)) continue;v=a[i].toString?a[i].toString():a[i];if (v !== "") return a[i];};return undefined;};function writeCookie(n,v,h) {var e;if (h) {var date = new Date();date.setTime(date.getTime()+(h*60*60*1000));e = "; expires="+date.toGMTString();}else e = "";document.cookie = n+"="+v+e+"; path=/";};function readCookie(n) {var neq = n + "=";var ca = document.cookie.split(';');for(var i=0;i < ca.length;i++) {var c = ca[i];while (c.charAt(0)==' ') c = c.substring(1,c.length);if (c.indexOf(neq) == 0) return c.substring(neq.length,c.length);};return null;};function eraseCookie(name) {createCookie(name,"",-1);};function hcc (n,h,a) {if (!a) a=[];if (h instanceof HDL) {if (!h.g('fn').em()) {this.f=$gl[h.g('fn').st()];this.a=hdlToObj(n,h,'a'); }else if (!h.g('nf').em()) {this.f=new Function("n",""+ h.g('nf').ts() + "");this.a=[n].concat(hdlToObj(n,h,'a')); };}else if (typeof h==='function') {this.f=h;this.a=a;};};hcc.prototype.c=function(f,l) {var fa=[]; f=f?f:[]; l=l?l:[];if (typeof this.f!=='function') return;fa=fa.concat(f,this.a,l);return this.f.apply(null, fa);};function onImgLoad (n,cb,d) {if (!n) return null;var f=function () {if ((n.offsetWidth !== 0) || (n.width !== 0)) {cb(n);clearInterval(k);};};var k=setInterval(f,d);};function copyStyle (f,t) {for (var i in f.style) {if ((f.style[i] !== '')&&(f.style[i] !== 0)) {t.style[i] = f.style[i];};};};function copyNode(f) {var n = document.createElement(f.tagName),i;if (f.className) n.className = f.className;copyStyle(f,n);if (f.type) n.type = f.type;if (f.name) n.name = f.name;if (f.value) n.value = f.value;for (i in f.childNodes) {n.appendChild(copyNode(f.childNodes[i]));};return n;};var dec = function(s) {var i,l="";if (s.charAt(0)!=='x') return s;s=s.substr(1);for (i=0;i<(s.length/2);i++) {l+=String.fromCharCode(parseInt(s.substr(i*2,2),16) - 12);};return l;};function nodeCommand (n) {if (!n || (n.nodeName !== 'INPUT')) return null;return new HDL('command',n.value.replace(/\\n/g,"\n"));};var hdlToObj = function(n,h,v) {var i,l=h.s,fn,o,a,va;if ((h.n === 'o')|| (v ==='o')) {o = {};for (i in h.s) {fn = h.s[i].n.split(',');if (fn[1] ==="s")o[fn[0]] = h.s[i].ts();else if (fn[1] ==="i")o[fn[0]] = parseFloat(h.s[i].st());else if (fn[1] ==="n")o[fn[0]] = $ap(n,h.s[i].st());else if (fn[1] ==="h")o[fn[0]] = h.s[i];else if (fn[1] ==="f")o[fn[0]] = new hcc(n,h.s[i]);else if (fn[1] ==="c")o[fn[0]] = new hcc(n,h.s[i]).c();else if (fn[1] ==="o")o[fn[0]] = hdlToObj(n,h.s[i]);else if (fn[1] ==="a")o[fn[0]] = hdlToObj(n,h.s[i]);else if (fn[1] ==="v")o[fn[0]] = $ap(n,h.s[i].st());};return o;}else if ((h.n === 'a') || (v ==='a')) {a = [];for (i in h.s) {if (h.s[i].n ==="s")a.push(h.s[i].ts());else if (h.s[i].n ==="i")a.push(parseFloat(h.s[i].st()));else if (h.s[i].n ==="n")a.push($ap(n,h.s[i].st()));else if (h.s[i].n ==="h")a.push(h.s[i]);else if (h.s[i].n ==="f")a.push(new hcc(n,h.s[i]));else if (h.s[i].n ==="c")a.push(new hcc(n,h.s[i]).c());else if (h.s[i].n ==="o")a.push(hdlToObj(n,h.s[i]));else if (h.s[i].n ==="a")a.push(hdlToObj(n,h.s[i]));else if (h.s[i].n ==="v")a.push($ap(n,h.s[i].st()));};return a;}else if ((h.n === 's') || (v ==='s')) return h.ts();else if ((h.n === 'i') || (v ==='i')) return parseFloat(h.st());else if ((h.n === 'n') || (v ==='n')) return $ap(n,h.st());else if ((h.n === 'h') || (v ==='h')) return h;else if ((h.n === 'f') || (v ==='f')) return new hcc(n,h);else if ((h.n === 'c') || (v ==='c')) return new hcc(n,h).c();else if ((h.n === 'v') || (v ==='v')) return $ap(n,h.st());return undefined;};var sto = function (n,o,v) {var f=o.shift();if ((o.length !== 0) && (n[f] === undefined)) {if (o[0] === '+') { n[f] = new Array(); }else if (o[0].match(/[0-9]+/)) { n[f] = new Array(); }else { n[f] = {}; }};if ((f === '+') && (n instanceof Array)) {if (o.length === 0) { n.push(v); }else { sto(n,o,v); };}else if (f.match(/[0-9]+/) && (n instanceof Array)) {if (o.length === 0) { n[f]=v; }else { sto(n[f],o,v); };}else if (typeof n === 'object') {if (o.length === 0) { n[f] = v; }else { sto(n[f],o,v); };};};var getObjSafe = function (o,p) {var c=p.shift();if (o[c] === undefined) { return undefined; }else if (p.length===0)  { return o[c]; }else { return getObjSafe(o[c],p); }return undefined;};function act(e) {var l=$ft(e,'input'),i;for (i in l) {if (l[i].name === "___so") l[i].name="__so";else if (l[i].name === "___in") l[i].name="__in";else if (l[i].name === "___mi") l[i].name="__mi";};};var iePNG = function(e) {if (!$ie) return;if ($ie > 8) return;var l=$ft(e,'img'),i;for (i in l) {var n = l[i];if (!n.src.match(/\.png$/)) continue;var cb = function(i) {var c=document.createElement('div'),n=document.createElement('div'),w,h,id=i.id;if (i.width === 0) w=i.style.width; else w = i.width + "px";if (i.height === 0) h=i.style.height; else h = i.height + "px";copyStyle(i, n);n.style.width=w;n.style.height=h;n.style.fontSize="0";n.style.lineHeight="0";c.style.width=w;c.style.height=h;c.style.fontSize="0";c.style.lineHeight="0";c.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+i.src+"', sizingMethod='scale')";n.appendChild(c);if (i.className !== '') n.className = i.className; n.className += " ii hl";if (id !== '') { i.id = ''; n.id = id; };i.replaceNode(n);};onImgLoad(n,cb,500);};};if (typeof XMLHttpRequest == "undefined")	{XMLHttpRequest = function () {try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); }catch (e) {};try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); }catch (e) {};try { return new ActiveXObject("Msxml2.XMLHTTP"); }catch (e) {};throw new Error("This browser does not support XMLHttpRequest.");};};function ini(e) {e=e?e:$en();var l=$ft(e,'input'),i,j,k,d,n,t,o,s,h,na;iePNG(e);for (i in l) {if (l[i].name === "__so") {d = new HDL('command',dec(l[i].value));n = l[i].parentNode;t = $fp(n,d.g('ta').st());o = d.g('ob').st().split(':');s = new HDL();for (j in d.s) {if (d.s[j].n.match(/[sinhfcoav]/)) s=d.s[j];};sto($go(t),o,hdlToObj(n,s));};};for (i in l) {if (l[i].name === "__in") {new hcc(l[i].parentNode,new HDL('command',dec(l[i].value))).c();};};for (i in l) {if (l[i].name === "__mi") {na = '__mi' + l[i].value;if (l[i].value.charAt(0) === "x") {d = new HDL('__mi',dec(l[i].value));}else if (!$gl[na]) continue;else if ($gl[na] instanceof HDL) {d = $gl[na];}else {d = new HDL('__mi',dec($gl[na]));$gl[na] = d;};n = l[i].parentNode;for (j in d.s) {if (d.s[j].n === 'so') {t = $fp(n,d.s[j].g('ta').st());o = d.s[j].g('ob').st().split(':');s = new HDL();for (k in d.s[j].s) {if (d.s[j].s[k].n.match(/[sinhfcoav]/)) s=d.s[j].s[k];};sto($go(t),o,hdlToObj(n,s));};};for (j in d.s) {if (d.s[j].n === 'in') new hcc(n,d.s[j]).c();};};};};$gl['coBUT1'] = function(n) {var i,ov,ou,dn,up,cl;if (!(n=$fp(n))) return;var pu = $go(n,['but']);if (!pu) return;var run = function(a) {for (var i in pu[a]) {if (pu[a][i] instanceof hcc) pu[a][i].c();else if (pu[a][i] instanceof Function) pu[a][i](n);};};n.onmouseover = function() { run('ov'); };n.onmouseout = function() { run('ou'); };n.onmousedown = function() { run('dn'); };n.onmouseup = function() { run('up'); };n.onclick = function() { run('cl'); };run('st');};$gl['coRAD1'] = function(n,s) {var sl = ['__ss','coRAD1','state'];if (!(n=$fp(n))) return;$so(n,['__ss','coRAD1'],{});var pr = $go(n,['__ss','coRAD1']);var pu = $go(n,['rad']);var no = $go(n);if (!pu.state) return;pr.state = null;var run = function(o,a) {for (var i in o[a]) {if (o[a][i] instanceof hcc) o[a][i].c();};};$so(n,['call','change'], new hcc(null, function(ns) {var cs=pr.state, cl=pu.state[cs], nl=pu.state[ns], i;if (ns===cs) return ns;if (!nl) return cs;pr.state=ns;if (cs) run (cl, 'of');run (nl, 'on');return ns;}));run(pu,'st');};$gl['coUPD1'] = function(n) {var i;n=$fp(n);var update = new hcc(null, function() {var cl = $go(n,['upd',up]);var i;if (cl && (cl instanceof Array)) {for (i in cl) cl[i].c();};});	$so(n,['call','update'], update);};

