/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var o=this,h,D=o.jQuery,t=o.$,r=o.jQuery=o.$=function(J,K){return new r.fn.init(J,K)},I=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,g=/^.[^:#\[\.,]*$/;r.fn=r.prototype={init:function(J,M){J=J||document;if(J.nodeType){this[0]=J;this.length=1;this.context=J;return this}if(typeof J==="string"){var L=I.exec(J);if(L&&(L[1]||!M)){if(L[1]){J=r.clean([L[1]],M)}else{var N=document.getElementById(L[3]);if(N&&N.id!=L[3]){return r().find(J)}var K=r(N||[]);K.context=document;K.selector=J;return K}}else{return r(M).find(J)}}else{if(r.isFunction(J)){return r(document).ready(J)}}if(J.selector&&J.context){this.selector=J.selector;this.context=J.context}return this.setArray(r.isArray(J)?J:r.makeArray(J))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(J){return J===h?Array.prototype.slice.call(this):this[J]},pushStack:function(K,M,J){var L=r(K);L.prevObject=this;L.context=this.context;if(M==="find"){L.selector=this.selector+(this.selector?" ":"")+J}else{if(M){L.selector=this.selector+"."+M+"("+J+")"}}return L},setArray:function(J){this.length=0;Array.prototype.push.apply(this,J);return this},each:function(K,J){return r.each(this,K,J)},index:function(J){return r.inArray(J&&J.jquery?J[0]:J,this)},attr:function(K,M,L){var J=K;if(typeof K==="string"){if(M===h){return this[0]&&r[L||"attr"](this[0],K)}else{J={};J[K]=M}}return this.each(function(N){for(K in J){r.attr(L?this.style:this,K,r.prop(this,J[K],L,N,K))}})},css:function(J,K){if((J=="width"||J=="height")&&parseFloat(K)<0){K=h}return this.attr(J,K,"curCSS")},text:function(K){if(typeof K!=="object"&&K!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(K))}var J="";r.each(K||this,function(){r.each(this.childNodes,function(){if(this.nodeType!=8){J+=this.nodeType!=1?this.nodeValue:r.fn.text([this])}})});return J},wrapAll:function(J){if(this[0]){var K=r(J,this[0].ownerDocument).clone();if(this[0].parentNode){K.insertBefore(this[0])}K.map(function(){var L=this;while(L.firstChild){L=L.firstChild}return L}).append(this)}return this},wrapInner:function(J){return this.each(function(){r(this).contents().wrapAll(J)})},wrap:function(J){return this.each(function(){r(this).wrapAll(J)})},append:function(){return this.domManip(arguments,true,function(J){if(this.nodeType==1){this.appendChild(J)}})},prepend:function(){return this.domManip(arguments,true,function(J){if(this.nodeType==1){this.insertBefore(J,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(J){this.parentNode.insertBefore(J,this)})},after:function(){return this.domManip(arguments,false,function(J){this.parentNode.insertBefore(J,this.nextSibling)})},end:function(){return this.prevObject||r([])},push:[].push,sort:[].sort,splice:[].splice,find:function(J){if(this.length===1){var K=this.pushStack([],"find",J);K.length=0;r.find(J,this[0],K);return K}else{return this.pushStack(r.unique(r.map(this,function(L){return r.find(J,L)})),"find",J)}},clone:function(L){var J=this.map(function(){if(!r.support.noCloneEvent&&!r.isXMLDoc(this)){var N=this.outerHTML;if(!N){var O=this.ownerDocument.createElement("div");O.appendChild(this.cloneNode(true));N=O.innerHTML}return r.clean([N.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(L===true){var M=this.find("*").andSelf(),K=0;J.find("*").andSelf().each(function(){if(this.nodeName!==M[K].nodeName){return}var N=r.data(M[K],"events");for(var P in N){for(var O in N[P]){r.event.add(this,P,N[P][O],N[P][O].data)}}K++})}return J},filter:function(J){return this.pushStack(r.isFunction(J)&&r.grep(this,function(L,K){return J.call(L,K)})||r.multiFilter(J,r.grep(this,function(K){return K.nodeType===1})),"filter",J)},closest:function(J){var L=r.expr.match.POS.test(J)?r(J):null,K=0;return this.map(function(){var M=this;while(M&&M.ownerDocument){if(L?L.index(M)>-1:r(M).is(J)){r.data(M,"closest",K);return M}M=M.parentNode;K++}})},not:function(J){if(typeof J==="string"){if(g.test(J)){return this.pushStack(r.multiFilter(J,this,true),"not",J)}else{J=r.multiFilter(J,this)}}var K=J.length&&J[J.length-1]!==h&&!J.nodeType;return this.filter(function(){return K?r.inArray(this,J)<0:this!=J})},add:function(J){return this.pushStack(r.unique(r.merge(this.get(),typeof J==="string"?r(J):r.makeArray(J))))},is:function(J){return !!J&&r.multiFilter(J,this).length>0},hasClass:function(J){return !!J&&this.is("."+J)},val:function(P){if(P===h){var J=this[0];if(J){if(r.nodeName(J,"option")){return(J.attributes.value||{}).specified?J.value:J.text}if(r.nodeName(J,"select")){var N=J.selectedIndex,Q=[],R=J.options,M=J.type=="select-one";if(N<0){return null}for(var K=M?N:0,O=M?N+1:R.length;K<O;K++){var L=R[K];if(L.selected){P=r(L).val();if(M){return P}Q.push(P)}}return Q}return(J.value||"").replace(/\r/g,"")}return h}if(typeof P==="number"){P+=""}return this.each(function(){if(this.nodeType!=1){return}if(r.isArray(P)&&/radio|checkbox/.test(this.type)){this.checked=(r.inArray(this.value,P)>=0||r.inArray(this.name,P)>=0)}else{if(r.nodeName(this,"select")){var S=r.makeArray(P);r("option",this).each(function(){this.selected=(r.inArray(this.value,S)>=0||r.inArray(this.text,S)>=0)});if(!S.length){this.selectedIndex=-1}}else{this.value=P}}})},html:function(J){return J===h?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(J)},replaceWith:function(J){return this.after(J).remove()},eq:function(J){return this.slice(J,+J+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(J){return this.pushStack(r.map(this,function(L,K){return J.call(L,K,L)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(O,R,Q){if(this[0]){var N=(this[0].ownerDocument||this[0]).createDocumentFragment(),K=r.clean(O,(this[0].ownerDocument||this[0]),N),M=N.firstChild;if(M){for(var L=0,J=this.length;L<J;L++){Q.call(P(this[L],M),this.length>1||L>0?N.cloneNode(true):N)}}if(K){r.each(K,E)}}return this;function P(S,T){return R&&r.nodeName(S,"table")&&r.nodeName(T,"tr")?(S.getElementsByTagName("tbody")[0]||S.appendChild(S.ownerDocument.createElement("tbody"))):S}}};r.fn.init.prototype=r.fn;function E(J,K){if(K.src){r.ajax({url:K.src,async:false,dataType:"script"})}else{r.globalEval(K.text||K.textContent||K.innerHTML||"")}if(K.parentNode){K.parentNode.removeChild(K)}}function f(){return +new Date}r.extend=r.fn.extend=function(){var O=arguments[0]||{},M=1,N=arguments.length,J=false,L;if(typeof O==="boolean"){J=O;O=arguments[1]||{};M=2}if(typeof O!=="object"&&!r.isFunction(O)){O={}}if(N==M){O=this;--M}for(;M<N;M++){if((L=arguments[M])!=null){for(var K in L){var P=O[K],Q=L[K];if(O===Q){continue}if(J&&Q&&typeof Q==="object"&&!Q.nodeType){O[K]=r.extend(J,P||(Q.length!=null?[]:{}),Q)}else{if(Q!==h){O[K]=Q}}}}}return O};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,v=document.defaultView||{},x=Object.prototype.toString;r.extend({noConflict:function(J){o.$=t;if(J){o.jQuery=D}return r},isFunction:function(J){return x.call(J)==="[object Function]"},isArray:function(J){return x.call(J)==="[object Array]"},isXMLDoc:function(J){return J.nodeType===9&&J.documentElement.nodeName!=="HTML"||!!J.ownerDocument&&r.isXMLDoc(J.ownerDocument)},globalEval:function(L){if(L&&/\S/.test(L)){var K=document.getElementsByTagName("head")[0]||document.documentElement,J=document.createElement("script");J.type="text/javascript";if(r.support.scriptEval){J.appendChild(document.createTextNode(L))}else{J.text=L}K.insertBefore(J,K.firstChild);K.removeChild(J)}},nodeName:function(K,J){return K.nodeName&&K.nodeName.toUpperCase()==J.toUpperCase()},each:function(L,P,K){var J,M=0,N=L.length;if(K){if(N===h){for(J in L){if(P.apply(L[J],K)===false){break}}}else{for(;M<N;){if(P.apply(L[M++],K)===false){break}}}}else{if(N===h){for(J in L){if(P.call(L[J],J,L[J])===false){break}}}else{for(var O=L[0];M<N&&P.call(O,M,O)!==false;O=L[++M]){}}}return L},prop:function(M,N,L,K,J){if(r.isFunction(N)){N=N.call(M,K)}return typeof N==="number"&&L=="curCSS"&&!b.test(J)?N+"px":N},className:{add:function(J,K){r.each((K||"").split(/\s+/),function(L,M){if(J.nodeType==1&&!r.className.has(J.className,M)){J.className+=(J.className?" ":"")+M}})},remove:function(J,K){if(J.nodeType==1){J.className=K!==h?r.grep(J.className.split(/\s+/),function(L){return !r.className.has(K,L)}).join(" "):""}},has:function(K,J){return K&&r.inArray(J,(K.className||K).toString().split(/\s+/))>-1}},swap:function(M,L,N){var J={};for(var K in L){J[K]=M.style[K];M.style[K]=L[K]}N.call(M);for(var K in L){M.style[K]=J[K]}},css:function(M,K,O,J){if(K=="width"||K=="height"){var Q,L={position:"absolute",visibility:"hidden",display:"block"},P=K=="width"?["Left","Right"]:["Top","Bottom"];function N(){Q=K=="width"?M.offsetWidth:M.offsetHeight;if(J==="border"){return}r.each(P,function(){if(!J){Q-=parseFloat(r.curCSS(M,"padding"+this,true))||0}if(J==="margin"){Q+=parseFloat(r.curCSS(M,"margin"+this,true))||0}else{Q-=parseFloat(r.curCSS(M,"border"+this+"Width",true))||0}})}if(M.offsetWidth!==0){N()}else{r.swap(M,L,N)}return Math.max(0,Math.round(Q))}return r.curCSS(M,K,O)},curCSS:function(N,K,L){var Q,J=N.style;if(K=="opacity"&&!r.support.opacity){Q=r.attr(J,"opacity");return Q==""?"1":Q}if(K.match(/float/i)){K=B}if(!L&&J&&J[K]){Q=J[K]}else{if(v.getComputedStyle){if(K.match(/float/i)){K="float"}K=K.replace(/([A-Z])/g,"-$1").toLowerCase();var R=v.getComputedStyle(N,null);if(R){Q=R.getPropertyValue(K)}if(K=="opacity"&&Q==""){Q="1"}}else{if(N.currentStyle){var O=K.replace(/\-(\w)/g,function(S,T){return T.toUpperCase()});Q=N.currentStyle[K]||N.currentStyle[O];if(!/^\d+(px)?$/i.test(Q)&&/^\d/.test(Q)){var M=J.left,P=N.runtimeStyle.left;N.runtimeStyle.left=N.currentStyle.left;J.left=Q||0;Q=J.pixelLeft+"px";J.left=M;N.runtimeStyle.left=P}}}}return Q},clean:function(K,P,N){P=P||document;if(typeof P.createElement==="undefined"){P=P.ownerDocument||P[0]&&P[0].ownerDocument||document}if(!N&&K.length===1&&typeof K[0]==="string"){var M=/^<(\w+)\s*\/?>$/.exec(K[0]);if(M){return[P.createElement(M[1])]}}var L=[],J=[],Q=P.createElement("div");r.each(K,function(U,X){if(typeof X==="number"){X+=""}if(!X){return}if(typeof X==="string"){X=X.replace(/(<(\w+)[^>]*?)\/>/g,function(Z,aa,Y){return Y.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?Z:aa+"></"+Y+">"});var T=X.replace(/^\s+/,"").substring(0,10).toLowerCase();var V=!T.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!T.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||T.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!T.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!T.indexOf("<td")||!T.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!T.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!r.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];Q.innerHTML=V[1]+X+V[2];while(V[0]--){Q=Q.lastChild}if(!r.support.tbody){var W=/<tbody/i.test(X),S=!T.indexOf("<table")&&!W?Q.firstChild&&Q.firstChild.childNodes:V[1]=="<table>"&&!W?Q.childNodes:[];for(var R=S.length-1;R>=0;--R){if(r.nodeName(S[R],"tbody")&&!S[R].childNodes.length){S[R].parentNode.removeChild(S[R])}}}if(!r.support.leadingWhitespace&&/^\s/.test(X)){Q.insertBefore(P.createTextNode(X.match(/^\s*/)[0]),Q.firstChild)}X=r.makeArray(Q.childNodes)}if(X.nodeType){L.push(X)}else{L=r.merge(L,X)}});if(N){for(var O=0;L[O];O++){if(r.nodeName(L[O],"script")&&(!L[O].type||L[O].type.toLowerCase()==="text/javascript")){J.push(L[O].parentNode?L[O].parentNode.removeChild(L[O]):L[O])}else{if(L[O].nodeType===1){L.splice.apply(L,[O+1,0].concat(r.makeArray(L[O].getElementsByTagName("script"))))}N.appendChild(L[O])}}return J}return L},attr:function(O,L,P){if(!O||O.nodeType==3||O.nodeType==8){return h}var M=!r.isXMLDoc(O),Q=P!==h;L=M&&r.props[L]||L;if(O.tagName){var K=/href|src|style/.test(L);if(L=="selected"&&O.parentNode){O.parentNode.selectedIndex}if(L in O&&M&&!K){if(Q){if(L=="type"&&r.nodeName(O,"input")&&O.parentNode){throw"type property can't be changed"}O[L]=P}if(r.nodeName(O,"form")&&O.getAttributeNode(L)){return O.getAttributeNode(L).nodeValue}if(L=="tabIndex"){var N=O.getAttributeNode("tabIndex");return N&&N.specified?N.value:O.nodeName.match(/(button|input|object|select|textarea)/i)?0:O.nodeName.match(/^(a|area)$/i)&&O.href?0:h}return O[L]}if(!r.support.style&&M&&L=="style"){return r.attr(O.style,"cssText",P)}if(Q){O.setAttribute(L,""+P)}var J=!r.support.hrefNormalized&&M&&K?O.getAttribute(L,2):O.getAttribute(L);return J===null?h:J}if(!r.support.opacity&&L=="opacity"){if(Q){O.zoom=1;O.filter=(O.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(P)+""=="NaN"?"":"alpha(opacity="+P*100+")")}return O.filter&&O.filter.indexOf("opacity=")>=0?(parseFloat(O.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}L=L.replace(/-([a-z])/ig,function(R,S){return S.toUpperCase()});if(Q){O[L]=P}return O[L]},trim:function(J){return(J||"").replace(/^\s+|\s+$/g,"")},makeArray:function(L){var J=[];if(L!=null){var K=L.length;if(K==null||typeof L==="string"||r.isFunction(L)||L.setInterval){J[0]=L}else{while(K){J[--K]=L[K]}}}return J},inArray:function(L,M){for(var J=0,K=M.length;J<K;J++){if(M[J]===L){return J}}return -1},merge:function(M,J){var K=0,L,N=M.length;if(!r.support.getAll){while((L=J[K++])!=null){if(L.nodeType!=8){M[N++]=L}}}else{while((L=J[K++])!=null){M[N++]=L}}return M},unique:function(P){var K=[],J={};try{for(var L=0,M=P.length;L<M;L++){var O=r.data(P[L]);if(!J[O]){J[O]=true;K.push(P[L])}}}catch(N){K=P}return K},grep:function(K,O,J){var L=[];for(var M=0,N=K.length;M<N;M++){if(!J!=!O(K[M],M)){L.push(K[M])}}return L},map:function(J,O){var K=[];for(var L=0,M=J.length;L<M;L++){var N=O(J[L],L);if(N!=null){K[K.length]=N}}return K.concat.apply([],K)}});var H=navigator.userAgent.toLowerCase();r.browser={version:(H.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(H),opera:/opera/.test(H),msie:/msie/.test(H)&&!/opera/.test(H),mozilla:/mozilla/.test(H)&&!/(compatible|webkit)/.test(H)};r.each({parent:function(J){return J.parentNode},parents:function(J){return r.dir(J,"parentNode")},next:function(J){return r.nth(J,2,"nextSibling")},prev:function(J){return r.nth(J,2,"previousSibling")},nextAll:function(J){return r.dir(J,"nextSibling")},prevAll:function(J){return r.dir(J,"previousSibling")},siblings:function(J){return r.sibling(J.parentNode.firstChild,J)},children:function(J){return r.sibling(J.firstChild)},contents:function(J){return r.nodeName(J,"iframe")?J.contentDocument||J.contentWindow.document:r.makeArray(J.childNodes)}},function(J,K){r.fn[J]=function(L){var M=r.map(this,K);if(L&&typeof L=="string"){M=r.multiFilter(L,M)}return this.pushStack(r.unique(M),J,L)}});r.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(J,K){r.fn[J]=function(L){var O=[],Q=r(L);for(var P=0,M=Q.length;P<M;P++){var N=(P>0?this.clone(true):this).get();r.fn[K].apply(r(Q[P]),N);O=O.concat(N)}return this.pushStack(O,J,L)}});r.each({removeAttr:function(J){r.attr(this,J,"");if(this.nodeType==1){this.removeAttribute(J)}},addClass:function(J){r.className.add(this,J)},removeClass:function(J){r.className.remove(this,J)},toggleClass:function(K,J){if(typeof J!=="boolean"){J=!r.className.has(this,K)}r.className[J?"add":"remove"](this,K)},remove:function(J){if(!J||r.filter(J,[this]).length){r("*",this).add([this]).each(function(){r.event.remove(this);r.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){r(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(J,K){r.fn[J]=function(){return this.each(K,arguments)}});function m(J,K){return J[0]&&parseInt(r.curCSS(J[0],K,true),10)||0}var j="jQuery"+f(),A=0,F={};r.extend({cache:{},data:function(K,J,L){K=K==o?F:K;var M=K[j];if(!M){M=K[j]=++A}if(J&&!r.cache[M]){r.cache[M]={}}if(L!==h){r.cache[M][J]=L}return J?r.cache[M][J]:M},removeData:function(K,J){K=K==o?F:K;var M=K[j];if(J){if(r.cache[M]){delete r.cache[M][J];J="";for(J in r.cache[M]){break}if(!J){r.removeData(K)}}}else{try{delete K[j]}catch(L){if(K.removeAttribute){K.removeAttribute(j)}}delete r.cache[M]}},queue:function(K,J,M){if(K){J=(J||"fx")+"queue";var L=r.data(K,J);if(!L||r.isArray(M)){L=r.data(K,J,r.makeArray(M))}else{if(M){L.push(M)}}}return L},dequeue:function(M,L){var J=r.queue(M,L),K=J.shift();if(!L||L==="fx"){K=J[0]}if(K!==h){K.call(M)}}});r.fn.extend({data:function(J,L){var M=J.split(".");M[1]=M[1]?"."+M[1]:"";if(L===h){var K=this.triggerHandler("getData"+M[1]+"!",[M[0]]);if(K===h&&this.length){K=r.data(this[0],J)}return K===h&&M[1]?this.data(M[0]):K}else{return this.trigger("setData"+M[1]+"!",[M[0],L]).each(function(){r.data(this,J,L)})}},removeData:function(J){return this.each(function(){r.removeData(this,J)})},queue:function(J,K){if(typeof J!=="string"){K=J;J="fx"}if(K===h){return r.queue(this[0],J)}return this.each(function(){var L=r.queue(this,J,K);if(J=="fx"&&L.length==1){L[0].call(this)}})},dequeue:function(J){return this.each(function(){r.dequeue(this,J)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var W=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,Q=0,M=Object.prototype.toString;var K=function(ad,Z,ag,ah){ag=ag||[];Z=Z||document;if(Z.nodeType!==1&&Z.nodeType!==9){return[]}if(!ad||typeof ad!=="string"){return ag}var ae=[],ab,ak,an,Y,ai,aa,ac=true;W.lastIndex=0;while((ab=W.exec(ad))!==null){ae.push(ab[1]);if(ab[2]){aa=RegExp.rightContext;break}}if(ae.length>1&&R.exec(ad)){if(ae.length===2&&N.relative[ae[0]]){ak=O(ae[0]+ae[1],Z)}else{ak=N.relative[ae[0]]?[Z]:K(ae.shift(),Z);while(ae.length){ad=ae.shift();if(N.relative[ad]){ad+=ae.shift()}ak=O(ad,ak)}}}else{var aj=ah?{expr:ae.pop(),set:J(ah)}:K.find(ae.pop(),ae.length===1&&Z.parentNode?Z.parentNode:Z,V(Z));ak=K.filter(aj.expr,aj.set);if(ae.length>0){an=J(ak)}else{ac=false}while(ae.length){var am=ae.pop(),al=am;if(!N.relative[am]){am=""}else{al=ae.pop()}if(al==null){al=Z}N.relative[am](an,al,V(Z))}}if(!an){an=ak}if(!an){throw"Syntax error, unrecognized expression: "+(am||ad)}if(M.call(an)==="[object Array]"){if(!ac){ag.push.apply(ag,an)}else{if(Z.nodeType===1){for(var af=0;an[af]!=null;af++){if(an[af]&&(an[af]===true||an[af].nodeType===1&&P(Z,an[af]))){ag.push(ak[af])}}}else{for(var af=0;an[af]!=null;af++){if(an[af]&&an[af].nodeType===1){ag.push(ak[af])}}}}}else{J(an,ag)}if(aa){K(aa,Z,ag,ah);if(L){hasDuplicate=false;ag.sort(L);if(hasDuplicate){for(var af=1;af<ag.length;af++){if(ag[af]===ag[af-1]){ag.splice(af--,1)}}}}}return ag};K.matches=function(Y,Z){return K(Y,null,null,Z)};K.find=function(af,Y,ag){var ae,ac;if(!af){return[]}for(var ab=0,aa=N.order.length;ab<aa;ab++){var ad=N.order[ab],ac;if((ac=N.match[ad].exec(af))){var Z=RegExp.leftContext;if(Z.substr(Z.length-1)!=="\\"){ac[1]=(ac[1]||"").replace(/\\/g,"");ae=N.find[ad](ac,Y,ag);if(ae!=null){af=af.replace(N.match[ad],"");break}}}}if(!ae){ae=Y.getElementsByTagName("*")}return{set:ae,expr:af}};K.filter=function(ai,ah,al,ab){var aa=ai,an=[],af=ah,ad,Y,ae=ah&&ah[0]&&V(ah[0]);while(ai&&ah.length){for(var ag in N.filter){if((ad=N.match[ag].exec(ai))!=null){var Z=N.filter[ag],am,ak;Y=false;if(af==an){an=[]}if(N.preFilter[ag]){ad=N.preFilter[ag](ad,af,al,an,ab,ae);if(!ad){Y=am=true}else{if(ad===true){continue}}}if(ad){for(var ac=0;(ak=af[ac])!=null;ac++){if(ak){am=Z(ak,ad,ac,af);var aj=ab^!!am;if(al&&am!=null){if(aj){Y=true}else{af[ac]=false}}else{if(aj){an.push(ak);Y=true}}}}}if(am!==h){if(!al){af=an}ai=ai.replace(N.match[ag],"");if(!Y){return[]}break}}}if(ai==aa){if(Y==null){throw"Syntax error, unrecognized expression: "+ai}else{break}}aa=ai}return af};var N=K.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\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(Y){return Y.getAttribute("href")}},relative:{"+":function(af,Y,ae){var ac=typeof Y==="string",ag=ac&&!/\W/.test(Y),ad=ac&&!ag;if(ag&&!ae){Y=Y.toUpperCase()}for(var ab=0,aa=af.length,Z;ab<aa;ab++){if((Z=af[ab])){while((Z=Z.previousSibling)&&Z.nodeType!==1){}af[ab]=ad||Z&&Z.nodeName===Y?Z||false:Z===Y}}if(ad){K.filter(Y,af,true)}},">":function(ae,Z,af){var ac=typeof Z==="string";if(ac&&!/\W/.test(Z)){Z=af?Z:Z.toUpperCase();for(var aa=0,Y=ae.length;aa<Y;aa++){var ad=ae[aa];if(ad){var ab=ad.parentNode;ae[aa]=ab.nodeName===Z?ab:false}}}else{for(var aa=0,Y=ae.length;aa<Y;aa++){var ad=ae[aa];if(ad){ae[aa]=ac?ad.parentNode:ad.parentNode===Z}}if(ac){K.filter(Z,ae,true)}}},"":function(ab,Z,ad){var aa=Q++,Y=X;if(!Z.match(/\W/)){var ac=Z=ad?Z:Z.toUpperCase();Y=U}Y("parentNode",Z,aa,ab,ac,ad)},"~":function(ab,Z,ad){var aa=Q++,Y=X;if(typeof Z==="string"&&!Z.match(/\W/)){var ac=Z=ad?Z:Z.toUpperCase();Y=U}Y("previousSibling",Z,aa,ab,ac,ad)}},find:{ID:function(Z,aa,ab){if(typeof aa.getElementById!=="undefined"&&!ab){var Y=aa.getElementById(Z[1]);return Y?[Y]:[]}},NAME:function(aa,ad,ae){if(typeof ad.getElementsByName!=="undefined"){var Z=[],ac=ad.getElementsByName(aa[1]);for(var ab=0,Y=ac.length;ab<Y;ab++){if(ac[ab].getAttribute("name")===aa[1]){Z.push(ac[ab])}}return Z.length===0?null:Z}},TAG:function(Y,Z){return Z.getElementsByTagName(Y[1])}},preFilter:{CLASS:function(ab,Z,aa,Y,ae,af){ab=" "+ab[1].replace(/\\/g,"")+" ";if(af){return ab}for(var ac=0,ad;(ad=Z[ac])!=null;ac++){if(ad){if(ae^(ad.className&&(" "+ad.className+" ").indexOf(ab)>=0)){if(!aa){Y.push(ad)}}else{if(aa){Z[ac]=false}}}}return false},ID:function(Y){return Y[1].replace(/\\/g,"")},TAG:function(Z,Y){for(var aa=0;Y[aa]===false;aa++){}return Y[aa]&&V(Y[aa])?Z[1]:Z[1].toUpperCase()},CHILD:function(Y){if(Y[1]=="nth"){var Z=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(Y[2]=="even"&&"2n"||Y[2]=="odd"&&"2n+1"||!/\D/.test(Y[2])&&"0n+"+Y[2]||Y[2]);Y[2]=(Z[1]+(Z[2]||1))-0;Y[3]=Z[3]-0}Y[0]=Q++;return Y},ATTR:function(ac,Z,aa,Y,ad,ae){var ab=ac[1].replace(/\\/g,"");if(!ae&&N.attrMap[ab]){ac[1]=N.attrMap[ab]}if(ac[2]==="~="){ac[4]=" "+ac[4]+" "}return ac},PSEUDO:function(ac,Z,aa,Y,ad){if(ac[1]==="not"){if(ac[3].match(W).length>1||/^\w/.test(ac[3])){ac[3]=K(ac[3],null,null,Z)}else{var ab=K.filter(ac[3],Z,aa,true^ad);if(!aa){Y.push.apply(Y,ab)}return false}}else{if(N.match.POS.test(ac[0])||N.match.CHILD.test(ac[0])){return true}}return ac},POS:function(Y){Y.unshift(true);return Y}},filters:{enabled:function(Y){return Y.disabled===false&&Y.type!=="hidden"},disabled:function(Y){return Y.disabled===true},checked:function(Y){return Y.checked===true},selected:function(Y){Y.parentNode.selectedIndex;return Y.selected===true},parent:function(Y){return !!Y.firstChild},empty:function(Y){return !Y.firstChild},has:function(aa,Z,Y){return !!K(Y[3],aa).length},header:function(Y){return/h\d/i.test(Y.nodeName)},text:function(Y){return"text"===Y.type},radio:function(Y){return"radio"===Y.type},checkbox:function(Y){return"checkbox"===Y.type},file:function(Y){return"file"===Y.type},password:function(Y){return"password"===Y.type},submit:function(Y){return"submit"===Y.type},image:function(Y){return"image"===Y.type},reset:function(Y){return"reset"===Y.type},button:function(Y){return"button"===Y.type||Y.nodeName.toUpperCase()==="BUTTON"},input:function(Y){return/input|select|textarea|button/i.test(Y.nodeName)}},setFilters:{first:function(Z,Y){return Y===0},last:function(aa,Z,Y,ab){return Z===ab.length-1},even:function(Z,Y){return Y%2===0},odd:function(Z,Y){return Y%2===1},lt:function(aa,Z,Y){return Z<Y[3]-0},gt:function(aa,Z,Y){return Z>Y[3]-0},nth:function(aa,Z,Y){return Y[3]-0==Z},eq:function(aa,Z,Y){return Y[3]-0==Z}},filter:{PSEUDO:function(ae,aa,ab,af){var Z=aa[1],ac=N.filters[Z];if(ac){return ac(ae,ab,aa,af)}else{if(Z==="contains"){return(ae.textContent||ae.innerText||"").indexOf(aa[3])>=0}else{if(Z==="not"){var ad=aa[3];for(var ab=0,Y=ad.length;ab<Y;ab++){if(ad[ab]===ae){return false}}return true}}}},CHILD:function(Y,ab){var ae=ab[1],Z=Y;switch(ae){case"only":case"first":while(Z=Z.previousSibling){if(Z.nodeType===1){return false}}if(ae=="first"){return true}Z=Y;case"last":while(Z=Z.nextSibling){if(Z.nodeType===1){return false}}return true;case"nth":var aa=ab[2],ah=ab[3];if(aa==1&&ah==0){return true}var ad=ab[0],ag=Y.parentNode;if(ag&&(ag.sizcache!==ad||!Y.nodeIndex)){var ac=0;for(Z=ag.firstChild;Z;Z=Z.nextSibling){if(Z.nodeType===1){Z.nodeIndex=++ac}}ag.sizcache=ad}var af=Y.nodeIndex-ah;if(aa==0){return af==0}else{return(af%aa==0&&af/aa>=0)}}},ID:function(Z,Y){return Z.nodeType===1&&Z.getAttribute("id")===Y},TAG:function(Z,Y){return(Y==="*"&&Z.nodeType===1)||Z.nodeName===Y},CLASS:function(Z,Y){return(" "+(Z.className||Z.getAttribute("class"))+" ").indexOf(Y)>-1},ATTR:function(ad,ab){var aa=ab[1],Y=N.attrHandle[aa]?N.attrHandle[aa](ad):ad[aa]!=null?ad[aa]:ad.getAttribute(aa),ae=Y+"",ac=ab[2],Z=ab[4];return Y==null?ac==="!=":ac==="="?ae===Z:ac==="*="?ae.indexOf(Z)>=0:ac==="~="?(" "+ae+" ").indexOf(Z)>=0:!Z?ae&&Y!==false:ac==="!="?ae!=Z:ac==="^="?ae.indexOf(Z)===0:ac==="$="?ae.substr(ae.length-Z.length)===Z:ac==="|="?ae===Z||ae.substr(0,Z.length+1)===Z+"-":false},POS:function(ac,Z,aa,ad){var Y=Z[2],ab=N.setFilters[Y];if(ab){return ab(ac,aa,Z,ad)}}}};var R=N.match.POS;for(var T in N.match){N.match[T]=RegExp(N.match[T].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var J=function(Z,Y){Z=Array.prototype.slice.call(Z);if(Y){Y.push.apply(Y,Z);return Y}return Z};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(S){J=function(ac,ab){var Z=ab||[];if(M.call(ac)==="[object Array]"){Array.prototype.push.apply(Z,ac)}else{if(typeof ac.length==="number"){for(var aa=0,Y=ac.length;aa<Y;aa++){Z.push(ac[aa])}}else{for(var aa=0;ac[aa];aa++){Z.push(ac[aa])}}}return Z}}var L;if(document.documentElement.compareDocumentPosition){L=function(Z,Y){var aa=Z.compareDocumentPosition(Y)&4?-1:Z===Y?0:1;if(aa===0){hasDuplicate=true}return aa}}else{if("sourceIndex" in document.documentElement){L=function(Z,Y){var aa=Z.sourceIndex-Y.sourceIndex;if(aa===0){hasDuplicate=true}return aa}}else{if(document.createRange){L=function(ab,Z){var aa=ab.ownerDocument.createRange(),Y=Z.ownerDocument.createRange();aa.selectNode(ab);aa.collapse(true);Y.selectNode(Z);Y.collapse(true);var ac=aa.compareBoundaryPoints(Range.START_TO_END,Y);if(ac===0){hasDuplicate=true}return ac}}}}(function(){var Z=document.createElement("form"),aa="script"+(new Date).getTime();Z.innerHTML="<input name='"+aa+"'/>";var Y=document.documentElement;Y.insertBefore(Z,Y.firstChild);if(!!document.getElementById(aa)){N.find.ID=function(ac,ad,ae){if(typeof ad.getElementById!=="undefined"&&!ae){var ab=ad.getElementById(ac[1]);return ab?ab.id===ac[1]||typeof ab.getAttributeNode!=="undefined"&&ab.getAttributeNode("id").nodeValue===ac[1]?[ab]:h:[]}};N.filter.ID=function(ad,ab){var ac=typeof ad.getAttributeNode!=="undefined"&&ad.getAttributeNode("id");return ad.nodeType===1&&ac&&ac.nodeValue===ab}}Y.removeChild(Z)})();(function(){var Y=document.createElement("div");Y.appendChild(document.createComment(""));if(Y.getElementsByTagName("*").length>0){N.find.TAG=function(Z,ad){var ac=ad.getElementsByTagName(Z[1]);if(Z[1]==="*"){var ab=[];for(var aa=0;ac[aa];aa++){if(ac[aa].nodeType===1){ab.push(ac[aa])}}ac=ab}return ac}}Y.innerHTML="<a href='#'></a>";if(Y.firstChild&&typeof Y.firstChild.getAttribute!=="undefined"&&Y.firstChild.getAttribute("href")!=="#"){N.attrHandle.href=function(Z){return Z.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var Y=K,Z=document.createElement("div");Z.innerHTML="<p class='TEST'></p>";if(Z.querySelectorAll&&Z.querySelectorAll(".TEST").length===0){return}K=function(ad,ac,aa,ab){ac=ac||document;if(!ab&&ac.nodeType===9&&!V(ac)){try{return J(ac.querySelectorAll(ad),aa)}catch(ae){}}return Y(ad,ac,aa,ab)};K.find=Y.find;K.filter=Y.filter;K.selectors=Y.selectors;K.matches=Y.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var Y=document.createElement("div");Y.innerHTML="<div class='test e'></div><div class='test'></div>";if(Y.getElementsByClassName("e").length===0){return}Y.lastChild.className="e";if(Y.getElementsByClassName("e").length===1){return}N.order.splice(1,0,"CLASS");N.find.CLASS=function(Z,aa,ab){if(typeof aa.getElementsByClassName!=="undefined"&&!ab){return aa.getElementsByClassName(Z[1])}}})()}function U(Z,ae,ad,ai,af,ah){var ag=Z=="previousSibling"&&!ah;for(var ab=0,aa=ai.length;ab<aa;ab++){var Y=ai[ab];if(Y){if(ag&&Y.nodeType===1){Y.sizcache=ad;Y.sizset=ab}Y=Y[Z];var ac=false;while(Y){if(Y.sizcache===ad){ac=ai[Y.sizset];break}if(Y.nodeType===1&&!ah){Y.sizcache=ad;Y.sizset=ab}if(Y.nodeName===ae){ac=Y;break}Y=Y[Z]}ai[ab]=ac}}}function X(Z,ae,ad,ai,af,ah){var ag=Z=="previousSibling"&&!ah;for(var ab=0,aa=ai.length;ab<aa;ab++){var Y=ai[ab];if(Y){if(ag&&Y.nodeType===1){Y.sizcache=ad;Y.sizset=ab}Y=Y[Z];var ac=false;while(Y){if(Y.sizcache===ad){ac=ai[Y.sizset];break}if(Y.nodeType===1){if(!ah){Y.sizcache=ad;Y.sizset=ab}if(typeof ae!=="string"){if(Y===ae){ac=true;break}}else{if(K.filter(ae,[Y]).length>0){ac=Y;break}}}Y=Y[Z]}ai[ab]=ac}}}var P=document.compareDocumentPosition?function(Z,Y){return Z.compareDocumentPosition(Y)&16}:function(Z,Y){return Z!==Y&&(Z.contains?Z.contains(Y):true)};var V=function(Y){return Y.nodeType===9&&Y.documentElement.nodeName!=="HTML"||!!Y.ownerDocument&&V(Y.ownerDocument)};var O=function(Y,af){var ab=[],ac="",ad,aa=af.nodeType?[af]:af;while((ad=N.match.PSEUDO.exec(Y))){ac+=ad[0];Y=Y.replace(N.match.PSEUDO,"")}Y=N.relative[Y]?Y+"*":Y;for(var ae=0,Z=aa.length;ae<Z;ae++){K(Y,aa[ae],ab)}return K.filter(ac,ab)};r.find=K;r.filter=K.filter;r.expr=K.selectors;r.expr[":"]=r.expr.filters;K.selectors.filters.hidden=function(Y){return Y.offsetWidth===0||Y.offsetHeight===0};K.selectors.filters.visible=function(Y){return Y.offsetWidth>0||Y.offsetHeight>0};K.selectors.filters.animated=function(Y){return r.grep(r.timers,function(Z){return Y===Z.elem}).length};r.multiFilter=function(aa,Y,Z){if(Z){aa=":not("+aa+")"}return K.matches(aa,Y)};r.dir=function(aa,Z){var Y=[],ab=aa[Z];while(ab&&ab!=document){if(ab.nodeType==1){Y.push(ab)}ab=ab[Z]}return Y};r.nth=function(ac,Y,aa,ab){Y=Y||1;var Z=0;for(;ac;ac=ac[aa]){if(ac.nodeType==1&&++Z==Y){break}}return ac};r.sibling=function(aa,Z){var Y=[];for(;aa;aa=aa.nextSibling){if(aa.nodeType==1&&aa!=Z){Y.push(aa)}}return Y};return;o.Sizzle=K})();r.event={add:function(N,K,M,P){if(N.nodeType==3||N.nodeType==8){return}if(N.setInterval&&N!=o){N=o}if(!M.guid){M.guid=this.guid++}if(P!==h){var L=M;M=this.proxy(L);M.data=P}var J=r.data(N,"events")||r.data(N,"events",{}),O=r.data(N,"handle")||r.data(N,"handle",function(){return typeof r!=="undefined"&&!r.event.triggered?r.event.handle.apply(arguments.callee.elem,arguments):h});O.elem=N;r.each(K.split(/\s+/),function(R,S){var T=S.split(".");S=T.shift();M.type=T.slice().sort().join(".");var Q=J[S];if(r.event.specialAll[S]){r.event.specialAll[S].setup.call(N,P,T)}if(!Q){Q=J[S]={};if(!r.event.special[S]||r.event.special[S].setup.call(N,P,T)===false){if(N.addEventListener){N.addEventListener(S,O,false)}else{if(N.attachEvent){N.attachEvent("on"+S,O)}}}}Q[M.guid]=M;r.event.global[S]=true});N=null},guid:1,global:{},remove:function(P,M,O){if(P.nodeType==3||P.nodeType==8){return}var L=r.data(P,"events"),K,J;if(L){if(M===h||(typeof M==="string"&&M.charAt(0)==".")){for(var N in L){this.remove(P,N+(M||""))}}else{if(M.type){O=M.handler;M=M.type}r.each(M.split(/\s+/),function(R,T){var V=T.split(".");T=V.shift();var S=RegExp("(^|\\.)"+V.slice().sort().join(".*\\.")+"(\\.|$)");if(L[T]){if(O){delete L[T][O.guid]}else{for(var U in L[T]){if(S.test(L[T][U].type)){delete L[T][U]}}}if(r.event.specialAll[T]){r.event.specialAll[T].teardown.call(P,V)}for(K in L[T]){break}if(!K){if(!r.event.special[T]||r.event.special[T].teardown.call(P,V)===false){if(P.removeEventListener){P.removeEventListener(T,r.data(P,"handle"),false)}else{if(P.detachEvent){P.detachEvent("on"+T,r.data(P,"handle"))}}}K=null;delete L[T]}}})}for(K in L){break}if(!K){var Q=r.data(P,"handle");if(Q){Q.elem=null}r.removeData(P,"events");r.removeData(P,"handle")}}},trigger:function(N,P,M,J){var L=N.type||N;if(!J){N=typeof N==="object"?N[j]?N:r.extend(r.Event(L),N):r.Event(L);if(L.indexOf("!")>=0){N.type=L=L.slice(0,-1);N.exclusive=true}if(!M){N.stopPropagation();if(this.global[L]){r.each(r.cache,function(){if(this.events&&this.events[L]){r.event.trigger(N,P,this.handle.elem)}})}}if(!M||M.nodeType==3||M.nodeType==8){return h}N.result=h;N.target=M;P=r.makeArray(P);P.unshift(N)}N.currentTarget=M;var O=r.data(M,"handle");if(O){O.apply(M,P)}if((!M[L]||(r.nodeName(M,"a")&&L=="click"))&&M["on"+L]&&M["on"+L].apply(M,P)===false){N.result=false}if(!J&&M[L]&&!N.isDefaultPrevented()&&!(r.nodeName(M,"a")&&L=="click")){this.triggered=true;try{M[L]()}catch(Q){}}this.triggered=false;if(!N.isPropagationStopped()){var K=M.parentNode||M.ownerDocument;if(K){r.event.trigger(N,P,K,true)}}},handle:function(P){var O,J;P=arguments[0]=r.event.fix(P||o.event);P.currentTarget=this;var Q=P.type.split(".");P.type=Q.shift();O=!Q.length&&!P.exclusive;var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");J=(r.data(this,"events")||{})[P.type];for(var L in J){var M=J[L];if(O||N.test(M.type)){P.handler=M;P.data=M.data;var K=M.apply(this,arguments);if(K!==h){P.result=K;if(K===false){P.preventDefault();P.stopPropagation()}}if(P.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(M){if(M[j]){return M}var K=M;M=r.Event(K);for(var L=this.props.length,O;L;){O=this.props[--L];M[O]=K[O]}if(!M.target){M.target=M.srcElement||document}if(M.target.nodeType==3){M.target=M.target.parentNode}if(!M.relatedTarget&&M.fromElement){M.relatedTarget=M.fromElement==M.target?M.toElement:M.fromElement}if(M.pageX==null&&M.clientX!=null){var N=document.documentElement,J=document.body;M.pageX=M.clientX+(N&&N.scrollLeft||J&&J.scrollLeft||0)-(N.clientLeft||0);M.pageY=M.clientY+(N&&N.scrollTop||J&&J.scrollTop||0)-(N.clientTop||0)}if(!M.which&&((M.charCode||M.charCode===0)?M.charCode:M.keyCode)){M.which=M.charCode||M.keyCode}if(!M.metaKey&&M.ctrlKey){M.metaKey=M.ctrlKey}if(!M.which&&M.button){M.which=(M.button&1?1:(M.button&2?3:(M.button&4?2:0)))}return M},proxy:function(K,J){J=J||function(){return K.apply(this,arguments)};J.guid=K.guid=K.guid||J.guid||this.guid++;return J},special:{ready:{setup:G,teardown:function(){}}},specialAll:{live:{setup:function(J,K){r.event.add(this,K[0],d)},teardown:function(L){if(L.length){var J=0,K=RegExp("(^|\\.)"+L[0]+"(\\.|$)");r.each((r.data(this,"events").live||{}),function(){if(K.test(this.type)){J++}});if(J<1){r.event.remove(this,L[0],d)}}}}}};r.Event=function(J){if(!this.preventDefault){return new r.Event(J)}if(J&&J.type){this.originalEvent=J;this.type=J.type}else{this.type=J}this.timeStamp=f();this[j]=true};function n(){return false}function z(){return true}r.Event.prototype={preventDefault:function(){this.isDefaultPrevented=z;var J=this.originalEvent;if(!J){return}if(J.preventDefault){J.preventDefault()}J.returnValue=false},stopPropagation:function(){this.isPropagationStopped=z;var J=this.originalEvent;if(!J){return}if(J.stopPropagation){J.stopPropagation()}J.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=z;this.stopPropagation()},isDefaultPrevented:n,isPropagationStopped:n,isImmediatePropagationStopped:n};var a=function(K){var J=K.relatedTarget;while(J&&J!=this){try{J=J.parentNode}catch(L){J=this}}if(J!=this){K.type=K.data;r.event.handle.apply(this,arguments)}};r.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(K,J){r.event.special[J]={setup:function(){r.event.add(this,K,a,J)},teardown:function(){r.event.remove(this,K,a)}}});r.fn.extend({bind:function(K,L,J){return K=="unload"?this.one(K,L,J):this.each(function(){r.event.add(this,K,J||L,J&&L)})},one:function(L,M,K){var J=r.event.proxy(K||M,function(N){r(this).unbind(N,J);return(K||M).apply(this,arguments)});return this.each(function(){r.event.add(this,L,J,K&&M)})},unbind:function(K,J){return this.each(function(){r.event.remove(this,K,J)})},trigger:function(J,K){return this.each(function(){r.event.trigger(J,K,this)})},triggerHandler:function(J,L){if(this[0]){var K=r.Event(J);K.preventDefault();K.stopPropagation();r.event.trigger(K,L,this[0]);return K.result}},toggle:function(L){var J=arguments,K=1;while(K<J.length){r.event.proxy(L,J[K++])}return this.click(r.event.proxy(L,function(M){this.lastToggle=(this.lastToggle||0)%K;M.preventDefault();return J[this.lastToggle++].apply(this,arguments)||false}))},hover:function(J,K){return this.mouseenter(J).mouseleave(K)},ready:function(J){G();if(r.isReady){J.call(document,r)}else{r.readyList.push(J)}return this},live:function(L,K){var J=r.event.proxy(K);J.guid+=this.selector+L;r(document).bind(l(L,this.selector),this.selector,J);return this},die:function(K,J){r(document).unbind(l(K,this.selector),J?{guid:J.guid+this.selector+K}:null);return this}});function d(M){var J=RegExp("(^|\\.)"+M.type+"(\\.|$)"),L=true,K=[];r.each(r.data(this,"events").live||[],function(N,O){if(J.test(O.type)){var P=r(M.target).closest(O.data)[0];if(P){K.push({elem:P,fn:O})}}});K.sort(function(O,N){return r.data(O.elem,"closest")-r.data(N.elem,"closest")});r.each(K,function(){if(this.fn.call(this.elem,M,this.fn.data)===false){return(L=false)}});return L}function l(K,J){return["live",K,J.replace(/\./g,"`").replace(/ /g,"|")].join(".")}r.extend({isReady:false,readyList:[],ready:function(){if(!r.isReady){r.isReady=true;if(r.readyList){r.each(r.readyList,function(){this.call(document,r)});r.readyList=null}r(document).triggerHandler("ready")}}});var C=false;function G(){if(C){return}C=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);r.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);r.ready()}});if(document.documentElement.doScroll&&o==o.top){(function(){if(r.isReady){return}try{document.documentElement.doScroll("left")}catch(J){setTimeout(arguments.callee,0);return}r.ready()})()}}}r.event.add(o,"load",r.ready)}r.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(K,J){r.fn[J]=function(L){return L?this.bind(J,L):this.trigger(J)}});r(o).bind("unload",function(){for(var J in r.cache){if(J!=1&&r.cache[J].handle){r.event.remove(r.cache[J].handle.elem)}}});(function(){r.support={};var K=document.documentElement,L=document.createElement("script"),P=document.createElement("div"),O="script"+(new Date).getTime();P.style.display="none";P.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var M=P.getElementsByTagName("*"),J=P.getElementsByTagName("a")[0];if(!M||!M.length||!J){return}r.support={leadingWhitespace:P.firstChild.nodeType==3,tbody:!P.getElementsByTagName("tbody").length,objectAll:!!P.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!P.getElementsByTagName("link").length,style:/red/.test(J.getAttribute("style")),hrefNormalized:J.getAttribute("href")==="/a",opacity:J.style.opacity==="0.5",cssFloat:!!J.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};L.type="text/javascript";try{L.appendChild(document.createTextNode("window."+O+"=1;"))}catch(N){}K.insertBefore(L,K.firstChild);if(o[O]){r.support.scriptEval=true;delete o[O]}K.removeChild(L);if(P.attachEvent&&P.fireEvent){P.attachEvent("onclick",function(){r.support.noCloneEvent=false;P.detachEvent("onclick",arguments.callee)});P.cloneNode(true).fireEvent("onclick")}r(function(){var Q=document.createElement("div");Q.style.width=Q.style.paddingLeft="1px";document.body.appendChild(Q);r.boxModel=r.support.boxModel=Q.offsetWidth===2;document.body.removeChild(Q).style.display="none"})})();var B=r.support.cssFloat?"cssFloat":"styleFloat";r.props={"for":"htmlFor","class":"className","float":B,cssFloat:B,styleFloat:B,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};r.fn.extend({_load:r.fn.load,load:function(L,O,P){if(typeof L!=="string"){return this._load(L)}var N=L.indexOf(" ");if(N>=0){var J=L.slice(N,L.length);L=L.slice(0,N)}var M="GET";if(O){if(r.isFunction(O)){P=O;O=null}else{if(typeof O==="object"){O=r.param(O);M="POST"}}}var K=this;r.ajax({url:L,type:M,dataType:"html",data:O,complete:function(R,Q){if(Q=="success"||Q=="notmodified"){K.html(J?r("<div/>").append(R.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(J):R.responseText)}if(P){K.each(P,[R.responseText,Q,R])}}});return this},serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?r.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(J,K){var L=r(this).val();return L==null?null:r.isArray(L)?r.map(L,function(N,M){return{name:K.name,value:N}}):{name:K.name,value:L}}).get()}});r.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(J,K){r.fn[K]=function(L){return this.bind(K,L)}});var w=f();r.extend({get:function(J,L,M,K){if(r.isFunction(L)){M=L;L=null}return r.ajax({type:"GET",url:J,data:L,success:M,dataType:K})},getScript:function(J,K){return r.get(J,null,K,"script")},getJSON:function(J,K,L){return r.get(J,K,L,"json")},post:function(J,L,M,K){if(r.isFunction(L)){M=L;L={}}return r.ajax({type:"POST",url:J,data:L,success:M,dataType:K})},ajaxSetup:function(J){r.extend(r.ajaxSettings,J)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return o.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(R){R=r.extend(true,R,r.extend(true,{},r.ajaxSettings,R));var ab,K=/=\?(&|$)/g,W,aa,L=R.type.toUpperCase();if(R.data&&R.processData&&typeof R.data!=="string"){R.data=r.param(R.data)}if(R.dataType=="jsonp"){if(L=="GET"){if(!R.url.match(K)){R.url+=(R.url.match(/\?/)?"&":"?")+(R.jsonp||"callback")+"=?"}}else{if(!R.data||!R.data.match(K)){R.data=(R.data?R.data+"&":"")+(R.jsonp||"callback")+"=?"}}R.dataType="json"}if(R.dataType=="json"&&(R.data&&R.data.match(K)||R.url.match(K))){ab="jsonp"+w++;if(R.data){R.data=(R.data+"").replace(K,"="+ab+"$1")}R.url=R.url.replace(K,"="+ab+"$1");R.dataType="script";o[ab]=function(ac){aa=ac;N();Q();o[ab]=h;try{delete o[ab]}catch(ad){}if(M){M.removeChild(Y)}}}if(R.dataType=="script"&&R.cache==null){R.cache=false}if(R.cache===false&&L=="GET"){var J=f();var Z=R.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+J+"$2");R.url=Z+((Z==R.url)?(R.url.match(/\?/)?"&":"?")+"_="+J:"")}if(R.data&&L=="GET"){R.url+=(R.url.match(/\?/)?"&":"?")+R.data;R.data=null}if(R.global&&!r.active++){r.event.trigger("ajaxStart")}var V=/^(\w+:)?\/\/([^\/?#]+)/.exec(R.url);if(R.dataType=="script"&&L=="GET"&&V&&(V[1]&&V[1]!=location.protocol||V[2]!=location.host)){var M=document.getElementsByTagName("head")[0];var Y=document.createElement("script");Y.src=R.url;if(R.scriptCharset){Y.charset=R.scriptCharset}if(!ab){var T=false;Y.onload=Y.onreadystatechange=function(){if(!T&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){T=true;N();Q();Y.onload=Y.onreadystatechange=null;M.removeChild(Y)}}}M.appendChild(Y);return h}var P=false;var O=R.xhr();if(R.username){O.open(L,R.url,R.async,R.username,R.password)}else{O.open(L,R.url,R.async)}try{if(R.data){O.setRequestHeader("Content-Type",R.contentType)}if(R.ifModified){O.setRequestHeader("If-Modified-Since",r.lastModified[R.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}O.setRequestHeader("X-Requested-With","XMLHttpRequest");O.setRequestHeader("Accept",R.dataType&&R.accepts[R.dataType]?R.accepts[R.dataType]+", */*":R.accepts._default)}catch(X){}if(R.beforeSend&&R.beforeSend(O,R)===false){if(R.global&&!--r.active){r.event.trigger("ajaxStop")}O.abort();return false}if(R.global){r.event.trigger("ajaxSend",[O,R])}var S=function(ac){if(O.readyState==0){if(U){clearInterval(U);U=null;if(R.global&&!--r.active){r.event.trigger("ajaxStop")}}}else{if(!P&&O&&(O.readyState==4||ac=="timeout")){P=true;if(U){clearInterval(U);U=null}W=ac=="timeout"?"timeout":!r.httpSuccess(O)?"error":R.ifModified&&r.httpNotModified(O,R.url)?"notmodified":"success";if(W=="success"){try{aa=r.httpData(O,R.dataType,R)}catch(ae){W="parsererror"}}if(W=="success"){var ad;try{ad=O.getResponseHeader("Last-Modified")}catch(ae){}if(R.ifModified&&ad){r.lastModified[R.url]=ad}if(!ab){N()}}else{r.handleError(R,O,W)}Q();if(ac){O.abort()}if(R.async){O=null}}}};if(R.async){var U=setInterval(S,13);if(R.timeout>0){setTimeout(function(){if(O&&!P){S("timeout")}},R.timeout)}}try{O.send(R.data)}catch(X){r.handleError(R,O,null,X)}if(!R.async){S()}function N(){if(R.success){R.success(aa,W)}if(R.global){r.event.trigger("ajaxSuccess",[O,R])}}function Q(){if(R.complete){R.complete(O,W)}if(R.global){r.event.trigger("ajaxComplete",[O,R])}if(R.global&&!--r.active){r.event.trigger("ajaxStop")}}return O},handleError:function(K,M,J,L){if(K.error){K.error(M,J,L)}if(K.global){r.event.trigger("ajaxError",[M,K,L])}},active:0,httpSuccess:function(K){try{return !K.status&&location.protocol=="file:"||(K.status>=200&&K.status<300)||K.status==304||K.status==1223}catch(J){}return false},httpNotModified:function(L,J){try{var M=L.getResponseHeader("Last-Modified");return L.status==304||M==r.lastModified[J]}catch(K){}return false},httpData:function(O,M,L){var K=O.getResponseHeader("content-type"),J=M=="xml"||!M&&K&&K.indexOf("xml")>=0,N=J?O.responseXML:O.responseText;if(J&&N.documentElement.tagName=="parsererror"){throw"parsererror"}if(L&&L.dataFilter){N=L.dataFilter(N,M)}if(typeof N==="string"){if(M=="script"){r.globalEval(N)}if(M=="json"){N=o["eval"]("("+N+")")}}return N},param:function(J){var L=[];function M(N,O){L[L.length]=encodeURIComponent(N)+"="+encodeURIComponent(O)}if(r.isArray(J)||J.jquery){r.each(J,function(){M(this.name,this.value)})}else{for(var K in J){if(r.isArray(J[K])){r.each(J[K],function(){M(K,this)})}else{M(K,r.isFunction(J[K])?J[K]():J[K])}}}return L.join("&").replace(/%20/g,"+")}});var p={},q,e=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function y(K,J){var L={};r.each(e.concat.apply([],e.slice(0,J)),function(){L[this]=K});return L}r.fn.extend({show:function(O,Q){if(O){return this.animate(y("show",3),O,Q)}else{for(var M=0,K=this.length;M<K;M++){var J=r.data(this[M],"olddisplay");this[M].style.display=J||"";if(r.css(this[M],"display")==="none"){var L=this[M].tagName,P;if(p[L]){P=p[L]}else{var N=r("<"+L+" />").appendTo("body");P=N.css("display");if(P==="none"){P="block"}N.remove();p[L]=P}r.data(this[M],"olddisplay",P)}}for(var M=0,K=this.length;M<K;M++){this[M].style.display=r.data(this[M],"olddisplay")||""}return this}},hide:function(M,N){if(M){return this.animate(y("hide",3),M,N)}else{for(var L=0,K=this.length;L<K;L++){var J=r.data(this[L],"olddisplay");if(!J&&J!=="none"){r.data(this[L],"olddisplay",r.css(this[L],"display"))}}for(var L=0,K=this.length;L<K;L++){this[L].style.display="none"}return this}},_toggle:r.fn.toggle,toggle:function(L,K){var J=typeof L==="boolean";return r.isFunction(L)&&r.isFunction(K)?this._toggle.apply(this,arguments):L==null||J?this.each(function(){var M=J?L:r(this).is(":hidden");r(this)[M?"show":"hide"]()}):this.animate(y("toggle",3),L,K)},fadeTo:function(J,L,K){return this.animate({opacity:L},J,K)},animate:function(N,K,M,L){var J=r.speed(K,M,L);return this[J.queue===false?"each":"queue"](function(){var P=r.extend({},J),R,Q=this.nodeType==1&&r(this).is(":hidden"),O=this;for(R in N){if(N[R]=="hide"&&Q||N[R]=="show"&&!Q){return P.complete.call(this)}if((R=="height"||R=="width")&&this.style){P.display=r.css(this,"display");P.overflow=this.style.overflow}}if(P.overflow!=null){this.style.overflow="hidden"}P.curAnim=r.extend({},N);r.each(N,function(T,X){var W=new r.fx(O,P,T);if(/toggle|show|hide/.test(X)){W[X=="toggle"?Q?"show":"hide":X](N)}else{var V=X.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),Y=W.cur(true)||0;if(V){var S=parseFloat(V[2]),U=V[3]||"px";if(U!="px"){O.style[T]=(S||1)+U;Y=((S||1)/W.cur(true))*Y;O.style[T]=Y+U}if(V[1]){S=((V[1]=="-="?-1:1)*S)+Y}W.custom(Y,S,U)}else{W.custom(Y,X,"")}}});return true})},stop:function(K,J){var L=r.timers;if(K){this.queue([])}this.each(function(){for(var M=L.length-1;M>=0;M--){if(L[M].elem==this){if(J){L[M](true)}L.splice(M,1)}}});if(!J){this.dequeue()}return this}});r.each({slideDown:y("show",1),slideUp:y("hide",1),slideToggle:y("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(J,K){r.fn[J]=function(L,M){return this.animate(K,L,M)}});r.extend({speed:function(L,M,K){var J=typeof L==="object"?L:{complete:K||!K&&M||r.isFunction(L)&&L,duration:L,easing:K&&M||M&&!r.isFunction(M)&&M};J.duration=r.fx.off?0:typeof J.duration==="number"?J.duration:r.fx.speeds[J.duration]||r.fx.speeds._default;J.old=J.complete;J.complete=function(){if(J.queue!==false){r(this).dequeue()}if(r.isFunction(J.old)){J.old.call(this)}};return J},easing:{linear:function(L,M,J,K){return J+K*L},swing:function(L,M,J,K){return((-Math.cos(L*Math.PI)/2)+0.5)*K+J}},timers:[],fx:function(K,J,L){this.options=J;this.elem=K;this.prop=L;if(!J.orig){J.orig={}}}});r.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(r.fx.step[this.prop]||r.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(K){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var J=parseFloat(r.css(this.elem,this.prop,K));return J&&J>-10000?J:parseFloat(r.curCSS(this.elem,this.prop))||0},custom:function(N,M,L){this.startTime=f();this.start=N;this.end=M;this.unit=L||this.unit||"px";this.now=this.start;this.pos=this.state=0;var J=this;function K(O){return J.step(O)}K.elem=this.elem;if(K()&&r.timers.push(K)&&!q){q=setInterval(function(){var P=r.timers;for(var O=0;O<P.length;O++){if(!P[O]()){P.splice(O--,1)}}if(!P.length){clearInterval(q);q=h}},13)}},show:function(){this.options.orig[this.prop]=r.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());r(this.elem).show()},hide:function(){this.options.orig[this.prop]=r.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(M){var L=f();if(M||L>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var J=true;for(var K in this.options.curAnim){if(this.options.curAnim[K]!==true){J=false}}if(J){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(r.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){r(this.elem).hide()}if(this.options.hide||this.options.show){for(var N in this.options.curAnim){r.attr(this.elem.style,N,this.options.orig[N])}}this.options.complete.call(this.elem)}return false}else{var O=L-this.startTime;this.state=O/this.options.duration;this.pos=r.easing[this.options.easing||(r.easing.swing?"swing":"linear")](this.state,O,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};r.extend(r.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(J){r.attr(J.elem.style,"opacity",J.now)},_default:function(J){if(J.elem.style&&J.elem.style[J.prop]!=null){J.elem.style[J.prop]=J.now+J.unit}else{J.elem[J.prop]=J.now}}}});if(document.documentElement.getBoundingClientRect){r.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return r.offset.bodyOffset(this[0])}var L=this[0].getBoundingClientRect(),O=this[0].ownerDocument,K=O.body,J=O.documentElement,Q=J.clientTop||K.clientTop||0,P=J.clientLeft||K.clientLeft||0,N=L.top+(self.pageYOffset||r.boxModel&&J.scrollTop||K.scrollTop)-Q,M=L.left+(self.pageXOffset||r.boxModel&&J.scrollLeft||K.scrollLeft)-P;return{top:N,left:M}}}else{r.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return r.offset.bodyOffset(this[0])}r.offset.initialized||r.offset.initialize();var O=this[0],L=O.offsetParent,K=O,T=O.ownerDocument,R,M=T.documentElement,P=T.body,Q=T.defaultView,J=Q.getComputedStyle(O,null),S=O.offsetTop,N=O.offsetLeft;while((O=O.parentNode)&&O!==P&&O!==M){R=Q.getComputedStyle(O,null);S-=O.scrollTop,N-=O.scrollLeft;if(O===L){S+=O.offsetTop,N+=O.offsetLeft;if(r.offset.doesNotAddBorder&&!(r.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(O.tagName))){S+=parseInt(R.borderTopWidth,10)||0,N+=parseInt(R.borderLeftWidth,10)||0}K=L,L=O.offsetParent}if(r.offset.subtractsBorderForOverflowNotVisible&&R.overflow!=="visible"){S+=parseInt(R.borderTopWidth,10)||0,N+=parseInt(R.borderLeftWidth,10)||0}J=R}if(J.position==="relative"||J.position==="static"){S+=P.offsetTop,N+=P.offsetLeft}if(J.position==="fixed"){S+=Math.max(M.scrollTop,P.scrollTop),N+=Math.max(M.scrollLeft,P.scrollLeft)}return{top:S,left:N}}}r.offset={initialize:function(){if(this.initialized){return}var Q=document.body,K=document.createElement("div"),M,L,S,N,R,J,O=Q.style.marginTop,P='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';R={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(J in R){K.style[J]=R[J]}K.innerHTML=P;Q.insertBefore(K,Q.firstChild);M=K.firstChild,L=M.firstChild,N=M.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(L.offsetTop!==5);this.doesAddBorderForTableAndCells=(N.offsetTop===5);M.style.overflow="hidden",M.style.position="relative";this.subtractsBorderForOverflowNotVisible=(L.offsetTop===-5);Q.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(Q.offsetTop===0);Q.style.marginTop=O;Q.removeChild(K);this.initialized=true},bodyOffset:function(J){r.offset.initialized||r.offset.initialize();var L=J.offsetTop,K=J.offsetLeft;if(r.offset.doesNotIncludeMarginInBodyOffset){L+=parseInt(r.curCSS(J,"marginTop",true),10)||0,K+=parseInt(r.curCSS(J,"marginLeft",true),10)||0}return{top:L,left:K}}};r.fn.extend({position:function(){var N=0,M=0,K;if(this[0]){var L=this.offsetParent(),O=this.offset(),J=/^body|html$/i.test(L[0].tagName)?{top:0,left:0}:L.offset();O.top-=m(this,"marginTop");O.left-=m(this,"marginLeft");J.top+=m(L,"borderTopWidth");J.left+=m(L,"borderLeftWidth");K={top:O.top-J.top,left:O.left-J.left}}return K},offsetParent:function(){var J=this[0].offsetParent||document.body;while(J&&(!/^body|html$/i.test(J.tagName)&&r.css(J,"position")=="static")){J=J.offsetParent}return r(J)}});r.each(["Left","Top"],function(K,J){var L="scroll"+J;r.fn[L]=function(M){if(!this[0]){return null}return M!==h?this.each(function(){this==o||this==document?o.scrollTo(!K?M:r(o).scrollLeft(),K?M:r(o).scrollTop()):this[L]=M}):this[0]==o||this[0]==document?self[K?"pageYOffset":"pageXOffset"]||r.boxModel&&document.documentElement[L]||document.body[L]:this[0][L]}});r.each(["Height","Width"],function(N,L){var J=N?"Left":"Top",M=N?"Right":"Bottom",K=L.toLowerCase();r.fn["inner"+L]=function(){return this[0]?r.css(this[0],K,false,"padding"):null};r.fn["outer"+L]=function(P){return this[0]?r.css(this[0],K,false,P?"margin":"border"):null};var O=L.toLowerCase();r.fn[O]=function(P){return this[0]==o?document.compatMode=="CSS1Compat"&&document.documentElement["client"+L]||document.body["client"+L]:this[0]==document?Math.max(document.documentElement["client"+L],document.body["scroll"+L],document.documentElement["scroll"+L],document.body["offset"+L],document.documentElement["offset"+L]):P===h?(this.length?r.css(this[0],O):null):this.css(O,typeof P==="string"?P:P+"px")}})})();function css_browser_selector(n){var a=n.toLowerCase(),e=function(b){return a.indexOf(b)>-1},j="gecko",m="webkit",p="safari",d="opera",f=document.documentElement,l=[(!(/opera|webtv/i.test(a))&&/msie\s(\d)/.test(a))?("ie ie"+RegExp.$1):e("firefox/2")?j+" ff2":e("firefox/3.5")?j+" ff3 ff3_5":e("firefox/3")?j+" ff3":e("gecko/")?j:e("opera")?d+(/version\/(\d+)/.test(a)?" "+d+RegExp.$1:(/opera(\s|\/)(\d+)/.test(a)?" "+d+RegExp.$2:"")):e("konqueror")?"konqueror":e("chrome")?m+" chrome":e("iron")?m+" iron":e("applewebkit/")?m+" "+p+(/version\/(\d+)/.test(a)?" "+p+RegExp.$1:""):e("mozilla/")?j:"",e("j2me")?"mobile":e("iphone")?"iphone":e("ipod")?"ipod":e("ipad")?"ipad":e("mac")?"mac":e("darwin")?"mac":e("webtv")?"webtv":e("win")?"win":e("freebsd")?"freebsd":(e("x11")||e("linux"))?"linux":"","js"];c=l.join(" ");f.className+=" "+c;return c}css_browser_selector(navigator.userAgent);
/* main class
 * @depends jquery/jquery-1.4.2.min.js
 * @depends plugins/css_browser_selector.js
 */
var keyonary=keyonary||{};keyonary.main=function(){_queue=[];var a={init:function(){keyonary.main.debug("# [main init]");for(var b=0;b<_queue.length;b++){try{_queue[b]()}catch(d){keyonary.main.debug(d)}}},queue:function(d){if(arguments.length>0){for(var b=0;b<arguments.length;b++){_queue.push(arguments[b])}}},debug:function(b){if(window.console&&window.console.log){window.console.log(b)}}};return a}();$(document).ready(function(){keyonary.main.init();FB.init({appId:$("html").attr("app_id"),cookie:true,status:true,xfbml:true})});jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,n,m){var j=1.70158;var l=0;var g=n;if(h==0){return e}if((h/=m)==1){return e+n}if(!l){l=m*0.3}if(g<Math.abs(n)){g=n;var j=l/4}else{var j=l/(2*Math.PI)*Math.asin(n/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*m-j)*(2*Math.PI)/l))+e},easeOutElastic:function(f,h,e,n,m){var j=1.70158;var l=0;var g=n;if(h==0){return e}if((h/=m)==1){return e+n}if(!l){l=m*0.3}if(g<Math.abs(n)){g=n;var j=l/4}else{var j=l/(2*Math.PI)*Math.asin(n/g)}return g*Math.pow(2,-10*h)*Math.sin((h*m-j)*(2*Math.PI)/l)+n+e},easeInOutElastic:function(f,h,e,n,m){var j=1.70158;var l=0;var g=n;if(h==0){return e}if((h/=m/2)==2){return e+n}if(!l){l=m*(0.3*1.5)}if(g<Math.abs(n)){g=n;var j=l/4}else{var j=l/(2*Math.PI)*Math.asin(n/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*m-j)*(2*Math.PI)/l))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*m-j)*(2*Math.PI)/l)*0.5+n+e},easeInBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return j/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return j/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});(function(d){var a=function(f){return{name:f,isFxQueue:true,paused:false,playing:null,shouldStart:function(){return(this.playing==null||!this.paused)},pause:function(){if(!this.playing){return false}((this.playing.isScope)?this.playing:this.playing.elem).stop();this.paused=true;return true},stop:function(){if(!this.playing){return false}((this.playing.isScope)?this.playing:this.playing.elem).stop();this.playing=null;this.paused=false;this.length=0;return true},start:function(){if(this.playing&&this.paused){this.playing();this.paused=false;return true}else{if(this.length&&!this.playing){this.playing=this[0];d(document).dequeue(this.name);return true}}return false},getScope:function(g){if(this.playing&&this.playing.isScope&&this.playing.called==g){return this.playing}for(var h=0;h<this.length;h++){if(this[h].isScope&&this[h].called==g){return this[h]}}return false},dequeue:function(h){if(!this.playing){return false}if(this.playing.isScope){var l=this.playing.items;for(var j=0;j<l.length;j++){if(h==l[j].elem[0]&&!l[j].finished){l[j].finished=true;this.playing.finishedItems++}}if(this.playing.finishedItems<l.length){return false}}else{if(this.playing.elem&&this.playing.elem[0]!=h){return false}}var g=this;setTimeout(function(){g.playing=g[0];d(document).dequeue(g.name)},this.playing.postDelay);return true}}};var b=function(f){var g=function(){for(var h=0;h<g.items.length;h++){g.items[h]()}};g.called=f;g.isScope=true;g.finishedItems=0;g.stop=function(){for(var h=0;h<g.items.length;h++){g.items[h].elem.stop()}};g.items=[];return g};var e=d.fn.animate;d.fn.animate=function(m,g,l,o){if(!this.length){return this}var r=(typeof g=="object")?g:d.speed(g,l,o);var f=d.extend({queue:"fx",position:"end",limit:-1,preDelay:0,postDelay:0,complete:null},r);if(!f.queue||f.queue=="fx"){return e.apply(this,arguments)}var h=f.queue;var j=d(document).queue(f.queue);if(!j.isFxQueue){d.extend(j,a(h))}f.queue=false;var n=function(){f.complete=function(){j.dequeue(this);if(d.isFunction(n.users_complete)){return n.users_complete.apply(this,arguments)}};setTimeout(function(){n.elem.animate(m,f)},n.preDelay)};n.elem=this;n.preDelay=f.preDelay||0;n.postDelay=f.postDelay||0;n.users_complete=g.complete||o;var q=j.getScope(f.scope);if(q){q.items.push(n);if(j.playing==q){n()}return this}if(f.limit<0||j.length<f.limit){var p=null;if(f.scope){p=b(f.scope);p.items.push(n)}else{p=n}if(f.position=="end"){j.push(p)}else{if(f.position=="front"){j.splice(1,0,p)}}if(j.shouldStart()){j.start()}return this}};d.extend({fxqueue:function(f){return d(document).queue(f)}})})(jQuery);(function(b){b.address=(function(){var a6=function(d){b(this).trigger(b.extend(b.Event(d),(function(){var e={value:this.value(),path:this.path(),pathNames:this.pathNames(),parameterNames:this.parameterNames(),parameters:{},queryString:this.queryString()};for(var f=0,g=e.parameterNames.length;f<g;f++){e.parameters[e.parameterNames[f]]=this.parameter(e.parameterNames[f])}return e}).call(this)))};var ai=function(){a6.call(b.address,"init")};var aV=function(){a6.call(b.address,"change")};var ao=function(){var d=aj.href.indexOf("#");return d!=-1?aC(aU(aj.href.substr(d+1))):""};var a1=function(){try{return top.document!=undefined?top:window}catch(d){return window}};var az=function(e,d){if(aE.strict){e=d?(e.substr(0,1)!="/"?"/"+e:e):(e==""?"/":e)}return e};var aT=function(d,e){return(a0&&aj.protocol=="file:")?(e?an.replace(/\?/,"%3F"):an.replace(/%253F/,"?")):d};var aB=function(d){for(var f=0,g=d.childNodes.length,e;f<g;f++){if(d.childNodes[f].src){aY=String(d.childNodes[f].src)}if(e=aB(d.childNodes[f])){return e}}};var ag=function(){if(!aR){var e=ao();var d=!(an==e);if(aQ&&aS<523){if(aA!=p.length){aA=p.length;if(typeof aL[aA-1]!=ay){an=aL[aA-1]}ak(false)}}else{if(a0&&aS<7&&d){aj.reload()}else{if(d){an=e;ak(false)}}}}};var ak=function(d){aV();if(d){a6.call(b.address,"internalChange")}else{a6.call(b.address,"externalChange")}aW(aO,10)};var aO=function(){var e=(aj.pathname+(/\/$/.test(aj.pathname)?"":"/")+aD.value()).replace(/\/\//,"/").replace(/^\/$/,"");var d=window[aE.tracker];if(typeof d==a2){d(e)}else{if(typeof pageTracker!=ay&&typeof pageTracker._trackPageview==a2){pageTracker._trackPageview(e)}else{if(typeof urchinTracker==a2){urchinTracker(e)}}}};var a4=function(){var d=a3.contentWindow.document;d.open();d.write("<html><head><title>"+aG.title+"</title><script>var "+aN+' = "'+ao()+'";<\/script></head></html>');d.close()};var aq=function(){if(!al){al=aH;if(a0&&aS<8){var d=aG.getElementsByTagName("frameset")[0];a3=aG.createElement((d?"":"i")+"frame");if(d){d.insertAdjacentElement("beforeEnd",a3);d[d.cols?"cols":"rows"]+=",0";a3.src="javascript:false";a3.noResize=true;a3.frameBorder=a3.frameSpacing=0}else{a3.src="javascript:false";a3.style.display="none";aG.body.insertAdjacentElement("afterBegin",a3)}aW(function(){b(a3).bind("load",function(){var f=a3.contentWindow;var e=f.location.href;an=(typeof f[aN]!=ay?f[aN]:"");if(an!=ao()){ak(false);aj.hash=aT(an,aH)}});if(typeof a3.contentWindow[aN]==ay){a4()}},50)}else{if(aQ){if(aS<418){b(aG.body).append('<form id="'+aN+'" style="position:absolute;top:-9999px;" method="get"></form>');av=aG.getElementById(aN)}if(typeof aj[aN]==ay){aj[aN]={}}if(typeof aj[aN][aj.pathname]!=ay){aL=aj[aN][aj.pathname].split(",")}}}aW(function(){ai();ak(false)},1);if(a0&&aS>=8){aG.body.onhashchange=ag}else{aP(ag,50)}b("a[rel*=address:]").address()}};var aD={baseURL:function(){var d=aj.href;if(d.indexOf("#")!=-1){d=d.substr(0,d.indexOf("#"))}if(d.substr(d.length-1)=="/"){d=d.substr(0,d.length-1)}return d},strict:function(){return aE.strict},history:function(){return aE.history},tracker:function(){return aE.tracker},title:function(){return aG.title},value:function(){if(!aI){return null}return aU(az(aT(an,a),a))},path:function(){var d=this.value();return(d.indexOf("?")!=-1)?d.split("?")[0]:d},pathNames:function(){var e=this.path();var d=e.split("/");if(e.substr(0,1)=="/"||e.length==0){d.splice(0,1)}if(e.substr(e.length-1,1)=="/"){d.splice(d.length-1,1)}return d},queryString:function(){var e=this.value();var d=e.indexOf("?");if(d!=-1&&d<e.length){return e.substr(d+1)}},parameter:function(g){var l=this.value();var f=l.indexOf("?");if(f!=-1){l=l.substr(f+1);var h=l.split("&");var j,e=h.length,d=[];while(e--){j=h[e].split("=");if(j[0]==g){d.push(j[1])}}if(d.length!=0){return d.length!=1?d:d[0]}}},parameterNames:function(){var e=this.value();var g=e.indexOf("?");var d=[];if(g!=-1){e=e.substr(g+1);if(e!=""&&e.indexOf("=")!=-1){var h=e.split("&");var f=0;while(f<h.length){d.push(h[f].split("=")[0]);f++}}}return d}};var ax={strict:function(d){aE.strict=d},history:function(d){aE.history=d},tracker:function(d){aE.tracker=d},title:function(d){d=aU(d);aW(function(){aw=aG.title=d;if(au&&a3&&a3.contentWindow&&a3.contentWindow.document){a3.contentWindow.document.title=d;au=a}if(!ar&&aK){aj.replace(aj.href.indexOf("#")!=-1?aj.href:aj.href+"#")}ar=a},50)},value:function(d){d=aC(aU(az(d,aH)));if(d=="/"){d=""}if(an==d){return}ar=aH;an=d;aR=aH;ak(true);aL[p.length]=an;if(aQ){if(aE.history){aj[aN][aj.pathname]=aL.toString();aA=p.length+1;if(aS<418){if(aj.search==""){av.action="#"+an;av.submit()}}else{if(aS<523||an==""){var e=aG.createEvent("MouseEvents");e.initEvent("click",aH,aH);var f=aG.createElement("a");f.href="#"+an;f.dispatchEvent(e)}else{aj.hash="#"+an}}}else{aj.replace("#"+an)}}else{if(an!=ao()){if(aE.history){aj.hash="#"+aT(an,aH)}else{aj.replace("#"+an)}}}if((a0&&aS<8)&&aE.history){aW(a4,50)}if(aQ){aW(function(){aR=a},1)}else{aR=a}}};var aN="jQueryAddress",a2="function",ay="undefined",aH=true,a=false,aJ=b.browser,aS=parseFloat(b.browser.version),aK=aJ.mozilla,a0=aJ.msie,at=aJ.opera,aQ=aJ.safari,aI=a,ap=a1(),aG=ap.document,p=ap.history,aj=ap.location,aP=setInterval,aW=setTimeout,aU=decodeURI,aC=encodeURI,aF=navigator.userAgent,a3,av,aY,aw=aG.title,aA=p.length,aR=a,al=a,ar=aH,au=aH,aL=[],aM={},an=ao(),aZ={},aE={history:aH,strict:aH};if(a0){aS=parseFloat(aF.substr(aF.indexOf("MSIE")+4));if(aG.documentMode&&aG.documentMode!=aS){aS=aG.documentMode!=8?7:8}}aI=(aK&&aS>=1)||(a0&&aS>=6)||(at&&aS>=9.5)||(aQ&&aS>=312);if(aI){for(var ah=1;ah<aA;ah++){aL.push("")}aL.push(ao());if(a0&&aj.hash!=ao()){aj.hash="#"+aT(ao(),aH)}if(at){history.navigationMode="compatible"}aB(document);var a7=aY.indexOf("?");if(aY&&a7>-1){var aX,a5=aY.substr(a7+1).split("&");for(var ah=0,am;am=a5[ah];ah++){aX=am.split("=");if(/^(history|strict)$/.test(aX[0])){aE[aX[0]]=(isNaN(aX[1])?/^(true|yes)$/i.test(aX[1]):(parseInt(aX[1])!=0))}if(/^tracker$/.test(aX[0])){aE[aX[0]]=aX[1]}}}b(aq)}else{if((!aI&&aj.href.indexOf("#")!=-1)||(aQ&&aS<418&&aj.href.indexOf("#")!=-1&&aj.search!="")){aG.open();aG.write('<html><head><meta http-equiv="refresh" content="0;url='+aj.href.substr(0,aj.href.indexOf("#"))+'" /></head></html>');aG.close()}else{aO()}}b.each(("init,change,internalChange,externalChange").split(","),function(d,e){aZ[e]=function(f,g){b(b.address).bind(e,g||f,g&&f);return this}});b.each(("strict,history,tracker,title,value").split(","),function(d,e){aZ[e]=function(f){if(typeof f!="undefined"){if(aI){ax[e](f)}return b.address}else{return aD[e]()}}});b.each(("baseURL,path,pathNames,queryString,parameter,parameterNames").split(","),function(d,e){aZ[e]=function(f){return aD[e](f)}});return aZ})();b.fn.address=function(a){b(this).click(function(){var d=a?a.call(this):/address:/.test(b(this).attr("rel"))?b(this).attr("rel").split("address:")[1].split(" ")[0]:b(this).attr("href").replace(/^#/,"");b.address.value(d);return false})}}(jQuery));(function(e){var d="deg";e.fn.rotate=function(h){var g=e(this).css("transform")||"none";if(typeof h=="undefined"){if(g){var f=g.match(/rotate\(([^)]+)\)/);if(f&&f[1]){return f[1]}}return 0}var f=h.toString().match(/^(-?\d+(\.\d+)?)(.+)?$/);if(f){if(f[3]){d=f[3]}e(this).css("transform",g.replace(/none|rotate\([^)]*\)/,"")+"rotate("+f[1]+d+")")}};e.fn.scale=function(l,j,g){var h=e(this).css("transform");if(typeof l=="undefined"){if(h){var f=h.match(/scale\(([^)]+)\)/);if(f&&f[1]){return f[1]}}return 1}e(this).css("transform",h.replace(/none|scale\([^)]*\)/,"")+"scale("+l+")")};var b=e.fx.prototype.cur;e.fx.prototype.cur=function(){if(this.prop=="rotate"){return parseFloat(e(this.elem).rotate())}else{if(this.prop=="scale"){return parseFloat(e(this.elem).scale())}}return b.apply(this,arguments)};e.fx.step.rotate=function(f){e(f.elem).rotate(f.now+d)};e.fx.step.scale=function(f){e(f.elem).scale(f.now)};var a=e.fn.animate;e.fn.animate=function(g){if(typeof g.rotate!="undefined"){var f=g.rotate.toString().match(/^(([+-]=)?(-?\d+(\.\d+)?))(.+)?$/);if(f&&f[5]){d=f[5]}g.rotate=f[1]}return a.apply(this,arguments)}})(jQuery);(function(b){function d(f){var e=["transform","WebkitTransform","MozTransform"];var g;while(g=e.shift()){if(typeof f.style[g]!="undefined"){return g}}return"transform"}var a=b.fn.css;b.fn.css=function(e){if(typeof b.props.transform=="undefined"&&(e=="transform"||(typeof e=="object"&&typeof e.transform!="undefined"))){b.props.transform=d(this.get(0))}if(e=="transform"){e=b.props.transform}return a.apply(this,arguments)}})(jQuery);(function(aN){var aE,az,ax,aK,ao,aI,av,ar,aq,aC=0,aL={},aB=[],aD=0,aM={},aH=[],an=null,aA=new Image,al=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,R=/[^\.]\.(swf)\s*$/i,ak,aj=1,aG,aF,aJ=false,aw=aN.extend(aN("<div/>")[0],{prop:0}),ay=0,ad=!aN.support.opacity&&!window.XMLHttpRequest,ai=function(){az.hide();aA.onerror=aA.onload=null;an&&an.abort();aE.empty()},ac=function(){aN.fancybox('<p id="fancybox_error">The requested content cannot be loaded.<br />Please try again later.</p>',{scrolling:"no",padding:20,transitionIn:"none",transitionOut:"none"})},ah=function(){return[aN(window).width(),aN(window).height(),aN(document).scrollLeft(),aN(document).scrollTop()]},w=function(){var e=ah(),m={},j=aM.margin,l=aM.autoScale,g=(20+j)*2,b=(20+j)*2,h=aM.padding*2;if(aM.width.toString().indexOf("%")>-1){m.width=e[0]*parseFloat(aM.width)/100-40;l=false}else{m.width=aM.width+h}if(aM.height.toString().indexOf("%")>-1){m.height=e[1]*parseFloat(aM.height)/100-40;l=false}else{m.height=aM.height+h}if(l&&(m.width>e[0]-g||m.height>e[1]-b)){if(aL.type=="image"||aL.type=="swf"){g+=h;b+=h;l=Math.min(Math.min(e[0]-g,aM.width)/aM.width,Math.min(e[1]-b,aM.height)/aM.height);m.width=Math.round(l*(m.width-h))+h;m.height=Math.round(l*(m.height-h))+h}else{m.width=Math.min(m.width,e[0]-g);m.height=Math.min(m.height,e[1]-b)}}m.top=e[3]+(e[1]-(m.height+40))*0.5;m.left=e[2]+(e[0]-(m.width+40))*0.5;if(aM.autoScale===false){m.top=Math.max(e[3]+j,m.top);m.left=Math.max(e[2]+j,m.left)}return m},t=function(b){if(b&&b.length){switch(aM.titlePosition){case"inside":return b;case"over":return'<span id="fancybox-title-over">'+b+"</span>";default:return'<span id="fancybox-title-wrap"><span id="fancybox-title-left"></span><span id="fancybox-title-main">'+b+'</span><span id="fancybox-title-right"></span></span>'}}return false},r=function(){var b=aM.title,g=aF.width-aM.padding*2,e="fancybox-title-"+aM.titlePosition;aN("#fancybox-title").remove();ay=0;if(aM.titleShow!==false){b=aN.isFunction(aM.titleFormat)?aM.titleFormat(b,aH,aD,aM):t(b);if(!(!b||b==="")){aN('<div id="fancybox-title" class="'+e+'" />').css({width:g,paddingLeft:aM.padding,paddingRight:aM.padding}).html(b).appendTo("body");switch(aM.titlePosition){case"inside":ay=aN("#fancybox-title").outerHeight(true)-aM.padding;aF.height+=ay;break;case"over":aN("#fancybox-title").css("bottom",aM.padding);break;default:aN("#fancybox-title").css("bottom",aN("#fancybox-title").outerHeight(true)*-1);break}aN("#fancybox-title").appendTo(ao).hide()}}},o=function(){aN(document).unbind("keydown.fb").bind("keydown.fb",function(b){if(b.keyCode==27&&aM.enableEscapeButton){b.preventDefault();aN.fancybox.close()}else{if(b.keyCode==37){b.preventDefault();aN.fancybox.prev()}else{if(b.keyCode==39){b.preventDefault();aN.fancybox.next()}}}});if(aN.fn.mousewheel){aK.unbind("mousewheel.fb");aH.length>1&&aK.bind("mousewheel.fb",function(b,e){b.preventDefault();aJ||e===0||(e>0?aN.fancybox.prev():aN.fancybox.next())})}if(aM.showNavArrows){if(aM.cyclic&&aH.length>1||aD!==0){ar.show()}if(aM.cyclic&&aH.length>1||aD!=aH.length-1){aq.show()}}},f=function(){var b,e;if(aH.length-1>aD){b=aH[aD+1].href;if(typeof b!=="undefined"&&b.match(al)){e=new Image;e.src=b}}if(aD>0){b=aH[aD-1].href;if(typeof b!=="undefined"&&b.match(al)){e=new Image;e.src=b}}},ag=function(){aI.css("overflow",aM.scrolling=="auto"?aM.type=="image"||aM.type=="iframe"||aM.type=="swf"?"hidden":"auto":aM.scrolling=="yes"?"auto":"visible");if(!aN.support.opacity){aI.get(0).style.removeAttribute("filter");aK.get(0).style.removeAttribute("filter")}aN("#fancybox-title").show();aM.hideOnContentClick&&aI.one("click",aN.fancybox.close);aM.hideOnOverlayClick&&ax.one("click",aN.fancybox.close);aM.showCloseButton&&av.show();o();aN(window).bind("resize.fb",aN.fancybox.center);aM.centerOnScroll?aN(window).bind("scroll.fb",aN.fancybox.center):aN(window).unbind("scroll.fb");aN.isFunction(aM.onComplete)&&aM.onComplete(aH,aD,aM);aJ=false;f()},af=function(b){var j=Math.round(aG.width+(aF.width-aG.width)*b),g=Math.round(aG.height+(aF.height-aG.height)*b),h=Math.round(aG.top+(aF.top-aG.top)*b),e=Math.round(aG.left+(aF.left-aG.left)*b);aK.css({width:j+"px",height:g+"px",top:h+"px",left:e+"px"});j=Math.max(j-aM.padding*2,0);g=Math.max(g-(aM.padding*2+ay*b),0);aI.css({width:j+"px",height:g+"px"});if(typeof aF.opacity!=="undefined"){aK.css("opacity",b<0.5?0.5:b)}},d=function(b){var e=b.offset();e.top+=parseFloat(b.css("paddingTop"))||0;e.left+=parseFloat(b.css("paddingLeft"))||0;e.top+=parseFloat(b.css("border-top-width"))||0;e.left+=parseFloat(b.css("border-left-width"))||0;e.width=b.width();e.height=b.height();return e},ab=function(){var b=aL.orig?aN(aL.orig):false,e={};if(b&&b.length){b=d(b);e={width:b.width+aM.padding*2,height:b.height+aM.padding*2,top:b.top-aM.padding-20,left:b.left-aM.padding-20}}else{b=ah();e={width:1,height:1,top:b[3]+b[1]*0.5,left:b[2]+b[0]*0.5}}return e},ae=function(){az.hide();if(aK.is(":visible")&&aN.isFunction(aM.onCleanup)){if(aM.onCleanup(aH,aD,aM)===false){aN.event.trigger("fancybox-cancel");aJ=false;return}}aH=aB;aD=aC;aM=aL;aI.get(0).scrollTop=0;aI.get(0).scrollLeft=0;if(aM.overlayShow){ad&&aN("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});ax.css({"background-color":aM.overlayColor,opacity:aM.overlayOpacity}).unbind().show()}aF=w();r();if(aK.is(":visible")){aN(av.add(ar).add(aq)).hide();var b=aK.position(),e;aG={top:b.top,left:b.left,width:aK.width(),height:aK.height()};e=aG.width==aF.width&&aG.height==aF.height;aI.fadeOut(aM.changeFade,function(){var g=function(){aI.html(aE.contents()).fadeIn(aM.changeFade,ag)};aN.event.trigger("fancybox-change");aI.empty().css("overflow","hidden");if(e){aI.css({top:aM.padding,left:aM.padding,width:Math.max(aF.width-aM.padding*2,1),height:Math.max(aF.height-aM.padding*2-ay,1)});g()}else{aI.css({top:aM.padding,left:aM.padding,width:Math.max(aG.width-aM.padding*2,1),height:Math.max(aG.height-aM.padding*2,1)});aw.prop=0;aN(aw).animate({prop:1},{duration:aM.changeSpeed,easing:aM.easingChange,step:af,complete:g})}})}else{aK.css("opacity",1);if(aM.transitionIn=="elastic"){aG=ab();aI.css({top:aM.padding,left:aM.padding,width:Math.max(aG.width-aM.padding*2,1),height:Math.max(aG.height-aM.padding*2,1)}).html(aE.contents());aK.css(aG).show();if(aM.opacity){aF.opacity=0}aw.prop=0;aN(aw).animate({prop:1},{duration:aM.speedIn,easing:aM.easingIn,step:af,complete:ag})}else{aI.css({top:aM.padding,left:aM.padding,width:Math.max(aF.width-aM.padding*2,1),height:Math.max(aF.height-aM.padding*2-ay,1)}).html(aE.contents());aK.css(aF).fadeIn(aM.transitionIn=="none"?0:aM.speedIn,ag)}}},am=function(){aE.width(aL.width);aE.height(aL.height);if(aL.width=="auto"){aL.width=aE.width()}if(aL.height=="auto"){aL.height=aE.height()}ae()},a=function(){aJ=true;aL.width=aA.width;aL.height=aA.height;aN("<img />").attr({id:"fancybox-img",src:aA.src,alt:aL.title}).appendTo(aE);ae()},ap=function(){ai();var e=aB[aC],l,h,j,g,b;aL=aN.extend({},aN.fn.fancybox.defaults,typeof aN(e).data("fancybox")=="undefined"?aL:aN(e).data("fancybox"));j=e.title||aN(e).title||aL.title||"";if(e.nodeName&&!aL.orig){aL.orig=aN(e).children("img:first").length?aN(e).children("img:first"):aN(e)}if(j===""&&aL.orig){j=aL.orig.attr("alt")}l=e.nodeName&&/^(?:javascript|#)/i.test(e.href)?aL.href||null:aL.href||e.href||null;if(aL.type){h=aL.type;if(!l){l=aL.content}}else{if(aL.content){h="html"}else{if(l){if(l.match(al)){h="image"}else{if(l.match(R)){h="swf"}else{if(aN(e).hasClass("iframe")){h="iframe"}else{if(l.match(/#/)){e=l.substr(l.indexOf("#"));h=aN(e).length>0?"inline":"ajax"}else{h="ajax"}}}}}else{h="inline"}}}aL.type=h;aL.href=l;aL.title=j;if(aL.autoDimensions&&aL.type!=="iframe"&&aL.type!=="swf"){aL.width="auto";aL.height="auto"}if(aL.modal){aL.overlayShow=true;aL.hideOnOverlayClick=false;aL.hideOnContentClick=false;aL.enableEscapeButton=false;aL.showCloseButton=false}if(aN.isFunction(aL.onStart)){if(aL.onStart(aB,aC,aL)===false){aJ=false;return}}aE.css("padding",20+aL.padding+aL.margin);aN(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){aN(this).replaceWith(aI.children())});switch(h){case"html":aE.html(aL.content);am();break;case"inline":aN('<div class="fancybox-inline-tmp" />').hide().insertBefore(aN(e)).bind("fancybox-cleanup",function(){aN(this).replaceWith(aI.children())}).bind("fancybox-cancel",function(){aN(this).replaceWith(aE.children())});aN(e).appendTo(aE);am();break;case"image":aJ=false;aN.fancybox.showActivity();aA=new Image;aA.onerror=function(){ac()};aA.onload=function(){aA.onerror=null;aA.onload=null;a()};aA.src=l;break;case"swf":g='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+aL.width+'" height="'+aL.height+'"><param name="movie" value="'+l+'"></param>';b="";aN.each(aL.swf,function(n,m){g+='<param name="'+n+'" value="'+m+'"></param>';b+=" "+n+'="'+m+'"'});g+='<embed src="'+l+'" type="application/x-shockwave-flash" width="'+aL.width+'" height="'+aL.height+'"'+b+"></embed></object>";aE.html(g);am();break;case"ajax":e=l.split("#",2);h=aL.ajax.data||{};if(e.length>1){l=e[0];if(typeof h=="string"){h+="&selector="+e[1]}else{h.selector=e[1]}}aJ=false;aN.fancybox.showActivity();an=aN.ajax(aN.extend(aL.ajax,{url:l,data:h,error:ac,success:function(m){if(an.status==200){aE.html(m);am()}}}));break;case"iframe":aN('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" scrolling="'+aL.scrolling+'" src="'+aL.href+'"></iframe>').appendTo(aE);ae();break}},au=function(){if(az.is(":visible")){aN("div",az).css("top",aj*-40+"px");aj=(aj+1)%12}else{clearInterval(ak)}},at=function(){if(!aN("#fancybox-wrap").length){aN("body").append(aE=aN('<div id="fancybox-tmp"></div>'),az=aN('<div id="fancybox-loading"><div></div></div>'),ax=aN('<div id="fancybox-overlay"></div>'),aK=aN('<div id="fancybox-wrap"></div>'));if(!aN.support.opacity){aK.addClass("fancybox-ie");az.addClass("fancybox-ie")}ao=aN('<div id="fancybox-outer"></div>').append('<div class="fancy-bg" id="fancy-bg-n"></div><div class="fancy-bg" id="fancy-bg-ne"></div><div class="fancy-bg" id="fancy-bg-e"></div><div class="fancy-bg" id="fancy-bg-se"></div><div class="fancy-bg" id="fancy-bg-s"></div><div class="fancy-bg" id="fancy-bg-sw"></div><div class="fancy-bg" id="fancy-bg-w"></div><div class="fancy-bg" id="fancy-bg-nw"></div>').appendTo(aK);ao.append(aI=aN('<div id="fancybox-inner"></div>'),av=aN('<a id="fancybox-close"></a>'),ar=aN('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),aq=aN('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));av.click(aN.fancybox.close);az.click(aN.fancybox.cancel);ar.click(function(b){b.preventDefault();aN.fancybox.prev()});aq.click(function(b){b.preventDefault();aN.fancybox.next()});if(ad){ax.get(0).style.setExpression("height","document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'");az.get(0).style.setExpression("top","(-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px'");ao.prepend('<iframe id="fancybox-hide-sel-frame" src="javascript:\'\';" scrolling="no" frameborder="0" ></iframe>')}}};aN.fn.fancybox=function(b){aN(this).data("fancybox",aN.extend({},b,aN.metadata?aN(this).metadata():{})).unbind("click.fb").bind("click.fb",function(e){e.preventDefault();if(!aJ){aJ=true;aN(this).blur();aB=[];aC=0;e=aN(this).attr("rel")||"";if(!e||e==""||e==="nofollow"){aB.push(this)}else{aB=aN("a[rel="+e+"], area[rel="+e+"]");aC=aB.index(this)}ap();return false}});return this};aN.fancybox=function(b,h){if(!aJ){aJ=true;h=typeof h!=="undefined"?h:{};aB=[];aC=h.index||0;if(aN.isArray(b)){for(var e=0,g=b.length;e<g;e++){if(typeof b[e]=="object"){aN(b[e]).data("fancybox",aN.extend({},h,b[e]))}else{b[e]=aN({}).data("fancybox",aN.extend({content:b[e]},h))}}aB=jQuery.merge(aB,b)}else{if(typeof b=="object"){aN(b).data("fancybox",aN.extend({},h,b))}else{b=aN({}).data("fancybox",aN.extend({content:b},h))}aB.push(b)}if(aC>aB.length||aC<0){aC=0}ap()}};aN.fancybox.showActivity=function(){clearInterval(ak);az.show();ak=setInterval(au,66)};aN.fancybox.hideActivity=function(){az.hide()};aN.fancybox.next=function(){return aN.fancybox.pos(aD+1)};aN.fancybox.prev=function(){return aN.fancybox.pos(aD-1)};aN.fancybox.pos=function(b){if(!aJ){b=parseInt(b,10);if(b>-1&&aH.length>b){aC=b;ap()}if(aM.cyclic&&aH.length>1&&b<0){aC=aH.length-1;ap()}if(aM.cyclic&&aH.length>1&&b>=aH.length){aC=0;ap()}}};aN.fancybox.cancel=function(){if(!aJ){aJ=true;aN.event.trigger("fancybox-cancel");ai();aL&&aN.isFunction(aL.onCancel)&&aL.onCancel(aB,aC,aL);aJ=false}};aN.fancybox.close=function(){function b(){ax.fadeOut("fast");aK.hide();aN.event.trigger("fancybox-cleanup");aI.empty();aN.isFunction(aM.onClosed)&&aM.onClosed(aH,aD,aM);aH=aL=[];aD=aC=0;aM=aL={};aJ=false}if(!(aJ||aK.is(":hidden"))){aJ=true;if(aM&&aN.isFunction(aM.onCleanup)){if(aM.onCleanup(aH,aD,aM)===false){aJ=false;return}}ai();aN(av.add(ar).add(aq)).hide();aN("#fancybox-title").remove();aK.add(aI).add(ax).unbind();aN(window).unbind("resize.fb scroll.fb");aN(document).unbind("keydown.fb");aI.css("overflow","hidden");if(aM.transitionOut=="elastic"){aG=ab();var e=aK.position();aF={top:e.top,left:e.left,width:aK.width(),height:aK.height()};if(aM.opacity){aF.opacity=1}aw.prop=1;aN(aw).animate({prop:0},{duration:aM.speedOut,easing:aM.easingOut,step:af,complete:b})}else{aK.fadeOut(aM.transitionOut=="none"?0:aM.speedOut,b)}}};aN.fancybox.resize=function(){var b,e;if(!(aJ||aK.is(":hidden"))){aJ=true;b=aI.wrapInner("<div style='overflow:auto'></div>").children();e=b.height();aK.css({height:e+aM.padding*2+ay});aI.css({height:e});b.replaceWith(b.children());aN.fancybox.center()}};aN.fancybox.center=function(){aJ=true;var b=ah(),g=aM.margin,e={};e.top=b[3]+(b[1]-(aK.height()-ay+40))*0.5;e.left=b[2]+(b[0]-(aK.width()+40))*0.5;e.top=Math.max(b[3]+g,e.top);e.left=Math.max(b[2]+g,e.left);aK.css(e);aJ=false};aN.fn.fancybox.defaults={padding:10,margin:20,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.3,overlayColor:"#666",titleShow:true,titlePosition:"outside",titleFormat:null,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,onStart:null,onCancel:null,onComplete:null,onCleanup:null,onClosed:null};aN(document).ready(function(){at()})})(jQuery);
/* util class
 * Put javascript plugin depedencies below (see main.js for an exmaple)

 */
var keyonary=keyonary||{};keyonary.util=function(){var a={init:function(){keyonary.main.debug("# [util init]")},getOS:function(b){switch(b){case"0":return"Mac";break;case"1":return"PC";break;case"3":return"Mac / PC";break;case"4":return"Group";break}},getProgramName:function(b){switch(b){case"1":return"photoshop";break;case"1":return"flash";break;case"3":return"dreamweaver";break;case"4":return"illustrator";break;case"5":return"indesign";break;case"6":return"fireworks";break;case"7":return"entourage";break;case"8":return"windows xp";break;case"9":return"windows 7";break;case"10":return"windows vista";break;case"11":return"snow leopard";break;case"12":return"leopard";break;case"13":return"tiger";break;case"14":return"firefox";break;case"15":return"osx";break;case"16":return"windows";break;case"17":return"safari";break;case"18":return"chrome";break}},getSize:function(e){var d=0;for(var b in e){d++}return d},debug:function(b){if(window.console&&window.console.log){window.console.log(b)}},validate:{email:function(d){var b=d;var e=/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9]+[a-zA-Z0-9.-]+[a-zA-Z0-9]+\.[a-z]{2,4}$/;if(e.test(b)&&b.substring(0,1)!="."&&b.substring(0,1)!="_"&&b.substring(0,1)!="-"){return true}else{return false}},select:function(b){if($('select[name="'+b+'"] option:selected').hasClass("default")==true){return false}else{return true}},input:function(b){var d=$('input[name="'+b+'"]');if($.trim(d.val())==""){d.val("");d.removeClass("v").addClass("e");d.focus(function(){d.removeClass("e")});return false}else{d.removeClass("e").addClass("v");return true}},textarea:function(b){var d=$('textarea[name="'+b+'"]');if($.trim(d.val())==""){d.val("");return false}else{return true}}},blink:function(b){b.fadeOut("fast",function(){$(this).fadeIn("fast",function(){$(this).fadeOut("fast",function(){$(this).fadeIn("fast")})})});return b}};return a}();keyonary.main.queue(keyonary.util.init);
/* constants class
 * Put javascript plugin depedencies below (see main.js for an exmaple)
 */
var keyonary=keyonary||{};keyonary.constants=function(){var b="";var a={init:function(){keyonary.main.debug("# [constants init]")},SEARCH_BOX_DEFAULT_TEXT:"FIND YOUR SHORT CUT",SEARCH_BOX_NO_RESULTS:"No results...",FAVORITE_STRING:"FAVORITES!",COMMAND:"command",WINDOWS:"windows",CURRENT_SEARCH_TERM:function(d){if(!d){return b}else{b=d}}};return a}();keyonary.main.queue(keyonary.constants.init);
/* menu class
 * Put javascript plugin depedencies below (see main.js for an exmaple)
 * @depends keyonary_constants.js
 */
var keyonary=keyonary||{};keyonary.menu=function(){var self={init:function(){keyonary.main.debug("# [menu init]");_setup_menu_ui()},clickItem:function($item){var _height=$item.attr("landingSize");var _class=$item.attr("id");$("ul#main_menu li a").removeClass("active");$item.addClass("active");$("#landing").css({height:"99%"}).children().hide();$("#menu_container").stop(true,true).animate({height:_height},390,"easeInOutExpo",function(){$("#menu_container").attr("class","").addClass(_class);$("#landing").css({visibility:"visible",height:""});$("#landing ."+_class+"_landing").fadeIn("slow");try{eval(_class+"_landing_init()")}catch(e){keyonary.util.debug(e)}$("#PageWrapper").bind("mouseenter",function(){self.hideDropDown()})}).children("ul").css({"border-bottom":"1px solid #ccc"})},hideDropDown:function(){$("#landing").css({visibility:"hidden"});$("#menu_container").animate({height:"28px"},290,"easeInOutExpo",function(){$(this).children("ul").css({"border-bottom":""});$("#landing").find("a").css({opacity:"0"});$("ul#main_menu li a").removeClass("active");$("#landing").children().hide()}).unbind("mouseleave")}};return self;function _setup_menu_ui(){$("#landing").children().hide();$("#add").click(function(){self.clickItem($(this));return false});$("#apps").click(function(){self.clickItem($(this));return false});$("#fav").click(function(){$("#PageWrapper").trigger("mouseenter");var _t=setTimeout(function(){$("#searchItField").trigger("click").val(keyonary.constants.FAVORITE_STRING).trigger("submit")},1000);return false})}function apps_landing_init(){$("#landing .apps_landing").find("a").each(function(i){var my_itorate=i;var time=0.5;$(this).animate({opacity:"1"},{duration:time,queue:"apps"},"easeOutBounce")})}function add_landing_init(){}}();keyonary.main.queue(keyonary.menu.init);
/* search class
 * @depends keyonary_constants.js
 * @depends util.js
 */
var keyonary=keyonary||{};keyonary.keysearch=function(){var e;var d=false;var a={init:function(){keyonary.main.debug("# [search init]")},startSearch:function(j){if($("#searchItField").hasClass("focus")){keyonary.homePage_view.changeLetter(j.keyCode)}var h=$("#searchItField").val();var g=$("#searchItField").val().split("...");var f=h.toLowerCase();if(j.keyCode==8&&h.search(/No results/img)==0){$("#searchItField").val("").css({color:"#333"});$.address.value("");return}if(h.length==0){$("#results").empty()}if(g[1]!=undefined&&g[1]!=""&&g[1]!=keyonary.constants.SEARCH_BOX_DEFAULT_TEXT){$(this).val(g[1]).css({color:"#333"});return}if(h==keyonary.constants.SEARCH_BOX_DEFAULT_TEXT||h==""||h==undefined||h.length<=3||h==keyonary.constants.SEARCH_BOX_NO_RESULTS||keyonary.constants.CURRENT_SEARCH_TERM()==f){return}else{if(h.length>3){keyonary.homePage_view.ShowLoaders();clearTimeout(e);e=setTimeout(function(){a.liveSearch()},500);keyonary.constants.CURRENT_SEARCH_TERM($("#searchItField").val().toLowerCase())}}},showResults:function(f){$("#results").empty();var y=0;var q=false;for(var C in f){var v=f[C]["shortcut"].split("+");var o="";var l=f[C]["shortcut_name"];var n=keyonary.util.getOS(f[C]["operating_system"]);var t=f[C]["id"];var h=keyonary.util.getProgramName(f[C]["program_id"]);if(v.length==4){o+='<li class="shortcut_body four" id="'+t+'">'}else{if(v.length==5){o+='<li class="shortcut_body more" id="'+t+'">'}else{if(v.length==6){o+='<li class="shortcut_body more" id="'+t+'">'}else{if(v.length>6){o+='<li class="shortcut_body alot" id="'+t+'">'}else{if(l.length>25){o+='<li class="shortcut_body four" id="'+t+'">'}else{if(v.length==1){o+='<li class="shortcut_body one" id="'+t+'">'}else{o+='<li class="shortcut_body" id="'+t+'">'}}}}}}o+='	<div class="shortcut">';o+="		<h2>"+l+"</h2>";o+="		<ul>";for(var B=0;B<v.length;B++){if(v[B]==keyonary.constants.WINDOWS){q=true}o+='<li class="key_'+v[B]+'">'+v[B]+"</li>";if(B<v.length-1){o+='			<li class="plus">+</li>'}}o+="		</ul>";o+="	</div>";o+='	<div class="desc">';o+="		<span><p>"+n+": "+f[C]["description"]+"</p></span>";o+="	</div>";if($.browser.msie){o+='	<div class="justforie_program"><h3 class="'+h+'">'+h+"</h3></div>";o+='	<div class="justforie_favorite"><a href="#favorite" class="favorite" title="I Heart This!">Favorite?</a></div>'}else{o+='	<a href="#favorite" class="favorite" title="I Heart This!">Favorite?</a>';o+='<h3 class="'+h+'">'+h+"</h3>"}o+="	</li>";var w=$(o);var A=$(document).height()-200;w.appendTo("#results").css({position:"relative",top:A}).animate({opacity:"0.33"},0);$or_result=$("<li class='or'><h3>- OR  -</h3></li>");if(n=="Group"){var x=w.find("div.desc p");var g=x.text();var z=g.replace("Group","Mac");x.text(z);var p=w.clone().appendTo("#results");if(q){p.find(".key_windows").attr("class","key_command")}else{p.find(".key_command").attr("class","key_ctrl")}var x=p.find("div.desc p");var g=x.text();var z=g.replace("Mac","PC");x.text(z)}var j=keyonary.util.getSize(f);if(y<(j-1)){$("#results").append($or_result)}if(y==(j-1)){}y++}$("#suggest").fancybox({autoScale:false,scrolling:"no",titleShow:false,transitionIn:"fade",transitionOut:"elastic",easingIn:"easeOutBack",easingOut:"easeInBack",overlayColor:"#000",overlayOpacity:"0.6",centerOnScroll:"true",onComplete:keyonary.homePage.setupSuggest});var m=y>15?10:200;var r=false;if(m!=10){$("body").css({overflow:"hidden"})}$("li.shortcut_body").each(function(D,E){$("#searchItField").focus();$(E).animate({top:"0px",opacity:"1"},{duration:m,queue:"global"},"easeOutBounce",function(F){if($.browser.msie){$(this).css({position:"static"})}if(D==$("li.shortcut_body").size()-1||m==10){if(r==false){$("body").css({overflow:"auto"});$("li.or h3").each(function(G,H){$(H).animate({opacity:"1"},{duration:m,queue:"h3s"})});r=true;if(navigator.platform=="iPad"){keyonary.homePage_view.scroll().refresh()}}}})});if($.browser.msie){$(".shortcut_body").hover(function(){$(this).children("div.justforie_program").children("h3").stop().animate({left:"-108px",opacity:"1"},{duration:200},"easeOutBounce")},function(){$(this).children("div.justforie_program").children("h3").stop().animate({left:"-42px"},{duration:200},"easeOutBounce")})}else{$(".shortcut_body").hover(function(){$(this).children("h3").stop().animate({left:"-57px",opacity:"1"},{duration:200},"easeOutBounce")},function(){$(this).children("h3").stop().animate({left:"11px"},{duration:200},"easeOutBounce")})}},liveSearch:function(){if($("#searchItField").val().length!=0&&$("#searchItField").val()!=keyonary.constants.SEARCH_BOX_DEFAULT_TEXT){if($("#searchItField").val()==keyonary.constants.FAVORITE_STRING){b();return}var f=$("#searchItField").val().toLowerCase();if(d==true){return}d=true;$.ajax({url:"index.php",data:{search_term:f},type:"POST",timeout:"5000",dataType:"json",beforeSend:function(){d=true;keyonary.homePage_view.ShowLoaders()},complete:function(){d=false;keyonary.homePage_view.HideLoaders()},success:function(g){d=false;keyonary.homePage_view.HideLoaders();var h=escape(f);if(g==false){$("#results").empty();$("#searchItField").val(keyonary.constants.SEARCH_BOX_NO_RESULTS).css({color:"#E90000"}).animate({opacity:"0"},{duration:300,queue:"test"},"linear").animate({opacity:"1"},{duration:300,queue:"test"},"linear",function(){if($.browser.msie){this.style.removeAttribute("filter")}})}else{$.address.value(h);a.showResults(g);keyonary.constants.CURRENT_SEARCH_TERM(f)}},error:function(g,j,h){d=false;keyonary.homePage_view.HideLoaders()}})}}};return a;function b(){var f=$("#searchItField").val().toLowerCase();$.address.value(keyonary.constants.FAVORITE_STRING);var g={getFavorites:true};$.ajax({type:"POST",url:"/",data:g,type:"POST",timeout:"5000",dataType:"json",success:function(h){if(h!="false"){d=false;keyonary.homePage_view.HideLoaders();a.showResults(h);keyonary.constants.CURRENT_SEARCH_TERM(f)}}})}}();keyonary.main.queue(keyonary.keysearch.init);(function(){function m(q,o){var r=this,p;r.element=typeof q=="object"?q:document.getElementById(q);r.wrapper=r.element.parentNode;r.element.style.webkitTransitionProperty="-webkit-transform";r.element.style.webkitTransitionTimingFunction="cubic-bezier(0,0,0.25,1)";r.element.style.webkitTransitionDuration="0";r.element.style.webkitTransform=j+"0,0"+b;r.options={bounce:e,momentum:e,checkDOMChanges:true,topOnDOMChanges:false,hScrollbar:e,vScrollbar:e,fadeScrollbar:h||!a,shrinkScrollbar:h||!a,desktopCompatibility:false,overflow:"auto",snap:false,bounceLock:false,scrollbarColor:"rgba(0,0,0,0.5)",onScrollEnd:function(){}};if(typeof o=="object"){for(p in o){r.options[p]=o[p]}}if(r.options.desktopCompatibility){r.options.overflow="hidden"}r.onScrollEnd=r.options.onScrollEnd;delete r.options.onScrollEnd;r.wrapper.style.overflow=r.options.overflow;r.refresh();window.addEventListener("onorientationchange" in window?"orientationchange":"resize",r,false);if(a||r.options.desktopCompatibility){r.element.addEventListener(g,r,false);r.element.addEventListener(l,r,false);r.element.addEventListener(f,r,false)}if(r.options.checkDOMChanges){r.element.addEventListener("DOMSubtreeModified",r,false)}}m.prototype={x:0,y:0,enabled:true,handleEvent:function(p){var o=this;switch(p.type){case g:o.touchStart(p);break;case l:o.touchMove(p);break;case f:o.touchEnd(p);break;case"webkitTransitionEnd":o.transitionEnd();break;case"orientationchange":case"resize":o.refresh();break;case"DOMSubtreeModified":o.onDOMModified(p);break}},onDOMModified:function(p){var o=this;if(p.target.parentNode!=o.element){return}setTimeout(function(){o.refresh()},0);if(o.options.topOnDOMChanges&&(o.x!=0||o.y!=0)){o.scrollTo(0,0,"0")}},refresh:function(){var p=this,r=p.x,q=p.y,o;p.scrollWidth=p.wrapper.clientWidth;p.scrollHeight=p.wrapper.clientHeight;p.scrollerWidth=p.element.offsetWidth;p.scrollerHeight=p.element.offsetHeight;p.maxScrollX=p.scrollWidth-p.scrollerWidth;p.maxScrollY=p.scrollHeight-p.scrollerHeight;p.directionX=0;p.directionY=0;if(p.scrollX){if(p.maxScrollX>=0){r=0}else{if(p.x<p.maxScrollX){r=p.maxScrollX}}}if(p.scrollY){if(p.maxScrollY>=0){q=0}else{if(p.y<p.maxScrollY){q=p.maxScrollY}}}if(p.options.snap){p.maxPageX=-Math.floor(p.maxScrollX/p.scrollWidth);p.maxPageY=-Math.floor(p.maxScrollY/p.scrollHeight);o=p.snap(r,q);r=o.x;q=o.y}if(r!=p.x||q!=p.y){p.setTransitionTime("0");p.setPosition(r,q,true)}p.scrollX=p.scrollerWidth>p.scrollWidth;p.scrollY=!p.options.bounceLock&&!p.scrollX||p.scrollerHeight>p.scrollHeight;if(p.options.hScrollbar&&p.scrollX){p.scrollBarX=p.scrollBarX||new n("horizontal",p.wrapper,p.options.fadeScrollbar,p.options.shrinkScrollbar,p.options.scrollbarColor);p.scrollBarX.init(p.scrollWidth,p.scrollerWidth)}else{if(p.scrollBarX){p.scrollBarX=p.scrollBarX.remove()}}if(p.options.vScrollbar&&p.scrollY&&p.scrollerHeight>p.scrollHeight){p.scrollBarY=p.scrollBarY||new n("vertical",p.wrapper,p.options.fadeScrollbar,p.options.shrinkScrollbar,p.options.scrollbarColor);p.scrollBarY.init(p.scrollHeight,p.scrollerHeight)}else{if(p.scrollBarY){p.scrollBarY=p.scrollBarY.remove()}}},setPosition:function(o,r,q){var p=this;p.x=o;p.y=r;p.element.style.webkitTransform=j+p.x+"px,"+p.y+"px"+b;if(!q){if(p.scrollBarX){p.scrollBarX.setPosition(p.x)}if(p.scrollBarY){p.scrollBarY.setPosition(p.y)}}},setTransitionTime:function(p){var o=this;p=p||"0";o.element.style.webkitTransitionDuration=p;if(o.scrollBarX){o.scrollBarX.bar.style.webkitTransitionDuration=p;o.scrollBarX.wrapper.style.webkitTransitionDuration=e&&o.options.fadeScrollbar?"300ms":"0"}if(o.scrollBarY){o.scrollBarY.bar.style.webkitTransitionDuration=p;o.scrollBarY.wrapper.style.webkitTransitionDuration=e&&o.options.fadeScrollbar?"300ms":"0"}},touchStart:function(q){var p=this,o;if(!p.enabled){return}q.preventDefault();q.stopPropagation();p.scrolling=true;p.moved=false;p.distX=0;p.distY=0;p.setTransitionTime("0");if(p.options.momentum||p.options.snap){o=new WebKitCSSMatrix(window.getComputedStyle(p.element).webkitTransform);if(o.e!=p.x||o.f!=p.y){document.removeEventListener("webkitTransitionEnd",p,false);p.setPosition(o.e,o.f);p.moved=true}}p.touchStartX=a?q.changedTouches[0].pageX:q.pageX;p.scrollStartX=p.x;p.touchStartY=a?q.changedTouches[0].pageY:q.pageY;p.scrollStartY=p.y;p.scrollStartTime=q.timeStamp;p.directionX=0;p.directionY=0},touchMove:function(w){if(!this.scrolling){return}var t=this,r=a?w.changedTouches[0].pageX:w.pageX,q=a?w.changedTouches[0].pageY:w.pageY,p=t.scrollX?r-t.touchStartX:0,o=t.scrollY?q-t.touchStartY:0,x=t.x+p,v=t.y+o;w.stopPropagation();t.touchStartX=r;t.touchStartY=q;if(x>=0||x<t.maxScrollX){x=t.options.bounce?Math.round(t.x+p/3):(x>=0||t.maxScrollX>=0)?0:t.maxScrollX}if(v>=0||v<t.maxScrollY){v=t.options.bounce?Math.round(t.y+o/3):(v>=0||t.maxScrollY>=0)?0:t.maxScrollY}if(t.distX+t.distY>5){if(t.distX-3>t.distY){v=t.y;o=0}else{if(t.distY-3>t.distX){x=t.x;p=0}}t.setPosition(x,v);t.moved=true;t.directionX=p>0?-1:1;t.directionY=o>0?-1:1}else{t.distX+=Math.abs(p);t.distY+=Math.abs(o)}},touchEnd:function(y){if(!this.scrolling){return}var x=this,r=y.timeStamp-x.scrollStartTime,B=a?y.changedTouches[0]:y,z,A,q,o,p=0,w=x.x,v=x.y,t;x.scrolling=false;if(!x.moved){x.resetPosition();if(a){z=B.target;while(z.nodeType!=1){z=z.parentNode}A=document.createEvent("MouseEvents");A.initMouseEvent("click",true,true,y.view,1,B.screenX,B.screenY,B.clientX,B.clientY,y.ctrlKey,y.altKey,y.shiftKey,y.metaKey,0,null);A._fake=true;z.dispatchEvent(A)}return}if(!x.options.snap&&r>250){x.resetPosition();return}if(x.options.momentum){q=x.scrollX===true?x.momentum(x.x-x.scrollStartX,r,x.options.bounce?-x.x+x.scrollWidth/5:-x.x,x.options.bounce?x.x+x.scrollerWidth-x.scrollWidth+x.scrollWidth/5:x.x+x.scrollerWidth-x.scrollWidth):{dist:0,time:0};o=x.scrollY===true?x.momentum(x.y-x.scrollStartY,r,x.options.bounce?-x.y+x.scrollHeight/5:-x.y,x.options.bounce?(x.maxScrollY<0?x.y+x.scrollerHeight-x.scrollHeight:0)+x.scrollHeight/5:x.y+x.scrollerHeight-x.scrollHeight):{dist:0,time:0};p=Math.max(Math.max(q.time,o.time),1);w=x.x+q.dist;v=x.y+o.dist}if(x.options.snap){t=x.snap(w,v);w=t.x;v=t.y;p=Math.max(t.time,p)}x.scrollTo(w,v,p+"ms")},transitionEnd:function(){var o=this;document.removeEventListener("webkitTransitionEnd",o,false);o.resetPosition()},resetPosition:function(){var o=this,q=o.x,p=o.y;if(o.x>=0){q=0}else{if(o.x<o.maxScrollX){q=o.maxScrollX}}if(o.y>=0||o.maxScrollY>0){p=0}else{if(o.y<o.maxScrollY){p=o.maxScrollY}}if(q!=o.x||p!=o.y){o.scrollTo(q,p)}else{if(o.moved){o.onScrollEnd();o.moved=false}if(o.scrollBarX){o.scrollBarX.hide()}if(o.scrollBarY){o.scrollBarY.hide()}}},snap:function(o,r){var p=this,q;if(p.directionX>0){o=Math.floor(o/p.scrollWidth)}else{if(p.directionX<0){o=Math.ceil(o/p.scrollWidth)}else{o=Math.round(o/p.scrollWidth)}}p.pageX=-o;o=o*p.scrollWidth;if(o>0){o=p.pageX=0}else{if(o<p.maxScrollX){p.pageX=p.maxPageX;o=p.maxScrollX}}if(p.directionY>0){r=Math.floor(r/p.scrollHeight)}else{if(p.directionY<0){r=Math.ceil(r/p.scrollHeight)}else{r=Math.round(r/p.scrollHeight)}}p.pageY=-r;r=r*p.scrollHeight;if(r>0){r=p.pageY=0}else{if(r<p.maxScrollY){p.pageY=p.maxPageY;r=p.maxScrollY}}q=Math.round(Math.max(Math.abs(p.x-o)/p.scrollWidth*500,Math.abs(p.y-r)/p.scrollHeight*500));return{x:o,y:r,time:q}},scrollTo:function(p,o,r){var q=this;if(q.x==p&&q.y==o){q.resetPosition();return}q.moved=true;q.setTransitionTime(r||"350ms");q.setPosition(p,o);if(r==="0"||r=="0s"||r=="0ms"){q.resetPosition()}else{document.addEventListener("webkitTransitionEnd",q,false)}},scrollToPage:function(q,p,t){var r=this,o;if(!r.options.snap){r.pageX=-Math.round(r.x/r.scrollWidth);r.pageY=-Math.round(r.y/r.scrollHeight)}if(q=="next"){q=++r.pageX}else{if(q=="prev"){q=--r.pageX}}if(p=="next"){p=++r.pageY}else{if(p=="prev"){p=--r.pageY}}q=-q*r.scrollWidth;p=-p*r.scrollHeight;o=r.snap(q,p);q=o.x;p=o.y;r.scrollTo(q,p,t||"500ms")},scrollToElement:function(p,r){p=typeof p=="object"?p:this.element.querySelector(p);if(!p){return}var q=this,o=q.scrollX?-p.offsetLeft:0,t=q.scrollY?-p.offsetTop:0;if(o>=0){o=0}else{if(o<q.maxScrollX){o=q.maxScrollX}}if(t>=0){t=0}else{if(t<q.maxScrollY){t=q.maxScrollY}}q.scrollTo(o,t,r)},momentum:function(x,p,v,o){var t=2.5,w=1.2,q=Math.abs(x)/p*1000,r=q*q/t/1000,y=0;if(x>0&&r>v){q=q*v/r/t;r=v}else{if(x<0&&r>o){q=q*o/r/t;r=o}}r=r*(x<0?-1:1);y=q/w;return{dist:Math.round(r),time:Math.round(y)}},destroy:function(o){var p=this;window.removeEventListener("onorientationchange" in window?"orientationchange":"resize",p,false);p.element.removeEventListener(g,p,false);p.element.removeEventListener(l,p,false);p.element.removeEventListener(f,p,false);document.removeEventListener("webkitTransitionEnd",p,false);if(p.options.checkDOMChanges){p.element.removeEventListener("DOMSubtreeModified",p,false)}if(p.scrollBarX){p.scrollBarX=p.scrollBarX.remove()}if(p.scrollBarY){p.scrollBarY=p.scrollBarY.remove()}if(o){p.wrapper.parentNode.removeChild(p.wrapper)}return null}};function n(p,w,v,q,o){var r=this,t=document;r.dir=p;r.fade=v;r.shrink=q;r.uid=++d;r.bar=t.createElement("div");r.bar.style.cssText="position:absolute;top:0;left:0;-webkit-transition-timing-function:cubic-bezier(0,0,0.25,1);pointer-events:none;-webkit-transition-duration:0;-webkit-transition-delay:0;-webkit-transition-property:-webkit-transform;z-index:10;background:"+o+";-webkit-transform:"+j+"0,0"+b+";"+(p=="horizontal"?"-webkit-border-radius:3px 2px;min-width:6px;min-height:5px":"-webkit-border-radius:2px 3px;min-width:5px;min-height:6px");r.wrapper=t.createElement("div");r.wrapper.style.cssText="-webkit-mask:-webkit-canvas(scrollbar"+r.uid+r.dir+");position:absolute;z-index:10;pointer-events:none;overflow:hidden;opacity:0;-webkit-transition-duration:"+(v?"300ms":"0")+";-webkit-transition-delay:0;-webkit-transition-property:opacity;"+(r.dir=="horizontal"?"bottom:2px;left:2px;right:7px;height:5px":"top:2px;right:2px;bottom:7px;width:5px;");r.wrapper.appendChild(r.bar);w.appendChild(r.wrapper)}n.prototype={init:function(o,q){var r=this,v=document,t=Math.PI,p;if(r.dir=="horizontal"){if(r.maxSize!=r.wrapper.offsetWidth){r.maxSize=r.wrapper.offsetWidth;p=v.getCSSCanvasContext("2d","scrollbar"+r.uid+r.dir,r.maxSize,5);p.fillStyle="rgb(0,0,0)";p.beginPath();p.arc(2.5,2.5,2.5,t/2,-t/2,false);p.lineTo(r.maxSize-2.5,0);p.arc(r.maxSize-2.5,2.5,2.5,-t/2,t/2,false);p.closePath();p.fill()}}else{if(r.maxSize!=r.wrapper.offsetHeight){r.maxSize=r.wrapper.offsetHeight;p=v.getCSSCanvasContext("2d","scrollbar"+r.uid+r.dir,5,r.maxSize);p.fillStyle="rgb(0,0,0)";p.beginPath();p.arc(2.5,2.5,2.5,t,0,false);p.lineTo(5,r.maxSize-2.5);p.arc(2.5,r.maxSize-2.5,2.5,0,t,false);p.closePath();p.fill()}}r.size=Math.max(Math.round(r.maxSize*r.maxSize/q),6);r.maxScroll=r.maxSize-r.size;r.toWrapperProp=r.maxScroll/(o-q);r.bar.style[r.dir=="horizontal"?"width":"height"]=r.size+"px"},setPosition:function(p){var o=this;if(o.wrapper.style.opacity!="1"){o.show()}p=Math.round(o.toWrapperProp*p);if(p<0){p=o.shrink?p+p*3:0;if(o.size+p<7){p=-o.size+6}}else{if(p>o.maxScroll){p=o.shrink?p+(p-o.maxScroll)*3:o.maxScroll;if(o.size+o.maxScroll-p<7){p=o.size+o.maxScroll-6}}}p=o.dir=="horizontal"?j+p+"px,0"+b:j+"0,"+p+"px"+b;o.bar.style.webkitTransform=p},show:function(){if(e){this.wrapper.style.webkitTransitionDelay="0"}this.wrapper.style.opacity="1"},hide:function(){if(e){this.wrapper.style.webkitTransitionDelay="350ms"}this.wrapper.style.opacity="0"},remove:function(){this.wrapper.parentNode.removeChild(this.wrapper);return null}};var e=("WebKitCSSMatrix" in window&&"m11" in new WebKitCSSMatrix()),h=(/iphone|ipad/gi).test(navigator.appVersion),a=("ontouchstart" in window),g=a?"touchstart":"mousedown",l=a?"touchmove":"mousemove",f=a?"touchend":"mouseup",j="translate"+(e?"3d(":"("),b=e?",0)":")",d=0;window.iScroll=m})();
/* homePage_view class
 * Put javascript plugin depedencies below (see main.js for an exmaple)
 * @depends jquery/jquery-1.4.2.min.js
 * @depends keysearch.js
 * @depends plugins/iscroll.js
 */
var keyonary=keyonary||{};keyonary.homePage_view=function(){var e;var d={init:function(){keyonary.main.debug("# [homePage_view init]");b();f()},HideLoaders:function(){$("#loader").fadeOut("fast")},ShowLoaders:function(){$("#loader").fadeIn("fast")},changeLetter:function(l){if(l==188||l==8||l==190||l==191||l==222||l==59||l==221||l==219||l==220||l==109||l==192||l==16||l==17||l==18||l==32||l==224){return}var h=String.fromCharCode(l);var j=$("#keypress");j.children("em").text(h);j.attr("style","").stop();if(h==""||h==" "){return}var g=setTimeout(function(){if(!$.browser.msie){j.animate({scale:"1.55",opacity:"0"},190)}else{j.animate({opacity:"0"},190)}},150)},scroll:function(){return e}};return d;function b(){if(navigator.platform=="iPad"){a()}$(".likeHolder").fadeTo(0,0.22).hover(function(){$(this).fadeTo("fast",1)},function(){$(this).fadeTo("fast",0.22)});$(".apps_landing li a").click(function(){$(".apps_landing li a").removeClass("active");$(this).addClass("active");$("#searchItField").val($(this).children("span").text()).trigger("click").trigger("submit").css({color:"#333"});return false});$("a.disable").unbind("click").bind("click",function(){return false});$("#software a, #terms, #glyphs a, #product a").fancybox({autoScale:false,scrolling:"no",titleShow:false,transitionIn:"fade",transitionOut:"elastic",easingIn:"easeOutBack",easingOut:"easeInBack",overlayColor:"#000",overlayOpacity:"0.6",centerOnScroll:"true",onComplete:function(h,g,j){if(j.orig.text()=="Glyphs"){setupClipboard()}}});$("#product a").fancybox({autoScale:false,scrolling:"no",titleShow:false,transitionIn:"elastic",transitionOut:"elastic",easingIn:"easeOutBack",easingOut:"easeInBack",overlayColor:"#000",overlayOpacity:"0.6",centerOnScroll:"true"});$("#search_form").submit(function(){keyonary.keysearch.liveSearch();return false});$("#product").click(function(){$(this).children("a").trigger("click")});$(".favorite").live("click",function(){keyonary.homePage.setFavorite($(this));return false});$(".shortcut_body").hover(function(){$(this).children("h3").css({left:""})},function(){$(this).children("h3").css({left:""})});$("#Submit_search").hover(function(){$(this).children("span").stop().animate({opacity:"1"},{duration:200},"linear")},function(){$(this).children("span").stop().animate({opacity:"0.001"},{duration:200},"linear")});$("#keypress").hide();$("#searchItField").click(function(){keyonary.homePage.clearDefaultSearch()}).blur(function(){keyonary.homePage.defaultSearch()}).focus(function(){keyonary.homePage.setFocus()}).select(function(){keyonary.homePage.clearSelection()});$("#searchItField").keyup(function(g){keyonary.keysearch.startSearch(g)})}function f(){var g=setTimeout(function(){$("#product").fadeTo(0,0.4).animate({bottom:"0"},{duration:400,easing:"easeOutElastic"})},3000);$("#product").hover(function(){$(this).fadeTo("fast",1)},function(){$(this).fadeTo("fast",0.4)})}function a(){document.addEventListener("touchmove",function(h){h.preventDefault()});var g=$("body").height();$("body").css({position:"relative","z-index":1,width:"100%",height:g,overflow:"auto"});e=new iScroll("PageWrapper");$("#PageWrapper").click(function(){keyonary.menu.hideDropDown()})}}();var keyonary=keyonary||{};keyonary.homePage=function(){var e=null;var a="glyphs";var b={init:function(){keyonary.main.debug("# [Keyonary Homepage init]");keyonary.homePage_view.init();d()},setFavorite:function(j){var g=j.parent().attr("id");var f=j;var h={favorite:true,shortcut_id:g};$.ajax({type:"POST",url:"/",data:h,success:function(l){if(l=="1"){f.addClass("on")}else{f.addClass("on").addClass("noChange")}}})},clearDefaultSearch:function(){if($("#searchItField").val()==keyonary.constants.SEARCH_BOX_DEFAULT_TEXT||$("#searchItField").val()==keyonary.constants.SEARCH_BOX_NO_RESULTS){$("#searchItField").val("").css({color:"#333"});$.address.value("")}},defaultSearch:function(){$("#searchItField").removeClass("focus");if($("#searchItField").val().length==0||$("#searchItField").val()==keyonary.constants.SEARCH_BOX_NO_RESULTS){$("#searchItField").val(keyonary.constants.SEARCH_BOX_DEFAULT_TEXT).css({color:"#E0E0E0","text-shadow":"none"})}},setFocus:function(){$("#searchItField").addClass("focus");if($("#searchItField").val().length==0||$("#searchItField").val()==keyonary.constants.SEARCH_BOX_NO_RESULTS){$("#searchItField").val("").css({color:"#333"});$.address.value("")}},clearSelection:function(){$("#searchItField").val("").css({color:"#333"});$.address.value("")},setupSuggest:function(){$("#suggest_form").submit(function(){var n=$("#stitle").val();var j=$("#sdesc").val();var f=$("#sshortcut").val();var g=$("#program").val();var m=$("#os").val();var h=$("#email").val();$(".error").removeClass("error");if(n!=""&&j!=""&&f!=""&&g!=""&&m!=""){var l={shortcut:true,title:n,description:j,shortcut:f,program:g,os:m};if(h!=""){if(u.validateEmail(h)==false){$("#email").addClass("error");return false}l.email=h}$.ajax({type:"POST",url:"/",data:l,success:function(p){if(p=="1"){$("#suggest_form .selects, #Submit_shortcut").remove();$("#suggest_form .inputs").html("<p>Suggestion Recieved. Thank you!</p>");var o=setTimeout(function(){$.fancybox.close()},1500)}else{$("#suggest_form .selects, #Submit_shortcut").remove();$("#suggest_form .inputs").html("<p>There was an error. Please try again.</p>");var o=setTimeout(function(){$.fancybox.close()},1500)}}})}else{$(".tfield").each(function(){if($(this).val()==""&&$(this).attr("id")!="email"){$(this).addClass("error")}});$("select").each(function(){if($(this).val()==""){$(this).addClass("error")}})}return false})}};return b;function d(){$.address.init(function(g){if(g.value.length>1){var f=g.value.replace(/\//,"");$("#searchItField").val(f).trigger("click").trigger("submit").css({color:"#333"})}})}}();keyonary.main.queue(keyonary.homePage.init);(function(a){a.fn.alphanumeric=function(b){b=a.extend({ichars:"_!@#$%^&*()+=[]\\';,/{}|\":<>?~`.- ",nchars:"",allow:""},b);return this.each(function(){if(b.nocaps){b.nchars+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"}if(b.allcaps){b.nchars+="abcdefghijklmnopqrstuvwxyz"}s=b.allow.split("");for(i=0;i<s.length;i++){if(b.ichars.indexOf(s[i])!=-1){s[i]="\\"+s[i]}}b.allow=s.join("|");var e=new RegExp(b.allow,"gi");var d=b.ichars+b.nchars;d=d.replace(e,"");a(this).keypress(function(f){if(!f.charCode){k=String.fromCharCode(f.which)}else{k=String.fromCharCode(f.charCode)}if(d.indexOf(k)!=-1){f.preventDefault()}if(f.ctrlKey&&k=="v"){f.preventDefault()}});a(this).bind("contextmenu",function(){return false})})};a.fn.numeric=function(d){var b="abcdefghijklmnopqrstuvwxyz";b+=b.toUpperCase();d=a.extend({nchars:b},d);return this.each(function(){a(this).alphanumeric(d)})};a.fn.alpha=function(d){var b="1234567890";d=a.extend({nchars:b},d);return this.each(function(){a(this).alphanumeric(d)})}})(jQuery);
/* addshortcuts_view class
 * Put javascript plugin depedencies below (see main.js for an exmaple)
 * @depends addshortcuts.js
 * @depends jquery/jquery.alphanumeric.js
 */
var keyonary=keyonary||{};keyonary.addshortcuts_view=function(){var e;var d={init:function(f){keyonary.main.debug("# [addshortcuts_view init]");e=f;a();return d},showSuccess:function(){$('.add_landing fieldset input[type="submit"]').fadeOut("slow",function(){$(".add_landing fieldset p.message").fadeIn("slow");var f=setTimeout(function(){$(".add_landing fieldset p.message").fadeOut("slow",function(){$('.add_landing fieldset input[type="submit"]').attr("value","ADD ANOTHER").fadeIn("slow")})},3000)})},showError:function(){$('.add_landing fieldset input[type="submit"]').fadeOut("slow",function(){$(".add_landing fieldset p.message").text("Error: try again.").fadeIn("slow");var f=setTimeout(function(){$(".add_landing fieldset p.message").fadeOut("slow",function(){$('.add_landing fieldset input[type="submit"]').attr("value","TRY AGAIN").fadeIn("slow")})},3000)})}};return d;function a(){b();$("#add_form").submit(function(){e.submitShortcut($(this));return false});$("#clear").click(function(){e.clearShortcut()});$("select").change(function(){$(this).siblings("p").text($(this).children("option:selected").text()).attr("style","")});$("select").each(function(){$(this).siblings("p").text($(this).val())});$("#title").alpha({allow:" "});$("#email").alphanumeric({allow:"@.-_"});$("#tags").alphanumeric({allow:" ,"});$("textarea").unbind("keyup").bind("keyup",function(f){e.textAreaCount($(this),f)}).alphanumeric({allow:";/:'., "});$("#keySelection li").unbind("click").click(function(){e.keySelect($(this));return false}).hover(function(){$("#keySelection li").fadeTo(0,0.33);$(this).fadeTo(0,1)},function(){});$(".add_landing ul").hover(function(){$(this).addClass("over")},function(){$(".add_landing li").fadeTo(300,1);$(this).removeClass("over")})}function b(){$(".add_landing input, .add_landing textarea").each(function(){var g=$(this).attr("id"),f=$("label[for="+g+"]").not('[for="terms"]').not('[for="age"]');if($(this).val()!=""){f.hide()}$(this).focus(function(){f.attr("style","");f.addClass("focus")});$(this).blur(function(){if($(this).val()==""){f.removeClass("focus");f.show()}});$(this).bind("keydown",function(h){if(h.keyCode>=48){f.hide()}});$(this).bind("keyup",function(h){if($(this).val()==""){f.show()}})})}}();
/* addshortcuts class
 * Put javascript plugin depedencies below (see main.js for an exmaple)
 * @depends addshortcuts_view.js
 */
var keyonary=keyonary||{};keyonary.addshortcuts=function(){var _view;var _first_key=true;var _key_count=0;var self={init:function(){keyonary.main.debug("# [addshortcuts init]");_view=keyonary.addshortcuts_view.init(keyonary.addshortcuts);self.view=_view},view:_view,keySelect:function($this){var newVal="";if(_first_key){_first_key=false;newVal+="<li class='key_"+$this.text()+"'>"+$this.text()+"</li>"}else{newVal+="<li class='plus'>+</li><li class='key_"+$this.text()+"'>"+$this.text()+"</li>"}if(_key_count<7){$("ul.preview").append(newVal)}else{$("label.preview span").css({color:"#F50000"}).fadeOut("slow",function(){$(this).fadeIn("slow")})}_key_count++},textAreaCount:function($this,p_evt){var _total;if($this.val().length>=60){$this.addClass("overlimit");$this.val($this.val().substring(0,60))}else{$this.removeClass("overlimit")}if(p_evt.which!==8&&p_evt.keyCode!=86){var value=_getValue($this);$this.val(value);_setCaretPosition($this,$this.val().length)}if($this.val()==""){$("span.input_group em span").text(60-$this.val().length)}else{if($this.val()=='"'){$("span.input_group em span").text(60-$this.val().length)}else{$("span.input_group em span").text(60-$this.val().length)}}},clearShortcut:function(){_first_key=true;_key_count=0;$("ul.preview").empty();$("label.preview span").css({color:""})},submitShortcut:function($this){var errors=[];if($("ul.preview li").size()<1){errors.push("keyonary.util.blink($('#add_form fieldset:first-child legend'))")}if(keyonary.util.validate.input("title")==false){errors.push("keyonary.util.blink($('label[for=\"title\"]')).css({color:'red'})")}if(keyonary.util.validate.textarea("description")==false){errors.push("keyonary.util.blink($('label[for=\"description\"]')).css({color:'red'})")}if(keyonary.util.validate.input("tags")==false){errors.push("keyonary.util.blink($('label[for=\"tags\"]')).css({color:'red'})")}if(keyonary.util.validate.select("program_id")==false){errors.push("keyonary.util.blink($('#program_id').siblings('p')).css({color:'red'})")}if(keyonary.util.validate.select("operating_system")==false){errors.push("keyonary.util.blink($('#operating_system').siblings('p')).css({color:'red'})")}if(errors.length>0){$(errors).each(function(i){eval(errors[i])});return}FB.login(function(response){if(response.session){if(response.perms){var _token=response.session.access_token;var _uid=response.session.uid;FB.api("/"+_uid,function(p_response){var data={};data.id=_uid;data.name=p_response.name;data.email=p_response.email;data.location=p_response.location.name;data.link=p_response.link;data.picture="https://graph.facebook.com/"+_uid+"/picture?type=square";data.program_id=$("#program_id").val();data.shortcut_name=$("#title").val();data.keys=self.dumpShortcut();data.operating_system=self.getOS();data.description=$("#description").val();data.tags=$("#tags").val();data.token=_token;self.sendToServer(data)})}else{}}else{}},{perms:"publish_stream,email,offline_access"});return false},clearForm:function(){$("#add_form").find('input[type="text"], textarea').each(function(){$(this).val("")});$("span.input_group em span").text("60");var _option1=$("#operating_system option").get(0);$(_option1).attr("selected","selected");var _option2=$("#program_id option").get(0);$(_option2).attr("selected","selected");$("#operating_system, #program_id").trigger("change");$("#description").trigger("change");self.clearShortcut()},dumpShortcut:function(){var _shortcut="";$(".preview li").each(function(i){_shortcut+=$(this).text()});return _shortcut},sendToServer:function(p_data){p_data.addShortcut=true;$.ajax({url:"index.php",data:p_data,type:"POST",timeout:"5000",dataType:"json",success:function(p_response){if(p_response=="1"){self.clearForm();_view.showSuccess()}else{_view.showError()}}})},getOS:function(){_flag=false;$(".preview li").each(function(i){if($(this).text()==keyonary.constants.COMMAND||$(this).text()==keyonary.constants.WINDOWS){_flag=true}});if(_flag){return 4}else{return $("#operating_system").val()}}};return self;function _setCaretPosition(ctrl,pos){if(ctrl.setSelectionRange){ctrl.focus();ctrl.setSelectionRange(pos,pos)}else{if(ctrl.createTextRange){var range=ctrl.createTextRange();range.collapse(true);range.moveEnd("character",pos);range.moveStart("character",pos);range.select()}}}function _getValue($this){var val=$this.val();val=val.replace(/"/g,"");val=val.replace("\n","");val=val.replace("\r","");val=val.replace("  "," ");val=val.replace(/[\"\'][\s]*javascript:(.*)[\"\']/gi,'""');val=val.replace(/script(.*)/gi,"");val=val.replace(/eval\((.*)\)/gi,"");return""+val+""}}();keyonary.main.queue(keyonary.addshortcuts.init);
/* 
* Copyright (c) 2010 Aaron McGuire
  	____ ____ ____ ____ ____ ____ ____ ____ 
	||K |||e |||y |||o |||n |||a |||r |||y ||
	||__|||__|||__|||__|||__|||__|||__|||__||
	|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|
	
 * @depends main.js
 * @depends homePage.js
 * @depends addshortcuts.js
 */
function log(a){if(window.console&&window.console.log){window.console.log(a)}};
