function H(){var x=navigator&&navigator.userAgent&&/\bMSIE 6\./.test(navigator.userAgent);H=function(){return x};return x}(function(){function x(b){b=b.split(/ /g);var a={};for(var c=b.length;--c>=0;){var d=b[c];if(d)a[d]=null}return a}var y="break continue do else for if return while ",U=y+"auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile ",D=U+"catch class delete false import new operator private protected public this throw true try ",
I=D+"alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename typeof using virtual wchar_t where ",J=D+"boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient ",V=J+"as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var ",
K=D+"debugger eval export function get null set undefined var with Infinity NaN ",L="caller delete die do dump elsif eval exit foreach for goto if import last local my next no our print package redo require sub undef unless until use wantarray while BEGIN END ",M=y+"and as assert class def del elif except exec finally from global import in is lambda nonlocal not or pass print raise try with yield False True None ",N=y+"alias and begin case class def defined elsif end ensure false in module next nil not or redo rescue retry self super then true undef unless until when yield BEGIN END ",
O=y+"case done elif esac eval fi function in local set then until ",W=I+V+K+L+M+N+O;function X(b){return b>="a"&&b<="z"||b>="A"&&b<="Z"}function u(b,a,c,d){b.unshift(c,d||0);try{a.splice.apply(a,b)}finally{b.splice(0,2)}}var Y=(function(){var b=["!","!=","!==","#","%","%=","&","&&","&&=","&=","(","*","*=","+=",",","-=","->","/","/=",":","::",";","<","<<","<<=","<=","=","==","===",">",">=",">>",">>=",">>>",">>>=","?","@","[","^","^=","^^","^^=","{","|","|=","||","||=","~","break","case","continue",
"delete","do","else","finally","instanceof","return","throw","try","typeof"],a="(?:(?:(?:^|[^0-9.])\\.{1,3})|(?:(?:^|[^\\+])\\+)|(?:(?:^|[^\\-])-)";for(var c=0;c<b.length;++c){var d=b[c];a+=X(d.charAt(0))?"|\\b"+d:"|"+d.replace(/([^=<>:&])/g,"\\$1")}a+="|^)\\s*$";return new RegExp(a)})(),P=/&/g,Q=/</g,R=/>/g,Z=/\"/g;function $(b){return b.replace(P,"&amp;").replace(Q,"&lt;").replace(R,"&gt;").replace(Z,"&quot;")}function E(b){return b.replace(P,"&amp;").replace(Q,"&lt;").replace(R,"&gt;")}var aa=
/&lt;/g,ba=/&gt;/g,ca=/&apos;/g,da=/&quot;/g,ea=/&amp;/g,fa=/&nbsp;/g;function ga(b){var a=b.indexOf("&");if(a<0)return b;for(--a;(a=b.indexOf("&#",a+1))>=0;){var c=b.indexOf(";",a);if(c>=0){var d=b.substring(a+3,c),g=10;if(d&&d.charAt(0)==="x"){d=d.substring(1);g=16}var e=parseInt(d,g);if(!isNaN(e))b=b.substring(0,a)+String.fromCharCode(e)+b.substring(c+1)}}return b.replace(aa,"<").replace(ba,">").replace(ca,"'").replace(da,'"').replace(ea,"&").replace(fa," ")}function S(b){return"XMP"===b.tagName}
function z(b,a){switch(b.nodeType){case 1:var c=b.tagName.toLowerCase();a.push("<",c);for(var d=0;d<b.attributes.length;++d){var g=b.attributes[d];if(!g.specified)continue;a.push(" ");z(g,a)}a.push(">");for(var e=b.firstChild;e;e=e.nextSibling)z(e,a);if(b.firstChild||!/^(?:br|link|img)$/.test(c))a.push("</",c,">");break;case 2:a.push(b.name.toLowerCase(),'="',$(b.value),'"');break;case 3:case 4:a.push(E(b.nodeValue));break}}var F=null;function ha(b){if(null===F){var a=document.createElement("PRE");
a.appendChild(document.createTextNode('<!DOCTYPE foo PUBLIC "foo bar">\n<foo />'));F=!/</.test(a.innerHTML)}if(F){var c=b.innerHTML;if(S(b))c=E(c);return c}var d=[];for(var g=b.firstChild;g;g=g.nextSibling)z(g,d);return d.join("")}function ia(b){var a=0;return function(c){var d=null,g=0;for(var e=0,h=c.length;e<h;++e){var f=c.charAt(e);switch(f){case "\t":if(!d)d=[];d.push(c.substring(g,e));var i=b-a%b;a+=i;for(;i>=0;i-="                ".length)d.push("                ".substring(0,i));g=e+1;break;
case "\n":a=0;break;default:++a}}if(!d)return c;d.push(c.substring(g));return d.join("")}}var ja=/(?:[^<]+|<!--[\s\S]*?--\>|<!\[CDATA\[([\s\S]*?)\]\]>|<\/?[a-zA-Z][^>]*>|<)/g,ka=/^<!--/,la=/^<\[CDATA\[/,ma=/^<br\b/i;function na(b){var a=b.match(ja),c=[],d=0,g=[];if(a)for(var e=0,h=a.length;e<h;++e){var f=a[e];if(f.length>1&&f.charAt(0)==="<"){if(ka.test(f))continue;if(la.test(f)){c.push(f.substring(9,f.length-3));d+=f.length-12}else if(ma.test(f)){c.push("\n");++d}else g.push(d,f)}else{var i=ga(f);
c.push(i);d+=i.length}}return{source:c.join(""),tags:g}}function v(b,a){var c={};(function(){var g=b.concat(a);for(var e=g.length;--e>=0;){var h=g[e],f=h[3];if(f)for(var i=f.length;--i>=0;)c[f.charAt(i)]=h}})();var d=a.length;return function(g,e){e=e||0;var h=[e,"pln"],f="",i=0,j=g;while(j.length){var o,m=null,k,l=c[j.charAt(0)];if(l){k=j.match(l[1]);m=k[0];o=l[0]}else{for(var n=0;n<d;++n){l=a[n];var p=l[2];if(p&&!p.test(f))continue;k=j.match(l[1]);if(k){m=k[0];o=l[0];break}}if(!m){o="pln";m=j.substring(0,
1)}}h.push(e+i,o);i+=m.length;j=j.substring(m.length);if(o!=="com"&&/\S/.test(m))f=m}return h}}var oa=v([],[["pln",/^[^<]+/,null],["dec",/^<!\w[^>]*(?:>|$)/,null],["com",/^<!--[\s\S]*?(?:--\>|$)/,null],["src",/^<\?[\s\S]*?(?:\?>|$)/,null],["src",/^<%[\s\S]*?(?:%>|$)/,null],["src",/^<(script|style|xmp)\b[^>]*>[\s\S]*?<\/\1\b[^>]*>/i,null],["tag",/^<\/?\w[^<>]*>/,null]]);function pa(b){var a=oa(b);for(var c=0;c<a.length;c+=2)if(a[c+1]==="src"){var d,g;d=a[c];g=c+2<a.length?a[c+2]:b.length;var e=b.substring(d,
g),h=e.match(/^(<[^>]*>)([\s\S]*)(<\/[^>]*>)$/);if(h)a.splice(c,2,d,"tag",d+h[1].length,"src",d+h[1].length+(h[2]||"").length,"tag")}return a}var qa=v([["atv",/^\'[^\']*(?:\'|$)/,null,"'"],["atv",/^\"[^\"]*(?:\"|$)/,null,'"'],["pun",/^[<>\/=]+/,null,"<>/="]],[["tag",/^[\w:\-]+/,/^</],["atv",/^[\w\-]+/,/^=/],["atn",/^[\w:\-]+/,null],["pln",/^\s+/,null," \t\r\n"]]);function ra(b,a){for(var c=0;c<a.length;c+=2){var d=a[c+1];if(d==="tag"){var g,e;g=a[c];e=c+2<a.length?a[c+2]:b.length;var h=b.substring(g,
e),f=qa(h,g);u(f,a,c,2);c+=f.length-2}}return a}function r(b){var a=[],c=[];if(b.tripleQuotedStrings)a.push(["str",/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]);else if(b.multiLineStrings)a.push(["str",/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]);else a.push(["str",/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,
null,"\"'"]);c.push(["pln",/^(?:[^\'\"\`\/\#]+)/,null," \r\n"]);if(b.hashComments)a.push(["com",/^#[^\r\n]*/,null,"#"]);if(b.cStyleComments)c.push(["com",/^\/\/[^\r\n]*/,null]);if(b.regexLiterals)c.push(["str",/^\/(?:[^\\\*\/\[]|\\[\s\S]|\[(?:[^\]\\]|\\.)*(?:\]|$))+(?:\/|$)/,Y]);if(b.cStyleComments)c.push(["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null]);var d=x(b.keywords);b=null;var g=v(a,c),e=v([],[["pln",/^\s+/,null," \r\n"],["pln",/^[a-z_$@][a-z_$@0-9]*/i,null],["lit",/^0x[a-f0-9]+[a-z]/i,null],["lit",
/^(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d+)(?:e[+\-]?\d+)?[a-z]*/i,null,"123456789"],["pun",/^[^\s\w\.$@]+/,null]]);function h(f,i){for(var j=0;j<i.length;j+=2){var o=i[j+1];if(o==="pln"){var m,k,l,n;m=i[j];k=j+2<i.length?i[j+2]:f.length;l=f.substring(m,k);n=e(l,m);for(var p=0,t=n.length;p<t;p+=2){var w=n[p+1];if(w==="pln"){var A=n[p],B=p+2<t?n[p+2]:l.length,s=f.substring(A,B);if(s===".")n[p+1]="pun";else if(s in d)n[p+1]="kwd";else if(/^@?[A-Z][A-Z$]*[a-z][A-Za-z$]*$/.test(s))n[p+1]=s.charAt(0)==="@"?"lit":
"typ"}}u(n,i,j,2);j+=n.length-2}}return i}return function(f){var i=g(f);i=h(f,i);return i}}var G=r({keywords:W,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function sa(b,a){for(var c=0;c<a.length;c+=2){var d=a[c+1];if(d==="src"){var g,e;g=a[c];e=c+2<a.length?a[c+2]:b.length;var h=G(b.substring(g,e));for(var f=0,i=h.length;f<i;f+=2)h[f]+=g;u(h,a,c,2);c+=h.length-2}}return a}function ta(b,a){var c=false;for(var d=0;d<a.length;d+=2){var g=a[d+1],e,h;if(g==="atn"){e=
a[d];h=d+2<a.length?a[d+2]:b.length;c=/^on|^style$/i.test(b.substring(e,h))}else if(g==="atv"){if(c){e=a[d];h=d+2<a.length?a[d+2]:b.length;var f=b.substring(e,h),i=f.length,j=i>=2&&/^[\"\']/.test(f)&&f.charAt(0)===f.charAt(i-1),o,m,k;if(j){m=e+1;k=h-1;o=f}else{m=e+1;k=h-1;o=f.substring(1,f.length-1)}var l=G(o);for(var n=0,p=l.length;n<p;n+=2)l[n]+=m;if(j){l.push(k,"atv");u(l,a,d+2,0)}else u(l,a,d,2)}c=false}}return a}function ua(b){var a=pa(b);a=ra(b,a);a=sa(b,a);a=ta(b,a);return a}function va(b,
a,c){var d=[],g=0,e=null,h=null,f=0,i=0,j=ia(8);function o(k){if(k>g){if(e&&e!==h){d.push("</span>");e=null}if(!e&&h){e=h;d.push('<span class="',e,'">')}var l=E(j(b.substring(g,k))).replace(/(\r\n?|\n| ) /g,"$1&nbsp;").replace(/\r\n?|\n/g,"<br />");d.push(l);g=k}}while(true){var m;m=f<a.length?(i<c.length?a[f]<=c[i]:true):false;if(m){o(a[f]);if(e){d.push("</span>");e=null}d.push(a[f+1]);f+=2}else if(i<c.length){o(c[i]);h=c[i+1];i+=2}else break}o(b.length);if(e)d.push("</span>");return d.join("")}
var C={};function q(b,a){for(var c=a.length;--c>=0;){var d=a[c];if(!C.hasOwnProperty(d))C[d]=b;else if("console"in window)console.log("cannot override language handler %s",d)}}q(G,["default-code"]);q(ua,["default-markup","html","htm","xhtml","xml","xsl"]);q(r({keywords:I,hashComments:true,cStyleComments:true}),["c","cc","cpp","cs","cxx","cyc"]);q(r({keywords:J,cStyleComments:true}),["java"]);q(r({keywords:O,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);q(r({keywords:M,hashComments:true,
multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);q(r({keywords:L,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);q(r({keywords:N,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);q(r({keywords:K,cStyleComments:true,regexLiterals:true}),["js"]);function T(b,a){try{var c=na(b),d=c.source,g=c.tags;if(!C.hasOwnProperty(a))a=/^\s*</.test(d)?"default-markup":"default-code";var e=C[a].call({},d);return va(d,g,e)}catch(h){if("console"in window){console.log(h);
console.trace()}return b}}function wa(b){var a=H(),c=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],d=[];for(var g=0;g<c.length;++g)for(var e=0;e<c[g].length;++e)d.push(c[g][e]);c=null;var h=0;function f(){var i=(new Date).getTime()+250;for(;h<d.length&&(new Date).getTime()<i;h++){var j=d[h];if(j.className&&j.className.indexOf("prettyprint")>=0){var o=j.className.match(/\blang-(\w+)\b/);if(o)o=o[1];var m=false;for(var k=j.parentNode;k;k=
k.parentNode)if((k.tagName==="pre"||k.tagName==="code"||k.tagName==="xmp")&&k.className&&k.className.indexOf("prettyprint")>=0){m=true;break}if(!m){var l=ha(j);l=l.replace(/(?:\r\n?|\n)$/,"");var n=T(l,o);if(!S(j))j.innerHTML=n;else{var p=document.createElement("PRE");for(var t=0;t<j.attributes.length;++t){var w=j.attributes[t];if(w.specified)p.setAttribute(w.name,w.value)}p.innerHTML=n;j.parentNode.replaceChild(p,j);p=j}if(a&&j.tagName==="PRE"){var A=j.getElementsByTagName("br");for(var B=A.length;--B>=
0;){var s=A[B];s.parentNode.replaceChild(document.createTextNode("\r\n"),s)}}}}}if(h<d.length)setTimeout(f,250);else if(b)b()}f()}window.PR_normalizedHtml=z;window.prettyPrintOne=T;window.prettyPrint=wa;window.PR={createSimpleLexer:v,registerLangHandler:q,sourceDecorator:r,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ"}})();
/**
 * Copyright (c) 2008-current HB Stone
 * 
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use,
 * copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following
 * conditions:
 * 
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 * 
 * For more information:
 *     http://opensource.org/licenses/mit-license.php
 *     http://jelo.callee.info/
 */


var Jelo=window.Jelo||{version:1.21};Jelo.uID=function(){var id=1;return function(){return id++;};}();Jelo.emptyFn=function(){};Jelo.each=function(a,f,s){var i,ai;if(typeof a.length=="number"){for(i=0,l=a.length;i<l;i++){ai=a[i];if(typeof a[i]!='undefined'){if(f.call(s||ai,ai,i,a)===false){return i;}}}}else if(typeof a=="object"){for(i in a){ai=a[i];if(a.hasOwnProperty(i)&&typeof ai!='undefined'){if(f.call(s||ai,ai,i,a)===false){return i;}}}}};Jelo.delegate=function(fn,scope){var s=scope||window;var a=[].slice.call(arguments,2);return function(){fn.apply(s,a);};};(function(){if(!('console'in window)||!('firebug'in console)){var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var i=0;i<names.length;++i){window.console[names[i]]=Jelo.emptyFn;}}
Jelo.Console={firebug:window.console};Jelo.Console.log=window.console.log;Jelo.Console.getStackTrace=function(){var i,len,s=[],isPop=false,l;try{hb.stone.javascript+=0;}catch(e){if(e.stack){l=e.stack.split("\n");for(i=0,len=l.length;i<len;i++){if(l[i].match(/^\s*[a-z0-9\-_\$]+\(/i)){s.push(l[i]);}}
s.shift();isPop=true;}else if(window.opera&&e.message){l=e.message.split("\n");for(i=0,len=l.length;i<len;i++){if(l[i].match(/^\s*[A-Za-z0-9\-_\$]+\(/)){var entry=l[i];if(l[i+1]){entry+=" at "+l[i+1];i++;}
s.push(entry);}}
s.shift();isPop=true;}}
if(!isPop){var curr=arguments.callee;while((curr=curr.caller)){var fn=curr.toString();var fname=fn.substring(fn.indexOf("function")+8,fn.indexOf("("))||"anonymous";s.push(fname);}}
return s;};})();(function(f){window.setTimeout=f(window.setTimeout);window.setInterval=f(window.setInterval);})(function(f){return function(c,t){var a=[].slice.call(arguments,2);return((typeof c=='function')?f(function(){c.apply(this,a);},t):f.call(this,c,t));};});(function(){if(typeof Array.prototype.indexOf=='undefined'){Array.prototype.indexOf=function(k){var len=this.length;for(var i=0;i<len;i++){if(this[i]==k){return i;}}
return-1;};Array.indexOf=Array.prototype.indexOf;}
if(typeof Array.prototype.lastIndexOf=='undefined'){Array.prototype.lastIndexOf=function(k){var len=this.length;for(var i=len-1;i>-1;i--){if(this[i]==k){return i;}}
return-1;};Array.lastIndexOf=Array.prototype.lastIndexOf;}
if(typeof Array.prototype.find=='undefined'){Array.prototype.find=function(k){var res=[];var len=this.length;for(var i=0;i<len;i++){if((k.test&&k.test(this[i]))||k===this[i]){res.push(i);}}
return!!res.length&&res;};Array.find=Array.prototype.find;}
if(typeof Array.prototype.shuffle=='undefined'){Array.prototype.shuffle=function(){for(var j,x,i=this.length;i;j=parseInt(Math.random()*i,10),x=this[--i],this[i]=this[j],this[j]=x){}
return this;};Array.shuffle=Array.prototype.shuffle;}})();Jelo.dragCheckbox=function(root){root=root||document;var dragging=false;var current=false;var undrag=function(){dragging=false;};Jelo.un(document,"mouseup",undrag);Jelo.on(document,"mouseup",undrag);var getTarget=function(element){switch(element.tagName.toLowerCase()){case'input':return element;case'label':Jelo.css(element,'-moz-user-select','none');Jelo.css(element,'-webkit-user-select','ignore');element.onselectstart=function(){return false;};var el=element.getAttribute('for')||element.getAttribute('htmlFor');return $('input#'+el);default:return null;}};Jelo.each($$('[type=checkbox]',root),function(){var down=function(){var box=getTarget(this);if(box){dragging=true;box.checked=!box.checked;current=box.checked;}};var over=function(){var box=getTarget(this);if(box&&dragging){box.checked=current;}};var click=function(target,event){var box=getTarget(this);if(box){box.checked=current;}};Jelo.un(this,"mousedown",down);Jelo.un(this,"mouseover",over);Jelo.un(this,"click",click);Jelo.on(this,"mousedown",down);Jelo.on(this,"mouseover",over);Jelo.on(this,"click",click);var label=$('label[for='+this.id+']',root);if(label){Jelo.un(label,"mousedown",down);Jelo.un(label,"mouseover",over);Jelo.un(label,"click",click);Jelo.on(label,"mousedown",down);Jelo.on(label,"mouseover",over);Jelo.on(label,"click",click);}});};
Jelo.Environment=function(){var D=window.document,DB=D.body;var ua=navigator.userAgent.toLowerCase();var isStrict=D.compatMode=="CSS1Compat";var isWindows=(ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1);var isMac=(ua.indexOf("macintosh")!=-1||ua.indexOf("mac os x")!=-1);var isLinux=(ua.indexOf("linux")!=-1);var isAir=(ua.indexOf("adobeair")!=-1);var isWebkit=(/webkit|khtml/).test(ua);var isSafari3=(/webkit\/5/).test(ua);var isGecko=!isWebkit&&(/gecko/).test(ua);var isFirefox=isGecko&&(/firefox\/\d/).test(ua);var isFirefoxOld=isGecko&&(/firefox\/[0-2]/).test(ua);var isOpera=(/opera/).test(ua);var isIE=!!(window.attachEvent&&!isOpera);var isIE7=isIE&&(/msie 7/).test(ua);var isIE8=isIE&&(/msie 8/).test(ua);var isIEOld=isIE&&(/msie [0-6]/).test(ua);var isGoogle=(/google/).test(ua);var isGoogleChrome=(/chrome\/[0-1]/).test(ua);var isYahoo=(/yahoo/).test(ua);var isBot=(/bot|crawler|http/).test(ua);var isSecure=window.location.href.toLowerCase().indexOf("https")===0;var isModern=(typeof XMLHttpRequest!="undefined");if(isIEOld){try{D.execCommand("BackgroundImageCache",false,true);}catch(e){}}
return{getScreenWidth:function(full){return full?screen.width:screen.availWidth;},getScreenHeight:function(full){return full?screen.height:screen.availHeight;},getViewWidth:function(full){return full?this.getDocumentWidth():this.getViewportWidth();},getViewHeight:function(full){return full?this.getDocumentHeight():this.getViewportHeight();},getDocumentWidth:function(){var scrollWidth=(D.compatMode!="CSS1Compat")?DB.scrollWidth:D.documentElement.scrollWidth;return Math.max(scrollWidth,this.getViewportWidth());},getDocumentHeight:function(){var scrollHeight=(D.compatMode!="CSS1Compat")?DB.scrollHeight:D.documentElement.scrollHeight;return Math.max(scrollHeight,this.getViewportHeight());},getViewportWidth:function(){if(this.isIE){return this.isStrict?D.documentElement.clientWidth:DB.clientWidth;}else{return window.innerWidth;}},getViewportHeight:function(){if(this.isIE){return this.isStrict?D.documentElement.clientHeight:DB.clientHeight;}else{return window.innerHeight;}},getUA:function(){return ua;},isStrict:isStrict,isWindows:isWindows,isMac:isMac,isLinux:isLinux,isAir:isAir,isWebkit:isWebkit,isSafari3:isSafari3,isGecko:isGecko,isFirefox:isFirefox,isOpera:isOpera,isIE:isIE,isIE7:isIE7,isIE8:isIE8,isIEOld:isIEOld,isGoogle:isGoogle,isYahoo:isYahoo,isBot:isBot,isSecure:isSecure,isStandard:isModern,isModern:isModern};}();Jelo.Env=Jelo.Environment;
Jelo.Valid=function(){Array.prototype.isArray=true;Function.prototype.isFunction=true;Number.prototype.isNumber=true;String.prototype.isString=true;return{is:function(i){return(typeof i==="undefined")||(i===null);},isArray:function(a){return a&&(a.constructor==Array);},isIterable:function(a){return(typeof a=='object'&&typeof a.length=='number');},isElement:function(e){return(typeof e=="object")&&(e!==null)&&(typeof e.tagName=="string")&&(typeof e.className=="string");},isFunction:function(f){return!!f.isFunction||(f instanceof Function)||(typeof f=="function");},isNumber:function(n){return n&&(!!n.isNumber||!isNaN(n));},isEmail:function(e){var regex=/^[a-z0-9_\-]+(\.[_a-z0-9\-]+)*@([_a-z0-9\-]+\.)+([a-z]{2}|aero|arpa|biz|com|coop|edu|gov|info|int|jobs|mil|museum|name|nato|net|org|pro|travel)$/;return regex.test(e);}};}();
Jelo.Format=function(){return{toCamel:function(str){return str.replace(/-(.)/g,function(m,l){return l.toUpperCase();});},hyphenatedToCamelCase:function(str){return Jelo.Format.toCamel(str);},cutHexHash:function(h){return(h.charAt(0)=="#")?h.substring(1):h;},hexToR:function(h){return parseInt(Jelo.Format.cutHexHash(h).substring(0,2),16);},hexToG:function(h){return parseInt(Jelo.Format.cutHexHash(h).substring(2,4),16);},hexToB:function(h){return parseInt(Jelo.Format.cutHexHash(h).substring(4,6),16);},hexToRGB:function(h){var r=this.hexToR(h);var g=this.hexToG(h);var b=this.hexToB(h);return[r,g,b];},rgbStringToArray:function(s){if(s.isString){try{var sub=s.split(/\D/g);var sub2=[];for(var i=0;i<sub.length;i++){if(sub[i]){sub2[sub2.length]=parseInt(sub[i],10);}}
return sub2;}catch(e){throw new Error("Jelo.Format.rgbStringToArray: Invalid input "+s);}}else{return[];}},rgbToHex:function(s){if(s.isString){try{function toHex(n){var chr="0123456789ABCDEF";if(n===null){return"00";}
n=parseInt(n,10);if(isNaN(n)||!n){return"00";}
n=Math.max(0,n);n=Math.min(n,255);n=Math.round(n);return chr.charAt((n-n%16)/16)+chr.charAt(n%16);}
var a=Jelo.Format.rgbStringToArray(s);return"#"+toHex(a[0])+toHex(a[1])+toHex(a[2]);}catch(e){throw new Error("Jelo.Format.rgbStringToHex: Invalid input "+s);}}},urldecode:function(str){var h={},ret=(str||'').toString();function rep(s,r,str){var tmp_arr=[];tmp_arr=str.split(s);return tmp_arr.join(r);}
h["'"]='%27';h['(']='%28';h[')']='%29';h['*']='%2A';h['~']='%7E';h['!']='%21';h['%20']='+';for(var r in h){if(h.hasOwnProperty(s)){s=h[r];ret=rep(s,r,ret);}}
return decodeURIComponent(ret);},urlencode:function(str){var h={},tmp_arr=[],ret=(str||'').toString();function rep(s,r,str){var tmp_arr=[];tmp_arr=str.split(s);return tmp_arr.join(r);}
h["'"]='%27';h['(']='%28';h[')']='%29';h['*']='%2A';h['~']='%7E';h['!']='%21';h['%20']='+';ret=encodeURIComponent(ret);for(var s in h){if(h.hasOwnProperty(s)){r=h[s];ret=rep(s,r,ret);}}
return ret.replace(/(\%([a-z0-9]{2}))/g,function(full,m1,m2){return"%"+m2.toUpperCase();});},urlDecode:function(str){return Jelo.Format.urldecode(str);},urlEncode:function(str){return Jelo.Format.urlencode(str);},fromJSON:function(str){try{var crockford=/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/;var replace=/"(\\.|[^"\\])*"/g;return!(crockford.test(o.replace(replace,'')))&&eval('('+o+')');}catch(e){return{};}}};}();
Jelo.CSS=function(){var clearOpacity=function(el){if(Jelo.Env.isIE){if(typeof el.style.filter==="string"&&(/alpha/i).test(el.style.filter)){el.style.filter="";}}else{el.style.opacity="";el.style["-moz-opacity"]="";el.style["-khtml-opacity"]="";}};var toCamel=Jelo.Format.toCamel;return{clearOpacity:clearOpacity,addClass:function(e,c){if(Jelo.Valid.isArray(e)){var fn=arguments.callee;Jelo.each(e,function(){fn(this,c);});return;}
var curr=e.className;if(!Jelo.CSS.hasClass(e,c)){e.className=curr+(curr.length?" ":"")+c;}},hasClass:function(e,c){return c&&(' '+e.className+' ').indexOf(' '+c+' ')!=-1;},removeClass:function(e,c){if(Jelo.Valid.isArray(e)){var fn=arguments.callee;Jelo.each(e,function(){fn(this,c);});return;}
e.className=e.className.replace(new RegExp('\\b'+c+'\\b'),'').replace(/^\s\s*/,'').replace(/\s\s*$/,'');},getStyle:function(){var view=document.defaultView;return(view&&view.getComputedStyle)?function(el,p,toInt){var i,v,ret,cp,styles=[];if(!el||!p){return null;}
if(typeof el=="string"){el=Jelo.Dom.select(el);}
if(typeof p=="string"){p=p.toLowerCase();}
if(Jelo.Valid.isArray(el)){for(i=0;i<el.length;i++){styles.push(Jelo.CSS.getStyle(el[i],p,toInt));}
return styles;}
if(Jelo.Valid.isArray(p)){for(i=0;i<p.length;i++){styles.push(Jelo.CSS.getStyle(el,p[i],toInt));}
return styles;}
if(p=="float"){p="cssFloat";}
cp=toCamel(p);switch(cp){case"backgroundPositionX":try{ret=Jelo.CSS.getStyle(el,"background-position").split(" ")[0];}catch(e1){return null;}
break;case"backgroundPositionY":try{ret=Jelo.CSS.getStyle(el,"background-position").split(" ")[1];}catch(e2){return null;}
break;default:if((v=el.style[p])){ret=(/color/).test(p)?Jelo.Format.rgbToHex(v):v.toString().toLowerCase();}else if((v=view.getComputedStyle(el,"")[cp])){ret=(/color/).test(p)?Jelo.Format.rgbToHex(v):v.toString();}}
return toInt?parseInt(ret,10):ret;}:function(el,p,toInt){var i,v,ret,cp,styles=[];if(!el||!p){return null;}
if(typeof el=="string"){el=Jelo.Dom.select(el);}
if(typeof p=="string"){p=p.toLowerCase();}
if(Jelo.Valid.isArray(el)){for(i=0;i<el.length;i++){styles.push(Jelo.CSS.getStyle(el[i],p,toInt));}
return styles;}
if(Jelo.Valid.isArray(p)){for(i=0;i<p.length;i++){styles.push(Jelo.CSS.getStyle(el,p[i],toInt));}
return styles;}
if(p=="opacity"){if(typeof el.style.filter=='string'){var m=el.style.filter.match(/alpha\(opacity=(.*)\)/i);if(m){var fv=parseFloat(m[1]);if(!isNaN(fv)){return fv?fv/100:0;}}}
return 1;}
if(p=="float"){p="styleFloat";}
p=toCamel(p);if((v=el.style[p])){ret=v.toString();}else if(el.currentStyle&&(v=el.currentStyle[p])){if(v=="auto"){if((v=el["offset"+p.replace(/^(.)/,function(m,l){return l.toUpperCase();})])){ret=v+"px";}}
ret=v.toString();}
return toInt?parseInt(ret,10):ret;};}(),setStyle:function(el,p,v){var i,u;if(typeof el==="string"){el=Jelo.Dom.select(el);}
if(Jelo.Valid.isArray(el)){for(i=0;i<el.length;i++){Jelo.CSS.setStyle(el[i],p,v);}
return;}
if(Jelo.Valid.isArray(p)||Jelo.Valid.isArray(v)){if(Jelo.Valid.isArray(p)&&Jelo.Valid.isArray(v)&&(p.length==v.length)){for(i=0;i<p.length;i++){Jelo.CSS.setStyle(el,p[i],v[i]);}}else{throw new Error('Jelo.CSS.setStyle: Properties and values must both be Arrays with the same length, or both be Strings.');}
return;}
p=toCamel(p);if((/width|height|top|right|bottom|left|size/).test(p)){u=v.replace(/[^(%|px|em)]/g,"");if(!u.length){u="px";}
v=parseInt(v,10);if(isNaN(v)){v=0;}
v+=u;}
var s=el.style;if(p==="opacity"){if(Jelo.Env.isIE){s.zoom=1;s.filter=(s.filter||'').replace(/alpha\([^\)]*\)/gi,"")+
(v==1?"":" alpha(opacity="+v*100+")");}else{s.opacity=parseFloat(v);}}else{s[p]=v;}},randomColor:function(){return'#'+(function(h){return new Array(7-h.length).join('0')+h;})((Math.random()*(0xFFFFFF+1)<<0).toString(16));},getRule:function(s,d){s=s.toLowerCase&&s.toLowerCase();if(document.styleSheets){for(var i=0;i<document.styleSheets.length;i++){var styleSheet=document.styleSheets[i];var ii=0;var cssRule=false;do{if(styleSheet.cssRules){cssRule=styleSheet.cssRules[ii];}else{cssRule=styleSheet.rules[ii];}
if(cssRule){if(cssRule.selectorText.toLowerCase()==s){if(d){if(styleSheet.cssRules){styleSheet.deleteRule(ii);}else{styleSheet.removeRule(ii);}
return true;}else{return cssRule;}}}
ii++;}while(cssRule)}}
return false;},deleteRule:function(s){return Jelo.CSS.getRule(s,true);},createRule:function(s){if(document.styleSheets){if(!getRule(s)){if(document.styleSheets[0].addRule){document.styleSheets[0].addRule(s,null,0);}else{document.styleSheets[0].insertRule(s+' { }',0);}}}
return Jelo.CSS.getRule(s);}};}();Jelo.css=function(){if(arguments.length==2){return Jelo.CSS.getStyle(arguments[0],arguments[1]);}
if(arguments.length==3){return Jelo.CSS.setStyle(arguments[0],arguments[1],arguments[2]);}
throw new Error("Jelo.css(element, property) for getStyle, and Jelo.css(element, property, value) for setStyle.");};
(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,done=0,toString=Object.prototype.toString,hasDuplicate=false;var Sizzle=function(selector,context,results,seed){results=results||[];var origContext=context=context||document;if(context.nodeType!==1&&context.nodeType!==9){return[];}
if(!selector||typeof selector!=="string"){return results;}
var parts=[],sortOrder,m,set,checkSet,extra,prune=true,contextXML=isXML(context);chunker.lastIndex=0;while((m=chunker.exec(selector))!==null){parts.push(m[1]);if(m[2]){extra=RegExp.rightContext;break;}}
if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context);}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector])selector+=parts.shift();set=posProcess(selector,set);}}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0];}
if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;if(parts.length>0){checkSet=makeArray(set);}else{prune=false;}
while(parts.length){var cur=parts.pop(),pop=cur;if(!Expr.relative[cur]){cur="";}else{pop=parts.pop();}
if(pop==null){pop=context;}
Expr.relative[cur](checkSet,pop,contextXML);}}else{checkSet=parts=[];}}
if(!checkSet){checkSet=set;}
if(!checkSet){throw"Syntax error, unrecognized expression: "+(cur||selector);}
if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet);}else if(context&&context.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i]);}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i]);}}}}else{makeArray(checkSet,results);}
if(extra){Sizzle(extra,origContext,results,seed);Sizzle.uniqueSort(results);}
return results;};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=false;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1);}}}}};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set);};Sizzle.find=function(expr,context,isXML){var set,match;if(!expr){return[];}
for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match=Expr.match[type].exec(expr))){var left=RegExp.leftContext;if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type],"");break;}}}}
if(!set){set=context.getElementsByTagName("*");}
return{set:set,expr:expr};};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.match[type].exec(expr))!=null){var filter=Expr.filter[type],found,item;anyFound=false;if(curLoop==result){result=[];}
if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=true;}else if(match===true){continue;}}
if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=true;}else{curLoop[i]=false;}}else if(pass){result.push(item);anyFound=true;}}}}
if(found!==undefined){if(!inplace){curLoop=result;}
expr=expr.replace(Expr.match[type],"");if(!anyFound){return[];}
break;}}}
if(expr==old){if(anyFound==null){throw"Syntax error, unrecognized expression: "+expr;}else{break;}}
old=expr;}
return curLoop;};var Expr=Sizzle.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(elem){return elem.getAttribute("href");}},relative:{"+":function(checkSet,part,isXML){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag&&!isXML){part=part.toUpperCase();}
for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}
checkSet[i]=isPartStrNotTag||elem&&elem.nodeName===part?elem||false:elem===part;}}
if(isPartStrNotTag){Sizzle.filter(part,checkSet,true);}},">":function(checkSet,part,isXML){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=isXML?part:part.toUpperCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName===part?parent:false;}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part;}}
if(isPartStr){Sizzle.filter(part,checkSet,true);}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(!part.match(/\W/)){var nodeCheck=part=isXML?part:part.toUpperCase();checkFn=dirNodeCheck;}
checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML);},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!part.match(/\W/)){var nodeCheck=part=isXML?part:part.toUpperCase();checkFn=dirNodeCheck;}
checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML);}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[];}},NAME:function(match,context,isXML){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i]);}}
return ret.length===0?null:ret;}},TAG:function(match,context){return context.getElementsByTagName(match[1]);}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match;}
for(var i=0,elem;(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").indexOf(match)>=0)){if(!inplace)result.push(elem);}else if(inplace){curLoop[i]=false;}}}
return false;},ID:function(match){return match[1].replace(/\\/g,"");},TAG:function(match,curLoop){for(var i=0;curLoop[i]===false;i++){}
return curLoop[i]&&isXML(curLoop[i])?match[1]:match[1].toUpperCase();},CHILD:function(match){if(match[1]=="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]=="even"&&"2n"||match[2]=="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0;}
match[0]=done++;return match;},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name];}
if(match[2]==="~="){match[4]=" "+match[4]+" ";}
return match;},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if(match[3].match(chunker).length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop);}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret);}
return false;}}else if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true;}
return match;},POS:function(match){match.unshift(true);return match;}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden";},disabled:function(elem){return elem.disabled===true;},checked:function(elem){return elem.checked===true;},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true;},parent:function(elem){return!!elem.firstChild;},empty:function(elem){return!elem.firstChild;},has:function(elem,i,match){return!!Sizzle(match[3],elem).length;},header:function(elem){return/h\d/i.test(elem.nodeName);},text:function(elem){return"text"===elem.type;},radio:function(elem){return"radio"===elem.type;},checkbox:function(elem){return"checkbox"===elem.type;},file:function(elem){return"file"===elem.type;},password:function(elem){return"password"===elem.type;},submit:function(elem){return"submit"===elem.type;},image:function(elem){return"image"===elem.type;},reset:function(elem){return"reset"===elem.type;},button:function(elem){return"button"===elem.type||elem.nodeName.toUpperCase()==="BUTTON";},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName);}},setFilters:{first:function(elem,i){return i===0;},last:function(elem,i,match,array){return i===array.length-1;},even:function(elem,i){return i%2===0;},odd:function(elem,i){return i%2===1;},lt:function(elem,i,match){return i<match[3]-0;},gt:function(elem,i,match){return i>match[3]-0;},nth:function(elem,i,match){return match[3]-0==i;},eq:function(elem,i,match){return match[3]-0==i;}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array);}else if(name==="contains"){return(elem.textContent||elem.innerText||"").indexOf(match[3])>=0;}else if(name==="not"){var not=match[3];for(i=0,l=not.length;i<l;i++){if(not[i]===elem){return false;}}
return true;}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case'only':case'first':while((node=node.previousSibling)){if(node.nodeType===1)return false;}
if(type=='first')return true;node=elem;case'last':while((node=node.nextSibling)){if(node.nodeType===1)return false;}
return true;case'nth':var first=match[2],last=match[3];if(first==1&&last==0){return true;}
var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count;}}
parent.sizcache=doneName;}
var diff=elem.nodeIndex-last;if(first==0){return diff==0;}else{return(diff%first==0&&diff/first>=0);}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match;},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName===match;},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1;},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!=check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-
check.length)===check:type==="|="?value===check||value.substr(0,check.length+
1)===check+"-":false;},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array);}}}};var origPOS=Expr.match.POS;for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);}
var makeArray=function(array,results){array=Array.prototype.slice.call(array);if(results){results.push.apply(results,array);return results;}
return array;};try{Array.prototype.slice.call(document.documentElement.childNodes);}catch(e){makeArray=function(array,results){var ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array);}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i<l;i++){ret.push(array[i]);}}else{for(var i=0;array[i];i++){ret.push(array[i]);}}}
return ret;};}
if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0){hasDuplicate=true;}
return ret;};}else if("sourceIndex"in document.documentElement){sortOrder=function(a,b){var ret=a.sourceIndex-b.sourceIndex;if(ret===0){hasDuplicate=true;}
return ret;};}else if(document.createRange){sortOrder=function(a,b){var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.selectNode(a);aRange.collapse(true);bRange.selectNode(b);bRange.collapse(true);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDuplicate=true;}
return ret;};}
(function(){var form=document.createElement("div"),id="script"+(new Date).getTime();form.innerHTML="<a name='"+id+"'/>";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(!!document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[];}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match;};}
root.removeChild(form);root=form=null;})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i]);}}
results=tmp;}
return results;};}
div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2);};}
div=null;})();if(document.querySelectorAll)(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return;}
Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra);}catch(e){}}
return oldSizzle(query,context,extra,seed);};for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop];}
div=null;})();if(document.getElementsByClassName&&document.documentElement.getElementsByClassName)(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(div.getElementsByClassName("e").length===0)return;div.lastChild.className="e";if(div.getElementsByClassName("e").length===1)return;Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1]);}};div=null;})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){var sibDir=dir=="previousSibling"&&!isXML;for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){if(sibDir&&elem.nodeType===1){elem.sizcache=doneName;elem.sizset=i;}
elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}
if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i;}
if(elem.nodeName===cur){match=elem;break;}
elem=elem[dir];}
checkSet[i]=match;}}}
function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){var sibDir=dir=="previousSibling"&&!isXML;for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){if(sibDir&&elem.nodeType===1){elem.sizcache=doneName;elem.sizset=i;}
elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}
if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i;}
if(typeof cur!=="string"){if(elem===cur){match=true;break;}}else if(Sizzle.filter(cur,[elem]).length>0){match=elem;break;}}
elem=elem[dir];}
checkSet[i]=match;}}}
var contains=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16;}:function(a,b){return a!==b&&(a.contains?a.contains(b):true);};var isXML=function(elem){return elem.nodeType===9&&elem.documentElement.nodeName!=="HTML"||!!elem.ownerDocument&&elem.ownerDocument.documentElement.nodeName!=="HTML";};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"");}
selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i<l;i++){Sizzle(selector,root[i],tmpSet);}
return Sizzle.filter(later,tmpSet);};window.Sizzle=Sizzle;})();Jelo.Dom=function(){return{fromString:function(str){var frag=document.createDocumentFragment();if(typeof str!='string'){return frag;}
var div=document.createElement('div');div.innerHTML=str;while(div.firstChild){frag.appendChild(div.firstChild);}
return frag;},filter:function(selector,set){return Sizzle.matches(selector,set);},select:function(selector,context,results){return(selector&&selector.isArray)?selector:Sizzle(selector,context,results);},selectNode:function(selector,context,results){return(selector&&selector.nodeType)?selector:Sizzle(selector,context,results)[0];},findPosition:function(el){var l=0;var t=0;if(el.offsetParent){do{l+=el.offsetLeft;t+=el.offsetTop;}while(el=el.offsetParent);}
return[l,t];}};}();$=window['$']||Jelo.Dom.selectNode;$$=window['$$']||Jelo.Dom.select;
Jelo.Event=function(){var D=document;var isDomReady=false;var domFunctions=[];var handlers=[];var fireDomReady=function(){isDomReady=true;for(var i=0;i<domFunctions.length;i++){var fn=domFunctions[i];try{fn();}catch(e){}}
domFunctions=[];};var init=function(){if(D.addEventListener){D.addEventListener("DOMContentLoaded",fireDomReady,false);}else if(Jelo.Env.isIE){D.write("<script id='ieDomReady' defer "+"src=//:><\/script>");var ieReady=D.getElementById("ieDomReady");ieReady.onreadystatechange=function(){if(ieReady.readyState==="complete"){fireDomReady();}};}else{var oldOnload=(typeof window.onload=="function")?window.onload:function(){};window.onload=function(){oldOnload();fireDomReady();};}
if(Jelo.Env.isWebkit){var timerDomReady=setInterval(function(){if(/loaded|complete/i.test(D.readyState)){fireDomReady.call(this);clearInterval(timerDomReady);}},10);}}();function find(el,ev,fn){var handlers=el._handlers;if(!handlers){return-1;}
var d=el.document||el;var w=d.parentWindow;for(var i=handlers.length-1;i>=0;i--){var a=w._allHandlers[handlers[i]];if(a.eventType==ev&&a.handler==fn){return i;}}
return-1;}
function removeAllHandlers(){var w=this;var wa=w._allHandlers;for(var id in wa){if(wa.hasOwnProperty(id)){var h=wa[id];h.element.detachEvent('on'+h.eventType,h.wrappedHandler);delete wa[id];}}}
return{onReady:function(fn){if(typeof fn==="function"){if(isDomReady){fn();}else{domFunctions.push(fn);}}},add:function(el,ev,fn){if(!el||!ev||!fn){return;}
if(Jelo.Valid.isArray(el)){Jelo.each(el,function(){Jelo.Event.add(this,ev,fn);});return;}
var handler=function(e){e=e||window.event;var event={};var properties=['type','shiftKey','ctrlKey','altKey','keyCode','charCode','button','which','clientX','clientY','mouseX','mouseY','metaKey','pageX','pageY','screenX','screenY','relatedTarget'];var len=properties.length;for(var i=0;i<len;i++){event[properties[i]]=e[properties[i]];}
target=e.target?e.target:e.srcElement;if(target.nodeType===3){target=target.parentNode;}
event.preventDefault=function(){if(e.preventDefault){e.preventDefault();}else{e.returnValue=false;}};event.stopPropagation=function(){if(e.stopPropagation){e.stopPropagation();}else{e.cancelBubble=true;}};fn.call(target,target,event);};if(el.addEventListener){el.addEventListener(ev,handler,false);}else if(el.attachEvent){el.attachEvent("on"+ev,handler);}else{throw("Jelo.Event.add: Could not observe "+ev+" on "+el);}
var newEvent={target:el,event:ev,handler:handler,fn:fn};handlers.push(newEvent);},remove:function(el,ev,fn){if(Jelo.Valid.isArray(el)){Jelo.each(el,function(){Jelo.Event.remove(this,ev,fn);});return;}
if(!!el&&(typeof ev=='string')&&(typeof fn=='function')){for(var i=0;i<handlers.length;i++){var jeh=handlers[i];var ml=el===jeh.target;var mv=ev===jeh.event;var mf=fn===jeh.fn;if(ml&&mv&&mf){if(el.removeEventListener){el.removeEventListener(ev,jeh.handler,false);}else if(el.detachEvent){el.detachEvent("on"+ev,jeh.handler);}else{throw("Jelo.Event.remove: Could not remove "+ev+" from "+el);}
handlers.splice(i,1);break;}}}else{throw("Syntax Error. Jelo.Event.remove(DOMElement, Event:String, Function");}},normalize:function(){Jelo.Event.add=(D.addEventListener)?function(el,ev,fn){if(Jelo.Valid.isArray(el)){Jelo.each(el,function(){Jelo.Event.add(this,ev,fn);});return;}
el.addEventListener(ev,fn,false);}:function(el,ev,fn){if(Jelo.Valid.isArray(el)){Jelo.each(el,function(){Jelo.Event.add(this,ev,fn);});return;}
if(find(el,ev,fn)!=-1){return;}
var wh=function(e){e=e||window.event;var event={_event:e,type:e.type,target:e.srcElement,currentTarget:el,relatedTarget:e.fromElement?e.fromElement:e.toElement,eventPhase:(e.srcElement==el)?2:3,clientX:e.clientX,clientY:e.clientY,screenX:e.screenX,screenY:e.screenY,altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,charCode:e.charCode||e.keyCode,keyCode:e.keyCode||e.charCode,button:e.button?{1:0,4:1,2:2}[e.button]:(e.which?e.which-1:-1),which:e.which||e.button,stopPropagation:function(){this._event.cancelBubble=true;},preventDefault:function(){this._event.returnValue=false;}};fn.call(el,event);};el.attachEvent('on'+ev,wh);var h={element:el,eventType:ev,handler:fn,wrappedHandler:wh};var d=el.document||el;var w=d.parentWindow;var id='h'+Jelo.uID();if(!w._allHandlers){w._allHandlers={};}
w._allHandlers[id]=h;if(!el._handlers){el._handlers=[];}
el._handlers.push(id);if(!w._onunloadRegistered){w.attachEvent('onunload',removeAllHandlers);w._onunloadRegistered=true;}};Jelo.Event.remove=(D.removeEventListener)?function(el,ev,fn){if(Jelo.Valid.isArray(el)){Jelo.each(el,function(){Jelo.Event.remove(this,ev,fn);});return;}
el.removeEventListener(ev,fn,false);}:function(el,ev,fn){if(Jelo.Valid.isArray(el)){Jelo.each(el,function(){Jelo.Event.remove(this,ev,fn);});return;}
var i=find(el,ev,fn);if(i==-1){return;}
var d=el.document||el;var w=d.parentWindow;var hid=el._handlers[i];var h=w._allHandlers[hid];el.detachEvent('on'+ev,h.wrappedHandler);el._handlers.splice(i,1);delete w._allHandlers[hid];};Jelo.on=Jelo.Event.add;Jelo.un=Jelo.Event.remove;Jelo.Event.isFixed=function(){return true;}},isFixed:function(){return false;}};}();Jelo.Event.fix=Jelo.Event.normalize;Jelo.on=Jelo.Event.add;Jelo.un=Jelo.Event.remove;Jelo.Event.rem=Jelo.Event.remove;Jelo.onReady=Jelo.Event.onReady;
Jelo.Ajax=function(){var d=window.document;var Status={OK:200,Created:201,Accepted:202,NoContent:204,BadRequest:400,Forbidden:403,NotFound:404,Gone:410,ServerError:500};var cache={};var getFromCache=function(u,s,f,fn,c){var r=cache[u]||false,h;if(r){h={status:Status.OK,readyState:4,responseText:r};if(s.isFunction){s.apply(h,[h,c]);}
if(fn.isFunction){fn.apply(h,[h,c]);}
return true;}
if(f.isFunction){f.apply(h,[h,c]);}
return false;};var xhr=function(){try{return new XMLHttpRequest();}catch(e){}
try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(f){}
try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(g){}
throw new Error("Jelo.Ajax.request: XMLHttpRequest not supported.");}();function loadScript(u,fn){var s=d.createElement("script"),e=d.documentElement;s.type="text/javascript";if(s.readyState){s.onreadystatechange=function(){if(s.readyState=="loaded"||s.readyState=="complete"){s.onreadystatechange=null;if(fn.isFunction){fn();}}};}else{s.onload=function(){if(fn.isFunction){fn();}};}
s.src=u;e.insertBefore(s,e.firstChild);}
return{isBusy:function(){return((xhr.readyState!==0)&&(xhr.readyState!==4));},jdomp:function(){var config=arguments[0]||false;if(!config||!config.url){return;}
var cache=config.cache||false;var now=new Date().getTime();var params=config.params||null;var url=config.url;url+=(cache)?"?jdompCache=true":"?jdompCache="+now;for(var p in params){if(params.hasOwnProperty(p)){url+="&"+escape(p)+"="+escape(params[p]);}}
var h=d.getElementsByTagName("head")[0]||false;var e=d.getElementById("script-jdomp")||false;if(e){h.removeChild(e);}
var s=d.createElement("script");s.id="script-jdomp";s.type="text/javascript";s.src=url;var alreadyExists=false;if(cache){s.id+="-"+config.url.replace(/[^a-z]/gi,"");alreadyExists=d.getElementById(s.id)||false;if(alreadyExists){h.removeChild(alreadyExists);}}
h.appendChild(s);if(typeof config.callback==="function"){var c=d.createElement("script");c.type="text/javascript";c.id=s.id+"-callback";c.text="new "+config.callback;alreadyExists=d.getElementById(c.id)||false;if(alreadyExists){h.removeChild(alreadyExists);}
h.appendChild(c);}},request:function(){var config=arguments[0]||{};if(!config||!config.url){throw new Error("Jelo.Ajax.request: Required configuration option missing: url");}
var x=config.abortable?xhr:function(){try{return new XMLHttpRequest();}catch(e){}
try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(f){}
try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(g){}
throw new Error("Jelo.Ajax.request: XMLHttpRequest not supported.");}();if((x.readyState!==0)&&(x.readyState!==4)){x.abort();}
var u=config.url;var p=config.params||config.data||{};var q='';var m=(config.method||"GET").toUpperCase();var c=config.cache||false;var cs=config.success||false;var cf=config.failure||false;var cc=config.callback||false;var a=(config.args&&config.args.isArray)?config.args:[];var e=(/\?/).test(u);var px=config.proxy;if(px){u=px+"?url="+u;}
if((m!=="GET")&&(m!=="POST")&&(m!=="PUT")&&(m!=="DELETE")){throw new Error("Jelo.Ajax.request: Method must be one of GET, POST, PUT, DELETE");}
if(typeof p=="object"){for(var param in p){if(p.hasOwnProperty(param)){q+=(q.indexOf('?')!==-1?'&':'?')+Jelo.Format.urlencode(param)+"="+
Jelo.Format.urlencode(p[param]);}}}else
if(typeof p=="string"){q+=p;}
var uCache=u+q;if(c){var inCache=getFromCache(uCache,cs,cf,cc,config);if(!!inCache){return;}}
var orsc=function(){if(x.readyState==4){if((/^(0|2)/).test(x.status)){if(c){cache[uCache]=x.responseText;}
if(cs.isFunction){cs.apply(x,[x,config]);}}else{if(cf.isFunction){cf.apply(x,[x,config]);}}
if(cc.isFunction){cc.apply(x,[x,config]);}}};switch(m){case"GET":u+=q;u+=(u.indexOf('?')!==-1?'&':'?')+'_nocache='+new Date().getTime();x.open(m,u,true);x.onreadystatechange=orsc;x.setRequestHeader("X-Requested-With",'XMLHttpRequest');x.send(null);break;case"POST":q=q.split("?",2)[1];x.open(m,u,true);x.onreadystatechange=orsc;x.setRequestHeader("X-Requested-With",'XMLHttpRequest');x.setRequestHeader("Content-type","application/x-www-form-urlencoded");x.setRequestHeader("Content-length",q.length);x.setRequestHeader("Connection","close");x.send(q);break;default:throw new Error("Jelo.Ajax.request: Method "+m+" not yet implemented.");}},loadScript:loadScript};}();
Jelo.Anim=function(){var JF=Jelo.Format,jcg=Jelo.CSS.getStyle,jcs=Jelo.CSS.setStyle,pi=function(n){return parseInt(n,10);};var _={d:0.5,a:[],r:[],t:null,f:60,now:function(){return new Date().getTime();}};_.i=Math.round(1000/_.f);var S=function(){var pc=function(){var d=this.endTime-this.startTime;var r=1-((this.endTime-_.now())/d);var p=this.easing(r);return Math.round(p*1000)/1000;};return{Border:function(){},Color:function(){var p=pc.call(this);var f=this.startVal;var t=this.endVal;f=(f.substring(0,3)==="rgb")?JF.rgbStringToArray(f):JF.hexToRGB(f);t=(t.substring(0,3)==="rgb")?JF.rgbStringToArray(t):JF.hexToRGB(t);var v=[];for(var i=0;i<3;i++){var delta=Math.floor(t[i]-f[i]);var current=Math.floor(p*delta);v[i]=current+f[i];}
v="rgb("+v[0]+","+v[1]+","+v[2]+")";jcs(this.element,this.property,v);},ComboPx:function(){var rx,getVal,x,y,v,x0,y0,p,deltaValue,currDelta,top,right,bottom,left,i;switch(this.property){case"backgroundPositionX":rx=/\-?[0-9]+px/;if(rx.test(this.startVal)&&rx.test(this.endVal)){getVal=function(val){return val.replace(/[^0-9\-]/g,"");};p=pc.call(this);y0=Jelo.css(this.element,"background-position-y");x=[getVal(this.startVal),getVal(this.endVal)];y=[getVal(y0),getVal(y0)];deltaValue=[pi(x[1])-pi(x[0]),pi(y[1])-pi(y[0])];currDelta=[Math.floor(p*deltaValue[0]),Math.floor(p*deltaValue[1])];v=[currDelta[0]+pi(x[0]),currDelta[1]+pi(y[0])];jcs(this.element,"background-position",v[0]+"px "+v[1]+"px");}
break;case"backgroundPositionY":rx=/\-?[0-9]+px/;if(rx.test(this.startVal)&&rx.test(this.endVal)){getVal=function(val){return val.replace(/[^0-9\-]/g,"");};p=pc.call(this);x0=Jelo.css(this.element,"background-position-x");x=[getVal(x0),getVal(x0)];y=[getVal(this.startVal),getVal(this.endVal)];deltaValue=[pi(x[1])-pi(x[0]),pi(y[1])-pi(y[0])];currDelta=[Math.floor(p*deltaValue[0]),Math.floor(p*deltaValue[1])];v=[currDelta[0]+pi(x[0]),currDelta[1]+pi(y[0])];jcs(this.element,"background-position",v[0]+"px "+v[1]+"px");}
break;case"backgroundPosition":rx=/\-?[0-9]+px \-?[0-9]+px/;if(rx.test(this.startVal)&&rx.test(this.endVal)){getVal=function(val,index){return val.split(" ")[index].replace(/[^0-9\-]/g,"");};p=pc.call(this);x=[getVal(this.startVal,0),getVal(this.endVal,0)];y=[getVal(this.startVal,1),getVal(this.endVal,1)];deltaValue=[pi(x[1])-pi(x[0]),pi(y[1])-pi(y[0])];currDelta=[Math.floor(p*deltaValue[0]),Math.floor(p*deltaValue[1])];v=[currDelta[0]+pi(x[0]),currDelta[1]+pi(y[0])];jcs(this.element,this.property,v[0]+"px "+v[1]+"px");}
break;default:rx=/\-?[0-9]+px \-?[0-9]+px \-?[0-9]+px \-?[0-9]+px/;if(rx.test(this.startVal)&&rx.test(this.endVal)){getVal=function(val,index){return val.split(" ")[index].replace(/[^0-9\-]/g,"");};p=pc.call(this);top=[getVal(this.startVal,0),getVal(this.endVal,0)];right=[getVal(this.startVal,1),getVal(this.endVal,1)];bottom=[getVal(this.startVal,2),getVal(this.endVal,2)];left=[getVal(this.startVal,3),getVal(this.endVal,3)];deltaValue=[pi(top[1])-pi(top[0]),pi(right[1])-pi(right[0]),pi(bottom[1])-pi(bottom[0]),pi(left[1])-pi(left[0])];currDelta=[];for(i=0;i<4;i++){currDelta[i]=Math.floor(p*deltaValue[i]);}
v=[currDelta[0]+pi(top[0]),currDelta[1]+pi(right[0]),currDelta[2]+pi(bottom[0]),currDelta[3]+pi(left[0])];jcs(this.element,this.property,v[0]+"px "+v[1]+"px "+v[2]+"px "+v[3]+"px");}}},Numerical:function(){var p=pc.call(this);var deltaValue=parseFloat(this.endVal,10)-parseFloat(this.startVal,10);var currDelta=p*deltaValue;var v=currDelta+parseFloat(this.startVal,10);switch(this.property){case"opacity":v=parseFloat(v);if(v<0){v=0;}
if(v>1){v=1;}
break;case"zIndex":v=pi(v);break;}
jcs(this.element,this.property,v);},NumericalPx:function(){var p=pc.call(this);var deltaValue=pi(this.endVal)-pi(this.startVal);var currDelta=Math.floor(p*deltaValue);var v=currDelta+pi(this.startVal);jcs(this.element,this.property,v+this.unit);}};}();var Easing={LINEAR:function(x){return x;},IN:function(x){return Math.pow(x,3);},OUT:function(x){return 1-Math.pow(1-x,3);},SMOOTH:function(x){return x<0.5?2*x*x:-2*Math.pow(x-1,2)+1;},OVERSHOOT:function(x){var s=1.70158;return(x-=1)*x*((s+1)*x+s)+1;},SPRING:function(x){return 1-(Math.cos(x*4.5*Math.PI)*Math.exp(-x*6));},WOBBLE:function(x){return(-Math.cos(3*x*Math.PI)/2)+0.5;}};var animate=function(config){if(!config){return;}
if(Jelo.Valid.isArray(config.me)){var cfg=config;Jelo.each(config.me,function(){cfg.me=this;animate(cfg);});return;}
var m=config.me||false;if(!m){throw new Error('Jelo.Anim.ate: Missing required configuration option me:HTMLElement|String');}else if(m.isArray){m=m[0];}else if(typeof m==="string"){m=Jelo.Dom.selectNode(m);}
if(!m){throw new Error('Jelo.Anim.ate: Missing required configuration option me:HTMLElement|String');}
var css=config.css||false;if(!css||(typeof css!=="string")){throw new Error('Jelo.Anim.ate: Missing required configuration option css:String');}
var c=JF.hyphenatedToCamelCase(css);var f=config.from;if(!f&&typeof f!=="number"){f=jcg(m,c);if(!f&&typeof f!=="number"){f=jcg(m,css);}
if(!f&&typeof f!=="number"){f=0;}}
if(f==="auto"){f=0;}
var t=''+config.to;if(!t&&typeof t!=="number"){throw new Error('Jelo.Anim.ate() Missing required configuration option to:String|Number');}
var b=(typeof config.before==="function")?config.before:Jelo.emptyFn;var a=(typeof config.after==="function")?config.after:Jelo.emptyFn;var d=parseFloat(config.duration);if(isNaN(d)){d=_.d;}
d=Math.floor(Math.abs(d*1000));var e=config.easing||Jelo.Anim.Easing.LINEAR;if((typeof e==="string")&&e.length){e=Jelo.Anim.Easing[e.toUpperCase()]||Jelo.Anim.Easing.LINEAR;}else if(typeof e!="function"){throw new Error("Jelo.Anim.ate: Easing must be a string such as 'linear', 'out', etc. or a function.");}
var temp=[];for(var i=0;i<_.a.length;i++){var ti=_.a[i];if((ti.element!=m)||(JF.hyphenatedToCamelCase(ti.property)!=c)){temp.push(ti);}}
_.a=temp;var animFn=function(c){switch(c){case"border":case"borderBottom":case"borderLeft":case"borderRight":case"borderTop":return S.Border;case"backgroundColor":case"color":return S.Color;case"backgroundPositionX":case"backgroundPositionY":case"backgroundPosition":case"margin":case"padding":return S.ComboPx;case"lineHeight":case"opacity":case"zIndex":return S.Numerical;case"bottom":case"height":case"left":case"marginBottom":case"marginLeft":case"marginRight":case"marginTop":case"paddingBottom":case"paddingLeft":case"paddingRight":case"paddingTop":case"right":case"top":case"width":return S.NumericalPx;default:return Jelo.emptyFn;}}(c);var animObj={me:config.me,css:config.css,duration:config.duration,before:config.before,after:config.after,from:config.from,to:config.to,element:m,property:c,startVal:f,endVal:t,callback:a,startTime:_.now(),endTime:_.now()+d,fn:animFn,easing:e,unit:function(){var unit=t.replace(/(\-?[0-9]+)(.*)?/,'$2');return unit.length?unit:'px';}()};_.a.push(animObj);b.call(animObj);run();};var run=function(){var i,c,ri,ti,v,t;if(!_.t){_.t=setInterval(function(){if(_.r.length){c=[];for(i=_.r.length-1;i>=0;i--){ri=_.r[i];ti=_.a[ri];v=null;switch(ti.fn){case S.Border:v=ti.endVal;break;case S.ComboPx:v=ti.endVal;break;case S.Color:v="#"+ti.endVal.replace(/#/,"");break;case S.NumericalPx:v=pi(ti.endVal)+ti.unit;break;case S.Numerical:v=parseFloat(ti.endVal);break;default:v=ti.endVal;}
jcs(ti.element,ti.property,v);c.push(ti);_.a.splice(ri,1);}
_.r=[];for(i=0;i<c.length;i++){ti=c[i];ti.callback.call(ti);}}
if(_.a.length){for(i=0;i<_.a.length;i++){t=_.a[i];if(_.now()<t.endTime){t.fn.call(t);}else{_.r.push(i);}}}},_.i);}};return{Easing:Easing,ate:animate,ating:function(){return!!_.a.length;},stopAll:function(){_.r=[];_.a=[];if(_.t){clearTimeout(_.t);_.t=null;}},setDefaultDuration:function(d){if(Jelo.Valid.isNumber(d)){_.d=d;}}};}();
Jelo.DD=function(){function pi(n){return parseInt(n,10);}
var _={minOffset:5,zHigh:20000,zHigher:20001,isDragging:false,item:null,mouseX:null,mouseY:null,lastDragged:null,dropTargets:[]};var active=false;var zeroNaN=function(n){return isNaN(n)?0:n;};var mouseDown=function(t,e){if(!active){return true;}
if(Jelo.Event.isFixed()){e=t;}
t=this;while(!t.jeloDragTarget&&t!==null){t=t.parentNode||t.parentElement;}
if(t===null){return false;}
var d=t.jeloDragTarget;var iPos=findPosition(d);console.log(iPos);d.jeloDragT=Jelo.css(d,"top");d.jeloDragL=Jelo.css(d,"left");d.jeloDragP=Jelo.css(d,"position");d.jeloDragO=Jelo.css(d,"opacity");d.jeloDragZ=Jelo.css(d,"z-index");Jelo.css(d,"position","absolute");Jelo.css(d,"top",iPos.y+"px");Jelo.css(d,"left",iPos.x+"px");d.jeloDragTop=pi(Jelo.css(d,"top"));d.jeloDragLeft=pi(Jelo.css(d,"left"));Jelo.css(d,"position",d.jeloDragP);Jelo.css(d,"left",d.jeloDragL);Jelo.css(d,"top",d.jeloDragT);Jelo.on(document,"mousemove",mouseMove);Jelo.on(document,"mouseup",mouseUp);_.item=d;_.isDragging=true;_.mouseX=e.clientX;_.mouseY=e.clientY;return false;};var mouseMove=function(t,e){if(!active||!_.isDragging||!_.item){return true;}
if(Jelo.Event.isFixed()){e=t;}
var x=e.clientX-_.mouseX;var y=e.clientY-_.mouseY;var ax=Math.abs(e.clientX-_.mouseX);var ay=Math.abs(e.clientY-_.mouseY);if(Math.round((ax+ay)/2)>_.minOffset){var d=_.item;Jelo.css(d,"position","absolute");Jelo.css(d,"opacity",0.7);Jelo.css(d,"z-index",_.zHigher);Jelo.css(d,"top",pi(d.jeloDragTop+y)+"px");Jelo.css(d,"left",pi(d.jeloDragLeft+x)+"px");document.body.appendChild(d);}
return false;};var mouseUp=function(t,e){if(!active){return true;}
if(Jelo.Event.isFixed()){e=t;}
if(_.item){if(_.lastDragged!=_.item){_.zHigh++;_.zHigher++;}
_.lastDragged=_.item;Jelo.css(_.item,"opacity",_.item.jeloDragO);Jelo.css(_.item,"z-index",_.zHigh);if(typeof _.item.jeloDragOnMouseUp=="function"){_.item.jeloDragOnMouseUp.call(_.item,_.item.jeloDragHandle);}
Jelo.each(_.dropTargets,function(){if(typeof this.jeloOnDrop=="function"){var t=findPosition(_.item);var p=findPosition(this);var r=p.x+zeroNaN(pi(Jelo.css(this,"width")));var b=p.y+zeroNaN(pi(Jelo.css(this,"height")));var mx=e.clientX;var my=e.clientY;if(mx>p.x&&mx<r&&my>p.y&&my<b){var d=_.item;Jelo.css(d,"position","static");Jelo.css(d,"left","auto");Jelo.css(d,"top","auto");this.appendChild(_.item);this.jeloOnDrop.call(this,_.item,_.item.jeloDragHandle);}}});}
Jelo.un(document,"mousemove",mouseMove);Jelo.un(document,"mouseup",mouseUp);_.mouseX=null;_.mouseY=null;_.item=null;_.isDragging=false;};var detectDrop=function(t,e){if(Jelo.Event.isFixed()){e=t;}
console.log('test');};var findPosition=function(o){var offsetX=zeroNaN(pi(Jelo.css(o,"margin-left")));var offsetY=zeroNaN(pi(Jelo.css(o,"margin-top")));var curleft=0,curtop=0;if(o.offsetParent){curleft=o.offsetLeft;curtop=o.offsetTop;while((o=o.offsetParent)){curleft+=o.offsetLeft;curtop+=o.offsetTop;}}
return{"x":curleft-offsetX,"y":curtop-offsetY};};return{isDraggy:function(el){return(el&&!!el.jeloDraggy);},isDroppy:function(el){return(el&&!!el.jeloDroppy);},setDraggy:function(el,bool,handle,fn){bool=(typeof bool=="boolean")?bool:true;handle=handle||el;if(Jelo.Valid.isElement(el)&&Jelo.Valid.isElement(handle)){handle.jeloDragTarget=el;Jelo.on(handle,"mousedown",mouseDown);Jelo.css(handle,"cursor","move");el.jeloDraggy=bool;el.jeloDragHandle=handle;if(typeof fn=="function"){el.jeloDragOnMouseUp=fn;}}},setDroppy:function(el,bool,handle,fn){bool=(typeof bool=="boolean")?bool:true;handle=handle||el;if(Jelo.Valid.isElement(el)&&Jelo.Valid.isElement(handle)){handle.jeloDropTarget=el;el.jeloDroppy=bool;el.jeloDropHandle=handle;if(typeof fn=="function"){el.jeloOnDrop=fn;}
_.dropTargets.push(el);}},on:function(){active=true;},off:function(){active=false;},setMinimumDrag:function(n){n=pi(n);if(!isNaN(n)){_.minOffset=n;}}};}();Jelo.onReady(function() {

    // social counts
    (function () {
        var links = $$('a[href$=disqus_thread]');
        if ((/chrome/i).test(window.navigator.userAgent)) {
            links.length = 63; // Chrome crashes when this is 64+
        }
        var query = '?';
        Jelo.each(links, function(link, index) {
            query += 'url' + index + '=' + encodeURIComponent(link.href) + '&';
        });
        var s = document.createElement('script');
        s.charset = 'utf-8';
        s.type = 'text/javascript';
        s.src = 'http://disqus.com/forums/argumentscallee/get_num_replies.js' + query;
        $('body').appendChild(s);
    }());
    
    // remove nofollow on disqus links
    (function disqus(links) {
        if (links.length) {
            Jelo.each(links, function() {
               if (this.rel && this.rel.replace) {
                   this.rel = this.rel.replace(/nofollow/, '');
               } 
            });
            disqus = Jelo.emptyFn;
        } else {
            setTimeout(disqus, 100, $$('#dsq-content a'));
        }
    }($$('#dsq-content a')));
    
    // add text before topsy button
    (function topsy(button) {
        if (button) {
            if (!$('.topsy-sm-total')) {
                button.insertBefore(Jelo.Dom.fromString('<a classname="topsy-sm-total snap_noshots" class="topsy-sm-total snap_noshots" href="' + window.location.href + '?utm_source=button">0</a>'), button.childNodes[0]);
            }
            button.parentNode.insertBefore(document.createTextNode('share:'), button);
            topsy = Jelo.emptyFn;
        } else {
            setTimeout(topsy, 100, $('.topsy-sm'));
        }
    }($('.topsy-sm')));
    
    // format pre tags
    window.prettyPrint();
    
});
function browserdetect(){var A=navigator.userAgent.toLowerCase();this.isIE=A.indexOf("msie")>-1;this.ieVer=this.isIE?/msie\s(\d\.\d)/.exec(A)[1]:0;this.isMoz=A.indexOf("firefox")!=-1;this.isSafari=A.indexOf("safari")!=-1;this.quirksMode=this.isIE&&(!document.compatMode||document.compatMode.indexOf("BackCompat")>-1);this.isOp="opera" in window;this.isWebKit=A.indexOf("webkit")!=-1;if(this.isIE){this.get_style=function(D,F){if(!(F in D.currentStyle)){return""}var C=/^([\d.]+)(\w*)/.exec(D.currentStyle[F]);if(!C){return D.currentStyle[F]}if(C[1]==0){return"0"}if(C[2]&&C[2]!=="px"){var B=D.style.left;var E=D.runtimeStyle.left;D.runtimeStyle.left=D.currentStyle.left;D.style.left=C[1]+C[2];C[0]=D.style.pixelLeft;D.style.left=B;D.runtimeStyle.left=E}return C[0]}}else{this.get_style=function(B,C){C=C.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return document.defaultView.getComputedStyle(B,"").getPropertyValue(C)}}}var curvyBrowser=new browserdetect;if(curvyBrowser.isIE){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}}function curvyCnrSpec(A){this.selectorText=A;this.tlR=this.trR=this.blR=this.brR=0;this.tlu=this.tru=this.blu=this.bru="";this.antiAlias=true}curvyCnrSpec.prototype.setcorner=function(B,C,A,D){if(!B){this.tlR=this.trR=this.blR=this.brR=parseInt(A);this.tlu=this.tru=this.blu=this.bru=D}else{propname=B.charAt(0)+C.charAt(0);this[propname+"R"]=parseInt(A);this[propname+"u"]=D}};curvyCnrSpec.prototype.get=function(D){if(/^(t|b)(l|r)(R|u)$/.test(D)){return this[D]}if(/^(t|b)(l|r)Ru$/.test(D)){var C=D.charAt(0)+D.charAt(1);return this[C+"R"]+this[C+"u"]}if(/^(t|b)Ru?$/.test(D)){var B=D.charAt(0);B+=this[B+"lR"]>this[B+"rR"]?"l":"r";var A=this[B+"R"];if(D.length===3&&D.charAt(2)==="u"){A+=this[B="u"]}return A}throw new Error("Don't recognize property "+D)};curvyCnrSpec.prototype.radiusdiff=function(A){if(A!=="t"&&A!=="b"){throw new Error("Param must be 't' or 'b'")}return Math.abs(this[A+"lR"]-this[A+"rR"])};curvyCnrSpec.prototype.setfrom=function(A){this.tlu=this.tru=this.blu=this.bru="px";if("tl" in A){this.tlR=A.tl.radius}if("tr" in A){this.trR=A.tr.radius}if("bl" in A){this.blR=A.bl.radius}if("br" in A){this.brR=A.br.radius}if("antiAlias" in A){this.antiAlias=A.antiAlias}};curvyCnrSpec.prototype.cloneOn=function(G){var E=["tl","tr","bl","br"];var H=0;var C,A;for(C in E){if(!isNaN(C)){A=this[E[C]+"u"];if(A!==""&&A!=="px"){H=new curvyCnrSpec;break}}}if(!H){H=this}else{var B,D,F=curvyBrowser.get_style(G,"left");for(C in E){if(!isNaN(C)){B=E[C];A=this[B+"u"];D=this[B+"R"];if(A!=="px"){var F=G.style.left;G.style.left=D+A;D=G.style.pixelLeft;G.style.left=F}H[B+"R"]=D;H[B+"u"]="px"}}G.style.left=F}return H};curvyCnrSpec.prototype.radiusSum=function(A){if(A!=="t"&&A!=="b"){throw new Error("Param must be 't' or 'b'")}return this[A+"lR"]+this[A+"rR"]};curvyCnrSpec.prototype.radiusCount=function(A){var B=0;if(this[A+"lR"]){++B}if(this[A+"rR"]){++B}return B};curvyCnrSpec.prototype.cornerNames=function(){var A=[];if(this.tlR){A.push("tl")}if(this.trR){A.push("tr")}if(this.blR){A.push("bl")}if(this.brR){A.push("br")}return A};function operasheet(C){var A=document.styleSheets.item(C).ownerNode.text;A=A.replace(/\/\*(\n|\r|.)*?\*\//g,"");var D=new RegExp("^s*([\\w.#][-\\w.#, ]+)[\\n\\s]*\\{([^}]+border-((top|bottom)-(left|right)-)?radius[^}]*)\\}","mg");var G;this.rules=[];while((G=D.exec(A))!==null){var F=new RegExp("(..)border-((top|bottom)-(left|right)-)?radius:\\s*([\\d.]+)(in|em|px|ex|pt)","g");var E,B=new curvyCnrSpec(G[1]);while((E=F.exec(G[2]))!==null){if(E[1]!=="z-"){B.setcorner(E[3],E[4],E[5],E[6])}}this.rules.push(B)}}operasheet.contains_border_radius=function(A){return/border-((top|bottom)-(left|right)-)?radius/.test(document.styleSheets.item(A).ownerNode.text)};function curvyCorners(){var G,D,E,B,J;if(typeof arguments[0]!=="object"){throw curvyCorners.newError("First parameter of curvyCorners() must be an object.")}if(arguments[0] instanceof curvyCnrSpec){B=arguments[0];if(!B.selectorText&&typeof arguments[1]==="string"){B.selectorText=arguments[1]}}else{if(typeof arguments[1]!=="object"&&typeof arguments[1]!=="string"){throw curvyCorners.newError("Second parameter of curvyCorners() must be an object or a class name.")}D=arguments[1];if(typeof D!=="string"){D=""}if(D!==""&&D.charAt(0)!=="."&&"autoPad" in arguments[0]){D="."+D}B=new curvyCnrSpec(D);B.setfrom(arguments[0])}if(B.selectorText){J=0;var I=B.selectorText.replace(/\s+$/,"").split(/,\s*/);E=new Array;function A(M){var L=M.split("#");return(L.length===2?"#":"")+L.pop()}for(G=0;G<I.length;++G){var K=A(I[G]);var H=K.split(" ");switch(K.charAt(0)){case"#":D=H.length===1?K:H[0];D=document.getElementById(D.substr(1));if(D===null){curvyCorners.alert("No object with ID "+K+" exists yet.\nCall curvyCorners(settings, obj) when it is created.")}else{if(H.length===1){E.push(D)}else{E=E.concat(curvyCorners.getElementsByClass(H[1],D))}}break;default:if(H.length===1){E=E.concat(curvyCorners.getElementsByClass(K))}else{var C=curvyCorners.getElementsByClass(H[0]);for(D=0;D<C.length;++D){E=E.concat(curvyCorners.getElementsByClass(H[1],C))}}}}}else{J=1;E=arguments}for(G=J,D=E.length;G<D;++G){if(E[G]&&(!("IEborderRadius" in E[G].style)||E[G].style.IEborderRadius!="set")){if(E[G].className&&E[G].className.indexOf("curvyRedraw")!==-1){if(typeof curvyCorners.redrawList==="undefined"){curvyCorners.redrawList=new Array}curvyCorners.redrawList.push({node:E[G],spec:B,copy:E[G].cloneNode(false)})}E[G].style.IEborderRadius="set";var F=new curvyObject(B,E[G]);F.applyCorners()}}}curvyCorners.prototype.applyCornersToAll=function(){curvyCorners.alert("This function is now redundant. Just call curvyCorners(). See documentation.")};curvyCorners.redraw=function(){if(!curvyBrowser.isOp&&!curvyBrowser.isIE){return}if(!curvyCorners.redrawList){throw curvyCorners.newError("curvyCorners.redraw() has nothing to redraw.")}var E=curvyCorners.bock_redraw;curvyCorners.block_redraw=true;for(var A in curvyCorners.redrawList){if(isNaN(A)){continue}var D=curvyCorners.redrawList[A];if(!D.node.clientWidth){continue}var B=D.copy.cloneNode(false);for(var C=D.node.firstChild;C!=null;C=C.nextSibling){if(C.className==="autoPadDiv"){break}}if(!C){curvyCorners.alert("Couldn't find autoPad DIV");break}D.node.parentNode.replaceChild(B,D.node);while(C.firstChild){B.appendChild(C.removeChild(C.firstChild))}D=new curvyObject(D.spec,D.node=B);D.applyCorners()}curvyCorners.block_redraw=E};curvyCorners.adjust=function(obj,prop,newval){if(curvyBrowser.isOp||curvyBrowser.isIE){if(!curvyCorners.redrawList){throw curvyCorners.newError("curvyCorners.adjust() has nothing to adjust.")}var i,j=curvyCorners.redrawList.length;for(i=0;i<j;++i){if(curvyCorners.redrawList[i].node===obj){break}}if(i===j){throw curvyCorners.newError("Object not redrawable")}obj=curvyCorners.redrawList[i].copy}if(prop.indexOf(".")===-1){obj[prop]=newval}else{eval("obj."+prop+"='"+newval+"'")}};curvyCorners.handleWinResize=function(){if(!curvyCorners.block_redraw){curvyCorners.redraw()}};curvyCorners.setWinResize=function(A){curvyCorners.block_redraw=!A};curvyCorners.newError=function(A){return new Error("curvyCorners Error:\n"+A)};curvyCorners.alert=function(A){if(typeof curvyCornersVerbose==="undefined"||curvyCornersVerbose){alert(A)}};function curvyObject(){var U;this.box=arguments[1];this.settings=arguments[0];this.topContainer=this.bottomContainer=this.shell=U=null;var K=this.box.clientWidth;if(!K&&curvyBrowser.isIE){this.box.style.zoom=1;K=this.box.clientWidth}if(!K){if(!this.box.parentNode){throw this.newError("box has no parent!")}for(U=this.box;;U=U.parentNode){if(!U||U.tagName==="BODY"){this.applyCorners=function(){};curvyCorners.alert(this.errmsg("zero-width box with no accountable parent","warning"));return}if(U.style.display==="none"){break}}U.style.display="block";K=this.box.clientWidth}if(arguments[0] instanceof curvyCnrSpec){this.spec=arguments[0].cloneOn(this.box)}else{this.spec=new curvyCnrSpec("");this.spec.setfrom(this.settings)}var b=curvyBrowser.get_style(this.box,"borderTopWidth");var J=curvyBrowser.get_style(this.box,"borderBottomWidth");var D=curvyBrowser.get_style(this.box,"borderLeftWidth");var B=curvyBrowser.get_style(this.box,"borderRightWidth");var I=curvyBrowser.get_style(this.box,"borderTopColor");var G=curvyBrowser.get_style(this.box,"borderBottomColor");var A=curvyBrowser.get_style(this.box,"borderLeftColor");var E=curvyBrowser.get_style(this.box,"backgroundColor");var C=curvyBrowser.get_style(this.box,"backgroundImage");var Y=curvyBrowser.get_style(this.box,"backgroundRepeat");if(this.box.currentStyle&&this.box.currentStyle.backgroundPositionX){var R=curvyBrowser.get_style(this.box,"backgroundPositionX");var P=curvyBrowser.get_style(this.box,"backgroundPositionY")}else{var R=curvyBrowser.get_style(this.box,"backgroundPosition");R=R.split(" ");var P=R[1];R=R[0]}var O=curvyBrowser.get_style(this.box,"position");var Z=curvyBrowser.get_style(this.box,"paddingTop");var c=curvyBrowser.get_style(this.box,"paddingBottom");var Q=curvyBrowser.get_style(this.box,"paddingLeft");var a=curvyBrowser.get_style(this.box,"paddingRight");var S=curvyBrowser.get_style(this.box,"border");filter=curvyBrowser.ieVer>7?curvyBrowser.get_style(this.box,"filter"):null;var H=this.spec.get("tR");var M=this.spec.get("bR");var W=function(f){if(typeof f==="number"){return f}if(typeof f!=="string"){throw new Error("unexpected styleToNPx type "+typeof f)}var d=/^[-\d.]([a-z]+)$/.exec(f);if(d&&d[1]!="px"){throw new Error("Unexpected unit "+d[1])}if(isNaN(f=parseInt(f))){f=0}return f};var T=function(d){return d<=0?"0":d+"px"};try{this.borderWidth=W(b);this.borderWidthB=W(J);this.borderWidthL=W(D);this.borderWidthR=W(B);this.boxColour=curvyObject.format_colour(E);this.topPadding=W(Z);this.bottomPadding=W(c);this.leftPadding=W(Q);this.rightPadding=W(a);this.boxWidth=K;this.boxHeight=this.box.clientHeight;this.borderColour=curvyObject.format_colour(I);this.borderColourB=curvyObject.format_colour(G);this.borderColourL=curvyObject.format_colour(A);this.borderString=this.borderWidth+"px solid "+this.borderColour;this.borderStringB=this.borderWidthB+"px solid "+this.borderColourB;this.backgroundImage=((C!="none")?C:"");this.backgroundRepeat=Y}catch(X){throw this.newError("getMessage" in X?X.getMessage():X.message)}var F=this.boxHeight;var V=K;if(curvyBrowser.isOp){R=W(R);P=W(P);if(R){var N=V+this.borderWidthL+this.borderWidthR;if(R>N){R=N}R=(N/R*100)+"%"}if(P){var N=F+this.borderWidth+this.borderWidthB;if(P>N){P=N}P=(N/P*100)+"%"}}if(curvyBrowser.quirksMode){}else{this.boxWidth-=this.leftPadding+this.rightPadding;this.boxHeight-=this.topPadding+this.bottomPadding}this.contentContainer=document.createElement("div");if(filter){this.contentContainer.style.filter=filter}while(this.box.firstChild){this.contentContainer.appendChild(this.box.removeChild(this.box.firstChild))}if(O!="absolute"){this.box.style.position="relative"}this.box.style.padding="0";this.box.style.border=this.box.style.backgroundImage="none";this.box.style.backgroundColor="transparent";this.box.style.width=(V+this.borderWidthL+this.borderWidthR)+"px";this.box.style.height=(F+this.borderWidth+this.borderWidthB)+"px";var L=document.createElement("div");L.style.position="absolute";if(filter){L.style.filter=filter}if(curvyBrowser.quirksMode){L.style.width=(V+this.borderWidthL+this.borderWidthR)+"px"}else{L.style.width=V+"px"}L.style.height=T(F+this.borderWidth+this.borderWidthB-H-M);L.style.padding="0";L.style.top=H+"px";L.style.left="0";if(this.borderWidthL){L.style.borderLeft=this.borderWidthL+"px solid "+this.borderColourL}if(this.borderWidth&&!H){L.style.borderTop=this.borderWidth+"px solid "+this.borderColour}if(this.borderWidthR){L.style.borderRight=this.borderWidthR+"px solid "+this.borderColourL}if(this.borderWidthB&&!M){L.style.borderBottom=this.borderWidthB+"px solid "+this.borderColourB}L.style.backgroundColor=E;L.style.backgroundImage=this.backgroundImage;L.style.backgroundRepeat=this.backgroundRepeat;this.shell=this.box.appendChild(L);K=curvyBrowser.get_style(this.shell,"width");if(K===""||K==="auto"||K.indexOf("%")!==-1){throw this.newError("Shell width is "+K)}this.boxWidth=(K!=""&&K!="auto"&&K.indexOf("%")==-1)?parseInt(K):this.shell.clientWidth;this.applyCorners=function(){if(this.backgroundObject){var w=function(AO,i,t){if(AO===0){return 0}var k;if(AO==="right"||AO==="bottom"){return t-i}if(AO==="center"){return(t-i)/2}if(AO.indexOf("%")>0){return(t-i)*100/parseInt(AO)}return W(AO)};this.backgroundPosX=w(R,this.backgroundObject.width,V);this.backgroundPosY=w(P,this.backgroundObject.height,F)}else{if(this.backgroundImage){this.backgroundPosX=W(R);this.backgroundPosY=W(P)}}if(H){v=document.createElement("div");v.style.width=this.boxWidth+"px";v.style.fontSize="1px";v.style.overflow="hidden";v.style.position="absolute";v.style.paddingLeft=this.borderWidth+"px";v.style.paddingRight=this.borderWidth+"px";v.style.height=H+"px";v.style.top=-H+"px";v.style.left=-this.borderWidthL+"px";this.topContainer=this.shell.appendChild(v)}if(M){var v=document.createElement("div");v.style.width=this.boxWidth+"px";v.style.fontSize="1px";v.style.overflow="hidden";v.style.position="absolute";v.style.paddingLeft=this.borderWidthB+"px";v.style.paddingRight=this.borderWidthB+"px";v.style.height=M+"px";v.style.bottom=-M+"px";v.style.left=-this.borderWidthL+"px";this.bottomContainer=this.shell.appendChild(v)}var AG=this.spec.cornerNames();for(var AK in AG){if(!isNaN(AK)){var AC=AG[AK];var AD=this.spec[AC+"R"];var AE,AH,j,AF;if(AC=="tr"||AC=="tl"){AE=this.borderWidth;AH=this.borderColour;AF=this.borderWidth}else{AE=this.borderWidthB;AH=this.borderColourB;AF=this.borderWidthB}j=AD-AF;var u=document.createElement("div");u.style.height=this.spec.get(AC+"Ru");u.style.width=this.spec.get(AC+"Ru");u.style.position="absolute";u.style.fontSize="1px";u.style.overflow="hidden";var r,q,p;var n=filter?parseInt(/alpha\(opacity.(\d+)\)/.exec(filter)[1]):100;for(r=0;r<AD;++r){var m=(r+1>=j)?-1:Math.floor(Math.sqrt(Math.pow(j,2)-Math.pow(r+1,2)))-1;if(j!=AD){var h=(r>=j)?-1:Math.ceil(Math.sqrt(Math.pow(j,2)-Math.pow(r,2)));var f=(r+1>=AD)?-1:Math.floor(Math.sqrt(Math.pow(AD,2)-Math.pow((r+1),2)))-1}var d=(r>=AD)?-1:Math.ceil(Math.sqrt(Math.pow(AD,2)-Math.pow(r,2)));if(m>-1){this.drawPixel(r,0,this.boxColour,n,(m+1),u,true,AD)}if(j!=AD){if(this.spec.antiAlias){for(q=m+1;q<h;++q){if(this.backgroundImage!=""){var g=curvyObject.pixelFraction(r,q,j)*100;this.drawPixel(r,q,AH,n,1,u,g>=30,AD)}else{if(this.boxColour!=="transparent"){var AB=curvyObject.BlendColour(this.boxColour,AH,curvyObject.pixelFraction(r,q,j));this.drawPixel(r,q,AB,n,1,u,false,AD)}else{this.drawPixel(r,q,AH,n>>1,1,u,false,AD)}}}if(f>=h){if(h==-1){h=0}this.drawPixel(r,h,AH,n,(f-h+1),u,false,0)}p=AH;q=f}else{if(f>m){this.drawPixel(r,(m+1),AH,n,(f-m),u,false,0)}}}else{p=this.boxColour;q=m}if(this.spec.antiAlias){while(++q<d){this.drawPixel(r,q,p,(curvyObject.pixelFraction(r,q,AD)*n),1,u,AF<=0,AD)}}}for(var y=0,AJ=u.childNodes.length;y<AJ;++y){var s=u.childNodes[y];var AI=parseInt(s.style.top);var AM=parseInt(s.style.left);var AN=parseInt(s.style.height);if(AC=="tl"||AC=="bl"){s.style.left=(AD-AM-1)+"px"}if(AC=="tr"||AC=="tl"){s.style.top=(AD-AN-AI)+"px"}s.style.backgroundRepeat=this.backgroundRepeat;if(this.backgroundImage){switch(AC){case"tr":s.style.backgroundPosition=(this.backgroundPosX-this.borderWidthL+AD-V-AM)+"px "+(this.backgroundPosY+AN+AI+this.borderWidth-AD)+"px";break;case"tl":s.style.backgroundPosition=(this.backgroundPosX-AD+AM+this.borderWidthL)+"px "+(this.backgroundPosY-AD+AN+AI+this.borderWidth)+"px";break;case"bl":s.style.backgroundPosition=(this.backgroundPosX-AD+AM+1+this.borderWidthL)+"px "+(this.backgroundPosY-F-this.borderWidth+(curvyBrowser.quirksMode?AI:-AI)+AD)+"px";break;case"br":if(curvyBrowser.quirksMode){s.style.backgroundPosition=(this.backgroundPosX+this.borderWidthL-V+AD-AM)+"px "+(this.backgroundPosY-F-this.borderWidth+AI+AD)+"px"}else{s.style.backgroundPosition=(this.backgroundPosX-this.borderWidthL-V+AD-AM)+"px "+(this.backgroundPosY-F-this.borderWidth+AD-AI)+"px"}}}}switch(AC){case"tl":u.style.top=u.style.left="0";this.topContainer.appendChild(u);break;case"tr":u.style.top=u.style.right="0";this.topContainer.appendChild(u);break;case"bl":u.style.bottom=u.style.left="0";this.bottomContainer.appendChild(u);break;case"br":u.style.bottom=u.style.right="0";this.bottomContainer.appendChild(u)}}}var x={t:this.spec.radiusdiff("t"),b:this.spec.radiusdiff("b")};for(z in x){if(typeof z==="function"){continue}if(!this.spec.get(z+"R")){continue}if(x[z]){if(this.backgroundImage&&this.spec.radiusSum(z)!==x[z]){curvyCorners.alert(this.errmsg("Not supported: unequal non-zero top/bottom radii with background image"))}var AL=(this.spec[z+"lR"]<this.spec[z+"rR"])?z+"l":z+"r";var l=document.createElement("div");l.style.height=x[z]+"px";l.style.width=this.spec.get(AL+"Ru");l.style.position="absolute";l.style.fontSize="1px";l.style.overflow="hidden";l.style.backgroundColor=this.boxColour;switch(AL){case"tl":l.style.bottom=l.style.left="0";l.style.borderLeft=this.borderString;this.topContainer.appendChild(l);break;case"tr":l.style.bottom=l.style.right="0";l.style.borderRight=this.borderString;this.topContainer.appendChild(l);break;case"bl":l.style.top=l.style.left="0";l.style.borderLeft=this.borderStringB;this.bottomContainer.appendChild(l);break;case"br":l.style.top=l.style.right="0";l.style.borderRight=this.borderStringB;this.bottomContainer.appendChild(l)}}var o=document.createElement("div");if(filter){o.style.filter=filter}o.style.position="relative";o.style.fontSize="1px";o.style.overflow="hidden";o.style.width=this.fillerWidth(z);o.style.backgroundColor=this.boxColour;o.style.backgroundImage=this.backgroundImage;o.style.backgroundRepeat=this.backgroundRepeat;switch(z){case"t":if(this.topContainer){if(curvyBrowser.quirksMode){o.style.height=100+H+"px"}else{o.style.height=100+H-this.borderWidth+"px"}o.style.marginLeft=this.spec.tlR?(this.spec.tlR-this.borderWidthL)+"px":"0";o.style.borderTop=this.borderString;if(this.backgroundImage){var AA=this.spec.tlR?(this.backgroundPosX-(H-this.borderWidthL))+"px ":"0 ";o.style.backgroundPosition=AA+this.backgroundPosY+"px";this.shell.style.backgroundPosition=this.backgroundPosX+"px "+(this.backgroundPosY-H+this.borderWidthL)+"px"}this.topContainer.appendChild(o)}break;case"b":if(this.bottomContainer){if(curvyBrowser.quirksMode){o.style.height=M+"px"}else{o.style.height=M-this.borderWidthB+"px"}o.style.marginLeft=this.spec.blR?(this.spec.blR-this.borderWidthL)+"px":"0";o.style.borderBottom=this.borderStringB;if(this.backgroundImage){var AA=this.spec.blR?(this.backgroundPosX+this.borderWidthL-M)+"px ":this.backgroundPosX+"px ";o.style.backgroundPosition=AA+(this.backgroundPosY-F-this.borderWidth+M)+"px"}this.bottomContainer.appendChild(o)}}}this.contentContainer.style.position="absolute";this.contentContainer.className="autoPadDiv";this.contentContainer.style.left=this.borderWidthL+"px";this.contentContainer.style.paddingTop=this.topPadding+"px";this.contentContainer.style.top=this.borderWidth+"px";this.contentContainer.style.paddingLeft=this.leftPadding+"px";this.contentContainer.style.paddingRight=this.rightPadding+"px";z=V;if(!curvyBrowser.quirksMode){z-=this.leftPadding+this.rightPadding}this.contentContainer.style.width=z+"px";this.contentContainer.style.textAlign=curvyBrowser.get_style(this.box,"textAlign");this.box.style.textAlign="left";this.box.appendChild(this.contentContainer);if(U){U.style.display="none"}};if(this.backgroundImage){R=this.backgroundCheck(R);P=this.backgroundCheck(P);if(this.backgroundObject){this.backgroundObject.holdingElement=this;this.dispatch=this.applyCorners;this.applyCorners=function(){if(this.backgroundObject.complete){this.dispatch()}else{this.backgroundObject.onload=new Function("curvyObject.dispatch(this.holdingElement);")}}}}}curvyObject.prototype.backgroundCheck=function(B){if(B==="top"||B==="left"||parseInt(B)===0){return 0}if(!(/^[-\d.]+px$/.test(B))&&!this.backgroundObject){this.backgroundObject=new Image;var A=function(D){var C=/url\("?([^'"]+)"?\)/.exec(D);return(C?C[1]:D)};this.backgroundObject.src=A(this.backgroundImage)}return B};curvyObject.dispatch=function(A){if("dispatch" in A){A.dispatch()}else{throw A.newError("No dispatch function")}};curvyObject.prototype.drawPixel=function(J,G,A,F,H,I,C,E){var B=document.createElement("div");B.style.height=H+"px";B.style.width="1px";B.style.position="absolute";B.style.fontSize="1px";B.style.overflow="hidden";var D=this.spec.get("tR");B.style.backgroundColor=A;if(C&&this.backgroundImage!=""){B.style.backgroundImage=this.backgroundImage;B.style.backgroundPosition="-"+(this.boxWidth-(E-J)+this.borderWidth)+"px -"+((this.boxHeight+D+G)-this.borderWidth)+"px"}if(F!=100){curvyObject.setOpacity(B,F)}B.style.top=G+"px";B.style.left=J+"px";I.appendChild(B)};curvyObject.prototype.fillerWidth=function(A){var B=curvyBrowser.quirksMode?0:this.spec.radiusCount(A)*this.borderWidthL;return(this.boxWidth-this.spec.radiusSum(A)+B)+"px"};curvyObject.prototype.errmsg=function(C,D){var B="\ntag: "+this.box.tagName;if(this.box.id){B+="\nid: "+this.box.id}if(this.box.className){B+="\nclass: "+this.box.className}var A;if((A=this.box.parentNode)===null){B+="\n(box has no parent)"}else{B+="\nParent tag: "+A.tagName;if(A.id){B+="\nParent ID: "+A.id}if(A.className){B+="\nParent class: "+A.className}}if(D===undefined){D="warning"}return"curvyObject "+D+":\n"+C+B};curvyObject.prototype.newError=function(A){return new Error(this.errmsg(A,"exception"))};curvyObject.IntToHex=function(B){var A=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];return A[B>>>4]+""+A[B&15]};curvyObject.BlendColour=function(L,J,G){if(L==="transparent"||J==="transparent"){throw this.newError("Cannot blend with transparent")}if(L.charAt(0)!=="#"){L=curvyObject.format_colour(L)}if(J.charAt(0)!=="#"){J=curvyObject.format_colour(J)}var D=parseInt(L.substr(1,2),16);var K=parseInt(L.substr(3,2),16);var F=parseInt(L.substr(5,2),16);var C=parseInt(J.substr(1,2),16);var I=parseInt(J.substr(3,2),16);var E=parseInt(J.substr(5,2),16);if(G>1||G<0){G=1}var H=Math.round((D*G)+(C*(1-G)));if(H>255){H=255}if(H<0){H=0}var B=Math.round((K*G)+(I*(1-G)));if(B>255){B=255}if(B<0){B=0}var A=Math.round((F*G)+(E*(1-G)));if(A>255){A=255}if(A<0){A=0}return"#"+curvyObject.IntToHex(H)+curvyObject.IntToHex(B)+curvyObject.IntToHex(A)};curvyObject.pixelFraction=function(H,G,A){var J;var E=A*A;var B=new Array(2);var F=new Array(2);var I=0;var C="";var D=Math.sqrt(E-Math.pow(H,2));if(D>=G&&D<(G+1)){C="Left";B[I]=0;F[I]=D-G;++I}D=Math.sqrt(E-Math.pow(G+1,2));if(D>=H&&D<(H+1)){C+="Top";B[I]=D-H;F[I]=1;++I}D=Math.sqrt(E-Math.pow(H+1,2));if(D>=G&&D<(G+1)){C+="Right";B[I]=1;F[I]=D-G;++I}D=Math.sqrt(E-Math.pow(G,2));if(D>=H&&D<(H+1)){C+="Bottom";B[I]=D-H;F[I]=0}switch(C){case"LeftRight":J=Math.min(F[0],F[1])+((Math.max(F[0],F[1])-Math.min(F[0],F[1]))/2);break;case"TopRight":J=1-(((1-B[0])*(1-F[1]))/2);break;case"TopBottom":J=Math.min(B[0],B[1])+((Math.max(B[0],B[1])-Math.min(B[0],B[1]))/2);break;case"LeftBottom":J=F[0]*B[1]/2;break;default:J=1}return J};curvyObject.rgb2Array=function(A){var B=A.substring(4,A.indexOf(")"));return B.split(", ")};curvyObject.rgb2Hex=function(B){try{var C=curvyObject.rgb2Array(B);var G=parseInt(C[0]);var E=parseInt(C[1]);var A=parseInt(C[2]);var D="#"+curvyObject.IntToHex(G)+curvyObject.IntToHex(E)+curvyObject.IntToHex(A)}catch(F){var H="getMessage" in F?F.getMessage():F.message;throw new Error("Error ("+H+") converting RGB value to Hex in rgb2Hex")}return D};curvyObject.setOpacity=function(F,C){C=(C==100)?99.999:C;if(curvyBrowser.isSafari&&F.tagName!="IFRAME"){var B=curvyObject.rgb2Array(F.style.backgroundColor);var E=parseInt(B[0]);var D=parseInt(B[1]);var A=parseInt(B[2]);F.style.backgroundColor="rgba("+E+", "+D+", "+A+", "+C/100+")"}else{if(typeof F.style.opacity!=="undefined"){F.style.opacity=C/100}else{if(typeof F.style.MozOpacity!=="undefined"){F.style.MozOpacity=C/100}else{if(typeof F.style.filter!="undefined"){F.style.filter="alpha(opacity="+C+")"}else{if(typeof F.style.KHTMLOpacity!="undefined"){F.style.KHTMLOpacity=C/100}}}}}};function addEvent(D,C,B,A){if(D.addEventListener){D.addEventListener(C,B,A);return true}if(D.attachEvent){return D.attachEvent("on"+C,B)}D["on"+C]=B;return false}curvyObject.getComputedColour=function(E){var F=document.createElement("DIV");F.style.backgroundColor=E;document.body.appendChild(F);if(window.getComputedStyle){var D=document.defaultView.getComputedStyle(F,null).getPropertyValue("background-color");F.parentNode.removeChild(F);if(D.substr(0,3)==="rgb"){D=curvyObject.rgb2Hex(D)}return D}else{var A=document.body.createTextRange();A.moveToElementText(F);A.execCommand("ForeColor",false,E);var B=A.queryCommandValue("ForeColor");var C="rgb("+(B&255)+", "+((B&65280)>>8)+", "+((B&16711680)>>16)+")";F.parentNode.removeChild(F);A=null;return curvyObject.rgb2Hex(C)}};curvyObject.format_colour=function(A){if(A!=""&&A!="transparent"){if(A.substr(0,3)==="rgb"){A=curvyObject.rgb2Hex(A)}else{if(A.charAt(0)!=="#"){A=curvyObject.getComputedColour(A)}else{if(A.length===4){A="#"+A.charAt(1)+A.charAt(1)+A.charAt(2)+A.charAt(2)+A.charAt(3)+A.charAt(3)}}}}return A};curvyCorners.getElementsByClass=function(H,F){var E=new Array;if(F===undefined){F=document}H=H.split(".");var A="*";if(H.length===1){A=H[0];H=false}else{if(H[0]){A=H[0]}H=H[1]}var D,C,B;if(A.charAt(0)==="#"){C=document.getElementById(A.substr(1));if(C){E.push(C)}}else{C=F.getElementsByTagName(A);B=C.length;if(H){var G=new RegExp("(^|\\s)"+H+"(\\s|$)");for(D=0;D<B;++D){if(G.test(C[D].className)){E.push(C[D])}}}else{for(D=0;D<B;++D){E.push(C[D])}}}return E};if(curvyBrowser.isMoz||curvyBrowser.isWebKit){var curvyCornersNoAutoScan=true}else{curvyCorners.scanStyles=function(){function B(F){var G=/^[\d.]+(\w+)$/.exec(F);return G[1]}var E,D,C;if(curvyBrowser.isIE){function A(L){var J=L.style;if(curvyBrowser.ieVer>6){var H=J["-webkit-border-radius"]||0;var K=J["-webkit-border-top-right-radius"]||0;var F=J["-webkit-border-top-left-radius"]||0;var G=J["-webkit-border-bottom-right-radius"]||0;var M=J["-webkit-border-bottom-left-radius"]||0}else{var H=J["webkit-border-radius"]||0;var K=J["webkit-border-top-right-radius"]||0;var F=J["webkit-border-top-left-radius"]||0;var G=J["webkit-border-bottom-right-radius"]||0;var M=J["webkit-border-bottom-left-radius"]||0}if(H||F||K||G||M){var I=new curvyCnrSpec(L.selectorText);if(H){I.setcorner(null,null,parseInt(H),B(H))}else{if(K){I.setcorner("t","r",parseInt(K),B(K))}if(F){I.setcorner("t","l",parseInt(F),B(F))}if(M){I.setcorner("b","l",parseInt(M),B(M))}if(G){I.setcorner("b","r",parseInt(G),B(G))}}curvyCorners(I)}}for(E=0;E<document.styleSheets.length;++E){if(document.styleSheets[E].imports){for(D=0;D<document.styleSheets[E].imports.length;++D){for(C=0;C<document.styleSheets[E].imports[D].rules.length;++C){A(document.styleSheets[E].imports[D].rules[C])}}}for(D=0;D<document.styleSheets[E].rules.length;++D){A(document.styleSheets[E].rules[D])}}}else{if(curvyBrowser.isOp){for(E=0;E<document.styleSheets.length;++E){if(operasheet.contains_border_radius(E)){C=new operasheet(E);for(D in C.rules){if(!isNaN(D)){curvyCorners(C.rules[D])}}}}}else{curvyCorners.alert("Scanstyles does nothing in Webkit/Firefox")}}};curvyCorners.init=function(){if(arguments.callee.done){return}arguments.callee.done=true;if(curvyBrowser.isWebKit&&curvyCorners.init.timer){clearInterval(curvyCorners.init.timer);curvyCorners.init.timer=null}curvyCorners.scanStyles()}}if(typeof curvyCornersNoAutoScan==="undefined"||curvyCornersNoAutoScan===false){if(curvyBrowser.isOp){document.addEventListener("DOMContentLoaded",curvyCorners.init,false)}else{addEvent(window,"load",curvyCorners.init,false)}};
/* file not found */
