/*
Ignite 0.12, built on 2009-07-06 13:05:25 GMT with ajax 0.12, style 0.12, event 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 or to hello@gbradley.co.uk
*/

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