var AIDAJS={build:20091114,baseUrl:""},Agent={chromeFrame:function(){if(document.all){var b=navigator.userAgent.toLowerCase();if(b.indexOf("chromeframe")>=0||b.indexOf("x-clock")>=0)return true;if(typeof window.ActiveXObject!="undefined")try{if(new ActiveXObject("ChromeTab.ChromeFrame"))return true}catch(g){}}return false}};function isArray(b){return b instanceof Array}function isElement(b,g){return b&&(g?(b=b.nodeName)&&b.toLowerCase()==g.toLowerCase():b.nodeName&&b.ownerDocument)}
function isNumeric(b){return!isNaN(parseInt(b,10))}function is(b){return b!==false&&b!==undefined&&b!==null}function toArray(b){if(_MUST_EXTEND||Agent.trident){for(var g=[],k=b.length-1;k>=0;k--)g[k]=b[k]&&b[k].nodeType==1&&Agent.trident&&Agent.version<8?I(b[k]):b[k];return g}return Array.prototype.slice.call(b)}
function getType(b){var g=typeof b;if(g=="object"){if(b===null)return"null";if(b instanceof Array)return"array";if(b instanceof Date)return"date";if(b.nodeName)switch(b.nodeType){case 1:return"element";case 3:return"textnode"}if(b.callee)return"arguments";if(b instanceof Error)return"error"}return g}function I(b,g){if(!g||!g.documentElement)g=document;(b=is(b)?typeof b=="string"?g.getElementById(b):b:null)&&!b._extended&&AidaElements.prototypize(b);return b}
function H(b,g,k){function i(r,x){var w=x.length;if(w>0){var z=x.indexOf("<");if(z>-1)if(z>0){r.appendChild(k.createTextNode(x.substring(0,z).entitiesDecode()));return i(r,x.substring(z,w))}else{var u=x.indexOf(">");if(u>-1){z=x.substring(1,u).trim();x=x.substring(u+1,w);if(z.substring(0,1)=="/"){z=z.replace("/","").trim().toLowerCase();w=r.parentNode;if(z!=r.nodeName.toLowerCase()||!r)return false;return i(w,x)}var q=z.match(/^([^\s\/]+)(\s+.*|\/)?$/);if(!q)return false;u=z.match(/\/\s*$/);z=q[1];
w=k.createElement(z);w=I(w);if(q=(q[2]||"").trim())for(var y=/(?:^|\s+)([a-z0-9_-]+)(?:\=("[^"]*"|'[^']*'|[a-z0-9_-]+))?/gi,B;B=y.exec(q);){var D=B[1];B=B[2];if(D){B=B?B.replace(/^['"]|['"]$/g,"").entitiesDecode():D;w.set(D,B)}}r.appendChild(w);if(u||o.indexOf(z)>-1)w=r;return i(w,x)}else return false}else r.appendChild(k.createTextNode(x.entitiesDecode()))}return true}var o=["area","base","basefont","frame","col","param","br","hr","input","img","link","meta"];k=k||document;var m=k.createDocumentFragment();
if(i(m,b)){g&&I(g).appendChild(m);return m}return false}
function N(b,g,k){if(!is(b))return null;k=k||document;var i=null;switch(typeof b){case "object":if(b instanceof Array)for(var o=b.length,m;o--;){m=b.shift();if(i)switch(typeof m){case "object":if(!(m instanceof Array)&&!m.nodeType){I(i).set(m);break}case "string":case "number":N(m,i);break;default:return null}else i=I(k.createElement(m))}else if(b.nodeType)i=b;break;case "number":case "string":i=k.createTextNode(b+"");break}g&&i&&I(g).appendChild(i);return i};(function(){function b(a){for(var e="",j,n=0;a[n];n++){j=a[n];if(j.nodeType===3||j.nodeType===4)e+=j.nodeValue;else if(j.nodeType!==8)e+=b(j.childNodes)}return e}function g(a,e,j,n,v,A){v=0;for(var E=n.length;v<E;v++){var F=n[v];if(F){F=F[a];for(var K=false;F;){if(F.sizcache===j){K=n[F.sizset];break}if(F.nodeType===1&&!A){F.sizcache=j;F.sizset=v}if(F.nodeName.toLowerCase()===e){K=F;break}F=F[a]}n[v]=K}}}function k(a,e,j,n,v,A){v=0;for(var E=n.length;v<E;v++){var F=n[v];if(F){F=F[a];for(var K=false;F;){if(F.sizcache===
j){K=n[F.sizset];break}if(F.nodeType===1){if(!A){F.sizcache=j;F.sizset=v}if(typeof e!=="string"){if(F===e){K=true;break}}else if(w.filter(e,[F]).length>0){K=F;break}}F=F[a]}n[v]=K}}}var i=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,o=0,m=Object.prototype.toString,r=false,x=true;[0,0].sort(function(){x=false;return 0});var w=function(a,e,j,n){j=j||[];var v=e=e||document;if(e.nodeType!==1&&e.nodeType!==9)return[];
if(!a||typeof a!=="string")return j;var A=[],E,F,K,R,Q=true,O=J(e),M=a,P;do{i.exec("");if(E=i.exec(M)){M=E[3];A.push(E[1]);if(E[2]){R=E[3];break}}}while(E);if(A.length>1&&u.exec(a))if(A.length===2&&z.relative[A[0]])F=L(A[0]+A[1],e);else for(F=z.relative[A[0]]?[e]:w(A.shift(),e);A.length;){a=A.shift();if(z.relative[a])a+=A.shift();F=L(a,F)}else{if(!n&&A.length>1&&e.nodeType===9&&!O&&z.match.ID.test(A[0])&&!z.match.ID.test(A[A.length-1])){E=w.find(A.shift(),e,O);e=E.expr?w.filter(E.expr,E.set)[0]:E.set[0]}if(e){E=
n?{expr:A.pop(),set:B(n)}:w.find(A.pop(),A.length===1&&(A[0]==="~"||A[0]==="+")&&e.parentNode?e.parentNode:e,O);F=E.expr?w.filter(E.expr,E.set):E.set;if(A.length>0)K=B(F);else Q=false;for(;A.length;){E=P=A.pop();if(z.relative[P])E=A.pop();else P="";if(E==null)E=e;z.relative[P](K,E,O)}}else K=[]}K||(K=F);K||w.error(P||a);if(m.call(K)==="[object Array]")if(Q)if(e&&e.nodeType===1)for(a=0;K[a]!=null;a++){if(K[a]&&(K[a]===true||K[a].nodeType===1&&G(e,K[a])))j.push(F[a])}else for(a=0;K[a]!=null;a++)K[a]&&
K[a].nodeType===1&&j.push(F[a]);else j.push.apply(j,K);else B(K,j);if(R){w(R,v,j,n);w.uniqueSort(j)}return j};w.uniqueSort=function(a){if(C){r=x;a.sort(C);if(r)for(var e=1;e<a.length;e++)a[e]===a[e-1]&&a.splice(e--,1)}return a};w.matches=function(a,e){return w(a,null,null,e)};w.find=function(a,e,j){var n;if(!a)return[];for(var v=0,A=z.order.length;v<A;v++){var E=z.order[v],F;if(F=z.leftMatch[E].exec(a)){var K=F[1];F.splice(1,1);if(K.substr(K.length-1)!=="\\"){F[1]=(F[1]||"").replace(/\\/g,"");n=z.find[E](F,
e,j);if(n!=null){a=a.replace(z.match[E],"");break}}}}n||(n=e.getElementsByTagName("*"));return{set:n,expr:a}};w.filter=function(a,e,j,n){for(var v=a,A=[],E=e,F,K,R=e&&e[0]&&J(e[0]);a&&e.length;){for(var Q in z.filter)if((F=z.leftMatch[Q].exec(a))!=null&&F[2]){var O=z.filter[Q],M,P;P=F[1];K=false;F.splice(1,1);if(P.substr(P.length-1)!=="\\"){if(E===A)A=[];if(z.preFilter[Q])if(F=z.preFilter[Q](F,E,j,A,n,R)){if(F===true)continue}else K=M=true;if(F)for(var T=0;(P=E[T])!=null;T++)if(P){M=O(P,F,T,E);var S=
n^!!M;if(j&&M!=null)if(S)K=true;else E[T]=false;else if(S){A.push(P);K=true}}if(M!==undefined){j||(E=A);a=a.replace(z.match[Q],"");if(!K)return[];break}}}if(a===v)if(K==null)w.error(a);else break;v=a}return E};w.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var z=w.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")}},relative:{"+":function(a,e){var j=typeof e==="string",n=j&&!/\W/.test(e);j=j&&!n;if(n)e=e.toLowerCase();n=0;for(var v=a.length,
A;n<v;n++)if(A=a[n]){for(;(A=A.previousSibling)&&A.nodeType!==1;);a[n]=j||A&&A.nodeName.toLowerCase()===e?A||false:A===e}j&&w.filter(e,a,true)},">":function(a,e){var j=typeof e==="string",n,v=0,A=a.length;if(j&&!/\W/.test(e))for(e=e.toLowerCase();v<A;v++){if(n=a[v]){j=n.parentNode;a[v]=j.nodeName.toLowerCase()===e?j:false}}else{for(;v<A;v++)if(n=a[v])a[v]=j?n.parentNode:n.parentNode===e;j&&w.filter(e,a,true)}},"":function(a,e,j){var n=o++,v=k,A;if(typeof e==="string"&&!/\W/.test(e)){A=e=e.toLowerCase();
v=g}v("parentNode",e,n,a,A,j)},"~":function(a,e,j){var n=o++,v=k,A;if(typeof e==="string"&&!/\W/.test(e)){A=e=e.toLowerCase();v=g}v("previousSibling",e,n,a,A,j)}},find:{ID:function(a,e,j){if(typeof e.getElementById!=="undefined"&&!j)return(a=e.getElementById(a[1]))?[a]:[]},NAME:function(a,e){if(typeof e.getElementsByName!=="undefined"){var j=[];e=e.getElementsByName(a[1]);for(var n=0,v=e.length;n<v;n++)e[n].getAttribute("name")===a[1]&&j.push(e[n]);return j.length===0?null:j}},TAG:function(a,e){return e.getElementsByTagName(a[1])}},
preFilter:{CLASS:function(a,e,j,n,v,A){a=" "+a[1].replace(/\\/g,"")+" ";if(A)return a;A=0;for(var E;(E=e[A])!=null;A++)if(E)if(v^(E.className&&(" "+E.className+" ").replace(/[\t\n]/g," ").indexOf(a)>=0))j||n.push(E);else if(j)e[A]=false;return false},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(a){return a[1].toLowerCase()},CHILD:function(a){if(a[1]==="nth"){var e=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=e[1]+
(e[2]||1)-0;a[3]=e[3]-0}a[0]=o++;return a},ATTR:function(a,e,j,n,v,A){e=a[1].replace(/\\/g,"");if(!A&&z.attrMap[e])a[1]=z.attrMap[e];if(a[2]==="~=")a[4]=" "+a[4]+" ";return a},PSEUDO:function(a,e,j,n,v){if(a[1]==="not")if((i.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=w(a[3],null,null,e);else{a=w.filter(a[3],e,j,true^v);j||n.push.apply(n,a);return false}else if(z.match.POS.test(a[0])||z.match.CHILD.test(a[0]))return true;return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===
false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,e,j){return!!w(j[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.type},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===
a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,e){return e===0},last:function(a,e,j,n){return e===n.length-1},even:function(a,e){return e%2===0},odd:function(a,e){return e%2===1},
lt:function(a,e,j){return e<j[3]-0},gt:function(a,e,j){return e>j[3]-0},nth:function(a,e,j){return j[3]-0===e},eq:function(a,e,j){return j[3]-0===e}},filter:{PSEUDO:function(a,e,j,n){var v=e[1],A=z.filters[v];if(A)return A(a,j,e,n);else if(v==="contains")return(a.textContent||a.innerText||b([a])||"").indexOf(e[3])>=0;else if(v==="not"){e=e[3];j=0;for(n=e.length;j<n;j++)if(e[j]===a)return false;return true}else w.error("Syntax error, unrecognized expression: "+v)},CHILD:function(a,e){var j=e[1],n=
a;switch(j){case "only":case "first":for(;n=n.previousSibling;)if(n.nodeType===1)return false;if(j==="first")return true;n=a;case "last":for(;n=n.nextSibling;)if(n.nodeType===1)return false;return true;case "nth":j=e[2];var v=e[3];if(j===1&&v===0)return true;e=e[0];var A=a.parentNode;if(A&&(A.sizcache!==e||!a.nodeIndex)){var E=0;for(n=A.firstChild;n;n=n.nextSibling)if(n.nodeType===1)n.nodeIndex=++E;A.sizcache=e}a=a.nodeIndex-v;return j===0?a===0:a%j===0&&a/j>=0}},ID:function(a,e){return a.nodeType===
1&&a.getAttribute("id")===e},TAG:function(a,e){return e==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===e},CLASS:function(a,e){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(a,e){var j=e[1];a=z.attrHandle[j]?z.attrHandle[j](a):a[j]!=null?a[j]:a.getAttribute(j);j=a+"";var n=e[2];e=e[4];return a==null?n==="!=":n==="="?j===e:n==="*="?j.indexOf(e)>=0:n==="~="?(" "+j+" ").indexOf(e)>=0:!e?j&&a!==false:n==="!="?j!==e:n==="^="?j.indexOf(e)===0:n==="$="?j.substr(j.length-
e.length)===e:n==="|="?j===e||j.substr(0,e.length+1)===e+"-":false},POS:function(a,e,j,n){var v=z.setFilters[e[2]];if(v)return v(a,j,e,n)}}},u=z.match.POS,q=function(a,e){return"\\"+(e-0+1)};for(var y in z.match){z.match[y]=new RegExp(z.match[y].source+/(?![^\[]*\])(?![^\(]*\))/.source);z.leftMatch[y]=new RegExp(/(^(?:.|\r|\n)*?)/.source+z.match[y].source.replace(/\\(\d+)/g,q))}var B=function(a,e){a=Array.prototype.slice.call(a,0);if(e){e.push.apply(e,a);return e}return a};try{Array.prototype.slice.call(document.documentElement.childNodes,
0)}catch(D){B=function(a,e){e=e||[];var j=0;if(m.call(a)==="[object Array]")Array.prototype.push.apply(e,a);else if(typeof a.length==="number")for(var n=a.length;j<n;j++)e.push(a[j]);else for(;a[j];j++)e.push(a[j]);return e}}var C;if(document.documentElement.compareDocumentPosition)C=function(a,e){if(!a.compareDocumentPosition||!e.compareDocumentPosition){if(a==e)r=true;return a.compareDocumentPosition?-1:1}a=a.compareDocumentPosition(e)&4?-1:a===e?0:1;if(a===0)r=true;return a};else if("sourceIndex"in
document.documentElement)C=function(a,e){if(!a.sourceIndex||!e.sourceIndex){if(a==e)r=true;return a.sourceIndex?-1:1}a=a.sourceIndex-e.sourceIndex;if(a===0)r=true;return a};else if(document.createRange)C=function(a,e){if(!a.ownerDocument||!e.ownerDocument){if(a==e)r=true;return a.ownerDocument?-1:1}var j=a.ownerDocument.createRange(),n=e.ownerDocument.createRange();j.setStart(a,0);j.setEnd(a,0);n.setStart(e,0);n.setEnd(e,0);a=j.compareBoundaryPoints(Range.START_TO_END,n);if(a===0)r=true;return a};
(function(){var a=document.createElement("div"),e="script"+(new Date).getTime();a.innerHTML="<a name='"+e+"'/>";var j=document.documentElement;j.insertBefore(a,j.firstChild);if(document.getElementById(e)){z.find.ID=function(n,v,A){if(typeof v.getElementById!=="undefined"&&!A)return(v=v.getElementById(n[1]))?v.id===n[1]||typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id").nodeValue===n[1]?[v]:undefined:[]};z.filter.ID=function(n,v){var A=typeof n.getAttributeNode!=="undefined"&&n.getAttributeNode("id");
return n.nodeType===1&&A&&A.nodeValue===v}}j.removeChild(a);j=a=null})();(function(){var a=document.createElement("div");a.appendChild(document.createComment(""));if(a.getElementsByTagName("*").length>0)z.find.TAG=function(e,j){j=j.getElementsByTagName(e[1]);if(e[1]==="*"){e=[];for(var n=0;j[n];n++)j[n].nodeType===1&&e.push(j[n]);j=e}return j};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#")z.attrHandle.href=function(e){return e.getAttribute("href",
2)};a=null})();document.querySelectorAll&&function(){var a=w,e=document.createElement("div");e.innerHTML="<p class='TEST'></p>";if(!(e.querySelectorAll&&e.querySelectorAll(".TEST").length===0)){w=function(n,v,A,E){v=v||document;if(!E&&v.nodeType===9&&!J(v))try{return B(v.querySelectorAll(n),A)}catch(F){}return a(n,v,A,E)};for(var j in a)w[j]=a[j];e=null}}();(function(){var a=document.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!a.getElementsByClassName||
a.getElementsByClassName("e").length===0)){a.lastChild.className="e";if(a.getElementsByClassName("e").length!==1){z.order.splice(1,0,"CLASS");z.find.CLASS=function(e,j,n){if(typeof j.getElementsByClassName!=="undefined"&&!n)return j.getElementsByClassName(e[1])};a=null}}})();var G=document.compareDocumentPosition?function(a,e){return!!(a.compareDocumentPosition(e)&16)}:function(a,e){return a!==e&&(a.contains?a.contains(e):true)},J=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!==
"HTML":false},L=function(a,e){var j=[],n="",v;for(e=e.nodeType?[e]:e;v=z.match.PSEUDO.exec(a);){n+=v[0];a=a.replace(z.match.PSEUDO,"")}a=z.relative[a]?a+"*":a;v=0;for(var A=e.length;v<A;v++)w(a,e[v],j);return w.filter(n,j)};window.Sizzle=w})();function $(b){for(var g,k,i,o,m=arguments.length,r=1;r<m;){var x=arguments[r++];switch(typeof x){case "boolean":k=x;break;case "string":case "object":if(x instanceof Array)o=x;else g=x;break;case "function":i=x;break}}if(is(g)){g=I(g);if(!g)return o||[]}g=g||document;if(k&&g.querySelector)g=[g.querySelector(b)];else if(g.querySelectorAll)g=toArray(g.querySelectorAll(b));else{g=Sizzle(b,g);if(_MUST_EXTEND)for(r=g.length;r;){--r;g[r]=I(g[r])}}if(k&&g.length>1)g=g.slice(0,1);if(o)g=o.concat(g);i&&g.each(i);
return k?g[0]:g}$.first=function(){return $.apply(null,toArray(arguments).push(true))};
var _MUST_EXTEND=false,AidaElements={prototypize:function(b){if(b&&b.nodeType==1&&!b._extended){var g,k;if(_MUST_EXTEND||Agent.trident){b._extended=true;k=Element.prototype;for(g in k)b[g]=k[g];AidaElements._extended.push(b);return b}k=b.ownerDocument;k=(k?k.defaultView:window).Element.prototype;b=AidaElements._extensions;for(g in b)k[g]=b[g]}},implement:function(b){var g,k=Element.prototype,i=AidaElements._extensions;for(g in b)k[g]=i[g]=b[g];if(_MUST_EXTEND){k=AidaElements._extended;i=k.length-
1;for(var o;i>=0;i--){o=k[i];for(g in b)o[g]||(o[g]=b[g])}}},_extended:[],_extensions:{}},TextNodes={spanSubtext:function(b,g,k){var i=b.nodeValue,o=i.substring(g,k);o=N(["span",o]);var m=i.length,r=[];g>0&&r.push(i.substring(0,g));r.push(o);k&&k<m&&r.push(i.substring(k,m));g=b.parentNode;var x;for(k=r.length-1;k>=0;k--){i=N(r[k]);(x=b.nextSibling)?g.insertBefore(i,x):g.appendChild(i)}g.removeChild(b);return o}};
(function(b,g){function k(a){for(var e=a.length,j;e>0;){j=a[--e];Event.remove(j);ElementStorage.removeStorage(j)}}for(var i=g.getElementsByTagName("script"),o=i.length,m;o;)if(m=i[--o]){m=(m.src+"").split("/");if(m.pop()=="aida.js"){AIDAJS.baseUrl=m.join("/");break}}i="prototype";o=Object;m=Date;var r=m[i],x=String,w=x[i],z=Array[i],u=Number[i],q=Function;i=q[i];var y=Math,B=RegExp,D=navigator.userAgent,C,G=0;if(b.ActiveXObject&&(C=D.match(/MSIE ([0-9\.]+)/i))){Agent.engine="trident";Agent.version=
parseFloat(C[1],10);Agent.trident=true;Agent.msie=true}else if(!/Konqueror|Safari|KHTML/.test(D)&&D.indexOf("Gecko")>-1&&(C=D.match(/rv:([0-9\.]+)/i))){Agent.engine="gecko";Agent.version=parseFloat(C[1],10);Agent.gecko=true}else if(!navigator.taintEnabled&&(C=D.match(/WebKit\/([0-9\.]+)/i))){Agent.engine="webkit";Agent.version=parseFloat(C[1],10);Agent.webkit=true}else if(b.opera&&(C=D.match(/Opera[ \/]([0-9\.]+)/i))){var J=D.match(/Version[ \/]([0-9\.]+)/i);if(J)C=J;Agent.engine="presto";Agent.version=
parseFloat(C[1],10);Agent.presto=true;Agent.opera=true}else if(C=D.match(/KHTML\/([0-9\.]+)/i)){Agent.engine="khtml";Agent.version=parseFloat(C[1],10);Agent.khtml=true}if(D.indexOf("Win")>-1){Agent.system="win";Agent.win=true}else if(D.indexOf("Mac OS X")>-1){Agent.system="mac";Agent.mac=true}else if(D.indexOf("Linux")>-1){Agent.system="linux";Agent.linux=true}Agent.itouch=b.orientation!==undefined;Agent.rgba=Agent.webkit||Agent.gecko||Agent.presto&&Agent.version>=10.5;o.extend=function(a){a=a||{};
for(var e=0,j=arguments.length,n;++e<j;)if(n=arguments[e])for(var v in n)a[v]=n[v];return a};o.params=function(a){var e=[],j,n;for(j in a){n=a[j];if(typeof n=="object"){var v=0,A=encodeURIComponent(j);if(n instanceof Array)for(var E=n.length;v<E;v++)e.push(A+"[]="+encodeURIComponent(n[v]));else for(v in n)e.push(A+"["+encodeURIComponent(v)+"]="+encodeURIComponent(n[v]))}else e.push(encodeURIComponent(j)+"="+encodeURIComponent(n))}return e.join("&").replace(/%20/g,"+")};o.each=function(a,e,j){if(a instanceof
Array)return a.each(e,j);for(var n in a)e.call(j,a[n],n,a)};o.keys=function(a){var e=[],j;for(j in a)e.push(j);return e};m.parse=function(a,e){a=a.trim();var j,n=new Date,v;if(j=a.match(/^([0-9]{4})[\/\s-]*([0-2]?[0-9])[\/\s-]*([0-3]?[0-9])[\s]*([0-2]?[0-9])[\:\s]*([0-5]?[0-9])[\:\s]*([0-5]?[0-9])$/)){a=j[1].toInt();e=j[2].toInt()-1;v=j[3].toInt();a||(a=n.getFullYear());if(e<0)e=n.getMonth();v||(v=n.getDate());return new Date(a,e,v,j[4].toInt(),j[5].toInt(),j[6].toInt())}if(j=a.match(/^([0-3]?[0-9])[\/\s-]+([0-2]?[0-9])[\/\s-]+([0-9]{4})$/)){a=
j[3].toInt();e=j[2].toInt()-1;v=j[1].toInt();a||(a=n.getFullYear());if(e<0)e=n.getMonth();v||(v=n.getDate());return new Date(a,e,v)}if(j=a.match(/^([0-9]{4})[\/\s-]+([0-2]?[0-9])[\/\s-]+([0-3]?[0-9])$/)){a=j[1].toInt();e=j[2].toInt()-1;v=j[3].toInt();a||(a=n.getFullYear());if(e<0)e=n.getMonth();v||(v=n.getDate());return new Date(a,e,v)}if(j=a.match(/^([0-2]?[0-9])[\:\s]+([0-5]?[0-9])(?:[\:\s]+([0-5]?[0-9]))?$/))return new Date(n.getFullYear(),n.getMonth(),n.getDate(),j[1].toInt(),j[2].toInt(),(j[3]||
"0").toInt());if(j=a.match(/^([0-9]{2})[\s\/\.-]+([a-z]{3,})[\s\/\.-]+([0-9]{4})$/i)){a=j[3].toInt();e=j[2].substr(0,3).toLowerCase();v=j[1].toInt();switch(e){case "jan":case "gen":e=0;break;case "feb":e=1;break;case "mar":e=2;break;case "apr":e=3;break;case "may":case "mag":e=4;break;case "jun":case "giu":e=5;break;case "jul":case "lug":e=6;break;case "aug":case "ago":e=7;break;case "sep":case "set":e=8;break;case "oct":case "ott":e=9;break;case "nov":e=10;break;case "dec":case "dic":e=11;break;
default:e=-1;break}a||(a=n.getFullYear());if(e<0)e=n.getMonth();v||(v=n.getDate());return new Date(a,e,v)}return e?e instanceof Date?e:n:null};m.now=function(){return(new Date).getTime()};m.formats={en:{m:["January","February","March","April","May","June","July","August","September","October","November","December"],w:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},it:{m:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre",
"Dicembre"],w:["Domenica","Luned\u00ec","Marted\u00ec","Mercoled\u00ec","Gioved\u00ec","Venerd\u00ec","Sabato"]},es:{m:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],w:["Lunes","Martes","Mi\u00c8rcoles","Jueves","Viernes","Sabado","Domingo"]},fr:{m:["Janvier","F\u00e9vrier","Mars","Avril","Mai","Juin","Juillet","Ao\u00fbt","Septembre","Octobre","Novembre","D\u00e9cembre"],w:["Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi",
"Dimanche"]}};r.format=function(a,e){var j=Date.formats,n=this,v=n.getFullYear(),A=n.getMonth()+1,E=n.getDate(),F=n.getDay(),K=n.getHours(),R=K%12||12,Q=n.getMinutes();n=n.getSeconds();var O=R==K?"am":"pm",M=new Date(v,A-1,1),P=new Date(v,A,1);M=((M.getTime()-P.getTime())/864E5).round()+1;P=/(a|A|M|F|D|l)/g;e=j[(e||"en").toLowerCase()]||j.en;a=a.replace("G",K).replace("g",R).replace("H",K.zeroFill(2)).replace("h",R.zeroFill(2));a=a.replace("i",Q.zeroFill(2)).replace("s",n.zeroFill(2));a=a.replace("Y",
v).replace("y",v.zeroFill(2,true)).replace("n",A).replace("m",A.zeroFill(2));a=a.replace("j",E).replace("d",E.zeroFill(2)).replace("w",F).replace("t",M);if(a.match(P))a=a.replace(P,function(T,S){switch(S){case "a":return O;case "A":return O.toUpperCase();case "M":return e.m[A-1].substr(0,3);case "F":return e.m[A-1];case "D":return e.w[F].substr(0,3);case "l":return e.w[F]}return S});return a};x.random=function(a,e){e=e||"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";for(var j=e.length,
n="",v=a||8;v>0;v--){a=Math.floor(Math.random()*j);n+=e.substring(a,a+1)}return n};x.randomId=function(){return"aidajs_rid_"+String.random()};x.uniqueId=function(){return"aidajs_uid_"+G++};x.buildQueryString=function(a,e){var j=[],n;for(n in a)j.push(n+"="+encodeURIComponent(a[n]));return j.join(e||"&")};w.cleanSize=function(a){var e=0,j="",n=this.match(/(-?[0-9\.]+)(in|cm|mm|pt|pc|em|ex|px|%)?/i);if(n){e=parseFloat(n[1],10)||0;if(isNaN(e))e=0;j=n[2]||""}return a?[e,j]:e};w.parseNumber=function(){var a=
this.replace(/[^0-9\.,-]/,""),e=a.indexOf("."),j=a.indexOf(",");if(e>-1&&j>-1)a=a.replace(e<j?".":",","");a=a.replace(",",".");a=parseFloat(a,10);return isNaN(a)?0:a};w.ipInt=function(){var a=this;if(a){a=a.split(".");return parseInt(a[3]||0,10)+parseInt(a[2]||0,10)*256+parseInt(a[1]||0,10)*65536+parseInt(a[0]||0,10)*16777216}return 0};w.entitiesDecode=function(){return this.replace(/&[a-z0-9]+;/gi,function(a){var e=w.entitiesDecode.$div||(w.entitiesDecode.$div=g.createElement("div"));e.innerHTML=
a;return e.textContent!==undefined?e.textContent:e.innerText})};w.htmlEntities=function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};w.nl2br=function(){return this.replace(/[^>]\n/g,"<br/>")};w.stripTags=function(){return this.replace(/<[^>]+>/g,"")};(function(){var a=["\u00c0","\u00e0","\u00c1","\u00e1","\u00c2","\u00e2","\u00c3","\u00e3","\u00c4","\u00e4","\u00c5","\u00e5","\u0102","\u0103","\u0104","\u0105","\u0106","\u0107","\u010c","\u010d","\u00c7","\u00e7",
"\u010e","\u010f","\u0110","\u0111","\u00c8","\u00e8","\u00c9","\u00e9","\u00ca","\u00ea","\u00cb","\u00eb","\u011a","\u011b","\u0118","\u0119","\u011e","\u011f","\u00cc","\u00ec","\u00cd","\u00ed","\u00ce","\u00ee","\u00cf","\u00ef","\u0139","\u013a","\u013d","\u013e","\u0141","\u0142","\u00d1","\u00f1","\u0147","\u0148","\u0143","\u0144","\u00d2","\u00f2","\u00d3","\u00f3","\u00d4","\u00f4","\u00d5","\u00f5","\u00d6","\u00f6","\u00d8","\u00f8","\u0151","\u0158","\u0159","\u0154","\u0155","\u0160",
"\u0161","\u015e","\u015f","\u015a","\u015b","\u0164","\u0165","\u0164","\u0165","\u0162","\u0163","\u00d9","\u00f9","\u00da","\u00fa","\u00db","\u00fb","\u00dc","\u00fc","\u016e","\u016f","\u0178","\u00ff","\u00fd","\u00dd","\u017d","\u017e","\u0179","\u017a","\u017b","\u017c","\u00de","\u00fe","\u00d0","\u00f0","\u00df","\u0152","\u0153","\u00c6","\u00e6","\u00b5"],e=["A","a","A","a","A","a","A","a","Ae","ae","A","a","A","a","A","a","C","c","C","c","C","c","D","d","D","d","E","e","E","e","E","e",
"E","e","E","e","E","e","G","g","I","i","I","i","I","i","I","i","L","l","L","l","L","l","N","n","N","n","N","n","O","o","O","o","O","o","O","o","Oe","oe","O","o","o","R","r","R","r","S","s","S","s","S","s","T","t","T","t","T","t","U","u","U","u","U","u","Ue","ue","U","u","Y","y","Y","y","Z","z","Z","z","Z","z","TH","th","DH","dh","ss","OE","oe","AE","ae","u"],j={"[\u00a0\u2002\u2003\u2009]":" ","\u00b7":"*","[\u2018\u2019]":"'","[\u201c\u201d]":'"',"\u2026":"...","\u2013":"-","\u2014":"--","\ufffd":"&raquo;"};
w.tidy=function(){var n=this;for(var v in j){var A=j[v];n=n.replace(new RegExp(v,"g"),A)}return n};w.standardize=function(){var n=this;a.each(function(v,A){n=n.replace(new RegExp(v,"g"),e[A])});return n};w.makeSlug=function(){return this.tidy().standardize().replace(/[\s']+/g,"-").toLowerCase().replace(/(^[^a-z0-9]+|[^a-z0-9\-]+|[^a-z0-9]+$)/g,"")}})();w.has=function(a){return this.indexOf(a)>=0};if(!w.trim)w.trim=function(){return this.replace(/^\s+|\s+$/g,"")};if(w.trimLeft)w.trimLeft=function(){return this.replace(/^\s+/g,
"")};if(!w.trimRight)w.trimRight=function(){return this.replace(/^\s+$/g,"")};w.clean=function(){return this.replace(/\s{2,}/g," ").trim()};w.empty=function(a){return this.length===0||a&&this.match(/^[\s]*$/gm)?true:false};w.toInt=function(a){return parseInt(this,a||10)};w.toFloat=function(a){return parseFloat(this,a||10)};w.camelCase=function(){return this.replace(/-\D/g,function(a){return a.charAt(1).toUpperCase()})};w.hyphenate=function(){return this.replace(/\w[A-Z]/g,function(a){return a.charAt(0)+
"-"+a.charAt(1).toLowerCase()})};w.capitalize=function(){return this.toLowerCase().replace(/\b[a-z]/g,function(a){return a.toUpperCase()})};w.parseCss=function(){for(var a=this.split(";"),e={},j=a.length-1,n,v;j>=0;j--){n=a[j].split(":");if(v=n[0].trim().camelize())e[v]=n[1].trim()}return e};w.repeat=function(a){for(var e="";--a>=0;)e+=this;return e};w.whiteSpaceChar=function(a){return this.charCodeAt(a||0)<=32};w.digitChar=function(a){return(a=this.charCodeAt(a||0))&&a>=48&&a<=57};w.letterChar=function(a){return(a=
this.charCodeAt(a||0))&&(a>=65&&a<=90||a>=97&&a<=122)};w.upperCaseChar=function(a){return(a=this.charCodeAt(a||0))&&a>=65&&a<=90};w.lowerCaseChar=function(a){return(a=this.charCodeAt(a||0))&&a>=97&&a<=122};w.compareVersion=function(a){a=(a+"").split(".");var e=this.split("."),j,n,v,A=Math.min(e.length,a.length);for(j=0;j<A;j++){n=e[j].toInt();v=a[j].toInt();if(n>v)return 1;if(n<v)return-1}return 0};w.htmlEntities=function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};
w.stripTags=function(){return this.replace(/<([^>]+)>/g,"")};if(!z.indexOf)z.indexOf=function(a,e){e=+e||0;for(var j=this.length;e<j;e++)if(this[e]===a)return e;return-1};if(!z.filter)z.filter=function(a,e){if(typeof a!="function")throw new TypeError;for(var j=this,n=j.length,v=[],A=0,E=0,F;A<n;A++){F=j[A];if(a.call(e,F,A,j))v[E++]=F}return v};if(!z.forEach)z.forEach=function(a,e){if(typeof a!="function")throw new TypeError;for(var j=0,n=this.length;j<n;j++)a.call(e,this[j],j,this)};z.each=z.forEach;
if(!z.every)z.every=function(a,e){for(var j=0,n=this.length;j<n;j++)if(!a.call(e,this[j],j,this))return false;return true};if(!z.map)z.map=function(a,e){for(var j=this.length,n=[],v=0;v<j;v++)n=n.push(a.call(e,this[v],v,this));return n};if(!z.some)z.some=function(a,e){for(var j=0,n=this.length;j<n;j++)if(a.call(e,this[j],j,this))return true;return false};z.unique=function(a){for(var e=[],j=0,n=this.length,v;j<n;){v=this[j++];e.indexOf(v,0,a)<0&&e.push(v)}return e};z.replace=function(a,e){for(var j=
[],n=0,v=this.length,A;n<v;){A=this[n];j[n]=A===a?e:A;n++}return j};z.intersect=function(a){for(var e=[],j=this.length,n=0,v;n<j;){v=this[n++];a.indexOf(v)>=0&&e.push(v)}return e};z.remove=function(a){for(var e=0;e<this.length;)if(this[e]===a)this.splice(e,1);else++e;return this};z.copy=function(a,e){var j=this.length,n=0,v=[];a=(a=a||0)<0?j+a:a;for(e=e||j-a;n<e;)v[n++]=this[a++];return v};z.exists=function(a,e){return this.indexOf(a,e)!=-1};z.has=z.exists;z.clean=function(){for(var a=[],e=0,j=this.length,
n;e<j;)if(is(n=this[e++]))a.push(n);return a};z.nearest=function(a){for(var e,j=null,n,v=this.length;v;){e=this[--v];n=Math.abs(e-a);if(j===null||n<j){j=n;result=e}}return result};z.randomize=function(){return this.copy().sort(Sort.random)};z.random=function(){return this[Math.floor(Math.random()*this.length)]};z.call=function(){var a=toArray(arguments),e=a.shift(),j=this.length,n=0,v,A;if(typeof f=="function")for(;n<j;)e.apply(this[n++],a);else for(;n<j;){v=this[n++];if(typeof(A=v[e])=="function")A.apply(v,
a)}};z.first=function(){return this[0]};z.last=function(){return this[this.length-1]};u.bound=function(a,e){return this<a?a:this>e?e:this*1};u.round=function(a){a=Math.pow(10,a||0);return Math.round(this*a)/a};u.ceil=function(){return Math.ceil(this)};u.floor=function(){return Math.floor(this)};u.pow=function(a){return Math.pow(this,a)};u.toInt=function(a){return parseInt(this,a||10)};u.toFloat=function(a){return parseFloat(this,a||10)};u.zeroFill=function(a,e){var j=0,n="",v=this,A;v=parseInt(v,
10)+"";A=v.length;if(e&&A>a)return v.substr(A-a,a);for(A=a-A;j++<A;)n+="0";return n+""+v};u.format=function(a,e,j){var n=(this+"").split(".");a=n[0];e=n.length>1?(e||".")+n[1]:"";for(n=/(\d+)(\d{3})/;n.test(a);)a=a.replace(n,"$1"+(j||"")+"$2");return a+e};q.empty=function(){};q.value=function(a){return typeof a==="function"?a:function(){return a}};q.exists=function(a){return typeof a=="string"?typeof b[a]=="function":a instanceof Function};i.interval=function(a,e){var j=this;return setInterval(function(){j.apply(null,
e||[])},a)};i.defer=function(a){this.timeout(1,a)};i.timeout=function(a,e){var j=this;return setTimeout(function(){j.apply(null,e||[])},a)};i.tryCatch=function(a,e,j){try{return this.apply(a,e||[])}catch(n){return(j||function(){return false}).apply(a,n)}};i.bind=function(a){return function(){return fn.apply(a,arguments)}};y.ipo=function(a,e){return Math.sqrt(a*a+e*e)};y.rand=function(a,e){if(arguments.length<2){e=a;a=0}return(Math.random()*(e-a+1)+a).floor()};y.rad=function(a){return Math.PI/180*
a};y.deg=function(a){return a*180/Math.PI};y.angle=function(a,e){a=Math.asin(a);var j=Math.PI;return(e>0?-(a-j/2):a+j*3/2)/(j*2)};y.coordsAngle=function(a,e){var j=Math.ipo(a,e);a=Math.acos(a/j);return e>=0?a:2*Math.PI-a};y.angleCoords=function(a,e){e=e||1;return[Math.cos(a)*e,Math.sin(a)*e]};i=1.618033988749895;y.PHI=i;y.LOW_PHI=1/i;B.EMAIL=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;B.TIMESTAMP=/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})/;B.URL=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
if(Agent.trident&&Agent.version<7)try{g.execCommand("BackgroundImageCache",false,true)}catch(L){}if(Agent.trident||Agent.engine=="presto"&&Agent.version<9.5){g.nativeGetElementById=g.getElementById;g.getElementById=function(a){var e=g.nativeGetElementById(a);if(e){if(e.id==a)return e;for(var j=1,n=g.all[a],v=n.length;j<v;)if((e=n[j++]).id==a)return e}return null};C=["abbr","article","aside","audio","bb","canvas","datagrid","datalist","details","dialog","figure","footer","header","mark","menu","meter",
"nav","output","progress","section","source","time","video"];for(o=C.length;o;)g.createElement(C[--o])}if(typeof Element=="undefined"){C={};b.Element=function(){};if(o=b["[[DOMElement.prototype]]"])Element.prototype=d;else if((o=g.createElement("html").constructor)&&(o=o.__proto__))Element.prototype=d;else if((o=g.createElement("div").__proto__)&&o==g.createElement("span").__proto__)Element.prototype=o;else{Element.prototype={};_MUST_EXTEND=true}if(typeof i=="undefined")Element.prototype.__proto__=
C.__proto__=Element.prototype;AidaElements.implement(C);C=o=null}Element.prototype._extended=true;AidaElements.implement({$:function(a,e){return $(a,this,e)},empty:function(){for(var a=this.childNodes,e=a.length,j;e;)if((j=a[--e].nodeType)&&(j==1||j==3))return false;return true},first:function(a){if(a)return I(this.firstChild);a=this.childNodes;for(var e=a.length,j,n=0;n<e;)if((j=a[n++]).nodeType==1)return I(j);return null},last:function(a){if(a)return I(this.lastChild);a=this.childNodes;for(var e=
a.length,j;e;)if((j=a[--e]).nodeType==1)return I(j);return null},next:function(a){var e=this.nextSibling;if(e){if(a)return I(e);do if(e.nodeType==1)return I(e);while(e=e.nextSibling)}return null},prev:function(a){var e=this.previousSibling;if(e){if(a)return I(e);do if(e.nodeType==1)return I(e);while(e=e.previousSibling)}return null},getText:function(){return this.textContent!==undefined?this.textContent:this.innerText},firstLetter:function(a){for(var e=this.childNodes,j=e.length,n=0,v,A;n<j;n++){v=
I(e[n]);switch(v.nodeType){case 1:if(A=v.firstLetter(t))return A;break;case 3:A=v.nodeValue;if(!A.match(/^[\s]*$/gm)){if(a)return A.substr(0,1);if(A.length==1&&!v.previousSibling&&!v.nextSibling&&v.parentNode.nodeName.toLowerCase()=="span")return v.parentNode;return TextNodes.spanSubtext(v,0,1)}break}}return null},hasClass:function(a){a=a.split(/[\.\s]+/gi);for(var e=this.className,j=a.length,n;j;)if((n=a[--j])&&!(new RegExp("(^|\\s)"+n+"(\\s|$)","g")).test(e))return false;return true},addClass:function(a){this.removeClass(a);
this.className=(this.className+" "+a.split(/[\.\s]+/g).join(" ")).trim();return this},removeClass:function(a){this.className=this.className.replace(new RegExp("(^|\\s+)("+a.split(/[\.\s]+/gi).join("|")+")(\\s+|$)","g")," ").trim();return this},getClasses:function(){return this.className.trim().split(/[\.\s]+/gi)},switchClass:function(){for(var a=arguments.length,e=0,j;e<a;){j=arguments[e];if(this.hasClass(j)){this.removeClass(j).addClass(e==a-1?arguments[1]:arguments[e+1]);return this}++e}this.addClass(arguments[1]);
return this},toggleClass:function(a){return this[this.hasClass(a)?"removeClass":"addClass"](a)},remove:function(a){a||k(this.getElementsByTagName("*"));this.parentNode.removeChild(this);return this},append:function(){for(var a=g.createDocumentFragment(),e=arguments.length,j=0;j<e;)a.appendChild(N(arguments[j++]));this.appendChild(a);return this},appendTo:function(a){I(a).append(this);return this},prepend:function(){for(var a=g.createDocumentFragment(),e=arguments.length,j=0,n;j<e;)a.appendChild(N(arguments[j++]));
(n=this.firstChild)?this.insertBefore(a,n):this.appendChild(a);return this},prependTo:function(a){I(a).prepend(this);return this},before:function(){for(var a=g.createDocumentFragment(),e=arguments.length,j=0,n=this.parentNode;j<e;)a.appendChild(N(arguments[j++]));n.insertBefore(a,this);return this},beforeOf:function(a){I(a).before(this);return this},after:function(){for(var a=g.createDocumentFragment(),e=arguments.length,j=0,n=this.parentNode,v;j<e;)a.appendChild(N(arguments[j++]));(v=this.nextSibling)?
n.insertBefore(a,v):n.appendChild(a);return this},afterOf:function(a){I(a).after(this);return this},clone:function(a){var e=I(this.cloneNode(true));a&&I(a).append(e);return e},move:function(a){this.remove(true);I(a).append(this);return this},childs:function(){for(var a=this.childNodes,e=a.length,j=0,n=[];j<e;){node=a[j];node.nodeType==1&&n.push(I(node));++j}return n},removeChilds:function(a){var e=this.style,j=e.display;e.display="none";for(a||k(this.getElementsByTagName("*"));this.firstChild;)this.removeChild(this.firstChild);
e.display=j;return this},moveChilds:function(a){a=I(a);for(var e=g.createDocumentFragment(),j,n=this.style,v=n.display;this.hasChildNodes();){j=this.firstChild;e.appendChild(j.cloneNode(true));this.removeChild(j)}n.display=v;I(a).appendChild(e);return this},replaceChilds:function(){return this.removeChilds().append.apply(this,arguments)},cloneChilds:function(a){this.moveChilds.call(I(this.cloneNode(true)),a);return this},into:function(a){a=I(a);var e=this;do if(e===a)return true;while(e=e.parentNode);
return false},parent:function(a){if(a){a=a.toLowerCase();for(var e=this,j;e&&(j=e.nodeName);){if(j.toLowerCase()==a)return e;e=e.parentNode}return null}return I(this.parentNode)},removeToInsertLater:function(){var a=this.parentNode,e=this.nextSibling,j=this;a.removeChild(this);return function(){e?a.insertBefore(j,e):a.appendChild(j)}},html:function(a){if(!is(a))return this.innerHTML;switch(typeof a){case "string":this.removeChilds();try{this.append(H(a))}catch(e){this.append(a)}break;case "function":this.html(a.call(this,
this.innerHTML));break;default:this.append(a);break}return this},get:function(){if(arguments.length==1){var a=arguments[0];switch(a){case "class":case "className":return this.className;case "style":case "css":return this.css()}return this.getAttribute(a)}for(var e={},j=0;j;){a=arguments[--j];e[a]=this.get(a)}return e},set:function(a,e){if(typeof a=="object")for(e in a)this.set(e,a[e]);else if(typeof e=="function")this.addEvent(a,e);else switch(a){case "class":case "className":this.addClass(e);break;
case "style":case "css":this.css(e);break;case "html":case "innerHTML":this.html(e);break;case "unselectable":this.disableSelect();break;default:this.setAttribute(a,e);break}return this},cssGet:function(a,e){if(!a)return this.style.cssText||this.getAttribute("style");var j=this.style,n=Agent.engine,v=n=="trident";a=a.camelCase();if(!e)e=((e=(this.ownerDocument||{}).defaultView)?e.getComputedStyle(this,null):this.currentStyle)||{};switch(a){case "opacity":if(v){if(value=(j.filter||e.filter||"").match(/progid\:DXImageTransform\.Microsoft\.Alpha\([\s]*Opacity=([0-9]+)[\s]*\)/i))value=
parseInt(value[1],10)/100}else value=j.opacity||e.opacity||"";return isNumeric(value)?parseFloat(value,10):1;case "backgroundImageUrl":return(j.backgroundImage||e.backgroundImage||"").match(/^(url\(['" ]*)?([^'" \)]+)/i)[2]||"";case "backgroundPositionX":if(v)return j.backgroundPositionX||e.backgroundPositionX;value=(j.backgroundPosition||e.backgroundPosition||"").split(/[^a-z0-9%\.-]+/i)[0]||"0%";switch(value){case "left":value="0%";break;case "center":value="50%";break;case "right":value="100%";
break}return value;case "backgroundPositionY":if(v)return j.backgroundPositionY||e.backgroundPositionY;value=(j.backgroundPosition||e.backgroundPosition||"").split(/[^a-z0-9%\.-]+/i)[1]||"0%";switch(value){case "top":value="0%";break;case "center":value="50%";break;case "bottom":value="100%";break}return value;case "flaot":a=v?"styleFloat":"cssFloat";break;case "borderRadius":switch(n){case "gecko":a="MozBorderRadius";break;case "webkit":a="WebkitBorderRadius";break}break;case "borderTopLeftRadius":switch(n){case "gecko":a=
"MozBorderRadiusTopleft";break;case "webkit":a="WebkitBorderTopLeftRadius";break}break;case "borderTopRightRadius":switch(n){case "gecko":a="MozBorderRadiusTopright";break;case "webkit":a="WebkitBorderTopRightRadius";break}break;case "borderBottomLeftRadius":switch(n){case "gecko":a="MozBorderRadiusBottomleft";break;case "webkit":a="WebkitBorderBottomLeftRadius";break}break;case "borderBottomRightRadius":switch(n){case "gecko":a="MozBorderRadiusBottomright";break;case "webkit":a="WebkitBorderBottomRightRadius";
break}break;case "boxShadow":switch(n){case "gecko":a="MozBoxShadow";break;case "webkit":a="WebkitBoxShadow";break}break;case "borderImage":switch(n){case "gecko":a="MozBorderImage";break;case "webkit":a="WebkitBorderImage";break}break;case "backgroundSize":switch(n){case "gecko":a="MozBackgroundSize";break;case "webkit":a="WebkitBackgroundSize";break}break;case "matrix":case "rotate":case "rotateX":case "rotateY":case "rotateZ":case "scale":case "scaleX":case "scaleY":case "scaleZ":case "skewX":case "skewY":case "skewZ":case "translateX":case "translateY":case "translateZ":v=
a=="matrix";if(n=="trident"){value=(ElementStorage.getData(this,"cssTransform")||ElementStorage.storeData(this,"cssTransform",{}))[a];if(is(value))return value}else{var A=a;switch(n){case "webkit":a="WebkitTransform";break;case "gecko":a="MozTransform";break;case "presto":a="OTransform";break;default:a="transform";break}e=e||this.cssComputed();value=j[a]||e[a]||"";if((value=value.match(new RegExp("\\s*"+A+"\\(([^\\)]*)\\)\\s*")))&&(value=value[1]))return v?matrix.split(/[,\s]+/):value}return v?[1,
0,0,1]:a.has("scale")?"1":"0"}return j[a]||e[a]||""},cssSet:function(a,e,j){var n=this.style,v=Agent.engine,A=v=="trident";if(!is(e)){if(A)n.cssText=a;else this.setAttribute("style",a);return this}a=a.camelCase();if(typeof e=="number"&&["opacity","zIndex"].indexOf(a)<0)e+="px";switch(a){case "opacity":if(A){j=j||this.cssComputed();n.filter=(n.filter||j.filter||"").replace(/progid\:DXImageTransform\.Microsoft\.Alpha\([^\)]*\)/gi,"")+(e===""?"":"progid:DXImageTransform.Microsoft.Alpha(Opacity="+Math.round(parseFloat(e,
10).bound(0,1)*100)+")")}else n.opacity=e===""?"":parseFloat(e,10).bound(0,1);break;case "background":case "backgroundImage":case "backgroundColor":if(!Agent.rgba){e=e.replace(/\-[a-z]+\-gradient\(.*\)/i,"");e=e.replace(/rgba\((.*), .*\)/i,"rgb($1)")}n[a]=e;break;case "backgroundImageUrl":n.backgroundImage="url('"+e+"')";break;case "backgroundPositionX":if(A){n.backgroundPositionX=e;return}n.backgroundPosition=e+" "+this.cssGet("backgroundPositionY");break;case "backgroundPositionY":if(A){n.backgroundPositionY=
e;return}n.backgroundPosition=this.cssGet("backgroundPositionX")+" "+e;break;case "float":n[A?"styleFloat":"cssFloat"]=e;break;case "borderRadius":switch(v){case "gecko":n.MozBorderRadius=e;break;case "webkit":n.WebkitBorderRadius=e;break;default:n.borderRadius=e;break}break;case "borderTopLeftRadius":switch(v){case "gecko":n.MozBorderRadiusTopleft=e;break;case "webkit":n.WebkitBorderTopLeftRadius=e;break}break;case "borderTopRightRadius":switch(v){case "gecko":n.MozBorderRadiusTopright=e;break;case "webkit":n.WebkitBorderTopRightRadius=
e;break}break;case "borderBottomLeftRadius":switch(v){case "gecko":n.MozBorderRadiusBottomleft=e;break;case "webkit":n.WebkitBorderBottomLeftRadius=e;break}break;case "borderBottomRightRadius":switch(v){case "gecko":n.MozBorderRadiusBottomright=e;break;case "webkit":n.WebkitBorderBottomRightRadius=e;break}break;case "boxShadow":switch(v){case "gecko":n.MozBoxShadow=e;break;case "webkit":n.WebkitBoxShadow=e;break;case "trident":e=e.trim().split(/\s+/);j=j||this.cssComputed();v=parseInt(e.shift(),10);
a=parseInt(e.shift(),10);parseInt(e.shift(),10);var E=new Color(e.join(""));n.filter=(n.filter||j.filter||"").replace(/progid\:DXImageTransform\.Microsoft\.DropShadow\([^\)]*\)/gi,"")+(e===""?"":"progid:DXImageTransform.Microsoft.DropShadow(OffX="+v+", OffY="+a+", Color='"+E.ahex()+"', Positive=true)");break;default:n.boxShadow=e;break}break;case "borderImage":switch(v){case "gecko":n.MozBorderImage=e;break;case "webkit":n.WebkitBorderImage=e;break;default:n.BorderImage=e;break}break;case "backgroundSize":switch(v){case "presto":n.OBackgroundSize=
e;break;case "webkit":n.WebkitBackgroundSize=e;break}break;case "matrix":case "rotate":case "rotateX":case "rotateY":case "rotateZ":case "scale":case "scaleX":case "scaleY":case "scaleZ":case "skewX":case "skewY":case "skewZ":case "translateX":case "translateY":case "translateZ":if(v=="trident"){v=ElementStorage.getData(this,"cssTransform",{});j=j||this.cssComputed();if(a=="translateX"){a=v.translateX||0;j=parseFloat(j.left,10);n.left=j-a+e+"px";v.translateX=e}else if(a=="translateY"){a=v.translateY||
0;j=parseFloat(j.top,10);n.top=j-a+e;v.translateY=e}else if(Matrix[a]){v[a]=e;e=[];for(E in v)e.push(E=="matrix"?v[E]:Matrix[E](parseFloat(v[E],10)));e=Matrix.blend.apply(Matrix,e.reverse());if(!this.filters["DXImageTransform.Microsoft.Matrix"])n.filter=(n.filter||j.filter||"")+" progid:DXImageTransform.Microsoft.Matrix(M11='1.0', sizingMethod='auto expand')";n=this.filters["DXImageTransform.Microsoft.Matrix"];n.M11=e[0];n.M12=e[2];n.M21=e[1];n.M22=e[3]}}else{E=new RegExp("\\s*("+a+"\\([^\\)]+\\)|none)\\s*",
"i");j=j||this.cssComputed();e=a=="matrix"?"matrix("+e.join(", ")+", 0, 0) ":a+"("+e+") ";switch(v){case "webkit":a="WebkitTransform";break;case "gecko":a="MozTransform";break;case "presto":a="OTransform";break;default:a="transform";break}n[a]=(n[a]||j[a]||"").replace(E," ").trim()+" "+e}break;case "backgroundGradient":e=e.trim().split(/\s+/);v=new Color(e[0]);a=new Color(e[1]);E=e[2];switch(Agent.engine){case "webkit":n.background="-webkit-gradient(linear, left top, "+(E?"right top":"left bottom")+
", from("+v.rgba()+"), to("+a.rgba()+"))";break;case "gecko":n.background="-moz-linear-gradient("+(E?"left":"top")+", "+v.rgba()+", "+a.rgba()+")";break;case "trident":j=j||this.cssComputed();n.background="transparent";n.filter=(n.filter||j.filter||"").replace(/progid\:DXImageTransform\.Microsoft\.Gradient\([^\)]*\)/gi,"")+(e===""?"":"progid:DXImageTransform.Microsoft.Gradient(enabled='true', StartColorStr='"+v.ahex()+"', EndColorStr='"+a.ahex()+"', GradientType="+(E?1:0)+")");break}break;default:n[a]=
e;break}return this},cssComputed:function(){var a=(this.ownerDocument||{}).defaultView;return(a?a.getComputedStyle(this,null):this.currentStyle)||{}},css:function(a,e){if(!a)return this.cssGet();if(typeof a=="object"){var j=0,n=this.cssComputed();if(a instanceof Array){for(var v={};e=a[j++];)v[e]=this.cssGet(e,n);return v}for(j in a)this.cssSet(j,a[j],n)}else if(is(e)||a.has(":"))this.cssSet(a,e);else return this.cssGet(a);return this},cssClone:function(a){a=a.cssComputed();var e=this.style;for(var j in a)if(a[j]&&
typeof j=="string"&&j!="cssText"&&!/\d/.test(j)&&typeof a[j]=="string")try{e[j]=a[j];e.fontSize=a.fontSize}catch(n){}},fixIEAlphaBackground:function(){if(Agent.trident&&Agent.version<7){this.style.filter+="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src='"+this.css("backgroundImageUrl")+"', sizingMethod='crop')";this.style.backgroundImage="none"}return this},val:function(a){if(is(a))if(/radio|checkbox/.test(this.type))if(typeof a=="boolean")this.checked=a;else{a=[].concat(a);this.checked=
a.has(this.value)||a.has(this.name)}else if(this.nodeName.toLowerCase()=="select"){a=[].concat(a);for(var e=this.options,j=e.length,n;j;){n=e[--j];n.selected=a.has(n.value)||a.has(n.text)}}else this.value=a;else{switch(this.nodeName.toLowerCase()){case "select":j=this.selectedIndex;e=this.options;if(j<0)return null;if(this.type=="select-multiple"){j=e.length;for(a=[];j;){n=I(e[--j]);n.selected&&a.push(n.val())}return a}n=I(e[j]);if(n.selected)return n.val();break;case "option":return(this.attributes.value||
{}).specified?this.value:this.text}return this.value||""}return null},realWidth:function(a){var e=this.css(["paddingLeft","paddingRight","borderLeftWidth","borderRightWidth","marginLeft","marginRight"]);switch(a){case "margin":return this.offsetWidth+e.marginLeft.cleanSize()+e.marginRight.cleanSize();case "padding":return this.offsetWidth-e.borderLeftWidth.cleanSize()-e.borderRightWidth.cleanSize();case "border":return this.offsetWidth}return this.offsetWidth-e.paddingLeft.cleanSize()-e.paddingRight.cleanSize()-
e.borderLeftWidth.cleanSize()-e.borderRightWidth.cleanSize()},realHeight:function(a){var e=typeof a;if(e=="boolean"||e=="number"){var j=I(this.cloneNode(true)),n=j.style,v=this.css(["paddingTop","paddingBottom"]);n.visibility="hidden";n.display="block";n.height="auto";if(Agent.trident&&Agent.version<7)n.position="absolute";if(e=="number")n.width=a+"px";this.before(j);a=j.clientHeight-(v.paddingTop+"").cleanSize()-(v.paddingBottom+"").cleanSize();j.remove();return a||0}j=this.css(["paddingTop","paddingBottom",
"borderTopWidth","borderBottomWidth","marginTop","marginBottom"]);switch(a){case "margin":return this.offsetHeight+j.marginTop.cleanSize()+j.marginBottom.cleanSize();case "padding":return this.offsetHeight-j.borderTopWidth.cleanSize()-j.borderBottomWidth.cleanSize();case "border":return this.offsetHeight}return this.offsetHeight-j.paddingTop.cleanSize()-j.paddingBottom.cleanSize()-j.borderTopWidth.cleanSize()-j.borderBottomWidth.cleanSize()},getPixelSize:function(a){var e=N(["div",{style:{width:a,
height:"0px",padding:"0px",border:"0px",margine:"0px",visibility:"hidden"}}],this);a=e.sizes()[0];e.remove();return a},hide:function(){this.style.display="none";return this},show:function(){this.style.display="block";return this},hidden:function(){return!this.offsetWidth||!this.offsetHeight},visible:function(){return this.offsetWidth&&this.offsetHeight},translate:function(a,e){typeof a=="number"&&this.cssSet("left",parseFloat(this.cssGet("left"),10)+a);typeof e=="number"&&this.cssSet("top",parseFloat(this.cssGet("top"),
10)+e);return this},resize:function(a,e){typeof a=="number"&&this.cssSet("width",parseFloat(this.cssGet("width"),10)+a);typeof e=="number"&&this.cssSet("height",parseFloat(this.cssGet("height"),10)+e);return this},getId:function(){var a=this.getAttribute("id");if(!a)this.id=a="unique_id_"+G++;return a},position:function(a){var e=this,j=0,n=0,v,A=this.ownerDocument.defaultView;do{j+=e.offsetLeft;n+=e.offsetTop;if(e=e.offsetParent){v=A?A.getComputedStyle(e,null):e.currentStyle;j+=parseInt(v.borderLeftWidth,
10);n+=parseInt(v.borderTopWidth,10)}}while(e);if(a){e=typeof a=="string"||isElement(a)?a:a.target;if(e=I(e)){e=e.position();j-=e[0];n-=e[1]}j+=Math.round(this.offsetWidth*(a.x||0));n+=Math.round(this.offsetHeight*(a.y||0))}return[j,n]},sizes:function(){return[this.offsetWidth,this.offsetHeight]},at:function(a,e){var j=this.position(),n=this.sizes(),v=j[0];j=j[1];return a>=v&&a<v+n[0]&&e>=j&&e<j+n[1]},distance:function(a,e,j,n,v){if(typeof j!="number")j=0.5;if(typeof n!="number")n=j;if(typeof v!=
"number")v=1;j=this.position({x:j,y:n});a=j[0]-a;e=j[1]-e;return[Math.sqrt(a*a+e*e)/v,a/v,e/v]},disableSelect:function(){Event.add(this,"selectstart",function(a){return a.stop()});this.unselectable="on";this.css({MozUserSelect:"none"});return this},call:function(){var a=toArray(arguments),e=a.shift();if(typeof e=="function"||typeof(e=this[e])=="function")return e.apply(this,a);return false}})})(window,document);
var Matrix={reflectH:function(){return[-1,0,0,1]},reflectV:function(){return[1,0,0,-1]},rotate:function(b){var g=Math.rad(b);b=Math.round(Math.sin(g)*100)/100;g=Math.round(Math.cos(g)*100)/100;return[g,b,-b,g]},scale:function(b,g){return[b,0,0,is(g)?g:b]},scaleX:function(b){return[b,0,0,1]},scaleY:function(b){return[1,0,0,b]},rotateFromVector:function(b,g){return Matrix.rotate(Math.deg(Math.atan2(g,b)))},skew:function(b,g){return[1,Math.tan(Math.rad(g)),Math.tan(Math.rad(b)),1]},skewX:function(b){return[1,
0,Math.tan(Math.rad(b)),1]},skewY:function(b){return[1,Math.tan(Math.rad(b)),0,1]},multiply:function(b,g){return[b[0]*g[0]+b[1]*g[2],b[0]*g[1]+b[1]*g[3],b[2]*g[0]+b[3]*g[2],b[2]*g[1]+b[3]*g[3]]},blend:function(){for(var b=0,g=arguments[b++],k;k=arguments[b++];)g=Matrix.multiply(g,k);return g}};(function(b){var g=String.uniqueId(),k=0,i={},o={};b.ElementStorage={getStorage:function(m){if(m==b)m=o;else{m=m[g]||(m[g]=m=++k);m=i[m]||(i[m]={})}return m},removeStorage:function(m){if(m==b)o={};else{var r=m[g];if(r){delete i[r];try{delete m[g]}catch(x){m.removeAttribute&&m.removeAttribute(g)}}}},storeData:function(m,r,x){if(typeof m=="string"&&!x){x=r;r=m;m=b}m=ElementStorage.getStorage(m);if(x!==undefined)m[r]=x;return m[r]},retrieveData:function(m,r,x){if(!r){r=m;m=b}m=ElementStorage.getStorage(m);
return is(m[r])?m[r]:(m[r]=x)},removeData:function(m,r){var x=ElementStorage.getStorage(m);if(r){delete x[r];r=null;for(r in x)break;r||ElementStorage.removeStorage(m)}}};ElementStorage.setData=ElementStorage.storeData;ElementStorage.getData=ElementStorage.retrieveData;ElementStorage.deleteData=ElementStorage.removeData;b.attachEvent&&!b.addEventListener&&b.attachEvent("onunload",function(){for(var m in i){var r=i[m].events;if(r)try{Event.remove(r.$element)}catch(x){}}if(Agent.version<8){m=AidaElements._extended;
for(r=m.length;r>0;)delete m[--r]}});if(!b.Storage){b.Storage=function(m,r){this.prefix=m;this.time=r};b.Storage.prototype={setItem:function(m,r){return Cookie.set(this.prefix+m,r,this.time)},getItem:function(m){return Cookie.get(this.prefix+m)},clear:function(){var m=Cookie.getAll();for(var r in m)r.substr(0,3)==this.prefix&&Cookie.unset(r)}};b.sessionStorage=new Storage("ss_");b.localStorage=new Storage("ls_"+new Date/1E3+31536E3)}Storage.prototype.setObject=function(m,r){this.setItem(m,JSON.stringify(r))};
Storage.prototype.getObject=function(m){return JSON.parse(this.getItem(m))}})(window);function Event(b,g,k){this.event=b;this.element=g;this.type=k}
Event.prototype={event:null,element:null,mousePosition:function(b,g){var k,i,o,m,r=this.event;if((k=r.pageX)!==undefined&&!r.changedTouches)i=r.pageY;else{if(r.touches)r=r.touches[0];if((k=r.clientX)!==undefined&&(o=document.body)&&(m=document.documentElement)){k+=o.scrollLeft+m.scrollLeft;i=r.clientY+o.scrollTop+m.scrollTop}}return b&&(b=typeof b=="boolean"?Env.pageScroll():I(b).position(g))?[k-b[0],i-b[1]]:[k,i]},target:function(){return this.event.target||this.event.srcElement||document},relatedTarget:function(){return this.event.relatedTarget||
(this.target()==this.event.fromElement?this.event.toElement:this.event.fromElement)},withinElement:function(b){b=b?I(b):this.element;for(var g=this.relatedTarget();g&&g!=b;)g=g.parentNode;return g==b},preventDefault:function(){if(this.event.preventDefault)this.event.preventDefault();else this.event.returnValue=false;return this},stopPropagation:function(){if(this.event.stopPropagation)this.event.stopPropagation();else this.event.cancelBubble=true;this.stopped=true;return this},stopped:false,stop:function(){this.stopPropagation().preventDefault();
return false},getKey:function(){var b=this.event,g=b.which||b.keyCode||"",k=String.fromCharCode(g).toUpperCase(),i=b.shiftKey,o=b.ctrlKey,m=b.metaKey;b=b.altKey;var r,x="",w;if(r=Event.keysMap[g])if(typeof r=="string")k=r;else{k=r[0];w=r.indexOf((m?8:0)+(i?4:0)+(o?2:0)+(b?1:0));if(w>0)x=r[w+1]}return{ctrl:o,alt:b,shift:i,meta:m,code:g,key:k,chombo:x,capsLock:g>64&&g<91&&!i||g>96&&g<123&&i}},getButton:function(){var b=this.event,g=b.button,k,i,o;if(g){k=g&1;o=g&2;i=g&4}else{g=b.which;k=g==1;o=g==2;
i=g==3}return{button:g,left:k,middle:i,right:o,shift:b.shiftKey,ctrl:b.ctrlKey,alt:b.altKey,meta:b.metaKey}},getWheel:function(){var b=this.event,g=b.detail;if(g)g=-g/3;else{g=b.wheelDelta/120;if(window.opera)g=-g}return{wheel:g,shift:b.shiftKey,ctrl:b.ctrlKey,alt:b.altKey,meta:b.metaKey}},getOrientation:function(){var b=this.event,g="normal";switch(Agent.engine){case "gecko":var k=Math.round(k);switch(k){case 0:g="normal";break;case -1:g="right";break;case 1:g="left";break;case 2:g="flipped";break}return{x:b.x||
0,y:b.y||0,z:b.z||0,orientation:g};case "webkit":switch(window.orientation){case 0:g="normal";break;case -90:g="right";break;case 90:g="left";break;case 180:g="flipped";break}return{x:window.orientation/90,y:0,z:0,orientation:g}}return{x:0,y:0,z:0,orientation:"normal"}},get:function(b){return this.event[b]}};
Event.keysMap={8:"BackSpace",9:"Tab",12:"CursorCenter",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:"Space",33:"PageUp",34:"PageDown",35:["End",2,"GoToBottom"],36:["CursorHome",2,"ControlHome"],37:"CursorLeft",38:"CursorUp",39:"CursorRight",40:"CursorDown",44:"Print",45:"Insert",46:["Delete",4,"EraseField",2,"EraseEOP",1,"ClearScreen"],91:"LeftWin",92:"RightWin",96:"NumLock0",97:"NumLock1",98:"NumLock2",99:"NumLock3",100:"NumLock4",101:"NumLock5",102:"NumLock6",
103:"NumLock7",104:"NumLock8",105:"NumLock9",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",144:"NumLock",145:"ScrollLock",224:"Cmd"};
(function(b,g){function k(u){var q;if(typeof(q=b["inner"+u])=="number")return q;u="client"+u;return g.documentElement[u]||g.body[u]}function i(u,q){var y,B,D=g.body,C=g.documentElement;if(typeof(y=b["inner"+u])=="number"&&typeof(B=b["scrollMax"+q])=="number")return y+B;return Math.max(Math.max(D["scroll"+u],C["scroll"+u]),Math.max(D["offset"+u],C["offset"+u]))}var o=[],m=false,r=false,x=function(){if(!r){o.each(function(u){u.call(g)});o=null;r=true;x=Function.empty}};Event.onLoad=function(u,q){Event.add(b,
"load",u,q)};Event.onReady=function(u){if(typeof u!=="function")throw new TypeError("Argument is not a Function");if(r){u.call(g);return true}o.push(u);if(!m){if(g.addEventListener)g.addEventListener("DOMContentLoaded",Agent.engine=="presto"?function(){if(!r){for(var q=0,y=g.styleSheets,B=g.styleSheets.length;q<B;q++)if(y[q].disabled){setTimeout(arguments.callee,0);return}g.removeEventListener("DOMContentLoaded",arguments.callee,false);x()}}:function(){g.removeEventListener("DOMContentLoaded",arguments.callee,
false);x()},false);else if(g.attachEvent){g.attachEvent("onreadystatechange",function(){if(g.readyState==="complete"){g.detachEvent("onreadystatechange",arguments.callee);x()}});g.documentElement.doScroll&&b==b.top&&function(){if(!r){try{g.documentElement.doScroll("left")}catch(q){setTimeout(arguments.callee,0);return}x()}}()}Event.add(b,"load",x);m=true}return true};Event.specials={mouseenter:function(u,q,y){var B=y,D=Agent.engine=="trident";if(!D||D&&Agent.version<8){q="mouseover";B=function(C){return C.withinElement()?
true:y.call(u,C)}}return[[u,q,B]]},mouseleave:function(u,q,y){var B=y,D=Agent.engine=="trident";if(!D||D&&Agent.version<8){q="mouseout";B=function(C){return C.withinElement()?true:y.call(u,C)}}return[[u,q,B]]},mousedownlong:function(u,q,y){q=[];var B,D=true,C=y.data;q.push([u,"mousedown",function(G){D=false;B=setTimeout(function(){D=true;y.call(u,G,true)},(C||1)*1E3);return true}]);q.push([g,"mouseup",function(G){clearTimeout(B);!D&&y&&y.call(u,G,false);return D=true}]);return q},mouseoverlong:function(u,
q,y){q=[];var B=true,D=y.data;q.push([u,"mouseover",function(C){B=false;setTimeout(function(){B=true;y.call(u,C,true)},(D||1)*1E3);return true}]);q.push([u,"mouseout",function(C){clearTimeout(D);!B&&y&&y.call(u,C,false);return B=true}]);return q},focus:function(u,q,y){if(Agent.trident)q="focusin";return[[u,q,y]]},blur:function(u,q,y){if(Agent.trident)q="focusout";return[[u,q,y]]},paste:function(u,q,y){Agent.trident||(q="input");return[[u,q,y]]},orientationchange:function(u,q,y){if(Agent.gecko)q="MozOrientation";
return[[u,q,y]]},mousewheel:function(u,q,y){if(Agent.engine=="gecko")q="DOMMouseScroll";return[[u,q,y]]},domloaded:function(u,q,y){if(u==b||u==g)Event.onReady(y);return false},ready:function(u,q,y){u==b&&Event.onReady(y);return false},mousedown:function(u,q,y){if(Agent.itouch)q="touchstart";return[[u,q,y]]},mousemove:function(u,q,y){if(Agent.itouch)q="touchmove";return[[u,q,y]]},mouseup:function(u,q,y){if(Agent.itouch)q="touchend";return[[u,q,y]]}};var w=Event.specials;w.clickout=w.dblclickout=w.mousemoveout=
function(u,q,y){q=q.replace(/out$/,"");return[[g,q,function(B){var D=B.target();do if(D===u)return true;while(D=D.parentNode);return y.call(u,B)}]]};Event.add=function(u,q,y,B){if(typeof y!=="function")throw new TypeError("Argument #2 is not a Function!");if(!(u=I(u)))throw new TypeError("Argument #0 is not an Element!");if(Agent.engine=="trident"&&u.setInterval)u=b;if(!u.eventsUID)u.eventsUID=Event.eventsUID++;if(!y.eventsUID)y.eventsUID=Event.eventsUID++;if(B!==undefined){y=Event.proxy(y);y.data=
B}var D=ElementStorage.retrieveData(u,"events")||ElementStorage.storeData(u,"events",{$element:u});q.split(/[^a-zA-Z]+/g).each(function(C){C=C.toLowerCase().replace(/^on/,"");var G=D[C]||(D[C]={}),J=Event.getKey(u,C,y),L=Event.getRules(u,C,y);if(L){L.each(function(a){var e=a[0],j=a[1],n=a[2],v=function(A){return n.call(e,new Event(A||Window.window(e).event,e,C))};if(e.addEventListener)e.addEventListener(j,v,false);else e.attachEvent&&e.attachEvent("on"+j,v);a[2]=v});G[J]=L}});return true};Event.addLive=
function(u,q,y,B){var D=function(C){for(var G=$(q,u),J=C.target();J;){if(G.indexOf(J)>-1){B.apply(J,arguments);if(C.stopped)break}J=I(J.parentNode)}};Event.add(u,y,D);return D};Event.remove=function(u,q,y){if(!(u=I(u)))throw new TypeError("Argument #0 is not an Element!");var B=ElementStorage.retrieveData(u,"events");if(B)if(q)q.split(/[^a-zA-Z]+/gi).each(function(D){D=D.toLowerCase().replace(/^on/,"");var C=B[D];if(C)if(y){var G=Event.getKey(u,D,y);if(D=C[G]){D.each(function(J){var L=J[0],a=J[1];
J=J[2];if(L.removeEventListener)L.removeEventListener(a,J,false);else L.detachEvent&&L.detachEvent("on"+a,J)});delete C[G]}}else{for(G in C)Event.remove(u,D,G.split("|").pop());delete B[D]}});else for(q in B)Event.remove(u,q)};Event.get=function(u,q){if(!(u=I(u)))throw new TypeError("Argument #0 is not an Element!");var y={};q.split(/[^a-zA-Z]+/gi).each(function(B){B=B.toLowerCase().replace(/^on/,"");var D=ElementStorage.retrieveData(u,"events"),C;if(D)C=D[B];y[B]=C||{}});return y};Event.proxy=function(u,
q){q=q||function(){return u.apply(this,arguments)};q.eventsUID=u.eventsUID=u.eventsUID||q.eventsUID||Event.eventsUID++;return q};Event.getRules=function(u,q,y){if(w[q])return w[q](u,q,y);return[[u,q,y]]};Event.getKey=function(u,q,y){return[u.eventsUID,q,typeof y=="function"?y.eventsUID:y].join("|")};var z={DOMFocusIn:"UIEvent",DOMFocusOut:"UIEvent",DOMActivate:"UIEvent",focus:"UIEvent",blur:"UIEvent",click:"MouseEvent",mousedown:"MouseEvent",mouseup:"MouseEvent",mouseover:"MouseEvent",mousemove:"MouseEvent",
mouseout:"MouseEvent",keydown:"KeyboardEvent",keyup:"KeyboardEvent",textInput:"TextEvent",DOMSubtreeModified:"MutationEvent",DOMNodeInserted:"MutationEvent",DOMNodeRemoved:"MutationEvent",DOMNodeRemovedFromDocument:"MutationEvent",DOMNodeInsertedIntoDocument:"MutationEvent",DOMAttrModified:"MutationEvent",DOMCharacterDataModified:"MutationEvent",DOMElementNameChanged:"MutationNameEvent",DOMAttributeNameChanged:"MutationNameEvent",load:"Event",unload:"Event",abort:"Event",error:"Event",select:"Event",
change:"Event",submit:"Event",reset:"Event",resize:"Event",scroll:"Event",dataavailable:"HTMLEvents"};Event.create=function(u,q){var y,B;if(g.createEvent){u=(u||"dataavailable").replace(/^on/,"");B=z[u]||"Event";y=g.createEvent(B);q=Object.extend({altKey:false,bubbles:true,button:0,cancelable:true,charCode:0,clientX:0,clientY:0,ctrlKey:false,currentTarget:null,detail:0,eventPhase:null,isChar:false,keyCode:0,layerX:0,layerY:0,metaKey:false,pageX:0,pageY:0,relatedTarget:null,screenX:0,screenY:0,shiftKey:false,
target:null,timeStamp:0,type:"",view:b,which:0},q||{});switch(B){case "HTMLEvents":case "Event":case "Events":y.initEvent(u,q.bubbles,q.cancelable);break;case "UIEvent":y.initUIEvent(u,q.bubble,q.cancelable,q.view,q.detail);break;case "MouseEvent":y.initMouseEvent(u,q.bubble,q.cancelable,q.view,q.detail,q.screenX,q.screenY,q.clientX,q.clientY,q.ctrlKey,q.altKey,q.shiftKey,q.metaKey,q.button,q.relatedTarget);break;case "KeyboardEvent":y.initKeyEvent(u,q.bubble,q.cancelable,q.view,q.ctrlKey,q.altKey,
q.shiftKey,q.metaKey,q.keyCode,q.charCode);break;case "MutationEvent":y.initMutationEvent(u,q.bubble,q.cancelable,q.relatedNode,q.prevValue,q.newValue,q.attrName,q.attrChange);break;case "MutationNameEvent":y.initMutationNameEvent(u,q.bubble,q.cancelable,relatedNode,prevNamespaceUri,prevNodeName);break;case "TextEvent":y.initTextEvent(u,q.bubble,q.cancelable,q.view,q.data);break;case "PopupBlocked":y.initPopupBlockedEvent();break;case "XULCommandEvent":y.initCommandEvent();break}}else if(g.createEventObject){y=
g.createEventObject();q&&Object.extend(y,q)}return y};Event.fire=function(u,q,y){u=I(u);if(u==g&&g.createEvent&&!u.dispatchEvent)u=g.documentElement;q=(q||"dataavailable").replace(/^on/,"");y=Event.create(q,y);if(g.createEvent)u.dispatchEvent(y);else g.createEventObject&&u.fireEvent("on"+q,y);return y};AidaElements.implement({addEvent:function(u,q,y){Event.add(this,u,q,y);return this},removeEvent:function(u,q){Event.remove(this,u,q);return this},getEvent:function(u){return Event.getEvent(this,u)},
fireEvent:function(u,q){return Event.fire(this,u,q)}});b.addEvent=g.addEvent=function(u,q,y){Event.add(this,u,q,y);return this};b.removeEvent=g.removeEvent=function(u,q,y){Event.remove(this,u,q,y);return this};b.Env={dpi:function(){var u=this._dpi;if(u)return u;if(!(u=screen.logicalXDPI)){var q=N(["div",{style:{position:"absolute",left:"-1000px",top:"-1000px",visibility:"hidden",width:"1in",height:"1in"}}],g.body);u=q.offsetHeight;q.remove()}return this._dpi=u=u||96},scrollbarSize:function(){var u=
this._scrollbarSize;if(u)return u;var q=N(["div",{style:{position:"absolute",left:"-1000px",top:"-1000px",visibility:"hidden",width:"50px",height:"50px",overflow:"hidden"}}],g.body);u=parseInt(q.clientWidth,10);q.css("overflow","scroll");this._scrollbarSize=u=u-=parseInt(q.clientWidth,10);q.remove();return u},viewWidth:function(){return k("Width")},viewHeight:function(){return k("Height")},viewSize:function(){return[k("Width"),k("Height")]},scrollWidth:function(){var u=g.body,q=g.documentElement;
return b.pageXOffset||u.scrollLeft||q.scrollLeft||0},scrollHeight:function(){var u=g.body,q=g.documentElement;return b.pageYOffset||u.scrollTop||q.scrollTop||0},pageScroll:function(){return[Env.scrollWidth(),Env.scrollHeight()]},maxScrollWidth:function(){return i("Width","X","Left")-k("Width")},maxScrollHeight:function(){return i("Height","Y","Top")-k("Height")},maxScroll:function(){return[i("Width","X","Left")-k("Width"),i("Height","Y","Top")-k("Height")]},pageWidth:function(){return i("Width","X",
"Left")},pageHeight:function(){return i("Height","Y","Top")},pageSize:function(){return[i("Width","X","Left"),i("Height","Y","Top")]},viewBounds:function(){var u=Env.viewSize(),q=Env.pageScroll();q[2]=q[0]+u[0];q[3]=q[1]+u[1];return q},viewCenter:function(u,q,y,B){var D=Env.viewSize(),C=Env.pageScroll();if(u instanceof Array||isElement(u)&&(u=I(u).sizes())){B=y;y=q;q=u[1];u=u[0]}return[Math.round((D[0]-(u||0))*(y||0.5))+C[0],Math.round((D[1]-(q||0))*(B||0.5))+C[1]]},gridPosition:function(u,q,y){var B=
Env.clientSizes(),D=(y||(y={})).cols,C=y.rows,G=y.width;y=y.height;var J=0,L=0,a=0;G=D?B[0]/D:G||50;for(y=C?B[1]/C:y||50;G*J<=u;)L=J++;for(J=0;y*J<=q;)a=J++;return[L,a]},generateGrid:function(u,q,y,B){for(var D=0,C=0,G=0,J=0,L=[];D<y;D++,C++){G=u*C;if(G+u>B){G=C=0;J+=q}L[D]=[G,J]}return L},gridCoords:function(u,q,y,B){B=Math.floor(B/u);return[y%B*u,Math.floor(y/B)*q]},star:function(u,q,y,B){q=q||5;B=B||0;var D=Math.PI*2,C=D/q,G=0,J=[];for(D=D/4;G<q;)J.push(Math.angleCoords(-D+C*++G+B,u));if(y){u=
C/2;for(G=0;G<q;)J.push(Math.angleCoords(-D+C*++G+u+B,y))}return J},positionRatio:function(u,q,y){if(!y)return q/u;y=y.bound(0,1);y=q*y;q=q-y;return u<y?u/y-1:u>y?(u-y)/q:0},getAllImages:function(){for(var u=g.getElementsByTagName("*"),q,y=0,B=[],D;q=u[y++];){if(q.tagName.toLowerCase()=="img")(D=q.src)&&B.push(D);(D=q.css("backgroundImageUrl"))&&D!="none"&&B.push(D)}return B.unique()},scroll:function(u){var q=Env.pageScroll(),y=q[0],B=q[1];q=u.x||u.left;var D=u.y||u.top;q=Env.validateScroll(is(q)?
q:y,is(D)?D:B);var C=q[0]-y,G=q[1]-B,J=u.effect||EE.linear;q=new Cinematic(function(L,a){b.scrollTo(J(L,y,C,a),J(L,B,G,a))},u);u.noStart||q.start();return q},validateScroll:function(u,q){var y=Env.maxScroll();return[Math.min(u||0,y[0]),Math.min(q||0,y[1])]},coordsToBounds:function(u,q,y,B,D,C){return[B,y+D,B+C,y]},boundsToCoords:function(u,q,y,B,D,C){return[C,y,B-C,D-y]}}})(window,document);var Require={};
Require.JS=function(){var b={},g={},k={},i=document.getElementsByTagName("head")[0],o=function(r,x){k[r].each(function(w){w[0].call(w[1])});x.onreadystatechange=x.onload=null;x.parentNode.removeChild(x);g[r]=true;k[r]=x=undefined},m=function(r,x,w){if(b[r]){if(x)g[r]?x():k[r].push([x,w]);return true}k[r]=[];x&&k[r].push([x,w]);var z=document.createElement("script"),u;z.src=r;z.type="text/javascript";z.defer="defer";if(Agent.engine=="trident")z.onreadystatechange=function(){if("loaded,complete".has(z.readyState))if(!u){o(r,
z);u=true;z=undefined}};else{Agent.engine=="webkit"&&function(){if(!u)if("loaded,complete".has(z.readyState)){o(r,z);u=true;z=undefined}else setTimeout(arguments.callee,20)}();z.onload=function(){if(!u){o(r,z);u=true;z=undefined}}}i.appendChild(z);return b[r]=true};m.required=function(r){return!!b[r]};m.more=function(r,x){r instanceof Array||(r=[r]);if(typeof x=="function")x={onComplete:x};var w=r.length,z=0,u=Function.empty,q=x.onProgress||u,y=x.onComplete||u,B=x.bind;(x.onStart||u).call(B,z,w);
if(Agent.trident){function D(C){var G=u,J,L;if(C=="object"){G=C.onload||u;J=C.bind;L=C.once;C=C.url}Require.JS(C,function(){G.call(J||B||this,z,w);q.call(J||B||this,z,w);++z<w?D(r[z]):y.call(J||B||this,w)},null,L)}D(r[z])}else r.each(function(C){var G=u,J,L;if(C=="object"){G=C.onload||u;J=C.bind;L=C.once;C=C.url}Require.JS(C,function(){G.call(J||B||this,z,w);q.call(J||B||this,z,w);if(++z>=w)y.call(J||B||this,w)},null,L)})};return m}();
Require.module=function(b,g,k){if(typeof b=="string"&&b.indexOf(",")>-1)b=b.split(",");if(b instanceof Array){for(var i=0,o=b.length;i<o;){b[i]=AIDAJS.baseUrl+"/"+b[i].replace(".","/")+".js";++i}return Require.JS.more(b,{onComplete:g,bind:k})}return Require.JS(AIDAJS.baseUrl+"/"+b.replace(".","/")+".js",g,k)};
Require.CSS=function(){var b={},g={},k={},i=function(m,r){k[m].each(function(x){x[0].call(x[1]||r)});g[m]=true;delete k[m]},o=function(m,r,x){var w=b[m],z;if(w){if(r)g[m]?r():k[m].push([r,x]);return w}k[m]=[];r&&k[m].push([r,x]);w=document.createElement("link");w.href=m;w.type="text/css";w.rel="stylesheet";w.media="all";if(k[m].length)if("webkit,gecko".has(Agent.engine))(function(){if(!z){i(m);z=true}})();else{w.onreadystatechange=function(){if("loaded,complete".has(w.readyState))if(!z){i(m);z=true}};
w.onload=function(){if(!z){i(m);z=true}}}document.getElementsByTagName("head")[0].appendChild(w);return b[m]=w};o.required=function(m){return b[m]?true:false};return o}();
Require.Image=function(){var b=function(g){var k=new Image,i=Function.empty,o=g.onLoad||i;k.onload=function(){var m=arguments.callee;if(m.done)return false;m.done=true;this.onload=null;return o.call(this)};k.onerror=g.onerror||i;k.onabort=g.onabort||i;k.src=g.url;return k};b.more=function(g,k){isArray(g)||(g=[g]);var i=g.length,o=0,m=[],r=Function.empty,x=k.onProgress||r,w=k.onComplete||r;(k.onStart||r).call(g[0],0,i);g.each(function(z){if(typeof z!="object")z={url:z};var u=z.onLoad||r,q=z.onError||
r,y=z.onabort||r;z.onload=function(B){u.call(this,B);o++;x.call(this,o,i);o==i&&w.call(this,i)};z.onerror=function(B){q.call(this,B);o++;x.call(this,o,i);o==i&&w.call(this,i)};z.onabort=function(B){y.call(this,B);o++;x.call(this,o,i);o==i&&w.call(this,i)};m.push(Require.Image(z))});return m};return b}();
var Sort={random:function(){return 0.5-Math.random()},number:function(b,g){return b-g},numberDesc:function(b,g){return g-b},string:function(b,g){b=(b+"").toLowerCase();g=(g+"").toLowerCase();return b<g?-1:b>g?1:0},stringDesc:function(b,g){b=(b+"").toLowerCase();g=(g+"").toLowerCase();return b<g?1:b>g?-1:0},date:function(b,g){return b.getTime()-g.getTime()},dateDesc:function(b,g){return g.getTime()-b.getTime()},natural:function(b,g){b+="";g+="";for(var k=function(u,q){for(var y=0,B=0,D=0,C,G,J,L;;){C=
u.charAt(B++);G=q.charAt(D++);J=C.digitChar();L=G.digitChar();if(!J&&!L)return y;else if(J)if(L)if(C<G){if(y===0)y=-1}else if(C>G){if(y===0)y=+1}else{if(C===0&&G===0)return y}else return+1;else return-1}},i=0,o=0,m,r,x,w,z;;){for(m=r=0;(x=b.charAt(i++))&&(x.whiteSpaceChar()||x=="0");)m=x=="0"?m+1:0;for(;(w=g.charAt(o++))&&(w.whiteSpaceChar()||w=="0");)r=w=="0"?r+1:0;if(x.digitChar()&&w.digitChar()&&(z=k(b.substring(i),g.substring(o)))!==0)return z;if(x===0&&w===0)return m-r;if(x<w)return-1;else if(x>
w)return+1}}},Window={open:function(b,g){g||(g={});var k=g.name||"win_"+String.random(),i=g.width,o=g.height,m=screen.availWidth,r=screen.availHeight,x=screen.width,w=screen.height,z=0,u=0,q="";if(g.fullscreen){i=m;o=r}if(g.center){u=Math.floor((r-(o||r))/2)-(w-r);z=Math.floor((m-(i||m))/2)-(x-m)}if(i)q+="width="+i+",";if(o)q+="height="+o+",";q+="screenx="+z+",screeny="+u+",left="+z+",top="+u+",";if(g.scrollbars)q+="scrollbars=1,";if(g.menubar)q+="menubar=1,";if(g.locationbar)q+="location=1,";if(g.resizable)q+=
"resizable=1,";this.name=k;return window.open(b,k,q)},window:function(b){b=I(b);return b.contentWindow||b.defaultView||b.parentWindow||window},document:function(b){b=I(b);b=b.contentWindow||b.defaultView||b.contentDocument||b.document||document;return b.document||b},focus:function(b){(b=I(b)).contentWindow?b.contentWindow.focus():b.focus()}},Cookie={set:function(b,g,k,i,o,m,r){if(is(k))k instanceof Date||(k=new Date(k*1E3));document.cookie=b+"="+escape(g||"")+(k?"; expires="+k.toGMTString():"")+(i?
"; path="+i:"")+(o?"; domain="+o:"")+(o?"; secure":"")+(r?"; HttpOnly":"")},getAll:function(){for(var b=document.cookie.split(";"),g=0,k=b.length,i={};g<k;g++){c=b[g].split("=");i[c[0]]=unescape(c[1])}return i},get:function(b){return(b=(document.cookie+"").match(new RegExp("(?:^|;)\\s*"+b+"=([^;]*)")))&&is(b[1])?unescape(b[1]):null},unset:function(b){(b||(b={})).expire=-30000000;Cookie.set(b)}};function Cinematic(b,g){this._init(b,g)}
Cinematic.prototype={_interval:null,_func:"",_stepTime:0,step:0,wait:0,_init:function(b,g){if(typeof b!="function"){g=b||{};b=g.onFrame}g=g||{};b=b||Function.empty;var k=g.fps||25,i=Math.floor((g.time||1)*k),o=g.effect||EE.linear,m=this,r=g.target||this,x=g.onStart||Function.empty,w=g.onChange||Function.empty,z=g.onFinish||Function.empty;this.loops=g.loops||1;this.wait=g.wait||0;this._func=function(){var u=m.step,q=o(u,0,1,i);q=[u,i,q,m];if(u===0){m.loops--;x.apply(r,q)}b.apply(r,q)&&w.apply(r,q);
if(m.step>=i){if(m.loops>0)m.step=0;else clearInterval(m._interval);z.apply(r,q)}else m.step++};this._stepTime=(1E3/k).round()},start:function(){var b=this;setTimeout(function(){b._interval=setInterval(b._func,b._stepTime)},(this.step===0?this.wait:0)*1E3)},pause:function(){clearInterval(this._interval)},stop:function(){this.pause();this.reset()},reset:function(){this.step=0},oneStep:function(){this._func()}};function Point(b,g){this.set(b,g)}
Point.prototype={x:0,y:0,set:function(b,g){switch(getType(b)){case "string":case "element":b=I(b).position(g);case "array":g=b[1];b=b[0];break;case "object":g=b.y;b=b.x;break}this.x=this[0]=b||0;this.y=this[1]=g||0},copy:function(){return new Point(this)},add:function(b,g){if(g){this.x+=b.x;this.y+=b.y;return this}return new Point(this.x+b.x,this.y+b.y)},sub:function(b,g){if(g){this.x-=b.x;this.y-=b.y;return this}return new Point(this.x-b.x,this.y-b.y)},mul:function(b){if(self){this.x*=b;this.y*=
b;return this}return new Point(this.x*b,this.y*b)},div:function(b){if(self){this.x/=b;this.y/=b;return this}return new Point(this.x/b,this.y/b)},toArray:function(){return[this.x,this.y]},toString:function(){return this.x+", "+this.y},distance:function(b){var g=this.x,k=this.y,i=b.x;b=b.y;i=i>g?i-g:g-i;b=b>k?b-k:k-b;return Math.sqrt(i*i+b*b)},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}};function Url(b,g){this.set(b,g)}
Url.prototype={scheme:"",host:"",port:"",user:"",pass:"",path:"",query:"",fragment:"",extension:"",relative:false,set:function(b,g){switch(typeof b){case "string":if(b=b.match(Url.URL_EREG)){var k,i,o;this.scheme=k=b[1]||"";this.user=b[2]||"";this.pass=b[3]||"";this.host=i=b[4]||"";this.port=b[5]||"";this.path=o=b[6]||"";this.query=b[7]||"";this.fragment=b[8]||"";if(!k){o=i+o;this.host=i=""}if(!i)this.relative=true;if(this.relative&&g){g=typeof g!="string"?document.location+"":g;b=new Url(g,false);
g=o.substr(0,1);this.relativeTo=b;if(g!="/"){var m=b.path.split("/"),r,x=m[m.length-1];if(!x||x.has("."))m.pop();if(o.substr(0,2)==".."&&((r=o.substr(2,1))=="/"||!r))o=o.substr(2);else if(g=="."&&((r=o.substr(1,1))=="/"||!r))o=o.substr(1);if(o.substr(0,1)!="/")o="/"+o;o=m.join("/")+o}if(!i)this.host=b.host;if(!k)this.scheme=b.scheme;this.path=o}if(this.path=o=o.replace("/./","/").replace(/\/+/,"/").replace(/\/[^\/]*[^\/\.]+[^\/]*\/..\//i,"/"))this.extension=o.split("/").pop().split(".").pop()||"";
return true}break}return false},getDirUrl:function(){var b="",g;if(g=this.scheme)b+=g=="mailto"?g+":":g+"://";if(g=this.path)b+=g;return b},toString:function(){var b="",g;if(g=this.scheme)b+=g=="mailto"?g+":":g+"://";if(g=this.user){b+=g;if(g=this.pass)b+=":"+g;b+="@"}b+=this.host;if(g=this.port)b+=":"+g;if(g=this.path)b+=g;if(g=this.query)b+="?"+g;if(g=this.fragment)b+="#"+g;return b},getParams:function(){for(var b=this.query.split("&"),g=b.length,k={},i;g;)if(i=b[--g]){i.split("=");k[p[0]]=p[1]||
""}return k}};Url.URL_EREG=/^(?:([a-z]+):(?:\/\/)?)?(?:([^:]+):?([^@]+)@)?([a-z0-9\.-]+)?(?::([0-9]+))?(\/[^\?#]*)(?:\?([^#]*))?(?:#(.*))?$/i;Url.isUrl=function(b){return b.match(Url.URL_EREG)};
Url.anchors=function(b){var g=b.all,k=b.extensions,i=b.externals,o=b.internals,m=b.hosts,r=b.schemes,x=new Url(document.location+""),w=x.host,z=b.attribute||"href";(b.elements||$("a",b.parent)).each(function(u){var q=u.get(z);if(q){q=new Url(q,true);var y=q.extension,B=q.host,D=q.scheme,C;g&&g.call(u,q,x);if(k&&y&&(C=k[y]))C.call(u,q,x);i&&B!=w&&i.call(u,q,x);o&&B==w&&o.call(u,q,x);if(m&&(C=m[B]))C.call(u,q,x);if(r&&(C=r[D]))C.call(u,q,x)}})};
function Color(b){this.blue=this.green=this.red=0;this.alpha=1;this.set(b)}
Color.prototype={set:function(b){if(b){var g=0,k=0,i=0,o=1;if(typeof b=="string"){b=b.replace(/[\s]+/g,"");var m,r=Color.names;if(b.match(/^[a-z]+$/gi)){b=b.toLowerCase();for(m in r)if(b==m.toLowerCase()){b=r[m];break}}if(b.match(/^#[0-9A-F]{3,8}$/gi)){switch(b.length){case 4:case 5:g=b.substring(1,2);k=b.substring(2,3);i=b.substring(3,4);o=b.substring(4,5);g+=g;k+=k;i+=i;o+=o;break;default:case 7:case 9:g=b.substring(1,3);k=b.substring(3,5);i=b.substring(5,7);o=b.substring(7,9);break}g=g.toInt(16);
k=k.toInt(16);i=i.toInt(16);o=(o||"FF").toInt(16)/255}else if((m=b.match(/rgb\(([0-9]+%?),([0-9]+%?),([0-9]+%?)\)/i))||(m=b.match(/rgba\(([0-9]+%?),([0-9]+%?),([0-9]+%?),([0-9\.]+%?)\)/i))){g=m[1];k=m[2];i=m[3];o=m[4];g=g.toInt()*(g.has("%")?2.55:1);k=k.toInt()*(k.has("%")?2.55:1);i=i.toInt()*(i.has("%")?2.55:1);o=o?o.has("%")?o.toInt()/100:o.toFloat():1}else if((m=b.match(/cmyk\(([0-9]+%?),([0-9]+%?),([0-9]+%?),([0-9]+%?)\)/i))||(m=b.match(/cmyka\(([0-9]+%?),([0-9]+%?),([0-9]+%?),([0-9]+%?),([0-9\.]+%?)\)/i))){i=
m[3];r=m[4];b=m[1];m=m[2];b=b.toInt()*(b.has("%")?2.55:1);m=m.toInt()*(m.has("%")?2.55:1);i=i.toInt()*(i.has("%")?2.55:1);r=(255-r.toInt()*(r.has("%")?2.55:1))/255;g=(255-b)*r;k=(255-m)*r;i=(255-i)*r;o=o?o.has("%")?o.toInt()*2.55:o.toFloat():1}else if((m=b.match(/hsl\(([0-9]+),*([0-9]+)%,*([0-9]+)%\)/i))||(m=b.match(/hsla\(([0-9]+),*([0-9]+)%,*([0-9]+)%,([0-9\.]+%?)\)/i)))return this.fromHSL(m[1].toInt(),m[2].toInt(),m[3].toInt(),m[4]);else if((m=b.match(/hsv\(([0-9]+),*([0-9]+)%,*([0-9]+)%\)/i))||
(m=b.match(/hsva\(([0-9]+),*([0-9]+)%,*([0-9]+)%,([0-9\.]+%?)\)/i)))return this.fromHSV(m[1].toInt(),m[2].toInt(),m[3].toInt(),m[4])}else if(b instanceof Array){g=b[0];k=b[1];i=b[2];o=b[3];is(o)||(o=1)}else if(b.red||b.green||b.blue||b.alpha){g=b.red;k=b.green;i=b.blue;o=b.alpha}this.red=(!isNaN(g)?g:255).bound(0,255).round();this.green=(!isNaN(k)?k:255).bound(0,255).round();this.blue=(!isNaN(i)?i:255).bound(0,255).round();this.alpha=(!isNaN(o)?o:1).bound(0,1);return true}return false},media:function(){var b=
arguments,g=b.length,k,i,o=0,m=0,r=0;for(k=g-1;k>=0;k--){i=new Color(b[k]);o+=i.red;m+=i.green;r+=i.blue}this.set([o/g,m/g,r/g])},decHex:function(b){b=Math.round(b).bound(0,255);return(b<16?"0":"")+b.toString(16)},hex:function(b){return("#"+this.decHex(this.red)+this.decHex(this.green)+this.decHex(this.blue)+(b?this.decHex(this.alpha*255):"")).toUpperCase()},hexa:function(){return this.hex(true)},ahex:function(){return("#"+this.decHex(this.alpha*255)+this.decHex(this.red)+this.decHex(this.green)+
this.decHex(this.blue)).toUpperCase()},rgb:function(){return"rgb("+this.red+", "+this.green+", "+this.blue+")"},rgba:function(){return"rgba("+this.red+", "+this.green+", "+this.blue+", "+this.alpha.round(2)+")"},fromHSL:function(b,g,k,i){b/=360;g/=100;k/=100;var o=function(m,r,x){if(x<0)x+=1;if(x>1)x-=1;if(x*6<1)return m+(r-m)*x*6;if(x*2<1)return r;if(x*3<2)return m+(r-m)*(2/3-x)*6;return m};g=k<=0.5?k*(g+1):k+g-k*g;k=k*2-g;i+="";this.red=o(k,g,b+1/3)*255;this.green=o(k,g,b)*255;this.blue=o(k,g,b-
1/3)*255;this.alpha=i?i.has("%")?i.toInt()*2.55:i.toFloat():1},toHSL:function(){var b=this.red/255,g=this.green/255,k=this.blue/255,i,o,m,r,x;l=s=h=0;i=Math.max(b,g,k);o=Math.min(b,g,k);l=(o+i)/2;if(l<=0)return[h*360,s*100,l*100];s=m=i-o;if(s>0)s/=l<=0.5?i+o:2-i-o;else return[h*360,s*100,l*100];r=(i-b)/m;x=(i-g)/m;m=(i-k)/m;h=b==i?g==o?5+m:1-x:g==i?k==o?1+r:3-m:b==o?3+x:5-r;h/=6;return[h*360,s*100,l*100]},setHue:function(b){b=parseFloat(b,10).bound(0,360);var g=this.toHSL();this.fromHSL(b,g[1],g[2],
this.alpha)},setSaturation:function(b){b=parseFloat(b,10).bound(0,100);var g=this.toHSL();this.fromHSL(g[0],b,g[2],this.alpha)},setLightness:function(b){b=parseFloat(b,10).bound(0,100);var g=this.toHSL();this.fromHSL(g[0],g[1],b,this.alpha)},fromHSV:function(b,g,k,i){b%=360;g/=100;k/=100;var o;if(g===0)o=g=k=k;else{b/=60;o=Math.floor(b);var m=b-o;b=k*(1-g);var r=k*(1-g*m);m=k*(1-g*(1-m));switch(o){case 0:o=k;g=m;k=b;break;case 1:o=r;g=k;k=b;break;case 2:o=b;g=k;k=m;break;case 3:o=b;g=r;k=k;break;
case 4:o=m;g=b;k=k;break;default:o=k;g=b;k=r}}o*=255;g*=255;k*=255;i=i?i.has("%")?i.toInt()*2.55:i.toFloat():1;this.red=(!isNaN(o)?o:255).bound(0,255).round();this.green=(!isNaN(g)?g:255).bound(0,255).round();this.blue=(!isNaN(k)?k:255).bound(0,255).round();this.alpha=(!isNaN(i)?i:1).bound(0,1)},toHSV:function(){var b=this.red,g=this.green,k=this.blue,i=Math.max(b,g,k),o=Math.min(b,g,k);if(o==i)o=b=0;else{var m=i-o;o=m/i;b=b==i?(g-k)/m:g==i?2+(k-b)/m:4+(b-g)/m;b/=6;if(b<0)b+=1;if(b>1)b-=1}return[b*
360,o*100,i/255*100]},sepia:function(){var b=this.red,g=this.green,k=this.blue;return new Color([(b*0.393+g*0.769+k*0.189).round(),(b*0.349+g*0.686+k*0.168).round(),(b*0.272+g*0.534+k*0.131).round(),this.alpha])},negative:function(){return new Color([255-this.red,255-this.green,255-this.blue,this.alpha])},grayscale:function(b){var g=this.red,k=this.blue,i=this.green;switch(b){case 1:case "SimpleAverage":b=[((g+k+i)/3).round(),((g+k+i)/3).round(),((g+k+i)/3).round()];break;case 2:case "WeightAverage":b=
[(3*g+4*i+2*k/9).round(),(3*g+4*i+2*k/9).round(),(3*g+4*i+2*k/9).round()];break;case 3:case "CCIRRec709":b=[(0.2125*g+0.7154*k+0.0721*i).round(),(0.2125*g+0.7154*k+0.0721*i).round(),(0.2125*g+0.7154*k+0.0721*i).round()];break;default:case 4:case "NtscPal":b=[(0.299*g+0.587*k+0.114*i).round(),(0.299*g+0.587*k+0.114*i).round(),(0.299*g+0.587*k+0.114*i).round()];break}b[3]=this.alpha;return new Color(b)},colorize:function(b){b=new Color(b);var g=this.red,k=this.green,i=this.blue,o=b.red,m=b.green;b=
b.blue;return new Color([(g*(o/255)+k*(o/255)+i*(o/255)).round(),(g*(m/255)+k*(m/255)+i*(m/255)).round(),(g*(b/255)+k*(b/255)+i*(b/255)).round(),this.alpha])},color:function(b){var g=this.red,k=this.green,i=this.blue;b=new Color(b);return new Color([g+(g/100*b.red).round(),k+(k/100*b.green).round(),i+(i/100*b.blue).round(),this.alpha])},contrast:function(b){var g=function(k){return((k/255-0.5)*(1+(b/100).pow(2))+0.5)*255};return new Color([g(this.red),g(this.green),g(this.blue),this.alpha])},brightness:function(b,
g){return new Color([this.red+(2.55*g).round(),this.green+(2.55*g).round(),this.red+(2.55*g).round(),this.alpha])},alphaBlending:function(b){b=new Color(b);return new Color([(1-this.alpha)*b.red+this.alpha*this.red,(1-this.alpha)*b.green+this.alpha*this.green,(1-this.alpha)*b.blue+this.alpha*this.blue,Math.max(b.alpha,this.alpha)+Math.min(b.alpha,this.alpha)/2])},toString:function(){return this.hex()}};Color.hex=function(b){return(new Color(b)).hex()};Color.isColor=function(b){return b.match(/((rgb|rgba|hsl|hsla|cmyk|cmyka)\([0-9]%?,[\s]*[0-9]+%?,[\s]*[0-9]+%?(,[\s]*[0-9\.]+)?\)|#[0-9A-F]{3,8})/gi)};
Color.names={Jiki:"#009999",AliceBlue:"#F0F8FF",AntiqueWhite:"#FAEBD7",Aqua:"#00FFFF",Aquamarine:"#7FFFD4",Azure:"#F0FFFF",Beige:"#F5F5DC",Bisque:"#FFE4C4",Black:"#000000",BlanchedAlmond:"#FFEBCD",Blue:"#0000FF",BlueViolet:"#8A2BE2",Brown:"#A52A2A",BurlyWood:"#DEB887",CadetBlue:"#5F9EA0",Chartreuse:"#7FFF00",Chocolate:"#D2691E",Coral:"#FF7F50",CornflowerBlue:"#6495ED",Cornsilk:"#FFF8DC",Crimson:"#DC143C",Cyan:"#00FFFF",DarkBlue:"#00008B",DarkCyan:"#008B8B",DarkGoldenRod:"#B8860B",DarkGray:"#A9A9A9",
DarkGrey:"#A9A9A9",DarkGreen:"#006400",DarkKhaki:"#BDB76B",DarkMagenta:"#8B008B",DarkOliveGreen:"#556B2F",Darkorange:"#FF8C00",DarkOrchid:"#9932CC",DarkRed:"#8B0000",DarkSalmon:"#E9967A",DarkSeaGreen:"#8FBC8F",DarkSlateBlue:"#483D8B",DarkSlateGray:"#2F4F4F",DarkSlateGrey:"#2F4F4F",DarkTurquoise:"#00CED1",DarkViolet:"#9400D3",DeepPink:"#FF1493",DeepSkyBlue:"#00BFFF",DimGray:"#696969",DimGrey:"#696969",DodgerBlue:"#1E90FF",FireBrick:"#B22222",FloralWhite:"#FFFAF0",ForestGreen:"#228B22",Fuchsia:"#FF00FF",
Gainsboro:"#DCDCDC",GhostWhite:"#F8F8FF",Gold:"#FFD700",GoldenRod:"#DAA520",Gray:"#808080",Grey:"#808080",Green:"#008000",GreenYellow:"#ADFF2F",HoneyDew:"#F0FFF0",HotPink:"#FF69B4",IndianRed:"#CD5C5C",Indigo:"#4B0082",Ivory:"#FFFFF0",Khaki:"#F0E68C",Lavender:"#E6E6FA",LavenderBlush:"#FFF0F5",LawnGreen:"#7CFC00",LemonChiffon:"#FFFACD",LightBlue:"#ADD8E6",LightCoral:"#F08080",LightCyan:"#E0FFFF",LightGoldenRodYellow:"#FAFAD2",LightGray:"#D3D3D3",LightGrey:"#D3D3D3",LightGreen:"#90EE90",LightPink:"#FFB6C1",
LightSalmon:"#FFA07A",LightSeaGreen:"#20B2AA",LightSkyBlue:"#87CEFA",LightSlateGray:"#778899",LightSlateGrey:"#778899",LightSteelBlue:"#B0C4DE",LightYellow:"#FFFFE0",Lime:"#00FF00",LimeGreen:"#32CD32",Linen:"#FAF0E6",Magenta:"#FF00FF",Maroon:"#800000",MediumAquaMarine:"#66CDAA",MediumBlue:"#0000CD",MediumOrchid:"#BA55D3",MediumPurple:"#9370D8",MediumSeaGreen:"#3CB371",MediumSlateBlue:"#7B68EE",MediumSpringGreen:"#00FA9A",MediumTurquoise:"#48D1CC",MediumVioletRed:"#C71585",MidnightBlue:"#191970",MintCream:"#F5FFFA",
MistyRose:"#FFE4E1",Moccasin:"#FFE4B5",NavajoWhite:"#FFDEAD",Navy:"#000080",OldLace:"#FDF5E6",Olive:"#808000",OliveDrab:"#6B8E23",Orange:"#FFA500",OrangeRed:"#FF4500",Orchid:"#DA70D6",PaleGoldenRod:"#EEE8AA",PaleGreen:"#98FB98",PaleTurquoise:"#AFEEEE",PaleVioletRed:"#D87093",PapayaWhip:"#FFEFD5",PeachPuff:"#FFDAB9",Peru:"#CD853F",Pink:"#FFC0CB",Plum:"#DDA0DD",PowderBlue:"#B0E0E6",Purple:"#800080",Red:"#FF0000",RosyBrown:"#BC8F8F",RoyalBlue:"#4169E1",SaddleBrown:"#8B4513",Salmon:"#FA8072",SandyBrown:"#F4A460",
SeaGreen:"#2E8B57",SeaShell:"#FFF5EE",Sienna:"#A0522D",Silver:"#C0C0C0",SkyBlue:"#87CEEB",SlateBlue:"#6A5ACD",SlateGray:"#708090",SlateGrey:"#708090",Snow:"#FFFAFA",SpringGreen:"#00FF7F",SteelBlue:"#4682B4",Tan:"#D2B48C",Teal:"#008080",Thistle:"#D8BFD8",Tomato:"#FF6347",Turquoise:"#40E0D0",Violet:"#EE82EE",Wheat:"#F5DEB3",White:"#FFFFFF",WhiteSmoke:"#F5F5F5",Yellow:"#FFFF00",YellowGreen:"#9ACD32"};
var ViewPort={_onOpen:[],_onClose:[],animation:true,config:{},opacity:0.5,effect:null,time:0.2,getAppsLayer:function(){if(this.$appsLayer)return this.$appsLayer;this.$appsLayer=N(["div",{style:{position:"absolute",left:"0px",top:"0px",zIndex:"26",width:"100%",height:"0px"}}]);this.$background?this.$background.after(this.$appsLayer):I(document.body).append(this.$appsLayer);return this.$appsLayer},getBackground:function(){if(this.$background)return this.$background;this.$background=N(["div",{style:{backgroundColor:"#000000",
color:"#FFFFFF",width:"100%",position:"absolute",top:"0px",left:"0px",display:"none",zIndex:"25",opacity:"0"},onclick:function(){ViewPort.close()}}]);this.$appsLayer?this.$appsLayer.before(this.$background):I(document.body).append(this.$background);this.setBackgroundSizes();Event.add(window,"resize",function(){ViewPort.setBackgroundSizes()});return this.$background},setStyle:function(b){this.getBackground().css(b);this.opacity=b.opacity||this.opacity},setBackgroundSizes:function(){this.getBackground().style.height=
Env.pageHeight()+"px"},open:function(b){var g=this.getBackground();if(g.hidden()){this.setBackgroundSizes();this.animation?g.morph({styles:{opacity:[0,this.opacity||0.5],display:["block","block"]},time:this.time||0.2,effect:this.effect,fps:20,stop:true}):g.css({opacity:this.opacity||0.5,display:"block"});ViewPort._onOpen.each(function(k){k[0].call(k[1],b)})}g=null},close:function(b){var g=this.getBackground();if(!g.hidden()){this.animation?g.morph({styles:{opacity:[ACTUAL,0],display:["block","none"]},
time:this.time||0.2,effect:this.effect,fps:20,stop:true}):g.css({opacity:0,display:"none"});ViewPort._onClose.each(function(k){k[0].call(k[1],b)})}},addOpenEvent:function(b,g){ViewPort._onOpen.push([b,g||null])},addCloseEvent:function(b,g){ViewPort._onClose.push([b,g||null])},getMask:function(){if(this._mask)return this._mask;var b=this.getAppsLayer(),g=N(["div",{style:{position:"absolute",left:0,top:0,zIndex:24,width:"100%",height:0,display:"none",cursor:"pointer"},click:function(){ViewPort.closeMask();
if(ViewPort._mask.onClose){ViewPort._mask.onClose();ViewPort._mask.onClose=null}}}]);b.before(g);b=N(["div",{style:{position:"absolute",left:0,top:0,width:"100%"}}],g);var k=N(["div",{style:{position:"absolute",left:0}}],g),i=N(["div",{style:{position:"absolute",right:0}}],g),o=N(["div",{style:{position:"absolute",left:0,width:"100%"}}],g);this._mask={$mask:g,$T:b,$L:k,$R:i,$B:o,color:"#000000",opacity:0.8};g=b=k=i=o=undefined;Event.add(window,"resize",function(){ViewPort.mask()});return this._mask},
mask:function(b,g,k,i){var o=this.getMask();o.$target=b=I(b)||o.$target;o.color=g=g||o.color;o.opacity=k=k||o.opacity;if(i)o.onClose=i;o.$mask.hide();i=b.sizes();b=b.position();var m=this.getAppsLayer().sizes(),r=Env.pageSize();if(Agent.trident)height-=Env.scrollbarSize();o.$T.css({height:b[1],background:g,opacity:k});o.$L.css({top:b[1],width:b[0],height:i[1],background:g,opacity:k});o.$R.css({top:b[1],width:m[0]-(b[0]+i[0]),height:i[1],background:g,opacity:k});o.$B.css({top:b[1]+i[1],height:r[1]-
(b[1]+i[1]),background:g,opacity:k});o.$mask.show()},closeMask:function(){this.getMask().$mask.hide()}};Event.onReady(function(){document.head=I(document.getElementsByTagName("head")[0])});var ACTUAL="actual";
(function(){function b(i,o){if(!isNaN(i)){switch(o){case "em":case "":case "%":case "deg":i=Math.floor(i*100)/100;break;default:i=Math.floor(i);break}return i+o}return false}function g(i){var o=ElementStorage.retrieveData(i,"morph"),m;if(o)m=o.paused.shift();else{o={paused:[],cache:[]};ElementStorage.storeData(i,"morph",o)}o.wait=null;o.animation=null;o.animated=false;o.locked=false;o.loop=null;m&&i.morph(m);return i}function k(i,o){var m=ElementStorage.retrieveData(i,"morph"),r=o.css||o.styles||
o.style,x,w,z,u=o.fps||25,q=Math.round((o.time||0.5)*u),y=q+(o.noLast?-1:0),B=o.effect||EE.outCubic,D,C,G,J={},L=["in","cm","mm","pt","pc","em","ex","px","deg","%"];for(w in r){D=C=null;G=i.css(w);x=r[w];if(typeof x=="object")if(x instanceof Array){x=x.copy();if(typeof x[0]=="function")D=x.shift();if(L.has(x[0]))C=x.shift()}else{D=x.effect;C=x.unit||"";x=x.steps;x instanceof Array||(x=[x])}else x=[x];x=x.replace(ACTUAL,G);z=x.length;if(w.toLowerCase().has("color")){if(z<2){x=[G].concat(x);++z}G=1}else if(C||
typeof x[0]=="number"){if(z<2){x=[(G+"").cleanSize()].concat(x);++z}G=2}else{if(z<2){x=[x[0],x[0]];++z}G=3}J[w]=[G,D||B,C||"",z,q/(z-1||1),x]}G=D=B=C=L=x=undefined;m.wait=setTimeout(function(){var a=Function.empty,e=o.onStart||a,j=o.onFinish||a,n=o.onChange||a,v=o.onFrame||a,A=0,E={};a={};var F=function(R,Q,O,M,P){Q===0&&e.call(R,P,Q,O);if(M){R.css(P);n.call(R,P,Q,O)}v.call(R,P,Q,O);if(Q==y){clearInterval(m.animation);j.call(R,P,Q,O);g(R);J=E=o=r=m=F=e=v=n=j=undefined}};for(w in J){var K=J[w];switch(K[0]){case 1:K=
new Color(K[5][0]);a[w]=E[w]=Agent.rgba&&K.alpha<1?K.rgba():K.rgb();break;case 2:if((K=b(parseFloat(K[5][0],10),K[2]))||K===0)a[w]=E[w]=K;break;case 3:a[w]=E[w]=K[5][0];break}}F(i,A,q,true,a);++A;a=undefined;m.animation=setInterval(function(){var R=false,Q={};for(w in J){var O=J[w],M;switch(A){case q:switch(O[0]){case 1:M=new Color(O[5][O[3]-1]);Q[w]=E[w]=Agent.rgba&&M.alpha<1?M.rgba():M.rgb();break;case 2:if((M=b(parseFloat(O[5][O[3]-1],10),O[2]))||M===0)Q[w]=E[w]=M;break;case 3:Q[w]=E[w]=O[5][O[3]-
1];break}R=true;break;default:M=O[1];var P=O[4],T=O[5],S,U;switch(O[0]){case 1:S=Math.floor(A/P);U=A%P;eqSteps=S>0?P:P-1;S>0&&++U;O=new Color(T[S]);S=new Color(T[S+1]);M=new Color([Math.floor(M(U,O.red,S.red-O.red,eqSteps)),Math.floor(M(U,O.green,S.green-O.green,eqSteps)),Math.floor(M(U,O.blue,S.blue-O.blue,eqSteps)),M(U,O.alpha,S.alpha-O.alpha,eqSteps)]);M=Agent.rgba&&M.alpha<1?M.rgba():M.rgb();if(M!==E[w]){Q[w]=E[w]=M;R=true}break;case 2:S=Math.floor(A/P);U=A%P;S>0&&++U;var V=parseFloat(T[S],10);
T=parseFloat(T[S+1],10);if(((M=b(M(U,V,T-V,S>0?P:P-1),O[2]))||M===0)&&M!==E[w]){Q[w]=E[w]=M;R=true}break;case 3:if(Math.floor(A%P)===0){Q[w]=T[Math.floor(A/P)];R=true}break}break}}F(i,A,q,R,Q);++A},1E3/u)},(o.wait||0)*1E3);m.locked=o.locked;m.animated=true}AidaElements.implement({morph:function(i){var o=ElementStorage.retrieveData(this,"morph")||g(this);if(i.stop)i.prority="stop";if(o.animated)if(i.stop!==false&&!o.locked)k(this.stopMorph(),i);else i.cancel||o.paused.push(i);else k(this,i);return this},
forceMorph:function(i){i.stop=true;return this.morph(i)},loopMorph:function(i){var o=i.onFinish;i.onFinish=function(){o&&o.call(this);this.morph(i)};this.morph(i)},stopMorph:function(){var i=ElementStorage.retrieveData(this,"morph");if(i){clearInterval(i.animation);clearTimeout(i.wait);i.paused=[]}g(this);return this},opacityUp:function(i){((i||(i={})).styles||(i.styles={})).opacity=[ACTUAL,1];return this.morph(i)},opacityDown:function(i){((i||(i={})).styles||(i.styles={})).opacity=[ACTUAL,0];return this.morph(i)},
opacityShift:function(i){return this[this.css("opacity")<0.5?"opacityUp":"opacityDown"](i)},opacityPulse:function(i){for(var o=[ACTUAL],m=(i||(i={})).hits||3;m>0;m--)o=o.concat([0,ACTUAL]);(i.styles||(i.styles={})).opacity=o;return this.morph(i)},blindInit:function(i){var o=this.style;o.overflow="hidden";o.display="block";if(is(i))o.height=(i===true?0:i)+"px";return this},blindUp:function(i){this.blindInit();((i||(i={})).styles||(i.styles={})).height=["px",ACTUAL,i.min||0];if(!i.effect)i.effect=EE.outCubic;
return this.morph(i)},blindDown:function(i){this.blindInit();((i||(i={})).styles||(i.styles={})).height=["px",ACTUAL,this.realHeight(true)];if(!i.effect)i.effect=EE.outCubic;return this.morph(i)},blindShift:function(i){return this[this.blindState(i)>0.5?"blindUp":"blindDown"](i)},blindState:function(i){i=(i||{}).min||0;return(this.css("height").cleanSize()-i)/(this.realHeight(true)-i)}})})();
var EE={blend:function(){var b=arguments,g=b.length;return function(k,i,o,m){var r=Math.min(Math.floor(k/m*g),g-1);m/=g;k=k/g==m?m:k%m;o/=g;i+=o*r;return b[r](k,i,o,m)}},repeat:function(b,g){g=g||2;for(var k=[];g--;)k.push(b);return EE.blend.apply(null,k)},path:function(b,g,k){var i;return function(o,m,r,x){i||(i=g.getPoints(x,k));return i[o-1][b]}},linear:function(b,g,k,i){return k*b/i+g},inQuad:function(b,g,k,i){return k*(b/=i)*b+g},outQuad:function(b,g,k,i){return-k*(b/=i)*(b-2)+g},inOutQuad:function(b,
g,k,i){if((b/=i/2)<1)return k/2*b*b+g;return-k/2*(--b*(b-2)-1)+g},inCubic:function(b,g,k,i){return k*(b/=i)*b*b+g},outCubic:function(b,g,k,i){return k*((b=b/i-1)*b*b+1)+g},inOutCubic:function(b,g,k,i){if((b/=i/2)<1)return k/2*b*b*b+g;return k/2*((b-=2)*b*b+2)+g},inQuart:function(b,g,k,i){return k*(b/=i)*b*b*b+g},outQuart:function(b,g,k,i){return-k*((b=b/i-1)*b*b*b-1)+g},inOutQuart:function(b,g,k,i){if((b/=i/2)<1)return k/2*b*b*b*b+g;return-k/2*((b-=2)*b*b*b-2)+g},inQuint:function(b,g,k,i){return k*
(b/=i)*b*b*b*b+g},outQuint:function(b,g,k,i){return k*((b=b/i-1)*b*b*b*b+1)+g},inOutQuint:function(b,g,k,i){if((b/=i/2)<1)return k/2*b*b*b*b*b+g;return k/2*((b-=2)*b*b*b*b+2)+g},inSine:function(b,g,k,i){return-k*Math.cos(b/i*(Math.PI/2))+k+g},outSine:function(b,g,k,i){return k*Math.sin(b/i*(Math.PI/2))+g},inOutSine:function(b,g,k,i){return-k/2*(Math.cos(Math.PI*b/i)-1)+g},inExpo:function(b,g,k,i){return b===0?g:k*Math.pow(2,10*(b/i-1))+g},outExpo:function(b,g,k,i){return b==i?g+k:k*(-Math.pow(2,-10*
b/i)+1)+g},inOutExpo:function(b,g,k,i){if(b===0)return g;if(b==i)return g+k;if((b/=i/2)<1)return k/2*Math.pow(2,10*(b-1))+g;return k/2*(-Math.pow(2,-10*--b)+2)+g},inCirc:function(b,g,k,i){return-k*(Math.sqrt(1-(b/=i)*b)-1)+g},outCirc:function(b,g,k,i){return k*Math.sqrt(1-(b=b/i-1)*b)+g},inOutCirc:function(b,g,k,i){if((b/=i/2)<1)return-k/2*(Math.sqrt(1-b*b)-1)+g;return k/2*(Math.sqrt(1-(b-=2)*b)+1)+g},inElastic:function(b,g,k,i,o,m){if(b===0)return g;if((b/=i)==1)return g+k;m||(m=i*0.3);o||(o=0);
if(o<Math.abs(k)){o=k;k=m/4}else k=m/(2*Math.PI)*Math.asin(k/o);return-(o*Math.pow(2,10*(b-=1))*Math.sin((b*i-k)*2*Math.PI/m))+g},outElastic:function(b,g,k,i,o,m){if(b===0)return g;if((b/=i)==1)return g+k;m||(m=i*0.3);o||(o=0);var r;if(o<Math.abs(k)){o=k;r=m/4}else r=m/(2*Math.PI)*Math.asin(k/o);return o*Math.pow(2,-10*b)*Math.sin((b*i-r)*2*Math.PI/m)+k+g},inOutElastic:function(b,g,k,i,o,m){if(b===0)return g;if((b/=i/2)==2)return g+k;m||(m=i*0.3*1.5);o||(o=0);var r;if(o<Math.abs(k)){o=k;r=m/4}else r=
m/(2*Math.PI)*Math.asin(k/o);if(b<1)return-0.5*o*Math.pow(2,10*(b-=1))*Math.sin((b*i-r)*2*Math.PI/m)+g;return o*Math.pow(2,-10*(b-=1))*Math.sin((b*i-r)*2*Math.PI/m)*0.5+k+g},inBack:function(b,g,k,i,o){if(o===undefined)o=1.70158;return k*(b/=i)*b*((o+1)*b-o)+g},outBack:function(b,g,k,i,o){if(o===undefined)o=1.70158;return k*((b=b/i-1)*b*((o+1)*b+o)+1)+g},inOutBack:function(b,g,k,i,o){if(o===undefined)o=1.70158;if((b/=i/2)<1)return k/2*b*b*(((o*=1.525)+1)*b-o)+g;return k/2*((b-=2)*b*(((o*=1.525)+1)*
b+o)+2)+g},inBounce:function(b,g,k,i){return k-EE.outBounce(i-b,0,k,i)+g},outBounce:function(b,g,k,i){return(b/=i)<1/2.75?k*7.5625*b*b+g:b<2/2.75?k*(7.5625*(b-=1.5/2.75)*b+0.75)+g:b<2.5/2.75?k*(7.5625*(b-=2.25/2.75)*b+0.9375)+g:k*(7.5625*(b-=2.625/2.75)*b+0.984375)+g},inOutBounce:function(b,g,k,i){if(b<i/2)return EE.inBounce(b*2,0,k,i)*0.5+g;return EE.outBounce(b*2-i,0,k,i)*0.5+k*0.5+g},circleY:function(b,g,k,i){return k*Math.sin(b/i*2*Math.PI)+g},circleX:function(b,g,k,i){return k*Math.cos(b/i*2*
Math.PI)+g},outSpiralY:function(b,g,k,i){return k/i*b*Math.sin(b/i*2*Math.PI)+g},outSpiralX:function(b,g,k,i){return k/i*b*Math.cos(b/i*2*Math.PI)+g},inSpiralY:function(b,g,k,i){return k/i*(i-b)*Math.sin(b/i*2*Math.PI)+g},inSpiralX:function(b,g,k,i){return k/i*(i-b)*Math.cos(b/i*2*Math.PI)+g}};function Ajax(b){this.reset();this.createRequest();Object.extend(this.options,b||{})}
(function(b){if(!b.XMLHttpRequest)b.XMLHttpRequest=function(){for(var m=["Microsoft.XMLHTTP","MSXML2.XMLHTTP","MSXML2.XMLHTTP.3.0","Msxml2.XMLHTTP.4.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.7.0"],r=m.length,x,w;r;){x=m[--r];try{w=new ActiveXObject(x)}catch(z){w=null}}return w};Ajax.prototype={resetData:function(){this.xhr=null;this.GETs={};this.POSTs={};this.HEADs={};this.data=null;this.path="";this.response={text:"",XML:null,headers:{}};this.status={code:0,text:"Unknown",type:"Unknown"};
this.timeout=0;this.escapeCache=true;this.escapeCacheName="_Escape_Cache_";this.encoding="utf-8";this.async=true;this.type=null},resetFunctions:function(){this.onRequest=this.onLoaded=this.onInteractive=this.onSuccess=this.onFailure=this.onFinish=this.onTimeout=this.onAbort=this.onException=Function.empty},reset:function(){this.resetFunctions();this.resetData()},createRequest:function(){var m=null;try{m=new XMLHttpRequest}catch(r){m=null;this.onException(r,c)}return(this.xhr=m)?true:false},addGETparams:function(m,
r){var x=this.GETs;if(typeof m=="object")for(var w in m)x[w]=m[w];else x[m]=r},addPOSTparams:function(m,r){var x=this.POSTs;if(typeof m=="object")for(var w in m)x[w]=m[w];else x[m]=r},setHeaders:function(m,r){var x=this.HEADs;if(typeof m=="object")for(var w in m)x[w]=m[w];else x[m]=r},urlPath:function(m){this.path=m.split("?")[0]},urlParameters:function(m){if(m=m.split("?")[1]){m=m.replace("&amp;","&").split("&");for(var r=m.length,x,w=this.GETs;r;){x=m[--r].split("=");w[x[0]]=x[1]}}},url:function(m){this.urlPath(m);
this.urlParameters(m)},abort:function(){if(this.running){this.running=false;var m=this.xhr;m.onreadystatechange=Function.empty;m.abort();this.createRequest();this.onAbort()}},getHeaders:function(){for(var m={},r=this.xhr.getAllResponseHeaders().split(/(\n)/gmi),x=r.length,w;x;)if(w=r[--x].trim()){w=w.split(/:[\s]+/gmi);m[w[0]]=w[1]}return m},getStatus:function(){var m=this.xhr,r=m.status;m=m.statusText;var x;if(r){m||(m=Ajax.getStatusText(r));x=Ajax.getStatusType(r)}return{code:r,text:m||"Unknown",
type:x||"Unknown"}},run:function(){if(this.xhr&&!this.runnig){var m=this,r=this.response,x=this.xhr,w=this.timeout,z,u=this.encoding,q=this.HEADs,y=this.GETs,B=this.POSTs,D=(this.method||this.type||"").toUpperCase(),C=this.data;if(this.escapeCache)y[this.escapeCacheName]=(new Date).getTime();y=Object.params(y);B=Object.params(B)||null;y=this.path+(y?"?"+y:"");var G;D||(D=B||C?"POST":"GET");x.onreadystatechange=function(){if(w>0&&!z){w=(new Date).getTime()+w*1E3;(function(){if((new Date).getTime()>=
w){m.abort();m.onTimeout()}else z=setTimeout(arguments.callee,100)})()}switch(x.readyState){case 1:m.onRequest();break;case 2:m.onLoaded();break;case 3:m.onInteractive();break;case 4:z&&clearTimeout(z);var L,a,e,j;L=r.text=x.responseText;a=r.XML=x.responseXML;e=r.headers=m.getHeaders();if(m.json)L=JSON.parse(L);m.status=j=m.getStatus();m.runnig=false;m[j.type=="Success"?"onSuccess":"onFailure"](L,a,e,j);m.onFinish(L,a,e,j);if(L=m.polling)m._pollingTimeout=setTimeout(function(){m.run()},L*1E3);break}};
q.Connection="close";q["X-Ajax-Request"]="AIDA-JS";q.Accept="text/javascript, text/html, application/xml, text/xml, */*";if(!q["Content-type"]&&D=="POST")q["Content-type"]="application/x-www-form-urlencoded"+(u?"; charset="+u:"");this.running=true;this.username?x.open(D,y,this.async,this.username,this.password):x.open(D,y,this.async);for(G in q)try{x.setRequestHeader(G,q[G])}catch(J){this.onException(J,G,q[G])}x.send(C||B)}},_pollingTimeout:null,stopPolling:function(){clearTimeout(this._pollingTimeout);
this.polling=null},runPolling:function(m){this.stopPolling();this.polling=m;this.run()}};Ajax.getStatusText=function(m){switch(m){case 100:return"Continue";case 101:return"Switching Protocols";case 200:return"OK";case 201:return"Created";case 202:return"Accepted";case 203:return"Non-Authoritative Information";case 204:return"No Content";case 205:return"Reset Content";case 206:return"Partial Content";case 207:return"Multi-Status";case 300:return"Multiple Choices";case 301:return"Moved Permanently";
case 302:return"Found";case 303:return"See Other";case 304:return"Not Modified";case 305:return"Use Proxy";case 306:return"Switch Proxy";case 307:return"Temporary Redirect";case 400:return"Bad Request";case 401:return"Unauthorized";case 402:return"Payment Required";case 403:return"Forbidden";case 404:return"Not Found";case 405:return"Method Not Allowed";case 406:return"Not Acceptable";case 407:return"Proxy Authentication Required";case 408:return"Request Timeout";case 409:return"Conflict";case 410:return"Gone";
case 411:return"Length Required";case 412:return"Precondition Failed";case 413:return"Request Entity Too Large";case 414:return"Request-URI Too Long";case 415:return"Unsupported Media Type";case 416:return"Requested Range Not Satisfiable";case 417:return"Expectation Failed";case 449:return"Retry With";case 500:return"Internal Server Error";case 501:return"Not Implemented";case 502:return"Bad Gateway";case 503:return"Service Unavailable";case 504:return"Gateway Timeout";case 505:return"HTTP Version Not Supported";
case 509:return"Bandwidth Limit Exceeded"}};Ajax.getStatusType=function(m){if(m<200)return"Informational";if(m<300)return"Success";if(m<400)return"Redirection";if(m<500)return"Client Error";if(m<600)return"Server Error"};var g={},k=function(m){return[m.url,Object.params(m.get||{}),Object.params(m.post||{})].join(" ")},i=function(m){m=k(m);var r=g[m];if(r){if(r[0]>(new Date).getTime())return r[1];delete g[m]}return false},o=function(m,r){var x=(new Date).getTime()+(m.cacheTime||Infinity)*1E3;m=k(m);
g[m]=[x,r];return m};Ajax.get=function(m,r){var x=I(m.element||m.target),w=m.url,z=Function.empty,u=m.onSuccess||z,q=m.onFinish||z,y=m.cache;if(y&&(r=i(m))){u.apply(x,r);q.apply(x,r)}else{r=new Ajax;Object.extend(r,m.options||{});r.url(w);r.addGETparams(m.get||{});r.addPOSTparams(m.post||{});r.onRequest=m.onRequest||z;r.onLoaded=m.onLoaded||z;r.onInteractive=m.onInteractive||z;r.onAbort=m.onAbort||z;r.onTimeout=m.onTimeout||z;r.onFinish=q;r.onFailure=m.onFailure||z;r.onSuccess=function(){y&&o(m,arguments);
u.apply(x,arguments)};r.run();return r}}})(window,document);
if(!window.JSON)window.JSON={stringify:function(b){var g,k,i,o;switch(getType(b)){case "string":var m={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};b=b.replace(/["\\\x00-\x1f\x7f-\x9f]/g,function(r){return m[r]||"\\u00"+Math.floor(r.charCodeAt()/16).toString(16)+(r.charCodeAt()%16).toString(16)});return'"'+b+'"';case "array":case "arguments":o=b.length;i=[];for(g=0;g<o;g++)(k=JSON.stringify(b[g]))&&i.push(k);return"["+i+"]";case "date":g=function(r){return r<
10?"0"+r:r};return b.getUTCFullYear()+"-"+g(b.getUTCMonth()+1)+"-"+g(b.getUTCDate())+"T"+g(b.getUTCHours())+":"+g(b.getUTCMinutes())+":"+g(b.getUTCSeconds())+"Z";case "number":return isFinite(b)&&!isNaN(b)?b+"":"null";case "object":i=[];for(g in b)if(k=JSON.stringify(b[g]))i.push(JSON.stringify(g)+":"+k);return"{"+i+"}";case "null":case "boolean":return b+""}return false},parse:function(b){return b&&typeof b=="string"?eval("("+b+")"):null}};

