/*
Ignite 0.12, built on 2009-07-13 16:09:51 GMT with ajax 0.12, style 0.12, event 0.12, keyEvent 0.12, FX 0.12
copyright 2009 Graham Bradley
under the Creative Commons Attribution-Share Alike 3.0 license (http://creativecommons.org/licenses/by-sa/3.0/)
Report any bugs, comments at http://gbradley.co.uk/ignite
*/

(function(){if(!Array.prototype.indexOf){Array.prototype.indexOf=function(a,b){var c=this.length,b=b||0;for(;b<c;b++){if(b in this&&this[b]===a)return b}return-1};Array.prototype.lastIndexOf=function(a,b){var c=this.length,b=b||0;for(;b>-1;b--){if(b in this&&this[b]===a)return b}return-1};Array.prototype.forEach=function(a){var b=this.length,thisp=arguments[1];for(var i=0;i<b;i++){if(i in this)a.call(thisp,this[i],i,this)}};Array.prototype.every=function(a){var b=this.length,thisp=arguments[1];for(var i=0;i<b;i++){if(i in this&&!a.call(thisp,this[i],i,this))return false}return true};Array.prototype.some=function(a){var b=this.length,thisp=arguments[1];for(var i=0;i<b;i++){if(i in this&&a.call(thisp,this[i],i,this))return true}return false};Array.prototype.filter=function(a){var b=this.length,res=[],thisp=arguments[1];for(var i=0;i<b;i++){if(i in this){var c=this[i];if(a.call(thisp,c,i,this))res.push(c)}}return res};Array.prototype.map=function(a){var b=this.length,res=new Array(b),thisp=arguments[1];for(var i=0;i<b;i++){if(i in this)res[i]=a.call(thisp,this[i],i,this)}return res}}var J=function(o){return new J.DOM.NodeGroup(o==window||o==document?[o]:J.config.queryEngine.apply(J,arguments))};J.config={};J.version='0.12';var K=1;var L='ignUID';J.util={extend:function(a,b){var c=function(){};c.prototype=b.prototype;a.prototype=new c();a.prototype.constructor=a;a.SuperClass=b;return this},augment:function(){var a=[].slice.call(arguments),o=a.length?a.shift():{};a.forEach(function(p){for(var y in p)o[y]=p[y]});return this},merge:function(a){var a=[].slice.call(a),i=0,l=a.length,b=[];for(;i<l;i++){if(a[i].constructor==Array)b=b.concat(a[i]);else b.push(a[i])}return b},split:function(a,b,c){var l=a.length,j;if(b==l)return[0,a,0];var r=[[],[],[]];while(l--){if(c&&l>=b&&typeof a[l]=="object")r[2].unshift(a[l]);else if(r[1].length<b)r[1].unshift(a[l]);else r[0].unshift(a[l])}return r}};J.core={'Array':{unique:function(b){var a=[];b.forEach(function(x){if(a.indexOf(x)<0)a.push(x)});return a},hash:function(a,b){var i=a.length;while(i--)a[a[i][b]]=a[i]},intersect:function(){var a=[],args=[].slice.call(arguments),arr=args.shift();arr.forEach(function(x){if(args.every(function(y){return y.indexOf(x)>=0}))a.push(x)});return a},minus:function(){var a=[].slice.call(arguments),arr=a.shift();return arr.filter(function(x){return!(a.some(function(y){return y.indexOf(x)>=0}))})},all:function(a){return a.every(function(x){return!!x})},none:function(a){return a.every(function(x){return!x})},any:function(a){return a.some(function(x){return!!x})},clean:function(){var a=[].slice.call(arguments),arr=a.shift();return arr.filter(function(x){return a.length?a.indexOf(x)<0:!!x})}},'String':{trim:function(a){return a.replace(/^(\s*)|(\s*)$/g,'')},repeat:function(b,n){var a=[];for(var i=0;i<n;i++)a.push(b);return a.join('')},chunk:function(b,n){var t=b.length,a=[];for(var i=0;i<t;i+=n)a.push(b.substring(i,i+n));return a},stripHTML:function(a){var b=J.util.merge(arguments),a=b.shift();return a.replace(b.length?new RegExp("<(\/?"+b.join("|")+")[^>]*>","gi"):/<[^>]*>/g,'')},substitute:function(a,o,b){var s=a,b=b||{};if(!'flags'in b)b.flags='g';for(var t in o)s=s.replace(new RegExp("{"+t.replace('$','\\$')+"}",b.flags),o[t]);return s},toCamelCase:function(a){var s=a,m=s.match(/-[^-]/g);if(m){for(var i=0;i<m.length;i++)s=s.replace(m[i],m[i].replace('-','').toUpperCase())}return s},toProperCase:function(a){a=a.toLowerCase().split(" ");for(var i=0;i<a.length;i++)a[i]=a[i].substring(0,1).toUpperCase()+a[i].substring(1,a[i].length);return a.join(" ")},toRegExp:function(a,b){if(!b)b={};if(!b.flags)b.flags='g';var s=a.replace(new RegExp('\\\\','g'),'\\\\');'$^[]./+?*'.split('').forEach(function(c){s=s.replace(new RegExp('\\'+c,'gi'),'\\'+c)});return new RegExp(s,b.flags)},toHash:function(a,b){var p={};a.split("&").forEach(function(s){s=s.split("=");p[s[0]]=b&&b.decode?decodeURIComponent(s[1]):s[1]});return new J.core.Hash(p)},toNodeGroup:function(a){var p=document.createElement(a.toString().match(/<option/)?"select":"div");p.innerHTML=a.toString();return new J.DOM.NodeGroup([p]).children()},hexToRGB:function(a,b){var v=a.replace(/^#/,'').chunk(2).map(function(h){return parseInt(h,16)});return b?v:'rgb('+v.join(",")+')'},RGBToHex:function(a){return'#'+a.replace(/[rgb\(\)\s]/ig,'').split(',').map(function(r){var v=(r*1).toString(16);return v.length==1?"0"+v:v}).join('')}},'Function':{bind:function(a,b){return function(){a.apply(b,[].slice.call(arguments))}},subscribe:function(a,b,c){b.subscribers.push(a);b.context.push(c);return a},unsubscribe:function(a,b){var c=-1;b.subscribers=b.subscribers.filter(function(x,i){if(a==x)c=i;return a!=x});if(c>-1)b.context.splice(c,1);return a}},'Hash':(function(){var e=function(){J.util.augment.apply(null,[this].concat([].slice.call(arguments)))};J.util.augment(e.prototype,{keys:function(){var a=[];for(var x in this){if(this.hasOwnProperty(x))a.push(x)}return a},values:function(){var a=[];for(var x in this){if(this.hasOwnProperty(x))a.push(this[x])}return a},add:function(o){for(var x in o){if(o.hasOwnProperty(x))this[x]=o[x]}return this},forEach:function(a,c){for(var x in this){if(this.hasOwnProperty(x))a.call(c,this[x],x,this)}return this},map:function(a,c){var d=new this.constructor({});for(var x in this){if(this.hasOwnProperty(x))d[x]=a.call(c,this[x],x,this)}return d},filter:function(a,c){var d=new this.constructor({});for(var x in this){if(this.hasOwnProperty(x)&&a.call(c,this[x],x,this))d[x]=this[x]}return d},some:function(a,c){for(var x in this){if(this.hasOwnProperty(x)&&a.call(c,this[x],x,this))return true}return false},every:function(a,c){for(var x in this){if(this.hasOwnProperty(x)&&!a.call(c,this[x],x,this))return false}return true},intersect:function(){var d=new this.constructor({}),args=[].slice.call(arguments);this.forEach(function(v,p){if(args.every(function(o){return o.hasOwnProperty(p)&&o[p]===v}))d[p]=v});return d},minus:function(){var a=[].slice.call(arguments);return this.filter(function(v,p){return!(a.some(function(o){return o.hasOwnProperty(p)&&o[p]===v}))})},clean:function(){var a=[].slice.call(arguments);return this.filter(function(x){return a.length?a.indexOf(x)<0:!!x})},toQuerystring:function(a){var b=[];this.forEach(function(v,p){if(typeof v=='string'||typeof v=='number')b.push(p+"="+(a&&a.encode?encodeURIComponent(v):v))});return b.join("&")}});return e})(),'Observer':(function(){var b=function(){this.subscribers=J.util.merge(arguments);this.context=new Array(this.subscribers.length)};J.util.augment(b.prototype,{deliver:function(){var a=this,args=[].slice.call(arguments),context=args.length?args.shift():window;this.subscribers.forEach(function(x,i){x.apply(a.context[i]||context,args)});return this},clear:function(){this.subscribers=[];this.context=[];return this}});return b})(),'Queue':(function(){var e=function(){this.q=J.util.merge(arguments);this.observe={};var a=(!this.q.length||typeof this.q[this.q.length-1]=='function')?{}:this.q.pop();var b=this;['Next','Previous','Reset'].forEach(function(t){b.observe[t.toLowerCase()]=a['on'+t]?new J.core.Observer(a['on'+t]):null});this.count=0};var f=function(a,b,c){if(!a.q.length)return;a.count+=b;var d=a.q[b==1?0:a.q.length-1].apply(a,c);if(b==1)a.q.push(a.q.shift());else a.q.unshift(a.q.pop());return d};J.util.augment(e.prototype,{next:function(){var a=f(this,1,[].slice.call(arguments));if(this.observe.next)this.observe.next.deliver(this);return a},previous:function(){var a=f(this,-1,[].slice.call(arguments));if(this.observe.previous)this.observe.previous.deliver(this)},reset:function(){var r=Math.abs(this.count%this.q.length);while(r--)this.q.unshift(this.q.pop());this.count=0;if(this.observe.reset)this.observe.reset.deliver(this);return this}});return e})(),Timer:(function(){var c=function(){var q=J.util.merge(arguments);var a=(q.length&&typeof q[q.length-1]!='function')?q.pop():{},b=this;this.queue=q.length==1?(q[0].constructor==J.core.Queue?q[0]:new J.core.Queue(q[0])):new J.core.Queue(q);this.repeat=(a.repeat?(a.repeat==-1?Number.POSITIVE_INFINITY:a.repeat):1)*this.queue.q.length,this.period=a.period||60,this.counter=0;this.observe={};var b=this;['Start','Stop','Pause'].forEach(function(t){b.observe[t.toLowerCase()]=a['on'+t]?new J.core.Observer(a['on'+t]):null})};var d=function(a){a.timer=setTimeout(function(){a.queue.next();if((a.counter++)<a.repeat-1)d(a);else a.stop()},a.period*1000)};J.util.augment(c.prototype,{start:function(){if(this.observe.start)this.observe.start.deliver(this);d(this)},stop:function(){clearTimeout(this.timer);this.counter=0;this.queue.reset();if(this.observe.stop)this.observe.stop.deliver(this)},pause:function(){if(this.observe.pause)this.observe.pause.deliver(this);if(this.timer){clearTimeout(this.timer);this.timer=null}else d(this)}});return c})()};J.env={window:{params:J.core.String.toHash(window.location.search.replace(/^\?/,''))},document:{}};J.DOM={create:function(){var a=J.util.merge(arguments),el=document.createElement(a.shift());if(a[0])(new J.core.Hash(a[0])).forEach(function(v,p){el[p]=v});for(var i=1;i<a.length;i++){(typeof a[i]=='string'?J.core.String.toNodeGroup(a[i]):a[i]).forEach(function(c){el.appendChild(c)})}return new J.DOM.NodeGroup([el])},NodeGroup:(function(){var k=function(a,b){var i=0,j=0;l=a.length;for(;i<l;i++){if(a[i])this[j++]=a[i]}this.length=j;this.previousGroup=b;if(b)b.nextGroup=this;if(j==1&&(a[0]==window||a[0]==document))J.util.augment(this,J.env[a[0]==window?'window':'document'])};var q=function(a,n,d){var n=n||1,i=n,p=(d<0?'previous':'next')+'Group';while(a[p]&&n--)a=a[p];return a};var u=function(n){if(!n[L])n[L]=K++;return n[L]};k.genericGetter=function(a,b,p){return k.what(a,b,(a.length?b.item.apply(b,a):b).mapArray(function(n){return n[p]}))};k.genericSetter=function(a,b,p){var v=a[a.length-1];(a.length>1?b.item.apply(b,[].slice.call(a,0,a.length-1)):b).forEach(function(n){if(v&&typeof v=="function")n[p]=h(n[p]);else n[p]=v||""});return b};k.what=function(a,b,r){return(a.length==1&&!isNaN(a[0])?(a[0]<b.length?r[0]:undefined):r)};k.variableArgs=function(b){var i=[],j=0,s=new J.core.Hash(),t=/^[a-z]+$/i,only;[].slice.call(b).forEach(function(a){if(t.test(a)&&a!='even'&&a!='odd'){s[a]=1;only=j++?false:a}else i.push(a)});return[i,s,only]};['indexOf','lastIndexOf','every','some'].forEach(function(x){k.prototype[x]=function(){return Array.prototype[x].apply(this,arguments)}});['map','filter'].forEach(function(x){k.prototype[x]=function(){return new k(Array.prototype[x].apply(this,arguments),this)}});['unique','intersect','minus','clean'].forEach(function(x){k.prototype[x]=function(){return new k(J.core.Array[x].apply(this,arguments),this)}});var w=function(b,d,e,f,g,h){var a=[],lookup={};b.forEach(function(n){var p=(e?'next':'previous')+'Sibling',p2=(e?'first':'last')+'Child';var c=d?n[p2]:f?n.parentNode[p2]:n[p];while(c&&c.nodeType!=1)c=c[p];if(c&&!lookup[u(c)]){a.push(c);lookup[c[L]]=1;if(!g){while(c=c[p]){if(c.nodeType==1)a.push(c)}}}});return new k(h?ignite.DOM.query.match(h,a):a,b)};var y={};J.util.augment(k.prototype,{back:function(n){return q(this,n,-1)},forward:function(n){return q(this,n,1)},write:function(){var b=J.util.split(arguments,1,0);var c=(b[0].length?this.item(b[0]):this).forEach(function(n){var a=u(n);if(!y[a])y[a]={};for(var x in b[1][0])y[a][x]=b[1][0][x]});return this},read:function(){var b=J.util.split(arguments,1,0);return k.what(b[0],this,(b[0].length?this.item.apply(this,b[0]):this).mapArray(function(n){var a=u(n);return y[a]&&y[a][b[1][0]]?y[a][b[1][0]]:undefined}))},forEach:function(){[].forEach.apply(this,arguments);return this},mapArray:function(a){return arguments.length?[].map.apply(this,arguments):[].slice.call(this)},concat:function(){return new k([].concat.apply([].slice.call(this),[].slice.call(arguments).map(function(x){return[].slice.call(x)})))},item:function(){var h=new J.core.Hash(),l=this.length,self=this;[].slice.call(arguments).forEach(function(x){if(!isNaN(x))h[((x*1)<0?l:0)+(x*1)]=1;else if(x.indexOf(':')>-1){x=x.split(':'),x[0]=x[0]?x[0]*1:0,x[1]=x[1]?x[1]*1:l,x[2]=x[2]?x[2]*1:1;for(var i=0;i<l;i++){if(!h[i]&&(x[0]>=0?i:i-l)>=x[0]&&(x[1]>=0?i:i-l)<x[1]&&(x[2]==1||!((i-x[0])%x[2])))h[i]=1}}else{var m=x.replace('even','2n').replace('odd','2n+1').match(/(-|\d+)(n)?([+-]\d+)?/);if(m){var a=!m[1]?0:(m[1]=='-'?-1:m[1]*1),n=!!m[2],b=(m[3]?m[3]*1:0);if(!n)b=a,a=0;b=(b<=0?a-b:b)-1;for(var i=0;i<l;i++){if(!h[i]&&(!a?i==b:(a<0?i<=b:(i%a)==b)))h[i]=1}}}});return new k(h.keys().sort().map(function(i){return self[i]}),this)},match:function(a){return new k(J.config.queryEngineMatch(a,this),this)},parents:function(s){var a=[],lookup={};this.forEach(function(n){var p=n.parentNode;if(p&&p!=document&&!lookup[u(p)]){lookup[p[L]]=1;a.push(p)}});return new k(s?ignite.DOM.query.match(s,a):a,this)},children:function(s){return w(this,1,1,1,0,s)},firstChild:function(s){return w(this,1,1,1,1,s)},lastChild:function(s){return w(this,1,0,1,1,s)},first:function(s){return w(this,0,1,1,1,s)},last:function(s){return w(this,0,0,1,1,s)},siblings:function(s){return w(this,0,0,1,0,s)},next:function(s){return w(this,0,1,0,1,s)},previous:function(s){return w(this,0,0,0,1,s)},copy:function(a){var a=a||{},d=!(a&&a.deep===false);return this.map(function(n){var c=n.cloneNode(d);if(a.modifyId&&c.id)c.id=a.modifyId(c.id);return c})},remove:function(){return this.forEach(function(n){n.parentNode.removeChild(n)})},getHTML:function(){return k.genericGetter(arguments,this,'innerHTML')},setHTML:function(){return k.genericSetter(arguments,this,'innerHTML')},getValue:function(){return k.genericGetter(arguments,this,'value')},setValue:function(){return k.genericSetter(arguments,this,'value')},get:function(){var a=k.variableArgs(arguments);return k.what(a[0],this,(a[0].length?this.item.apply(this,a[0]):this).mapArray(function(n){return a[2]?n[a[2]]:a[1].map(function(v,p){return n[p]})}))},set:function(){var a=[].slice.call(arguments),o=a.pop();var b=(a.length?this.item(a):this);for(var x in o){if(o.hasOwnProperty(x)){b.forEach(function(n){n[x]=o[x]})}}return this},prepend:function(){var a=J.util.split(arguments,1,1),b=a[1][0],opt=a[2][0]||{};var b=(typeof b=="string"?J.core.String.toNodeGroup(b):b),copy=!(opt&&opt.copy===false);(a[0].length?this.item.apply(this,a[0]):this).forEach(function(n){(copy?b.copy():b).forEach(function(x){n.parentNode.insertBefore(x,n)})});return this},append:function(){var a=J.util.split(arguments,1,1),b=a[1][0],opt=a[2][0]||{};var b=(typeof b=="string"?J.core.String.toNodeGroup(b):b),copy=!(opt&&opt.copy===false);(a[0].length?this.item.apply(this,a[0]):this).forEach(function(n){var z=copy?b.copy():b,s=new J.DOM.NodeGroup([n.parentNode]).children(),l=s.length,i=s.indexOf(n);z.forEach(function(x){if((i+1)>=s.length)n.parentNode.appendChild(x);else n.parentNode.insertBefore(x,s[i+1])})});return this},insertChild:function(){var a=J.util.split(arguments,2,1),b=a[1][0],i=a[1][1],opt=a[2][0]||{};var b=(typeof b=="string"?J.core.String.toNodeGroup(b):b),copy=!(opt&&opt.copy===false);(a[0].length?this.item.apply(this,a[0]):this).forEach(function(n){var z=copy?b.copy():b,c=new J.DOM.NodeGroup([n]).children();if(i==0&&c.length)new J.DOM.NodeGroup([c[0]]).prepend(z);else if(i===null||i>=c.length||!c.length)z.forEach(function(x){n.appendChild(x)});else new J.DOM.NodeGroup([i<0?((c.length-1)+i>=0?c[(c.length-1)+i]:c[c.length-1]):c[i]]).append(z)});return this},wrap:function(){var a=J.util.split(arguments,1,0),t=a[1][0];t=t.match(/</)?J.core.String.toNodeGroup(t):J.DOM.create(t);(a[0].length?this.item.apply(this,a[0]):this).forEach(function(n){n.parentNode.replaceChild(t.copy().insertChild(new J.DOM.NodeGroup([n]).copy())[0],n)});return this},unwrap:function(){var a=J.util.split(arguments,1,0),t=a[1][0];(a[0].length?this.item.apply(this,a[0]):this).forEach(function(n){var p=n.parentNode;if(p&&(t=='*'||p.tagName.toLowerCase()==t)&&p.parentNode)p.parentNode.replaceChild(n,p)});return this}});return k})()};J.DOM.query=(function(){var w=0,coerce=true;var y=function(a,b,c,d,e){if(coerce&&!c&&!d)return Array.prototype.slice.call(a);var f=[],l=a.length;for(var i=0;i<l;i++){if(d==' > '&&a[i].parentNode!=e)continue;if(!c||D[b](c,a[i]))f.push(a[i])}return f};function findDescendant(s,a,b,c,d){var e=[],l=c.length,v=(s=='.'?a:''),lookup={};for(var i=0;i<l;i++){if(s=='#'){var n=document.getElementById(a);if(!n)return[];if(c[i]!=document){var p=n;while(p=p.parentNode){if(p==c[i]){e.push(n);break}if(d==' > ')break}}else e.push(n)}else e=e.concat(y(c[i].getElementsByTagName(b),s,v,d,c[i]))}return e}function findAncestor(s,a,b,c,d){var e=[],l=c.length,v=(s=='.'?a:''),lookup={},L='ignUID';for(var i=0;i<l;i++){var n=c[i],branch=[];while(n=n.parentNode){if(!n.parentNode||(n[L]&&lookup[n[L]]))break;if((s!='#'||n.id==a)&&(b=='*'||n.tagName.toLowerCase()==b)&&(!v||D[s](v,n))){n[L]=K++;lookup[n[L]]=1;branch.unshift(n)}if(d==' < ')break}e=e.concat(branch)}return e}var z={' ':findDescendant,' > ':findDescendant,' < ':findAncestor,' { ':findAncestor};function filter(a,b){var f,l=b.length,matched=[];var s=(/^\w+$/).test(a)?'tag':a.substring(0,1);if(s=='#'||s=='.')f=a.substring(1,a.length);else if(s=='[')f=a.match(/\[(\w+)([~\^\$\*\|]?=)?(\w+)?/);else if(s==':'){var c=false;if(a.indexOf('after')>-1)f=[a,'after',a.substring(7,a.length-1)];else if(a.indexOf('not')>-1)f=[a,'not',a.substring(5,a.length-1)];else if(a.indexOf('range')>-1){f=a.match(/^:(range)(-of-type)?()?\(([^\)]+)\)$/);f[4]=f[4].split(',')}else{f=a.match(/^:([^\(-]+)(?:-(last)?-?)?(child|of-type)?\(?((?:(-?\d+)(n?)([\+-]?\d*))|[^\)]+)?\)?/);c=(/(nth|first|last|only)(-last)?-(child|of-type)/).test(a)}s=c?'child':f[1]}else f=a;for(var i=0;i<l;i++){if(D[s](f,b[i]))matched.push(b[i])}return matched}var A=function(p,t,a,b,d){var i=0,c=p.firstChild;if(t){var e={};for(;c;c=c.nextSibling){if(c.nodeType==1){var f=c.tagName;if(!e[f])e[f]=0;c[a]=e[f]++}}p[d]=e}else{for(;c;c=c.nextSibling){if(c.nodeType==1)c[a]=i++}p[d]=i}if(w)p[b+(w-1)]=null};var B=/(?:[#\.:]?(?:[\w\-_]+|\*)(?:\([^\)]+\)+)?)|\[[^\]]+\]|\s[\+>~<{]\s|,?\s/;var C={},solved={};var D={'tag':function(f,a){return a.tagName.toLowerCase()==f},'#':function(f,a){return a.id==f},'.':function(f,a){return a.className.indexOf(f)>-1},'[':function(f,a){var v=f[1]=='class'?a.className:a.getAttribute(f[1]);if(!v)return false;return(!f[2]||(f[2]=='|='&&(v==f[3]||!(v.indexOf(f[3]+'-'))))||(f[2]=='='&&v==f[3])||(f[2]=='!='&&v!=f[3])||(f[2]=='~='&&((v+' ').indexOf(f[3]+' ')>-1))||(f[2]=='^='&&(!v.indexOf(f[3])))||(f[2]=='$='&&(!(v.length-f[3].length-v.lastIndexOf(f[3]))))||(f[2]=='*='&&(v.indexOf(f[3])>-1)))},range:function(f,a){var p=a.parentNode,t=f[2]=='-of-type'?'Type':'',prop='ignNode'+t+'Index',eName='ignChild'+t+'Total_',expando=eName+w;if(!p[expando])A(p,t,prop,eName,expando);var b=t?p[expando][a.tagName]:p[expando];var c=f[4],j=c.length,index=a[prop];while(j--){var r=c[j];if(isNaN(r)){r=r.split(':'),r[0]=r[0]?r[0]*1:0,r[1]=r[1]?r[1]*1:b,r[2]=r[2]?r[2]*1:1;if((r[0]>=0?index:index-b)>=r[0]&&(r[1]>=0?index:index-b)<r[1]&&(r[2]==1||!((index-r[0])%r[2])))return true}else{r=r*1;if((r>=0?index:index-b)==r)return true}}return false},child:function(f,c){var p=c.parentNode,t=f[3]=='of-type'?'Type':'',prop='ignNode'+t+'Index',eName='ignChild'+t+'Total_',expando=eName+w;if(!p[expando])A(p,t,prop,eName,expando);var d=t?p[expando][c.tagName]:p[expando];if(f[1].indexOf('nth')>-1){if(solved[f[4]])var v=solved[f[4]],a=v[0],b=v[1],l=v[2];else{var l=!!f[2],a=!f[5]?0:(f[5]=='-'?-1:f[5]*1),n=!!f[6],b=(f[7]?f[7]*1:0);if(!n)b=a,a=0;b=(b<=0?a-b:b)-(l?0:1);solved[f[4]]=[a,b,l]}var i=l?d-c[prop]:c[prop];return!a?i==b:(a<0?(l?i>=b:i<=b):((i%a)==b))}if(f[1]=='last')return c[prop]==d-1;if(f[1]=='first')return!c[prop];if(f[1]=='only')return d==1},target:function(f,a){return a.getAttribute('name')==window.location.hash.replace('#','')},root:function(f,a){return a.tagName.toLowerCase()=='html'},disabled:function(f,a){return a.disabled},enabled:function(f,a){return!a.disabled},checked:function(f,a){return a.checked},selected:function(f,a){return a.selected},empty:function(f,a){return!a.firstChild},contains:function(f,a){return(a.textContent?a.textContent:(a.innerText?a.innerText:'')).indexOf(f[4])>-1},not:function(f,a){return!filter(f[2],[a]).length},after:function(f,a){var b=f[2],s=a,p=s.parentNode;if(!p.uid)p.uid=K++;else if(C[p.uid]==b)return true;nextSibling:for(;s;s=s.previousSibling){if(s.nodeType==1){var q=b,match;while(match=q.match(B)){if(!filter(match[0],[s]).length)continue nextSibling;q=q.replace(match[0],'')}C[p.uid]=b;return true}}return false}};var E=function(a){var b={},i=a.length,L='ignUID';while(i--){if(!a[i][L])a[i][L]=K++;if(b[a[i][L]])a.splice(i,1);else b[a[i][L]]=1}return a};try{Array.prototype.slice.call(document.forms)}catch(e){coerce=false}var F=document.addEventListener?{}:null,reset=null;if(document.evaluate)var G=[[/(^|\s)([^\w><{~\+\*])/g,'$1*$2'],[/\s>\s/g,'/'],[/\s<\s/g,'/parent::'],[/\s{\s/g,'/ancestor::'],[/\s~\s/g,'/following-sibling::'],[/\s\+\s/g,'/following-sibling::*[1]/self::'],[/\s/g,'//'],[/%/g,' '],[/:first-child/g,"[count(./preceding-sibling::*) = 0]"],[/:last-child/g,"[count(./following-sibling::*) = 0]"],[/:only-child/g,"[count(../child::*) = 1]"],[/:first-of-type/g,"[count(./preceding-sibling::*) = 0 and name(../*[1])=name(./self::*)]"],[/:last-of-type/g,"[count(./following-sibling::*) = 0 and name(../*[last()])=name(./self::*)]"]];var H=/^([#\w][^,\s]+(,\s(?=[#\w]))?)+([#\w])?$/;var I=function(d,g){d=d.replace(/even/g,'2n').replace(/odd/g,'2n+1').replace(/:nth-(last-)?child\(n\)/g,'').replace(/:(text|password|file|radio|checkbox|button|reset|submit)/g,"[type=$1]");var h=arguments.callee,cOK=F&&h.enableCache;var j=[];if(!reset){reset=function(e){if(cOK)F={};C={},w++};if(document.addEventListener){document.addEventListener("DOMAttrModified",reset,false);document.addEventListener("DOMNodeInserted",reset,false);document.addEventListener("DOMNodeRemoved",reset,false);F={}}}if(!cOK)reset();if(!g||g==document){if(cOK&&F[d])return F[d];if(document.getElementsByClassName&&(/^\.\w+$/).test(d)){j=y(document.getElementsByClassName(d.substring(1,d.length)));if(cOK)F[d]=j;return j}var g=[document],rt=true}else if(g.nodeType)g=[g];if(document.querySelectorAll&&!(/<|{|:range|:contains|!=/).test(d)){if(rt){j=y(document.querySelectorAll(d));if(cOK)F[d]=j;return j}else{for(var i=0;i<g.length;i++)j=j.concat(y(g[i].querySelectorAll(d)));return i>1?E(j):j}}if(document.evaluate&&h.enableXPath&&rt&&(/^([^:]|:(?=(first|last|nth(?:-last)?)-child))+$/).test(d)){var k=d.split(', ');for(var i=0;i<k.length;i++){if(cOK&&F[d]){j=j.concat(F[d]);continue}var o=k[i],m;while(m=o.match(/\[[^\]@]+\]/g)){var p=m[0].match(/\[(\w+)([~\^\$\*\|]?=)?(\w+)?/);var a='@'+p[1];if(p[2]=='=')a+="='"+p[3]+"'";else if(p[2]=='!=')a+="!='"+p[3]+"'";else if(p[2]=='^=')a="starts-with("+a+",'"+p[3]+"')";else if(p[2]=='*=')a="contains("+a+",'"+p[3]+"')";else if(p[2]=='$=')a="substring("+a+",string-length("+a+")-"+(p[3].length-1)+")='"+p[3]+"'";else if(p[2]=='|=')a+="='"+p[3]+"'%or%starts-with("+a+",'"+p[3]+"-')";else if(p[2]=='~=')a+="='"+p[3]+"'%or%contains("+a+",'%"+p[3]+"')%or%contains("+a+",'"+p[3]+"%')";o=o.replace(m[0],"["+a+"]")}while(m=o.match(/\.[\w\-]+/g))o=o.replace(m[0],"[contains(@class,'"+m[0].replace('.','')+"')]");while(m=o.match(/\#[\w\_-]+/))o=o.replace(m[0],"[@id='"+m[0].replace('#','')+"']");G.forEach(function(x){o=o.replace(x[0],x[1])});while(m=o.match(/:nth-(last-)?child\((-?\d*)(n?)[\+-]?(\d*)\)/)){var l=!!m[1],a=!m[2]?0:(m[2]=='-'?-1:m[2]*1),n=!!m[3],b=(m[4]?m[4]*1:0);if(!n)b=a,a=0;b=(b<=0?a-b:b)-1;o=o.replace(m[0],"[count(./"+(l?"following":"preceding")+"-sibling::*)"+(!a?"":(a<0?"<":" mod "+a))+"="+b+"]")}var s=document.evaluate("//"+o,document,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);var q=s.iterateNext();while(q){j.push(q);q=s.iterateNext()}}if(i>1&&(H).test(r))j=E(j);if(cOK)F[d]=j;return j}var r=d,currentQuery='',candidates=[],relation=false;while(match=d.match(/((?:[^~]|~(?==))+)\s(~)\s([^~\s]+)/))d=d.replace(match[0],match[3]+':after('+match[1]+')');while(match=d.match(B)){var k=match[0];currentQuery+=k;d=d.replace(k,'');var f=true;if(!candidates.length){if(rt&&F&&F[currentQuery])candidates=F[currentQuery],f=false;else{var s=k.substring(0,1),o=k.substring(1,k.length);var t=(/\W/).test(k)?'*':k;if(s=='#'||s=='.'||t==k)f=false;candidates=(relation?z[relation]:findDescendant)(s,o,t,g,relation)}}if(z[k]){relation=k;g=candidates;candidates=[];continue}else if(k==' + '){relation=false;var u=d.match(B)[0];d=d.replace(u,'');var v=[],l=candidates.length;for(var i=0;i<l;i++){var c=candidates[i].nextSibling;for(var c;c;c=c.nextSibling){if(c.nodeType==1){if(!u||filter(u,[c]).length)v.push(c);break}}}candidates=v;if(candidates.length)continue}else if(k==', '){j=j.concat(candidates);candidates=[];relation=false;continue}if(f)candidates=filter(k,candidates);if(candidates.length){if(cOK)F[currentQuery]=candidates}else d=d.replace(/([^,]+,\s)|.+/,'');relation=false}j=j.length?j.concat(candidates):candidates;j=r.indexOf(' ')<0||H.test(r)?j:E(j);if(cOK)F[r]=j;return j};I.match=function(a,b){var m;while(m=a.match(B)){b=filter(m[0],b);a=a.replace(m[0],'')}return b};I.addCustomFilter=function(a,b){if(D[a])return false;D[a]=b;return true};I.enableCache=1;I.enableXPath=1;return I})();J.config.queryEngine=J.DOM.query;J.config.queryEngineMatch=J.DOM.query.match;J.DOM.NodeGroup.prototype.find=function(a){return J(a,this)};J.module={'ignite':{version:J.version},URLs:new J.core.Hash({'moduleLibrary':'http://localhost/ignite/module.php?name=moduleLibrary'}),init:function(a){if(!a.version||!a.install||!a.name)return'Module has a missing property';else if(this[a.name])return'Module is already installed or a naming conflict exists';if(a.requires){for(var x in a.requires){if(!this[x]||this[x].version<a.requires[x])return'Required module "'+x+'" not installed or incompatible version'}}this[a.name]=a;a.install(ignite);return true},load:function(a){var b=this.init(a),success=this.cache.onComplete,fail=this.cache.onError;this.cache=null;if(b===true){if(success)success()}else if(fail)fail(b)},cache:{},fetch:function(a,b){if(this[a]&&b.onComplete)b.onComplete();var c=(this.URLs&&this.URLs[a])?this.URLs[a]:a,b=b||{},id=J.namespace+'moduleFetch';if(!(/\./i).test(c)){if(!this.moduleLibrary&&this.URLs.moduleLibrary){var d={onComplete:b.onComplete,onError:b.onError};b.onComplete=function(){J.module.fetch(c,d)};b.onError=function(){d.onError("Autoloading Module library failed")};if(this.URLs.moduleLibrary)ignite.module.fetch(this.URLs.moduleLibrary,b);else b.onError()}else if(b.onError)b.onError("Module URL not found");return}this.cache=b;J('#'+id).remove();J('head').insertChild(J.DOM.create('script',{id:id,type:'text/javascript',src:c}),0)}};var M=[],_ready=false;var N=function(f){M.push(f);if(M.length>1)return;var w=window,d=w.document,D='DOMContentLoaded',u=w.navigator.userAgent.toLowerCase(),v=parseFloat(u.match(/.+(?:rv|it|ml|ra|ie)[\/: ]([\d.]+)/)[1]);var a=function(e){if(!_ready){_ready=true;M.forEach(function(f){f.call(J,e)})}};if(/webkit\//.test(u)&&v<525.13)(function(){if(/complete|loaded/.test(d.readyState))a('khtml-poll');else setTimeout(arguments.callee,10)})();else if(!d.addEventListener&&d.attachEvent){d.attachEvent('onreadystatechange',function(e){if(d.readyState=='complete'){d.detachEvent('on'+e.type,arguments.callee);a(e)}});if(w==top)(function(){try{d.documentElement.doScroll('left')}catch(e){setTimeout(arguments.callee,10);return}a('msie-poll')})()}else if(d.addEventListener&&(/opera\//.test(u)&&v>9)||(/gecko\//.test(u)&&v>=1.8)||(/khtml\//.test(u)&&v>=4.0)||(/webkit\//.test(u)&&v>=525.13))d.addEventListener(D,function(e){d.removeEventListener(D,arguments.callee,false);a(e)},false);else{var b=w.onload;w.onload=function(e){if(typeof b=='function')b(e||w.event);a(e||w.event)}}};J.ready=function(a){if(_ready)a.call(J,{});else N(a)};var O='ignite';var P=J('script').filter(function(s){return(new RegExp(O+'[-\\d\\.]*\\.js','i')).test(s.src)});var Q=(P&&P.length?J.core.String.toHash(P[0].src.match(/\.js\??(.*)$/i)[1]):new J.core.Hash());var R=function(x,c){return function(){return J.core[c][x].apply(J.core[c],[this].concat([].slice.call(arguments)))}};['Array','String','Function'].forEach(function(c){var o=J.core[c];if(!Q[c]||Q[c]!='false'){for(var x in o)window[c].prototype[x]=R(x,c);o.toNative=true}else o.toNative=false});var S=window;(Q.ns?Q.ns.split("."):[O]).forEach(function(p,i,a){if(!S[p])S[p]={};if(i==a.length-1)S[p]=J;else S=S[p]});J.namespace=Q.ns||O;if(J.namespace.indexOf('.')!=-1)window[J.namespace]=J})();ignite.ajax=(function(){var j=function(a){var b=this;return new ignite.core.Timer(function(){b.send()},a)};ignite.DOM.NodeGroup.prototype.getFormData=function(c){c=c||{};return this.match('form').mapArray(function(f){var b=new ignite.core.Hash(),f=new ignite.DOM.NodeGroup([f]),v='';f.find('textarea[name]:enabled').forEach(function(t){b[t.name]=t.value});f.find('select[name]:enabled').forEach(function(s){if(s.options.length){if(!s.multiple)b[s.name]=s.options[s.selectedIndex||0].value;else{var a=[];for(var i=0;i<s.options.length;i++){if(s.options[i].selected)a.push(s.options[i].value)}b[s.name]=a.join(',')}}});f.find('input[name]:enabled').forEach(function(i){if(i.type=='text'||i.type=='file'||i.type=='password')b[i.name]=i.value;else if(i.type=='checkbox'&&i.checked)b[i.name]='on';else if(i.type=='radio'&&i.checked)b[i.name]=i.value});return c.querystring?b.toQuerystring(c):b})};return{HTTP:(function(e,o){var f=window.XMLHttpRequest?function(){return new XMLHttpRequest()}:window.ActiveXObject?function(){return new ActiveXObject("Microsoft.XMLHTTP")}:function(){return null};var g=function(a,o){this.xhr=new f();this.method=o.method||'get';this.async=o.async||true;this.data=o.data||'';this.timeout=o.timeout||null;this.json=o.json||false;this.contentType=o.contentType||false;this.url=a;this.requests=0;this.observe={};var b=this;['Start','Complete','Timeout','Error'].forEach(function(x){b.observe[x.toLowerCase()]=o['on'+x]?new ignite.core.Observer(o['on'+x]):null})};g.parseJSON=window.JSON&&JSON.parse?JSON.parse:function(s){if(!s)return false;var b=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;b.lastIndex=0;if(b.test(s))s=s.replace(b,function(a){return'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4)});return((/^[\],:{}\s]*$/).test(s.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,'')))?eval('('+s+')'):false};var h=function(r){var o=r.observe;if(r.timeout&&((r.timeout*1000)+(new Date()).getTime())>r.startTime){clearInterval(r.statechange);r.statechange=null;r.xhr.abort();if(o.timeout)o.timeout.deliver(r);if(--r.requests)r.send(1)}else if(r.xhr.readyState==4){clearInterval(r.statechange);r.statechange=null;if(r.xhr.status==200){if(!r.contentType||r.xhr.getResponseHeader('Content-type')==r.contentType){if(o.complete){if(!r.json)o.complete.deliver(r,r.xhr.responseText,r.xhr.responseXml);else o.complete.deliver(r,g.parseJSON(r.xhr.responseText))}}else if(o.error)o.error.deliver(r,'Unexpected content-type returned')}else if(o.error)o.error.deliver(r,'Server returned a '+r.xhr.status+' status code');if(--r.requests)r.send(1)}};g.prototype.send=function(a){if(!a)this.requests++;var b=this;if(!this.statechange){if(this.data.toQuerystring)var c=this.data.toQuerystring({encode:true});else if(this.data.getFormData){var c=this.data.getFormData({querystring:true,encode:true});c=c.length?c[0]:''}else{var c=this.data}this.startTime=(new Date()).getTime();if(this.method=='get')c+=(c?'&':'')+ignite.namespace+'nocache='+this.startTime;var d=(this.method=='get')?this.url+(this.data?(this.url.match(/\?/)?'&':'?')+c:''):this.url;this.xhr.open(this.method,d,this.async);if(this.method=='post')this.xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");else c='';this.statechange=setInterval(function(){h(b)},50);if(this.observe.start)this.observe.start.deliver(this);this.xhr.send(c)}return this};g.prototype.poll=j;return g})(),XHTTP:(function(){var d=function(a,b){b=b||{};this.url=a;this.id=b.id||ignite.namespace+'xhttp';this.data=b.data||'';this.callbackName=b.callbackName||'callback';this.observe={complete:b.onComplete?new ignite.core.Observer(b.onComplete):null}};d.cache=[];var e=function(a){return d.cache.push(a)-1};d.prototype.send=function(){var b=this.url,data=this.data;if(data){if(data.toQuerystring)data=data.toQuerystring({encode:true});else if(data.getFormData)data=data.getFormData({querystring:true,encode:true});b+=(b.match(/\?/)?'&':'?')+data}var c=this;b+=(b.match(/\?/)?'&':'?')+ignite.namespace+'nocache='+(new Date()).getTime()+(this.observe.complete?'&'+this.callbackName+'='+ignite.namespace+'.ajax.XHTTP.cache['+e(function(r){if(c.observe.complete)c.observe.complete.deliver(c,r);var f=arguments.callee;d.cache.forEach(function(a,i){if(f==a)d.cache[i]=null})})+']':'');ignite('#'+this.id).remove();ignite('head').insertChild(ignite.DOM.create('script',{id:this.id,type:'text/javascript',src:b}),0)};d.prototype.poll=j;return d})(),sameDomain:function(b){if(!(/^https?:/).test(b))return true;var a=document.createElement('a');a.href=b;return document.domain==a.hostname},get:function(a,b){(new ignite.ajax[(this.sameDomain(a)?'':'X')+'HTTP'](a,{onComplete:b})).send()},post:function(a,b,c){(new ignite.ajax.HTTP(a,{method:'post',data:b,onComplete:c})).send()}}})();ignite.module.ajax={name:"ajax",version:"0.12",requires:{'ignite':'0.12'}};ignite.style=(function(){var f=ignite.DOM.NodeGroup,w=window,d=document;var g={compute:window.getComputedStyle?function(n,p){var a=window.getComputedStyle(n,'');return a[p]||null}:function(n,p){return n.currentStyle?(n.currentStyle[p]||null):null},W3CBoxModel:!(d.compatMode=='BackCompat'&&!d.addEventListener&&d.attachEvent&&!window.XDomainRequest)};var j,r;var k=function(n,d){var a=0,v;v=g.compute(n,'padding'+(d=='height'?'Top':'Left'));if(v.indexOf('px')>-1)a+=v.replace('px','')*1;v=g.compute(n,'padding'+(d=='height'?'Bottom':'Right'));if(v.indexOf('px')>-1)a+=v.replace('px','')*1;v=g.compute(n,'border'+(d=='height'?'Top':'Left')+'Width');if(v.indexOf('px')>-1)a+=v.replace('px','')*1;else bt=0;v=g.compute(n,'border'+(d=='height'?'Bottom':'Right')+'Width');if(v.indexOf('px')>-1)a+=v.replace('px','')*1;return a};var l=function(n,d,a){var v=g.compute(n,d);if(v.indexOf('px')>-1){v=v.replace('px','')*1;if(!g.W3CBoxModel){if(!a)v-=k(n,d)}else if(a)v+=k(n,d)}else v=n['offset'+ignite.core.String.toProperCase(d)]-(a?0:k(n,d));return Math.round(v)};var q=function(n,d,v,a,b){n.style[d]=(v+(b?(g.compute(n,d).replace('px','')*1):(a?0-k(n,d):(g.W3CBoxModel?0:k(n,d)))))+'px'};var j=function(n){var a=function(n){return(typeof n.style.opacity)?(n.style.opacity||g.compute(n,'opacity')*1):1};var b=function(n){try{return(n.filters.alpha.opacity*1)/100}catch(e){return 1}};j=n.filters?b:a;return j(n)};var r=function(n,o){var a=function(n,o){n.style.opacity=o};var b=function(n,o){n.style.setAttribute("filter","alpha(opacity="+(o*100)+")")};r=n.filters?b:a;return r(n,o)};g._opacity=r;var m=ignite.util.merge;var s=function(a,b,c){var b=[].slice.call(b);return f.what(b,a,(b.length?a.item.apply(a,b):a).mapArray(c))};var t=function(a,b,c){var b=[].slice.call(b),v=b.pop();var o=(b.length?a.item.apply(a,b):a);for(var i=0;i<o.length;i++){c(o[i],v)}return a};ignite.util.augment(f.prototype,{getStyle:(function(){return function(){var a=f.variableArgs(arguments);return f.what(a[0],this,(a[0].length?this.item.apply(this,a[0]):this).mapArray(function(n){return a[2]?g.compute(n,a[2]):a[1].map(function(v,p){return g.compute(n,p)})}))}})(),setStyle:function(){var h=new ignite.core.Hash(),args=ignite.util.split(arguments,1,0),o=args[1][0];for(var p in o){if(o.hasOwnProperty(p))h[ignite.core.String.toCamelCase(p)]=o[p]}(args[0].length?this.item.apply(this,args[0]):this).forEach(function(n){h.forEach(function(v,p){n.style[p]=v})});return this},getClass:function(){return f.genericGetter(arguments,this,'className')},setClass:function(){return f.genericSetter(arguments,this,'className')},addClass:function(){var a=m(arguments);return this.forEach(function(n){n.className=ignite.core.Array.unique(n.className.split(' ').concat(a)).join(' ')})},removeClass:function(){var a=m(arguments);return this.forEach(function(n){n.className=ignite.core.Array.minus(n.className.split(' '),a).join(' ')})},hasClass:function(){var a=m(arguments);return this.mapArray(function(n){return ignite.core.Array.intersect(a,n.className.split(' ')).length==a.length})},hasAnyClass:function(){var a=m(arguments);return this.mapArray(function(n){return!!ignite.core.Array.intersect(a,n.className.split(' ')).length})},show:function(){return this.setStyle.call(arguments.length?arguments:this,{'display':'block'})},hide:function(){return this.setStyle.call(arguments.length?arguments:this,{'display':'none'})},getOpacity:function(){return s(this,arguments,j)},setOpacity:function(){return t(this,arguments,r)},getHeight:function(){return s(this,arguments,function(n){return l(n,'height')})},getWidth:function(){return s(this,arguments,function(n){return l(n,'width')})},setHeight:function(){return t(this,arguments,function(n,h){q(n,'height',h,false)})},offsetHeight:function(){return t(this,arguments,function(n,h){q(n,'height',h,true,true)})},setWidth:function(){return t(this,arguments,function(n,w){q(n,'width',w,false)})},offsetWidth:function(){return t(this,arguments,function(n,w){q(n,'width',w,false,true)})},getTotalHeight:function(){return s(this,arguments,function(n){return l(n,'height',true)})},getTotalWidth:function(){return s(this,arguments,function(n){return l(n,'width',true)})},setTotalHeight:function(){return t(this,arguments,function(n,h){q(n,'height',h,true)})},setTotalWidth:function(){return t(this,arguments,function(n,w){q(n,'width',w,true)})},getCoord:function(){var a=ignite.util.split(arguments,0,1);var b=a[2]&&a[2][0]?a[2][0]:{};return f.what(a[0],this,(a[0].length?this.item.apply(this,a[0]):this).mapArray(function(n){var c=new ignite.core.Hash({x:0,y:0});while(n&&n.offsetParent){c.y+=n.offsetTop;c.x+=n.offsetLeft;if(b.positioned){var p=g.compute(n,'position');if(p=='absolute'||p=='relative')break}n=n.offsetParent}return c}))},setCoord:function(){var b=ignite.util.split(arguments,2,1);var c=b[2]?b[2][0]:{};(b[0].length?this.item.apply(this,b[0]):this).forEach(function(n){var o={x:0,y:0};if(!c.offset&&!c.positioned){var a=n.parentNode,add=false;while(a&&a.offsetParent){if(add){o.y+=a.offsetTop;o.x+=a.offsetLeft}else{var p=g.compute(a,'position');if(p=='absolute'||p=='relative'){o.y+=a.offsetTop;o.x+=a.offsetLeft;add=true}}a=a.offsetParent}}p=g.compute(n,'position');if(p!='relative'&&p!='absolute')n.style.position=c.position||'absolute';var x,y;if(c.offset){x=b[1][0]+(g.compute(n,'left').replace('px','')*1);y=b[1][1]+(g.compute(n,'top').replace('px','')*1)}else x=(b[1][0]-o.x),y=(b[1][1]-o.y);n.style.top=y+'px';n.style.left=x+'px'});return this},offsetCoord:function(){var a=[].slice.call(arguments);if(!isNaN(a[a.length-1]))a.push({});a[a.length-1].offset=true;return this.setCoord.apply(this,a)}});var u=g.W3CBoxModel?document.documentElement:document.body;ignite.util.augment(ignite.env.document,{width:function(){return u.offsetWidth||u.clientWidth},height:function(){return Math.max(this.renderHeight(),this.viewHeight())},renderHeight:function(){return u.offsetHeight||u.clientHeight},viewHeight:function(){return u.scrollHeight}});var z=window.innerWidth?{width:function(){return window.innerWidth},height:function(){return window.innerHeight}}:(g.W3CBoxModel?{width:function(){return document.documentElement.clientWidth},height:function(){return document.documentElement.clientHeight}}:{width:function(){return document.body.clientWidth},height:function(){return document.body.clientHeight}});if(typeof(window.pageYOffset)=='number'){z.top=function(){return window.pageYOffset},z.left=function(){return window.pageXOffset}}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){z.top=function(){return document.body.scrollTop},z.left=function(){return document.body.scrollTop}}else{z.top=function(){return document.documentElement.scrollTop},z.left=function(){return document.documentElement.scrollTop}}ignite.util.augment(ignite.env.window,z);return g})();ignite.module.style={name:"style",version:"0.12",requires:{'ignite':'0.12'}};ignite.event=(function(){var g={listen:function(e){e=ignite.event.get(e);var a=this,evtCache=a.ignEvents;if(evtCache&&evtCache[e.type]){var b=evtCache[e.type];a=new ignite.DOM.NodeGroup([a]);for(var i=0;i<b.length;i++){if(b[i].customize&&!b[i].customize.call(a,e))continue;b[i].callback.call(a,e);if(e.cancelBubble)return false}return true}return false},delegate:function(e){e=ignite.event.get(e);var a=this,evtCache=a.ignEvents;if(evtCache&&evtCache[e.type]){var b=evtCache[e.type],matches={};var t=ignite.event.target(e),n=t[0];while(n&&n!=a){for(var i=0;i<b.length;i++){var f=b[i].filter;matches[f]=ignite.config.queryEngine(b[i].filter,a);if(matches[f].indexOf(n)>-1){var x=new ignite.DOM.NodeGroup([n]);if((!b[i].customize||b[i].customize.call(x,e))){b[i].callback.call(x,e,f);if(e.cancelBubble)return false}}}n=n.parentNode}}}};var h={get:function(e){return e||window.event||null},target:function(e){return new ignite.DOM.NodeGroup([e.target||e.srcElement])},cancel:function(e){if(e.stopProgagation)e.stopPropagation();else e.cancelBubble=true;if(e.preventDefault)e.preventDefault();else e.returnValue=false},coord:function(e){e=this.get(e);var c={x:0,y:0};if('pageX'in e)return{x:e.pageX,y:e.pageY};else if(e.clientX){c.x=e.clientX+document.body.scrollLeft-document.body.clientLeft;c.y=e.clientY+document.body.scrollTop-document.body.clientTop;if(document.body.parentElement&&document.body.parentElement.clientLeft){var a=document.body.parentElement;c.x+=a.scrollLeft-a.clientLeft;c.y+=a.scrollTop-a.clientTop}}return c},custom:{},define:function(a,b,c){this.custom[a]={evt:h.translate(b),fn:c};h.toNodeGroupPrototype(a)},translate:navigator.userAgent.match(/firefox/i)?function(e){return e=='mousewheel'?'DOMMouseScroll':e}:(!document.addEventListener&&document.attachEvent)?function(e){return e=='focus'?'focusin':(e=='blur'?'focusout':e)}:function(e){return e},add:function(a,b,c,d){if(a.forEach){a.forEach(function(n){h.add(n,b,c,d)});return}var d=d||{},filter,dispatcher,evtCache;if(typeof a=='string'){filter=a;a=d.context||document;dispatcher=g.delegate}else dispatcher=g.listen;if(!a.ignEvents)a.ignEvents={};evtCache=a.ignEvents;var e=b;b=h.translate(b);var f=null;if(this.custom[e]){f=this.custom[e].fn;b=this.custom[e].evt}if(!evtCache[b]){if(a.addEventListener)a.addEventListener(b,dispatcher,b=='focus'||b=='blur');else a['on'+b]=dispatcher;evtCache[b]=[]}evtCache[b].push({callback:c,filter:filter,customize:f})},remove:function(a,b,c,d){if(a.forEach){a.forEach(function(n){h.remove(n,b,c,d)});return}var d=d||{},filter,evtCache,dispatcher;if(typeof a=='string'){filter=a;a=d.context||document;dispatcher=g.delegate}else dispatcher=g.listen;evtCache=a.ignEvents;etv=h.translate(b);if(!evtCache)return;if(!b){for(var x in evtCache){if(a.removeEventListener)a.removeEventListener(x,dispatcher,b=='blur'||b=='focus');else delete a['on'+x]}delete a.ignEvents}else if(!c){if(a.removeEventListener)a.removeEventListener(x,dispatcher,b=='blur'||b=='focus');else delete a['on'+x];delete evtCache[b]}else{var l=evtCache[b].length;while(l--){if(c===evtCache[b][l].callback&&filter==evtCache[b][l].filter){evtCache[b].splice(l,1);break}}}},fire:function(a,b){if(a.map)return a.map(function(n){return h.remove(n,b)});var c,r,b=h.translate(b);if(a.fireEvent){c=document.createEventObject();c.type=b;c.target=a;c.eventPhase=0;c.currentTarget=a;c.cancelBubble=false;c.returnValue=undefined;r=a.fireEvent('on'+b,b)}else{if(/mouse|click/.test(b)){c=document.createEvent('MouseEvents');c.initMouseEvent(b,true,true,window,0,0,0,0,0,false,false,false,false,0,null)}else if(/key(down|press|out)/.test(b)){c=document.createEvent('KeyEvents');c.initKeyEvent(b,true,true,window,false,false,false,false,0,0)}else{c=document.createEvent('HTMLEvents');c.initEvent(b,true,true)}r=a.dispatchEvent(c)}if(b=='click'&&r&&a.tagName.toLowerCase()=='a'&&a.href)window.location=a.href;return r},toNodeGroupPrototype:function(b){ignite.DOM.NodeGroup.prototype[b]=function(){var a=ignite.util.split(arguments,1,1);h.add(a[0].length?this.item.apply(this,a[0]):this,b,a[1][0],a[2][0]);return this};ignite.DOM.NodeGroup.prototype['remove'+ignite.core.String.toProperCase(b)]=function(){var a=ignite.util.split(arguments,1,1);h.remove(a[0].length?this.item.apply(this,a[0]):this,b,a[1][0],a[2][0]);return this}}};var j=['click','dblclick','contextmenu','mouseover','mouseout','mousemove','mousedown','mouseup','keyup','keydown','keypress','scroll','load','unload','focus','blur','change','submit','reset','mousewheel','resize'].forEach(function(f){h.toNodeGroupPrototype(f)});var k=function(e){var t=e.target||e.srcElement,n=e.relatedTarget||e[(e.type=='mouseover'?'from':'to')+'Element'];if(this[0]!=t)return false;while(n){if(n==t)return false;try{n=n.parentNode}catch(e){return false}}return true};h.define('mouseenter','mouseover',k);h.define('mouseleave','mouseout',k);h.define('mousewheelup','mousewheel',function(e){return(e.wheelDelta?e.wheelDelta*-1:e.detail)<0});h.define('mousewheeldown','mousewheel',function(e){return(e.wheelDelta?e.wheelDelta*-1:e.detail)>0});return h})();ignite.module.event={name:"event",version:"0.12",requires:{'ignite':'0.12'}};ignite.keyEvent={bindings:new ignite.core.Hash({'enter':13,'escape':27,'leftArrow':37,'rightArrow':39,'upArrow':38,'downArrow':40,'f1':112,'f2':113,'f3':114,'f4':115,'f5':116,'f6':117,'f7':118,'f8':119,'f9':120,'f10':121,'f11':122,'f12':123}),ascii:function(e){return e.which||(!isNaN(e.charCode)?e.charCode:(!isNaN(e.keyCode)?e.keyCode:null))},define:function(b,c){var d=b.split('+'),modifiers=[],keys=[];d.forEach(function(l,i){if(!i)return;if(l=='shift'||l=='ctrl'||l=='alt'||l=='cmd')modifiers.push(l);else keys.push(l)});ignite.event.define(b,d[0],function(e){var a=ignite.keyEvent.ascii(e),keyfound=false;for(var i=0;i<keys.length;i++){if(ignite.keyEvent.bindings[keys[i]]&&ignite.keyEvent.bindings[keys[i]]==a){keyfound=true;break}}if(!keyfound)return false;for(var i=0;i<modifiers.length;i++){if(!e[modifiers[i]+'Key'])return false}return true})}};ignite.module.keyEvent={name:"keyEvent",version:"0.12",requires:{'ignite':'0.12','event':'0.12'}};ignite.FX=(function(){var h={Tween:function(a,b,c,d){var d=d||{},self=this;this.nodeGroup=a;this.properties=[];a.forEach(function(n,i){var o={};for(var p in b)o[p]=b[p];self.properties.push(o)});this.period=c;this.easing=d.easing?(typeof d.easing=='string'?h.easing[d.easing]:d.easing):h.easing.none;this.rate=1000/(d.fps||67);this.atStart=true;this._startTime=this._timer=this._step=this._calc=this.playing=this.paused=null;this._context=d.context;this.observe={};['Start','Complete','Progress'].forEach(function(t){self.observe[t.toLowerCase()]=d['on'+t]?new ignite.core.Observer(d['on'+t]):null})},easing:{none:function(a,b,c){return(a*(c/b))},easeOut:function(a,b,c){return a+((a/Math.pow(b,3))*(-Math.pow(b-c,3)))},easeIn:function(a,b,c){return((a/Math.pow(b,3))*Math.pow(c,3))},swingOut:function(a,b,c){return(a*(-(Math.cos((Math.PI)/b*c))/2+0.5))},swingIn:function(a,b,c){var y=h.easing.swingOut(a,b,c);return y-((y-(a*(c/b)))*2)},random:function(a){return Math.floor((a-((-a)-1))*Math.random())+(-a)}}};var k=function(c,d){var f,opac;if(!c._calc){var g=[],p;for(p in c.properties[0]){if(p=='opacity'){opac=true;continue}if(typeof c.properties[0][p]=='string'||typeof c.properties[0][p]=='number')g.push(p)}f=c.nodeGroup.getStyle.apply(c.nodeGroup,g);if(opac)opac=c.nodeGroup.getOpacity()}c._calc=[];c.nodeGroup.forEach(function(n,i){var a=[],v,ev,op,tmp,color;for(p in c.properties[i]){color=/color/i.test(p);if(typeof c.properties[i][p]=='string'||typeof c.properties[i][p]=='number'){if(p=='opacity')v=opac[i]+'';else{if(g.length==1)v=f[i];else v=f[i][p]+'';if(color)v=v=='transparent'?[255,255,255]:toRGB(v)}ev=color?toRGB(c.properties[i][p]):c.properties[i][p];if(!color){var m=v.match(/\D+$/),m=m?m[0]:'';if(m)v=v.replace(m,'')}}else{v=c.properties[i][p][1]+'';ev=c.properties[i][p][0];m=c.properties[i][p][2]}if(!color){v*=1;if(typeof ev=='string'&&!(/^\d+$/).test(ev)){op=ev.substring(0,1),ev=ev.substring(1,ev.length)*1;ev=op=='/'?v/ev:(op=='-'?v-ev:(op=='*'?v*ev:(v+ev)))}}if(d)tmp=v,v=ev,ev=tmp;c.properties[i][p]=[ev,v,m];a.push([ignite.core.String.toCamelCase(p)].concat(c.properties[i][p]))}c._calc.push(a)});c.playing=true;if(c.observe.start)c.observe.start.deliver(c._context||c);function toRGB(v){return(/rgb/.test(v)?v.replace(/[rgb\(\)\s]/ig,'').split(','):ignite.core.String.hexToRGB(v,true)).map(function(v){return v*1})}function colorEasing(a,b,e){return'#'+([0,0,0].map(function(v,i){var v=Math.floor(b[i]+c.easing(a[i]-b[i],c.period,e)).toString(16);return v.length==1?'0'+v:v}).join(''))}return function(){var a=(c.now()-c._startTime)/1000,p,v,tmp;if(c.observe.progress)c.observe.progress.deliver(c._context||c,Math.min(100,Math.round((a/c.period)*100)));if(a<c.period){if(a)c.nodeGroup.forEach(function(n,i){c._calc[i].forEach(function(x){if(/color/i.test(x[0]))v=colorEasing(x[1],x[2],a);else var v=x[2]+c.easing(x[1]-x[2],c.period,a)+x[3];if(x[0]=='opacity')ignite.style._opacity(n,v);else n.style[x[0]]=v})});c._timer=setTimeout(arguments.callee,c.rate)}else{clearTimeout(c._timer);c.nodeGroup.forEach(function(n,i){c._calc[i]=c._calc[i].map(function(x,j){if(/color/i.test(x[0]))var v=ignite.core.String.RGBToHex('rgb('+x[1].join(',')+')');else var v=(x[1]+x[3]);if(x[0]=='opacity')ignite.style._opacity(n,v);else n.style[x[0]]=v;if(d){for(p in c.properties[i]){v=c.properties[i][p];tmp=v[1],v[1]=v[0],v[0]=tmp;c.properties[i][p]=v}}return x})});c.playing=false;c.atStart=!!d;if(c.observe.complete)c.observe.complete.deliver(c._context||c)}}};ignite.util.augment(h.Tween.prototype,{now:function(){return(new Date()).getTime()},play:function(a){if(!this.playing){this._startTime=this.now();this._step=k(this,a);this.atStart=false;this._step()}return this},playReverse:function(){return this.play(true)},toggle:function(){return this.play(!this.atStart)},pause:function(){if(this.playing){if(this.paused){this._startTime+=(this.now()-this.paused);this.paused=null;this._step()}else{clearTimeout(this._timer);this.paused=this.now()}}return this}});var l=function(a,b){b=ignite.util.split(b,1,1);var c=b[0].length?this.item.apply(this,b[0]):this,opt=b[2][0]||{};opt.context=this;(new ignite.FX.Tween(c,{opacity:a},b[1][0],opt)).play();return this};ignite.util.augment(ignite.DOM.NodeGroup.prototype,{animate:function(){var a=ignite.util.split(arguments,2,1),opt=a[2][0]||{};opt.context=this;(new ignite.FX.Tween(a[0].length?this.item.apply(this,a[0]):this,a[1][0],a[1][1],opt)).play();return this},fadeOut:function(){return l.call(this,0,arguments)},fadeIn:function(){return l.call(this,1,arguments)},glow:function(){var a=ignite.util.split(arguments,1,1);var b=a[0].length?this.item.apply(this,a[0]):this;var c=a[1][0]/2,opt=a[2][0]||{};var d=new ignite.FX.Tween(b,{opacity:0},c,{easing:h.easing.easeOut}),twIn=new ignite.FX.Tween(b,{opacity:1},c,{easing:h.easing.easeIn,onComplete:opt.onComplete,context:this});d.observe.complete=new ignite.core.Observer(function(){twIn.play()});d.play();return this},shake:function(){var a=ignite.util.split(arguments,2,1);var b=a[0].length?this.item.apply(this,a[0]):this,opt=a[2][0]||{};var r=a[1][0],c=this.getCoord({positioned:true});return b.animate({top:'+'+r,left:'+'+r},a[1][1],{easing:h.easing.random,context:this,onComplete:function(){b.forEach(function(n,i){(new ignite.DOM.NodeGroup([n])).setCoord(c[i].x,c[i].y,{positioned:true})});if(opt.onComplete)opt.onComplete.call(this)}})},grow:function(){var a=ignite.util.split(arguments,2,1),opt=a[2][0]||{};opt.context=this,opt.point=(opt.point||'').toLowerCase();var b=a[0].length?this.item.apply(this,a[0]):this,p=a[1][0];if(opt.point){if(p.width){if(opt.point.indexOf('right')>-1)p.left='-'+(p.width*1);else if(opt.point.indexOf('center')>-1)p.left='-'+(p.width/2)}if(p.height){if(opt.point.indexOf('bottom')>-1)p.top='-'+(p.height*1);else if(opt.point.indexOf('middle')>-1)p.top='-'+(p.height/2)}}delete opt.point;(new ignite.FX.Tween(b,p,a[1][1],opt)).play();return this}});return h})();ignite.module.FX={name:"FX",version:"0.12",requires:{'ignite':'0.12','style':'0.12'}};