(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i?
e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=
j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}function sa(a,b,d){var f,e,j;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test(a[0]))){e=
true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:e}}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a});return d}function wa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,
Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&&
(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this,
a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b===
"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,
function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
L,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",L);A.attachEvent("onload",c.ready);var a=false;try{a=A.frameElement==null}catch(b){}s.documentElement.doScroll&&a&&ma()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype,
"isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(a):(new Function("return "+
a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===
a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&&
!c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari=
true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,
parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent=
false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n=
s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,
applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];
else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,
a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===
w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i,
cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var j=" "+e.className+" ",
i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var j=(" "+e.className+" ").replace(Aa," "),i=0,o=b.length;i<o;i++)j=j.replace(" "+b[i]+" ",
" ");e.className=c.trim(j)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=
this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i=
e[j];if(i.selected){a=c(i).val();if(b)return a;f.push(a)}}return f}if(Ba.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Za,"")}return w}var o=c.isFunction(a);return this.each(function(k){var n=c(this),r=a;if(this.nodeType===1){if(o)r=a.call(this,k,n.val());if(typeof r==="number")r+="";if(c.isArray(r)&&Ba.test(this.type))this.checked=c.inArray(n.val(),r)>=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected=
c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");
a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g,
function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split(".");
k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a),
C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B<r.length;B++){u=r[B];if(d.guid===u.guid){if(i||k.test(u.namespace)){f==null&&r.splice(B--,1);n.remove&&n.remove.call(a,u)}if(f!=
null)break}}if(r.length===0||f!=null&&r.length===1){if(!n.teardown||n.teardown.call(a,o)===false)Ca(a,e,z.handle);delete C[e]}}else for(var B=0;B<r.length;B++){u=r[B];if(i||k.test(u.namespace)){c.event.remove(a,n,u.handler,B);r.splice(B--,1)}}}if(c.isEmptyObject(C)){if(b=z.handle)b.elem=null;delete z.events;delete z.handle;c.isEmptyObject(z)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=
e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&&
f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;
if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e<j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==w)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this,
"events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=
a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
isImmediatePropagationStopped:Y};var Da=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Ea=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ea:Da,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ea:Da)}}});if(!c.support.submitBubbles)c.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};
if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",
e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,
"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,
d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"")}if(i==="hover")d.push("mouseenter"+k,"mouseleave"+k);else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k}else i=(Ga[i]||i)+k;b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",l,m=0;g[m];m++){l=g[m];if(l.nodeType===3||l.nodeType===4)h+=l.nodeValue;else if(l.nodeType!==8)h+=a(l.childNodes)}return h}function b(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];
if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1&&!p){t.sizcache=l;t.sizset=q}if(t.nodeName.toLowerCase()===h){y=t;break}t=t[g]}m[q]=y}}}function d(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1){if(!p){t.sizcache=l;t.sizset=q}if(typeof h!=="string"){if(t===h){y=true;break}}else if(k.filter(h,[t]).length>0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift();
t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D||
g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];
for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-
1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},
relative:{"+":function(g,h){var l=typeof h==="string",m=l&&!/\W/.test(h);l=l&&!m;if(m)h=h.toLowerCase();m=0;for(var q=g.length,p;m<q;m++)if(p=g[m]){for(;(p=p.previousSibling)&&p.nodeType!==1;);g[m]=l||p&&p.nodeName.toLowerCase()===h?p||false:p===h}l&&k.filter(h,g,true)},">":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m<q;m++){var p=g[m];if(p){l=p.parentNode;g[m]=l.nodeName.toLowerCase()===h?l:false}}}else{m=0;for(q=g.length;m<q;m++)if(p=g[m])g[m]=
l?p.parentNode:p.parentNode===h;l&&k.filter(h,g,true)}},"":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("parentNode",h,m,g,p,l)},"~":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,m,g,p,l)}},find:{ID:function(g,h,l){if(typeof h.getElementById!=="undefined"&&!l)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var l=[];
h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m<q;m++)h[m].getAttribute("name")===g[1]&&l.push(h[m]);return l.length===0?null:l}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,l,m,q,p){g=" "+g[1].replace(/\\/g,"")+" ";if(p)return g;p=0;for(var v;(v=h[p])!=null;p++)if(v)if(q^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},
CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m,
g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},
text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},
setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return h<l[3]-0},gt:function(g,h,l){return h>l[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=
h[3];l=0;for(m=h.length;l<m;l++)if(h[l]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+q)},CHILD:function(g,h){var l=h[1],m=g;switch(l){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(l==="first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":l=h[2];var q=h[3];if(l===1&&q===0)return true;h=h[0];var p=g.parentNode;if(p&&(p.sizcache!==h||!g.nodeIndex)){var v=0;for(m=p.firstChild;m;m=
m.nextSibling)if(m.nodeType===1)m.nodeIndex=++v;p.sizcache=h}g=g.nodeIndex-q;return l===0?g===0:g%l===0&&g/l>=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m===
"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g,
h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l<m;l++)h.push(g[l]);else for(l=0;g[l];l++)h.push(g[l]);return h}}var B;if(s.documentElement.compareDocumentPosition)B=function(g,h){if(!g.compareDocumentPosition||
!h.compareDocumentPosition){if(g==h)i=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0)i=true;return g};else if("sourceIndex"in s.documentElement)B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)i=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(g===0)i=true;return g};else if(s.createRange)B=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==h)i=true;return g.ownerDocument?-1:1}var l=g.ownerDocument.createRange(),m=
h.ownerDocument.createRange();l.setStart(g,0);l.setEnd(g,0);m.setStart(h,0);m.setEnd(h,0);g=l.compareBoundaryPoints(Range.START_TO_END,m);if(g===0)i=true;return g};(function(){var g=s.createElement("div"),h="script"+(new Date).getTime();g.innerHTML="<a name='"+h+"'/>";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&&
q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML="<a href='#'></a>";
if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}();
(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}:
function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,
gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
{},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a===
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",
d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?
a:b+"></"+d+">"},F={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,
""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]||
u.appendChild(u.ownerDocument.createElement("tbody")):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===
1?(k=k.firstChild):k.firstChild){b=b&&c.nodeName(j,"tr");for(var n=0,r=this.length;n<r;n++)d.call(b?f(this[n],j):this[n],n>0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]);
return this}else{e=0;for(var j=d.length;e<j;e++){var i=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["",
""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]==="<table>"&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e=
c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]?
c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja=
function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=
Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,
"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=
a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=
a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!==
"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("<div />").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this},
serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),
function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,
global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&&
e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)?
"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===
false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B=
false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since",
c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E||
d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x);
g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===
1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b===
"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional;
if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");
this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(la[d])f=la[d];else{var e=c("<"+d+" />").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(K("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],
"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},
animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]==="hide"&&o||a[i]==="show"&&!o)return j.complete.call(this);if((i==="height"||i==="width")&&this.style){j.display=c.css(this,"display");j.overflow=this.style.overflow}if(c.isArray(a[i])){(j.specialEasing=
j.specialEasing||{})[i]=a[i][1];a[i]=a[i][0]}}if(j.overflow!=null)this.style.overflow="hidden";j.curAnim=c.extend({},a);c.each(a,function(r,u){var z=new c.fx(k,j,r);if(Ab.test(u))z[u==="toggle"?o?"show":"hide":u](a);else{var C=Bb.exec(u),B=z.cur(true)||0;if(C){u=parseFloat(C[2]);var E=C[3]||"px";if(E!=="px"){k.style[r]=(u||1)+E;B=(u||1)/z.cur(true)*B;k.style[r]=B+E}if(C[1])u=(C[1]==="-="?-1:1)*u+B;z.custom(B,u,E)}else z.custom(B,u,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);
this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration===
"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||
c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;
this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=
this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,
e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||
c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?
function(a){var b=this[0];if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=
this[0];if(a)return this.each(function(r){c.offset.setOffset(this,a,r)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b,e=b.ownerDocument,j,i=e.documentElement,o=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==o&&b!==i;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;j=e?e.getComputedStyle(b,null):b.currentStyle;
k-=b.scrollTop;n-=b.scrollLeft;if(b===d){k+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=j}if(f.position==="relative"||f.position==="static"){k+=o.offsetTop;n+=o.offsetLeft}if(c.offset.supportsFixedPosition&&
f.position==="fixed"){k+=Math.max(i.scrollTop,o.scrollTop);n+=Math.max(i.scrollLeft,o.scrollLeft)}return{top:k,left:n}};c.offset={initialize:function(){var a=s.body,b=s.createElement("div"),d,f,e,j=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b);
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,
d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-
f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset":
"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in
e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window);

;function do_link(section, params){
	
	var parts = section.split(".");
	var module = parts[0];
	var page = parts[1];	
	var send_to_file;		
	var array_params = Array();
	var i = 0;
	var j = 0;
	var send_params = "";
	var include_lang = "";
	var param = Array();
	array_params = params.split("&");	
	// Get module & page
	var res_file = section.split(".");	
	var send_to_file = res_file[1];
	var force_files = SUBDOMAINS_FORCE_FILES_JS.split(",");
	var base_path = PATH + "/";
	
	// Cross subdomain links
	if (js_in_array(section, force_files)) {
		send_to_file = res_file[0] + "-" + res_file[1];
	}
	// Normal links
	else {
		send_to_file = (send_to_file == "index") ? "" : send_to_file;
	}
	
	var rewrite_vars = new Array();
	var skip_vars = new Array();
	var do_rewrite_mapping = 0;
	
	// Extract the rewrite mapping
	var rewrite_mapping = URL_REWRITE_MAPPING_JS.split("|");
	
	i = 0;
	while (i < rewrite_mapping.length){
		var tmp_mapping = rewrite_mapping[i].split(",");

		// If the current page has mapping		
		if (send_to_file == tmp_mapping[0]) {
			j = 1;
			
			// Extract variables to mapp
			while (j < tmp_mapping.length){
				rewrite_vars[j] = tmp_mapping[j];
				j ++;
			}
			
			// Do mapping is on
			do_rewrite_mapping = 1;
		}
		
		i ++;
	}
					
	i = 0;
	
	// Check url params
	while (i < array_params.length){
		if (array_params[i] != "") {
			
			// Get param data
			param = array_params[i].split("=");
			
			// If do mapping is on
			if (do_rewrite_mapping == 1) {
				j = 1;
				var do_skip = 0;
				
				// Check if we should rewrite this param
				while (j < rewrite_vars.length) {
					if (rewrite_vars[j] == param[0]) {
						
						// Send param value to another list
						skip_vars[j] = param[1];
						do_skip = 1;
					}
					j ++;
				}
				
				// If no skipping add param to url vars list
				if (!do_skip) {
					send_params = send_params + param[0] + "=" + param[1];
					if(i < (array_params.length - 1)) {
						send_params = send_params + "&";
					}
				}
			}
			else {
				// Add param to url vars list
				send_params = send_params + param[0] + "=" + param[1];
				if(i < (array_params.length - 1)) {
					send_params = send_params + "&";
				}
			}
		}
		i ++;
	}					
	
	// If do mapping is on
	if (do_rewrite_mapping == 1) {
		i = 0;
		
		// Add skipped params values to the name of the page
		while (i < skip_vars.length) {
			if (skip_vars[i]) {
				send_to_file += "/" + skip_vars[i];
			}
			i ++;
		}
	}
	else {
		if (send_to_file != "") {
			send_to_file += "/";
		}
	}
	
	if ( (typeof(LNG_SEL)!="undefined") && (LNG_SEL != "") ) {
		include_lang = LNG_SEL + "/"
	}
	
	return ((send_params != "") ? (base_path + include_lang + send_to_file + "?" + send_params) : (base_path + include_lang + send_to_file));
}

function form_send_params(section, params, mode){
	
	if (mode == "rs") {
		
		var array_params = Array();
		var i = 0;
		var send_params = "";
		var param = Array();
		array_params = params.split("&");
		
		while (i < array_params.length){
			if (array_params[i] != '') {
				param = array_params[i].split("=");
				send_params = send_params + "<INPUT TYPE=\"HIDDEN\" NAME=\"" + param[0] + "\" VALUE=\"" + param[1] + "\">";
			}
			i ++;
		}
		
		if (send_params) {		
			document.open();
			document.write("<HTML><BODY><FORM METHOD=\"POST\" NAME=\"_form_send_params_\" ACTION=\"" + do_link(section, "") + "\">");
			document.write(send_params);
			// alert(send_params);
			document.write("</FORM>");
			document.write("<SCR");
			document.write("IPT LANGUAGE=\"JavaScript\">document._form_send_params_.submit();</SCR");
			document.write("IPT></BODY></HTML>");			
			document.close();		
		}
	}
	else {
		document.location = do_link(section, params);
	}
	
	return false;
}

function form_do_submit(form_name, button_name){
	
	if (!form_is_submitted) {
		eval("document." + form_name + "." + button_name + ".disabled=true");
		eval("document." + form_name + ".submit()");
		eval("submitted_form = '" + form_name + "'");
		eval("submission_button = '" + button_name + "'");
		form_is_submitted = 1;
	}
	
	return false;
}

function form_do_reset(form_name, button_name){
	
	if (submitted_form != "" && submission_button != "") {
		eval("document." + form_name + "." + button_name + ".disabled=false");
	}
			
}

function form_set_select(sel_name, form_name, sel_index){
	
	
	if ((form_name != "") && (typeof eval("document." + form_name + "." + sel_name) == "object")) {
	
		sel_length = eval("document." + form_name + "." + sel_name + ".length");
		
		for (optionCounter = 0; optionCounter < sel_length; optionCounter++) {
			
			if (eval("document." + form_name + "." + sel_name + ".options[optionCounter].value == '" + sel_index + "'")) {
				
				eval("document." + form_name + "." + sel_name + ".selectedIndex = optionCounter");
				
			}
			
		}
	
	}
	
}

function form_set_checked(check_name, form_name, checked_mode){
	
	if ((form_name != "") && (typeof eval("document." + form_name + "." + check_name) == "object")) {
	
		if (checked_mode != "" && checked_mode != 0 && checked_mode != "off") {
			eval("document." + form_name + "." + check_name + ".checked = true");
		}
	
	}
	
}

function form_set_radio(radio_name, form_name, selected_value){
    
	 if ((form_name != "") && (typeof eval("document." + form_name + "." + radio_name) == "object")) {
	 	
	 	eval("var rad = document." + form_name + "." + radio_name);

	 	for(i=0; i<rad.length; i++){
		
	 		if(rad[i].value == selected_value){
				rad[i].checked = true;
				return true;
			}
			
		}
		
		return false;
	}

}

function form_set_inp(inp_name, form_name, inp_value){
	
	if ((form_name != "") && (typeof eval("document." + form_name + "." + inp_name) == "object")) {
		eval("document." + form_name + "." + inp_name + ".value = \"" + inp_value + "\"");
	}
	
}

function form_check_all(c) {
	
	var f = c.form;
	var ck = c.checked;
	
	for (i = 0; i < f.elements.length; i++) {
		if ((f.elements[i] != c) && (f.elements[i].type == "checkbox")) {
			f.elements[i].checked = ck;
		}
	}
	
}

function win_open(mypage, myname, w, h, win_position, win_scroll, win_resizable, win_toolbar, win_location, win_status, win_menubar){
	
	var win = null;
	var LeftPosition, TopPosition;
	
		
	if (w) {
	}
	else {
		w = 600;
	}
	
	if (h) {
	}
	else {
		h = 600;
	}
	
	if (win_position == "topright") {
		LeftPosition = (screen.width) ? (screen.width - w - 12) : 0;
		TopPosition = 20;
	}
	else if (win_position == "center") {
		LeftPosition = (screen.width) ? ((screen.width-w) / 2) : 0;
		TopPosition = (screen.height) ? ((screen.height-h) / 2) : 0;
	}
	
	settings = 'height = ' + h + ', width = ' + w + ', top = ' + TopPosition + ', left = ' + LeftPosition;
	settings += (win_scroll == "yes") ? ", scrollbars=yes" : ", scrollbars=no"; 
	settings += (win_resizable == "yes") ? ", resizable=yes" : ", resizable=no";
	settings += (win_toolbar == "yes") ? ", toolbar=yes" : ", toolbar=no";
	settings += (win_location == "yes") ? ", location=yes" : ", location=no";
	settings += (win_status == "yes") ? ", status=yes" : ", status=no";
	settings += (win_menubar == "yes") ? ", menubar=yes" : ", menubar=no"; 
	
	win = window.open(mypage, myname, settings);
	if (win == null) {
		alert("Your popup blocker stopped an window from opening\nPlease disable your popup blocker if you wish to see window content!");
	}
	
}

var EL_VISIB = new Array();
function dom_toggle_element(el, visible){

	visible = (visible != false && visible != true) ? (EL_VISIB[el] ? false : true) : visible;
	var el_handle = dom_get_element(el);
	
	if (el_handle) {
		if (!visible) {
			el_handle.style.display = 'none';
		}
		else if (visible) {
			el_handle.style.display = '';
		}
		
		EL_VISIB[el] = visible;
	}
}

function dom_get_element(id){
        var obj;

        if (document.all) {
                eval('obj = document.all("' + id + '")');
        }
        else if (document.layers) {                
                eval('obj = document.layers["' + id + '"]');
        }
        else if (document.getElementById) {        
                eval('obj = document.getElementById("' + id + '")');
        }
        
        return obj;
}


function getObjByName(name,doc) {
	var o = 0;
  	if(!doc) {
  		doc = document;
  	}
  	if(doc[name]) {
  		o=doc[name];
  	}
  	if(document.all && doc.all[name]) {
  		o=doc.all[name];
  	}
  	if(o) {
    		if(!o.getElementsByTagName) {
    			o.getElementsByTagName = getElementsArray;
    		}
    		return o;
  	}
  	if(document.layers) {
    		for(var i=0; i < doc.layers.length; i++){
      			var lyrdoc = doc.layers[i].document;
      			if(lyrdoc[name]) {
      				return lyrdoc[name];
      			}
      			if(lyrdoc.layers.length > 0) {
        				var o = getObjByName(name,lyrdoc);
        				if(o) {
        					return o;
        				}
      			}
    		}
  	}
  	return 0;
}


function textCounter(field, cntfield, maxlimit) {
	var obj_field = getObjByName(field);
	var obj_cntfield = getObjByName(cntfield);
	if (obj_field.value.length > maxlimit){
        	obj_field.value = obj_field.value.substring(0, maxlimit);
	}
   	else {
       		obj_cntfield.value = maxlimit - obj_field.value.length;
   	}
}


function print_array(arr, lvl) {

	lvl = (lvl > 0) ? lvl : 1;
	var level = lvl;
	
	var tab = "\t";
	if (level > 1) {
		for (k=1; k < level-1; k++) {
			tab += "\t";
		}
		
		var buff = "Array\n" + tab + "(\n";
		tab += "\t";
	}
	else {
		var buff = "Array\n(\n";
	}
	
	var i = 0;
	for (var i in arr) {
		if (typeof(arr[i]) == "object") {
			buff += tab + "[" + i + "]" + " => " + print_array(arr[i], level + 1) + tab + ")\n";
		}
		else {
			buff += tab + "[" + i + "]" + " => " + arr[i] + tab + "\n";
		}
	}
	
	if (level > 1) {
		return buff;
	}
	else {
		alert(buff + ")\n");
	}
}


function js_in_array(the_needle, the_haystack) {

	var the_hay = the_haystack.toString();
	if(the_hay == '') {
		return false;
	}
	var the_pattern = new RegExp(the_needle, 'g');
	var matched = the_pattern.test(the_haystack);
	return matched;
}


// REMOTE REQUEST FUNCTIONS
var http_request = false;
var http_remote_result = "";

function remote_data_request(url, parameters, callback_function) {
	
	http_request = false;
	if (window.XMLHttpRequest) { // Mozilla, Safari,...
		http_request = new XMLHttpRequest();
		if (http_request.overrideMimeType) {
			http_request.overrideMimeType("text/xml");
		}
	}
	else if (window.ActiveXObject) { // IE
		try {
			http_request = new ActiveXObject("Msxml2.XMLHTTP");
		} 
		catch (e) {
			try {
				http_request = new ActiveXObject("Microsoft.XMLHTTP");
			} 
			catch (e) {}
		}
	}
	if (!http_request) {
		// alert("Cannot create XMLHTTP instance");
		return false;
	}
	
	http_request.onreadystatechange = function(){
		if (http_request.readyState == 4) {
			// alert(http_request.status);
			if (http_request.status == 200) {
				http_remote_result = http_request.responseText;
				eval(http_remote_result);							
				eval(callback_function);		
				
			} 
			else {
				//alert("There was a problem with the request.");
			}
		}
	};
	http_request.open("POST", url, true);
	http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	http_request.setRequestHeader("Content-length", parameters.length);
	http_request.setRequestHeader("Connection", "close");
	http_request.send(parameters);
	
}

function doRound(dbl_x, i_places){
	return Math.round (dbl_x * Math.pow(10, i_places)) / Math.pow(10, i_places);
}

Number.prototype.round = function(precision){
	precision = Math.pow(10, precision || 0).toFixed(precision < 0 ? -precision : 0);
	return Math.round(this * precision) / precision;
}

function loading_box(elem){
	elem = $(elem).eq(0);
	if (elem.length) {
		var id = "layer_" + Math.floor(Math.random()*100000);
		var layer = $("<div id=\"" + id + "\" style=\"visibility: hidden;\"><img src=\"" + PATH_STATIC + "/img/site/aloader.gif\" style=\"position: absolute; top: 50%; left: 50%; margin-top: -8px; margin-left: -8px;\" /></div>").css({backgroundColor: "#FFFFFF", opacity: 0.8, position: "absolute"});
		layer.appendTo("body");
		layer.css({top: elem.offset().top, left: elem.offset().left, zIndex: 1});
		layer.width(elem.outerWidth());
		layer.height(elem.outerHeight());
		layer.css({visibility: "visible"});
		if ($.data(elem[0], "loading_box") != undefined) {
			$("#" + $.data(elem[0], "loading_box")).remove();
		}
		$.data(elem[0], "loading_box", id);
	}
	return elem;
}

function remove_loading_box(elem){
	elem = $(elem).eq(0);;
	if (elem.length) {
		var id = $.data(elem[0], "loading_box");
		$("#" + id).remove();
		$.removeData(elem[0], "loading_box");
	}
}
;$(function(){
	
	$(document).delegate(".error_msg_close", "click", function(e){
		$(this).closest("div[class^='box']").fadeOut("fast");
		$(this).closest("div[class^='error_block']").fadeOut("fast"); return false;
	});
	
	/*$("select").focus(function(){
		$.data(this, 'val', $(this).val()); 
	}).change(function(){
		var jThis = $(this);
		var newVal = jThis.val();
		
		
		if (jQuery(this).find("option:selected").is(".disabled")) {
			var val = jQuery.data(this, 'val');
			if (val == "") {
				jThis.val(val);
				// alert(jThis.find("option[value='']").length);
				// jThis.find("option[value='']").attr("selected", "selected").siblings().removeAttr("selected");
				
			}
			else {
				jThis.val(val);
			}
			return;
		}
		
		$.data(this, 'val', newVal); 
	}).delegate("option", "click", function(){
		alert("mouse");
		// return false
	});
	// .find("option").mouseup(function(){alert("up");return false;});*/
});

// Utility functions #######################################################

// Overlayer using Boxy
function start_ol(page, params, my_title, width, height){	
	params += "&rv=" + Math.floor(Math.random() * 10000000000);
	
	myBox = new Boxy("<iframe name=\"overlay\" src=\"" + do_link(page, params)  + "\" framespacing=\"0\" frameborder=\"no\" scrolling=\"yes\" width=\"" + width + "\" height=\"" + height + "\" style=\"overflow: auto;\"></iframe>", {
		title: my_title,
		// closeText: "[" + link_close + "]",
		closeText: "<span class='close_box'>[ <a href='#' class='close'>" + link_close + "</a> ] <a href='#' class='close'><img src='" + PATH_STATIC + "/img/site/btn_close.gif' align='absmiddle'></a></span>",
		closeable: true,
		modal: true
	});
}

// Assign action to redirect to specified location
function replace_redirect(){
	jQuery("button.redirect, a.redirect").click(function(e){
		// Get location from metadata
		var location = jQuery(this).metadata().location;
		var target = jQuery(this).metadata().target || "_self";
		// We have a location
		if (typeof(location) != "undefined") {
			if (target == "_blank") {
				do_blank(location);
				return;
			}
			document.location = location;
		}
		
		return false;
	});
}

function do_blank(link){
	
	var frm = document.createElement("form");
	document.body.appendChild(frm);
	frm.method = "post";
	frm.target = "_blank";
	
	frm.action = link;
	frm.submit();
	document.body.removeChild(frm);
}

// Form functions #######################################################

// Focus on input
function form_focus(form_id){
	$("form#" + form_id + " :input[value='']:not(select):enabled:visible:first").focus();
}

// Disable submit buttons
function jform_do_submit(form_id){
	
	var my_form = $("form#" + form_id);
	var loading = $("<img src=\"" + PATH_STATIC + "/img/site/circle_loading2.gif\" style=\"position: absolute; top: 9px; right: 8px; width: 16px; height: 16px;\">");
	
	my_form.submit(function() {
		if (!form_is_submitted) {
			// Disable all buttons from my form
			$(":button, :submit", my_form).attr("disabled", "disabled");
			
			$(":submit", my_form).each(function(i, v){
				var jThis = $(v);
				jThis.addClass(jThis.hasClass("btn_small") ? "btn_disabled_small" : "btn_disabled");
				loading.appendTo(jThis);
			});
			
			form_is_submitted = 1;
			submitted_form = form_id;
		}
	});
}

function jform_set_select(sel_name, form_id, sel_value){
	$("form#" + form_id + " select[name='" + sel_name + "']:first").val(sel_value);
}

function jform_set_radio(radio_name, form_id, selected_value){
	// $("form#" + form_id + " :radio[name='" + radio_name + "'][value='" + selected_value + "']:first").attr("checked", "checked");
	
	var this_radio = $("form#" + form_id + " :radio[name='" + radio_name + "'][value='" + selected_value + "']:first");
	
	if ($(this_radio).length > 0) {
		$(this_radio).click();
	}
}

function jform_set_checked(check_name, form_id, checked_mode){
	if (checked_mode != "" && checked_mode != 0 && checked_mode != "off") {
		$("form#" + form_id + " :checkbox[name='" + check_name + "']:first").attr("checked", "checked");
	}
}

function jform_check_all(form_id){
	$("form#" + form_id + " :checkbox").attr("checked", "checked");
}

function jform_uncheck_all(form_id){
	$("form#" + form_id + " :checkbox").removeAttr("checked");
}

function form_set_select_id(sel_id, form_name, sel_index) {
	var obj = dom_get_element(sel_id);

	var sel_length = obj.length;

	for (optionCounter = 0; optionCounter < sel_length; optionCounter++) {
		if (obj.options[optionCounter].value == sel_index){
			obj.selectedIndex = optionCounter;
		}
	}
}

$('table.prod_list tr:odd').not('.table_header').addClass('cell_odd');

function validate_ga_id(value) {
	if (value.match(/^UA-[0-9]{1,}-[0-9]{1,}$/)) {
		return true;
	}
	else {
		return false;
	}
}

function validate_trafic_id(value) {
	if (value.match(/^[a-zA-Z0-9]{2,}$/)) {
		return true;
	}
	else {
		return false;
	}	
}

// Handle top search actions #######################################################
function search_actions(target){
	// Select search input
	var input = $(target);
	
	if (!input.length){return false;}
	
	// Default search text
	var txt = input.metadata().txt;
	var search_string = input.metadata().search_string;
	// Select closest parent form
	var par = input.closest("form");
	
	// If input is empty add default text
	if ($.trim(search_string) == "") {
		input.css("color", "#AAAAAA");
		input.val(txt);
	}
	else {
		input.css("color", "#666666");
		input.val(search_string);
	}
	
	// Assign input actions
	input.focus(function(e){
		// Remove default text on focus
		if (($.trim(input.val()) == "") || (input.val() == txt)) {
			input.val("");
			input.css("color", "#666666");
		}
		else {
			input.get(0).select();
		}
	}).blur(function(e){
		// Add default text on blur if input is empty
		if ($.trim(input.val()) == "") {
			input.val(txt);
			input.css("color", "#AAAAAA");
		}
	});
	
	// If input is empty or has default text, disable form submision
	par.submit(function(e){
		if (($.trim(input.val()) == "") || (input.val() == txt)) {
			return false;
		}
	});
}

// Generic function for submenu toggle
function menu_actions(_target, _submenu, duration){
	// Select main menu button
	var target = $(_target);
	// Select submenu
	var submenu = $(_submenu);
	// Define local timer
	var timer;
	var duration = ((typeof(duration) == "undefined") ? 300 : duration);
	
	// Assign button actions
	target.hover(function(e){
		clearTimeout(timer);
		subnavs.hide();
		submenu.show();
		target.addClass("hover");
	}, function(e){
		timer = setTimeout(function(){
			submenu.hide();
			target.removeClass("hover");
		}, duration);
	});
	
	// Assign submenu actions
	submenu.hover(function(e){
		clearTimeout(timer);
	}, function(e){
		timer = setTimeout(function(){
			submenu.hide();
			target.removeClass("hover");
		}, duration);
	});
}

// Dropdown menu (used in listings)
function dropdown_menu(target){
	var mouse_is_inside = false;
	// Handle mouse position
	$(target).hover(
		function(){mouse_is_inside = true;},
		function(){mouse_is_inside = false;}
	);
	
	// Handle menu
	$(".clicker", target).click(function(e){
		var clicker = $(this);
		var dropdown = $(this).siblings("ul");
		
		// Open menu
		if (!clicker.hasClass("open")) {
			// Close other menus
			$("ul:visible", target).each(function(){
				$(this).hide().siblings(".clicker").removeClass("open").parent().removeClass("p_rel");
			});
			
			clicker.addClass("open").parent().addClass("p_rel");
			dropdown.show();
		}
		// Close menu
		else {
			clicker.removeClass("open").parent().removeClass("p_rel");
			dropdown.hide();
		}
	});
	
	// Close menus when clicking outside
	$("body").click(function(){
		if (!mouse_is_inside) {
			// Close other menus
			$("ul:visible", target).each(function(){
				$(this).hide().siblings(".clicker").removeClass("open").parent().removeClass("p_rel");
			});
		}
	});
}

// Populate states select #######################################################
// form_id, select_id_countries, select_id_states, selected_state
function populate_states(opt, callback){
	
	// Find selects in my form
	var states_select = $("#" + opt.select_id_states, "form#" + opt.form_id);
	if (parseInt(opt.fk_countries) > 0) {
		country_selection = parseInt(opt.fk_countries);
	}
	else {
		var countries_select = $("#" + opt.select_id_countries, "form#" + opt.form_id);
		
		// Get selected country
		country_selection = (opt.country_key > 0 ? opt.country_key : parseInt(countries_select.val()));
	}
	
	// Empty + disable + add one option with loading text
	states_select.empty().attr("disabled", "disabled").append("<option value=\"0\">" + ((country_selection > 0) ? txt_loading : ("[ -- " + txt_select + " -- ]")) + "</option>");
	
	// Change selected state key into a number
	opt.selected_state = parseInt(opt.selected_state);
	
	// We need the country
	if (country_selection > 0) {
		// Build request link
		var URL = do_link("biz.remote", "request=select_states&fk_countries=" + country_selection);
		
		// Load data from remote
		states_select.load(URL, {}, function(){
			// Enable states select
			states_select.removeAttr("disabled");
			
			// We have a selected state to set
			if (opt.selected_state > 0) {
				// alert(states_select.find("option").length);
				states_select.val(opt.selected_state);
			}
			
			// We have a callback function to call
			if (typeof(callback) == "function") {
				states_select.unbind("change").change(function(e){
					callback.call();
				}).change();
			}
		});
	}
}

// Populate attr select #######################################################
function populate_attr(opt){
	
	var prop_key = 0, select_prop_values;
	
	if (typeof(opt.select_prop) == "object") {
		prop_key = parseInt($(opt.select_prop).val());
	}
	else if (typeof(opt.select_id_prop) == "string") {
		prop_key = parseInt($("#" + opt.select_id_prop).val());
	}
	else if (parseInt(opt.prop_key) > 0) {
		prop_key = parseInt(opt.prop_key);
	}
	
	if (typeof(opt.select_prop_values) == "object") {
		select_prop_values = $(opt.select_prop_values);
	}
	else if (typeof(opt.select_id_prop_values) == "string") {
		select_prop_values = $("#" + opt.select_id_prop_values).val();
	}
	
	select_prop_values.empty().attr("disabled", "disabled").append("<option value=\"\">" + ((prop_key > 0) ? txt_loading : ("[ " + txt_select + " ]")) + "</option>");
	
	// We need the country
	if (prop_key > 0) {
		// Build request link
		var URL = do_link("biz.remote", "request=select_attr&fk_shop_prop=" + prop_key + "&sk=" + opt.sk);
		
		// Load data from remote
		$.get(URL, {}, function(data){
		
			// Enable states select
			select_prop_values.html(data).removeAttr("disabled");
			
			// We have a selected state to set
			if ((parseInt(opt.prop_key) > 0) && (parseInt(opt.prop_values_key) > 0)) {
				select_prop_values.val(parseInt(opt.prop_values_key)).trigger("change");
			}
		});
	}
} 

jQuery("a.toggleEditor").click(function(){
	var t = jQuery(this);
	var id = t.metadata().id;
	var a = t.metadata().a;
	var b = t.metadata().b;
	
	if (!tinyMCE.get(id)) {
		tinyMCE.execCommand('mceAddControl', false, id);
		jQuery(this).html(a);
	}
	else {
		tinyMCE.execCommand('mceRemoveControl', false, id);
		jQuery(this).html(b);
	}
});

function build_interval_filter(){
	var container = jQuery("div.interval_filter");
	if (!container.length) {
		return;
	}
	
	var selected_interval = container.find(".selected_interval");
	var custom_interval = container.find(".custom_interval");
	var layer = container.find(".interval_layer");
	var intervals = layer.find("a");
	var interval = layer.find("li.on").find("a");
	var calendar_init = false;
	
	jQuery("body").click(function(e){
		if (!jQuery(e.target).closest(".interval_filter").length) {
			layer.hide();
		}
	});
	
	if (interval.length) {
		selected_interval.find(".interval_title").html(interval.html() + ",");
		selected_interval.find(".interval_date").html(jQuery.global.format(new Date(interval.metadata().start_date.replace(/\-/g, "/")), "d") + " - " + jQuery.global.format(new Date(interval.metadata().end_date.replace(/\-/g, "/")), "d"));
		
		container.find("input.interval_start_date").val(interval.metadata().start_date);
		container.find("input.interval_end_date").val(interval.metadata().end_date);
		container.find("input.interval_date").val(interval.metadata().mode);
	}
	
	custom_interval.find(".ok_custom").click(function(){
		var start = custom_interval.find(".custom_start_date");
		var end = custom_interval.find(".custom_end_date");
		if ( (jQuery.trim(start.text()) != "") && (jQuery.trim(end.text()) != "")) {
			selected_interval.find(".interval_title").html(jQuery.data(custom_interval, "title") + ",");
			selected_interval.find(".interval_date").html(jQuery.global.format(new Date(start.text().replace(/\-/g, "/")), "d") + " - " + jQuery.global.format(new Date(end.text().replace(/\-/g, "/")), "d"));
			
			container.find("input.interval_start_date").val(start.text());
			container.find("input.interval_end_date").val(end.text());
			container.find("input.interval_date").val(jQuery.data(custom_interval, "mode"));
			
			jQuery.data(custom_interval, "link").closest("li").addClass("on").siblings("li").removeClass("on");
		}
		
		custom_interval.hide();
	});
	
	intervals.click(function(){
		var jThis = jQuery(this);
		var meta = jThis.metadata();
		
		if (meta.mode == "custom") {
			if (!calendar_init) {
				custom_interval.find(".custom_start_date").add(custom_interval.find(".custom_end_date"))
				.datePicker({createButton: false, verticalOffset: "30px"})
				.bind('click', function(){
						jQuery(this).dpDisplay();
						this.blur();
						return false;
				});
				
				jQuery.data(custom_interval, "title", jThis.html());
				jQuery.data(custom_interval, "link", jThis);
				jQuery.data(custom_interval, "mode", meta.mode);
				
				// Link calendars
				custom_interval.find(".custom_start_date").dpSetStartDate('1970-01-01').bind("dateSelected", function(e, d){
					if (d) {
						d = new Date(d);
						custom_interval.find(".custom_start_date").text(jQuery.global.format(d, "yyyy-MM-dd"));
						custom_interval.find(".custom_end_date").dpSetStartDate(d.asString()).dpRerenderCalendar();
					}
				});
				custom_interval.find(".custom_end_date").bind("dateSelected", function(e, d){
					if (d) {
						d = new Date(d);
						custom_interval.find(".custom_end_date").text(jQuery.global.format(d, "yyyy-MM-dd"));
						custom_interval.find(".custom_start_date").dpSetEndDate(d.asString()).dpRerenderCalendar();
					}
				});
				
				// Init calendars
				if (meta.start_date != "") {
					custom_interval.find(".custom_start_date").dpSetSelected(meta.start_date, true, true);
				}
				if (meta.end_date != "") {
					custom_interval.find(".custom_end_date").dpSetSelected(meta.end_date, true, true);
				}
			}
			custom_interval.show();
		}
		else {
			selected_interval.find(".interval_title").html(jThis.html() + ",");
			selected_interval.find(".interval_date").html(jQuery.global.format(new Date(meta.start_date.replace(/\-/g, "/")), "d") + " - " + jQuery.global.format(new Date(meta.end_date.replace(/\-/g, "/")), "d"));
			
			container.find("input.interval_start_date").val(meta.start_date);
			container.find("input.interval_end_date").val(meta.end_date);
			container.find("input.interval_date").val(meta.mode);
			
			jThis.closest("li").addClass("on").siblings("li").removeClass("on");
		}
		
		layer.hide();
		
		return false;
	});
	
	selected_interval.click(function(){
		custom_interval.hide();
		layer.toggle();
	});
}
;if(jQuery.fn.bgiframe==undefined){jQuery.fn.bgiframe=function(){return this}}jQuery.fn.boxy=function(a){a=a||{};return this.each(function(){var c=this.nodeName.toLowerCase(),b=this;if(c=="a"){jQuery(this).click(function(){var h=Boxy.linkedTo(this),e=this.getAttribute("href"),g=jQuery.extend({actuator:this,title:this.title},a);if(e.match(/(&|\?)boxy\.modal/)){g.modal=true}if(h){h.show()}else{if(e.indexOf("#")>=0){var f=jQuery(e.substr(e.indexOf("#"))),d=f.clone(true);f.remove();g.unloadOnHide=false;new Boxy(d,g)}else{if(!g.cache){g.unloadOnHide=true}Boxy.load(this.href,g)}}return false})}else{if(c=="form"){jQuery(this).bind("submit.boxy",function(){Boxy.confirm(a.message||"Please confirm:",function(){jQuery(b).unbind("submit.boxy").submit()});return false})}}})};function Boxy(b,a){this.boxy=jQuery(Boxy.WRAPPER);jQuery.data(this.boxy[0],"boxy",this);this.visible=false;this.options=jQuery.extend({},Boxy.DEFAULTS,a||{});if(this.options.modal){this.options=jQuery.extend(this.options,{center:true,draggable:false})}if(this.options.actuator){jQuery.data(this.options.actuator,"active.boxy",this)}this.setContent(b||"<div></div>");this._setupTitleBar();this.boxy.css("display","none").appendTo(document.body);this.toTop();if(this.options.fixed){if(jQuery.browser.msie&&jQuery.browser.version<7){this.options.fixed=false}else{this.boxy.addClass("fixed")}}if(this.options.center&&Boxy._u(this.options.x,this.options.y)){this.center()}else{this.moveTo(Boxy._u(this.options.x)?this.options.x:Boxy.DEFAULT_X,Boxy._u(this.options.y)?this.options.y:Boxy.DEFAULT_Y)}if(this.options.show){this.show()}}Boxy.EF=function(){};jQuery.extend(Boxy,{WRAPPER:"<table cellspacing='0' cellpadding='0' border='0' class='boxy-wrapper'><tr><td class='top' colspan='3'></td></tr><tr><td class='left'></td><td class='boxy-inner'></td><td class='right'></td></tr><tr><td class='bottom' colspan='3'></td></tr></table>",DEFAULTS:{title:null,animate:false,closeable:true,draggable:true,clone:false,actuator:null,center:true,show:true,modal:false,fixed:true,closeText:"[close]",unloadOnHide:false,clickToFront:false,behaviours:Boxy.EF,afterDrop:Boxy.EF,beforeShow:Boxy.EF,afterShow:Boxy.EF,afterHide:Boxy.EF,beforeUnload:Boxy.EF},DEFAULT_X:50,DEFAULT_Y:50,MODAL_OPACITY:0.7,zIndex:4337,dragConfigured:false,resizeConfigured:false,dragging:null,load:function(b,a){a=a||{};var c={url:b,type:"GET",dataType:"html",cache:false,success:function(d){d=jQuery(d);if(a.filter){d=jQuery(a.filter,d)}new Boxy(d,a)}};jQuery.each(["type","cache"],function(){if(this in a){c[this]=a[this];delete a[this]}});jQuery.ajax(c)},get:function(a){var b=jQuery(a).parents(".boxy-wrapper");return b.length?jQuery.data(b[0],"boxy"):null},linkedTo:function(a){return jQuery.data(a,"active.boxy")},alert:function(b,c,a){a=jQuery.extend({txt_ok:link_close,autoClose:2500},a);return Boxy.ask(b,[a.txt_ok],c,a)},confirm:function(b,c,a){a=jQuery.extend({txt_ok:"OK",txt_cancel:"Cancel"},a);return Boxy.ask(b,[a.txt_ok,a.txt_cancel],function(d){if(d==a.txt_ok){c()}},a)},ask:function(c,f,m,n){n=jQuery.extend({modal:true,closeable:false},n||{},{show:true,unloadOnHide:true});var l="";if(n.autoClose>0){l=' class="alert_hint"'}var e=jQuery("<div"+l+"></div>").append(jQuery('<div class="question"></div>').html(c));var a={},j=[];if(f instanceof Array){for(var d=0;d<f.length;d++){a[f[d]]=f[d];j.push(f[d])}}else{for(var b in f){a[f[b]]=b;j.push(f[b])}}var h=jQuery('<form class="answers"></form>');h.html(jQuery.map(j,function(i){return'&nbsp;<button type="button" class="btn btn_small" data-role=\"button\"><span>'+i+"</span></button>"}).join(" "));jQuery("button[type=button]",h).click(function(){var i=this;Boxy.get(this).hide(function(){if(m){m(a[jQuery(i).find("span").text()])}})});jQuery("button[type=button]:contains("+n.txt_cancel+")",h).addClass("btn_small_gray");e.append(h);if(n.autoClose>0){n.modal=false}var g=new Boxy(e,n);if(n.autoClose>0){setTimeout(function(){if(m){m(null)}g.hideAndUnload()},n.autoClose)}},isModalVisible:function(){return jQuery(".boxy-modal-blackout").length>0},_u:function(){for(var a=0;a<arguments.length;a++){if(typeof arguments[a]!="undefined"){return false}}return true},_handleResize:function(a){jQuery(".boxy-modal-blackout").css("display","none").css(Boxy._documentSize()).css("display","block")},_handleDrag:function(a){var b;if(b=Boxy.dragging){b[0].boxy.css({left:a.pageX-b[1],top:a.pageY-b[2]})}},_nextZ:function(){return Boxy.zIndex++},_viewport:function(){var e=document.documentElement,a=document.body,c=window;return jQuery.extend(jQuery.browser.msie?{left:a.scrollLeft||e.scrollLeft,top:a.scrollTop||e.scrollTop}:{left:c.pageXOffset,top:c.pageYOffset},!Boxy._u(c.innerWidth)?{width:c.innerWidth,height:c.innerHeight}:(!Boxy._u(e)&&!Boxy._u(e.clientWidth)&&e.clientWidth!=0?{width:e.clientWidth,height:e.clientHeight}:{width:a.clientWidth,height:a.clientHeight}))},_documentSize:function(){return{height:document.body.offsetHeight}}});Boxy.prototype={estimateSize:function(){this.boxy.css({visibility:"hidden",display:"block"});var a=this.getSize();this.boxy.css("display","none").css("visibility","visible");return a},getSize:function(){return[this.boxy.width(),this.boxy.height()]},getContentSize:function(){var a=this.getContent();return[a.width(),a.height()]},getPosition:function(){var a=this.boxy[0];return[a.offsetLeft,a.offsetTop]},getCenter:function(){var b=this.getPosition();var a=this.getSize();return[Math.floor(b[0]+a[0]/2),Math.floor(b[1]+a[1]/2)]},getInner:function(){return jQuery(".boxy-inner",this.boxy)},getContent:function(){return jQuery(".boxy-content",this.boxy)},setContent:function(a){a=jQuery(a).css({display:"block"}).addClass("boxy-content");if(this.options.clone){a=a.clone(true)}this.getContent().remove();this.getInner().append(a);this._setupDefaultBehaviours(a);this.options.behaviours.call(this,a);return this},moveTo:function(a,b){this.moveToX(a).moveToY(b);return this},moveToX:function(a){if(typeof a=="number"){this.boxy.css({left:a})}else{this.centerX()}return this},moveToY:function(a){if(typeof a=="number"){this.boxy.css({top:a})}else{this.centerY()}return this},centerAt:function(a,c){var b=this[this.visible?"getSize":"estimateSize"]();if(typeof a=="number"){this.moveToX(a-b[0]/2)}if(typeof c=="number"){this.moveToY((c-b[1]/2)>=0?c-b[1]/2:0)}return this},centerAtX:function(a){return this.centerAt(a,null)},centerAtY:function(a){return this.centerAt(null,a)},center:function(b){var a=Boxy._viewport();var c=this.options.fixed?[0,0]:[a.left,a.top];if(!b||b=="x"){this.centerAt(c[0]+a.width/2,null)}if(!b||b=="y"){this.centerAt(null,c[1]+a.height/2)}return this},centerX:function(){return this.center("x")},centerY:function(){return this.center("y")},resize:function(b,a,d){if(!this.visible){return}var c=this._getBoundsForResize(b,a);this.boxy.css({left:c[0],top:c[1]});this.getContent().css({width:c[2],height:c[3]});if(d){d(this)}return this},tween:function(c,a,e){if(!this.visible){return}var d=this._getBoundsForResize(c,a);var b=this;this.boxy.stop().animate({left:d[0],top:d[1]});this.getContent().stop().animate({width:d[2],height:d[3]},function(){if(e){e(b)}});return this},isVisible:function(){return this.visible},show:function(){this._fire("beforeShow");var a=this;if(this.visible){return}if(!Boxy.resizeConfigured){Boxy.resizeConfigured=true;jQuery(window).resize(function(){if(Boxy.isModalVisible()&&a.options.modal){Boxy._handleResize()}a.center()})}if(this.options.modal){this.modalBlackout=jQuery('<div class="boxy-modal-blackout"></div>').css(jQuery.extend(Boxy._documentSize(),{zIndex:Boxy._nextZ(),opacity:Boxy.MODAL_OPACITY})).appendTo(document.body);this.toTop();if(this.options.closeable){jQuery(document.body).bind("keypress.boxy",function(b){var c=b.which||b.keyCode;if(c==27){a.hide();jQuery(document.body).unbind("keypress.boxy")}})}}if(jQuery.browser.msie&&/6.0/.test(navigator.userAgent)&&this.options.modal){jQuery("select").not(jQuery(".boxy-wrapper select")).css("visibility","hidden")}this.boxy.stop().show();this.visible=true;this._fire("afterShow");return this},hide:function(c){if(!this.visible){return}var b=this;var a=(this.options.animate?300:0);if(this.options.modal){jQuery(document.body).unbind("keypress.boxy");jQuery(window).unbind("resize");b.modalBlackout.remove()}b.boxy.css({display:"none"});b.visible=false;b._fire("afterHide");if(c){c(b)}if(b.options.unloadOnHide){b.unload()}if(jQuery.browser.msie&&/6.0/.test(navigator.userAgent)&&this.options.modal){jQuery("select").remove(".boxy-wrapper select").css("visibility","visible")}return this},toggle:function(){this[this.visible?"hide":"show"]();return this},hideAndUnload:function(a){this.options.unloadOnHide=true;this.hide(a);return this},unload:function(){this._fire("beforeUnload");this.boxy.remove();if(this.options.actuator){jQuery.data(this.options.actuator,"active.boxy",false)}},toTop:function(){this.boxy.css({zIndex:Boxy._nextZ()});return this},getTitle:function(){return jQuery("> .title-bar h2",this.getInner()).html()},setTitle:function(a){jQuery("> .title-bar h2",this.getInner()).html(a);return this},_getBoundsForResize:function(c,a){var b=this.getContentSize();var e=[c-b[0],a-b[1]];var d=this.getPosition();return[Math.max(d[0]-e[0]/2,0),Math.max(d[1]-e[1]/2,0),c,a]},_setupTitleBar:function(){if(this.options.title){var b=this;var a=jQuery("<div class='title-bar cfix'></div>").html("<h2>"+this.options.title+"</h2>");if(this.options.closeable){a.append(this.options.closeText)}if(this.options.draggable){a[0].onselectstart=function(){return false};a[0].unselectable="on";a[0].style.MozUserSelect="none";if(!Boxy.dragConfigured){jQuery(document).mousemove(Boxy._handleDrag);Boxy.dragConfigured=true}a.mousedown(function(c){b.toTop();Boxy.dragging=[b,c.pageX-b.boxy[0].offsetLeft,c.pageY-b.boxy[0].offsetTop];jQuery(this).addClass("dragging")}).mouseup(function(){jQuery(this).removeClass("dragging");Boxy.dragging=null;b._fire("afterDrop")})}this.getInner().prepend(a);this._setupDefaultBehaviours(a)}},_setupDefaultBehaviours:function(a){var b=this;if(this.options.clickToFront){a.click(function(){b.toTop()})}jQuery(".close",a).click(function(){b.hide();return false}).mousedown(function(c){c.stopPropagation()})},_fire:function(a){this.options[a].call(this)}}; 
;(function($){ 
	
	$.fn.selBox = function(options){
		
		var opts = $.extend({}, $.fn.selBox.defaults, options);
		
		return this.each(function(){
			
			var sBox  = this;
			var $sBox = $(this);
			
			var o = $.meta ? $.extend({}, opts, $sBox.data()) : opts;
			
			var hasFocus     = 0;
			var hasScroll    = 0;
			var layerHeight  = 0;
			var hoveredIndex = 0;
			
			var $container;
			var $input;
			var $layer;
			var $options;
			var $selectedOpt;
			var $hoveredOpt;
			
			sBox.init = function(){
				$container = sBox.buildContainer();
				$input = sBox.buildInput();
				$layer = sBox.buildLayer();
				
				$container.width((($sBox.width() > o.maxInputWidth) ? o.maxInputWidth : $sBox.width()) + o.arrowWidth);
				$input.width((($sBox.width() > o.maxInputWidth) ? o.maxInputWidth : $sBox.width()));
				
				$container.append($input).append($layer);
				
				$sBox.hide().before($container);
				
				$layer.width((($container.width() > o.maxInputWidth) ? o.maxInputWidth : $container.width()) - 2).css("top", o.selectHeight + 1);
				if ($layer.height() > o.maxHeight) {
					hasScroll = 1;
					$layer.height(o.maxHeight);
				}
				layerHeight = $layer.height();
				
				$options = $("li", $layer);
				$selectedOpt = $options.filter("." + o.optOnClass);
				$hoveredOpt = $options.filter("." + o.optHoverClass);
				
				sBox.assignActions();
			}
			
			sBox.buildContainer = function(){
				return $("<div id=\"" + $sBox.attr("id") + "_sBox\" class=\"" + o.containerClass + "\"></div>");
			}
			
			sBox.buildInput = function(){
				return $("<input type=\"text\" id=\"" + $sBox.attr("id") + "_sBoxInput\" class=\"" + o.inputClass + "\" tabIndex=\"" + $sBox.attr("tabindex") + "\" autocomplete=\"off\" readonly=\"readonly\" style=\"-moz-user-select: none;\" />");
			}
			
			sBox.buildLayer = function(){
				var _opt = "<ul id=\"" + $sBox.attr("id") + "_sBoxOptions\" class=\"" + o.layerClass + "\">";
				
				$("option", sBox).each(function(i, v){
					var $v = $(v);
					var _class = "";
					
					if ($v.is(":selected")) {
						_class = " class=\"" + o.optOnClass + " " + o.optHoverClass + "\"";
						$input.val($v.text());
						hoveredIndex = i;
					}
					
					_opt += "<li" + _class + " rel=\"" + $v.val() + "\">" + $v.html() + "</li>";
				});
				
				_opt += "</ul>";
				
				return $(_opt);
			}
			
			sBox.assignActions = function(){
				
				$container.click(function(e){
					$input.click().get(0).focus();
					e.preventDefault(); e.stopPropagation();
				}).hover(function(e){
					hasFocus = 1;
				}, function(e){
					hasFocus = 0;
				});
				
				$layer.hover(function(){}, function(){
					hasFocus = 0;
				})
				
				$input.focus(function(e){
					e.preventDefault(); e.stopPropagation();
				}).blur(function(e){
					if (hasFocus == 0) {
						$layer.hide();
					}
					e.preventDefault(); e.stopPropagation();
				}).keydown(function(e){
					sBox.inputKey(e.keyCode);
					e.preventDefault(); e.stopPropagation();
				}).click(function(e){
					sBox.toggleLayer();
					e.preventDefault(); e.stopPropagation();
				});
				
				$options.click(function(e){
					$input.get(0).focus();
					sBox.optionChange($(this));
					e.preventDefault(); e.stopPropagation();
				}).mouseover(function(e){
					sBox.hoverChange($(this));
					e.preventDefault(); e.stopPropagation();
				});
			}
			
			sBox.toggleLayer = function(){
				$layer.toggle();
				if ($layer.is(":visible")) {
					hasFocus = 1;
					sBox.scrollTo($selectedOpt);
				}
			}
			
			sBox.scrollTo = function($obj){
				if (hasScroll > 0) {
					var optionOffset = $obj.get(0).offsetTop;
					var layerOffset = $layer.get(0).scrollTop;
					
					if (optionOffset < layerOffset) {
						$layer.scrollTop(optionOffset);
					}
					else if ((optionOffset - layerHeight) >= layerOffset) {
						$layer.scrollTop(optionOffset - layerHeight + $obj.height() + 2);
					}
				}
			}
			
			sBox.inputKey = function(key){
				
				switch(key) {
					case 33: // pgUp
						sBox.moveKey(-10);
						break;
					case 34: // pgDown
						sBox.moveKey(10);
						break;
					case 38: // up
						sBox.moveKey(-1);
						break;
					case 40: // down
						sBox.moveKey(1);
						break;
					case 36: // home
						sBox.moveKey(0);
						break;
					case 35: // end
						sBox.moveKey($options.length - 1);
						break;
					case 13: // return
						if ($layer.is(":visible")) {
							sBox.optionChange($hoveredOpt);
						}
						else {
							$layer.show();
							sBox.scrollTo($selectedOpt);
						}
						break;
					case 27: // escape
						$layer.hide();
						break;
						
					default:
						if ((key >= 48 && key <= 57) || (key >= 65 && key <= 90) || (key >= 97 && key <= 122)) {
						
							var patt = new RegExp("^" + String.fromCharCode(key), "i");
							var hasFirst = 0;
							
							$newOpt = $options.filter(function(i){
								if (!hasFirst && (patt.test($options[i].innerHTML) == true)) {
									hasFirst = 1;
									return true;
								}
								else if ((i > hoveredIndex) && (patt.test($options[i].innerHTML) == true)) {
									return true;
								}
								else {
									return false;
								}
							});
							
							if ($newOpt.length > 0) {
								
								if ($newOpt.length > 1) {
									newSel = 1;
								}
								else {
									newSel = 0
								}
								
								if ($layer.is(":visible")) {
									sBox.scrollTo($($newOpt.get(newSel)));
									sBox.hoverChange($($newOpt.get(newSel)));
								}
								else {
									sBox.optionChange($($newOpt.get(newSel)));
								}
							}
						}
				}
			}
			
			sBox.optionChange = function($obj){
				if (false === o.beforeChange.call(this, $obj)) {
					return false;
				}
				
				$input.val($obj.text());
				
				$("option", sBox).removeAttr("selected").filter("[value='" + $obj.attr("rel") + "']").attr("selected", "selected");
				
				$layer.hide();
				$selectedOpt.removeClass(o.optOnClass);
				$obj.addClass(o.optOnClass);
				$selectedOpt = $obj;
				sBox.hoverChange($obj);
				
				o.afterChange.call(this, $obj);
			}
			
			sBox.hoverChange = function($obj){
				$hoveredOpt.removeClass(o.optHoverClass);
				$obj.addClass(o.optHoverClass);
				$hoveredOpt = $obj;
				hasFocus = 1;
				hoveredIndex = $options.index($obj);
			}
			
			sBox.moveKey = function(offset){
				if ($layer.is(":visible")) {
					var _index = $options.index($hoveredOpt);
					var _new_index;
					
					if ((offset == 0) || (offset == ($options.length - 1))) {
						_new_index = offset;
					}
					else {
						_new_index = ((_index + offset) < 0) ? 0 : (((_index + offset) > ($options.length - 1)) ? ($options.length - 1) : (_index + offset));
					}
					
					sBox.hoverChange($($options[_new_index]));
					sBox.scrollTo($($options[_new_index]));
				}
				else {
					var _index = $options.index($selectedOpt);
					var _new_index
					
					if ((offset == 0) || (offset == ($options.length - 1))) {
						_new_index = offset;
					}
					else {
						_new_index = ((_index + offset) < 0) ? 0 : (((_index + offset) > ($options.length - 1)) ? ($options.length - 1) : (_index + offset));
					}
					
					sBox.optionChange($($options[_new_index]));
				}
			}
			
			sBox.init();
			
		});
	};
	
	$.fn.selBox.defaults = {
		maxHeight      : 240,
		maxInputWidth  : 220,
		arrowWidth     : 24,
		selectHeight   : 30,
		containerClass : "sBox_container",
		inputClass     : "sBox_input",
		layerClass     : "sBox_layer",
		optOnClass     : "sBox_optOn",
		optHoverClass  : "sBox_optHover",
		beforeChange   : function(obj){},
		afterChange    : function(obj){}
	};
	
})(jQuery);  
;(function(b){var a=function(c){if(!c){var c=window.event}c.cancelBubble=true;if(c.stopPropagation){c.stopPropagation()}};b.fn.checkbox=function(c){try{document.execCommand("BackgroundImageCache",false,true)}catch(g){}var f={cls:"jquery-checkbox",empty:"empty.png"};f=b.extend(f,c||{});var d=function(e){var j=e.checked;var h=e.disabled;var i=b(e);if(e.stateInterval){clearInterval(e.stateInterval)}e.stateInterval=setInterval(function(){if(e.disabled!=h){i.trigger((h=!!e.disabled)?"disable":"enable")}if(e.checked!=j){i.trigger((j=!!e.checked)?"check":"uncheck")}},10);return i};return this.each(function(){var i=this;var h=d(i);if(i.wrapper){i.wrapper.remove()}i.wrapper=b('<span class="'+f.cls+'"><span class="mark"><img src="'+f.empty+'" /></span></span>');i.wrapperInner=i.wrapper.children("span:eq(0)");i.wrapper.hover(function(j){i.wrapperInner.addClass(f.cls+"-hover");a(j)},function(j){i.wrapperInner.removeClass(f.cls+"-hover");a(j)});h.css({position:"absolute",zIndex:-1,visibility:"hidden"}).after(i.wrapper);var e=false;if(h.attr("id")){e=b("label[for="+h.attr("id")+"]");if(!e.length){e=false}}if(!e){e=h.closest?h.closest("label"):h.parents("label:eq(0)");if(!e.length){e=false}}if(e){e.hover(function(j){i.wrapper.trigger("mouseover",[j])},function(j){i.wrapper.trigger("mouseout",[j])});e.click(function(j){h.trigger("click",[j]);a(j);return false})}i.wrapper.click(function(j){h.trigger("click",[j]);a(j);return false});h.click(function(j){a(j)});h.bind("disable",function(){i.wrapperInner.addClass(f.cls+"-disabled")}).bind("enable",function(){i.wrapperInner.removeClass(f.cls+"-disabled")});h.bind("check",function(){i.wrapper.addClass(f.cls+"-checked")}).bind("uncheck",function(){i.wrapper.removeClass(f.cls+"-checked")});b("img",i.wrapper).bind("dragstart",function(){return false}).bind("mousedown",function(){return false});if(window.getSelection){i.wrapper.css("MozUserSelect","none")}if(i.checked){i.wrapper.addClass(f.cls+"-checked")}if(i.disabled){i.wrapperInner.addClass(f.cls+"-disabled")}})}})(jQuery);
;(function($){

	$.fn.alphanumeric = function(p) { 

		p = $.extend({
			ichars: "!@#$%^&*()+=[]\\\';,/{}|\":<>?~`.- ",
			nchars: "",
			allow: "",
			allowOnce: ""
		  }, p);	

		return this.each
			(
				function() 
				{

					if (p.nocaps) p.nchars += "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
					if (p.allcaps) p.nchars += "abcdefghijklmnopqrstuvwxyz";
					
					s = p.allow.split('');
					for ( i=0;i<s.length;i++) if (p.ichars.indexOf(s[i]) != -1) s[i] = "\\" + s[i];
					p.allow = s.join('|');
					
					var allowOnce = p.allowOnce;
					s = p.allowOnce.split('');
					for ( i=0;i<s.length;i++) if (p.ichars.indexOf(s[i]) != -1) s[i] = "\\" + s[i];
					p.allowOnce = s.join('|');
					
					var reg = new RegExp(p.allow,'gi');
					var reg2 = new RegExp(p.allowOnce,'gi');
					var ch = p.ichars + p.nchars;
					ch = ch.replace(reg,'');
					ch = ch.replace(reg2,'');
					
					$(this).keypress
						(
							function (e)
								{
									var val = $(this).val();
									if (!e.charCode) k = String.fromCharCode(e.which);
										else k = String.fromCharCode(e.charCode);
										
									if (ch.indexOf(k) != -1) e.preventDefault();
									if ( (allowOnce.indexOf(k) != -1) && (val.indexOf(k) != -1) ) e.preventDefault();
									if (e.ctrlKey&&k=='v') e.preventDefault();
									
								}
								
						);
						
					$(this).bind('contextmenu',function () {return false});
									
				}
			);

	};

	$.fn.numeric = function(p) {
	
		var az = "abcdefghijklmnopqrstuvwxyz";
		az += az.toUpperCase();

		p = $.extend({
			nchars: az
		  }, p);	
		  	
		return this.each (function()
			{
				$(this).alphanumeric(p);
			}
		);
			
	};
	
	$.fn.alpha = function(p) {

		var nm = "1234567890";

		p = $.extend({
			nchars: nm
		  }, p);	

		return this.each (function()
			{
				$(this).alphanumeric(p);
			}
		);
			
	};	

})(jQuery);

;/*!
 * jQuery UI 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI
 */
(function(c){c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.2",plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==
"hidden")return false;b=b&&b=="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,f,g){return c.ui.isOverAxis(a,d,f)&&c.ui.isOverAxis(b,e,g)},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,
NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect",
"none")},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",
1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==undefined)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b=="absolute"||b=="relative"||b=="fixed"){b=parseInt(a.css("zIndex"));if(!isNaN(b)&&b!=0)return b}a=a.parent()}}return 0}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){var b=a.nodeName.toLowerCase(),d=c.attr(a,"tabindex");return(/input|select|textarea|button|object/.test(b)?
!a.disabled:"a"==b||"area"==b?a.href||!isNaN(d):!isNaN(d))&&!c(a)["area"==b?"parents":"closest"](":hidden").length},tabbable:function(a){var b=c.attr(a,"tabindex");return(isNaN(b)||b>=0)&&c(a).is(":focusable")}})}})(jQuery);
;/*!
 * jQuery UI Widget 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(b){var j=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add(this).each(function(){b(this).triggerHandler("remove")});return j.call(b(this),a,c)})};b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=function(h){return!!b.data(h,a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend({},c.options);b[e][a].prototype=
b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):d;if(e&&d.substring(0,1)==="_")return h;e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==undefined){h=i;return false}}):this.each(function(){var g=
b.data(this,a);if(g){d&&g.option(d);g._init()}else b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){this.element=b(c).data(this.widgetName,this);this.options=b.extend(true,{},this.options,b.metadata&&b.metadata.get(c)[this.widgetName],a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();
this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a,e=this;if(arguments.length===0)return b.extend({},e.options);if(typeof a==="string"){if(c===undefined)return this.options[a];d={};d[a]=c}b.each(d,function(f,
h){e._setOption(f,h)});return e},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=
b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
;/*!
 * jQuery UI Mouse 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(c){c.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(a._preventClickEvent){a._preventClickEvent=false;b.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(a){a.originalEvent=a.originalEvent||{};if(!a.originalEvent.mouseHandled){this._mouseStarted&&
this._mouseUp(a);this._mouseDownEvent=a;var b=this,e=a.which==1,f=typeof this.options.cancel=="string"?c(a.target).parents().add(a.target).filter(this.options.cancel).length:false;if(!e||f||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){b.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();
return true}}this._mouseMoveDelegate=function(d){return b._mouseMove(d)};this._mouseUpDelegate=function(d){return b._mouseUp(d)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);c.browser.safari||a.preventDefault();return a.originalEvent.mouseHandled=true}},_mouseMove:function(a){if(c.browser.msie&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&
this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=a.target==this._mouseDownEvent.target;this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-
a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
;/*
 * jQuery UI Sortable 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Sortables
 *
 * Depends:
 *	jquery.ui.core.js
 *	jquery.ui.mouse.js
 *	jquery.ui.widget.js
 */
(function(d){d.widget("ui.sortable",d.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");
this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(a,b){if(a==="disabled"){this.options[a]=b;this.widget()[b?"addClass":"removeClass"]("ui-sortable-disabled")}else d.Widget.prototype._setOption.apply(this,
arguments)},_mouseCapture:function(a,b){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(a);var c=null,e=this;d(a.target).parents().each(function(){if(d.data(this,"sortable-item")==e){c=d(this);return false}});if(d.data(a.target,"sortable-item")==e)c=d(a.target);if(!c)return false;if(this.options.handle&&!b){var f=false;d(this.options.handle,c).find("*").andSelf().each(function(){if(this==a.target)f=true});if(!f)return false}this.currentItem=
c;this._removeCurrentsFromItems();return true},_mouseStart:function(a,b,c){b=this.options;var e=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");d.extend(this.offset,
{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();b.containment&&this._setContainment();
if(b.cursor){if(d("body").css("cursor"))this._storedCursor=d("body").css("cursor");d("body").css("cursor",b.cursor)}if(b.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",b.opacity)}if(b.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",b.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!c)for(c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("activate",a,e._uiHash(this));if(d.ui.ddmanager)d.ui.ddmanager.current=this;d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(a);return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,c=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY<b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop+b.scrollSpeed;else if(a.pageY-this.overflowOffset.top<b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop-b.scrollSpeed;if(this.overflowOffset.left+
this.scrollParent[0].offsetWidth-a.pageX<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft+b.scrollSpeed;else if(a.pageX-this.overflowOffset.left<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(a.pageY-d(document).scrollTop()<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()-b.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()+
b.scrollSpeed);if(a.pageX-d(document).scrollLeft()<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()-b.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()+b.scrollSpeed)}c!==false&&d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+
"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(b=this.items.length-1;b>=0;b--){c=this.items[b];var e=c.item[0],f=this._intersectsWithPointer(c);if(f)if(e!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=e&&!d.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!d.ui.contains(this.element[0],e):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(c))this._rearrange(a,
c);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a);d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);this._trigger("sort",a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,b){if(a){d.ui.ddmanager&&!this.options.dropBehaviour&&d.ui.ddmanager.drop(this,a);if(this.options.revert){var c=this;b=c.placeholder.offset();c.reverting=true;d(this.helper).animate({left:b.left-this.offset.parent.left-c.margins.left+(this.offsetParent[0]==
document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-c.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){c._clear(a)})}else this._clear(a,b);return false}},cancel:function(){var a=this;if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate",
null,a._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,a._uiHash(this));this.containers[b].containerCache.over=0}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();d.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?d(this.domPosition.prev).after(this.currentItem):
d(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};d(b).each(function(){var e=(d(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[-=_](.+)/);if(e)c.push((a.key||e[1]+"[]")+"="+(a.key&&a.expression?e[1]:e[2]))});return c.join("&")},toArray:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};b.each(function(){c.push(d(a.item||this).attr(a.attribute||"id")||"")});return c},
_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,e=this.positionAbs.top,f=e+this.helperProportions.height,g=a.left,h=g+a.width,i=a.top,k=i+a.height,j=this.offset.click.top,l=this.offset.click.left;j=e+j>i&&e+j<k&&b+l>g&&b+l<h;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?j:g<b+this.helperProportions.width/
2&&c-this.helperProportions.width/2<h&&i<e+this.helperProportions.height/2&&f-this.helperProportions.height/2<k},_intersectsWithPointer:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left,a.width);b=b&&a;a=this._getDragVerticalDirection();var c=this._getDragHorizontalDirection();if(!b)return false;return this.floating?c&&c=="right"||a=="down"?2:1:a&&(a=="down"?2:1)},_intersectsWithSides:function(a){var b=
d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width);var c=this._getDragVerticalDirection(),e=this._getDragHorizontalDirection();return this.floating&&e?e=="right"&&a||e=="left"&&!a:c&&(c=="down"&&b||c=="up"&&!b)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=
this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var b=[],c=[],e=this._connectWith();if(e&&a)for(a=e.length-1;a>=0;a--)for(var f=d(e[a]),g=f.length-1;g>=0;g--){var h=d.data(f[g],"sortable");if(h&&h!=this&&!h.options.disabled)c.push([d.isFunction(h.options.items)?
h.options.items.call(h.element):d(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h])}c.push([d.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):d(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(a=c.length-1;a>=0;a--)c[a][0].each(function(){b.push(this)});return d(b)},_removeCurrentsFromItems:function(){for(var a=this.currentItem.find(":data(sortable-item)"),
b=0;b<this.items.length;b++)for(var c=0;c<a.length;c++)a[c]==this.items[b].item[0]&&this.items.splice(b,1)},_refreshItems:function(a){this.items=[];this.containers=[this];var b=this.items,c=[[d.isFunction(this.options.items)?this.options.items.call(this.element[0],a,{item:this.currentItem}):d(this.options.items,this.element),this]],e=this._connectWith();if(e)for(var f=e.length-1;f>=0;f--)for(var g=d(e[f]),h=g.length-1;h>=0;h--){var i=d.data(g[h],"sortable");if(i&&i!=this&&!i.options.disabled){c.push([d.isFunction(i.options.items)?
i.options.items.call(i.element[0],a,{item:this.currentItem}):d(i.options.items,i.element),i]);this.containers.push(i)}}for(f=c.length-1;f>=0;f--){a=c[f][1];e=c[f][0];h=0;for(g=e.length;h<g;h++){i=d(e[h]);i.data("sortable-item",a);b.push({item:i,instance:a,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var b=this.items.length-1;b>=0;b--){var c=this.items[b],e=this.options.toleranceElement?d(this.options.toleranceElement,
c.item):c.item;if(!a){c.width=e.outerWidth();c.height=e.outerHeight()}e=e.offset();c.left=e.left;c.top=e.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(b=this.containers.length-1;b>=0;b--){e=this.containers[b].element.offset();this.containers[b].containerCache.left=e.left;this.containers[b].containerCache.top=e.top;this.containers[b].containerCache.width=this.containers[b].element.outerWidth();this.containers[b].containerCache.height=
this.containers[b].element.outerHeight()}return this},_createPlaceholder:function(a){var b=a||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var e=c.placeholder;c.placeholder={element:function(){var f=d(document.createElement(b.currentItem[0].nodeName)).addClass(e||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!e)f.style.visibility="hidden";return f},update:function(f,g){if(!(e&&!c.forcePlaceholderSize)){g.height()||g.height(b.currentItem.innerHeight()-
parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10));g.width()||g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10))}}}}b.placeholder=d(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placeholder.update(b,b.placeholder)},_contactContainers:function(a){for(var b=null,c=null,e=this.containers.length-1;e>=0;e--)if(!d.ui.contains(this.currentItem[0],
this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(!(b&&d.ui.contains(this.containers[e].element[0],b.element[0]))){b=this.containers[e];c=e}}else if(this.containers[e].containerCache.over){this.containers[e]._trigger("out",a,this._uiHash(this));this.containers[e].containerCache.over=0}if(b)if(this.containers.length===1){this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}else if(this.currentContainer!=this.containers[c]){b=
1E4;e=null;for(var f=this.positionAbs[this.containers[c].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(d.ui.contains(this.containers[c].element[0],this.items[g].item[0])){var h=this.items[g][this.containers[c].floating?"left":"top"];if(Math.abs(h-f)<b){b=Math.abs(h-f);e=this.items[g]}}if(e||this.options.dropOnEmpty){this.currentContainer=this.containers[c];e?this._rearrange(a,e,null,true):this._rearrange(a,null,this.containers[c].element,true);this._trigger("change",a,this._uiHash());this.containers[c]._trigger("change",
a,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}}},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a,this.currentItem])):b.helper=="clone"?this.currentItem.clone():this.currentItem;a.parents("body").length||d(b.appendTo!="parent"?b.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0]);if(a[0]==
this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(a[0].style.width==""||b.forceHelperSize)a.width(this.currentItem.width());if(a[0].style.height==""||b.forceHelperSize)a.height(this.currentItem.height());return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||
0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],
this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;
if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)){var b=
d(a.containment)[0];a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-
this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);return{top:b.top+
this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],
this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var f=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;
if(a.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-b.grid[1]:g+b.grid[1]:g;f=this.originalPageX+Math.round((f-
this.originalPageX)/b.grid[0])*b.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-b.grid[0]:f+b.grid[0]:f}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+
(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())}},_rearrange:function(a,b,c,e){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?b.item[0]:b.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var f=this,g=this.counter;window.setTimeout(function(){g==f.counter&&f.refreshPositions(!e)},0)},_clear:function(a,b){this.reverting=false;var c=[];!this._noFinalSort&&
this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var e in this._storedCSS)if(this._storedCSS[e]=="auto"||this._storedCSS[e]=="static")this._storedCSS[e]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!b&&c.push(function(f){this._trigger("receive",f,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||
this.domPosition.parent!=this.currentItem.parent()[0])&&!b)c.push(function(f){this._trigger("update",f,this._uiHash())});if(!d.ui.contains(this.element[0],this.currentItem[0])){b||c.push(function(f){this._trigger("remove",f,this._uiHash())});for(e=this.containers.length-1;e>=0;e--)if(d.ui.contains(this.containers[e].element[0],this.currentItem[0])&&!b){c.push(function(f){return function(g){f._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[e]));c.push(function(f){return function(g){f._trigger("update",
g,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e>=0;e--){b||c.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this,this.containers[e]));if(this.containers[e].containerCache.over){c.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[e]));this.containers[e].containerCache.over=0}}this._storedCursor&&d("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",
this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!b){this._trigger("beforeStop",a,this._uiHash());for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}return false}b||this._trigger("beforeStop",a,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!b){for(e=
0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){d.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(a){var b=a||this;return{helper:b.helper,placeholder:b.placeholder||d([]),position:b.position,originalPosition:b.originalPosition,offset:b.positionAbs,item:b.currentItem,sender:a?a.element:null}}});d.extend(d.ui.sortable,{version:"1.8.2"})})(jQuery);
;
;/*
 * Date prototype extensions. Doesn't depend on any
 * other code. Doens't overwrite existing methods.
 *
 * Adds dayNames, abbrDayNames, monthNames and abbrMonthNames static properties and isLeapYear,
 * isWeekend, isWeekDay, getDaysInMonth, getDayName, getMonthName, getDayOfYear, getWeekOfYear,
 * setDayOfYear, addYears, addMonths, addDays, addHours, addMinutes, addSeconds methods
 *
 * Copyright (c) 2006 JÃ¶rn Zaefferer and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 *
 * Additional methods and properties added by Kelvin Luck: firstDayOfWeek, dateFormat, zeroTime, asString, fromString -
 * I've added my name to these methods so you know who to blame if they are broken!
 * 
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 *
 */

/**
 * An Array of day names starting with Sunday.
 * 
 * @example dayNames[0]
 * @result 'Sunday'
 *
 * @name dayNames
 * @type Array
 * @cat Plugins/Methods/Date
 */
Date.dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];

/**
 * An Array of abbreviated day names starting with Sun.
 * 
 * @example abbrDayNames[0]
 * @result 'Sun'
 *
 * @name abbrDayNames
 * @type Array
 * @cat Plugins/Methods/Date
 */
Date.abbrDayNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];

/**
 * An Array of month names starting with Janurary.
 * 
 * @example monthNames[0]
 * @result 'January'
 *
 * @name monthNames
 * @type Array
 * @cat Plugins/Methods/Date
 */
Date.monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];

/**
 * An Array of abbreviated month names starting with Jan.
 * 
 * @example abbrMonthNames[0]
 * @result 'Jan'
 *
 * @name monthNames
 * @type Array
 * @cat Plugins/Methods/Date
 */
Date.abbrMonthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];

/**
 * The first day of the week for this locale.
 *
 * @name firstDayOfWeek
 * @type Number
 * @cat Plugins/Methods/Date
 * @author Kelvin Luck
 */
Date.firstDayOfWeek = 1;

/**
 * The format that string dates should be represented as (e.g. 'dd/mm/yyyy' for UK, 'mm/dd/yyyy' for US, 'yyyy-mm-dd' for Unicode etc).
 *
 * @name format
 * @type String
 * @cat Plugins/Methods/Date
 * @author Kelvin Luck
 */
Date.format = 'dd/mm/yyyy';
//Date.format = 'mm/dd/yyyy';
//Date.format = 'yyyy-mm-dd';
//Date.format = 'dd mmm yy';

/**
 * The first two numbers in the century to be used when decoding a two digit year. Since a two digit year is ambiguous (and date.setYear
 * only works with numbers < 99 and so doesn't allow you to set years after 2000) we need to use this to disambiguate the two digit year codes.
 *
 * @name format
 * @type String
 * @cat Plugins/Methods/Date
 * @author Kelvin Luck
 */
Date.fullYearStart = '20';

(function() {

	/**
	 * Adds a given method under the given name 
	 * to the Date prototype if it doesn't
	 * currently exist.
	 *
	 * @private
	 */
	function add(name, method) {
		if( !Date.prototype[name] ) {
			Date.prototype[name] = method;
		}
	};
	
	/**
	 * Checks if the year is a leap year.
	 *
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.isLeapYear();
	 * @result true
	 *
	 * @name isLeapYear
	 * @type Boolean
	 * @cat Plugins/Methods/Date
	 */
	add("isLeapYear", function() {
		var y = this.getFullYear();
		return (y%4==0 && y%100!=0) || y%400==0;
	});
	
	/**
	 * Checks if the day is a weekend day (Sat or Sun).
	 *
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.isWeekend();
	 * @result false
	 *
	 * @name isWeekend
	 * @type Boolean
	 * @cat Plugins/Methods/Date
	 */
	add("isWeekend", function() {
		return this.getDay()==0 || this.getDay()==6;
	});
	
	/**
	 * Check if the day is a day of the week (Mon-Fri)
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.isWeekDay();
	 * @result false
	 * 
	 * @name isWeekDay
	 * @type Boolean
	 * @cat Plugins/Methods/Date
	 */
	add("isWeekDay", function() {
		return !this.isWeekend();
	});
	
	/**
	 * Gets the number of days in the month.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.getDaysInMonth();
	 * @result 31
	 * 
	 * @name getDaysInMonth
	 * @type Number
	 * @cat Plugins/Methods/Date
	 */
	add("getDaysInMonth", function() {
		return [31,(this.isLeapYear() ? 29:28),31,30,31,30,31,31,30,31,30,31][this.getMonth()];
	});
	
	/**
	 * Gets the name of the day.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.getDayName();
	 * @result 'Saturday'
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.getDayName(true);
	 * @result 'Sat'
	 * 
	 * @param abbreviated Boolean When set to true the name will be abbreviated.
	 * @name getDayName
	 * @type String
	 * @cat Plugins/Methods/Date
	 */
	add("getDayName", function(abbreviated) {
		return abbreviated ? Date.abbrDayNames[this.getDay()] : Date.dayNames[this.getDay()];
	});

	/**
	 * Gets the name of the month.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.getMonthName();
	 * @result 'Janurary'
	 *
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.getMonthName(true);
	 * @result 'Jan'
	 * 
	 * @param abbreviated Boolean When set to true the name will be abbreviated.
	 * @name getDayName
	 * @type String
	 * @cat Plugins/Methods/Date
	 */
	add("getMonthName", function(abbreviated) {
		return abbreviated ? Date.abbrMonthNames[this.getMonth()] : Date.monthNames[this.getMonth()];
	});

	/**
	 * Get the number of the day of the year.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.getDayOfYear();
	 * @result 11
	 * 
	 * @name getDayOfYear
	 * @type Number
	 * @cat Plugins/Methods/Date
	 */
	add("getDayOfYear", function() {
		var tmpdtm = new Date("1/1/" + this.getFullYear());
		return Math.floor((this.getTime() - tmpdtm.getTime()) / 86400000);
	});
	
	/**
	 * Get the number of the week of the year.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.getWeekOfYear();
	 * @result 2
	 * 
	 * @name getWeekOfYear
	 * @type Number
	 * @cat Plugins/Methods/Date
	 */
	add("getWeekOfYear", function() {
		return Math.ceil(this.getDayOfYear() / 7);
	});

	/**
	 * Set the day of the year.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.setDayOfYear(1);
	 * dtm.toString();
	 * @result 'Tue Jan 01 2008 00:00:00'
	 * 
	 * @name setDayOfYear
	 * @type Date
	 * @cat Plugins/Methods/Date
	 */
	add("setDayOfYear", function(day) {
		this.setMonth(0);
		this.setDate(day);
		return this;
	});
	
	/**
	 * Add a number of years to the date object.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.addYears(1);
	 * dtm.toString();
	 * @result 'Mon Jan 12 2009 00:00:00'
	 * 
	 * @name addYears
	 * @type Date
	 * @cat Plugins/Methods/Date
	 */
	add("addYears", function(num) {
		this.setFullYear(this.getFullYear() + num);
		return this;
	});
	
	/**
	 * Add a number of months to the date object.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.addMonths(1);
	 * dtm.toString();
	 * @result 'Tue Feb 12 2008 00:00:00'
	 * 
	 * @name addMonths
	 * @type Date
	 * @cat Plugins/Methods/Date
	 */
	add("addMonths", function(num) {
		var tmpdtm = this.getDate();
		
		this.setMonth(this.getMonth() + num);
		
		if (tmpdtm > this.getDate())
			this.addDays(-this.getDate());
		
		return this;
	});
	
	/**
	 * Add a number of days to the date object.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.addDays(1);
	 * dtm.toString();
	 * @result 'Sun Jan 13 2008 00:00:00'
	 * 
	 * @name addDays
	 * @type Date
	 * @cat Plugins/Methods/Date
	 */
	add("addDays", function(num) {
		//this.setDate(this.getDate() + num);
		this.setTime(this.getTime() + (num*86400000) );
		return this;
	});
	
	/**
	 * Add a number of hours to the date object.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.addHours(24);
	 * dtm.toString();
	 * @result 'Sun Jan 13 2008 00:00:00'
	 * 
	 * @name addHours
	 * @type Date
	 * @cat Plugins/Methods/Date
	 */
	add("addHours", function(num) {
		this.setHours(this.getHours() + num);
		return this;
	});

	/**
	 * Add a number of minutes to the date object.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.addMinutes(60);
	 * dtm.toString();
	 * @result 'Sat Jan 12 2008 01:00:00'
	 * 
	 * @name addMinutes
	 * @type Date
	 * @cat Plugins/Methods/Date
	 */
	add("addMinutes", function(num) {
		this.setMinutes(this.getMinutes() + num);
		return this;
	});
	
	/**
	 * Add a number of seconds to the date object.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.addSeconds(60);
	 * dtm.toString();
	 * @result 'Sat Jan 12 2008 00:01:00'
	 * 
	 * @name addSeconds
	 * @type Date
	 * @cat Plugins/Methods/Date
	 */
	add("addSeconds", function(num) {
		this.setSeconds(this.getSeconds() + num);
		return this;
	});
	
	/**
	 * Sets the time component of this Date to zero for cleaner, easier comparison of dates where time is not relevant.
	 * 
	 * @example var dtm = new Date();
	 * dtm.zeroTime();
	 * dtm.toString();
	 * @result 'Sat Jan 12 2008 00:01:00'
	 * 
	 * @name zeroTime
	 * @type Date
	 * @cat Plugins/Methods/Date
	 * @author Kelvin Luck
	 */
	add("zeroTime", function() {
		this.setMilliseconds(0);
		this.setSeconds(0);
		this.setMinutes(0);
		this.setHours(0);
		return this;
	});
	
	/**
	 * Returns a string representation of the date object according to Date.format.
	 * (Date.toString may be used in other places so I purposefully didn't overwrite it)
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.asString();
	 * @result '12/01/2008' // (where Date.format == 'dd/mm/yyyy'
	 * 
	 * @name asString
	 * @type Date
	 * @cat Plugins/Methods/Date
	 * @author Kelvin Luck
	 */
	add("asString", function(format) {
		var r = format || Date.format;
		return r
			.split('yyyy').join(this.getFullYear())
			.split('yy').join((this.getFullYear() + '').substring(2))
			.split('mmmm').join(this.getMonthName(false))
			.split('mmm').join(this.getMonthName(true))
			.split('mm').join(_zeroPad(this.getMonth()+1))
			.split('dd').join(_zeroPad(this.getDate()))
			.split('hh').join(_zeroPad(this.getHours()))
			.split('min').join(_zeroPad(this.getMinutes()))
			.split('ss').join(_zeroPad(this.getSeconds()));
	});
	
	/**
	 * Returns a new date object created from the passed String according to Date.format or false if the attempt to do this results in an invalid date object
	 * (We can't simple use Date.parse as it's not aware of locale and I chose not to overwrite it incase it's functionality is being relied on elsewhere)
	 *
	 * @example var dtm = Date.fromString("12/01/2008");
	 * dtm.toString();
	 * @result 'Sat Jan 12 2008 00:00:00' // (where Date.format == 'dd/mm/yyyy'
	 * 
	 * @name fromString
	 * @type Date
	 * @cat Plugins/Methods/Date
	 * @author Kelvin Luck
	 */
	Date.fromString = function(s, format)
	{
		var f = format || Date.format;
		var d = new Date('01/01/1977');
		
		var mLength = 0;

		var iM = f.indexOf('mmmm');
		if (iM > -1) {
			for (var i=0; i<Date.monthNames.length; i++) {
				var mStr = s.substr(iM, Date.monthNames[i].length);
				if (Date.monthNames[i] == mStr) {
					mLength = Date.monthNames[i].length - 4;
					break;
				}
			}
			d.setMonth(i);
		} else {
			iM = f.indexOf('mmm');
			if (iM > -1) {
				var mStr = s.substr(iM, 3);
				for (var i=0; i<Date.abbrMonthNames.length; i++) {
					if (Date.abbrMonthNames[i] == mStr) break;
				}
				d.setMonth(i);
			} else {
				d.setMonth(Number(s.substr(f.indexOf('mm'), 2)) - 1);
			}
		}
		
		var iY = f.indexOf('yyyy');

		if (iY > -1) {
			if (iM < iY)
			{
				iY += mLength;
			}
			d.setFullYear(Number(s.substr(iY, 4)));
		} else {
			if (iM < iY)
			{
				iY += mLength;
			}
			// TODO - this doesn't work very well - are there any rules for what is meant by a two digit year?
			d.setFullYear(Number(Date.fullYearStart + s.substr(f.indexOf('yy'), 2)));
		}
		var iD = f.indexOf('dd');
		if (iM < iD)
		{
			iD += mLength;
		}
		d.setDate(Number(s.substr(iD, 2)));
		if (isNaN(d.getTime())) {
			return false;
		}
		return d;
	};
	
	// utility method
	var _zeroPad = function(num) {
		var s = '0'+num;
		return s.substring(s.length-2)
		//return ('0'+num).substring(-2); // doesn't work on IE :(
	};
	
})();
;/**
 * Copyright (c) 2008 Kelvin Luck (http://www.kelvinluck.com/)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * .
 * $Id: jquery.datePicker.js 102 2010-09-13 14:00:54Z kelvin.luck $
 **/

(function($){
    
	$.fn.extend({
/**
 * Render a calendar table into any matched elements.
 * 
 * @param Object s (optional) Customize your calendars.
 * @option Number month The month to render (NOTE that months are zero based). Default is today's month.
 * @option Number year The year to render. Default is today's year.
 * @option Function renderCallback A reference to a function that is called as each cell is rendered and which can add classes and event listeners to the created nodes. Default is no callback.
 * @option Number showHeader Whether or not to show the header row, possible values are: $.dpConst.SHOW_HEADER_NONE (no header), $.dpConst.SHOW_HEADER_SHORT (first letter of each day) and $.dpConst.SHOW_HEADER_LONG (full name of each day). Default is $.dpConst.SHOW_HEADER_SHORT.
 * @option String hoverClass The class to attach to each cell when you hover over it (to allow you to use hover effects in IE6 which doesn't support the :hover pseudo-class on elements other than links). Default is dp-hover. Pass false if you don't want a hover class.
 * @type jQuery
 * @name renderCalendar
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('#calendar-me').renderCalendar({month:0, year:2007});
 * @desc Renders a calendar displaying January 2007 into the element with an id of calendar-me.
 *
 * @example
 * var testCallback = function($td, thisDate, month, year)
 * {
 * if ($td.is('.current-month') && thisDate.getDay() == 4) {
 *		var d = thisDate.getDate();
 *		$td.bind(
 *			'click',
 *			function()
 *			{
 *				alert('You clicked on ' + d + '/' + (Number(month)+1) + '/' + year);
 *			}
 *		).addClass('thursday');
 *	} else if (thisDate.getDay() == 5) {
 *		$td.html('Friday the ' + $td.html() + 'th');
 *	}
 * }
 * $('#calendar-me').renderCalendar({month:0, year:2007, renderCallback:testCallback});
 * 
 * @desc Renders a calendar displaying January 2007 into the element with an id of calendar-me. Every Thursday in the current month has a class of "thursday" applied to it, is clickable and shows an alert when clicked. Every Friday on the calendar has the number inside replaced with text.
 **/
		renderCalendar  :   function(s)
		{
			var dc = function(a)
			{
				return document.createElement(a);
			};

			s = $.extend({}, $.fn.datePicker.defaults, s);
			
			if (s.showHeader != $.dpConst.SHOW_HEADER_NONE) {
				var headRow = $(dc('tr'));
				for (var i=Date.firstDayOfWeek; i<Date.firstDayOfWeek+7; i++) {
					var weekday = i%7;
					var day = Date.dayNames[weekday];
					headRow.append(
						jQuery(dc('th')).attr({'scope':'col', 'abbr':day, 'title':day, 'class':(weekday == 0 || weekday == 6 ? 'weekend' : 'weekday')}).html(s.showHeader == $.dpConst.SHOW_HEADER_SHORT ? day.substr(0, 1) : day)
					);
				}
			};
			
			var calendarTable = $(dc('table'))
									.attr(
										{
											'cellspacing':2
										}
									)
									.addClass('jCalendar')
									.append(
										(s.showHeader != $.dpConst.SHOW_HEADER_NONE ? 
											$(dc('thead'))
												.append(headRow)
											:
											dc('thead')
										)
									);
			var tbody = $(dc('tbody'));
			
			var today = (new Date()).zeroTime();
			today.setHours(12);
			
			var month = s.month == undefined ? today.getMonth() : s.month;
			var year = s.year || today.getFullYear();
			
			var currentDate = (new Date(year, month, 1, 12, 0, 0));
			
			
			var firstDayOffset = Date.firstDayOfWeek - currentDate.getDay() + 1;
			if (firstDayOffset > 1) firstDayOffset -= 7;
			var weeksToDraw = Math.ceil(( (-1*firstDayOffset+1) + currentDate.getDaysInMonth() ) /7);
			currentDate.addDays(firstDayOffset-1);
			
			var doHover = function(firstDayInBounds)
			{
				return function()
				{
					if (s.hoverClass) {
						var $this = $(this);
						if (!s.selectWeek) {
							$this.addClass(s.hoverClass);
						} else if (firstDayInBounds && !$this.is('.disabled')) {
							$this.parent().addClass('activeWeekHover');
						}
					}
				}
			};
			var unHover = function()
			{
				if (s.hoverClass) {
					var $this = $(this);
					$this.removeClass(s.hoverClass);
					$this.parent().removeClass('activeWeekHover');
				}
			};

			var w = 0;
			while (w++<weeksToDraw) {
				var r = jQuery(dc('tr'));
				var firstDayInBounds = s.dpController ? currentDate > s.dpController.startDate : false;
				for (var i=0; i<7; i++) {
					var thisMonth = currentDate.getMonth() == month;
					var d = $(dc('td'))
								.text(currentDate.getDate() + '')
								.addClass((thisMonth ? 'current-month ' : 'other-month ') +
													(currentDate.isWeekend() ? 'weekend ' : 'weekday ') +
													(thisMonth && currentDate.getTime() == today.getTime() ? 'today ' : '')
								)
								.data('datePickerDate', currentDate.asString())
								.hover(doHover(firstDayInBounds), unHover)
							;
					r.append(d);
					if (s.renderCallback) {
						s.renderCallback(d, currentDate, month, year);
					}
					// addDays(1) fails in some locales due to daylight savings. See issue 39.
					//currentDate.addDays(1);
					// set the time to midday to avoid any weird timezone issues??
					currentDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), currentDate.getDate()+1, 12, 0, 0);
				}
				tbody.append(r);
			}
			calendarTable.append(tbody);
			
			return this.each(
				function()
				{
					$(this).empty().append(calendarTable);
				}
			);
		},
/**
 * Create a datePicker associated with each of the matched elements.
 *
 * The matched element will receive a few custom events with the following signatures:
 *
 * dateSelected(event, date, $td, status)
 * Triggered when a date is selected. event is a reference to the event, date is the Date selected, $td is a jquery object wrapped around the TD that was clicked on and status is whether the date was selected (true) or deselected (false)
 * 
 * dpClosed(event, selected)
 * Triggered when the date picker is closed. event is a reference to the event and selected is an Array containing Date objects.
 *
 * dpMonthChanged(event, displayedMonth, displayedYear)
 * Triggered when the month of the popped up calendar is changed. event is a reference to the event, displayedMonth is the number of the month now displayed (zero based) and displayedYear is the year of the month.
 *
 * dpDisplayed(event, $datePickerDiv)
 * Triggered when the date picker is created. $datePickerDiv is the div containing the date picker. Use this event to add custom content/ listeners to the popped up date picker.
 *
 * @param Object s (optional) Customize your date pickers.
 * @option Number month The month to render when the date picker is opened (NOTE that months are zero based). Default is today's month.
 * @option Number year The year to render when the date picker is opened. Default is today's year.
 * @option String startDate The first date date can be selected.
 * @option String endDate The last date that can be selected.
 * @option Boolean inline Whether to create the datePicker as inline (e.g. always on the page) or as a model popup. Default is false (== modal popup)
 * @option Boolean createButton Whether to create a .dp-choose-date anchor directly after the matched element which when clicked will trigger the showing of the date picker. Default is true.
 * @option Boolean showYearNavigation Whether to display buttons which allow the user to navigate through the months a year at a time. Default is true.
 * @option Boolean closeOnSelect Whether to close the date picker when a date is selected. Default is true.
 * @option Boolean displayClose Whether to create a "Close" button within the date picker popup. Default is false.
 * @option Boolean selectMultiple Whether a user should be able to select multiple dates with this date picker. Default is false.
 * @option Number numSelectable The maximum number of dates that can be selected where selectMultiple is true. Default is a very high number.
 * @option Boolean clickInput If the matched element is an input type="text" and this option is true then clicking on the input will cause the date picker to appear.
 * @option Boolean rememberViewedMonth Whether the datePicker should remember the last viewed month and open on it. If false then the date picker will always open with the month for the first selected date visible.
 * @option Boolean selectWeek Whether to select a complete week at a time...
 * @option Number verticalPosition The vertical alignment of the popped up date picker to the matched element. One of $.dpConst.POS_TOP and $.dpConst.POS_BOTTOM. Default is $.dpConst.POS_TOP.
 * @option Number horizontalPosition The horizontal alignment of the popped up date picker to the matched element. One of $.dpConst.POS_LEFT and $.dpConst.POS_RIGHT.
 * @option Number verticalOffset The number of pixels offset from the defined verticalPosition of this date picker that it should pop up in. Default in 0.
 * @option Number horizontalOffset The number of pixels offset from the defined horizontalPosition of this date picker that it should pop up in. Default in 0.
 * @option (Function|Array) renderCallback A reference to a function (or an array of separate functions) that is called as each cell is rendered and which can add classes and event listeners to the created nodes. Each callback function will receive four arguments; a jquery object wrapping the created TD, a Date object containing the date this TD represents, a number giving the currently rendered month and a number giving the currently rendered year. Default is no callback.
 * @option String hoverClass The class to attach to each cell when you hover over it (to allow you to use hover effects in IE6 which doesn't support the :hover pseudo-class on elements other than links). Default is dp-hover. Pass false if you don't want a hover class.
 * @option String autoFocusNextInput Whether focus should be passed onto the next input in the form (true) or remain on this input (false) when a date is selected and the calendar closes
 * @type jQuery
 * @name datePicker
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('input.date-picker').datePicker();
 * @desc Creates a date picker button next to all matched input elements. When the button is clicked on the value of the selected date will be placed in the corresponding input (formatted according to Date.format).
 *
 * @example demo/index.html
 * @desc See the projects homepage for many more complex examples...
 **/
		datePicker : function(s)
		{			
			if (!$.event._dpCache) $.event._dpCache = [];
			
			// initialise the date picker controller with the relevant settings...
			s = $.extend({}, $.fn.datePicker.defaults, s);
			
			return this.each(
				function()
				{
					var $this = $(this);
					var alreadyExists = true;
					
					if (!this._dpId) {
						this._dpId = $.event.guid++;
						$.event._dpCache[this._dpId] = new DatePicker(this);
						alreadyExists = false;
					}
					
					if (s.inline) {
						s.createButton = false;
						s.displayClose = false;
						s.closeOnSelect = false;
						$this.empty();
					}
					
					var controller = $.event._dpCache[this._dpId];
					
					controller.init(s);
					
					if (!alreadyExists && s.createButton) {
						// create it!
						controller.button = $('<a href="#" class="dp-choose-date" title="' + $.dpText.TEXT_CHOOSE_DATE + '">' + $.dpText.TEXT_CHOOSE_DATE + '</a>')
								.bind(
									'click',
									function()
									{
										$this.dpDisplay(this);
										this.blur();
										return false;
									}
								);
						$this.after(controller.button);
					}
					
					if (!alreadyExists && $this.is(':text')) {
						$this
							.bind(
								'dateSelected',
								function(e, selectedDate, $td)
								{
									this.value = selectedDate.asString();
								}
							).bind(
								'change',
								function()
								{
									if (this.value == '') {
										controller.clearSelected();
									} else {
										var d = Date.fromString(this.value);
										if (d) {
											controller.setSelected(d, true, true);
										}
									}
								}
							);
						if (s.clickInput) {
							$this.bind(
								'click',
								function()
								{
									// The change event doesn't happen until the input loses focus so we need to manually trigger it...
									$this.trigger('change');
									$this.dpDisplay();
								}
							);
						}
						var d = Date.fromString(this.value);
						if (this.value != '' && d) {
							controller.setSelected(d, true, true);
						}
					}
					
					$this.addClass('dp-applied');
					
				}
			)
		},
/**
 * Disables or enables this date picker
 *
 * @param Boolean s Whether to disable (true) or enable (false) this datePicker
 * @type jQuery
 * @name dpSetDisabled
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('.date-picker').datePicker();
 * $('.date-picker').dpSetDisabled(true);
 * @desc Prevents this date picker from displaying and adds a class of dp-disabled to it (and it's associated button if it has one) for styling purposes. If the matched element is an input field then it will also set the disabled attribute to stop people directly editing the field.
 **/
		dpSetDisabled : function(s)
		{
			return _w.call(this, 'setDisabled', s);
		},
/**
 * Updates the first selectable date for any date pickers on any matched elements.
 *
 * @param String d A string representing the first selectable date (formatted according to Date.format).
 * @type jQuery
 * @name dpSetStartDate
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('.date-picker').datePicker();
 * $('.date-picker').dpSetStartDate('01/01/2000');
 * @desc Creates a date picker associated with all elements with a class of "date-picker" then sets the first selectable date for each of these to the first day of the millenium.
 **/
		dpSetStartDate : function(d)
		{
			return _w.call(this, 'setStartDate', d);
		},
		
		dpGetStartDate : function(d)
		{
			var c = _getController(this[0]);
			if (c) {
				return c.getStartDate();
			}
			return null;
		},
/**
 * Updates the last selectable date for any date pickers on any matched elements.
 *
 * @param String d A string representing the last selectable date (formatted according to Date.format).
 * @type jQuery
 * @name dpSetEndDate
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('.date-picker').datePicker();
 * $('.date-picker').dpSetEndDate('01/01/2010');
 * @desc Creates a date picker associated with all elements with a class of "date-picker" then sets the last selectable date for each of these to the first Janurary 2010.
 **/
		dpSetEndDate : function(d)
		{
			return _w.call(this, 'setEndDate', d);
		},
		
		dpGetEndDate : function(d)
		{
			var c = _getController(this[0]);
			if (c) {
				return c.getEndDate();
			}
			return null;
		},
/**
 * Gets a list of Dates currently selected by this datePicker. This will be an empty array if no dates are currently selected or NULL if there is no datePicker associated with the matched element.
 *
 * @type Array
 * @name dpGetSelected
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('.date-picker').datePicker();
 * alert($('.date-picker').dpGetSelected());
 * @desc Will alert an empty array (as nothing is selected yet)
 **/
		dpGetSelected : function()
		{
			var c = _getController(this[0]);
			if (c) {
				return c.getSelected();
			}
			return null;
		},
/**
 * Selects or deselects a date on any matched element's date pickers. Deselcting is only useful on date pickers where selectMultiple==true. Selecting will only work if the passed date is within the startDate and endDate boundries for a given date picker.
 *
 * @param String d A string representing the date you want to select (formatted according to Date.format).
 * @param Boolean v Whether you want to select (true) or deselect (false) this date. Optional - default = true.
 * @param Boolean m Whether you want the date picker to open up on the month of this date when it is next opened. Optional - default = true.
 * @param Boolean e Whether you want the date picker to dispatch events related to this change of selection. Optional - default = true.
 * @type jQuery
 * @name dpSetSelected
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('.date-picker').datePicker();
 * $('.date-picker').dpSetSelected('01/01/2010');
 * @desc Creates a date picker associated with all elements with a class of "date-picker" then sets the selected date on these date pickers to the first Janurary 2010. When the date picker is next opened it will display Janurary 2010.
 **/
		dpSetSelected : function(d, v, m, e)
		{
			if (v == undefined) v=true;
			if (m == undefined) m=true;
			if (e == undefined) e=true;
			return _w.call(this, 'setSelected', Date.fromString(d), v, m, e);
		},
/**
 * Sets the month that will be displayed when the date picker is next opened. If the passed month is before startDate then the month containing startDate will be displayed instead. If the passed month is after endDate then the month containing the endDate will be displayed instead.
 *
 * @param Number m The month you want the date picker to display. Optional - defaults to the currently displayed month.
 * @param Number y The year you want the date picker to display. Optional - defaults to the currently displayed year.
 * @type jQuery
 * @name dpSetDisplayedMonth
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('.date-picker').datePicker();
 * $('.date-picker').dpSetDisplayedMonth(10, 2008);
 * @desc Creates a date picker associated with all elements with a class of "date-picker" then sets the selected date on these date pickers to the first Janurary 2010. When the date picker is next opened it will display Janurary 2010.
 **/
		dpSetDisplayedMonth : function(m, y)
		{
			return _w.call(this, 'setDisplayedMonth', Number(m), Number(y), true);
		},
/**
 * Displays the date picker associated with the matched elements. Since only one date picker can be displayed at once then the date picker associated with the last matched element will be the one that is displayed.
 *
 * @param HTMLElement e An element that you want the date picker to pop up relative in position to. Optional - default behaviour is to pop up next to the element associated with this date picker.
 * @type jQuery
 * @name dpDisplay
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('#date-picker').datePicker();
 * $('#date-picker').dpDisplay();
 * @desc Creates a date picker associated with the element with an id of date-picker and then causes it to pop up.
 **/
		dpDisplay : function(e)
		{
			return _w.call(this, 'display', e);
		},
/**
 * Sets a function or array of functions that is called when each TD of the date picker popup is rendered to the page
 *
 * @param (Function|Array) a A function or an array of functions that are called when each td is rendered. Each function will receive four arguments; a jquery object wrapping the created TD, a Date object containing the date this TD represents, a number giving the currently rendered month and a number giving the currently rendered year.
 * @type jQuery
 * @name dpSetRenderCallback
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('#date-picker').datePicker();
 * $('#date-picker').dpSetRenderCallback(function($td, thisDate, month, year)
 * {
 * 	// do stuff as each td is rendered dependant on the date in the td and the displayed month and year
 * });
 * @desc Creates a date picker associated with the element with an id of date-picker and then creates a function which is called as each td is rendered when this date picker is displayed.
 **/
		dpSetRenderCallback : function(a)
		{
			return _w.call(this, 'setRenderCallback', a);
		},
/**
 * Sets the position that the datePicker will pop up (relative to it's associated element)
 *
 * @param Number v The vertical alignment of the created date picker to it's associated element. Possible values are $.dpConst.POS_TOP and $.dpConst.POS_BOTTOM
 * @param Number h The horizontal alignment of the created date picker to it's associated element. Possible values are $.dpConst.POS_LEFT and $.dpConst.POS_RIGHT
 * @type jQuery
 * @name dpSetPosition
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('#date-picker').datePicker();
 * $('#date-picker').dpSetPosition($.dpConst.POS_BOTTOM, $.dpConst.POS_RIGHT);
 * @desc Creates a date picker associated with the element with an id of date-picker and makes it so that when this date picker pops up it will be bottom and right aligned to the #date-picker element.
 **/
		dpSetPosition : function(v, h)
		{
			return _w.call(this, 'setPosition', v, h);
		},
/**
 * Sets the offset that the popped up date picker will have from it's default position relative to it's associated element (as set by dpSetPosition)
 *
 * @param Number v The vertical offset of the created date picker.
 * @param Number h The horizontal offset of the created date picker.
 * @type jQuery
 * @name dpSetOffset
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('#date-picker').datePicker();
 * $('#date-picker').dpSetOffset(-20, 200);
 * @desc Creates a date picker associated with the element with an id of date-picker and makes it so that when this date picker pops up it will be 20 pixels above and 200 pixels to the right of it's default position.
 **/
		dpSetOffset : function(v, h)
		{
			return _w.call(this, 'setOffset', v, h);
		},
/**
 * Closes the open date picker associated with this element.
 *
 * @type jQuery
 * @name dpClose
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('.date-pick')
 *		.datePicker()
 *		.bind(
 *			'focus',
 *			function()
 *			{
 *				$(this).dpDisplay();
 *			}
 *		).bind(
 *			'blur',
 *			function()
 *			{
 *				$(this).dpClose();
 *			}
 *		);
 **/
		dpClose : function()
		{
			return _w.call(this, '_closeCalendar', false, this[0]);
		},
/**
 * Rerenders the date picker's current month (for use with inline calendars and renderCallbacks).
 *
 * @type jQuery
 * @name dpRerenderCalendar
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 **/
		dpRerenderCalendar : function()
		{
			return _w.call(this, '_rerenderCalendar');
		},
		// private function called on unload to clean up any expandos etc and prevent memory links...
		_dpDestroy : function()
		{
			// TODO - implement this?
		}
	});
	
	// private internal function to cut down on the amount of code needed where we forward
	// dp* methods on the jQuery object on to the relevant DatePicker controllers...
	var _w = function(f, a1, a2, a3, a4)
	{
		return this.each(
			function()
			{
				var c = _getController(this);
				if (c) {
					c[f](a1, a2, a3, a4);
				}
			}
		);
	};
	
	function DatePicker(ele)
	{
		this.ele = ele;
		
		// initial values...
		this.displayedMonth		=	null;
		this.displayedYear		=	null;
		this.startDate			=	null;
		this.endDate			=	null;
		this.showYearNavigation	=	null;
		this.closeOnSelect		=	null;
		this.displayClose		=	null;
		this.rememberViewedMonth=	null;
		this.selectMultiple		=	null;
		this.numSelectable		=	null;
		this.numSelected		=	null;
		this.verticalPosition	=	null;
		this.horizontalPosition	=	null;
		this.verticalOffset		=	null;
		this.horizontalOffset	=	null;
		this.button				=	null;
		this.renderCallback		=	[];
		this.selectedDates		=	{};
		this.inline				=	null;
		this.context			=	'#dp-popup';
		this.settings			=	{};
	};
	$.extend(
		DatePicker.prototype,
		{	
			init : function(s)
			{
				this.setStartDate(s.startDate);
				this.setEndDate(s.endDate);
				this.setDisplayedMonth(Number(s.month), Number(s.year));
				this.setRenderCallback(s.renderCallback);
				this.showYearNavigation = s.showYearNavigation;
				this.closeOnSelect = s.closeOnSelect;
				this.displayClose = s.displayClose;
				this.rememberViewedMonth =	s.rememberViewedMonth;
				this.selectMultiple = s.selectMultiple;
				this.numSelectable = s.selectMultiple ? s.numSelectable : 1;
				this.numSelected = 0;
				this.verticalPosition = s.verticalPosition;
				this.horizontalPosition = s.horizontalPosition;
				this.hoverClass = s.hoverClass;
				this.setOffset(s.verticalOffset, s.horizontalOffset);
				this.inline = s.inline;
				this.settings = s;
				if (this.inline) {
					this.context = this.ele;
					this.display();
				}
			},
			setStartDate : function(d)
			{
				if (d) {
					this.startDate = Date.fromString(d);
				}
				if (!this.startDate) {
					this.startDate = (new Date()).zeroTime();
				}
				this.setDisplayedMonth(this.displayedMonth, this.displayedYear);
			},
			getStartDate : function()
			{
				return this.startDate;
			},
			setEndDate : function(d)
			{
				if (d) {
					this.endDate = Date.fromString(d);
				}
				if (!this.endDate) {
					this.endDate = (new Date('12/31/2999')); // using the JS Date.parse function which expects mm/dd/yyyy
				}
				if (this.endDate.getTime() < this.startDate.getTime()) {
					this.endDate = this.startDate;
				}
				this.setDisplayedMonth(this.displayedMonth, this.displayedYear);
			},
			getEndDate : function()
			{
				return this.endDate;
			},
			setPosition : function(v, h)
			{
				this.verticalPosition = v;
				this.horizontalPosition = h;
			},
			setOffset : function(v, h)
			{
				this.verticalOffset = parseInt(v) || 0;
				this.horizontalOffset = parseInt(h) || 0;
			},
			setDisabled : function(s)
			{
				$e = $(this.ele);
				$e[s ? 'addClass' : 'removeClass']('dp-disabled');
				if (this.button) {
					$but = $(this.button);
					$but[s ? 'addClass' : 'removeClass']('dp-disabled');
					$but.attr('title', s ? '' : $.dpText.TEXT_CHOOSE_DATE);
				}
				if ($e.is(':text')) {
					$e.attr('disabled', s ? 'disabled' : '');
				}
			},
			setDisplayedMonth : function(m, y, rerender)
			{
				if (this.startDate == undefined || this.endDate == undefined) {
					return;
				}
				var s = new Date(this.startDate.getTime());
				s.setDate(1);
				var e = new Date(this.endDate.getTime());
				e.setDate(1);
				
				var t;
				if ((!m && !y) || (isNaN(m) && isNaN(y))) {
					// no month or year passed - default to current month
					t = new Date().zeroTime();
					t.setDate(1);
				} else if (isNaN(m)) {
					// just year passed in - presume we want the displayedMonth
					t = new Date(y, this.displayedMonth, 1);
				} else if (isNaN(y)) {
					// just month passed in - presume we want the displayedYear
					t = new Date(this.displayedYear, m, 1);
				} else {
					// year and month passed in - that's the date we want!
					t = new Date(y, m, 1)
				}
				// check if the desired date is within the range of our defined startDate and endDate
				if (t.getTime() < s.getTime()) {
					t = s;
				} else if (t.getTime() > e.getTime()) {
					t = e;
				}
				var oldMonth = this.displayedMonth;
				var oldYear = this.displayedYear;
				this.displayedMonth = t.getMonth();
				this.displayedYear = t.getFullYear();

				if (rerender && (this.displayedMonth != oldMonth || this.displayedYear != oldYear))
				{
					this._rerenderCalendar();
					$(this.ele).trigger('dpMonthChanged', [this.displayedMonth, this.displayedYear]);
				}
			},
			setSelected : function(d, v, moveToMonth, dispatchEvents)
			{
				if (d < this.startDate || d.zeroTime() > this.endDate.zeroTime()) {
					// Don't allow people to select dates outside range...
					return;
				}
				var s = this.settings;
				if (s.selectWeek)
				{
					d = d.addDays(- (d.getDay() - Date.firstDayOfWeek + 7) % 7);
					if (d < this.startDate) // The first day of this week is before the start date so is unselectable...
					{
						return;
					}
				}
				if (v == this.isSelected(d)) // this date is already un/selected
				{
					return;
				}
				if (this.selectMultiple == false) {
					this.clearSelected();
				} else if (v && this.numSelected == this.numSelectable) {
					// can't select any more dates...
					return;
				}
				if (moveToMonth && (this.displayedMonth != d.getMonth() || this.displayedYear != d.getFullYear())) {
					this.setDisplayedMonth(d.getMonth(), d.getFullYear(), true);
				}
				this.selectedDates[d.asString()] = v;
				this.numSelected += v ? 1 : -1;
				var selectorString = 'td.' + (d.getMonth() == this.displayedMonth ? 'current-month' : 'other-month');
				var $td;
				$(selectorString, this.context).each(
					function()
					{
						if ($(this).data('datePickerDate') == d.asString()) {
							$td = $(this);
							if (s.selectWeek)
							{
								$td.parent()[v ? 'addClass' : 'removeClass']('selectedWeek');
							}
							$td[v ? 'addClass' : 'removeClass']('selected'); 
						}
					}
				);
				$('td', this.context).not('.selected')[this.selectMultiple &&  this.numSelected == this.numSelectable ? 'addClass' : 'removeClass']('unselectable');
				
				if (dispatchEvents)
				{
					var s = this.isSelected(d);
					$e = $(this.ele);
					var dClone = Date.fromString(d.asString());
					$e.trigger('dateSelected', [dClone, $td, s]);
					$e.trigger('change');
				}
			},
			isSelected : function(d)
			{
				return this.selectedDates[d.asString()];
			},
			getSelected : function()
			{
				var r = [];
				for(var s in this.selectedDates) {
					if (this.selectedDates[s] == true) {
						r.push(Date.fromString(s));
					}
				}
				return r;
			},
			clearSelected : function()
			{
				this.selectedDates = {};
				this.numSelected = 0;
				$('td.selected', this.context).removeClass('selected').parent().removeClass('selectedWeek');
			},
			display : function(eleAlignTo)
			{
				if ($(this.ele).is('.dp-disabled')) return;
				
				eleAlignTo = eleAlignTo || this.ele;
				var c = this;
				var $ele = $(eleAlignTo);
				var eleOffset = $ele.offset();
				
				var $createIn;
				var attrs;
				var attrsCalendarHolder;
				var cssRules;
				
				if (c.inline) {
					$createIn = $(this.ele);
					attrs = {
						'id'		:	'calendar-' + this.ele._dpId,
						'class'	:	'dp-popup dp-popup-inline'
					};

					$('.dp-popup', $createIn).remove();
					cssRules = {
					};
				} else {
					$createIn = $('body');
					attrs = {
						'id'		:	'dp-popup',
						'class'	:	'dp-popup'
					};
					cssRules = {
						'top'	:	eleOffset.top + c.verticalOffset,
						'left'	:	eleOffset.left + c.horizontalOffset
					};
					
					var _checkMouse = function(e)
					{
						var el = e.target;
						var cal = $('#dp-popup')[0];
						
						while (true){
							if (el == cal) {
								return true;
							} else if (el == document) {
								c._closeCalendar();
								return false;
							} else {
								el = $(el).parent()[0];
							}
						}
					};
					this._checkMouse = _checkMouse;
					
					c._closeCalendar(true);
					$(document).bind(
						'keydown.datepicker', 
						function(event)
						{
							if (event.keyCode == 27) {
								c._closeCalendar();
							}
						}
					);
				}
				
				if (!c.rememberViewedMonth)
				{
					var selectedDate = this.getSelected()[0];
					if (selectedDate) {
						selectedDate = new Date(selectedDate);
						this.setDisplayedMonth(selectedDate.getMonth(), selectedDate.getFullYear(), false);
					}
				}
				
				$createIn
					.append(
						$('<div></div>')
							.attr(attrs)
							.css(cssRules)
							.append(
//								$('<a href="#" class="selecteee">aaa</a>'),
								$('<h2></h2>'),
								$('<div class="dp-nav-prev"></div>')
									.append(
										$('<a class="dp-nav-prev-year" href="#" title="' + $.dpText.TEXT_PREV_YEAR + '">&lt;&lt;</a>')
											.bind(
												'click',
												function()
												{
													return c._displayNewMonth.call(c, this, 0, -1);
												}
											),
										$('<a class="dp-nav-prev-month" href="#" title="' + $.dpText.TEXT_PREV_MONTH + '">&lt;</a>')
											.bind(
												'click',
												function()
												{
													return c._displayNewMonth.call(c, this, -1, 0);
												}
											)
									),
								$('<div class="dp-nav-next"></div>')
									.append(
										$('<a class="dp-nav-next-year" href="#" title="' + $.dpText.TEXT_NEXT_YEAR + '">&gt;&gt;</a>')
											.bind(
												'click',
												function()
												{
													return c._displayNewMonth.call(c, this, 0, 1);
												}
											),
										$('<a class="dp-nav-next-month" href="#" title="' + $.dpText.TEXT_NEXT_MONTH + '">&gt;</a>')
											.bind(
												'click',
												function()
												{
													return c._displayNewMonth.call(c, this, 1, 0);
												}
											)
									),
								$('<div class="dp-calendar"></div>')
							)
							.bgIframe()
						);
					
				var $pop = this.inline ? $('.dp-popup', this.context) : $('#dp-popup');
				
				if (this.showYearNavigation == false) {
					$('.dp-nav-prev-year, .dp-nav-next-year', c.context).css('display', 'none');
				}
				if (this.displayClose) {
					$pop.append(
						$('<a href="#" id="dp-close">' + $.dpText.TEXT_CLOSE + '</a>')
							.bind(
								'click',
								function()
								{
									c._closeCalendar();
									return false;
								}
							)
					);
				}
				c._renderCalendar();

				$(this.ele).trigger('dpDisplayed', $pop);
				
				if (!c.inline) {
					if (this.verticalPosition == $.dpConst.POS_BOTTOM) {
						$pop.css('top', eleOffset.top + $ele.height() - $pop.height() + c.verticalOffset);
					}
					if (this.horizontalPosition == $.dpConst.POS_RIGHT) {
						$pop.css('left', eleOffset.left + $ele.width() - $pop.width() + c.horizontalOffset);
					}
//					$('.selectee', this.context).focus();
					$(document).bind('mousedown.datepicker', this._checkMouse);
				}
				
			},
			setRenderCallback : function(a)
			{
				if (a == null) return;
				if (a && typeof(a) == 'function') {
					a = [a];
				}
				this.renderCallback = this.renderCallback.concat(a);
			},
			cellRender : function ($td, thisDate, month, year) {
				var c = this.dpController;
				var d = new Date(thisDate.getTime());
				
				// add our click handlers to deal with it when the days are clicked...
				
				$td.bind(
					'click',
					function()
					{
						var $this = $(this);
						if (!$this.is('.disabled')) {
							c.setSelected(d, !$this.is('.selected') || !c.selectMultiple, false, true);
							if (c.closeOnSelect) {
								// Focus the next input in the formâ€¦
								if (c.settings.autoFocusNextInput) {
									var ele = c.ele;
									var found = false;
									$(':input', ele.form).each(
										function()
										{
											if (found) {
												$(this).focus();
												return false;
											}
											if (this == ele) {
												found = true;
											}
										}
									);
								} else {
									c.ele.focus();
								}
								c._closeCalendar();
							}
						}
					}
				);
				if (c.isSelected(d)) {
					$td.addClass('selected');
					if (c.settings.selectWeek)
					{
						$td.parent().addClass('selectedWeek');
					}
				} else  if (c.selectMultiple && c.numSelected == c.numSelectable) {
					$td.addClass('unselectable');
				}
				
			},
			_applyRenderCallbacks : function()
			{
				var c = this;
				$('td', this.context).each(
					function()
					{
						for (var i=0; i<c.renderCallback.length; i++) {
							$td = $(this);
							c.renderCallback[i].apply(this, [$td, Date.fromString($td.data('datePickerDate')), c.displayedMonth, c.displayedYear]);
						}
					}
				);
				return;
			},
			// ele is the clicked button - only proceed if it doesn't have the class disabled...
			// m and y are -1, 0 or 1 depending which direction we want to go in...
			_displayNewMonth : function(ele, m, y) 
			{
				if (!$(ele).is('.disabled')) {
					this.setDisplayedMonth(this.displayedMonth + m, this.displayedYear + y, true);
				}
				ele.blur();
				return false;
			},
			_rerenderCalendar : function()
			{
				this._clearCalendar();
				this._renderCalendar();
			},
			_renderCalendar : function()
			{
				// set the title...
				$('h2', this.context).html((new Date(this.displayedYear, this.displayedMonth, 1)).asString($.dpText.HEADER_FORMAT));
				
				// render the calendar...
				$('.dp-calendar', this.context).renderCalendar(
					$.extend(
						{},
						this.settings, 
						{
							month			: this.displayedMonth,
							year			: this.displayedYear,
							renderCallback	: this.cellRender,
							dpController	: this,
							hoverClass		: this.hoverClass
						})
				);
				
				// update the status of the control buttons and disable dates before startDate or after endDate...
				// TODO: When should the year buttons be disabled? When you can't go forward a whole year from where you are or is that annoying?
				if (this.displayedYear == this.startDate.getFullYear() && this.displayedMonth == this.startDate.getMonth()) {
					$('.dp-nav-prev-year', this.context).addClass('disabled');
					$('.dp-nav-prev-month', this.context).addClass('disabled');
					$('.dp-calendar td.other-month', this.context).each(
						function()
						{
							var $this = $(this);
							if (Number($this.text()) > 20) {
								$this.addClass('disabled');
							}
						}
					);
					var d = this.startDate.getDate();
					$('.dp-calendar td.current-month', this.context).each(
						function()
						{
							var $this = $(this);
							if (Number($this.text()) < d) {
								$this.addClass('disabled');
							}
						}
					);
				} else {
					$('.dp-nav-prev-year', this.context).removeClass('disabled');
					$('.dp-nav-prev-month', this.context).removeClass('disabled');
					var d = this.startDate.getDate();
					if (d > 20) {
						// check if the startDate is last month as we might need to add some disabled classes...
						var st = this.startDate.getTime();
						var sd = new Date(st);
						sd.addMonths(1);
						if (this.displayedYear == sd.getFullYear() && this.displayedMonth == sd.getMonth()) {
							$('.dp-calendar td.other-month', this.context).each(
								function()
								{
									var $this = $(this);
									if (Date.fromString($this.data('datePickerDate')).getTime() < st) {
										$this.addClass('disabled');
									}
								}
							);
						}
					}
				}
				if (this.displayedYear == this.endDate.getFullYear() && this.displayedMonth == this.endDate.getMonth()) {
					$('.dp-nav-next-year', this.context).addClass('disabled');
					$('.dp-nav-next-month', this.context).addClass('disabled');
					$('.dp-calendar td.other-month', this.context).each(
						function()
						{
							var $this = $(this);
							if (Number($this.text()) < 14) {
								$this.addClass('disabled');
							}
						}
					);
					var d = this.endDate.getDate();
					$('.dp-calendar td.current-month', this.context).each(
						function()
						{
							var $this = $(this);
							if (Number($this.text()) > d) {
								$this.addClass('disabled');
							}
						}
					);
				} else {
					$('.dp-nav-next-year', this.context).removeClass('disabled');
					$('.dp-nav-next-month', this.context).removeClass('disabled');
					var d = this.endDate.getDate();
					if (d < 13) {
						// check if the endDate is next month as we might need to add some disabled classes...
						var ed = new Date(this.endDate.getTime());
						ed.addMonths(-1);
						if (this.displayedYear == ed.getFullYear() && this.displayedMonth == ed.getMonth()) {
							$('.dp-calendar td.other-month', this.context).each(
								function()
								{
									var $this = $(this);
									var cellDay = Number($this.text());
									if (cellDay < 13 && cellDay > d) {
										$this.addClass('disabled');
									}
								}
							);
						}
					}
				}
				this._applyRenderCallbacks();
			},
			_closeCalendar : function(programatic, ele)
			{
				if (!ele || ele == this.ele)
				{
					$(document).unbind('mousedown.datepicker');
					$(document).unbind('keydown.datepicker');
					this._clearCalendar();
					$('#dp-popup a').unbind();
					$('#dp-popup').empty().remove();
					if (!programatic) {
						$(this.ele).trigger('dpClosed', [this.getSelected()]);
					}
				}
			},
			// empties the current dp-calendar div and makes sure that all events are unbound
			// and expandos removed to avoid memory leaks...
			_clearCalendar : function()
			{
				// TODO.
				$('.dp-calendar td', this.context).unbind();
				$('.dp-calendar', this.context).empty();
			}
		}
	);
	
	// static constants
	$.dpConst = {
		SHOW_HEADER_NONE	:	0,
		SHOW_HEADER_SHORT	:	1,
		SHOW_HEADER_LONG	:	2,
		POS_TOP				:	0,
		POS_BOTTOM			:	1,
		POS_LEFT			:	0,
		POS_RIGHT			:	1,
		DP_INTERNAL_FOCUS	:	'dpInternalFocusTrigger'
	};
	// localisable text
	$.dpText = {
		TEXT_PREV_YEAR		:	'Previous year',
		TEXT_PREV_MONTH		:	'Previous month',
		TEXT_NEXT_YEAR		:	'Next year',
		TEXT_NEXT_MONTH		:	'Next month',
		TEXT_CLOSE			:	'Close',
		TEXT_CHOOSE_DATE	:	'Choose date',
		HEADER_FORMAT		:	'mmmm yyyy'
	};
	// version
	$.dpVersion = '$Id: jquery.datePicker.js 102 2010-09-13 14:00:54Z kelvin.luck $';

	$.fn.datePicker.defaults = {
		month				: undefined,
		year				: undefined,
		showHeader			: $.dpConst.SHOW_HEADER_SHORT,
		startDate			: undefined,
		endDate				: undefined,
		inline				: false,
		renderCallback		: null,
		createButton		: true,
		showYearNavigation	: true,
		closeOnSelect		: true,
		displayClose		: false,
		selectMultiple		: false,
		numSelectable		: Number.MAX_VALUE,
		clickInput			: false,
		rememberViewedMonth	: true,
		selectWeek			: false,
		verticalPosition	: $.dpConst.POS_TOP,
		horizontalPosition	: $.dpConst.POS_LEFT,
		verticalOffset		: 0,
		horizontalOffset	: 0,
		hoverClass			: 'dp-hover',
		autoFocusNextInput  : false
	};

	function _getController(ele)
	{
		if (ele._dpId) return $.event._dpCache[ele._dpId];
		return false;
	};
	
	// make it so that no error is thrown if bgIframe plugin isn't included (allows you to use conditional
	// comments to only include bgIframe where it is needed in IE without breaking this plugin).
	if ($.fn.bgIframe == undefined) {
		$.fn.bgIframe = function() {return this; };
	};


	// clean-up
	$(window)
		.bind('unload', function() {
			var els = $.event._dpCache || [];
			for (var i in els) {
				$(els[i].ele)._dpDestroy();
			}
		});
		
	
})(jQuery);

;$.fn.clearForm = function() {
	return this.each(function() {
	var type = this.type, tag = this.tagName.toLowerCase();
	if (tag == 'form') {
		return $(':input',this).clearForm();
	}
	
	if (type == 'text' || type == 'password' || tag == 'textarea') {
		this.value = '';
	}
	else if (type == 'checkbox' || type == 'radio') {
		this.checked = false;
	}
	else if (tag == 'select') {
		this.selectedIndex = 0;
	}
	});
};
;/*
 * Lightweight RTE - jQuery Plugin
 * Copyright (c) 2009 Andrey Gayvoronsky - http://www.gayvoronsky.com
 */
jQuery.fn.rte = function(options) {
	$(this).each( function() {
		new lwRTE (this, options);
	});
}

var lwRTE = function (textarea, options) {
	this.css_url	= options.css;
	this.css_class	= options.frame_class;
	this.base_url	= options.base_url;
	this.width		= options.width || '100%';
	this.height		= options.height || 250;

	this.iframe		= null;
	this.iframe_doc	= null;
	this.textarea	= null;
	this.event		= null;
	this.range		= null;
	this.toolbars	= {rte: '', html : ''};
	this.controls	= {rte: {}, html: {}};
	this.switch_to_text = options.switch_to_text || 'Switch to Text Editor';
	this.switch_to_editor = options.switch_to_editor || 'Switch to Advanced Editor';

	$.extend(this.controls.rte, options.controls_rte);
	$.extend(this.controls.html, options.controls_html);

	if(document.designMode || document.contentEditable) {
		$(textarea).wrap($('<div></div>').addClass('rte-zone').width(this.width));
		this.textarea	= textarea;
		this.enable_design_mode();
		
		$(".rte-zone").append('<div class="link_container"></div>');
		
		var self = this;
		
		$(".link_container").append('<a href="#" class="switch_text smaller dark_on" style="display: none;">' + this.switch_to_text + '</a>');
		$(".switch_text").click(function(e){
			$.cookie('advanced_editor', 'off', { expires: 356});
			self.disable_design_mode();
			$(".switch_advanced").toggle();
			$(".switch_text").toggle();
			return false;
		});
		
		$(".link_container").append('<a href="#" class="switch_advanced smaller dark_on" style="display: none;">' + this.switch_to_editor + '</a>');
		$(".switch_advanced").click(function(e){
			$.cookie('advanced_editor', 'on', { expires: 356});
			self.enable_design_mode();
			$(".switch_advanced").toggle();
			$(".switch_text").toggle();
			return false;
		});
		
		var advanced = $.cookie('advanced_editor');
		if (advanced == "off") {
			this.disable_design_mode();
			$(".switch_advanced").show();
		}
		else {
			$(".switch_text").show();
		}
	}
}

lwRTE.prototype.editor_cmd = function(command, args) {
	this.iframe.contentWindow.focus();
	try {
		this.iframe_doc.execCommand(command, false, args);
	} catch(e) {
		// console.log(e)
	}
	this.iframe.contentWindow.focus();
}

lwRTE.prototype.get_toolbar = function() {
	var editor = (this.iframe) ? $(this.iframe) : $(this.textarea);
	return (editor.prev().hasClass('rte-toolbar')) ? editor.prev() : null;
}

lwRTE.prototype.activate_toolbar = function(editor, tb) {
	var old_tb = this.get_toolbar();

	if(old_tb)
		old_tb.remove();

	$(editor).before($(tb).clone(true));
}
	
lwRTE.prototype.enable_design_mode = function() {
	var self = this;

	// need to be created this way
	self.iframe	= document.createElement("iframe");
	self.iframe.frameBorder = 0;
	self.iframe.frameMargin = 0;
	self.iframe.framePadding = 0;
	self.iframe.width = '100%';
	self.iframe.height = self.height || '100%';

	if($(self.textarea).attr('class'))
		self.iframe.className = $(self.textarea).attr('class');

	if($(self.textarea).attr('id'))
		self.iframe.id = $(self.textarea).attr('id');
	
	if($(self.textarea).attr('name'))
		self.iframe.title = $(self.textarea).attr('name');

	var content	= $(self.textarea).val();

	$(self.textarea).hide().after(self.iframe).remove();
	self.textarea	= null;

	var css = (self.css_url) ? "<link type='text/css' rel='stylesheet' href='" + self.css_url + "' />" : '';
	var base = (self.base_url) ? "<base href='" + self.base_url + "' />" : '';
	var style = (self.css_class) ? "class='" + self.css_class + "'" : '';

	// Mozilla need this to display caret
	if(($.trim(content) == '') && (!$.browser.msie) && ($.cookie('advanced_editor') != "off")) {
		content	= '<br />';
	}
	
	var doc = "<html><head>" + base + css + "</head><body " + style + " style='font-size:13px; font-family:arial,helvetica,clean,sans-serif;padding:0px'>" + content + "</body></html>";

	self.iframe_doc	= self.iframe.contentWindow.document;

	try {
		self.iframe_doc.designMode = 'on';
	} catch ( e ) {
		// Will fail on Gecko if the editor is placed in an hidden container element
		// The design mode will be set ones the editor is focused
		$(self.iframe_doc).focus(function() { self.iframe_doc.designMode(); } );
	}

	self.iframe_doc.open();
	self.iframe_doc.write(doc);
	self.iframe_doc.close();

	if(!self.toolbars.rte)
		self.toolbars.rte	= self.create_toolbar(self.controls.rte);

	self.activate_toolbar(self.iframe, self.toolbars.rte);

	$(self.iframe).parents('form').submit(function(){
		if ($.cookie('advanced_editor') != "off") {
			self.disable_design_mode(true);
		}
	});

	$(self.iframe_doc).mouseup(function(event) { 
		if(self.iframe_doc.selection)
			self.range = self.iframe_doc.selection.createRange();  //store to restore later(IE fix)

		self.set_selected_controls( (event.target) ? event.target : event.srcElement, self.controls.rte); 
	});

	$(self.iframe_doc).keyup(function(event) { self.set_selected_controls( self.get_selected_element(), self.controls.rte); });

	// Mozilla CSS styling off
	if(!$.browser.msie)
		self.editor_cmd('styleWithCSS', false);
}
    
lwRTE.prototype.disable_design_mode = function(submit) {
	var self = this;

	self.textarea = (submit) ? $('<input type="hidden" />').get(0) : $('<textarea></textarea>').width('100%').height(self.height).get(0);

	if(self.iframe.className)
		self.textarea.className = self.iframe.className;

	if(self.iframe.id)
		self.textarea.id = self.iframe.id;
		
	if(self.iframe.title)
		self.textarea.name = self.iframe.title;
	
	$(self.textarea).val($('body', self.iframe_doc).html());
	$(self.iframe).before(self.textarea);

	if(!self.toolbars.html)
		self.toolbars.html	= self.create_toolbar(self.controls.html);

	if(submit != true) {
		$(self.iframe).remove();
		self.iframe = null;
		self.activate_toolbar(self.textarea, self.toolbars.html);
	}
}
    
lwRTE.prototype.toolbar_click = function(obj, control) {
	var fn = control.exec;

	$('.rte-panel', this.get_toolbar()).remove();

	if(fn)
		fn.apply(this);
	else if(this.iframe && control.command) {
		var args = control.args;

		if(obj.tagName.toUpperCase() == 'SELECT') {
			args = obj.options[obj.selectedIndex].value;

			if(args.length <= 0)
				return;
		}

		this.editor_cmd(control.command, args);
	}
}
	
lwRTE.prototype.create_toolbar = function(controls) {
	var self = this;
	var tb = $("<div></div>").addClass('rte-toolbar').width('100%').append($("<ul></ul>")).append($("<div></div>").addClass('clear'));
	var obj, li;
	
	for (var key in controls){
		if(controls[key].separator) {
			li = $("<li></li>").addClass('separator');
		} else {
			if(controls[key].select) {
				obj = $(controls[key].select)
					.change( function(e) {
						self.event = e;
						self.toolbar_click(this, controls[this.className]); 
						return false;
					});
			} else {
				obj = $("<a href='#'></a>")
					.attr('title', (controls[key].hint) ? controls[key].hint : key)
					.attr('rel', key)
					.click( function(e) {
						self.event = e;
						self.toolbar_click(this, controls[this.rel]); 
						return false;
					})
			}

			li = $("<li></li>").append(obj.addClass(key));
		}

		$("ul",tb).append(li);
	}

	$('.enable', tb).click(function() {
		self.enable_design_mode();
		return false; 
	});

	$('.disable', tb).click(function() {
		self.disable_design_mode();
		return false; 
	});

	return tb.get(0);
}

lwRTE.prototype.create_panel = function(title, width) {
	var self = this;
	var tb = self.get_toolbar();

	if(!tb)
		return false;

	$('.rte-panel', tb).remove();
	var drag, event;
	var left = self.event.pageX;
	var top = self.event.pageY;
	var right = left + width;
	
	// Check coordinates
	var tb_right = tb.position().left + tb.width();
	
	if (right > tb_right) {
		left = left - (right - tb_right) - 15;
	}
	
	var panel	= $('<div></div>').hide().addClass('rte-panel').css({left: left, top: top});
	$('<div></div>')
		.addClass('rte-panel-title')
		.html(title)
		.append($("<a class='close' href='#'>X</a>")
		.click( function() { panel.remove(); return false; }))
		.mousedown( function() { drag = true; return false; })
		.mouseup( function() { drag = false; return false; })
		.mousemove( 
			function(e) {
				if(drag && event) {
					left -= event.pageX - e.pageX;
					top -=  event.pageY - e.pageY;
					panel.css( {left: left, top: top} ); 
				}

				event = e;
				return false;
			} 
		)
		.appendTo(panel);

	if(width)
		panel.width(width);

	tb.append(panel);
	return panel;
}

lwRTE.prototype.get_content = function() {
	return (this.iframe) ? $('body', this.iframe_doc).html() : $(this.textarea).val();
}

lwRTE.prototype.set_content = function(content) {
	(this.iframe) ? $('body', this.iframe_doc).html(content) : $(this.textarea).val(content);
}

lwRTE.prototype.set_selected_controls = function(node, controls) {
	var toolbar = this.get_toolbar();

	if(!toolbar)
		return false;
		
	var key, i_node, obj, control, tag, i, value;
	// $(node).addClass("bold italic");
	
	for (key in controls) {
		control = controls[key];
		obj = $('.' + key, toolbar);
		
		obj.removeClass('active');
		
		if(!control.tags)
			continue;

		try {
			tmp = obj.get(0);
		}
		catch(err) { continue; }
		
		i_node = node;
		
		do {
			if(i_node.nodeType != 1)
				continue;

			tag	= i_node.nodeName.toLowerCase();
			if($.inArray(tag, control.tags) < 0 )
				continue;

			if(control.select) {
				try {
					obj = obj.get(0);
				}
				catch(err) { break; }
				if(obj.tagName.toUpperCase() == 'SELECT') {
					obj.selectedIndex = 0;

					for(i = 0; i < obj.options.length; i++) {
						value = obj.options[i].value;
						if(value && ((control.arg_cmp && control.arg_cmp(i_node, value)) || tag == value)) {
							obj.selectedIndex = i;
							break;
						}
					}
				}
			} else
					obj.addClass('active');
		}  while(i_node = i_node.parentNode)
	}
		
	return true;
}

lwRTE.prototype.get_selected_element = function () {
	var node, selection, range;
	var iframe_win	= this.iframe.contentWindow;
	
	if (iframe_win.getSelection) {
		try {
			selection = iframe_win.getSelection();
			range = selection.getRangeAt(0);
			node = range.commonAncestorContainer;
		} catch(e){
			return false;
		}
	} else {
		try {
			selection = iframe_win.document.selection;
			range = selection.createRange();
			node = range.parentElement();
		} catch (e) {
			return false;
		}
	}

	return node;
}

lwRTE.prototype.get_selection_range = function() {
	var rng	= null;
	var iframe_window = this.iframe.contentWindow;
	this.iframe.focus();
	
	if(iframe_window.getSelection) {
		rng = iframe_window.getSelection().getRangeAt(0);
		if($.browser.opera) { //v9.63 tested only
			var s = rng.startContainer;
			if(s.nodeType === Node.TEXT_NODE)
				rng.setStartBefore(s.parentNode);
		}
	} else {
		this.range.select(); //Restore selection, if IE lost focus.
		rng = this.iframe_doc.selection.createRange();
	}

	return rng;
}

lwRTE.prototype.get_selected_text = function() {
	var iframe_win = this.iframe.contentWindow;

	if(iframe_win.getSelection)	
		return iframe_win.getSelection().toString();

	this.range.select(); //Restore selection, if IE lost focus.
	return iframe_win.document.selection.createRange().text;
};

lwRTE.prototype.get_selected_html = function() {
	var html = null;
	var iframe_window = this.iframe.contentWindow;
	var rng	= this.get_selection_range();

	if(rng) {
		if(iframe_window.getSelection) {
			var e = document.createElement('div');
			e.appendChild(rng.cloneContents());
			html = e.innerHTML;		
		} else {
			html = rng.htmlText;
		}
	}

	return html;
};
	
lwRTE.prototype.selection_replace_with = function(html) {
	var rng	= this.get_selection_range();
	var iframe_window = this.iframe.contentWindow;

	if(!rng)
		return;
	
	this.editor_cmd('removeFormat'); // we must remove formating or we will get empty format tags!

	if(iframe_window.getSelection) {
		rng.deleteContents();
		rng.insertNode(rng.createContextualFragment(html));
		this.editor_cmd('delete');
	} else {
		this.editor_cmd('delete');
		rng.pasteHTML(html);
	}
}
;/*
 * Lightweight RTE - jQuery Plugin
 * Basic Toolbars
 * Copyright (c) 2009 Andrey Gayvoronsky - http://www.gayvoronsky.com
 */
var rte_tag		= '-rte-tmp-tag-';

var	rte_toolbar = {
	/*disable: {hint: 'Source editor'},
	s1				: {separator: true},*/
	bold			: {command: 'bold', tags:['b', 'strong']},
	italic			: {command: 'italic', tags:['i', 'em']},
	strikeThrough	: {command: 'strikethrough', tags: ['s', 'strike'] },
	underline		: {command: 'underline', tags: ['u']},
	s2				: {separator: true },
	justifyLeft   	: {command: 'justifyleft'},
	justifyCenter	: {command: 'justifycenter'},
	justifyRight	: {command: 'justifyright'},
	justifyFull		: {command: 'justifyfull'},
	s3				: {separator : true},
	indent			: {command: 'indent'},
	outdent			: {command: 'outdent'},
	s4				: {separator : true},
	subscript		: {command: 'subscript', tags: ['sub']},
	superscript		: {command: 'superscript', tags: ['sup']},
	s5				: {separator : true },
	orderedList		: {command: 'insertorderedlist', tags: ['ol'] },
	unorderedList	: {command: 'insertunorderedlist', tags: ['ul'] },
	s6				: {separator : true },
	block			: {command: 'formatblock', select: '\
<select>\
	<option value="">- style -</option>\
	<option value="<p>">Paragraph</option>\
	<option value="<h1>">Header 1</option>\
	<option value="<h2>">Header 2</options>\
	<option value="<h3>">Header 3</option>\
	<option value="<h4>">Header 4</options>\
	<option value="<h5>">Header 5</option>\
	<option value="<h6>">Header 6</options>\
</select>\
	', arg_cmp: 
		function(node, arg) {
			arg = arg.replace(/<([^>]*)>/, '$1');
			return (arg.toLowerCase() == node.nodeName.toLowerCase());
		}
	, tags: ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']},
	font			: {command: 'fontname', select: '\
<select>\
	<option value="">- font -</option>\
	<option value="arial">Arial</option>\
	<option value="comic sans ms">Comic Sans</option>\
	<option value="courier new">Courier New</options>\
	<option value="georgia">Georgia</option>\
	<option value="helvetica">Helvetica</options>\
	<option value="impact">Impact</option>\
	<option value="times new roman">Times</options>\
	<option value="trebuchet ms">Trebuchet</options>\
	<option value="verdana">Verdana</options>\
</select>\
	', tags: ['font']},
	size			: {command: 'fontsize', select: '\
<select>\
	<option value="">-</option>\
	<option value="1">1 (8pt)</option>\
	<option value="2">2 (10pt)</option>\
	<option value="3">3 (12pt)</options>\
	<option value="4">4 (14pt)</option>\
	<option value="5">5 (16pt)</options>\
	<option value="6">6 (18pt)</option>\
	<option value="7">7 (20pt)</options>\
</select>\
	', tags: ['font']},
	color			: {exec: 
		function() {
			var self = this;
			var panel = self.create_panel('Set color for text', 385);
			var mouse_down = false;
			var mouse_over = false;
			panel.append('\
				<div class="colorpicker1"><div class="rgb" id="rgb"></div></div>\
				<div class="colorpicker1"><div class="gray" id="gray"></div></div>\
				<div class="colorpicker2">\
					<div class="palette" id="palette"></div>\
					<div class="preview" id="preview"></div>\
					<div class="color" id="color"></div>\
				</div>\
				<div class="clear"></div>\
				<p class="submit"><button id="ok">Ok</button><button id="cancel">Cancel</button></p>'
			).show();

			var preview = $('#preview', panel);
			var color = $("#color", panel);
			var palette = $("#palette", panel);
			var colors = [
				'#660000', '#990000', '#cc0000', '#ff0000', '#333333',
				'#006600', '#009900', '#00cc00', '#00ff00', '#666666',
				'#000066', '#000099', '#0000cc', '#0000ff', '#999999',
				'#909000', '#900090', '#009090', '#ffffff', '#cccccc',
				'#ffff00', '#ff00ff', '#00ffff', '#000000', '#eeeeee'
			];
			
			for(var i = 0; i < 25; i++)
				$("<div></div>").addClass("item").css('background', colors[i]).appendTo(palette);
			
			var height = $('#rgb').height();
			var part_width = $('#rgb').width() / 6;

			$('#rgb,#gray,#palette', panel)
				.mousedown( function(e) {mouse_down = true; return false; } )
				.mouseup( function(e) {mouse_down = false; return false; } )
				.mouseout( function(e) {mouse_over = false; return false; } )
				.mouseover( function(e) {mouse_over = true; return false; } );

			$('#rgb').mousemove( function(e) { if(mouse_down && mouse_over) compute_color(this, true, false, false, e); return false;} );
			$('#gray').mousemove( function(e) { if(mouse_down && mouse_over) compute_color(this, false, true, false, e); return false;} );
			$('#palette').mousemove( function(e) { if(mouse_down && mouse_over) compute_color(this, false, false, true, e); return false;} );
			$('#rgb').click( function(e) { compute_color(this, true, false, false, e); return false;} );
			$('#gray').click( function(e) { compute_color(this, false, true, false, e); return false;} );
			$('#palette').click( function(e) { compute_color(this, false, false, true, e); $('#ok', panel).click(); return false;} );

			$('#cancel', panel).click( function() { panel.remove(); return false; } );
			$('#ok', panel).click( 
				function() {
					var value = color.html();

					if(value.length > 0 && value.charAt(0) =='#') {
						if(self.iframe_doc.selection) //IE fix for lost focus
							self.range.select();

						self.editor_cmd('foreColor', value);
					}
					
					panel.remove(); 
					return false;
				}
			);

			function to_hex(n) {
				var s = "0123456789abcdef";
				return s.charAt(Math.floor(n / 16)) + s.charAt(n % 16);
			}			

			function get_abs_pos(element) {
				var r = { x: element.offsetLeft, y: element.offsetTop };

				if (element.offsetParent) {
					var tmp = get_abs_pos(element.offsetParent);
					r.x += tmp.x;
					r.y += tmp.y;
				}

				return r;
			};
			
			function get_xy(obj, event) {
				var x, y;
				event = event || window.event;
				var el = event.target || event.srcElement;

				// use absolute coordinates
				var pos = get_abs_pos(obj);

				// subtract distance to middle
				x = event.pageX  - pos.x;
				y = event.pageY - pos.y;

				return { x: x, y: y };
			}
			
			function compute_color(obj, is_rgb, is_gray, is_palette, e) {
				var r, g, b, c;

				var mouse = get_xy(obj, e);
				var x = mouse.x;
				var y = mouse.y;

				if(is_rgb) {
					r = (x >= 0)*(x < part_width)*255 + (x >= part_width)*(x < 2*part_width)*(2*255 - x * 255 / part_width) + (x >= 4*part_width)*(x < 5*part_width)*(-4*255 + x * 255 / part_width) + (x >= 5*part_width)*(x < 6*part_width)*255;
					g = (x >= 0)*(x < part_width)*(x * 255 / part_width) + (x >= part_width)*(x < 3*part_width)*255	+ (x >= 3*part_width)*(x < 4*part_width)*(4*255 - x * 255 / part_width);
					b = (x >= 2*part_width)*(x < 3*part_width)*(-2*255 + x * 255 / part_width) + (x >= 3*part_width)*(x < 5*part_width)*255 + (x >= 5*part_width)*(x < 6*part_width)*(6*255 - x * 255 / part_width);

					var k = (height - y) / height;

					r = 128 + (r - 128) * k;
					g = 128 + (g - 128) * k;
					b = 128 + (b - 128) * k;
				} else if (is_gray) {
					r = g = b = (height - y) * 1.7;
				} else if(is_palette) {
					x = Math.floor(x / 10);
					y = Math.floor(y / 10);
					c = colors[x + y * 5];
				}

				if(!is_palette)
					c = '#' + to_hex(r) + to_hex(g) + to_hex(b);

				preview.css('background', c);
				color.html(c);
			}
		}
	},
	image			: {exec:
		function() {
			var self = this;
			var panel = self.create_panel('Insert image', 385);
			panel.append('\
				<p><label>URL</label><input type="text" id="url" size="30" value=""><button id="view">View</button></p>\
				<div class="clear"></div>\
				<p class="submit"><button id="ok">Ok</button><button id="cancel">Cancel</button></p>'
			).show();

			var url = $('#url', panel);
			
			$('#view', panel).click( function() {
					(url.val().length >0 ) ? window.open(url.val()) : alert("Enter URL of image to view");
					return false;
				}
			);
			
			$('#cancel', panel).click( function() { panel.remove(); return false;} );
			$('#ok', panel).click( 
				function() {
					var file = url.val();
					self.editor_cmd('insertImage', file);
					panel.remove(); 
					return false;
				}
			)
		}, tags: ['img'] },
	link			: {exec: 
		function() {
			var self = this;
			var panel = self.create_panel("Create link / Attach file", 385);
			panel.append('\
				<p><label>URL</label><input type="text" id="url" size="30" value=""><button id="view">View</button></p>\
				<div class="clear"></div>\
				<p><label>Title</label><input type="text" id="title" size="30" value=""><label>Target</label><select id="target"><option value="">default</option><option value="_blank">new</option></select></p>\
				<div class="clear"></div>\
				<p class="submit"><button id="ok">Ok</button><button id="cancel">Cancel</button></p>'
			).show();

			$('#cancel', panel).click( function() { panel.remove(); return false; } );

			var url = $('#url', panel);
			
			$('#view', panel).click( function() {
					(url.val().length >0 ) ? window.open(url.val()) : alert("Enter URL to view");
					return false;
				}
			);
			$('#ok', panel).click( 
				function() {
					var url = $('#url', panel).val();
					var target = $('#target', panel).val();
					var title = $('#title', panel).val();

					if(self.get_selected_text().length <= 0) {
						alert('Select the text you wish to link!');
						return false;
					}

					panel.remove(); 

					if(url.length <= 0)
						return false;

					self.editor_cmd('unlink');

					// we wanna well-formed linkage (<p>,<h1> and other block types can't be inside of link due to WC3)
					self.editor_cmd('createLink', rte_tag);
					var tmp = $('<span></span>').append(self.get_selected_html());

					if(target.length > 0)
						$('a[href*="' + rte_tag + '"]', tmp).attr('target', target);

					if(title.length > 0)
						$('a[href*="' + rte_tag + '"]', tmp).attr('title', title);

					$('a[href*="' + rte_tag + '"]', tmp).attr('href', url);
				
					self.selection_replace_with(tmp.html());
					return false;
				}
			)
		}, tags: ['a'] },
	unlink			: {command: 'unlink'},
	s8				: {separator : true },
	removeFormat	: {exec: 
		function() {
			this.editor_cmd('removeFormat');
			this.editor_cmd('unlink');
		}},
	word			: {exec: function() { this.set_content(cleanup_word(this.get_content(), true, true, true)); }},
	clear			: {exec: function() { if(confirm('Clear Document?')) this.set_content(''); }}
};

var	rte_toolbar_prod = {
	/*disable: {hint: 'Source editor'},
	s1				: {separator: true},*/
	bold			: {command: 'bold', tags:['b', 'strong']},
	italic			: {command: 'italic', tags:['i', 'em']},
	strikeThrough	: {command: 'strikethrough', tags: ['s', 'strike'] },
	underline		: {command: 'underline', tags: ['u']},
	s2				: {separator: true },
	justifyLeft   	: {command: 'justifyleft'},
	justifyCenter	: {command: 'justifycenter'},
	justifyRight	: {command: 'justifyright'},
	justifyFull		: {command: 'justifyfull'},
	s3				: {separator : true},
	indent			: {command: 'indent'},
	outdent			: {command: 'outdent'},
	s4				: {separator : true },
	orderedList		: {command: 'insertorderedlist', tags: ['ol'] },
	unorderedList	: {command: 'insertunorderedlist', tags: ['ul'] },
	s5				: {separator : true },
	block			: {command: 'formatblock', select: '\
<select>\
	<option value="">- style -</option>\
	<option value="<p>">Paragraph</option>\
	<option value="<h1>">Header 1</option>\
	<option value="<h2>">Header 2</options>\
	<option value="<h3>">Header 3</option>\
	<option value="<h4>">Header 4</options>\
	<option value="<h5>">Header 5</option>\
	<option value="<h6>">Header 6</options>\
</select>\
	', arg_cmp: 
		function(node, arg) {
			arg = arg.replace(/<([^>]*)>/, '$1');
			return (arg.toLowerCase() == node.nodeName.toLowerCase());
		}
	, tags: ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']},
	font			: {command: 'fontname', select: '\
<select>\
	<option value="">- font -</option>\
	<option value="arial">Arial</option>\
	<option value="comic sans ms">Comic Sans</option>\
	<option value="courier new">Courier New</options>\
	<option value="georgia">Georgia</option>\
	<option value="helvetica">Helvetica</options>\
	<option value="impact">Impact</option>\
	<option value="times new roman">Times</options>\
	<option value="trebuchet ms">Trebuchet</options>\
	<option value="verdana">Verdana</options>\
</select>\
	', tags: ['font']},
	size			: {command: 'fontsize', select: '\
<select>\
	<option value="">-</option>\
	<option value="1">1 (8pt)</option>\
	<option value="2">2 (10pt)</option>\
	<option value="3">3 (12pt)</options>\
	<option value="4">4 (14pt)</option>\
	<option value="5">5 (16pt)</options>\
	<option value="6">6 (18pt)</option>\
	<option value="7">7 (20pt)</options>\
</select>\
	', tags: ['font']},
	color			: {exec: 
		function() {
			var self = this;
			var panel = self.create_panel('Set color for text', 385);
			var mouse_down = false;
			var mouse_over = false;
			panel.append('\
				<div class="colorpicker1"><div class="rgb" id="rgb"></div></div>\
				<div class="colorpicker1"><div class="gray" id="gray"></div></div>\
				<div class="colorpicker2">\
					<div class="palette" id="palette"></div>\
					<div class="preview" id="preview"></div>\
					<div class="color" id="color"></div>\
				</div>\
				<div class="clear"></div>\
				<p class="submit"><button id="ok">Ok</button><button id="cancel">Cancel</button></p>'
			).show();

			var preview = $('#preview', panel);
			var color = $("#color", panel);
			var palette = $("#palette", panel);
			var colors = [
				'#660000', '#990000', '#cc0000', '#ff0000', '#333333',
				'#006600', '#009900', '#00cc00', '#00ff00', '#666666',
				'#000066', '#000099', '#0000cc', '#0000ff', '#999999',
				'#909000', '#900090', '#009090', '#ffffff', '#cccccc',
				'#ffff00', '#ff00ff', '#00ffff', '#000000', '#eeeeee'
			];
			
			for(var i = 0; i < 25; i++)
				$("<div></div>").addClass("item").css('background', colors[i]).appendTo(palette);
			
			var height = $('#rgb').height();
			var part_width = $('#rgb').width() / 6;

			$('#rgb,#gray,#palette', panel)
				.mousedown( function(e) {mouse_down = true; return false; } )
				.mouseup( function(e) {mouse_down = false; return false; } )
				.mouseout( function(e) {mouse_over = false; return false; } )
				.mouseover( function(e) {mouse_over = true; return false; } );

			$('#rgb').mousemove( function(e) { if(mouse_down && mouse_over) compute_color(this, true, false, false, e); return false;} );
			$('#gray').mousemove( function(e) { if(mouse_down && mouse_over) compute_color(this, false, true, false, e); return false;} );
			$('#palette').mousemove( function(e) { if(mouse_down && mouse_over) compute_color(this, false, false, true, e); return false;} );
			$('#rgb').click( function(e) { compute_color(this, true, false, false, e); return false;} );
			$('#gray').click( function(e) { compute_color(this, false, true, false, e); return false;} );
			$('#palette').click( function(e) { compute_color(this, false, false, true, e); $('#ok', panel).click(); return false;} );

			$('#cancel', panel).click( function() { panel.remove(); return false; } );
			$('#ok', panel).click( 
				function() {
					var value = color.html();

					if(value.length > 0 && value.charAt(0) =='#') {
						if(self.iframe_doc.selection) //IE fix for lost focus
							self.range.select();

						self.editor_cmd('foreColor', value);
					}
					
					panel.remove(); 
					return false;
				}
			);

			function to_hex(n) {
				var s = "0123456789abcdef";
				return s.charAt(Math.floor(n / 16)) + s.charAt(n % 16);
			}			

			function get_abs_pos(element) {
				var r = { x: element.offsetLeft, y: element.offsetTop };

				if (element.offsetParent) {
					var tmp = get_abs_pos(element.offsetParent);
					r.x += tmp.x;
					r.y += tmp.y;
				}

				return r;
			};
			
			function get_xy(obj, event) {
				var x, y;
				event = event || window.event;
				var el = event.target || event.srcElement;

				// use absolute coordinates
				var pos = get_abs_pos(obj);

				// subtract distance to middle
				x = event.pageX  - pos.x;
				y = event.pageY - pos.y;

				return { x: x, y: y };
			}
			
			function compute_color(obj, is_rgb, is_gray, is_palette, e) {
				var r, g, b, c;

				var mouse = get_xy(obj, e);
				var x = mouse.x;
				var y = mouse.y;

				if(is_rgb) {
					r = (x >= 0)*(x < part_width)*255 + (x >= part_width)*(x < 2*part_width)*(2*255 - x * 255 / part_width) + (x >= 4*part_width)*(x < 5*part_width)*(-4*255 + x * 255 / part_width) + (x >= 5*part_width)*(x < 6*part_width)*255;
					g = (x >= 0)*(x < part_width)*(x * 255 / part_width) + (x >= part_width)*(x < 3*part_width)*255	+ (x >= 3*part_width)*(x < 4*part_width)*(4*255 - x * 255 / part_width);
					b = (x >= 2*part_width)*(x < 3*part_width)*(-2*255 + x * 255 / part_width) + (x >= 3*part_width)*(x < 5*part_width)*255 + (x >= 5*part_width)*(x < 6*part_width)*(6*255 - x * 255 / part_width);

					var k = (height - y) / height;

					r = 128 + (r - 128) * k;
					g = 128 + (g - 128) * k;
					b = 128 + (b - 128) * k;
				} else if (is_gray) {
					r = g = b = (height - y) * 1.7;
				} else if(is_palette) {
					x = Math.floor(x / 10);
					y = Math.floor(y / 10);
					c = colors[x + y * 5];
				}

				if(!is_palette)
					c = '#' + to_hex(r) + to_hex(g) + to_hex(b);

				preview.css('background', c);
				color.html(c);
			}
		}
	},
	image			: {exec:
		function() {
			var self = this;
			var panel = self.create_panel('Insert image', 385);
			panel.append('\
				<p><label>URL</label><input type="text" id="url" size="30" value=""><button id="view">View</button></p>\
				<div class="clear"></div>\
				<p class="submit"><button id="ok">Ok</button><button id="cancel">Cancel</button></p>'
			).show();

			var url = $('#url', panel);
			
			$('#view', panel).click( function() {
					(url.val().length >0 ) ? window.open(url.val()) : alert("Enter URL of image to view");
					return false;
				}
			);
			
			$('#cancel', panel).click( function() { panel.remove(); return false;} );
			$('#ok', panel).click( 
				function() {
					var file = url.val();
					self.editor_cmd('insertImage', file);
					panel.remove(); 
					return false;
				}
			)
		}, tags: ['img'] },
	link			: {exec: 
		function() {
			var self = this;
			var panel = self.create_panel("Create link / Attach file", 385);
			panel.append('\
				<p><label>URL</label><input type="text" id="url" size="30" value=""><button id="view">View</button></p>\
				<div class="clear"></div>\
				<p><label>Title</label><input type="text" id="title" size="30" value=""><label>Target</label><select id="target"><option value="">default</option><option value="_blank">new</option></select></p>\
				<div class="clear"></div>\
				<p class="submit"><button id="ok">Ok</button><button id="cancel">Cancel</button></p>'
			).show();

			$('#cancel', panel).click( function() { panel.remove(); return false; } );

			var url = $('#url', panel);
			
			$('#view', panel).click( function() {
					(url.val().length >0 ) ? window.open(url.val()) : alert("Enter URL to view");
					return false;
				}
			);
			$('#ok', panel).click( 
				function() {
					var url = $('#url', panel).val();
					var target = $('#target', panel).val();
					var title = $('#title', panel).val();

					if(self.get_selected_text().length <= 0) {
						alert('Select the text you wish to link!');
						return false;
					}

					panel.remove(); 

					if(url.length <= 0)
						return false;

					self.editor_cmd('unlink');

					// we wanna well-formed linkage (<p>,<h1> and other block types can't be inside of link due to WC3)
					self.editor_cmd('createLink', rte_tag);
					var tmp = $('<span></span>').append(self.get_selected_html());

					if(target.length > 0)
						$('a[href*="' + rte_tag + '"]', tmp).attr('target', target);

					if(title.length > 0)
						$('a[href*="' + rte_tag + '"]', tmp).attr('title', title);

					$('a[href*="' + rte_tag + '"]', tmp).attr('href', url);
				
					self.selection_replace_with(tmp.html());
					return false;
				}
			)
		}, tags: ['a'] },
	unlink			: {command: 'unlink'},
	s8				: {separator : true },
	removeFormat	: {exec: 
		function() {
			this.editor_cmd('removeFormat');
			this.editor_cmd('unlink');
			
			var tmp = $('<div></div>').append(this.get_content());
			var elems = tmp.find("*").andSelf();
			
			if (elems.length) {
				elems.each(function(i, v){
					if (v.className.length) {v.className = ""};
				});
				this.set_content(tmp.html());
			}
			
		}},
	word			: {exec: function() { this.set_content(cleanup_word(this.get_content(), true, true, true)); }},
	clear			: {exec: function() { if(confirm('Clear Document?')) this.set_content(''); }}
};

var html_toolbar = {
	/*enable: {hint: 'Visual editor'}
	s1				: {separator: true},*/
	word			: {exec: function() { this.set_content(cleanup_word(this.get_content(), true, true, true)); }},
	clear			: {exec: function() { if(confirm('Clear Document?')) this.set_content(''); }}
};

function cleanup_word(s, bIgnoreFont, bRemoveStyles, bCleanWordKeepsStructure) {
	s = s.replace(/<o:p>\s*<\/o:p>/g, '') ;
	s = s.replace(/<o:p>[\s\S]*?<\/o:p>/g, '&nbsp;') ;

	// Remove mso-xxx styles.
	s = s.replace( /\s*mso-[^:]+:[^;"]+;?/gi, '' ) ;

	// Remove margin styles.
	s = s.replace( /\s*MARGIN: 0cm 0cm 0pt\s*;/gi, '' ) ;
	s = s.replace( /\s*MARGIN: 0cm 0cm 0pt\s*"/gi, "\"" ) ;

	s = s.replace( /\s*TEXT-INDENT: 0cm\s*;/gi, '' ) ;
	s = s.replace( /\s*TEXT-INDENT: 0cm\s*"/gi, "\"" ) ;

	s = s.replace( /\s*TEXT-ALIGN: [^\s;]+;?"/gi, "\"" ) ;

	s = s.replace( /\s*PAGE-BREAK-BEFORE: [^\s;]+;?"/gi, "\"" ) ;

	s = s.replace( /\s*FONT-VARIANT: [^\s;]+;?"/gi, "\"" ) ;

	s = s.replace( /\s*tab-stops:[^;"]*;?/gi, '' ) ;
	s = s.replace( /\s*tab-stops:[^"]*/gi, '' ) ;

	// Remove FONT face attributes.
	if (bIgnoreFont) {
		s = s.replace( /\s*face="[^"]*"/gi, '' ) ;
		s = s.replace( /\s*face=[^ >]*/gi, '' ) ;

		s = s.replace( /\s*FONT-FAMILY:[^;"]*;?/gi, '' ) ;
	}

	// Remove Class attributes
	s = s.replace(/<(\w[^>]*) class=([^ |>]*)([^>]*)/gi, "<$1$3") ;

	// Remove styles.
	if (bRemoveStyles)
		s = s.replace( /<(\w[^>]*) style="([^\"]*)"([^>]*)/gi, "<$1$3" ) ;

	// Remove style, meta and link tags
	s = s.replace( /<STYLE[^>]*>[\s\S]*?<\/STYLE[^>]*>/gi, '' ) ;
	s = s.replace( /<(?:META|LINK)[^>]*>\s*/gi, '' ) ;

	// Remove empty styles.
	s =  s.replace( /\s*style="\s*"/gi, '' ) ;

	s = s.replace( /<SPAN\s*[^>]*>\s*&nbsp;\s*<\/SPAN>/gi, '&nbsp;' ) ;

	s = s.replace( /<SPAN\s*[^>]*><\/SPAN>/gi, '' ) ;

	// Remove Lang attributes
	s = s.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3") ;

	s = s.replace( /<SPAN\s*>([\s\S]*?)<\/SPAN>/gi, '$1' ) ;

	s = s.replace( /<FONT\s*>([\s\S]*?)<\/FONT>/gi, '$1' ) ;

	// Remove XML elements and declarations
	s = s.replace(/<\\?\?xml[^>]*>/gi, '' ) ;

	// Remove w: tags with contents.
	s = s.replace( /<w:[^>]*>[\s\S]*?<\/w:[^>]*>/gi, '' ) ;

	// Remove Tags with XML namespace declarations: <o:p><\/o:p>
	s = s.replace(/<\/?\w+:[^>]*>/gi, '' ) ;

	// Remove comments [SF BUG-1481861].
	s = s.replace(/<\!--[\s\S]*?-->/g, '' ) ;

	s = s.replace( /<(U|I|STRIKE)>&nbsp;<\/\1>/g, '&nbsp;' ) ;

	s = s.replace( /<H\d>\s*<\/H\d>/gi, '' ) ;

	// Remove "display:none" tags.
	s = s.replace( /<(\w+)[^>]*\sstyle="[^"]*DISPLAY\s?:\s?none[\s\S]*?<\/\1>/ig, '' ) ;

	// Remove language tags
	s = s.replace( /<(\w[^>]*) language=([^ |>]*)([^>]*)/gi, "<$1$3") ;

	// Remove onmouseover and onmouseout events (from MS Word comments effect)
	s = s.replace( /<(\w[^>]*) onmouseover="([^\"]*)"([^>]*)/gi, "<$1$3") ;
	s = s.replace( /<(\w[^>]*) onmouseout="([^\"]*)"([^>]*)/gi, "<$1$3") ;

	if (bCleanWordKeepsStructure) {
		// The original <Hn> tag send from Word is something like this: <Hn style="margin-top:0px;margin-bottom:0px">
		s = s.replace( /<H(\d)([^>]*)>/gi, '<h$1>' ) ;

		// Word likes to insert extra <font> tags, when using MSIE. (Wierd).
		s = s.replace( /<(H\d)><FONT[^>]*>([\s\S]*?)<\/FONT><\/\1>/gi, '<$1>$2<\/$1>' );
		s = s.replace( /<(H\d)><EM>([\s\S]*?)<\/EM><\/\1>/gi, '<$1>$2<\/$1>' );
	} else {
		s = s.replace( /<H1([^>]*)>/gi, '<div$1><b><font size="6">' ) ;
		s = s.replace( /<H2([^>]*)>/gi, '<div$1><b><font size="5">' ) ;
		s = s.replace( /<H3([^>]*)>/gi, '<div$1><b><font size="4">' ) ;
		s = s.replace( /<H4([^>]*)>/gi, '<div$1><b><font size="3">' ) ;
		s = s.replace( /<H5([^>]*)>/gi, '<div$1><b><font size="2">' ) ;
		s = s.replace( /<H6([^>]*)>/gi, '<div$1><b><font size="1">' ) ;

		s = s.replace( /<\/H\d>/gi, '<\/font><\/b><\/div>' ) ;

		// Transform <P> to <DIV>
		var re = new RegExp( '(<P)([^>]*>[\\s\\S]*?)(<\/P>)', 'gi' ) ;	// Different because of a IE 5.0 error
		s = s.replace( re, '<div$2<\/div>' ) ;

		// Remove empty tags (three times, just to be sure).
		// This also removes any empty anchor
		s = s.replace( /<([^\s>]+)(\s[^>]*)?>\s*<\/\1>/g, '' ) ;
		s = s.replace( /<([^\s>]+)(\s[^>]*)?>\s*<\/\1>/g, '' ) ;
		s = s.replace( /<([^\s>]+)(\s[^>]*)?>\s*<\/\1>/g, '' ) ;
	}

	s = s.replace( /<script.*?>[\s\S]*?<\/.*?script>/gi, '' ) ;
	s = s.replace( /<script([^>]*)>/gi, '' ) ;
	
	return s;
}
;jQuery.cookie = function(name, value, options) {
    if (typeof value != 'undefined') { // name and value given, set cookie
        options = options || {};
        if (value === null) {
            value = '';
            options.expires = -1;
        }
        var expires = '';
        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
            var date;
            if (typeof options.expires == 'number') {
                date = new Date();
                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
            } else {
                date = options.expires;
            }
            expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
        }
        // CAUTION: Needed to parenthesize options.path and options.domain
        // in the following expressions, otherwise they evaluate to undefined
        // in the packed version for some reason...
        var path = options.path ? '; path=' + (options.path) : '';
        var domain = options.domain ? '; domain=' + (options.domain) : '';
        var secure = options.secure ? '; secure' : '';
        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
    } else { // only name given, get cookie
        var cookieValue = null;
        if (document.cookie && document.cookie != '') {
            var cookies = document.cookie.split(';');
            for (var i = 0; i < cookies.length; i++) {
                var cookie = jQuery.trim(cookies[i]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
};
;/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-07-21 18:45:56 -0500 (Sat, 21 Jul 2007) $
 * $Rev: 2447 $
 *
 * Version 2.1.1
 */
(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&/6.0/.test(navigator.userAgent)){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};})(jQuery);
;(function(a){a.fn.autoResize=function(j){var b=a.extend({onResize:function(){},animate:true,animateDuration:150,animateCallback:function(){},extraSpace:20,limit:1000},j);this.filter('textarea').each(function(){var c=a(this).css({resize:'none','overflow-y':'hidden'}),k=c.height(),f=(function(){var l=['height','width','lineHeight','textDecoration','letterSpacing'],h={};a.each(l,function(d,e){h[e]=c.css(e)});return c.clone().removeAttr('id').removeAttr('name').css({position:'absolute',top:0,left:-9999}).css(h).attr('tabIndex','-1').insertBefore(c)})(),i=null,g=function(){f.height(0).val(a(this).val()).scrollTop(10000);var d=Math.max(f.scrollTop(),k)+b.extraSpace,e=a(this).add(f);if(i===d){return}i=d;if(d>=b.limit){a(this).css('overflow-y','');return}b.onResize.call(this);b.animate&&c.css('display')==='block'?e.stop().animate({height:d},b.animateDuration,b.animateCallback):e.height(d)};c.unbind('.dynSiz').bind('keyup.dynSiz',g).bind('keydown.dynSiz',g).bind('change.dynSiz',g)});return this}})(jQuery);
;;(function($) {
	
$.fn.extend({
	autocomplete: function(urlOrData, options) {
		var isUrl = typeof urlOrData == "string";
		options = $.extend({}, $.Autocompleter.defaults, {
			url: isUrl ? urlOrData : null,
			data: isUrl ? null : urlOrData,
			delay: isUrl ? $.Autocompleter.defaults.delay : 10,
			max: options && !options.scroll ? 10 : 150
		}, options);
		
		// if highlight is set to false, replace it with a do-nothing function
		options.highlight = options.highlight || function(value) { return value; };
		
		// if the formatMatch option is not specified, then use formatItem for backwards compatibility
		options.formatMatch = options.formatMatch || options.formatItem;
		
		// disable or not submiting the form when pressin the enter key
		options.disable_submit = options.disable_submit || false;
		options.prevent_submit = options.prevent_submit || false;
		
		return this.each(function() {
			new $.Autocompleter(this, options);
		});
	},
	result: function(handler) {
		return this.bind("result", handler);
	},
	search: function(handler) {
		return this.trigger("search", [handler]);
	},
	flushCache: function() {
		return this.trigger("flushCache");
	},
	setOptions: function(options){
		return this.trigger("setOptions", [options]);
	},
	unautocomplete: function() {
		return this.trigger("unautocomplete");
	}
});

$.Autocompleter = function(input, options) {

	var KEY = {
		UP: 38,
		DOWN: 40,
		DEL: 46,
		TAB: 9,
		RETURN: 13,
		ESC: 27,
		COMMA: 188,
		PAGEUP: 33,
		PAGEDOWN: 34,
		BACKSPACE: 8
	};

	// Create $ object for input element
	var $input = $(input).attr("autocomplete", "off").addClass(options.inputClass);

	var timeout;
	var previousValue = "";
	var cache = $.Autocompleter.Cache(options);
	var hasFocus = 0;
	var lastKeyPressCode;
	var config = {
		mouseDownOnSelect: false
	};
	var select = $.Autocompleter.Select(options, input, selectCurrent, config);
	
	var blockSubmit;
	
	// prevent form submit in opera when selecting with return key
	$.browser.opera && $(input.form).bind("submit.autocomplete", function() {
		if (blockSubmit) {
			blockSubmit = false;
			return false;
		}
	});
	
	// only opera doesn't trigger keydown multiple times while pressed, others don't work with keypress at all
	$input.bind(($.browser.opera ? "keypress" : "keydown") + ".autocomplete", function(event) {
		// a keypress means the input has focus
		// avoids issue where input had focus before the autocomplete was applied
		hasFocus = 1;
		// track last key pressed
		lastKeyPressCode = event.keyCode;
		switch(event.keyCode) {
		
			case KEY.UP:
				event.preventDefault();
				if ( select.visible() ) {
					select.prev();
				} else {
					onChange(0, true);
				}
				break;
				
			case KEY.DOWN:
				event.preventDefault();
				if ( select.visible() ) {
					select.next();
				} else {
					onChange(0, true);
				}
				break;
				
			case KEY.PAGEUP:
				event.preventDefault();
				if ( select.visible() ) {
					select.pageUp();
				} else {
					onChange(0, true);
				}
				break;
				
			case KEY.PAGEDOWN:
				event.preventDefault();
				if ( select.visible() ) {
					select.pageDown();
				} else {
					onChange(0, true);
				}
				break;
			
			// matches also semicolon
			case options.multiple && $.trim(options.multipleSeparator) == "," && KEY.COMMA:
			case KEY.TAB:
			case KEY.RETURN:
				if( options.prevent_submit ) {
					selectCurrent();
					// stop default to prevent a form submit, Opera needs special handling
					event.preventDefault();
					blockSubmit = true;
					return false;
				}
				else if( selectCurrent() && options.disable_submit ) {
					// stop default to prevent a form submit, Opera needs special handling
					event.preventDefault();
					blockSubmit = true;
					return false;
				}
				break;
				
			case KEY.ESC:
				select.hide();
				break;
				
			default:
				clearTimeout(timeout);
				timeout = setTimeout(onChange, options.delay);
				break;
		}
	}).focus(function(){
		// track whether the field has focus, we shouldn't process any
		// results if the field no longer has focus
		hasFocus++;
	}).blur(function() {
		hasFocus = 0;
		if (!config.mouseDownOnSelect) {
			hideResults();
		}
	}).click(function() {
		// show select when clicking in a focused field
		if ( hasFocus++ > 0 && !select.visible() ) {
			// onChange(0, true);
		}
	}).bind("search", function() {
		// TODO why not just specifying both arguments?
		var fn = (arguments.length > 1) ? arguments[1] : null;
		function findValueCallback(q, data) {
			var result;
			if( data && data.length ) {
				for (var i=0; i < data.length; i++) {
					if( data[i].result.toLowerCase() == q.toLowerCase() ) {
						result = data[i];
						break;
					}
				}
			}
			if( typeof fn == "function" ) fn(result);
			else $input.trigger("result", result && [result.data, result.value]);
		}
		$.each(trimWords($input.val()), function(i, value) {
			request(value, findValueCallback, findValueCallback);
		});
	}).bind("flushCache", function() {
		cache.flush();
	}).bind("setOptions", function() {
		$.extend(options, arguments[1]);
		// if we've updated the data, repopulate
		if ( "data" in arguments[1] )
			cache.populate();
	}).bind("unautocomplete", function() {
		select.unbind();
		$input.unbind();
		$(input.form).unbind(".autocomplete");
		$input.unbind(($.browser.opera ? "keypress" : "keydown") + ".autocomplete");
	});
	
	
	function selectCurrent() {
		var selected = select.selected();
		if( !selected )
			return false;
		var v = selected.result;
		previousValue = v;
		
		if ( options.multiple ) {
			var words = trimWords($input.val());
			if ( words.length > 1 ) {
				var seperator = options.multipleSeparator.length;
				var cursorAt = $(input).selection().start;
				var wordAt, progress = 0;
				$.each(words, function(i, word) {
					progress += word.length;
					if (cursorAt <= progress) {
						wordAt = i;
						return false;
					}
					progress += seperator;
				});
				words[wordAt] = v;
				// TODO this should set the cursor to the right position, but it gets overriden somewhere
				//$.Autocompleter.Selection(input, progress + seperator, progress + seperator);
				v = words.join( options.multipleSeparator );
			}
			v += options.multipleSeparator;
		}
		
		var trm = $input.val();
		$input.val(v);
		hideResultsNow();
		$input.trigger("result", [selected.data, selected.value, trm, selected]);
		return true;
	}
	
	function onChange(crap, skipPrevCheck) {
		/*if( lastKeyPressCode == KEY.DEL ) {
			select.hide();
			return;
		}*/
		
		var currentValue = $input.val();
		
		if ( !skipPrevCheck && currentValue == previousValue )
			return;
		
		previousValue = currentValue;
		
		currentValue = lastWord(currentValue);
		if ( currentValue.length >= options.minChars) {
			$input.addClass(options.loadingClass);
			if (!options.matchCase)
				currentValue = currentValue.toLowerCase();
			request(currentValue, receiveData, hideResultsNow);
		} else {
			stopLoading();
			select.hide();
		}
	};
	
	function trimWords(value) {
		if (!value)
			return [""];
		if (!options.multiple)
			return [$.trim(value)];
		return $.map(value.split(options.multipleSeparator), function(word) {
			return $.trim(value).length ? $.trim(word) : null;
		});
	}
	
	function lastWord(value) {
		if ( !options.multiple )
			return value;
		var words = trimWords(value);
		if (words.length == 1) 
			return words[0];
		var cursorAt = $(input).selection().start;
		if (cursorAt == value.length) {
			words = trimWords(value)
		} else {
			words = trimWords(value.replace(value.substring(cursorAt), ""));
		}
		return words[words.length - 1];
	}
	
	// fills in the input box w/the first match (assumed to be the best match)
	// q: the term entered
	// sValue: the first matching result
	function autoFill(q, sValue){
		// autofill in the complete box w/the first match as long as the user hasn't entered in more data
		// if the last user key pressed was backspace, don't autofill
		if( options.autoFill && (lastWord($input.val()).toLowerCase() == q.toLowerCase()) && lastKeyPressCode != KEY.BACKSPACE ) {
			// fill in the value (keep the case the user has typed)
			$input.val($input.val() + sValue.substring(lastWord(previousValue).length));
			// select the portion of the value not typed by the user (so the next character will erase)
			$(input).selection(previousValue.length, previousValue.length + sValue.length);
		}
	};

	function hideResults() {
		clearTimeout(timeout);
		timeout = setTimeout(hideResultsNow, 200);
	};

	function hideResultsNow() {
		var wasVisible = select.visible();
		select.hide();
		clearTimeout(timeout);
		stopLoading();
		if (options.mustMatch) {
			// call search and run callback
			$input.search(
				function (result){
					// if no value found, clear the input box
					if( !result ) {
						if (options.multiple) {
							var words = trimWords($input.val()).slice(0, -1);
							$input.val( words.join(options.multipleSeparator) + (words.length ? options.multipleSeparator : "") );
						}
						else {
							$input.val( "" );
							$input.trigger("result", null);
						}
					}
				}
			);
		}
	};

	function receiveData(q, data) {
		if ( data && data.length && hasFocus ) {
			stopLoading();
			select.display(data, q);
			autoFill(q, data[0].value);
			select.show();
		} else {
			hideResultsNow();
		}
	};

	function request(term, success, failure) {
		if (!options.matchCase)
			term = term.toLowerCase();
		
		var data = cache.load(term);
		
		// recieve the cached data
		if (data && data.length) {
			success(term, data);
		// if an AJAX url has been supplied, try loading the data now
		} else if( (typeof options.url == "string") && (options.url.length > 0) ){
			
			var extraParams = {
				timestamp: +new Date()
			};
			$.each(options.extraParams, function(key, param) {
				extraParams[key] = typeof param == "function" ? param() : param;
			});
			
			$.ajax({
				// try to leverage ajaxQueue plugin to abort previous requests
				mode: "abort",
				// limit abortion to this input
				port: "autocomplete" + input.name,
				dataType: options.dataType,
				url: options.url,
				data: $.extend({
					q: lastWord(term),
					limit: options.max
				}, extraParams),
				success: function(data) {
					var parsed = options.parse && options.parse(data) || parse(data);
					cache.add(term, parsed);
					success(term, parsed);
				}
			});
		} else {
			// if we have a failure, we need to empty the list -- this prevents the the [TAB] key from selecting the last successful match
			select.emptyList();
			failure(term);
		}
	};
	
	function parse(data) {
		if (!data || !data.length && jQuery.isArray(data)) { return false; }
		
		var parsed = [];
		var rows = data.split("\n");
		for (var i=0; i < rows.length; i++) {
			var row = $.trim(rows[i]);
			if (row) {
				row = row.split("|");
				parsed[parsed.length] = {
					data: row,
					value: row[0],
					result: options.formatResult && options.formatResult(row, row[0]) || row[0]
				};
			}
		}
		return parsed;
	};

	function stopLoading() {
		$input.removeClass(options.loadingClass);
	};
	
};

$.Autocompleter.defaults = {
	inputClass: "ac_input",
	resultsClass: "ac_results",
	loadingClass: "ac_loading",
	minChars: 1,
	delay: 400,
	matchCase: false,
	matchSubset: true,
	matchContains: false,
	cacheLength: 0,
	max: 100,
	mustMatch: false,
	extraParams: {},
	selectFirst: true,
	formatItem: function(row) { return row[0]; },
	formatMatch: null,
	autoFill: false,
	width: 0,
	multiple: false,
	multipleSeparator: ", ",
	highlight: function(value, term) {
		return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<b>$1</b>");
	},
    scroll: true,
    scrollHeight: 350
};

$.Autocompleter.Cache = function(options) {

	var data = {};
	var length = 0;
	
	function matchSubset(s, sub) {
		if (!options.matchCase) 
			s = s.toLowerCase();
		var i = s.indexOf(sub);
		if (options.matchContains == "word"){
			i = s.toLowerCase().search("\\b" + sub.toLowerCase());
		}
		if (i == -1) return false;
		return i == 0 || options.matchContains;
	};
	
	function add(q, value) {
		if (length > options.cacheLength){
			flush();
		}
		if (!data[q]){ 
			length++;
		}
		data[q] = value;
	}
	
	function populate(){
		if( !options.data ) return false;
		// track the matches
		var stMatchSets = {},
			nullData = 0;

		// no url was specified, we need to adjust the cache length to make sure it fits the local data store
		if( !options.url ) options.cacheLength = 1;
		
		// track all options for minChars = 0
		stMatchSets[""] = [];
		
		// loop through the array and create a lookup structure
		for ( var i = 0, ol = options.data.length; i < ol; i++ ) {
			var rawValue = options.data[i];
			// if rawValue is a string, make an array otherwise just reference the array
			rawValue = (typeof rawValue == "string") ? [rawValue] : rawValue;
			
			var value = options.formatMatch(rawValue, i+1, options.data.length);
			if ( value === false )
				continue;
				
			var firstChar = value.charAt(0).toLowerCase();
			// if no lookup array for this character exists, look it up now
			if( !stMatchSets[firstChar] ) 
				stMatchSets[firstChar] = [];

			// if the match is a string
			var row = {
				value: value,
				data: rawValue,
				result: options.formatResult && options.formatResult(rawValue) || value
			};
			
			// push the current match into the set list
			stMatchSets[firstChar].push(row);

			// keep track of minChars zero items
			if ( nullData++ < options.max ) {
				stMatchSets[""].push(row);
			}
		};

		// add the data items to the cache
		$.each(stMatchSets, function(i, value) {
			// increase the cache size
			options.cacheLength++;
			// add to the cache
			add(i, value);
		});
	}
	
	// populate any existing data
	setTimeout(populate, 25);
	
	function flush(){
		var tmp = data[''];
		data = {};
		length = 0;
		
		if (options.single_request) {
			data[''] = tmp;
			length = 1;
		}
	}
	
	return {
		flush: flush,
		add: add,
		populate: populate,
		load: function(q) {
			if (!options.cacheLength || !length)
				return null;
			
			/* 
			 * if dealing w/local data and matchContains than we must make sure
			 * to loop through all the data collections looking for matches
			 */
			if( !options.url && options.matchContains ){
				// track all matches
				var csub = [];
				// loop through all the data grids for matches
				for( var k in data ){
					// don't search through the stMatchSets[""] (minChars: 0) cache
					// this prevents duplicates
					if( k.length > 0 ){
						var c = data[k];
						$.each(c, function(i, x) {
							// if we've got a match, add it to the array
							if (matchSubset(x.value, q)) {
								csub.push(x);
							}
						});
					}
				}				
				return csub;
			} else 
			// if the exact item exists, use it
			if (data[q]){
				return data[q];
			} else
			if (options.matchSubset) {
				for (var i = q.length - 1; i >= options.minChars; i--) {
					var c = data[q.substr(0, i)];
					if (c) {
						var csub = [];
						$.each(c, function(i, x) {
							if (matchSubset(x.value, q)) {
								csub[csub.length] = x;
							}
						});
						if (csub.length == 0 && options.single_request && data[''].length > 0) {
							return data[''];
						}
						return csub;
					}
				}
			}
			return null;
		}
	};
};

$.Autocompleter.Select = function (options, input, select, config) {
	var CLASSES = {
		ACTIVE: "ac_over"
	};
	
	var listItems,
		active = -1,
		data,
		term = "",
		needsInit = true,
		element,
		list;
	
	// Create results
	function init() {
		if (!needsInit)
			return;
		element = $("<div/>")
		.hide()
		.addClass(options.resultsClass)
		.css("position", "absolute")
		.appendTo(document.body);
	
		list = $("<ul/>").appendTo(element).mouseover( function(event) {
			if(target(event).nodeName && target(event).nodeName.toUpperCase() == 'LI') {
	            active = $("li", list).removeClass(CLASSES.ACTIVE).index(target(event));
			    $(target(event)).addClass(CLASSES.ACTIVE);            
	        }
		}).click(function(event) {
			$(target(event)).addClass(CLASSES.ACTIVE);
			select();
			// TODO provide option to avoid setting focus again after selection? useful for cleanup-on-focus
			input.focus();
			return false;
		}).mousedown(function() {
			config.mouseDownOnSelect = true;
		}).mouseup(function() {
			config.mouseDownOnSelect = false;
		});
		
		if( options.width > 0 )
			element.css("width", options.width);
			
		needsInit = false;
	} 
	
	function target(event) {
		var element = event.target;
		while(element && element.tagName != "LI")
			element = element.parentNode;
		// more fun with IE, sometimes event.target is empty, just ignore it then
		if(!element)
			return [];
		return element;
	}

	function moveSelect(step) {
		listItems.slice(active, active + 1).removeClass(CLASSES.ACTIVE);
		movePosition(step);
        var activeItem = listItems.slice(active, active + 1).addClass(CLASSES.ACTIVE);
	$(input).val(activeItem.text());
        if(options.scroll) {
            var offset = 0;
            listItems.slice(0, active).each(function() {
				offset += this.offsetHeight;
			});
            if((offset + activeItem[0].offsetHeight - list.scrollTop()) > list[0].clientHeight) {
                list.scrollTop(offset + activeItem[0].offsetHeight - list.innerHeight());
            } else if(offset < list.scrollTop()) {
                list.scrollTop(offset);
            }
        }
	};
	
	function movePosition(step) {
		active += step;
		if (active < 0) {
			active = listItems.size() - 1;
		} else if (active >= listItems.size()) {
			active = 0;
		}
	}
	
	function limitNumberOfItems(available) {
		return options.max && options.max < available
			? options.max
			: available;
	}
	
	function fillList() {
		list.empty();
		var max = limitNumberOfItems(data.length);
		for (var i=0; i < max; i++) {
			if (!data[i])
				continue;
			var formatted = options.formatItem(data[i].data, i+1, max, data[i].value, term);
			if ( formatted === false )
				continue;
			var li = $("<li/>").html( options.highlight(formatted, term) ).addClass(i%2 == 0 ? "ac_even" : "ac_odd").appendTo(list)[0];
			$.data(li, "ac_data", data[i]);
		}
		listItems = list.find("li");
		if ( options.selectFirst ) {
			listItems.slice(0, 1).addClass(CLASSES.ACTIVE);
			active = 0;
		}
		// apply bgiframe if available
		if ( $.fn.bgiframe )
			list.bgiframe();
	}
	
	return {
		display: function(d, q) {
			init();
			data = d;
			term = q;
			fillList();
		},
		next: function() {
			moveSelect(1);
		},
		prev: function() {
			moveSelect(-1);
		},
		pageUp: function() {
			if (active != 0 && active - 8 < 0) {
				moveSelect( -active );
			} else {
				moveSelect(-8);
			}
		},
		pageDown: function() {
			if (active != listItems.size() - 1 && active + 8 > listItems.size()) {
				moveSelect( listItems.size() - 1 - active );
			} else {
				moveSelect(8);
			}
		},
		hide: function() {
			element && element.hide();
			listItems && listItems.removeClass(CLASSES.ACTIVE);
			active = -1;
		},
		visible : function() {
			return element && element.is(":visible");
		},
		current: function() {
			return this.visible() && (listItems.filter("." + CLASSES.ACTIVE)[0] || options.selectFirst && listItems[0]);
		},
		show: function() {
			var offset = $(input).offset();
			element.css({
				width: typeof options.width == "string" || options.width > 0 ? options.width : ($(input).outerWidth() - 2),
				top: offset.top + input.offsetHeight,
				left: offset.left
			}).show();
            if(options.scroll) {
                list.scrollTop(0);
                list.css({
					maxHeight: options.scrollHeight,
					overflow: 'auto'
				});
				
                if($.browser.msie && typeof document.body.style.maxHeight === "undefined") {
					var listHeight = 0;
					listItems.each(function() {
						listHeight += this.offsetHeight;
					});
					var scrollbarsVisible = listHeight > options.scrollHeight;
                    list.css('height', scrollbarsVisible ? options.scrollHeight : listHeight );
					if (!scrollbarsVisible) {
						// IE doesn't recalculate width when scrollbar disappears
						listItems.width( list.width() - parseInt(listItems.css("padding-left")) - parseInt(listItems.css("padding-right")) );
					}
                }
                
            }
		},
		selected: function() {
			var selected = listItems && listItems.filter("." + CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);
			return selected && selected.length && $.data(selected[0], "ac_data");
		},
		emptyList: function (){
			list && list.empty();
		},
		unbind: function() {
			element && element.remove();
		}
	};
};

$.fn.selection = function(start, end) {
	if (start !== undefined) {
		return this.each(function() {
			if( this.createTextRange ){
				var selRange = this.createTextRange();
				if (end === undefined || start == end) {
					selRange.move("character", start);
					selRange.select();
				} else {
					selRange.collapse(true);
					selRange.moveStart("character", start);
					selRange.moveEnd("character", end);
					selRange.select();
				}
			} else if( this.setSelectionRange ){
				this.setSelectionRange(start, end);
			} else if( this.selectionStart ){
				this.selectionStart = start;
				this.selectionEnd = end;
			}
		});
	}
	var field = this[0];
	if ( field.createTextRange ) {
		var range = document.selection.createRange(),
			orig = field.value,
			teststring = "<->",
			textLength = range.text.length;
		range.text = teststring;
		var caretAt = field.value.indexOf(teststring);
		field.value = orig;
		this.selection(caretAt, caretAt + textLength);
		return {
			start: caretAt,
			end: caretAt + textLength
		}
	} else if( field.selectionStart !== undefined ){
		return {
			start: field.selectionStart,
			end: field.selectionEnd
		}
	}
};

})(jQuery);
 
(function($){
	$.fn.autocompleteShow = function(options){
		
		var field_id = this.attr("id");
		var opts = $.extend({}, $.fn.autocompleteShow.defaults, options);
		var URL = do_link(opts.remote_connector, "request=" + opts.request);
		var self = this;
		
		$(this).unautocomplete().autocomplete(URL, {
			extraParams	: opts.extraParams,
			minChars	: opts.minChars,
			cacheLength	: opts.cacheLength,
			matchCase 	: opts.matchCase,
			matchSubset	: opts.matchSubset,
			selectFirst	: opts.selectFirst,
			width		: opts.width,
			disable_submit	: opts.disable_submit
		});
		
		$(this).result(function(event, data, formatted, trm){
			if (data){
				$(this).val(opts.formatValue(data, trm));
				
				if(data[1]){
					
					var fields_id = opts.result_fields_id.split(",");
					var fields_name = opts.result_fields_name.split(",");
					var values = data[1].split(",");
					
					if ($.trim(opts.result_fields_id).length > 0) {
						$.each(fields_id, function(i, v){
						
							var new_val = ((values[i] > 0) ? values[i] : -1);
							
							if ($(":hidden#" + v, "#" + opts.form_id).length > 0) {
								$(":hidden#" + v, "#" + opts.form_id).attr("value", new_val);
							}
							else {
								if ($("#" + v, "#" + opts.form_id).length > 0) {
									$("#" + v, "#" + opts.form_id).remove();
								}
								$($(self).parents()[0]).prepend("<input type=\"hidden\" id=\"" + v + "\" name=\"" + fields_name[i] + "\" value=\"" + new_val + "\" />")
							}
						});
					}
				} 
			}
		});
	};
	
	$.fn.autocompleteShow.defaults = {
		autocompleteClass: "",
		remote_connector:  "site.remote",
		width:             null,
		remote_url:        "",
		request:           "",
		formatValue: function(data) { return data; }
	};
})(jQuery);
;/*
 * Metadata - jQuery plugin for parsing metadata from elements
 *
 * Copyright (c) 2006 John Resig, Yehuda Katz, Jï¿½Ã¶rn Zaefferer, Paul McLanahan
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 *
 * Revision: $Id: jquery.metadata.js 3620 2007-10-10 20:55:38Z pmclanahan $
 *
 */
(function($){$.extend({metadata:{defaults:{type:'class',name:'metadata',cre:/({.*})/,single:'metadata'},setType:function(type,name){this.defaults.type=type;this.defaults.name=name;},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length)settings.single='metadata';var data=$.data(elem,settings.single);if(data)return data;data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m)data=m[1];}else if(settings.type=="elem"){if(!elem.getElementsByTagName)return;var e=elem.getElementsByTagName(settings.name);if(e.length)data=$.trim(e[0].innerHTML);}else if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr)data=attr;}if(data.indexOf('{')<0)data="{"+data+"}";data=eval("("+data+")");$.data(elem,settings.single,data);return data;}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts);};})(jQuery);
;(function(d){var q=function(){var u=65,D={eventName:"click",onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},color:"ff0000",livePreview:true,flat:false},f=function(a,b){a=k(a);d(b).data("colorpicker").fields.eq(1).val(a.r).end().eq(2).val(a.g).end().eq(3).val(a.b).end()},l=function(a,b){d(b).data("colorpicker").fields.eq(4).val(a.h).end().eq(5).val(a.s).end().eq(6).val(a.b).end()},h=function(a,b){d(b).data("colorpicker").fields.eq(0).val(g(a)).end()},
m=function(a,b){d(b).data("colorpicker").selector.css("backgroundColor","#"+g({h:a.h,s:100,b:100}));d(b).data("colorpicker").selectorIndic.css({left:parseInt(150*a.s/100,10),top:parseInt(150*(100-a.b)/100,10)})},n=function(a,b){d(b).data("colorpicker").hue.css("top",parseInt(150-150*a.h/360,10))},r=function(a,b){d(b).data("colorpicker").currentColor.css("backgroundColor","#"+g(a))},o=function(a,b){d(b).data("colorpicker").newColor.css("backgroundColor","#"+g(a))},E=function(a){a=a.charCode||a.keyCode||
-1;if(a>u&&a<=90||a==32)return false;d(this).parent().parent().data("colorpicker").livePreview===true&&i.apply(this)},i=function(a){var b=d(this).parent().parent(),c;if(this.parentNode.className.indexOf("_hex")>0)b.data("colorpicker").color=c=s(F(this.value));else if(this.parentNode.className.indexOf("_hsb")>0)b.data("colorpicker").color=c=t({h:parseInt(b.data("colorpicker").fields.eq(4).val(),10),s:parseInt(b.data("colorpicker").fields.eq(5).val(),10),b:parseInt(b.data("colorpicker").fields.eq(6).val(),
10)});else b.data("colorpicker").color=c=p(G({r:parseInt(b.data("colorpicker").fields.eq(1).val(),10),g:parseInt(b.data("colorpicker").fields.eq(2).val(),10),b:parseInt(b.data("colorpicker").fields.eq(3).val(),10)}));if(a){f(c,b.get(0));h(c,b.get(0));l(c,b.get(0))}m(c,b.get(0));n(c,b.get(0));o(c,b.get(0));b.data("colorpicker").onChange.apply(b,[c,g(c),k(c)])},H=function(){d(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus")},I=function(){u=this.parentNode.className.indexOf("_hex")>
0?70:65;d(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus");d(this).parent().addClass("colorpicker_focus")},J=function(a){var b=d(this).parent().find("input").focus();a={el:d(this).parent().addClass("colorpicker_slider"),max:this.parentNode.className.indexOf("_hsb_h")>0?360:this.parentNode.className.indexOf("_hsb")>0?100:255,y:a.pageY,field:b,val:parseInt(b.val(),10),preview:d(this).parent().parent().data("colorpicker").livePreview};d(document).bind("mouseup",
a,v);d(document).bind("mousemove",a,w)},w=function(a){a.data.field.val(Math.max(0,Math.min(a.data.max,parseInt(a.data.val+a.pageY-a.data.y,10))));a.data.preview&&i.apply(a.data.field.get(0),[true]);return false},v=function(a){i.apply(a.data.field.get(0),[true]);a.data.el.removeClass("colorpicker_slider").find("input").focus();d(document).unbind("mouseup",v);d(document).unbind("mousemove",w);return false},K=function(){var a={cal:d(this).parent(),y:d(this).offset().top};a.preview=a.cal.data("colorpicker").livePreview;
d(document).bind("mouseup",a,x);d(document).bind("mousemove",a,y)},y=function(a){i.apply(a.data.cal.data("colorpicker").fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,a.pageY-a.data.y)))/150,10)).get(0),[a.data.preview]);return false},x=function(a){f(a.data.cal.data("colorpicker").color,a.data.cal.get(0));h(a.data.cal.data("colorpicker").color,a.data.cal.get(0));d(document).unbind("mouseup",x);d(document).unbind("mousemove",y);return false},L=function(){var a={cal:d(this).parent(),pos:d(this).offset()};
a.preview=a.cal.data("colorpicker").livePreview;d(document).bind("mouseup",a,z);d(document).bind("mousemove",a,A)},A=function(a){i.apply(a.data.cal.data("colorpicker").fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,a.pageY-a.data.pos.top)))/150,10)).end().eq(5).val(parseInt(100*Math.max(0,Math.min(150,a.pageX-a.data.pos.left))/150,10)).get(0),[a.data.preview]);return false},z=function(a){f(a.data.cal.data("colorpicker").color,a.data.cal.get(0));h(a.data.cal.data("colorpicker").color,a.data.cal.get(0));
d(document).unbind("mouseup",z);d(document).unbind("mousemove",A);return false},M=function(){d(this).addClass("colorpicker_focus")},N=function(){d(this).removeClass("colorpicker_focus")},O=function(){var a=d(this).parent(),b=a.data("colorpicker").color;a.data("colorpicker").origColor=b;r(b,a.get(0));a.data("colorpicker").onSubmit(b,g(b),k(b),a.data("colorpicker").el)},C=function(){var a=d("#"+d(this).data("colorpickerId"));a.data("colorpicker").onBeforeShow.apply(this,[a.get(0)]);var b=d(this).offset(),
c=P(),e=b.top+this.offsetHeight;b=b.left;if(e+176>c.t+c.h)e-=this.offsetHeight+176;if(b+356>c.l+c.w)b-=356;a.css({left:b+"px",top:e+"px"});a.data("colorpicker").onShow.apply(this,[a.get(0)])!=false&&a.show();d(document).bind("mousedown",{cal:a},B);return false},B=function(a){if(!Q(a.data.cal.get(0),a.target,a.data.cal.get(0))){a.data.cal.data("colorpicker").onHide.apply(this,[a.data.cal.get(0)])!=false&&a.data.cal.hide();d(document).unbind("mousedown",B)}},Q=function(a,b,c){if(a==b)return true;if(a.contains)return a.contains(b);
if(a.compareDocumentPosition)return!!(a.compareDocumentPosition(b)&16);for(b=b.parentNode;b&&b!=c;){if(b==a)return true;b=b.parentNode}return false},P=function(){var a=document.compatMode=="CSS1Compat";return{l:window.pageXOffset||(a?document.documentElement.scrollLeft:document.body.scrollLeft),t:window.pageYOffset||(a?document.documentElement.scrollTop:document.body.scrollTop),w:window.innerWidth||(a?document.documentElement.clientWidth:document.body.clientWidth),h:window.innerHeight||(a?document.documentElement.clientHeight:
document.body.clientHeight)}},t=function(a){return{h:Math.min(360,Math.max(0,a.h)),s:Math.min(100,Math.max(0,a.s)),b:Math.min(100,Math.max(0,a.b))}},G=function(a){return{r:Math.min(255,Math.max(0,a.r)),g:Math.min(255,Math.max(0,a.g)),b:Math.min(255,Math.max(0,a.b))}},F=function(a){var b=6-a.length;if(b>0){for(var c=[],e=0;e<b;e++)c.push("0");c.push(a);a=c.join("")}return a},R=function(a){a=parseInt(a.indexOf("#")>-1?a.substring(1):a,16);return{r:a>>16,g:(a&65280)>>8,b:a&255}},s=function(a){return p(R(a))},
p=function(a){var b={h:0,s:0,b:0},c=Math.min(a.r,a.g,a.b),e=Math.max(a.r,a.g,a.b);c=e-c;b.b=e;b.s=e!=0?255*c/e:0;b.h=b.s!=0?a.r==e?(a.g-a.b)/c:a.g==e?2+(a.b-a.r)/c:4+(a.r-a.g)/c:-1;b.h*=60;if(b.h<0)b.h+=360;b.s*=100/255;b.b*=100/255;return b},k=function(a){var b={},c=Math.round(a.h),e=Math.round(a.s*255/100);a=Math.round(a.b*255/100);if(e==0)b.r=b.g=b.b=a;else{e=(255-e)*a/255;var j=(a-e)*(c%60)/60;if(c==360)c=0;if(c<60){b.r=a;b.b=e;b.g=e+j}else if(c<120){b.g=a;b.b=e;b.r=a-j}else if(c<180){b.g=a;b.r=
e;b.b=e+j}else if(c<240){b.b=a;b.r=e;b.g=a-j}else if(c<300){b.b=a;b.g=e;b.r=e+j}else if(c<360){b.r=a;b.g=e;b.b=a-j}else{b.r=0;b.g=0;b.b=0}}return{r:Math.round(b.r),g:Math.round(b.g),b:Math.round(b.b)}},S=function(a){var b=[a.r.toString(16),a.g.toString(16),a.b.toString(16)];d.each(b,function(c,e){if(e.length==1)b[c]="0"+e});return b.join("")},g=function(a){return S(k(a))},T=function(){var a=d(this).parent(),b=a.data("colorpicker").origColor;a.data("colorpicker").color=b;f(b,a.get(0));h(b,a.get(0));
l(b,a.get(0));m(b,a.get(0));n(b,a.get(0));o(b,a.get(0))};return{init:function(a){a=d.extend({},D,a||{});if(typeof a.color=="string")a.color=s(a.color);else if(a.color.r!=undefined&&a.color.g!=undefined&&a.color.b!=undefined)a.color=p(a.color);else if(a.color.h!=undefined&&a.color.s!=undefined&&a.color.b!=undefined)a.color=t(a.color);else return this;return this.each(function(){if(!d(this).data("colorpickerId")){var b=d.extend({},a);b.origColor=a.color;var c="collorpicker_"+parseInt(Math.random()*
1E3);d(this).data("colorpickerId",c);c=d('<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>').attr("id",
c);b.flat?c.appendTo(this).show():c.appendTo(document.body);b.fields=c.find("input").bind("keyup",E).bind("change",i).bind("blur",H).bind("focus",I);c.find("span").bind("mousedown",J).end().find(">div.colorpicker_current_color").bind("click",T);b.selector=c.find("div.colorpicker_color").bind("mousedown",L);b.selectorIndic=b.selector.find("div div");b.el=this;b.hue=c.find("div.colorpicker_hue div");c.find("div.colorpicker_hue").bind("mousedown",K);b.newColor=c.find("div.colorpicker_new_color");b.currentColor=
c.find("div.colorpicker_current_color");c.data("colorpicker",b);c.find("div.colorpicker_submit").bind("mouseenter",M).bind("mouseleave",N).bind("click",O);f(b.color,c.get(0));l(b.color,c.get(0));h(b.color,c.get(0));n(b.color,c.get(0));m(b.color,c.get(0));r(b.color,c.get(0));o(b.color,c.get(0));b.flat?c.css({position:"relative",display:"block"}):d(this).bind(b.eventName,C)}})},showPicker:function(){return this.each(function(){d(this).data("colorpickerId")&&C.apply(this)})},hidePicker:function(){return this.each(function(){d(this).data("colorpickerId")&&
d("#"+d(this).data("colorpickerId")).hide()})},setColor:function(a){if(typeof a=="string")a=s(a);else if(a.r!=undefined&&a.g!=undefined&&a.b!=undefined)a=p(a);else if(a.h!=undefined&&a.s!=undefined&&a.b!=undefined)a=t(a);else return this;return this.each(function(){if(d(this).data("colorpickerId")){var b=d("#"+d(this).data("colorpickerId"));b.data("colorpicker").color=a;b.data("colorpicker").origColor=a;f(a,b.get(0));l(a,b.get(0));h(a,b.get(0));n(a,b.get(0));m(a,b.get(0));r(a,b.get(0));o(a,b.get(0))}})}}}();
d.fn.extend({ColorPicker:q.init,ColorPickerHide:q.hidePicker,ColorPickerShow:q.showPicker,ColorPickerSetColor:q.setColor})})(jQuery);

;//(function($){$.fn.jCarouselLite=function(o){o=$.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},o||{});return this.each(function(){var b=false,animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width";var c=$(this),ul=$("ul",c),tLi=$("li",ul),tl=tLi.size(),v=o.visible;if(o.circular){ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(0,v).clone());o.start+=v}var f=$("li",ul),itemLength=f.size(),curr=o.start;c.css("visibility","visible");f.css({overflow:"hidden",float:o.vertical?"none":"left"});ul.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});c.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var g=o.vertical?height(f):width(f);var h=g*itemLength;var j=g*v;f.css({width:f.width(),height:f.height()});ul.css(sizeCss,h+"px").css(animCss,-(curr*g));c.css(sizeCss,j+"px");if(o.btnPrev)$(o.btnPrev).click(function(){return go(curr-o.scroll)});if(o.btnNext)$(o.btnNext).click(function(){return go(curr+o.scroll)});if(o.btnGo)$.each(o.btnGo,function(i,a){$(a).click(function(){return go(o.circular?o.visible+i:i)})});if(o.mouseWheel&&c.mousewheel)c.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll)});if(o.auto)setInterval(function(){go(curr+o.scroll)},o.auto+o.speed);function vis(){return f.slice(curr).slice(0,v)};function go(a){if(!b){if(o.beforeStart)o.beforeStart.call(this,vis());if(o.circular){if(a<=o.start-v-1){ul.css(animCss,-((itemLength-(v*2))*g)+"px");curr=a==o.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll}else if(a>=itemLength-v+1){ul.css(animCss,-((v)*g)+"px");curr=a==itemLength-v+1?v+1:v+o.scroll}else curr=a}else{if(a<0||a>itemLength-v)return;else curr=a}b=true;ul.animate(animCss=="left"?{left:-(curr*g)}:{top:-(curr*g)},o.speed,o.easing,function(){if(o.afterEnd)o.afterEnd.call(this,vis());b=false});if(!o.circular){$(o.btnPrev+","+o.btnNext).removeClass("disabled");$((curr-o.scroll<0&&o.btnPrev)||(curr+o.scroll>itemLength-v&&o.btnNext)||[]).addClass("disabled")}}return false}})};function css(a,b){return parseInt($.css(a[0],b))||0};function width(a){return a[0].offsetWidth+css(a,'marginLeft')+css(a,'marginRight')};function height(a){return a[0].offsetHeight+css(a,'marginTop')+css(a,'marginBottom')}})(jQuery);
/**
 * jCarouselLite - jQuery plugin to navigate images/any content in a carousel style widget.
 * @requires jQuery v1.2 or above
 *
 * http://gmarwaha.com/jquery/jcarousellite/
 *
 * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Version: 1.0.1
 * Note: Requires jquery 1.2 or above from version 1.0.1
 */

/**
 * Creates a carousel-style navigation widget for images/any-content from a simple HTML markup.
 *
 *
 * @cat Plugins/Image Gallery
 * @author Ganeshji Marwaha/ganeshread@gmail.com
 */

(function($) {                                          // Compliant with jquery.noConflict()
$.fn.jCarouselLite = function(o) {
    o = $.extend({
        btnPrev: null,
        btnNext: null,
        btnGo: null,
        mouseWheel: false,
        auto: null,

        speed: 200,
        easing: null,

        vertical: false,
        circular: true,
        visible: 3,
        start: 0,
        scroll: 1,

        beforeStart: null,
        afterEnd: null,
        
        autoscroll: 0
    }, o || {});

    return this.each(function() {                           // Returns the element collection. Chainable.

        var running = false, animCss=o.vertical?"top":"left", sizeCss=o.vertical?"height":"width";
        var div = $(this), ul = $("ul", div), tLi = $("li", ul), tl = tLi.size(), v = o.visible;
	var autoscroll;

        if(o.circular) {
            ul.prepend(tLi.slice(tl-v-1+1).clone())
              .append(tLi.slice(0,v).clone());
            o.start += v;
        }

        var li = $("li", ul), itemLength = li.size(), curr = o.start;
        div.css("visibility", "visible");

        li.css({overflow: "hidden", float: o.vertical ? "none" : "left"});
        ul.css({margin: "0", padding: "0", position: "relative", "list-style-type": "none", "z-index": "1"});
        div.css({overflow: "hidden", position: "relative", "z-index": "2", left: "0px"});

        var liSize = o.vertical ? height(li) : width(li);   // Full li size(incl margin)-Used for animation
        var ulSize = liSize * itemLength;                   // size of full ul(total length, not just for the visible items)
        var divSize = liSize * v;                           // size of entire div(total length for just the visible items)

        li.css({width: li.width(), height: li.height()});
        ul.css(sizeCss, ulSize+"px").css(animCss, -(curr*liSize));

        div.css(sizeCss, divSize+"px");                     // Width of the DIV. length of visible images

        if(o.btnPrev)
            $(o.btnPrev).click(function() {
            	// Reset interval when clicked
            	if(o.auto)
            	    clearInterval(autoscroll);
	            autoscroll = setInterval(function() {
	                go(curr+o.scroll);
	            }, o.auto+o.speed);
	            
                return go(curr-o.scroll);
            }).mousedown(function(e){ return false; });

        if(o.btnNext)
            $(o.btnNext).click(function() {
            	// Reset interval when clicked
		if(o.auto)
            	    clearInterval(autoscroll);
	            autoscroll = setInterval(function() {
	                go(curr+o.scroll);
	            }, o.auto+o.speed);
            	
                return go(curr+o.scroll);
            }).mousedown(function(e){ return false; });

        if(o.btnGo)
            $.each(o.btnGo, function(i, val) {
                $(val).click(function() {
                    return go(o.circular ? o.visible+i : i);
                });
            });

        if(o.mouseWheel && div.mousewheel)
            div.mousewheel(function(e, d) {
                return d>0 ? go(curr-o.scroll) : go(curr+o.scroll);
            });

        if(o.auto)
            autoscroll = setInterval(function() {
                go(curr+o.scroll);
            }, o.auto+o.speed);

        function vis() {
            return li.slice(curr).slice(0,v);
        };

        function go(to) {
            if(!running) {

                if(o.beforeStart)
                    o.beforeStart.call(this, vis());

                if(o.circular) {            // If circular we are in first or last, then goto the other end
                    if(to<=o.start-v-1) {           // If first, then goto last
                        ul.css(animCss, -((itemLength-(v*2))*liSize)+"px");
                        // If "scroll" > 1, then the "to" might not be equal to the condition; it can be lesser depending on the number of elements.
                        curr = to==o.start-v-1 ? itemLength-(v*2)-1 : itemLength-(v*2)-o.scroll;
                    } else if(to>=itemLength-v+1) { // If last, then goto first
                        ul.css(animCss, -( (v) * liSize ) + "px" );
                        // If "scroll" > 1, then the "to" might not be equal to the condition; it can be greater depending on the number of elements.
                        curr = to==itemLength-v+1 ? v+1 : v+o.scroll;
                    } else curr = to;
                } else {                    // If non-circular and to points to first or last, we just return.
                    if(to<0 || to>itemLength-v) return;
                    else curr = to;
                }                           // If neither overrides it, the curr will still be "to" and we can proceed.

                running = true;

                ul.animate(
                    animCss == "left" ? { left: -(curr*liSize) } : { top: -(curr*liSize) } , o.speed, o.easing,
                    function() {
                        if(o.afterEnd)
                            o.afterEnd.call(this, vis());
                        running = false;
                    }
                );
                // Disable buttons when the carousel reaches the last/first, and enable when not
                if(!o.circular) {
                    $(o.btnPrev + "," + o.btnNext).removeClass("disabled");
                    $( (curr-o.scroll<0 && o.btnPrev)
                        ||
                       (curr+o.scroll > itemLength-v && o.btnNext)
                        ||
                       []
                     ).addClass("disabled");
                }

            }
            return false;
        };
    });
};

function css(el, prop) {
    return parseInt($.css(el[0], prop)) || 0;
};
function width(el) {
    return  el[0].offsetWidth + css(el, 'marginLeft') + css(el, 'marginRight');
};
function height(el) {
    return el[0].offsetHeight + css(el, 'marginTop') + css(el, 'marginBottom');
};

})(jQuery);
;;(function($){var helper={},current,title,tID,IE=$.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),track=false;$.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){$.tooltip.blocked=!$.tooltip.blocked;}};$.fn.extend({tooltip:function(settings){settings=$.extend({},$.tooltip.defaults,settings);createHelper(settings);return this.each(function(){$.data(this,"tooltip",settings);this.tOpacity=helper.parent.css("opacity");this.tooltipText=this.title;$(this).removeAttr("title");this.alt="";}).mouseover(save).mouseout(hide).click(hide);},fixPNG:IE?function(){return this.each(function(){var image=$(this).css('backgroundImage');if(image.match(/^url\(["']?(.*\.png)["']?\)$/i)){image=RegExp.$1;$(this).css({'backgroundImage':'none','filter':"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+image+"')"}).each(function(){var position=$(this).css('position');if(position!='absolute'&&position!='relative')$(this).css('position','relative');});}});}:function(){return this;},unfixPNG:IE?function(){return this.each(function(){$(this).css({'filter':'',backgroundImage:''});});}:function(){return this;},hideWhenEmpty:function(){return this.each(function(){$(this)[$(this).html()?"show":"hide"]();});},url:function(){return this.attr('href')||this.attr('src');}});function createHelper(settings){if(helper.parent)return;helper.parent=$('<div id="'+settings.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if($.fn.bgiframe)helper.parent.bgiframe();helper.title=$('h3',helper.parent);helper.body=$('div.body',helper.parent);helper.url=$('div.url',helper.parent);}function settings(element){return $.data(element,"tooltip");}function handle(event){if(settings(this).delay)tID=setTimeout(show,settings(this).delay);else
show();track=!!settings(this).track;$(document.body).bind('mousemove',update);update(event);}function save(){if($.tooltip.blocked||this==current||(!this.tooltipText&&!settings(this).bodyHandler))return;current=this;title=this.tooltipText;if(settings(this).bodyHandler){helper.title.hide();var bodyContent=settings(this).bodyHandler.call(this);if(bodyContent.nodeType||bodyContent.jquery){helper.body.empty().append(bodyContent)}else{helper.body.html(bodyContent);}helper.body.show();}else if(settings(this).showBody){var parts=title.split(settings(this).showBody);helper.title.html(parts.shift()).show();helper.body.empty();for(var i=0,part;(part=parts[i]);i++){if(i>0)helper.body.append("<br/>");helper.body.append(part);}helper.body.hideWhenEmpty();}else{helper.title.html(title).show();helper.body.hide();}if(settings(this).showURL&&$(this).url())helper.url.html($(this).url().replace('http://','')).show();else
helper.url.hide();helper.parent.addClass(settings(this).extraClass);if(settings(this).fixPNG)helper.parent.fixPNG();handle.apply(this,arguments);}function show(){tID=null;if((!IE||!$.fn.bgiframe)&&settings(current).fade){if(helper.parent.is(":animated"))helper.parent.stop().show().fadeTo(settings(current).fade,current.tOpacity);else
helper.parent.is(':visible')?helper.parent.fadeTo(settings(current).fade,current.tOpacity):helper.parent.fadeIn(settings(current).fade);}else{helper.parent.show();}update();}function update(event){if($.tooltip.blocked)return;if(event&&event.target.tagName=="OPTION"){return;}if(!track&&helper.parent.is(":visible")){$(document.body).unbind('mousemove',update)}if(current==null){$(document.body).unbind('mousemove',update);return;}helper.parent.removeClass("viewport-right").removeClass("viewport-bottom");var left=helper.parent[0].offsetLeft;var top=helper.parent[0].offsetTop;if(event){left=event.pageX+settings(current).left;top=event.pageY+settings(current).top;var right='auto';if(settings(current).positionLeft){right=$(window).width()-left;left='auto';}helper.parent.css({left:left,right:right,top:top});}var v=viewport(),h=helper.parent[0];if(v.x+v.cx<h.offsetLeft+h.offsetWidth){left-=h.offsetWidth+20+settings(current).left;helper.parent.css({left:left+'px'}).addClass("viewport-right");}if(v.y+v.cy<h.offsetTop+h.offsetHeight){top-=h.offsetHeight+20+settings(current).top;helper.parent.css({top:top+'px'}).addClass("viewport-bottom");}}function viewport(){return{x:$(window).scrollLeft(),y:$(window).scrollTop(),cx:$(window).width(),cy:$(window).height()};}function hide(event){if($.tooltip.blocked)return;if(tID)clearTimeout(tID);current=null;var tsettings=settings(this);function complete(){helper.parent.removeClass(tsettings.extraClass).hide().css("opacity","");}if((!IE||!$.fn.bgiframe)&&tsettings.fade){if(helper.parent.is(':animated'))helper.parent.stop().fadeTo(tsettings.fade,0,complete);else
helper.parent.stop().fadeOut(tsettings.fade,complete);}else
complete();if(settings(this).fixPNG)helper.parent.unfixPNG();}})(jQuery);
;jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,a,c,b,d){return jQuery.easing[jQuery.easing.def](e,a,c,b,d)},easeInQuad:function(e,a,c,b,d){return b*(a/=d)*a+c},easeOutQuad:function(e,a,c,b,d){return-b*(a/=d)*(a-2)+c},easeInOutQuad:function(e,a,c,b,d){if((a/=d/2)<1)return b/2*a*a+c;return-b/2*(--a*(a-2)-1)+c},easeInCubic:function(e,a,c,b,d){return b*(a/=d)*a*a+c},easeOutCubic:function(e,a,c,b,d){return b*((a=a/d-1)*a*a+1)+c},easeInOutCubic:function(e,a,c,b,d){if((a/=d/2)<1)return b/
2*a*a*a+c;return b/2*((a-=2)*a*a+2)+c},easeInQuart:function(e,a,c,b,d){return b*(a/=d)*a*a*a+c},easeOutQuart:function(e,a,c,b,d){return-b*((a=a/d-1)*a*a*a-1)+c},easeInOutQuart:function(e,a,c,b,d){if((a/=d/2)<1)return b/2*a*a*a*a+c;return-b/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(e,a,c,b,d){return b*(a/=d)*a*a*a*a+c},easeOutQuint:function(e,a,c,b,d){return b*((a=a/d-1)*a*a*a*a+1)+c},easeInOutQuint:function(e,a,c,b,d){if((a/=d/2)<1)return b/2*a*a*a*a*a+c;return b/2*((a-=2)*a*a*a*a+2)+c},easeInSine:function(e,
a,c,b,d){return-b*Math.cos(a/d*(Math.PI/2))+b+c},easeOutSine:function(e,a,c,b,d){return b*Math.sin(a/d*(Math.PI/2))+c},easeInOutSine:function(e,a,c,b,d){return-b/2*(Math.cos(Math.PI*a/d)-1)+c},easeInExpo:function(e,a,c,b,d){return a==0?c:b*Math.pow(2,10*(a/d-1))+c},easeOutExpo:function(e,a,c,b,d){return a==d?c+b:b*(-Math.pow(2,-10*a/d)+1)+c},easeInOutExpo:function(e,a,c,b,d){if(a==0)return c;if(a==d)return c+b;if((a/=d/2)<1)return b/2*Math.pow(2,10*(a-1))+c;return b/2*(-Math.pow(2,-10*--a)+2)+c},
easeInCirc:function(e,a,c,b,d){return-b*(Math.sqrt(1-(a/=d)*a)-1)+c},easeOutCirc:function(e,a,c,b,d){return b*Math.sqrt(1-(a=a/d-1)*a)+c},easeInOutCirc:function(e,a,c,b,d){if((a/=d/2)<1)return-b/2*(Math.sqrt(1-a*a)-1)+c;return b/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeInElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(a==0)return c;if((a/=d)==1)return c+b;f||(f=d*0.3);if(g<Math.abs(b)){g=b;e=f/4}else e=f/(2*Math.PI)*Math.asin(b/g);return-(g*Math.pow(2,10*(a-=1))*Math.sin((a*d-e)*2*Math.PI/f))+c},easeOutElastic:function(e,
a,c,b,d){e=1.70158;var f=0,g=b;if(a==0)return c;if((a/=d)==1)return c+b;f||(f=d*0.3);if(g<Math.abs(b)){g=b;e=f/4}else e=f/(2*Math.PI)*Math.asin(b/g);return g*Math.pow(2,-10*a)*Math.sin((a*d-e)*2*Math.PI/f)+b+c},easeInOutElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(a==0)return c;if((a/=d/2)==2)return c+b;f||(f=d*0.3*1.5);if(g<Math.abs(b)){g=b;e=f/4}else e=f/(2*Math.PI)*Math.asin(b/g);if(a<1)return-0.5*g*Math.pow(2,10*(a-=1))*Math.sin((a*d-e)*2*Math.PI/f)+c;return g*Math.pow(2,-10*(a-=1))*Math.sin((a*
d-e)*2*Math.PI/f)*0.5+b+c},easeInBack:function(e,a,c,b,d,f){if(f==undefined)f=1.70158;return b*(a/=d)*a*((f+1)*a-f)+c},easeOutBack:function(e,a,c,b,d,f){if(f==undefined)f=1.70158;return b*((a=a/d-1)*a*((f+1)*a+f)+1)+c},easeInOutBack:function(e,a,c,b,d,f){if(f==undefined)f=1.70158;if((a/=d/2)<1)return b/2*a*a*(((f*=1.525)+1)*a-f)+c;return b/2*((a-=2)*a*(((f*=1.525)+1)*a+f)+2)+c},easeInBounce:function(e,a,c,b,d){return b-jQuery.easing.easeOutBounce(e,d-a,0,b,d)+c},easeOutBounce:function(e,a,c,b,d){return(a/=
d)<1/2.75?b*7.5625*a*a+c:a<2/2.75?b*(7.5625*(a-=1.5/2.75)*a+0.75)+c:a<2.5/2.75?b*(7.5625*(a-=2.25/2.75)*a+0.9375)+c:b*(7.5625*(a-=2.625/2.75)*a+0.984375)+c},easeInOutBounce:function(e,a,c,b,d){if(a<d/2)return jQuery.easing.easeInBounce(e,a*2,0,b,d)*0.5+c;return jQuery.easing.easeOutBounce(e,a*2-d,0,b,d)*0.5+b*0.5+c}});

;/*!
 * jQuery Globalization Plugin
 * http://github.com/jquery/jquery-global
 *
 * Copyright Software Freedom Conservancy, Inc.
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 */
(function() {

var Globalization = {}, localized = { en: {} };
localized["default"] = localized.en;

Globalization.extend = function( deep ) {
    var target = arguments[ 1 ] || {};
    for ( var i = 2, l = arguments.length; i < l; i++ ) {
        var source = arguments[ i ];
        if ( source ) {
            for ( var field in source ) {
                var sourceVal = source[ field ];
                if ( typeof sourceVal !== "undefined" ) {
                    if ( deep && (isObject( sourceVal ) || isArray( sourceVal )) ) {
                        var targetVal = target[ field ];
                        // extend onto the existing value, or create a new one
                        targetVal = targetVal && (isObject( targetVal ) || isArray( targetVal ))
                            ? targetVal
                            : (isArray( sourceVal ) ? [] : {});
                        target[ field ] = this.extend( true, targetVal, sourceVal );
                    }
                    else {
                        target[ field ] = sourceVal;
                    }
                }
            }
        }
    }
    return target;
}

Globalization.findClosestCulture = function(name) {
    var match;
    if ( !name ) {
        return this.culture || this.cultures["default"];
    }
    if ( isString( name ) ) {
        name = name.split( ',' );
    }
    if ( isArray( name ) ) {
        var lang,
            cultures = this.cultures,
            list = name,
            i, l = list.length,
            prioritized = [];
        for ( i = 0; i < l; i++ ) {
            name = trim( list[ i ] );
            var pri, parts = name.split( ';' );
            lang = trim( parts[ 0 ] );
            if ( parts.length === 1 ) {
                pri = 1;
            }
            else {
                name = trim( parts[ 1 ] );
                if ( name.indexOf("q=") === 0 ) {
                    name = name.substr( 2 );
                    pri = parseFloat( name, 10 );
                    pri = isNaN( pri ) ? 0 : pri;
                }
                else {
                    pri = 1;
                }
            }
            prioritized.push( { lang: lang, pri: pri } );
        }
        prioritized.sort(function(a, b) {
            return a.pri < b.pri ? 1 : -1;
        });

        // exact match
        for ( i = 0; i < l; i++ ) {
            lang = prioritized[ i ].lang;
            match = cultures[ lang ];
            if ( match ) {
                return match;
            }
        }

        // neutral language match
        for ( i = 0; i < l; i++ ) {
            lang = prioritized[ i ].lang;
            do {
                var index = lang.lastIndexOf( "-" );
                if ( index === -1 ) {
                    break;
                }
                // strip off the last part. e.g. en-US => en
                lang = lang.substr( 0, index );
                match = cultures[ lang ];
                if ( match ) {
                    return match;
                }
            }
            while ( 1 );
        }

        // last resort: match first culture using that language
		for ( i = 0; i < l; i++ ) {
            lang = prioritized[ i ].lang;
			for ( var cultureKey in cultures ) {
				var culture = cultures[ cultureKey ];
                if ( culture.language == lang ) {
                    return culture;
                }
			}
        }
    }
    else if ( typeof name === 'object' ) {
        return name;
    }
    return match || null;
}
Globalization.preferCulture = function(name) {
    this.culture = this.findClosestCulture( name ) || this.cultures["default"];
}
Globalization.localize = function(key, culture, value) {
    // usign default culture in case culture is not provided
    if (typeof culture !== 'string') {
        culture = this.culture.name || this.culture || "default";
    }
    culture = this.cultures[ culture ] || { name: culture };

    var local = localized[ culture.name ];
    if ( arguments.length === 3 ) {
        if ( !local) {
            local = localized[ culture.name ] = {};
        }
        local[ key ] = value;
    }
    else {
        if ( local ) {
            value = local[ key ];
        }
        if ( typeof value === 'undefined' ) {
            var language = localized[ culture.language ];
            if ( language ) {
                value = language[ key ];
            }
            if ( typeof value === 'undefined' ) {
                value = localized["default"][ key ];
            }
        }
    }
    return typeof value === "undefined" ? null : value;
}
Globalization.format = function(value, format, culture) {
    culture = this.findClosestCulture( culture );
    if ( typeof value === "number" ) {
        value = formatNumber( value, format, culture );
    }
    else if ( value instanceof Date ) {
        value = formatDate( value, format, culture );
    }
    return value;
}
Globalization.parseInt = function(value, radix, culture) {
    return Math.floor( this.parseFloat( value, radix, culture ) );
}
Globalization.parseFloat = function(value, radix, culture) {
	// make radix optional
	if (typeof radix === "string") {
		culture = radix;
		radix = 10;
	}

    culture = this.findClosestCulture( culture );
    var ret = NaN,
        nf = culture.numberFormat;

	if (value.indexOf(culture.numberFormat.currency.symbol) > -1) {
		// remove currency symbol
		value = value.replace(culture.numberFormat.currency.symbol, "");
		// replace decimal seperator
		value = value.replace(culture.numberFormat.currency["."], culture.numberFormat["."]);
	}

    // trim leading and trailing whitespace
    value = trim( value );

    // allow infinity or hexidecimal
    if (regexInfinity.test(value)) {
        ret = parseFloat(value, radix);
    }
    else if (!radix && regexHex.test(value)) {
        ret = parseInt(value, 16);
    }
    else {
        var signInfo = parseNegativePattern( value, nf, nf.pattern[0] ),
            sign = signInfo[0],
            num = signInfo[1];
        // determine sign and number
        if ( sign === "" && nf.pattern[0] !== "-n" ) {
            signInfo = parseNegativePattern( value, nf, "-n" );
            sign = signInfo[0];
            num = signInfo[1];
        }
        sign = sign || "+";
        // determine exponent and number
        var exponent,
            intAndFraction,
            exponentPos = num.indexOf( 'e' );
        if ( exponentPos < 0 ) exponentPos = num.indexOf( 'E' );
        if ( exponentPos < 0 ) {
            intAndFraction = num;
            exponent = null;
        }
        else {
            intAndFraction = num.substr( 0, exponentPos );
            exponent = num.substr( exponentPos + 1 );
        }
        // determine decimal position
        var integer,
            fraction,
            decSep = nf['.'],
            decimalPos = intAndFraction.indexOf( decSep );
        if ( decimalPos < 0 ) {
            integer = intAndFraction;
            fraction = null;
        }
        else {
            integer = intAndFraction.substr( 0, decimalPos );
            fraction = intAndFraction.substr( decimalPos + decSep.length );
        }
        // handle groups (e.g. 1,000,000)
        var groupSep = nf[","];
        integer = integer.split(groupSep).join('');
        var altGroupSep = groupSep.replace(/\u00A0/g, " ");
        if ( groupSep !== altGroupSep ) {
            integer = integer.split(altGroupSep).join('');
        }
        // build a natively parsable number string
        var p = sign + integer;
        if ( fraction !== null ) {
            p += '.' + fraction;
        }
        if ( exponent !== null ) {
            // exponent itself may have a number patternd
            var expSignInfo = parseNegativePattern( exponent, nf, "-n" );
            p += 'e' + (expSignInfo[0] || "+") + expSignInfo[1];
        }
        if ( regexParseFloat.test( p ) ) {
            ret = parseFloat( p );
        }
    }
    return ret;
}
Globalization.parseDate = function(value, formats, culture) {
    culture = this.findClosestCulture( culture );

    var date, prop, patterns;
    if ( formats ) {
        if ( typeof formats === "string" ) {
            formats = [ formats ];
        }
        if ( formats.length ) {
            for ( var i = 0, l = formats.length; i < l; i++ ) {
                var format = formats[ i ];
                if ( format ) {
                    date = parseExact( value, format, culture );
                    if ( date ) {
                        break;
                    }
                }
            }
        }
    }
    else {
        patterns = culture.calendar.patterns;
        for ( prop in patterns ) {
            date = parseExact( value, patterns[prop], culture );
            if ( date ) {
                break;
            }
        }
    }
    return date || null;
}

// 1.    When defining a culture, all fields are required except the ones stated as optional.
// 2.    You can use Globalization.extend to copy an existing culture and provide only the differing values,
//       a good practice since most cultures do not differ too much from the 'default' culture.
//       DO use the 'default' culture if you do this, as it is the only one that definitely
//       exists.
// 3.    Other plugins may add to the culture information provided by extending it. However,
//       that plugin may extend it prior to the culture being defined, or after. Therefore,
//       do not overwrite values that already exist when defining the baseline for a culture,
//       by extending your culture object with the existing one.
// 4.    Each culture should have a ".calendars" object with at least one calendar named "standard"
//       which serves as the default calendar in use by that culture.
// 5.    Each culture should have a ".calendar" object which is the current calendar being used,
//       it may be dynamically changed at any time to one of the calendars in ".calendars".

// To define a culture, use the following pattern, which handles defining the culture based
// on the 'default culture, extending it with the existing culture if it exists, and defining
// it if it does not exist.
// Globalization.cultures.foo = Globalization.extend(true, Globalization.extend(true, {}, Globalization.cultures['default'], fooCulture), Globalization.cultures.foo)

var cultures = Globalization.cultures = Globalization.cultures || {};
var en = cultures["default"] = cultures.en = Globalization.extend(true, {
    // A unique name for the culture in the form <language code>-<country/region code>
    name: "en",
    // the name of the culture in the english language
    englishName: "English",
    // the name of the culture in its own language
    nativeName: "English",
    // whether the culture uses right-to-left text
    isRTL: false,
    // 'language' is used for so-called "specific" cultures.
    // For example, the culture "es-CL" means "Spanish, in Chili".
    // It represents the Spanish-speaking culture as it is in Chili,
    // which might have different formatting rules or even translations
    // than Spanish in Spain. A "neutral" culture is one that is not
    // specific to a region. For example, the culture "es" is the generic
    // Spanish culture, which may be a more generalized version of the language
    // that may or may not be what a specific culture expects.
    // For a specific culture like "es-CL", the 'language' field refers to the
    // neutral, generic culture information for the language it is using.
    // This is not always a simple matter of the string before the dash.
    // For example, the "zh-Hans" culture is netural (Simplified Chinese).
    // And the 'zh-SG' culture is Simplified Chinese in Singapore, whose lanugage
    // field is "zh-CHS", not "zh".
    // This field should be used to navigate from a specific culture to it's
    // more general, neutral culture. If a culture is already as general as it
    // can get, the language may refer to itself.
    language: "en",
    // numberFormat defines general number formatting rules, like the digits in
    // each grouping, the group separator, and how negative numbers are displayed.
    numberFormat: {
        // [negativePattern]
        // Note, numberFormat.pattern has no 'positivePattern' unlike percent and currency,
        // but is still defined as an array for consistency with them.
        //  negativePattern: one of "(n)|-n|- n|n-|n -"
        pattern: ["-n"],
        // number of decimal places normally shown
        decimals: 2,
        // string that separates number groups, as in 1,000,000
        ',': ",",
        // string that separates a number from the fractional portion, as in 1.99
        '.': ".",
        // array of numbers indicating the size of each number group.
        // TODO: more detailed description and example
        groupSizes: [3],
        // symbol used for positive numbers
        '+': "+",
        // symbol used for negative numbers
        '-': "-",
        percent: {
            // [negativePattern, positivePattern]
            //     negativePattern: one of "-n %|-n%|-%n|%-n|%n-|n-%|n%-|-% n|n %-|% n-|% -n|n- %"
            //     positivePattern: one of "n %|n%|%n|% n"
            pattern: ["-n %","n %"],
            // number of decimal places normally shown
            decimals: 2,
            // array of numbers indicating the size of each number group.
            // TODO: more detailed description and example
            groupSizes: [3],
            // string that separates number groups, as in 1,000,000
            ',': ",",
            // string that separates a number from the fractional portion, as in 1.99
            '.': ".",
            // symbol used to represent a percentage
            symbol: "%"
        },
        currency: {
            // [negativePattern, positivePattern]
            //     negativePattern: one of "($n)|-$n|$-n|$n-|(n$)|-n$|n-$|n$-|-n $|-$ n|n $-|$ n-|$ -n|n- $|($ n)|(n $)"
            //     positivePattern: one of "$n|n$|$ n|n $"
            pattern: ["($n)","$n"],
            // number of decimal places normally shown
            decimals: 2,
            // array of numbers indicating the size of each number group.
            // TODO: more detailed description and example
            groupSizes: [3],
            // string that separates number groups, as in 1,000,000
            ',': ",",
            // string that separates a number from the fractional portion, as in 1.99
            '.': ".",
            // symbol used to represent currency
            symbol: "$"
        }
    },
    // calendars defines all the possible calendars used by this culture.
    // There should be at least one defined with name 'standard', and is the default
    // calendar used by the culture.
    // A calendar contains information about how dates are formatted, information about
    // the calendar's eras, a standard set of the date formats,
    // translations for day and month names, and if the calendar is not based on the Gregorian
    // calendar, conversion functions to and from the Gregorian calendar.
    calendars: {
        standard: {
            // name that identifies the type of calendar this is
            name: "Gregorian_USEnglish",
            // separator of parts of a date (e.g. '/' in 11/05/1955)
            '/': "/",
            // separator of parts of a time (e.g. ':' in 05:44 PM)
            ':': ":",
            // the first day of the week (0 = Sunday, 1 = Monday, etc)
            firstDay: 0,
            days: {
                // full day names
                names: ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],
                // abbreviated day names
                namesAbbr: ["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],
                // shortest day names
                namesShort: ["Su","Mo","Tu","We","Th","Fr","Sa"]
            },
            months: {
                // full month names (13 months for lunar calendards -- 13th month should be "" if not lunar)
                names: ["January","February","March","April","May","June","July","August","September","October","November","December",""],
                // abbreviated month names
                namesAbbr: ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]
            },
            // AM and PM designators in one of these forms:
            // The usual view, and the upper and lower case versions
            //      [standard,lowercase,uppercase]
            // The culture does not use AM or PM (likely all standard date formats use 24 hour time)
            //      null
            AM: ["AM", "am", "AM"],
            PM: ["PM", "pm", "PM"],
            eras: [
                // eras in reverse chronological order.
                // name: the name of the era in this culture (e.g. A.D., C.E.)
                // start: when the era starts in ticks (gregorian, gmt), null if it is the earliest supported era.
                // offset: offset in years from gregorian calendar
                { "name": "A.D.", "start": null, "offset": 0 }
            ],
            // when a two digit year is given, it will never be parsed as a four digit
            // year greater than this year (in the appropriate era for the culture)
            // Set it as a full year (e.g. 2029) or use an offset format starting from
            // the current year: "+19" would correspond to 2029 if the current year 2010.
            twoDigitYearMax: 2029,
            // set of predefined date and time patterns used by the culture
            // these represent the format someone in this culture would expect
            // to see given the portions of the date that are shown.
            patterns: {
                // short date pattern
                d: "M/d/yyyy",
                // long date pattern
                D: "dddd, MMMM dd, yyyy",
                // short time pattern
                t: "h:mm tt",
                // long time pattern
                T: "h:mm:ss tt",
                // long date, short time pattern
                f: "dddd, MMMM dd, yyyy h:mm tt",
                // long date, long time pattern
                F: "dddd, MMMM dd, yyyy h:mm:ss tt",
                // month/day pattern
                M: "MMMM dd",
                // month/year pattern
                Y: "yyyy MMMM",
                // S is a sortable format that does not vary by culture
                S: "yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss"
            }
            // optional fields for each calendar:
            /*
            monthsGenitive:
                Same as months but used when the day preceeds the month.
                Omit if the culture has no genitive distinction in month names.
                For an explaination of genitive months, see http://blogs.msdn.com/michkap/archive/2004/12/25/332259.aspx
            convert:
                Allows for the support of non-gregorian based calendars. This convert object is used to
                to convert a date to and from a gregorian calendar date to handle parsing and formatting.
                The two functions:
                    fromGregorian(date)
                        Given the date as a parameter, return an array with parts [year, month, day]
                        corresponding to the non-gregorian based year, month, and day for the calendar.
                    toGregorian(year, month, day)
                        Given the non-gregorian year, month, and day, return a new Date() object
                        set to the corresponding date in the gregorian calendar.
            */
        }
    }
}, cultures.en);
en.calendar = en.calendar || en.calendars.standard;

var regexTrim = /^\s+|\s+$/g,
    regexInfinity = /^[+-]?infinity$/i,
    regexHex = /^0x[a-f0-9]+$/i,
    regexParseFloat = /^[+-]?\d*\.?\d*(e[+-]?\d+)?$/,
    toString = Object.prototype.toString;

function startsWith(value, pattern) {
    return value.indexOf( pattern ) === 0;
}

function endsWith(value, pattern) {
    return value.substr( value.length - pattern.length ) === pattern;
}

function trim(value) {
    return (value+"").replace( regexTrim, "" );
}

function zeroPad(str, count, left) {
    for (var l=str.length; l < count; l++) {
        str = (left ? ('0' + str) : (str + '0'));
    }
    return str;
}

function isArray(obj) {
    return toString.call(obj) === "[object Array]";
}

function isString(obj) {
    return toString.call(obj) === "[object String]";
}

function isObject(obj) {
    return toString.call(obj) === "[object Object]";
}

function arrayIndexOf( array, item ) {
    if ( array.indexOf ) {
        return array.indexOf( item );
    }
    for ( var i = 0, length = array.length; i < length; i++ ) {
        if ( array[ i ] === item ) {
            return i;
        }
    }
    return -1;
}

// *************************************** Numbers ***************************************

function expandNumber(number, precision, formatInfo) {
    var groupSizes = formatInfo.groupSizes,
        curSize = groupSizes[ 0 ],
        curGroupIndex = 1,
        factor = Math.pow( 10, precision ),
        rounded = Math.round( number * factor ) / factor;
    if ( !isFinite(rounded) ) {
        rounded = number;
    }
    number = rounded;

    var numberString = number+"",
        right = "",
        split = numberString.split(/e/i),
        exponent = split.length > 1 ? parseInt( split[ 1 ], 10 ) : 0;
    numberString = split[ 0 ];
    split = numberString.split( "." );
    numberString = split[ 0 ];
    right = split.length > 1 ? split[ 1 ] : "";

    var l;
    if ( exponent > 0 ) {
        right = zeroPad( right, exponent, false );
        numberString += right.slice( 0, exponent );
        right = right.substr( exponent );
    }
    else if ( exponent < 0 ) {
        exponent = -exponent;
        numberString = zeroPad( numberString, exponent + 1 );
        right = numberString.slice( -exponent, numberString.length ) + right;
        numberString = numberString.slice( 0, -exponent );
    }

    if ( precision > 0 ) {
        right = formatInfo['.'] +
            ((right.length > precision) ? right.slice( 0, precision ) : zeroPad( right, precision ));
    }
    else {
        right = "";
    }

    var stringIndex = numberString.length - 1,
        sep = formatInfo[","],
        ret = "";

    while ( stringIndex >= 0 ) {
        if ( curSize === 0 || curSize > stringIndex ) {
            return numberString.slice( 0, stringIndex + 1 ) + ( ret.length ? ( sep + ret + right ) : right );
        }
        ret = numberString.slice( stringIndex - curSize + 1, stringIndex + 1 ) + ( ret.length ? ( sep + ret ) : "" );

        stringIndex -= curSize;

        if ( curGroupIndex < groupSizes.length ) {
            curSize = groupSizes[ curGroupIndex ];
            curGroupIndex++;
        }
    }
    return numberString.slice( 0, stringIndex + 1 ) + sep + ret + right;
}


function parseNegativePattern(value, nf, negativePattern) {
    var neg = nf["-"],
        pos = nf["+"],
        ret;
    switch (negativePattern) {
        case "n -":
            neg = ' ' + neg;
            pos = ' ' + pos;
            // fall through
        case "n-":
            if ( endsWith( value, neg ) ) {
                ret = [ '-', value.substr( 0, value.length - neg.length ) ];
            }
            else if ( endsWith( value, pos ) ) {
                ret = [ '+', value.substr( 0, value.length - pos.length ) ];
            }
            break;
        case "- n":
            neg += ' ';
            pos += ' ';
            // fall through
        case "-n":
            if ( startsWith( value, neg ) ) {
                ret = [ '-', value.substr( neg.length ) ];
            }
            else if ( startsWith(value, pos) ) {
                ret = [ '+', value.substr( pos.length ) ];
            }
            break;
        case "(n)":
            if ( startsWith( value, '(' ) && endsWith( value, ')' ) ) {
                ret = [ '-', value.substr( 1, value.length - 2 ) ];
            }
            break;
    }
    return ret || [ '', value ];
}

function formatNumber(value, format, culture) {
    if ( !format || format === 'i' ) {
        return culture.name.length ? value.toLocaleString() : value.toString();
    }
    format = format || "D";

    var nf = culture.numberFormat,
        number = Math.abs(value),
        precision = -1,
        pattern;
    if (format.length > 1) precision = parseInt( format.slice( 1 ), 10 );

    var current = format.charAt( 0 ).toUpperCase(),
        formatInfo;

    switch (current) {
        case "D":
            pattern = 'n';
            if (precision !== -1) {
                number = zeroPad( ""+number, precision, true );
            }
            if (value < 0) number = -number;
            break;
        case "N":
            formatInfo = nf;
            // fall through
        case "C":
            formatInfo = formatInfo || nf.currency;
            // fall through
        case "P":
            formatInfo = formatInfo || nf.percent;
            pattern = value < 0 ? formatInfo.pattern[0] : (formatInfo.pattern[1] || "n");
            if (precision === -1) precision = formatInfo.decimals;
            number = expandNumber( number * (current === "P" ? 100 : 1), precision, formatInfo );
            break;
        default:
            throw "Bad number format specifier: " + current;
    }

    var patternParts = /n|\$|-|%/g,
        ret = "";
    for (;;) {
        var index = patternParts.lastIndex,
            ar = patternParts.exec(pattern);

        ret += pattern.slice( index, ar ? ar.index : pattern.length );

        if (!ar) {
            break;
        }

        switch (ar[0]) {
            case "n":
                ret += number;
                break;
            case "$":
                ret += nf.currency.symbol;
                break;
            case "-":
                // don't make 0 negative
                if ( /[1-9]/.test( number ) ) {
                    ret += nf["-"];
                }
                break;
            case "%":
                ret += nf.percent.symbol;
                break;
        }
    }

    return ret;
}

// *************************************** Dates ***************************************

function outOfRange(value, low, high) {
    return value < low || value > high;
}

function expandYear(cal, year) {
    // expands 2-digit year into 4 digits.
    var now = new Date(),
        era = getEra(now);
    if ( year < 100 ) {
        var twoDigitYearMax = cal.twoDigitYearMax;
        twoDigitYearMax = typeof twoDigitYearMax === 'string' ? new Date().getFullYear() % 100 + parseInt( twoDigitYearMax, 10 ) : twoDigitYearMax;
        var curr = getEraYear( now, cal, era );
        year += curr - ( curr % 100 );
        if ( year > twoDigitYearMax ) {
            year -= 100;
        }
    }
    return year;
}

function getEra(date, eras) {
    if ( !eras ) return 0;
    var start, ticks = date.getTime();
    for ( var i = 0, l = eras.length; i < l; i++ ) {
        start = eras[ i ].start;
        if ( start === null || ticks >= start ) {
            return i;
        }
    }
    return 0;
}

function toUpper(value) {
    // 'he-IL' has non-breaking space in weekday names.
    return value.split( "\u00A0" ).join(' ').toUpperCase();
}

function toUpperArray(arr) {
    var results = [];
    for ( var i = 0, l = arr.length; i < l; i++ ) {
        results[i] = toUpper(arr[i]);
    }
    return results;
}

function getEraYear(date, cal, era, sortable) {
    var year = date.getFullYear();
    if ( !sortable && cal.eras ) {
        // convert normal gregorian year to era-shifted gregorian
        // year by subtracting the era offset
        year -= cal.eras[ era ].offset;
    }
    return year;
}

function getDayIndex(cal, value, abbr) {
    var ret,
        days = cal.days,
        upperDays = cal._upperDays;
    if ( !upperDays ) {
        cal._upperDays = upperDays = [
            toUpperArray( days.names ),
            toUpperArray( days.namesAbbr ),
            toUpperArray( days.namesShort )
        ];
    }
    value = toUpper( value );
    if ( abbr ) {
        ret = arrayIndexOf( upperDays[ 1 ], value );
        if ( ret === -1 ) {
            ret = arrayIndexOf( upperDays[ 2 ], value );
        }
    }
    else {
        ret = arrayIndexOf( upperDays[ 0 ], value );
    }
    return ret;
}

function getMonthIndex(cal, value, abbr) {
    var months = cal.months,
        monthsGen = cal.monthsGenitive || cal.months,
        upperMonths = cal._upperMonths,
        upperMonthsGen = cal._upperMonthsGen;
    if ( !upperMonths ) {
        cal._upperMonths = upperMonths = [
            toUpperArray( months.names ),
            toUpperArray( months.namesAbbr )
        ];
        cal._upperMonthsGen = upperMonthsGen = [
            toUpperArray( monthsGen.names ),
            toUpperArray( monthsGen.namesAbbr )
        ];
    }
    value = toUpper( value );
    var i = arrayIndexOf( abbr ? upperMonths[ 1 ] : upperMonths[ 0 ], value );
    if ( i < 0 ) {
        i = arrayIndexOf( abbr ? upperMonthsGen[ 1 ] : upperMonthsGen[ 0 ], value );
    }
    return i;
}

function appendPreOrPostMatch(preMatch, strings) {
    // appends pre- and post- token match strings while removing escaped characters.
    // Returns a single quote count which is used to determine if the token occurs
    // in a string literal.
    var quoteCount = 0,
        escaped = false;
    for ( var i = 0, il = preMatch.length; i < il; i++ ) {
        var c = preMatch.charAt( i );
        switch ( c ) {
            case '\'':
                if ( escaped ) {
                    strings.push( "'" );
                }
                else {
                    quoteCount++;
                }
                escaped = false;
                break;
            case '\\':
                if ( escaped ) {
                    strings.push( "\\" );
                }
                escaped = !escaped;
                break;
            default:
                strings.push( c );
                escaped = false;
                break;
        }
    }
    return quoteCount;
}

function expandFormat(cal, format) {
    // expands unspecified or single character date formats into the full pattern.
    format = format || "F";
    var pattern,
        patterns = cal.patterns,
        len = format.length;
    if ( len === 1 ) {
        pattern = patterns[ format ];
        if ( !pattern ) {
            throw "Invalid date format string '" + format + "'.";
        }
        format = pattern;
    }
    else if ( len === 2  && format.charAt(0) === "%" ) {
        // %X escape format -- intended as a custom format string that is only one character, not a built-in format.
        format = format.charAt( 1 );
    }
    return format;
}

function getParseRegExp(cal, format) {
    // converts a format string into a regular expression with groups that
    // can be used to extract date fields from a date string.
    // check for a cached parse regex.
    var re = cal._parseRegExp;
    if ( !re ) {
        cal._parseRegExp = re = {};
    }
    else {
        var reFormat = re[ format ];
        if ( reFormat ) {
            return reFormat;
        }
    }

    // expand single digit formats, then escape regular expression characters.
    var expFormat = expandFormat( cal, format ).replace( /([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g, "\\\\$1" ),
        regexp = ["^"],
        groups = [],
        index = 0,
        quoteCount = 0,
        tokenRegExp = getTokenRegExp(),
        match;

    // iterate through each date token found.
    while ( (match = tokenRegExp.exec( expFormat )) !== null ) {
        var preMatch = expFormat.slice( index, match.index );
        index = tokenRegExp.lastIndex;

        // don't replace any matches that occur inside a string literal.
        quoteCount += appendPreOrPostMatch( preMatch, regexp );
        if ( quoteCount % 2 ) {
            regexp.push( match[ 0 ] );
            continue;
        }

        // add a regex group for the token.
        var m = match[ 0 ],
            len = m.length,
            add;
        switch ( m ) {
            case 'dddd': case 'ddd':
            case 'MMMM': case 'MMM':
            case 'gg': case 'g':
                add = "(\\D+)";
                break;
            case 'tt': case 't':
                add = "(\\D*)";
                break;
            case 'yyyy':
            case 'fff':
            case 'ff':
            case 'f':
                add = "(\\d{" + len + "})";
                break;
            case 'dd': case 'd':
            case 'MM': case 'M':
            case 'yy': case 'y':
            case 'HH': case 'H':
            case 'hh': case 'h':
            case 'mm': case 'm':
            case 'ss': case 's':
                add = "(\\d\\d?)";
                break;
            case 'zzz':
                add = "([+-]?\\d\\d?:\\d{2})";
                break;
            case 'zz': case 'z':
                add = "([+-]?\\d\\d?)";
                break;
            case '/':
                add = "(\\" + cal["/"] + ")";
                break;
            default:
                throw "Invalid date format pattern '" + m + "'.";
                break;
        }
        if ( add ) {
            regexp.push( add );
        }
        groups.push( match[ 0 ] );
    }
    appendPreOrPostMatch( expFormat.slice( index ), regexp );
    regexp.push( "$" );

    // allow whitespace to differ when matching formats.
    var regexpStr = regexp.join( '' ).replace( /\s+/g, "\\s+" ),
        parseRegExp = {'regExp': regexpStr, 'groups': groups};

    // cache the regex for this format.
    return re[ format ] = parseRegExp;
}

function getTokenRegExp() {
    // regular expression for matching date and time tokens in format strings.
    return /\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g;
}

function parseExact(value, format, culture) {
    // try to parse the date string by matching against the format string
    // while using the specified culture for date field names.
    value = trim( value );
    var cal = culture.calendar,
        // convert date formats into regular expressions with groupings.
        // use the regexp to determine the input format and extract the date fields.
        parseInfo = getParseRegExp(cal, format),
        match = new RegExp(parseInfo.regExp).exec(value);
    if (match === null) {
        return null;
    }
    // found a date format that matches the input.
    var groups = parseInfo.groups,
        era = null, year = null, month = null, date = null, weekDay = null,
        hour = 0, hourOffset, min = 0, sec = 0, msec = 0, tzMinOffset = null,
        pmHour = false;
    // iterate the format groups to extract and set the date fields.
    for ( var j = 0, jl = groups.length; j < jl; j++ ) {
        var matchGroup = match[ j + 1 ];
        if ( matchGroup ) {
            var current = groups[ j ],
                clength = current.length,
                matchInt = parseInt( matchGroup, 10 );
            switch ( current ) {
                case 'dd': case 'd':
                    // Day of month.
                    date = matchInt;
                    // check that date is generally in valid range, also checking overflow below.
                    if ( outOfRange( date, 1, 31 ) ) return null;
                    break;
                case 'MMM':
                case 'MMMM':
                    month = getMonthIndex( cal, matchGroup, clength === 3 );
                    if ( outOfRange( month, 0, 11 ) ) return null;
                    break;
                case 'M': case 'MM':
                    // Month.
                    month = matchInt - 1;
                    if ( outOfRange( month, 0, 11 ) ) return null;
                    break;
                case 'y': case 'yy':
                case 'yyyy':
                    year = clength < 4 ? expandYear( cal, matchInt ) : matchInt;
                    if ( outOfRange( year, 0, 9999 ) ) return null;
                    break;
                case 'h': case 'hh':
                    // Hours (12-hour clock).
                    hour = matchInt;
                    if ( hour === 12 ) hour = 0;
                    if ( outOfRange( hour, 0, 11 ) ) return null;
                    break;
                case 'H': case 'HH':
                    // Hours (24-hour clock).
                    hour = matchInt;
                    if ( outOfRange( hour, 0, 23 ) ) return null;
                    break;
                case 'm': case 'mm':
                    // Minutes.
                    min = matchInt;
                    if ( outOfRange( min, 0, 59 ) ) return null;
                    break;
                case 's': case 'ss':
                    // Seconds.
                    sec = matchInt;
                    if ( outOfRange( sec, 0, 59 ) ) return null;
                    break;
                case 'tt': case 't':
                    // AM/PM designator.
                    // see if it is standard, upper, or lower case PM. If not, ensure it is at least one of
                    // the AM tokens. If not, fail the parse for this format.
                    pmHour = cal.PM && ( matchGroup === cal.PM[0] || matchGroup === cal.PM[1] || matchGroup === cal.PM[2] );
                    if ( !pmHour && ( !cal.AM || (matchGroup !== cal.AM[0] && matchGroup !== cal.AM[1] && matchGroup !== cal.AM[2]) ) ) return null;
                    break;
                case 'f':
                    // Deciseconds.
                case 'ff':
                    // Centiseconds.
                case 'fff':
                    // Milliseconds.
                    msec = matchInt * Math.pow( 10, 3-clength );
                    if ( outOfRange( msec, 0, 999 ) ) return null;
                    break;
                case 'ddd':
                    // Day of week.
                case 'dddd':
                    // Day of week.
                    weekDay = getDayIndex( cal, matchGroup, clength === 3 );
                    if ( outOfRange( weekDay, 0, 6 ) ) return null;
                    break;
                case 'zzz':
                    // Time zone offset in +/- hours:min.
                    var offsets = matchGroup.split( /:/ );
                    if ( offsets.length !== 2 ) return null;
                    hourOffset = parseInt( offsets[ 0 ], 10 );
                    if ( outOfRange( hourOffset, -12, 13 ) ) return null;
                    var minOffset = parseInt( offsets[ 1 ], 10 );
                    if ( outOfRange( minOffset, 0, 59 ) ) return null;
                    tzMinOffset = (hourOffset * 60) + (startsWith( matchGroup, '-' ) ? -minOffset : minOffset);
                    break;
                case 'z': case 'zz':
                    // Time zone offset in +/- hours.
                    hourOffset = matchInt;
                    if ( outOfRange( hourOffset, -12, 13 ) ) return null;
                    tzMinOffset = hourOffset * 60;
                    break;
                case 'g': case 'gg':
                    var eraName = matchGroup;
                    if ( !eraName || !cal.eras ) return null;
                    eraName = trim( eraName.toLowerCase() );
                    for ( var i = 0, l = cal.eras.length; i < l; i++ ) {
                        if ( eraName === cal.eras[ i ].name.toLowerCase() ) {
                            era = i;
                            break;
                        }
                    }
                    // could not find an era with that name
                    if ( era === null ) return null;
                    break;
            }
        }
    }
    var result = new Date(), defaultYear, convert = cal.convert;
    defaultYear = convert ? convert.fromGregorian( result )[ 0 ] : result.getFullYear();
    if ( year === null ) {
        year = defaultYear;
    }
    else if ( cal.eras ) {
        // year must be shifted to normal gregorian year
        // but not if year was not specified, its already normal gregorian
        // per the main if clause above.
        year += cal.eras[ (era || 0) ].offset;
    }
    // set default day and month to 1 and January, so if unspecified, these are the defaults
    // instead of the current day/month.
    if ( month === null ) {
        month = 0;
    }
    if ( date === null ) {
        date = 1;
    }
    // now have year, month, and date, but in the culture's calendar.
    // convert to gregorian if necessary
    if ( convert ) {
        result = convert.toGregorian( year, month, date );
        // conversion failed, must be an invalid match
        if ( result === null ) return null;
    }
    else {
        // have to set year, month and date together to avoid overflow based on current date.
        result.setFullYear( year, month, date );
        // check to see if date overflowed for specified month (only checked 1-31 above).
        if ( result.getDate() !== date ) return null;
        // invalid day of week.
        if ( weekDay !== null && result.getDay() !== weekDay ) {
            return null;
        }
    }
    // if pm designator token was found make sure the hours fit the 24-hour clock.
    if ( pmHour && hour < 12 ) {
        hour += 12;
    }
    result.setHours( hour, min, sec, msec );
    if ( tzMinOffset !== null ) {
        // adjust timezone to utc before applying local offset.
        var adjustedMin = result.getMinutes() - ( tzMinOffset + result.getTimezoneOffset() );
        // Safari limits hours and minutes to the range of -127 to 127.  We need to use setHours
        // to ensure both these fields will not exceed this range.  adjustedMin will range
        // somewhere between -1440 and 1500, so we only need to split this into hours.
        result.setHours( result.getHours() + parseInt( adjustedMin / 60, 10 ), adjustedMin % 60 );
    }
    return result;
}

function formatDate(value, format, culture) {
    var cal = culture.calendar,
        convert = cal.convert;
    if ( !format || !format.length || format === 'i' ) {
        var ret;
        if ( culture && culture.name.length ) {
            if ( convert ) {
                // non-gregorian calendar, so we cannot use built-in toLocaleString()
                ret = formatDate( value, cal.patterns.F, culture );
            }
            else {
                var eraDate = new Date( value.getTime() ),
                    era = getEra( value, cal.eras );
                eraDate.setFullYear( getEraYear( value, cal, era ) );
                ret = eraDate.toLocaleString();
            }
        }
        else {
            ret = value.toString();
        }
        return ret;
    }

    var eras = cal.eras,
        sortable = format === "s";
    format = expandFormat( cal, format );

    // Start with an empty string
    ret = [];
    var hour,
        zeros = ['0','00','000'],
        foundDay,
        checkedDay,
        dayPartRegExp = /([^d]|^)(d|dd)([^d]|$)/g,
        quoteCount = 0,
        tokenRegExp = getTokenRegExp(),
        converted;

    function padZeros(num, c) {
        var r, s = num+'';
        if ( c > 1 && s.length < c ) {
            r = ( zeros[ c - 2 ] + s);
            return r.substr( r.length - c, c );
        }
        else {
            r = s;
        }
        return r;
    }

    function hasDay() {
        if ( foundDay || checkedDay ) {
            return foundDay;
        }
        foundDay = dayPartRegExp.test( format );
        checkedDay = true;
        return foundDay;
    }

    function getPart( date, part ) {
        if ( converted ) {
            return converted[ part ];
        }
        switch ( part ) {
            case 0: return date.getFullYear();
            case 1: return date.getMonth();
            case 2: return date.getDate();
        }
    }

    if ( !sortable && convert ) {
        converted = convert.fromGregorian( value );
    }

    for (;;) {
        // Save the current index
        var index = tokenRegExp.lastIndex,
            // Look for the next pattern
            ar = tokenRegExp.exec( format );

        // Append the text before the pattern (or the end of the string if not found)
        var preMatch = format.slice( index, ar ? ar.index : format.length );
        quoteCount += appendPreOrPostMatch( preMatch, ret );

        if ( !ar ) {
            break;
        }

        // do not replace any matches that occur inside a string literal.
        if ( quoteCount % 2 ) {
            ret.push( ar[ 0 ] );
            continue;
        }

        var current = ar[ 0 ],
            clength = current.length;

        switch ( current ) {
            case "ddd":
                //Day of the week, as a three-letter abbreviation
            case "dddd":
                // Day of the week, using the full name
                names = (clength === 3) ? cal.days.namesAbbr : cal.days.names;
                ret.push( names[ value.getDay() ] );
                break;
            case "d":
                // Day of month, without leading zero for single-digit days
            case "dd":
                // Day of month, with leading zero for single-digit days
                foundDay = true;
                ret.push( padZeros( getPart( value, 2 ), clength ) );
                break;
            case "MMM":
                // Month, as a three-letter abbreviation
            case "MMMM":
                // Month, using the full name
                var part = getPart( value, 1 );
                ret.push( (cal.monthsGenitive && hasDay())
                    ? cal.monthsGenitive[ clength === 3 ? "namesAbbr" : "names" ][ part ]
                    : cal.months[ clength === 3 ? "namesAbbr" : "names" ][ part ] );
                break;
            case "M":
                // Month, as digits, with no leading zero for single-digit months
            case "MM":
                // Month, as digits, with leading zero for single-digit months
                ret.push( padZeros( getPart( value, 1 ) + 1, clength ) );
                break;
            case "y":
                // Year, as two digits, but with no leading zero for years less than 10
            case "yy":
                // Year, as two digits, with leading zero for years less than 10
            case "yyyy":
                // Year represented by four full digits
                part = converted ? converted[ 0 ] : getEraYear( value, cal, getEra( value, eras ), sortable );
                if ( clength < 4 ) {
                    part = part % 100;
                }
                ret.push( padZeros( part, clength ) );
                break;
            case "h":
                // Hours with no leading zero for single-digit hours, using 12-hour clock
            case "hh":
                // Hours with leading zero for single-digit hours, using 12-hour clock
                hour = value.getHours() % 12;
                if ( hour === 0 ) hour = 12;
                ret.push( padZeros( hour, clength ) );
                break;
            case "H":
                // Hours with no leading zero for single-digit hours, using 24-hour clock
            case "HH":
                // Hours with leading zero for single-digit hours, using 24-hour clock
                ret.push( padZeros( value.getHours(), clength ) );
                break;
            case "m":
                // Minutes with no leading zero  for single-digit minutes
            case "mm":
                // Minutes with leading zero  for single-digit minutes
                ret.push( padZeros( value.getMinutes(), clength ) );
                break;
            case "s":
                // Seconds with no leading zero for single-digit seconds
            case "ss":
                // Seconds with leading zero for single-digit seconds
                ret.push( padZeros(value .getSeconds(), clength ) );
                break;
            case "t":
                // One character am/pm indicator ("a" or "p")
            case "tt":
                // Multicharacter am/pm indicator
                part = value.getHours() < 12 ? (cal.AM ? cal.AM[0] : " ") : (cal.PM ? cal.PM[0] : " ");
                ret.push( clength === 1 ? part.charAt( 0 ) : part );
                break;
            case "f":
                // Deciseconds
            case "ff":
                // Centiseconds
            case "fff":
                // Milliseconds
                ret.push( padZeros( value.getMilliseconds(), 3 ).substr( 0, clength ) );
                break;
            case "z":
                // Time zone offset, no leading zero
            case "zz":
                // Time zone offset with leading zero
                hour = value.getTimezoneOffset() / 60;
                ret.push( (hour <= 0 ? '+' : '-') + padZeros( Math.floor( Math.abs( hour ) ), clength ) );
                break;
            case "zzz":
                // Time zone offset with leading zero
                hour = value.getTimezoneOffset() / 60;
                ret.push( (hour <= 0 ? '+' : '-') + padZeros( Math.floor( Math.abs( hour ) ), 2 ) +
                    // Hard coded ":" separator, rather than using cal.TimeSeparator
                    // Repeated here for consistency, plus ":" was already assumed in date parsing.
                    ":" + padZeros( Math.abs( value.getTimezoneOffset() % 60 ), 2 ) );
                break;
            case "g":
            case "gg":
                if ( cal.eras ) {
                    ret.push( cal.eras[ getEra(value, eras) ].name );
                }
                break;
        case "/":
            ret.push( cal["/"] );
            break;
        default:
            throw "Invalid date format pattern '" + current + "'.";
            break;
        }
    }
    return ret.join( '' );
}

// EXPORTS
jQuery.global = Globalization;

})();


;/**
 * jQuery.ScrollTo - Easy element scrolling using jQuery.
 * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 5/25/2009
 * @author Ariel Flesler
 * @version 1.4.2
 *
 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
 */
;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);
;(function(e){var x={msg:{pwd_short:"Too short",pwd_weak:"Weak",pwd_moderate:"Moderate",pwd_good:"Good",pwd_strong:"Strong"},rules:[],position:"right",width:null,link:{id:null,href:null,cls:null,target:null,title:null,style:null,text:null},hint:"",direction:"ltr",min_length:6,rec_length:8,container:null,empty_container:null,draw_now:null,onLayoutChange:null,debug:!1};String.fromCharCode(36);var y=String.fromCharCode(92);if(!e.type){var q={},z=Object.prototype.toString;e.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(e,o){q["[object "+o+"]"]=o.toLowerCase()});e.type=function(e){return e==null?String(e):q[z.call(e)]||"object"}}e.pwdmeter=function(n,o){return e(n).pwdmeter(o)};e.fn.pwdmeter=function(n){function o(){var b=e.type(a.position)=="string"?a.position:null,c=a.link.href?"a":"span",d="<"+c+' class="'+(a.direction=="ltr"?"pm-tl":"pm-tr")+(a.link.cls?" "+a.link.cls:"")+'"'+(a.link.href?'href="'+a.link.href+'"'+(a.link.target?' target="'+a.link.target+'"':""):"")+(a.link.id?' id="'+a.link.id+'"':"")+ (a.link.title?' title="'+a.link.title+'"':"")+(a.link.style?' style="'+a.link.style+'"':"")+">"+(a.link.text?a.link.text:"&nbsp;")+"</"+c+">",f='<span id="pm-verdict" class="'+(a.direction=="ltr"?"pm-tr":"pm-tl")+'">&nbsp;</span>',c=a.container?e(a.container):p;h=e('<div id="pm-cont" class="pm-'+b+'"'+(a.width>0?'style="width: '+a.width+'px;"':a.width=="max"?'style="display: none;"':'style="width: '+a.width+';"')+'><div id="pm-text">'+(a.direction=="ltr"?d+f:f+d)+'<div class="pm-fix">&nbsp;</div></div><div id="pm-full" class="pm-bar"><div id="pm-progress" class="pm-bar '+ a.direction+'">&nbsp;</div></div></div>');t=h.find("#pm-verdict");u=h.find("#pm-progress");b?b=="left"||b=="right"?(b=="left"&&(c.before(h),c.after('<div class="pm-fix">&nbsp;</div>')),b=="right"&&(c.after(h),h.after('<div class="pm-fix">&nbsp;</div>')),b=c.outerHeight(!0),d=h.outerHeight(!0),b-=d,b!=0&&(b>0?h.css({marginTop:b}):c.css({marginTop:-b})),c.css({"float":"left"})):b=="top"?c.before(h):b=="bottom"?c.after(h):b=="inside"&&(a.empty_container&&c.empty(),c.append(h)):a.position.jquery?a.position.append(h): alert("Invalid position defined...");a.width=="max"&&(b=c.parent().width(),c=c.outerWidth(!0),d=h.width(),f=h.outerWidth(!0),h.css({display:"block",width:b-c-(f-d)}));a.hint!=""&&e('<p id="pm-hint">'+a.hint+"</p>").insertAfter(h);typeof a.onLayoutChange==="function"&&a.onLayoutChange.call(h)}function q(){var b="",c="",d=p.val(),e=p.data("pwm_old_score")||{length:0,score:0};h||o();var i=0,j=null,j=null,g=0,k={},l=j=g=0,m=0,r=0;if(!(d.length<a.min_length)){if(d.match(/[a-z]/))i+=15,k.lower=15,g=1;if(d.match(/[A-Z]/))i+= 15,k.upper=15,j=1;if(d.match(/[0-9]/))i+=15,k.numbers=15,l=1;if(d.match(/[^A-Za-z0-9]/))i+=20,k.symbols=20,m=1;if(d.match(/(.*[0-9].*[0-9].*[0-9])/))i+=10,k.numbers3=10;if(j&&g)i+=10,k.lower_upper=10;if((r=d.match(/[a-zA-Z]/)?1:0)&&l)i+=10,k.chars_numbers=10;if(l&&m)i+=15,k.symbols_numbers=15;if(r&&m)i+=15,k.symbols_chars=15;if(d.match(/^[\w][^\d]+$/)||d.match(/^\d+$/))i-=10,k.just_number_chars=-10;if(j=d.match("(.)"+y+"1+","g")){for(g=0;g<j.length;g++)i-=j[g].length*5;k.repetitions=j}g=["01234567890", "abcdefghijklmnopqrstuvwxyz",")!@#$%^&*()"];j=[0,0,0];for(l=0;l<g.length;l++)for(m=0;m<g[l].length-3;m++){var r=g[l].substring(m,parseInt(m+3)),s;s=r;for(var n="",v=0;v<s.length;v++)n=s.charAt(v)+n;s=n;(d.toLowerCase().indexOf(r)!=-1||d.toLowerCase().indexOf(s)!=-1)&&j[l]++}k.sequences=[];for(g=0;g<j.length;g++)j[g]!=0?i-=j[g]*(3-g):i+=g*5,k.sequences[g]=j[g];i=i>80&&d.length<a.rec_length?80:i;k.score=i}f=i;f=d.length>=e.length&&f<e.score?e.score:f;p.data("pwm_old_score",{score:f,length:d.length}); f=f<0?0:f>100?100:f;if(f<=35)b="pm-pwd_weak",c=a.msg.pwd_weak;else if(f<=55)b="pm-pwd_moderate",c=a.msg.pwd_moderate;else if(f<=80)b="pm-pwd_good",c=a.msg.pwd_good;else if(f<=100)b="pm-pwd_strong",c=a.msg.pwd_strong;if(d.length<a.min_length)b="pm-pwd_short",c=a.msg.pwd_short,f=0;d.length==0&&(c=b="",f=0);u.removeClass(w).addClass(b);t.removeClass(w).addClass(b);t.text(c);u.css("width",f+"%");w=b}var h=null,t=null,u=null,w="",p=this,f=0,a=e.extend(!0,{},x,n);a.position=a.position?a.position:"right"; a.rules=e.isArray(a.rules)?a.rules:[];a.direction=a.direction!="ltr"&&a.direction!="rtl"?"ltr":a.direction;p.bind("keyup",q);a.draw_now&&(o(),p[0].value!=""&&q());return p}})(jQuery);
;/*
 * jQuery autoResize (textarea auto-resizer)
 * @copyright James Padolsey http://james.padolsey.com
 * @version 1.04
 */

(function(a){a.fn.autoResize=function(j){var b=a.extend({onResize:function(){},animate:true,animateDuration:150,animateCallback:function(){},extraSpace:20,limit:1000},j);this.filter('textarea').each(function(){var c=a(this).css({resize:'none','overflow-y':'hidden'}),k=c.height(),f=(function(){var l=['height','width','lineHeight','textDecoration','letterSpacing'],h={};a.each(l,function(d,e){h[e]=c.css(e)});return c.clone().removeAttr('id').removeAttr('name').css({position:'absolute',top:0,left:-9999}).css(h).attr('tabIndex','-1').insertBefore(c)})(),i=null,g=function(){f.height(0).val(a(this).val()).scrollTop(10000);var d=Math.max(f.scrollTop(),k)+b.extraSpace,e=a(this).add(f);if(i===d){return}i=d;if(d>=b.limit){a(this).css('overflow-y','');return}b.onResize.call(this);b.animate&&c.css('display')==='block'?e.stop().animate({height:d},b.animateDuration,b.animateCallback):e.height(d)};c.unbind('.dynSiz').bind('keyup.dynSiz',g).bind('keydown.dynSiz',g).bind('change.dynSiz',g)});return this}})(jQuery);
;(function(d){function i(g){if(typeof g.data==="string"){var j=g.handler,h=g.data.toLowerCase().split(" ");g.handler=function(a){if(!(this!==a.target&&(/textarea|select/i.test(a.target.nodeName)||a.target.type==="text"))){var b=a.type!=="keypress"&&d.hotkeys.specialKeys[a.which],e=String.fromCharCode(a.which).toLowerCase(),c="",f={};if(a.altKey&&b!=="alt")c+="alt+";if(a.ctrlKey&&b!=="ctrl")c+="ctrl+";if(a.metaKey&&!a.ctrlKey&&b!=="meta")c+="meta+";if(a.shiftKey&&b!=="shift")c+="shift+";if(b)f[c+b]= true;else{f[c+e]=true;f[c+d.hotkeys.shiftNums[e]]=true;if(c==="shift+")f[d.hotkeys.shiftNums[e]]=true}b=0;for(e=h.length;b<e;b++)if(f[h[b]])return j.apply(this,arguments)}}}}d.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9", 106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta"},shiftNums:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}};d.each(["keydown","keyup","keypress"],function(){d.event.special[this]={add:i}})})(jQuery);
;;(function($) {
	$.idefaults = function(elem, allow_submit) {
		return $(elem).pwdmeter(allow_submit);
	}
	
    $.fn.idefaults = function(allow_submit) {
		if (!this.length) return;
		// Save this refference
		var jobj = this;
		
		// Default search text
		var _meta = jobj.metadata({type: 'attr', name: 'data'});
		var txt = _meta.txt;
		var populate = _meta.search_string || _meta.populate;
		
		// Select closest parent form
		var par = jobj.closest("form");
			
		if (populate) { jobj.val(""); }
		
		// If jobj is empty add default text
		if ($.trim(populate) == "" || (populate == txt)) {
			jobj.css("color", "#AAAAAA");
			jobj.val(txt);
		}
		else {
			jobj.val(populate);
		}
		
		// Assign jobj actions
		jobj.bind("focus focus.bypass", function(e){
			if (e.handleObj.namespace != "bypass") {
				
				var val = jobj.val();
				
				// Remove default text on focus
				if (($.trim(val) == "") || (val == txt)) {
					jobj.val("");
					jobj.css("color", "#666666");
				}
				else {
					// jobj.get(0).select();
				}	
			}
		}).bind("blur blur.bypass", function(e){
			if (e.handleObj.namespace != "bypass") {
				// Add default text on blur if jobj is empty
				if ($.trim(jobj.val()) == "") {
					jobj.val(txt);
					jobj.css("color", "#AAAAAA");
				}	
			}
		});
		
		// If jobj is empty or has default text, disable form submision
		par.submit(function(e){
			var val = jobj.val();
			
			if (($.trim(val) == "") || (val == txt)) {
				if (allow_submit) {
					jobj.val("");
				}
				else {
					return false;
				}
			}
		});
		
		return jobj;
	};
})(jQuery);
;function init_widget_cfg() {
	jQuery("#w_step").numeric();
	jQuery("#w_width,#w_height").blur(function(){
		var val = jQuery(this).val();
		if (!(val > 0) && (val.toLowerCase() != "auto")) {
			jQuery(this).closest(".fr").addClass("mark_red");
		}
		else {
			jQuery(this).closest(".fr").removeClass("mark_red");
		}
	});
	
	jQuery("#widget_colors").find("div.colorpicker_target").ColorPicker({
		onChange: function(hsb, hex, rgb) {
			var el = jQuery(this.data('colorpicker').el);
			el.css("backgroundColor", "#" + hex);
			el.prev("input:text").val("#" + hex.toUpperCase());
		},
		onHide: function(){
			update_all();
		}
	});
	
	jQuery("#widget_templates").find("img").click(function(){
		
		base_data = jQuery.extend({}, base_data, jQuery(this).metadata());
		update_from_theme();
		update_all();
		
		return false;
		
	}).eq(0).triggerHandler("click");
	
	jQuery("#widget_colors").find("input:text").click(function(){
		jQuery(this).next(".colorpicker_target").trigger("click");
	});
	
	jQuery(".w_data")
		.filter("select").change(update_all).end()
		.filter(":text").blur(update_all).end()
		.filter(":checkbox").click(update_all).end()
		.filter(":radio").change(update_all);
}

function update_from_theme() {
	var is_theme = false;
	for (v in base_data) {
		if (typeof(base_data[v]) == "object") {
			is_theme = (v == "theme" ? true : false);
			for (vv in base_data[v]) {
				if (typeof(base_data[v][vv]) == "object") {
					for (vvv in base_data[v][vv]) {
						var val = base_data[v][vv][vvv];
						if (is_theme) {
							jQuery("#w_" + v + "_" + vv + "_" + vvv).val(val).next(".colorpicker_target").css("backgroundColor", val).ColorPickerSetColor(val);
						}
						else {
							jQuery("#w_" + v + "_" + vv + "_" + vvv).val(val);
						}
					}
				}
				else {
					jQuery("#w_" + v + "_" + vv).val(base_data[v][vv]);
				}
			}
		}
		else {
			if (jQuery("#w_" + v).length) {
				jQuery("#w_" + v).val(base_data[v]);
			}
			else if (jQuery("input:radio[name='" + v + "']").length){
				jQuery("#" + v + "_" + base_data[v]).attr("checked", "checked");
			}
		}
	}
}

function objectToString(o) {
	var parse = function(_o) {

		var a = [], t;
		for(var p in _o) {
			if(_o.hasOwnProperty(p)) {
				t = _o[p];
				if(t && typeof t == "object") {
					a[a.length] = "\t" + p + ": {\n\t" + arguments.callee(t).join(",\n\t\t") + "\n\t}";
				}
				else {
					if(typeof t == "string") {
						a[a.length] = ["\t" + p + ": \"" + t.toString() + "\"" ];
					}
					else {
						a[a.length] = ["\t" + p + ": " + t.toString()];
					}
				}
			}
		}

		return a;
	}
    
	return "{\n" + parse(o).join(",\n") + "\n}";
}

var odump = (function(){
	var max, INDENT = "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
	
	function valueToStr(value, depth) {
		switch(typeof value) {
			case "object": 
				return objectToStr(value, depth + 1);
			case "function": 
				return "function";
			case "string":
				return "\"" + value + "\"";
			default:         
				return value;
		}
	};
  
	function objectToStr(object, depth) {
		if(depth > max)
			return false;
		var type = Object.prototype.toString.call(object),
			output = "\n",
			indent = INDENT.substr(0, depth);
		for(var key in object)
			output += indent + key + ": " + valueToStr(object[key], depth) + ",\n";
		indent = INDENT.substr(0, depth - 1);
		switch(type) {
			case "[object Object]":
				return "{ " + output.substr(0, output.length - 2) + "\n" + indent + "}";  
			case "[object Array]":
				return "[ " + output.substr(0, output.length - 2) + "\n" + indent + "]";  
			default:
				return;
		}
	};
  
	return function odump(object, depth, _max) {
		max = _max || 2;
		return objectToStr(object, depth || 0);
	};
})();


function update_all() {
	var tmp = {};
	jQuery(".w_data").not(":radio:not(:checked)").each(function(){
		var id = (jQuery(this).is(":radio") ? jQuery(this).metadata().key : this.id), i = 1, v = tmp;
		id = id.split("_");
		var l = id.length;
		
		for (; i < l - 1; i ++) {
			v[id[i]] = v[id[i]] || {};
			v = v[id[i]];
		}
		if (jQuery(this).is(":checkbox")) {
			v[id[i]] = Number(jQuery(this).is(":checked"));
		}
		else {
			if (jQuery(this).val() != "") {
				var val = jQuery(this).val();
				v[id[i]] = (parseInt(val) > 0 ? parseInt(val) : val);
			}
		}
	});
	
	base_data = jQuery.extend({}, base_data, tmp);
	try {
		SHP.WidgetManager.widget_list.ministore[0]._redrawWidget(base_data);
	}
	catch(e) {};
	
	var txt = "<scr" + "ipt type=\"text/javascript\" src=\"" + PATH_STATIC_MAIN + "/js/widget/widget_ministore.js\"></scr" + "ipt>\n" +
	"<scr" + "ipt type=\"text/javascript\">\n" +
	"new SHP.WidgetManager(" + odump(base_data, 1, 10) + ");\n</scr" + "ipt>\n" + ((typeof(TXT_POWERED) != "undefined" && TXT_POWERED != "") ? ("<div class=\"shopmania_powered\"><a href=\"" + LINK_POWERED + "\" target=\"_blank\" class=\"link_powered\">" + TXT_POWERED + "</a></div>") : "") + "<noscr" + "ipt>\n" + jQuery("#no_script").html() + "\n</noscr" + "ipt>";
	
	jQuery("#use_code").val(txt);
}
;/*
 * Copyright (c) 2009 Simo Kinnunen.
 * Licensed under the MIT license.
 *
 * @version 1.09
 */
var Cufon=(function(){var m=function(){return m.replace.apply(null,arguments)};var x=m.DOM={ready:(function(){var C=false,E={loaded:1,complete:1};var B=[],D=function(){if(C){return}C=true;for(var F;F=B.shift();F()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",D,false);window.addEventListener("pageshow",D,false)}if(!window.opera&&document.readyState){(function(){E[document.readyState]?D():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");D()}catch(F){setTimeout(arguments.callee,1)}})()}q(window,"load",D);return function(F){if(!arguments.length){D()}else{C?F():B.push(F)}}})(),root:function(){return document.documentElement||document.body}};var n=m.CSS={Size:function(C,B){this.value=parseFloat(C);this.unit=String(C).match(/[a-z%]*$/)[0]||"px";this.convert=function(D){return D/B*this.value};this.convertFrom=function(D){return D/this.value*B};this.toString=function(){return this.value+this.unit}},addClass:function(C,B){var D=C.className;C.className=D+(D&&" ")+B;return C},color:j(function(C){var B={};B.color=C.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(E,D,F){B.opacity=parseFloat(F);return"rgb("+D+")"});return B}),fontStretch:j(function(B){if(typeof B=="number"){return B}if(/%$/.test(B)){return parseFloat(B)/100}return{"ultra-condensed":0.5,"extra-condensed":0.625,condensed:0.75,"semi-condensed":0.875,"semi-expanded":1.125,expanded:1.25,"extra-expanded":1.5,"ultra-expanded":2}[B]||1}),getStyle:function(C){var B=document.defaultView;if(B&&B.getComputedStyle){return new a(B.getComputedStyle(C,null))}if(C.currentStyle){return new a(C.currentStyle)}return new a(C.style)},gradient:j(function(F){var G={id:F,type:F.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},C=F.substr(F.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var E=0,B=C.length,D;E<B;++E){D=C[E].split("=",2).reverse();G.stops.push([D[1]||E/(B-1),D[0]])}return G}),quotedList:j(function(E){var D=[],C=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,B;while(B=C.exec(E)){D.push(B[3]||B[1])}return D}),recognizesMedia:j(function(G){var E=document.createElement("style"),D,C,B;E.type="text/css";E.media=G;try{E.appendChild(document.createTextNode("/**/"))}catch(F){}C=g("head")[0];C.insertBefore(E,C.firstChild);D=(E.sheet||E.styleSheet);B=D&&!D.disabled;C.removeChild(E);return B}),removeClass:function(D,C){var B=RegExp("(?:^|\\s+)"+C+"(?=\\s|$)","g");D.className=D.className.replace(B,"");return D},supports:function(D,C){var B=document.createElement("span").style;if(B[D]===undefined){return false}B[D]=C;return B[D]===C},textAlign:function(E,D,B,C){if(D.get("textAlign")=="right"){if(B>0){E=" "+E}}else{if(B<C-1){E+=" "}}return E},textShadow:j(function(F){if(F=="none"){return null}var E=[],G={},B,C=0;var D=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(B=D.exec(F)){if(B[0]==","){E.push(G);G={};C=0}else{if(B[1]){G.color=B[1]}else{G[["offX","offY","blur"][C++]]=B[2]}}}E.push(G);return E}),textTransform:(function(){var B={uppercase:function(C){return C.toUpperCase()},lowercase:function(C){return C.toLowerCase()},capitalize:function(C){return C.replace(/\b./g,function(D){return D.toUpperCase()})}};return function(E,D){var C=B[D.get("textTransform")];return C?C(E):E}})(),whiteSpace:(function(){var D={inline:1,"inline-block":1,"run-in":1};var C=/^\s+/,B=/\s+$/;return function(H,F,G,E){if(E){if(E.nodeName.toLowerCase()=="br"){H=H.replace(C,"")}}if(D[F.get("display")]){return H}if(!G.previousSibling){H=H.replace(C,"")}if(!G.nextSibling){H=H.replace(B,"")}return H}})()};n.ready=(function(){var B=!n.recognizesMedia("all"),E=false;var D=[],H=function(){B=true;for(var K;K=D.shift();K()){}};var I=g("link"),J=g("style");function C(K){return K.disabled||G(K.sheet,K.media||"screen")}function G(M,P){if(!n.recognizesMedia(P||"all")){return true}if(!M||M.disabled){return false}try{var Q=M.cssRules,O;if(Q){search:for(var L=0,K=Q.length;O=Q[L],L<K;++L){switch(O.type){case 2:break;case 3:if(!G(O.styleSheet,O.media.mediaText)){return false}break;default:break search}}}}catch(N){}return true}function F(){if(document.createStyleSheet){return true}var L,K;for(K=0;L=I[K];++K){if(L.rel.toLowerCase()=="stylesheet"&&!C(L)){return false}}for(K=0;L=J[K];++K){if(!C(L)){return false}}return true}x.ready(function(){if(!E){E=n.getStyle(document.body).isUsable()}if(B||(E&&F())){H()}else{setTimeout(arguments.callee,10)}});return function(K){if(B){K()}else{D.push(K)}}})();function s(D){var C=this.face=D.face,B={"\u0020":1,"\u00a0":1,"\u3000":1};this.glyphs=D.glyphs;this.w=D.w;this.baseSize=parseInt(C["units-per-em"],10);this.family=C["font-family"].toLowerCase();this.weight=C["font-weight"];this.style=C["font-style"]||"normal";this.viewBox=(function(){var F=C.bbox.split(/\s+/);var E={minX:parseInt(F[0],10),minY:parseInt(F[1],10),maxX:parseInt(F[2],10),maxY:parseInt(F[3],10)};E.width=E.maxX-E.minX;E.height=E.maxY-E.minY;E.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return E})();this.ascent=-parseInt(C.ascent,10);this.descent=-parseInt(C.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(L,N,E){var O=this.glyphs,M,K,G,P=[],F=0,J=-1,I=-1,H;while(H=L[++J]){M=O[H]||this.missingGlyph;if(!M){continue}if(K){F-=G=K[H]||0;P[I]-=G}F+=P[++I]=~~(M.w||this.w)+N+(B[H]?E:0);K=M.k}P.total=F;return P}}function f(){var C={},B={oblique:"italic",italic:"oblique"};this.add=function(D){(C[D.style]||(C[D.style]={}))[D.weight]=D};this.get=function(H,I){var G=C[H]||C[B[H]]||C.normal||C.italic||C.oblique;if(!G){return null}I={normal:400,bold:700}[I]||parseInt(I,10);if(G[I]){return G[I]}var E={1:1,99:0}[I%100],K=[],F,D;if(E===undefined){E=I>400}if(I==500){I=400}for(var J in G){if(!k(G,J)){continue}J=parseInt(J,10);if(!F||J<F){F=J}if(!D||J>D){D=J}K.push(J)}if(I<F){I=F}if(I>D){I=D}K.sort(function(M,L){return(E?(M>=I&&L>=I)?M<L:M>L:(M<=I&&L<=I)?M>L:M<L)?-1:1});return G[K[0]]}}function r(){function D(F,G){if(F.contains){return F.contains(G)}return F.compareDocumentPosition(G)&16}function B(G){var F=G.relatedTarget;if(!F||D(this,F)){return}C(this,G.type=="mouseover")}function E(F){C(this,F.type=="mouseenter")}function C(F,G){setTimeout(function(){var H=d.get(F).options;m.replace(F,G?h(H,H.hover):H,true)},10)}this.attach=function(F){if(F.onmouseenter===undefined){q(F,"mouseover",B);q(F,"mouseout",B)}else{q(F,"mouseenter",E);q(F,"mouseleave",E)}}}function u(){var C=[],D={};function B(H){var E=[],G;for(var F=0;G=H[F];++F){E[F]=C[D[G]]}return E}this.add=function(F,E){D[F]=C.push(E)-1};this.repeat=function(){var E=arguments.length?B(arguments):C,F;for(var G=0;F=E[G++];){m.replace(F[0],F[1],true)}}}function A(){var D={},B=0;function C(E){return E.cufid||(E.cufid=++B)}this.get=function(E){var F=C(E);return D[F]||(D[F]={})}}function a(B){var D={},C={};this.extend=function(E){for(var F in E){if(k(E,F)){D[F]=E[F]}}return this};this.get=function(E){return D[E]!=undefined?D[E]:B[E]};this.getSize=function(F,E){return C[F]||(C[F]=new n.Size(this.get(F),E))};this.isUsable=function(){return !!B}}function q(C,B,D){if(C.addEventListener){C.addEventListener(B,D,false)}else{if(C.attachEvent){C.attachEvent("on"+B,function(){return D.call(C,window.event)})}}}function v(C,B){var D=d.get(C);if(D.options){return C}if(B.hover&&B.hoverables[C.nodeName.toLowerCase()]){b.attach(C)}D.options=B;return C}function j(B){var C={};return function(D){if(!k(C,D)){C[D]=B.apply(null,arguments)}return C[D]}}function c(F,E){var B=n.quotedList(E.get("fontFamily").toLowerCase()),D;for(var C=0;D=B[C];++C){if(i[D]){return i[D].get(E.get("fontStyle"),E.get("fontWeight"))}}return null}function g(B){return document.getElementsByTagName(B)}function k(C,B){return C.hasOwnProperty(B)}function h(){var C={},B,F;for(var E=0,D=arguments.length;B=arguments[E],E<D;++E){for(F in B){if(k(B,F)){C[F]=B[F]}}}return C}function o(E,M,C,N,F,D){var K=document.createDocumentFragment(),H;if(M===""){return K}var L=N.separate;var I=M.split(p[L]),B=(L=="words");if(B&&t){if(/^\s/.test(M)){I.unshift("")}if(/\s$/.test(M)){I.push("")}}for(var J=0,G=I.length;J<G;++J){H=z[N.engine](E,B?n.textAlign(I[J],C,J,G):I[J],C,N,F,D,J<G-1);if(H){K.appendChild(H)}}return K}function l(D,M){var C=D.nodeName.toLowerCase();if(M.ignore[C]){return}var E=!M.textless[C];var B=n.getStyle(v(D,M)).extend(M);var F=c(D,B),G,K,I,H,L,J;if(!F){return}for(G=D.firstChild;G;G=I){K=G.nodeType;I=G.nextSibling;if(E&&K==3){if(H){H.appendData(G.data);D.removeChild(G)}else{H=G}if(I){continue}}if(H){D.replaceChild(o(F,n.whiteSpace(H.data,B,H,J),B,M,G,D),H);H=null}if(K==1){if(G.firstChild){if(G.nodeName.toLowerCase()=="cufon"){z[M.engine](F,null,B,M,G,D)}else{arguments.callee(G,M)}}J=G}}}var t=" ".split(/\s+/).length==0;var d=new A();var b=new r();var y=new u();var e=false;var z={},i={},w={autoDetect:false,engine:null,forceHitArea:false,hover:false,hoverables:{a:true},ignore:{applet:1,canvas:1,col:1,colgroup:1,head:1,iframe:1,map:1,optgroup:1,option:1,script:1,select:1,style:1,textarea:1,title:1,pre:1},printable:true,selector:(window.Sizzle||(window.jQuery&&function(B){return jQuery(B)})||(window.dojo&&dojo.query)||(window.Ext&&Ext.query)||(window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query)||(window.$$&&function(B){return $$(B)})||(window.$&&function(B){return $(B)})||(document.querySelectorAll&&function(B){return document.querySelectorAll(B)})||g),separate:"words",textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none"};var p={words:/\s/.test("\u00a0")?/[^\S\u00a0]+/:/\s+/,characters:"",none:/^/};m.now=function(){x.ready();return m};m.refresh=function(){y.repeat.apply(y,arguments);return m};m.registerEngine=function(C,B){if(!B){return m}z[C]=B;return m.set("engine",C)};m.registerFont=function(D){if(!D){return m}var B=new s(D),C=B.family;if(!i[C]){i[C]=new f()}i[C].add(B);return m.set("fontFamily",'"'+C+'"')};m.replace=function(D,C,B){C=h(w,C);if(!C.engine){return m}if(!e){n.addClass(x.root(),"cufon-active cufon-loading");n.ready(function(){n.addClass(n.removeClass(x.root(),"cufon-loading"),"cufon-ready")});e=true}if(C.hover){C.forceHitArea=true}if(C.autoDetect){delete C.fontFamily}if(typeof C.textShadow=="string"){C.textShadow=n.textShadow(C.textShadow)}if(typeof C.color=="string"&&/^-/.test(C.color)){C.textGradient=n.gradient(C.color)}else{delete C.textGradient}if(!B){y.add(D,arguments)}if(D.nodeType||typeof D=="string"){D=[D]}n.ready(function(){for(var F=0,E=D.length;F<E;++F){var G=D[F];if(typeof G=="string"){m.replace(C.selector(G),C,true)}else{l(G,C)}}});return m};m.set=function(B,C){w[B]=C;return m};return m})();Cufon.registerEngine("canvas",(function(){var b=document.createElement("canvas");if(!b||!b.getContext||!b.getContext.apply){return}b=null;var a=Cufon.CSS.supports("display","inline-block");var e=!a&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var f=document.createElement("style");f.type="text/css";f.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;"+(e?"":"font-size:1px;line-height:1px;")+"}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}"+(a?"cufon canvas{position:relative;}":"cufon canvas{position:absolute;}")+"}@media print{cufon{padding:0;}cufon canvas{display:none;}}").replace(/;/g,"!important;")));document.getElementsByTagName("head")[0].appendChild(f);function d(p,h){var n=0,m=0;var g=[],o=/([mrvxe])([^a-z]*)/g,k;generate:for(var j=0;k=o.exec(p);++j){var l=k[2].split(",");switch(k[1]){case"v":g[j]={m:"bezierCurveTo",a:[n+~~l[0],m+~~l[1],n+~~l[2],m+~~l[3],n+=~~l[4],m+=~~l[5]]};break;case"r":g[j]={m:"lineTo",a:[n+=~~l[0],m+=~~l[1]]};break;case"m":g[j]={m:"moveTo",a:[n=~~l[0],m=~~l[1]]};break;case"x":g[j]={m:"closePath"};break;case"e":break generate}h[g[j].m].apply(h,g[j].a)}return g}function c(m,k){for(var j=0,h=m.length;j<h;++j){var g=m[j];k[g.m].apply(k,g.a)}}return function(V,w,P,t,C,W){var k=(w===null);if(k){w=C.getAttribute("alt")}var A=V.viewBox;var m=P.getSize("fontSize",V.baseSize);var B=0,O=0,N=0,u=0;var z=t.textShadow,L=[];if(z){for(var U=z.length;U--;){var F=z[U];var K=m.convertFrom(parseFloat(F.offX));var I=m.convertFrom(parseFloat(F.offY));L[U]=[K,I];if(I<B){B=I}if(K>O){O=K}if(I>N){N=I}if(K<u){u=K}}}var Z=Cufon.CSS.textTransform(w,P).split("");var E=V.spacing(Z,~~m.convertFrom(parseFloat(P.get("letterSpacing"))||0),~~m.convertFrom(parseFloat(P.get("wordSpacing"))||0));if(!E.length){return null}var h=E.total;O+=A.width-E[E.length-1];u+=A.minX;var s,n;if(k){s=C;n=C.firstChild}else{s=document.createElement("cufon");s.className="cufon cufon-canvas";s.setAttribute("alt",w);n=document.createElement("canvas");s.appendChild(n);if(t.printable){var S=document.createElement("cufontext");S.appendChild(document.createTextNode(w));s.appendChild(S)}}var aa=s.style;var H=n.style;var j=m.convert(A.height);var Y=Math.ceil(j);var M=Y/j;var G=M*Cufon.CSS.fontStretch(P.get("fontStretch"));var J=h*G;var Q=Math.ceil(m.convert(J+O-u));var o=Math.ceil(m.convert(A.height-B+N));n.width=Q;n.height=o;H.width=Q+"px";H.height=o+"px";B+=A.minY;H.top=Math.round(m.convert(B-V.ascent))+"px";H.left=Math.round(m.convert(u))+"px";var r=Math.max(Math.ceil(m.convert(J)),0)+"px";if(a){aa.width=r;aa.height=m.convert(V.height)+"px"}else{aa.paddingLeft=r;aa.paddingBottom=(m.convert(V.height)-1)+"px"}var X=n.getContext("2d"),D=j/A.height;X.scale(D,D*M);X.translate(-u,-B);X.save();function T(){var x=V.glyphs,ab,l=-1,g=-1,y;X.scale(G,1);while(y=Z[++l]){var ab=x[Z[l]]||V.missingGlyph;if(!ab){continue}if(ab.d){X.beginPath();if(ab.code){c(ab.code,X)}else{ab.code=d("m"+ab.d,X)}X.fill()}X.translate(E[++g],0)}X.restore()}if(z){for(var U=z.length;U--;){var F=z[U];X.save();X.fillStyle=F.color;X.translate.apply(X,L[U]);T()}}var q=t.textGradient;if(q){var v=q.stops,p=X.createLinearGradient(0,A.minY,0,A.maxY);for(var U=0,R=v.length;U<R;++U){p.addColorStop.apply(p,v[U])}X.fillStyle=p}else{X.fillStyle=P.get("color")}T();return s}})());Cufon.registerEngine("vml",(function(){var e=document.namespaces;if(!e){return}e.add("cvml","urn:schemas-microsoft-com:vml");e=null;var b=document.createElement("cvml:shape");b.style.behavior="url(#default#VML)";if(!b.coordsize){return}b=null;var h=(document.documentMode||0)<8;document.write(('<style type="text/css">cufoncanvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}cufoncanvas{position:absolute;text-align:left;}cufon{display:inline-block;position:relative;vertical-align:'+(h?"middle":"text-bottom")+";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}</style>").replace(/;/g,"!important;"));function c(i,j){return a(i,/(?:em|ex|%)$|^[a-z-]+$/i.test(j)?"1em":j)}function a(l,m){if(m==="0"){return 0}if(/px$/i.test(m)){return parseFloat(m)}var k=l.style.left,j=l.runtimeStyle.left;l.runtimeStyle.left=l.currentStyle.left;l.style.left=m.replace("%","em");var i=l.style.pixelLeft;l.style.left=k;l.runtimeStyle.left=j;return i}function f(l,k,j,n){var i="computed"+n,m=k[i];if(isNaN(m)){m=k.get(n);k[i]=m=(m=="normal")?0:~~j.convertFrom(a(l,m))}return m}var g={};function d(p){var q=p.id;if(!g[q]){var n=p.stops,o=document.createElement("cvml:fill"),i=[];o.type="gradient";o.angle=180;o.focus="0";o.method="sigma";o.color=n[0][1];for(var m=1,l=n.length-1;m<l;++m){i.push(n[m][0]*100+"% "+n[m][1])}o.colors=i.join(",");o.color2=n[l][1];g[q]=o}return g[q]}return function(ac,G,Y,C,K,ad,W){var n=(G===null);if(n){G=K.alt}var I=ac.viewBox;var p=Y.computedFontSize||(Y.computedFontSize=new Cufon.CSS.Size(c(ad,Y.get("fontSize"))+"px",ac.baseSize));var y,q;if(n){y=K;q=K.firstChild}else{y=document.createElement("cufon");y.className="cufon cufon-vml";y.alt=G;q=document.createElement("cufoncanvas");y.appendChild(q);if(C.printable){var Z=document.createElement("cufontext");Z.appendChild(document.createTextNode(G));y.appendChild(Z)}if(!W){y.appendChild(document.createElement("cvml:shape"))}}var ai=y.style;var R=q.style;var l=p.convert(I.height),af=Math.ceil(l);var V=af/l;var P=V*Cufon.CSS.fontStretch(Y.get("fontStretch"));var U=I.minX,T=I.minY;R.height=af;R.top=Math.round(p.convert(T-ac.ascent));R.left=Math.round(p.convert(U));ai.height=p.convert(ac.height)+"px";var F=Y.get("color");var ag=Cufon.CSS.textTransform(G,Y).split("");var L=ac.spacing(ag,f(ad,Y,p,"letterSpacing"),f(ad,Y,p,"wordSpacing"));if(!L.length){return null}var k=L.total;var x=-U+k+(I.width-L[L.length-1]);var ah=p.convert(x*P),X=Math.round(ah);var O=x+","+I.height,m;var J="r"+O+"ns";var u=C.textGradient&&d(C.textGradient);var o=ac.glyphs,S=0;var H=C.textShadow;var ab=-1,aa=0,w;while(w=ag[++ab]){var D=o[ag[ab]]||ac.missingGlyph,v;if(!D){continue}if(n){v=q.childNodes[aa];while(v.firstChild){v.removeChild(v.firstChild)}}else{v=document.createElement("cvml:shape");q.appendChild(v)}v.stroked="f";v.coordsize=O;v.coordorigin=m=(U-S)+","+T;v.path=(D.d?"m"+D.d+"xe":"")+"m"+m+J;v.fillcolor=F;if(u){v.appendChild(u.cloneNode(false))}var ae=v.style;ae.width=X;ae.height=af;if(H){var s=H[0],r=H[1];var B=Cufon.CSS.color(s.color),z;var N=document.createElement("cvml:shadow");N.on="t";N.color=B.color;N.offset=s.offX+","+s.offY;if(r){z=Cufon.CSS.color(r.color);N.type="double";N.color2=z.color;N.offset2=r.offX+","+r.offY}N.opacity=B.opacity||(z&&z.opacity)||1;v.appendChild(N)}S+=L[aa++]}var M=v.nextSibling,t,A;if(C.forceHitArea){if(!M){M=document.createElement("cvml:rect");M.stroked="f";M.className="cufon-vml-cover";t=document.createElement("cvml:fill");t.opacity=0;M.appendChild(t);q.appendChild(M)}A=M.style;A.width=X;A.height=af}else{if(M){q.removeChild(M)}}ai.width=Math.max(Math.ceil(p.convert(k*P)),0);if(h){var Q=Y.computedYAdjust;if(Q===undefined){var E=Y.get("lineHeight");if(E=="normal"){E="1em"}else{if(!isNaN(E)){E+="em"}}Y.computedYAdjust=Q=0.5*(a(ad,E)-parseFloat(ai.height))}if(Q){ai.marginTop=Math.ceil(Q)+"px";ai.marginBottom=Q+"px"}}return y}})());
;/*!
 * The following copyright notice may not be removed under any circumstances.
 * 
 * Copyright:
 * © 2008 The Monotype Corporation. All Rights Reserved.
 * 
 * Trademark:
 * Arial is a trademark of The Monotype Corporation in the United States and/or
 * other countries.
 * 
 * Manufacturer:
 * The Monotype Corporation
 * 
 * Designer:
 * Monotype Type Drawing Office - Robin Nicholas, Patricia Saunders 1982
 */
Cufon.registerFont({"w":1139,"face":{"font-family":"Arial","font-weight":400,"font-stretch":"normal","units-per-em":"2048","panose-1":"2 11 6 4 2 2 2 2 2 4","ascent":"1638","descent":"-410","x-height":"24","bbox":"-94 -1836 2005 432.648","underline-thickness":"150","underline-position":"-142","unicode-range":"U+0020-U+0451"},"glyphs":{" ":{"w":569,"k":{"Y":37,"T":37,"A":113}},"\u00a0":{"w":569},"!":{"d":"231,-364r-55,-777r0,-325r223,0r0,325r-52,777r-116,0xm184,0r0,-205r207,0r0,205r-207,0","w":569},"\"":{"d":"144,-947r-50,-279r0,-240r205,0r0,240r-45,279r-110,0xm475,-947r-49,-279r0,-240r205,0r0,240r-48,279r-108,0","w":727},"#":{"d":"103,25r87,-426r-169,0r0,-149r199,0r74,-363r-273,0r0,-149r303,0r87,-429r150,0r-87,429r315,0r87,-429r151,0r-87,429r173,0r0,149r-203,0r-75,363r278,0r0,149r-308,0r-87,426r-150,0r86,-426r-314,0r-87,426r-150,0xm370,-550r314,0r75,-363r-315,0"},"$":{"d":"1014,-575v110,303,-103,604,-398,604r0,182r-106,0r0,-180v-271,-26,-409,-168,-437,-438r181,-34v21,185,107,296,256,320r0,-573v-134,-28,-300,-100,-360,-219v-29,-58,-46,-121,-46,-193v0,-236,153,-392,406,-409r0,-86r106,0r0,86v228,19,360,153,391,361r-186,28v-20,-136,-81,-210,-205,-237r0,519v171,42,227,60,317,143v37,34,63,77,81,126xm510,-1365v-127,16,-226,111,-226,245v0,152,87,211,226,253r0,-498xm616,-121v136,-15,247,-132,242,-284v-6,-172,-82,-207,-242,-264r0,548"},"%":{"d":"429,-716v-202,0,-310,-163,-310,-398v0,-201,106,-381,308,-377v203,4,319,159,319,388v0,223,-120,387,-317,387xm589,-1110v0,-155,-39,-257,-157,-257v-122,0,-156,106,-156,271v0,154,39,256,156,256v123,0,157,-105,157,-270xm433,54r802,-1545r146,0r-799,1545r-149,0xm1377,54v-201,0,-310,-164,-310,-398v0,-202,105,-382,309,-377v203,4,319,159,319,388v0,223,-120,387,-318,387xm1538,-340v0,-155,-39,-257,-157,-257v-123,0,-157,105,-157,271v0,153,40,256,156,256v124,0,158,-105,158,-270","w":1821},"&":{"d":"636,-1491v187,0,341,137,341,313v0,139,-92,258,-277,357r263,335v30,-59,53,-127,70,-204r187,40v-32,128,-75,233,-130,316v67,89,144,164,229,225r-121,143v-73,-47,-148,-116,-225,-207v-104,115,-228,191,-421,198v-253,9,-462,-189,-464,-429v0,-91,30,-173,88,-246v58,-73,145,-137,261,-192v-99,-121,-158,-171,-165,-322v-8,-181,171,-327,364,-327xm627,-1343v-118,0,-210,117,-153,233v29,60,90,121,133,173v119,-76,177,-101,186,-236v6,-96,-72,-170,-166,-170xm860,-315r-330,-409v-97,58,-163,112,-197,162v-78,116,-63,218,20,332v80,111,241,124,369,46v57,-35,103,-78,138,-131","w":1366},"'":{"d":"136,-947r-46,-274r0,-245r205,0r0,245r-48,274r-111,0","w":391},"(":{"d":"124,-531v5,-419,153,-682,355,-960r129,0v-146,253,-198,327,-256,585v-118,522,-5,898,256,1337r-129,0v-179,-228,-359,-574,-355,-962","w":682},")":{"d":"608,-531v5,386,-178,735,-355,962r-129,0v199,-320,299,-640,299,-961v-1,-246,-56,-478,-138,-661v-26,-60,-80,-160,-161,-300r129,0v203,280,349,539,355,960","w":682},"*":{"d":"64,-1197r46,-142v106,37,183,70,231,97v-13,-121,-19,-204,-20,-249r145,0v-2,66,-10,149,-23,248v69,-35,147,-67,236,-96r46,142v-85,28,-168,47,-249,56v41,35,98,98,172,189r-120,85v-39,-53,-84,-124,-137,-215v-49,94,-93,166,-130,215r-118,-85v77,-95,133,-158,166,-189v-86,-17,-168,-35,-245,-56","w":797},"+":{"d":"513,-237r0,-402r-399,0r0,-168r399,0r0,-399r170,0r0,399r399,0r0,168r-399,0r0,402r-170,0","w":1196},",":{"d":"182,0r0,-205r205,0v-3,139,14,301,-40,387v-28,45,-69,83,-127,108r-50,-77v80,-37,110,-96,114,-213r-102,0","w":569},"-":{"d":"65,-440r0,-181r553,0r0,181r-553,0","w":682},"\u00ad":{"d":"65,-440r0,-181r553,0r0,181r-553,0","w":682},".":{"d":"186,0r0,-205r205,0r0,205r-205,0","w":569},"\/":{"d":"0,25r425,-1516r144,0r-424,1516r-145,0","w":569},"0":{"d":"85,-723v0,-316,57,-526,213,-663v112,-98,331,-113,472,-38v126,68,196,193,238,354v49,187,40,597,-20,764v-69,190,-188,331,-425,331v-141,0,-252,-51,-333,-152v-97,-122,-145,-321,-145,-596xm270,-723v0,241,29,400,84,481v107,158,311,158,418,-1v55,-81,84,-240,84,-480v0,-241,-30,-400,-84,-481v-99,-150,-309,-160,-409,-14v-61,90,-93,254,-93,495"},"1":{"d":"223,-1104v172,-78,346,-219,424,-368r116,0r0,1472r-180,0r0,-1147v-78,77,-249,176,-360,217r0,-174","k":{"1":152}},"2":{"d":"572,-1472v324,-8,547,272,421,580v-24,57,-66,114,-119,179v-67,82,-406,361,-486,443v-31,32,-56,64,-76,97r719,0r0,173r-969,0v3,-145,63,-224,140,-320v53,-65,132,-138,235,-222v159,-131,267,-234,323,-310v56,-76,84,-149,84,-217v1,-146,-122,-254,-276,-254v-175,0,-289,116,-287,294r-185,-19v22,-268,191,-417,476,-424"},"3":{"d":"1046,-433v0,259,-225,459,-494,459v-257,0,-447,-177,-466,-413r180,-24v34,174,112,282,287,288v166,6,302,-138,302,-306v0,-163,-124,-288,-287,-285v-34,0,-76,7,-127,20r20,-158v171,13,328,-72,328,-243v0,-132,-104,-232,-240,-229v-159,4,-244,108,-265,264r-180,-32v37,-224,194,-380,441,-380v241,0,429,147,429,381v0,148,-86,246,-202,297v165,36,274,165,274,361"},"4":{"d":"662,0r0,-351r-636,0r0,-165r669,-950r147,0r0,950r198,0r0,165r-198,0r0,351r-180,0xm662,-516r0,-661r-459,661r459,0"},"5":{"d":"1057,-497v0,291,-212,522,-501,522v-265,0,-450,-167,-471,-409r189,-16v22,163,118,275,282,277v182,2,310,-160,310,-358v0,-197,-123,-332,-313,-332v-122,0,-218,64,-267,142r-169,-22r142,-753r729,0r0,172r-585,0r-79,394v88,-61,180,-92,277,-92v257,0,456,209,456,475"},"6":{"d":"1045,-476v-9,286,-171,501,-459,501v-150,0,-272,-55,-367,-165v-95,-110,-142,-293,-142,-546v0,-283,52,-489,157,-618v91,-112,214,-168,369,-168v237,-1,391,148,416,365r-179,14v-27,-145,-109,-231,-248,-231v-155,0,-232,106,-285,229v-34,79,-50,192,-51,339v73,-114,192,-192,356,-195v246,-4,441,214,433,475xm576,-792v-167,-1,-296,140,-292,317v5,191,113,352,299,352v166,0,278,-154,278,-342v0,-187,-112,-326,-285,-327"},"7":{"d":"302,0v24,-494,261,-988,513,-1274r-718,0r0,-173r949,0r0,140v-192,204,-400,583,-490,904v-34,123,-59,257,-69,403r-185,0"},"8":{"d":"83,-424v1,-201,111,-329,279,-371v-133,-48,-218,-137,-220,-299v-3,-221,184,-378,421,-378v238,0,428,161,426,383v-2,156,-88,247,-216,294v164,52,274,176,276,376v3,257,-211,444,-483,444v-274,0,-484,-188,-483,-449xm565,-1324v-130,0,-239,100,-239,224v0,138,102,236,241,236v132,0,237,-99,237,-226v0,-130,-107,-234,-239,-234xm562,-717v-165,0,-297,129,-294,294v3,175,123,297,300,300v168,3,297,-126,297,-294v0,-170,-133,-300,-303,-300"},"9":{"d":"85,-977v0,-282,192,-498,461,-495v215,2,369,130,442,296v81,183,73,671,0,860v-76,196,-220,339,-464,341v-237,2,-387,-145,-412,-364r173,-16v25,144,93,232,243,232v198,0,271,-135,315,-311v21,-85,30,-163,26,-256v-64,104,-192,192,-350,193v-251,1,-434,-212,-434,-480xm563,-656v176,-1,286,-139,286,-330v0,-187,-114,-337,-281,-337v-170,0,-298,164,-298,352v0,177,125,316,293,315"},":":{"d":"185,-857r0,-205r205,0r0,205r-205,0xm185,0r0,-205r205,0r0,205r-205,0","w":569},";":{"d":"182,-857r0,-205r205,0r0,205r-205,0xm182,0r0,-205r205,0v-3,139,14,301,-40,387v-28,45,-69,83,-127,108r-50,-77v80,-37,110,-96,114,-213r-102,0","w":569},"\u037e":{"d":"182,-857r0,-205r205,0r0,205r-205,0xm182,0r0,-205r205,0v-3,139,14,301,-40,387v-28,45,-69,83,-127,108r-50,-77v80,-37,110,-96,114,-213r-102,0","w":569},"<":{"d":"112,-641r0,-168r971,-410r0,179r-770,316r770,319r0,179","w":1196},"=":{"d":"1082,-862r-968,0r0,-168r968,0r0,168xm1082,-417r-968,0r0,-168r968,0r0,168","w":1196},">":{"d":"1083,-641r-971,415r0,-179r769,-319r-769,-316r0,-179r971,410r0,168","w":1196},"?":{"d":"565,-1491v325,-10,578,280,426,577v-28,55,-89,119,-176,197v-128,116,-165,136,-170,356r-173,0v-10,-262,79,-343,230,-479v97,-87,142,-112,149,-239v7,-141,-135,-269,-283,-264v-178,6,-267,119,-293,297r-185,-22v29,-261,194,-414,475,-423xm461,0r0,-205r205,0r0,205r-205,0"},"@":{"d":"1354,4v-125,0,-185,-42,-193,-167v-72,83,-174,166,-307,166v-229,0,-360,-207,-362,-449v-2,-224,140,-467,284,-558v82,-51,159,-80,235,-80v142,0,240,80,302,184r34,-155r179,0r-144,671v-20,93,-30,145,-30,155v-1,36,33,66,70,66v35,0,81,-21,139,-61v136,-92,247,-281,247,-492v0,-394,-312,-631,-715,-631v-506,0,-828,360,-834,862v-6,514,350,762,861,768v327,4,576,-125,704,-302r181,0v-82,160,-274,316,-470,387v-222,81,-582,80,-821,6v-361,-112,-603,-395,-603,-843v0,-390,200,-721,447,-880v257,-165,700,-193,990,-43v222,115,408,360,408,679v0,193,-68,365,-204,515v-121,135,-254,202,-398,202xm1256,-649v9,-209,-173,-354,-352,-253v-129,73,-219,270,-227,468v-8,203,152,357,332,256v139,-78,238,-257,247,-471","w":2079},"A":{"d":"-3,0r563,-1466r209,0r600,1466r-221,0r-171,-444r-613,0r-161,444r-206,0xm420,-602r497,0r-153,-406v-47,-123,-81,-225,-104,-304v-51,254,-160,480,-240,710","w":1366,"k":{"y":37,"w":37,"v":37,"Y":152,"W":76,"V":152,"T":152," ":113}},"B":{"d":"981,-780v160,45,276,166,276,355v0,305,-215,425,-548,425r-559,0r0,-1466r550,0v217,0,346,53,428,182v39,61,58,126,58,193v0,150,-88,256,-205,311xm344,-850v271,-18,651,83,651,-218v0,-101,-53,-180,-135,-204v-106,-31,-360,-18,-516,-21r0,443xm344,-173r365,0v126,1,174,-10,244,-47v97,-50,140,-242,61,-348v-68,-91,-160,-109,-331,-109r-339,0r0,504","w":1366},"C":{"d":"775,-141v242,0,385,-152,429,-373r194,49v-71,291,-272,490,-607,490v-328,0,-510,-141,-611,-376v-52,-122,-78,-253,-78,-393v1,-452,256,-747,692,-747v310,0,508,174,579,427r-191,45v-61,-191,-167,-303,-392,-306v-338,-4,-488,250,-488,580v0,246,69,444,224,535v77,46,160,69,249,69","w":1479},"D":{"d":"158,0r0,-1466v243,5,570,-23,766,21v302,68,444,334,446,704v2,301,-99,524,-272,643v-99,68,-240,98,-411,98r-529,0xm665,-173v389,13,496,-206,505,-571v6,-271,-91,-448,-259,-519v-112,-47,-385,-27,-559,-30r0,1120r313,0","w":1479},"E":{"d":"162,0r0,-1466r1060,0r0,173r-866,0r0,449r811,0r0,172r-811,0r0,499r900,0r0,173r-1094,0","w":1366},"F":{"d":"168,0r0,-1466r989,0r0,173r-795,0r0,454r688,0r0,173r-688,0r0,666r-194,0","w":1251,"k":{"A":113,".":227,",":227}},"G":{"d":"847,-150v159,4,347,-80,428,-152r0,-273r-431,0r0,-172r621,-1r0,544v-164,130,-349,229,-607,229v-458,0,-749,-290,-749,-751v0,-455,265,-771,734,-765v335,5,536,151,600,435r-175,48v-52,-206,-181,-317,-424,-317v-366,0,-528,239,-535,587v-7,369,195,578,538,588","w":1593},"H":{"d":"164,0r0,-1466r194,0r0,602r762,0r0,-602r194,0r0,1466r-194,0r0,-691r-762,0r0,691r-194,0","w":1479},"I":{"d":"191,0r0,-1466r194,0r0,1466r-194,0","w":569},"J":{"d":"865,-467v8,324,-119,492,-412,492v-267,0,-402,-161,-394,-441r175,-24v8,191,54,292,218,292v172,0,219,-104,219,-308r0,-1010r194,0r0,999","w":1024},"K":{"d":"150,0r0,-1466r194,0r0,727r728,-727r263,0r-615,594r642,872r-256,0r-522,-742r-240,234r0,508r-194,0","w":1366},"L":{"d":"150,0r0,-1466r194,0r0,1293r722,0r0,173r-916,0","k":{"y":76,"Y":152,"W":152,"V":152,"T":152," ":76}},"M":{"d":"152,0r0,-1466r292,0r347,1038r70,217r78,-235r351,-1020r261,0r0,1466r-187,0r0,-1227r-426,1227r-175,0r-424,-1248r0,1248r-187,0","w":1706},"N":{"d":"156,0r0,-1466r199,0r770,1151r0,-1151r186,0r0,1466r-199,0r-770,-1152r0,1152r-186,0","w":1479},"O":{"d":"800,25v-432,0,-691,-312,-701,-739v-10,-457,272,-778,702,-778v440,0,700,311,700,761v0,448,-266,756,-701,756xm1301,-732v-5,-346,-170,-593,-499,-593v-137,0,-255,47,-354,141v-99,94,-149,252,-149,473v0,327,198,570,500,570v314,0,507,-246,502,-591","w":1593},"P":{"d":"158,0r0,-1466r553,0v282,-4,433,45,521,224v85,172,46,390,-74,516v-81,85,-223,130,-430,130r-376,0r0,596r-194,0xm731,-769v224,1,341,-72,346,-267v3,-123,-70,-223,-169,-244v-130,-28,-390,-9,-556,-13r0,524r379,0","w":1366,"k":{"A":152,".":264,",":264," ":37}},"Q":{"d":"1490,-734v0,258,-82,444,-221,577v90,62,173,107,249,136r-57,135v-105,-38,-210,-98,-315,-180v-109,61,-229,91,-360,91v-436,0,-698,-313,-698,-758v0,-446,259,-759,702,-759v439,0,700,310,700,758xm288,-733v0,350,186,588,503,592v69,0,135,-13,196,-39v-61,-39,-125,-67,-192,-84r47,-141v112,31,204,78,277,140v114,-104,171,-260,171,-469v0,-345,-171,-591,-499,-591v-317,0,-503,235,-503,592","w":1593},"R":{"d":"1333,-1066v0,241,-167,370,-413,399v140,66,197,141,278,268r255,399r-244,0r-194,-305v-89,-134,-139,-229,-239,-300v-59,-41,-91,-47,-196,-46r-225,0r0,651r-194,0r0,-1466r650,0v249,2,369,33,461,179v42,66,61,140,61,221xm1133,-1066v0,-161,-124,-238,-314,-238r-464,0r0,485r417,0v218,5,361,-60,361,-247","w":1479,"k":{"Y":37,"W":37,"V":37,"T":37}},"S":{"d":"1259,-414v0,283,-242,438,-542,439v-263,1,-441,-76,-545,-233v-51,-78,-77,-165,-80,-263r183,-16v20,231,188,338,433,338v193,0,364,-71,364,-249v0,-117,-71,-166,-172,-207v-76,-31,-474,-121,-544,-163v-117,-70,-208,-159,-208,-319v0,-269,232,-404,516,-404v315,0,533,145,551,438r-186,14v-22,-191,-138,-282,-357,-281v-117,0,-201,23,-256,64v-94,71,-104,202,-24,286v61,64,535,156,617,198v144,75,250,170,250,358","w":1366},"T":{"d":"531,0r0,-1293r-483,0r0,-173r1162,0r0,173r-485,0r0,1293r-194,0","w":1251,"k":{"y":113,"w":113,"u":76,"s":227,"r":76,"o":227,"i":76,"e":227,"c":227,"a":227,"O":37,"A":152,";":227,":":227,".":227,"-":113,",":227," ":37}},"U":{"d":"724,-150v317,0,396,-126,396,-470r0,-846r194,0r0,847v-3,294,-51,449,-230,563v-87,54,-202,81,-343,81v-417,0,-580,-207,-580,-644r0,-847r194,0r0,846v2,232,24,341,157,421v57,34,129,49,212,49","w":1479},"V":{"d":"577,0r-568,-1466r210,0r381,1065v31,85,56,165,77,240v23,-80,49,-160,79,-240r396,-1065r198,0r-574,1466r-199,0","w":1366,"k":{"y":76,"u":76,"r":76,"o":113,"i":37,"e":113,"a":152,"A":152,";":76,":":76,".":188,"-":113,",":188}},"W":{"d":"414,0r-389,-1466r199,0r223,961v24,101,45,201,62,300v37,-157,59,-247,66,-271r279,-990r234,0r210,742v53,184,91,357,114,519v19,-93,44,-199,73,-319r230,-942r195,0r-402,1466r-187,0r-355,-1289v-15,67,-30,125,-43,172r-311,1117r-198,0","w":1933,"k":{"y":18,"u":37,"r":37,"o":37,"e":37,"a":76,"A":76,";":37,":":37,".":113,"-":37,",":113}},"X":{"d":"9,0r567,-764r-500,-702r231,0r266,376v55,78,95,138,118,180v122,-189,278,-374,411,-556r211,0r-515,691r555,775r-240,0r-369,-523v-21,-30,-42,-63,-64,-98v-143,229,-288,406,-438,621r-233,0","w":1366},"Y":{"d":"571,0r0,-621r-565,-845r236,0r289,442v53,83,103,165,149,248v44,-77,97,-163,160,-259r284,-431r226,0r-585,845r0,621r-194,0","w":1366,"k":{"v":113,"u":113,"q":188,"p":152,"o":188,"i":76,"e":188,"a":152,"A":152,";":133,":":113,".":264,"-":188,",":264," ":37}},"Z":{"d":"41,0r0,-180r751,-939v53,-67,104,-125,152,-174r-818,0r0,-173r1050,0r0,173r-823,1017r-89,103r936,0r0,173r-1159,0","w":1251},"[":{"d":"139,407r0,-1873r397,0r0,149r-217,0r0,1575r217,0r0,149r-397,0","w":569},"\\":{"d":"425,25r-425,-1516r145,0r424,1516r-144,0","w":569},"]":{"d":"436,407r-397,0r0,-149r217,0r0,-1575r-217,0r0,-149r397,0r0,1873","w":569},"^":{"d":"239,-690r-185,0r353,-801r145,0r355,801r-181,0r-247,-597","w":961},"_":{"d":"-31,407r0,-130r1193,0r0,130r-1193,0"},"`":{"d":"465,-1194r-145,0r-231,-280r241,0","w":682},"a":{"d":"995,-445v6,270,-11,308,57,445r-188,0v-19,-37,-31,-81,-36,-131v-115,96,-212,150,-391,155v-213,5,-363,-111,-363,-304v0,-172,117,-269,258,-305v119,-31,406,-52,481,-89v18,-197,-77,-263,-255,-263v-179,0,-237,55,-277,202r-176,-24v41,-230,210,-327,479,-327v221,0,367,58,402,235v17,88,7,287,9,406xm291,-370v-76,130,31,253,189,253v143,0,256,-71,304,-170v24,-50,31,-154,29,-246v-75,43,-348,64,-451,104v-31,12,-56,33,-71,59"},"b":{"d":"1055,-547v9,323,-178,571,-459,571v-125,0,-224,-52,-295,-157r0,133r-167,0r0,-1466r180,0r0,523v76,-95,173,-143,291,-143v304,0,441,229,450,539xm589,-938v-184,0,-290,178,-290,399v0,127,17,219,52,276v57,93,133,139,230,139v187,0,290,-179,290,-408v0,-139,-28,-241,-83,-307v-55,-66,-121,-99,-199,-99"},"c":{"d":"561,-124v161,0,247,-105,267,-265r177,23v-32,227,-196,390,-442,390v-307,0,-483,-221,-483,-551v0,-335,165,-555,484,-559v238,-3,386,130,424,336r-175,27v-28,-126,-104,-215,-242,-215v-210,0,-306,160,-306,406v0,248,88,408,296,408","w":1024},"d":{"d":"519,-1086v134,-2,235,65,293,146r0,-526r179,0r0,1466r-167,0r0,-134v-100,176,-354,204,-530,88v-137,-90,-224,-262,-224,-484v1,-313,147,-551,449,-556xm536,-937v-194,0,-281,169,-281,407v0,136,29,238,86,305v57,67,125,101,203,101v186,0,283,-165,283,-391v0,-145,-28,-252,-84,-320v-56,-68,-125,-102,-207,-102"},"e":{"d":"582,-124v156,0,233,-86,280,-218r186,23v-55,208,-211,343,-467,343v-319,1,-506,-215,-506,-546v0,-333,186,-564,496,-564v316,0,506,247,482,601r-792,0v7,209,124,361,321,361xm864,-633v-10,-189,-122,-302,-291,-305v-172,-3,-295,133,-302,305r593,0"},"f":{"d":"507,-1326v-117,2,-149,43,-150,166r0,98r207,0r0,140r-207,0r0,922r-179,0r0,-922r-159,0r0,-140r159,0v0,-90,-3,-219,19,-272v40,-99,127,-159,275,-157v51,0,107,6,168,18r-27,157v-37,-7,-73,-10,-106,-10","w":569,"k":{"f":37}},"g":{"d":"66,-537v4,-308,152,-549,460,-549v125,0,229,51,310,152r0,-128r166,0r0,918v-2,301,-39,414,-210,515v-152,90,-446,77,-577,-25v-76,-59,-116,-143,-113,-258r175,26v16,124,109,166,244,168v163,2,250,-67,285,-190v9,-37,14,-114,13,-231v-79,93,-177,139,-294,139v-291,0,-463,-252,-459,-537xm539,-937v-186,0,-288,166,-288,387v0,240,92,401,291,401v195,0,292,-161,292,-395v0,-226,-106,-393,-295,-393"},"h":{"d":"596,-931v-191,0,-281,127,-281,350r0,581r-180,0r0,-1466r180,0r0,526v84,-97,190,-146,318,-146v253,0,367,130,367,413r0,673r-180,0r0,-673v1,-168,-69,-258,-224,-258"},"i":{"d":"136,-1259r0,-207r180,0r0,207r-180,0xm136,0r0,-1062r180,0r0,1062r-180,0","w":455},"j":{"d":"134,-1257r0,-209r180,0r0,209r-180,0xm25,273v109,0,109,-67,109,-219r0,-1116r180,0r0,1120v0,131,-20,220,-51,273v-60,101,-221,120,-357,81r34,-153v36,9,64,14,85,14","w":455},"k":{"d":"136,0r0,-1466r180,0r0,836r426,-432r233,0r-406,394r447,668r-222,0r-351,-543r-127,122r0,421r-180,0","w":1024},"l":{"d":"131,0r0,-1466r180,0r0,1466r-180,0","w":455},"m":{"d":"766,-690v-1,-150,-45,-240,-188,-240v-198,0,-263,145,-263,379r0,551r-180,0r0,-1062r161,0r0,149v61,-96,172,-173,322,-173v158,-1,259,70,300,186v84,-124,193,-186,328,-186v220,0,328,125,328,357r0,729r-179,0r0,-669v-2,-131,-9,-184,-81,-232v-30,-20,-67,-29,-108,-29v-169,0,-260,118,-260,313r0,617r-180,0r0,-690","w":1706},"n":{"d":"597,-930v-188,0,-282,115,-282,350r0,580r-180,0r0,-1062r162,0r0,151v100,-163,316,-220,515,-141v102,41,151,112,176,224v7,33,10,92,10,175r0,653r-180,0r0,-646v7,-189,-58,-284,-221,-284"},"o":{"d":"566,24v-313,-1,-498,-220,-498,-555v0,-337,186,-552,498,-555v302,-3,497,222,497,540v0,266,-77,412,-241,505v-78,44,-163,65,-256,65xm566,-937v-205,0,-313,167,-313,406v0,240,107,407,313,407v206,0,312,-170,312,-413v0,-232,-111,-400,-312,-400"},"p":{"d":"594,24v-126,4,-222,-62,-279,-134r0,517r-180,0r0,-1469r164,0r0,138v72,-98,152,-162,308,-162v301,0,448,240,450,547v2,317,-166,554,-463,563xm590,-945v-184,0,-292,191,-292,420v0,137,28,238,83,303v55,65,122,98,201,98v194,0,291,-177,291,-416v0,-135,-27,-237,-83,-304v-56,-67,-123,-101,-200,-101"},"q":{"d":"72,-541v6,-309,152,-545,448,-545v131,0,235,55,310,166r0,-142r162,0r0,1469r-180,0r0,-520v-50,73,-159,138,-278,137v-276,-3,-468,-252,-462,-565xm537,-944v-190,0,-280,174,-280,410v0,137,29,240,86,308v57,68,126,102,206,102v183,0,281,-169,281,-394v0,-141,-30,-248,-88,-319v-58,-71,-126,-107,-205,-107"},"r":{"d":"516,-900v-165,0,-203,175,-203,344r0,556r-180,0r0,-1062r162,0r0,161v69,-116,99,-185,230,-185v61,0,122,19,185,58r-62,167v-44,-26,-88,-39,-132,-39","w":682,"k":{".":113,",":113}},"s":{"d":"945,-312v0,220,-192,335,-428,336v-274,1,-411,-113,-454,-341r178,-28v20,142,111,221,275,221v139,0,244,-58,244,-169v0,-41,-17,-73,-53,-96v-66,-42,-410,-111,-459,-147v-90,-41,-155,-125,-155,-244v0,-211,169,-306,391,-306v237,0,395,83,421,298r-176,24v-17,-113,-97,-174,-232,-174v-133,0,-230,38,-230,137v0,59,40,90,91,111v18,7,71,22,159,46v127,34,217,62,267,84v94,41,161,118,161,248","w":1024},"t":{"d":"347,-301v-2,111,11,147,102,147v20,0,46,-2,79,-7r26,159v-154,37,-322,13,-364,-96v-13,-34,-22,-105,-22,-213r0,-611r-132,0r0,-140r132,0r0,-263r179,-108r0,371r181,0r0,140r-181,0r0,621","w":569},"u":{"d":"831,0r0,-156v-109,167,-313,230,-513,144v-150,-64,-187,-169,-187,-392r0,-658r180,0r0,589v1,177,-1,233,83,301v74,60,204,52,288,0v102,-63,130,-148,130,-321r0,-569r180,0r0,1062r-161,0"},"v":{"d":"430,0r-404,-1062r190,0r228,636v25,69,47,140,68,214v16,-56,38,-123,67,-202r236,-648r185,0r-402,1062r-168,0","w":1024,"k":{".":152,",":152}},"w":{"d":"331,0r-325,-1062r186,0r232,841v3,-11,19,-85,55,-219r169,-622r185,0r212,819r243,-819r175,0r-332,1062r-187,0r-169,-636r-41,-181r-215,817r-188,0","w":1479,"k":{".":113,",":113}},"x":{"d":"15,0r388,-552r-359,-510r225,0r163,249v31,47,55,87,74,119r260,-368r215,0r-367,500r395,562r-221,0r-276,-419r-279,419r-218,0","w":1024},"y":{"d":"127,409r-20,-169v109,34,217,11,258,-60v11,-18,49,-117,71,-178r-403,-1064r194,0r221,615v29,78,54,160,77,246v82,-303,202,-574,301,-861r180,0r-404,1080v-43,117,-79,196,-101,241v-64,132,-198,211,-374,150","w":1024,"k":{".":152,",":152}},"z":{"d":"40,0r0,-146r676,-776v-77,4,-144,6,-203,6r-433,0r0,-146r868,0r0,119r-575,674r-111,123v236,-17,472,-6,718,-9r0,155r-940,0","w":1024},"{":{"d":"224,-530v166,77,208,186,209,450v0,130,1,207,4,232v10,111,69,124,199,122r0,157v-218,13,-325,-50,-358,-221v-16,-84,-10,-430,-31,-508v-23,-88,-85,-149,-190,-151r0,-163v105,-2,168,-61,190,-150v33,-136,0,-486,57,-591v60,-109,150,-147,332,-138r0,157v-166,-1,-203,27,-203,205v0,175,-4,285,-11,331v-27,151,-76,207,-198,268","w":684},"|":{"d":"188,431r0,-1922r157,0r0,1922r-157,0","w":532},"}":{"d":"459,-530v-169,-88,-209,-178,-209,-451v0,-130,-3,-208,-5,-233v-10,-110,-70,-122,-198,-120r0,-157v218,-14,326,50,359,221v16,84,9,431,30,508v24,88,85,148,190,150r0,163v-105,2,-168,63,-190,151v-33,135,2,485,-56,590v-60,109,-151,148,-333,139r0,-157v166,1,203,-27,203,-206v0,-167,3,-272,9,-317v22,-148,81,-230,200,-281","w":684},"~":{"d":"348,-693v-130,0,-168,53,-261,136r0,-205v94,-108,237,-140,404,-102v83,19,244,116,361,116v105,0,200,-73,258,-137r0,212v-76,70,-147,108,-277,114v-164,8,-329,-134,-485,-134","w":1196},"\u00c4":{"d":"-3,0r563,-1466r209,0r600,1466r-221,0r-171,-444r-613,0r-161,444r-206,0xm420,-602r497,0r-153,-406v-47,-123,-81,-225,-104,-304v-51,254,-160,480,-240,710xm379,-1556r0,-205r188,0r0,205r-188,0xm752,-1556r0,-205r188,0r0,205r-188,0","w":1366},"\u00c5":{"d":"662,-1414v-99,0,-181,-85,-181,-187v0,-94,86,-179,180,-179v97,0,180,85,180,183v0,98,-83,183,-179,183xm663,-1707v-56,0,-106,50,-106,107v0,59,49,111,106,111v56,0,106,-52,106,-109v0,-58,-48,-109,-106,-109xm-3,0r563,-1466r209,0r600,1466r-221,0r-171,-444r-613,0r-161,444r-206,0xm420,-602r497,0r-153,-406v-47,-123,-81,-225,-104,-304v-51,254,-160,480,-240,710","w":1366},"\u00c7":{"d":"775,-141v242,0,385,-152,429,-373r194,49v-71,291,-272,490,-607,490v-328,0,-510,-141,-611,-376v-52,-122,-78,-253,-78,-393v1,-452,256,-747,692,-747v310,0,508,174,579,427r-191,45v-61,-191,-167,-303,-392,-306v-338,-4,-488,250,-488,580v0,246,69,444,224,535v77,46,160,69,249,69xm777,221v-12,-64,-70,-63,-157,-67r52,-177r134,0r-33,107v95,8,171,62,171,147v0,124,-130,190,-289,190v-55,0,-103,-4,-144,-12r11,-117v118,6,238,17,255,-71","w":1479},"\u00c9":{"d":"162,0r0,-1466r1060,0r0,173r-866,0r0,449r811,0r0,172r-811,0r0,499r900,0r0,173r-1094,0xm562,-1556r133,-280r236,0r-220,280r-149,0","w":1366},"\u00d1":{"d":"639,-1651v-50,1,-78,39,-76,95r-133,0v-4,-130,80,-228,203,-228v41,0,98,18,169,54v39,20,71,30,94,30v54,0,64,-29,73,-87r130,0v-1,137,-71,225,-196,228v-42,0,-97,-19,-166,-56v-45,-24,-77,-36,-98,-36xm156,0r0,-1466r199,0r770,1151r0,-1151r186,0r0,1466r-199,0r-770,-1152r0,1152r-186,0","w":1479},"\u00d6":{"d":"800,25v-432,0,-691,-312,-701,-739v-10,-457,272,-778,702,-778v440,0,700,311,700,761v0,448,-266,756,-701,756xm1301,-732v-5,-346,-170,-593,-499,-593v-137,0,-255,47,-354,141v-99,94,-149,252,-149,473v0,327,198,570,500,570v314,0,507,-246,502,-591xm516,-1556r0,-205r188,0r0,205r-188,0xm889,-1556r0,-205r188,0r0,205r-188,0","w":1593},"\u00dc":{"d":"724,-150v317,0,396,-126,396,-470r0,-846r194,0r0,847v-3,294,-51,449,-230,563v-87,54,-202,81,-343,81v-417,0,-580,-207,-580,-644r0,-847r194,0r0,846v2,232,24,341,157,421v57,34,129,49,212,49xm454,-1556r0,-205r188,0r0,205r-188,0xm827,-1556r0,-205r188,0r0,205r-188,0","w":1479},"\u00e1":{"d":"995,-445v6,270,-11,308,57,445r-188,0v-19,-37,-31,-81,-36,-131v-115,96,-212,150,-391,155v-213,5,-363,-111,-363,-304v0,-172,117,-269,258,-305v119,-31,406,-52,481,-89v18,-197,-77,-263,-255,-263v-179,0,-237,55,-277,202r-176,-24v41,-230,210,-327,479,-327v221,0,367,58,402,235v17,88,7,287,9,406xm291,-370v-76,130,31,253,189,253v143,0,256,-71,304,-170v24,-50,31,-154,29,-246v-75,43,-348,64,-451,104v-31,12,-56,33,-71,59xm463,-1194r133,-280r236,0r-220,280r-149,0"},"\u00e0":{"d":"995,-445v6,270,-11,308,57,445r-188,0v-19,-37,-31,-81,-36,-131v-115,96,-212,150,-391,155v-213,5,-363,-111,-363,-304v0,-172,117,-269,258,-305v119,-31,406,-52,481,-89v18,-197,-77,-263,-255,-263v-179,0,-237,55,-277,202r-176,-24v41,-230,210,-327,479,-327v221,0,367,58,402,235v17,88,7,287,9,406xm291,-370v-76,130,31,253,189,253v143,0,256,-71,304,-170v24,-50,31,-154,29,-246v-75,43,-348,64,-451,104v-31,12,-56,33,-71,59xm715,-1194r-145,0r-231,-280r241,0"},"\u00e2":{"d":"566,-1364r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm995,-445v6,270,-11,308,57,445r-188,0v-19,-37,-31,-81,-36,-131v-115,96,-212,150,-391,155v-213,5,-363,-111,-363,-304v0,-172,117,-269,258,-305v119,-31,406,-52,481,-89v18,-197,-77,-263,-255,-263v-179,0,-237,55,-277,202r-176,-24v41,-230,210,-327,479,-327v221,0,367,58,402,235v17,88,7,287,9,406xm291,-370v-76,130,31,253,189,253v143,0,256,-71,304,-170v24,-50,31,-154,29,-246v-75,43,-348,64,-451,104v-31,12,-56,33,-71,59"},"\u00e4":{"d":"995,-445v6,270,-11,308,57,445r-188,0v-19,-37,-31,-81,-36,-131v-115,96,-212,150,-391,155v-213,5,-363,-111,-363,-304v0,-172,117,-269,258,-305v119,-31,406,-52,481,-89v18,-197,-77,-263,-255,-263v-179,0,-237,55,-277,202r-176,-24v41,-230,210,-327,479,-327v221,0,367,58,402,235v17,88,7,287,9,406xm291,-370v-76,130,31,253,189,253v143,0,256,-71,304,-170v24,-50,31,-154,29,-246v-75,43,-348,64,-451,104v-31,12,-56,33,-71,59xm283,-1270r0,-205r188,0r0,205r-188,0xm656,-1270r0,-205r188,0r0,205r-188,0"},"\u00e3":{"d":"438,-1314v-50,1,-78,39,-76,95r-133,0v-4,-130,80,-228,203,-228v41,0,98,18,169,54v39,20,71,30,94,30v54,0,64,-29,73,-87r130,0v-1,137,-71,225,-196,228v-42,0,-97,-19,-166,-56v-45,-24,-77,-36,-98,-36xm995,-445v6,270,-11,308,57,445r-188,0v-19,-37,-31,-81,-36,-131v-115,96,-212,150,-391,155v-213,5,-363,-111,-363,-304v0,-172,117,-269,258,-305v119,-31,406,-52,481,-89v18,-197,-77,-263,-255,-263v-179,0,-237,55,-277,202r-176,-24v41,-230,210,-327,479,-327v221,0,367,58,402,235v17,88,7,287,9,406xm291,-370v-76,130,31,253,189,253v143,0,256,-71,304,-170v24,-50,31,-154,29,-246v-75,43,-348,64,-451,104v-31,12,-56,33,-71,59"},"\u00e5":{"d":"564,-1151v-99,0,-181,-85,-181,-187v0,-94,86,-179,180,-179v97,0,180,85,180,183v0,98,-83,183,-179,183xm565,-1444v-56,0,-106,50,-106,107v0,59,49,111,106,111v56,0,106,-52,106,-109v0,-58,-48,-109,-106,-109xm995,-445v6,270,-11,308,57,445r-188,0v-19,-37,-31,-81,-36,-131v-115,96,-212,150,-391,155v-213,5,-363,-111,-363,-304v0,-172,117,-269,258,-305v119,-31,406,-52,481,-89v18,-197,-77,-263,-255,-263v-179,0,-237,55,-277,202r-176,-24v41,-230,210,-327,479,-327v221,0,367,58,402,235v17,88,7,287,9,406xm291,-370v-76,130,31,253,189,253v143,0,256,-71,304,-170v24,-50,31,-154,29,-246v-75,43,-348,64,-451,104v-31,12,-56,33,-71,59"},"\u00e7":{"d":"561,-124v161,0,247,-105,267,-265r177,23v-32,227,-196,390,-442,390v-307,0,-483,-221,-483,-551v0,-335,165,-555,484,-559v238,-3,386,130,424,336r-175,27v-28,-126,-104,-215,-242,-215v-210,0,-306,160,-306,406v0,248,88,408,296,408xm568,201v-12,-64,-70,-63,-157,-67r52,-177r134,0r-33,107v95,8,171,62,171,147v0,124,-130,190,-289,190v-55,0,-103,-4,-144,-12r11,-117v118,6,238,17,255,-71","w":1024},"\u00e9":{"d":"582,-124v156,0,233,-86,280,-218r186,23v-55,208,-211,343,-467,343v-319,1,-506,-215,-506,-546v0,-333,186,-564,496,-564v316,0,506,247,482,601r-792,0v7,209,124,361,321,361xm864,-633v-10,-189,-122,-302,-291,-305v-172,-3,-295,133,-302,305r593,0xm465,-1194r133,-280r236,0r-220,280r-149,0"},"\u00e8":{"d":"582,-124v156,0,233,-86,280,-218r186,23v-55,208,-211,343,-467,343v-319,1,-506,-215,-506,-546v0,-333,186,-564,496,-564v316,0,506,247,482,601r-792,0v7,209,124,361,321,361xm864,-633v-10,-189,-122,-302,-291,-305v-172,-3,-295,133,-302,305r593,0xm686,-1194r-145,0r-231,-280r241,0"},"\u00ea":{"d":"567,-1364r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm582,-124v156,0,233,-86,280,-218r186,23v-55,208,-211,343,-467,343v-319,1,-506,-215,-506,-546v0,-333,186,-564,496,-564v316,0,506,247,482,601r-792,0v7,209,124,361,321,361xm864,-633v-10,-189,-122,-302,-291,-305v-172,-3,-295,133,-302,305r593,0"},"\u00eb":{"d":"582,-124v156,0,233,-86,280,-218r186,23v-55,208,-211,343,-467,343v-319,1,-506,-215,-506,-546v0,-333,186,-564,496,-564v316,0,506,247,482,601r-792,0v7,209,124,361,321,361xm864,-633v-10,-189,-122,-302,-291,-305v-172,-3,-295,133,-302,305r593,0xm284,-1270r0,-205r188,0r0,205r-188,0xm657,-1270r0,-205r188,0r0,205r-188,0"},"\u00ed":{"d":"198,0r0,-1062r180,0r0,1062r-180,0xm189,-1194r133,-280r236,0r-220,280r-149,0","w":569},"\u00ec":{"d":"198,0r0,-1062r180,0r0,1062r-180,0xm411,-1194r-145,0r-231,-280r241,0","w":569},"\u00ee":{"d":"302,-1364r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm198,0r0,-1062r180,0r0,1062r-180,0","w":569},"\u00ef":{"d":"198,0r0,-1062r180,0r0,1062r-180,0xm9,-1270r0,-205r188,0r0,205r-188,0xm382,-1270r0,-205r188,0r0,205r-188,0","w":569},"\u00f1":{"d":"471,-1314v-50,1,-78,39,-76,95r-133,0v-4,-130,80,-228,203,-228v41,0,98,18,169,54v39,20,71,30,94,30v54,0,64,-29,73,-87r130,0v-1,137,-71,225,-196,228v-42,0,-97,-19,-166,-56v-45,-24,-77,-36,-98,-36xm597,-930v-188,0,-282,115,-282,350r0,580r-180,0r0,-1062r162,0r0,151v100,-163,316,-220,515,-141v102,41,151,112,176,224v7,33,10,92,10,175r0,653r-180,0r0,-646v7,-189,-58,-284,-221,-284"},"\u00f3":{"d":"566,24v-313,-1,-498,-220,-498,-555v0,-337,186,-552,498,-555v302,-3,497,222,497,540v0,266,-77,412,-241,505v-78,44,-163,65,-256,65xm566,-937v-205,0,-313,167,-313,406v0,240,107,407,313,407v206,0,312,-170,312,-413v0,-232,-111,-400,-312,-400xm466,-1194r133,-280r236,0r-220,280r-149,0"},"\u00f2":{"d":"566,24v-313,-1,-498,-220,-498,-555v0,-337,186,-552,498,-555v302,-3,497,222,497,540v0,266,-77,412,-241,505v-78,44,-163,65,-256,65xm566,-937v-205,0,-313,167,-313,406v0,240,107,407,313,407v206,0,312,-170,312,-413v0,-232,-111,-400,-312,-400xm687,-1194r-145,0r-231,-280r241,0"},"\u00f4":{"d":"568,-1364r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm566,24v-313,-1,-498,-220,-498,-555v0,-337,186,-552,498,-555v302,-3,497,222,497,540v0,266,-77,412,-241,505v-78,44,-163,65,-256,65xm566,-937v-205,0,-313,167,-313,406v0,240,107,407,313,407v206,0,312,-170,312,-413v0,-232,-111,-400,-312,-400"},"\u00f6":{"d":"566,24v-313,-1,-498,-220,-498,-555v0,-337,186,-552,498,-555v302,-3,497,222,497,540v0,266,-77,412,-241,505v-78,44,-163,65,-256,65xm566,-937v-205,0,-313,167,-313,406v0,240,107,407,313,407v206,0,312,-170,312,-413v0,-232,-111,-400,-312,-400xm285,-1270r0,-205r188,0r0,205r-188,0xm658,-1270r0,-205r188,0r0,205r-188,0"},"\u00f5":{"d":"440,-1314v-50,1,-78,39,-76,95r-133,0v-4,-130,80,-228,203,-228v41,0,98,18,169,54v39,20,71,30,94,30v54,0,64,-29,73,-87r130,0v-1,137,-71,225,-196,228v-42,0,-97,-19,-166,-56v-45,-24,-77,-36,-98,-36xm566,24v-313,-1,-498,-220,-498,-555v0,-337,186,-552,498,-555v302,-3,497,222,497,540v0,266,-77,412,-241,505v-78,44,-163,65,-256,65xm566,-937v-205,0,-313,167,-313,406v0,240,107,407,313,407v206,0,312,-170,312,-413v0,-232,-111,-400,-312,-400"},"\u00fa":{"d":"831,0r0,-156v-109,167,-313,230,-513,144v-150,-64,-187,-169,-187,-392r0,-658r180,0r0,589v1,177,-1,233,83,301v74,60,204,52,288,0v102,-63,130,-148,130,-321r0,-569r180,0r0,1062r-161,0xm453,-1194r133,-280r236,0r-220,280r-149,0"},"\u00f9":{"d":"831,0r0,-156v-109,167,-313,230,-513,144v-150,-64,-187,-169,-187,-392r0,-658r180,0r0,589v1,177,-1,233,83,301v74,60,204,52,288,0v102,-63,130,-148,130,-321r0,-569r180,0r0,1062r-161,0xm728,-1194r-145,0r-231,-280r241,0"},"\u00fb":{"d":"564,-1364r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm831,0r0,-156v-109,167,-313,230,-513,144v-150,-64,-187,-169,-187,-392r0,-658r180,0r0,589v1,177,-1,233,83,301v74,60,204,52,288,0v102,-63,130,-148,130,-321r0,-569r180,0r0,1062r-161,0"},"\u00fc":{"d":"831,0r0,-156v-109,167,-313,230,-513,144v-150,-64,-187,-169,-187,-392r0,-658r180,0r0,589v1,177,-1,233,83,301v74,60,204,52,288,0v102,-63,130,-148,130,-321r0,-569r180,0r0,1062r-161,0xm281,-1270r0,-205r188,0r0,205r-188,0xm654,-1270r0,-205r188,0r0,205r-188,0"},"\u00b0":{"d":"405,-936v-149,0,-277,-128,-277,-278v0,-149,129,-277,277,-277v150,0,278,127,278,277v0,149,-129,278,-278,278xm406,-1383v-91,0,-169,78,-169,169v0,91,78,169,169,169v90,0,168,-79,168,-169v0,-90,-78,-169,-168,-169","w":819},"\u00a2":{"d":"107,-526v0,-334,167,-548,471,-561v24,0,57,3,100,8r113,-387r110,32r-112,387v129,56,196,146,226,297r-175,27v-17,-75,-49,-132,-96,-171r-222,766v186,42,315,-92,333,-261r179,20v-39,253,-257,447,-551,383r-118,395r-112,-32r115,-398v-158,-77,-261,-259,-261,-505xm638,-940v-249,-25,-346,163,-346,405v0,162,37,292,123,358"},"\u00a3":{"d":"597,-1343v-140,-3,-258,109,-258,244v0,74,19,171,57,290r315,0r0,148r-284,0v38,93,16,176,-23,272v-26,65,-73,131,-136,198v53,-15,101,-22,144,-22v108,0,355,66,420,66v49,0,113,-19,192,-56r58,165v-100,40,-137,59,-243,63v-143,5,-294,-95,-441,-90v-111,4,-227,44,-302,93r-69,-173v152,-78,278,-280,213,-516r-196,0r0,-148r154,0v-33,-120,-47,-153,-51,-264v-7,-249,198,-418,454,-418v250,0,412,152,443,379r-179,27v-15,-146,-118,-255,-268,-258"},"\u00a7":{"d":"977,103v0,209,-178,327,-397,328v-254,2,-409,-137,-437,-361r181,-26v34,154,91,226,255,235v158,9,280,-145,181,-268v-41,-51,-156,-129,-340,-245v-163,-102,-225,-128,-302,-264v-102,-180,18,-392,188,-429v-76,-76,-129,-128,-129,-248v0,-181,165,-316,365,-316v251,0,390,124,418,347r-187,19v-25,-142,-72,-211,-215,-218v-146,-8,-267,138,-169,255v37,45,140,117,306,220v171,106,239,135,317,265v25,41,33,89,33,139v0,157,-82,230,-227,286v89,69,159,147,159,281xm394,-858v-85,51,-150,89,-150,194v0,42,16,82,46,120v63,81,339,222,438,300v117,-52,198,-184,95,-307v-56,-67,-350,-238,-429,-307"},"\u00b6":{"d":"1,-1044v2,-271,183,-422,473,-422r633,0r0,173r-144,0r0,1700r-170,0r0,-1700r-223,0r0,1700r-165,0r0,-1045v-236,-8,-405,-168,-404,-406","w":1100},"\u00df":{"d":"576,-1343v-189,11,-243,108,-243,352r0,991r-180,0r0,-999v1,-237,46,-354,193,-436v69,-38,147,-56,234,-56v202,0,366,115,371,287v5,158,-152,271,-152,407v0,21,8,42,22,63v14,21,54,54,121,97v91,59,151,107,181,143v43,51,64,112,64,182v2,189,-165,337,-365,337v-178,0,-307,-112,-363,-241r155,-72v54,96,96,157,205,165v133,10,241,-157,152,-270v-14,-17,-51,-47,-112,-88v-111,-76,-179,-133,-205,-171v-135,-190,122,-353,122,-534v0,-92,-94,-163,-200,-157","w":1251},"\u00ae":{"d":"3,-736v0,-432,324,-755,755,-755v430,0,754,322,754,755v0,432,-320,754,-754,754v-433,0,-755,-321,-755,-754xm1387,-736v0,-360,-270,-630,-629,-630v-359,0,-630,270,-630,630v0,361,269,629,630,629v360,0,629,-268,629,-629xm1015,-1030v97,155,-22,348,-194,348v29,12,52,26,69,43v65,63,158,224,219,320r-160,0v-53,-95,-158,-280,-209,-317v-38,-28,-112,-29,-182,-28r0,345r-131,0r0,-812v220,11,499,-40,588,101xm717,-776v126,0,197,-26,197,-124v0,-53,-34,-91,-76,-107v-50,-20,-196,-13,-280,-14r0,245r159,0","w":1509},"\u00a9":{"d":"3,-736v0,-432,324,-755,755,-755v430,0,754,322,754,755v0,432,-320,754,-754,754v-433,0,-755,-321,-755,-754xm1387,-736v0,-360,-270,-630,-629,-630v-359,0,-630,270,-630,630v0,361,269,629,630,629v360,0,629,-268,629,-629xm752,-421v127,0,224,-84,248,-193r123,36v-36,159,-174,274,-364,274v-242,0,-400,-175,-396,-430v4,-263,146,-423,404,-426v180,-2,301,95,341,236r-119,29v-36,-90,-110,-153,-226,-153v-167,0,-264,132,-264,317v0,185,88,310,253,310","w":1509},"\u00b4":{"d":"222,-1194r133,-280r236,0r-220,280r-149,0","w":682},"\u00a8":{"d":"61,-1270r0,-205r188,0r0,205r-188,0xm434,-1270r0,-205r188,0r0,205r-188,0","w":682},"\u00c6":{"d":"1,0r705,-1466r1203,0r0,173r-737,0r0,451r685,0r0,172r-685,0r0,497r764,0r0,173r-959,0r0,-423r-566,0r-200,423r-210,0xm493,-595r484,0r0,-698r-145,0","w":2048},"\u00d8":{"d":"799,-1491v214,0,311,56,451,159r168,-188r99,84r-176,198v109,161,156,273,156,506v0,447,-266,757,-696,757v-209,0,-310,-49,-451,-154r-168,188r-99,-84r176,-197v-113,-179,-164,-259,-164,-508v0,-452,260,-761,704,-761xm800,-1325v-319,0,-514,235,-505,592v4,169,23,245,89,371r746,-835v-112,-84,-166,-128,-330,-128xm795,-141v311,0,502,-246,502,-586v0,-139,-28,-261,-85,-367r-743,832v95,79,179,121,326,121","w":1593},"\u00b1":{"d":"477,-260r0,-403r-399,0r0,-167r399,0r0,-399r170,0r0,399r399,0r0,167r-399,0r0,403r-170,0xm1046,0r-968,0r0,-168r968,0r0,168","w":1124},"\u00a5":{"d":"477,0r0,-325r-415,0r0,-139r415,0r0,-143r-415,0r0,-148r341,0r-406,-711r200,0r290,516v33,59,58,110,76,154v15,-35,43,-90,82,-163r274,-507r214,0r-405,711r341,0r0,148r-412,0r0,143r412,0r0,139r-412,0r0,325r-180,0"},"\u00b5":{"d":"591,25v-130,0,-184,-42,-253,-132r0,514r-178,0r0,-1469r178,0v4,222,-18,625,26,768v27,89,109,155,219,156v112,1,204,-72,232,-158v44,-137,21,-550,26,-766r177,0r0,1062r-161,0r0,-126v-64,101,-129,151,-266,151","w":1180},"\u00aa":{"d":"379,-1491v200,0,293,63,299,242v5,157,-26,398,40,485r-148,0v-13,-27,-21,-56,-22,-89v-81,71,-167,107,-256,107v-171,0,-295,-142,-229,-303v34,-84,112,-113,228,-130r147,-22v48,-9,80,-16,96,-20v5,-125,-48,-149,-157,-153v-101,-4,-152,41,-166,125r-137,-34v21,-131,136,-208,305,-208xm224,-1029v-69,67,0,163,102,163v97,0,177,-62,199,-135v5,-13,7,-48,8,-103v-40,17,-269,35,-309,75","w":758},"\u00ba":{"d":"45,-1111v0,-222,123,-380,328,-380v203,0,328,158,328,376v0,217,-126,374,-327,375v-203,0,-329,-154,-329,-371xm553,-1120v0,-143,-58,-238,-180,-238v-127,0,-180,93,-180,243v0,146,56,243,180,243v126,0,180,-97,180,-248","w":748},"\u00e6":{"d":"1273,-124v150,-1,242,-95,273,-225r188,24v-60,207,-214,349,-468,349v-194,0,-302,-77,-395,-198v-120,116,-237,193,-440,198v-207,6,-363,-119,-363,-304v0,-131,87,-229,188,-276v101,-47,406,-71,534,-113v9,-190,-45,-272,-235,-268v-172,4,-257,49,-283,204r-175,-21v46,-226,195,-332,460,-332v180,0,299,31,368,143v82,-88,177,-143,341,-143v335,0,483,266,470,601r-767,0v3,183,35,250,143,317v48,30,102,44,161,44xm1553,-633v-15,-190,-104,-304,-288,-304v-177,0,-288,126,-296,304r584,0xm259,-286v0,105,87,168,207,168v149,0,279,-87,312,-199v10,-35,15,-107,15,-216v-53,23,-160,48,-322,73v-131,20,-212,57,-212,174","w":1821},"\u00f8":{"d":"621,-1086v130,0,205,35,298,87r99,-128r96,70r-107,138v87,115,114,207,117,389v8,339,-185,554,-499,554v-106,0,-200,-27,-281,-80r-105,135r-94,-71r108,-141v-182,-175,-153,-671,23,-819v102,-85,213,-134,345,-134xm627,-937v-202,0,-313,170,-313,406v0,100,17,184,52,251r452,-587v-61,-47,-124,-70,-191,-70xm620,-124v209,0,326,-167,320,-408v-2,-107,-11,-154,-47,-238r-449,583v52,42,111,63,176,63","w":1251},"\u00bf":{"d":"733,-1062r0,205r-205,0r0,-205r205,0xm629,429v-326,10,-577,-280,-427,-577v28,-54,89,-118,176,-196v129,-117,165,-136,170,-357r173,0v9,263,-78,344,-229,480v-97,87,-143,111,-149,238v-7,142,134,269,283,264v177,-6,268,-119,293,-296r184,21v-29,258,-195,414,-474,423","w":1251},"\u00a1":{"d":"447,-1062r0,205r-207,0r0,-205r207,0xm400,-697r55,776r0,325r-223,0r0,-325r52,-776r116,0","w":682},"\u00ac":{"d":"1082,-424r-170,0r0,-438r-798,0r0,-168r968,0r0,606","w":1196},"\u00ab":{"d":"340,-528r259,456r-146,0r-319,-456r319,-456r148,0xm727,-528r264,456r-152,0r-313,-456r313,-456r152,0"},"\u00bb":{"d":"791,-528r-261,-456r148,0r319,456r-319,456r-147,0xm404,-528r-264,-456r151,0r314,456r-314,456r-151,0"},"\u00c0":{"d":"-3,0r563,-1466r209,0r600,1466r-221,0r-171,-444r-613,0r-161,444r-206,0xm420,-602r497,0r-153,-406v-47,-123,-81,-225,-104,-304v-51,254,-160,480,-240,710xm824,-1556r-145,0r-231,-280r241,0","w":1366},"\u00c3":{"d":"558,-1651v-50,1,-78,39,-76,95r-133,0v-4,-130,80,-228,203,-228v41,0,98,18,169,54v39,20,71,30,94,30v54,0,64,-29,73,-87r130,0v-1,137,-71,225,-196,228v-42,0,-97,-19,-166,-56v-45,-24,-77,-36,-98,-36xm-3,0r563,-1466r209,0r600,1466r-221,0r-171,-444r-613,0r-161,444r-206,0xm420,-602r497,0r-153,-406v-47,-123,-81,-225,-104,-304v-51,254,-160,480,-240,710","w":1366},"\u00d5":{"d":"675,-1651v-50,1,-78,39,-76,95r-133,0v-4,-130,80,-228,203,-228v41,0,98,18,169,54v39,20,71,30,94,30v54,0,64,-29,73,-87r130,0v-1,137,-71,225,-196,228v-42,0,-97,-19,-166,-56v-45,-24,-77,-36,-98,-36xm800,25v-432,0,-691,-312,-701,-739v-10,-457,272,-778,702,-778v440,0,700,311,700,761v0,448,-266,756,-701,756xm1301,-732v-5,-346,-170,-593,-499,-593v-137,0,-255,47,-354,141v-99,94,-149,252,-149,473v0,327,198,570,500,570v314,0,507,-246,502,-591","w":1593},"\u0152":{"d":"721,25v-399,0,-592,-337,-592,-760v0,-215,47,-394,142,-539v95,-145,245,-217,450,-217v176,0,309,74,400,223r0,-198r831,0r0,173r-650,0r0,448r599,0r0,172r-599,0r0,500r681,0r0,173r-862,0r0,-212v-90,158,-223,237,-400,237xm994,-1192v-121,-151,-306,-191,-471,-77v-144,100,-195,284,-194,549v0,202,40,349,115,446v147,189,405,189,552,0v75,-96,114,-252,114,-471v0,-204,-40,-352,-116,-447","w":2048},"\u0153":{"d":"1386,24v-187,0,-332,-81,-408,-199v-90,117,-209,198,-396,199v-309,2,-504,-218,-500,-542v3,-230,82,-420,236,-502v80,-43,169,-66,266,-66v183,0,328,88,394,203v77,-113,209,-203,389,-203v323,0,500,240,490,603r-784,0v-1,203,126,359,316,359v150,0,238,-91,274,-222r180,26v-53,208,-206,343,-457,344xm577,-938v-210,0,-306,185,-310,405v-5,241,112,409,310,409v196,0,313,-180,313,-411v0,-233,-113,-403,-313,-403xm1667,-631v-11,-181,-114,-307,-289,-307v-172,0,-289,133,-298,307r587,0","w":1933},"\u00f7":{"d":"459,-922r0,-205r205,0r0,205r-205,0xm1046,-639r-968,0r0,-168r968,0r0,168xm459,-319r0,-205r205,0r0,205r-205,0","w":1124},"\u00ff":{"d":"127,409r-20,-169v109,34,217,11,258,-60v11,-18,49,-117,71,-178r-403,-1064r194,0r221,615v29,78,54,160,77,246v82,-303,202,-574,301,-861r180,0r-404,1080v-43,117,-79,196,-101,241v-64,132,-198,211,-374,150xm243,-1270r0,-205r188,0r0,205r-188,0xm616,-1270r0,-205r188,0r0,205r-188,0","w":1024},"\u0178":{"d":"571,0r0,-621r-565,-845r236,0r289,442v53,83,103,165,149,248v44,-77,97,-163,160,-259r284,-431r226,0r-585,845r0,621r-194,0xm397,-1556r0,-205r188,0r0,205r-188,0xm770,-1556r0,-205r188,0r0,205r-188,0","w":1366},"\u00c2":{"d":"664,-1726r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm-3,0r563,-1466r209,0r600,1466r-221,0r-171,-444r-613,0r-161,444r-206,0xm420,-602r497,0r-153,-406v-47,-123,-81,-225,-104,-304v-51,254,-160,480,-240,710","w":1366},"\u00ca":{"d":"707,-1726r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm162,0r0,-1466r1060,0r0,173r-866,0r0,449r811,0r0,172r-811,0r0,499r900,0r0,173r-1094,0","w":1366},"\u00c1":{"d":"-3,0r563,-1466r209,0r600,1466r-221,0r-171,-444r-613,0r-161,444r-206,0xm420,-602r497,0r-153,-406v-47,-123,-81,-225,-104,-304v-51,254,-160,480,-240,710xm541,-1556r133,-280r236,0r-220,280r-149,0","w":1366},"\u00cb":{"d":"162,0r0,-1466r1060,0r0,173r-866,0r0,449r811,0r0,172r-811,0r0,499r900,0r0,173r-1094,0xm425,-1556r0,-205r188,0r0,205r-188,0xm798,-1556r0,-205r188,0r0,205r-188,0","w":1366},"\u00c8":{"d":"162,0r0,-1466r1060,0r0,173r-866,0r0,449r811,0r0,172r-811,0r0,499r900,0r0,173r-1094,0xm850,-1556r-145,0r-231,-280r241,0","w":1366},"\u00cd":{"d":"191,0r0,-1466r194,0r0,1466r-194,0xm141,-1556r133,-280r236,0r-220,280r-149,0","w":569},"\u00ce":{"d":"287,-1726r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm191,0r0,-1466r194,0r0,1466r-194,0","w":569},"\u00cf":{"d":"191,0r0,-1466r194,0r0,1466r-194,0xm4,-1556r0,-205r188,0r0,205r-188,0xm377,-1556r0,-205r188,0r0,205r-188,0","w":569},"\u00cc":{"d":"191,0r0,-1466r194,0r0,1466r-194,0xm430,-1556r-145,0r-231,-280r241,0","w":569},"\u00d3":{"d":"800,25v-432,0,-691,-312,-701,-739v-10,-457,272,-778,702,-778v440,0,700,311,700,761v0,448,-266,756,-701,756xm1301,-732v-5,-346,-170,-593,-499,-593v-137,0,-255,47,-354,141v-99,94,-149,252,-149,473v0,327,198,570,500,570v314,0,507,-246,502,-591xm677,-1556r133,-280r236,0r-220,280r-149,0","w":1593},"\u00d4":{"d":"798,-1726r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm800,25v-432,0,-691,-312,-701,-739v-10,-457,272,-778,702,-778v440,0,700,311,700,761v0,448,-266,756,-701,756xm1301,-732v-5,-346,-170,-593,-499,-593v-137,0,-255,47,-354,141v-99,94,-149,252,-149,473v0,327,198,570,500,570v314,0,507,-246,502,-591","w":1593},"\u00d2":{"d":"800,25v-432,0,-691,-312,-701,-739v-10,-457,272,-778,702,-778v440,0,700,311,700,761v0,448,-266,756,-701,756xm1301,-732v-5,-346,-170,-593,-499,-593v-137,0,-255,47,-354,141v-99,94,-149,252,-149,473v0,327,198,570,500,570v314,0,507,-246,502,-591xm916,-1556r-145,0r-231,-280r241,0","w":1593},"\u00da":{"d":"724,-150v317,0,396,-126,396,-470r0,-846r194,0r0,847v-3,294,-51,449,-230,563v-87,54,-202,81,-343,81v-417,0,-580,-207,-580,-644r0,-847r194,0r0,846v2,232,24,341,157,421v57,34,129,49,212,49xm614,-1556r133,-280r236,0r-220,280r-149,0","w":1479},"\u00db":{"d":"736,-1726r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm724,-150v317,0,396,-126,396,-470r0,-846r194,0r0,847v-3,294,-51,449,-230,563v-87,54,-202,81,-343,81v-417,0,-580,-207,-580,-644r0,-847r194,0r0,846v2,232,24,341,157,421v57,34,129,49,212,49","w":1479},"\u00d9":{"d":"724,-150v317,0,396,-126,396,-470r0,-846r194,0r0,847v-3,294,-51,449,-230,563v-87,54,-202,81,-343,81v-417,0,-580,-207,-580,-644r0,-847r194,0r0,846v2,232,24,341,157,421v57,34,129,49,212,49xm854,-1556r-145,0r-231,-280r241,0","w":1479},"\u0131":{"d":"198,0r0,-1062r180,0r0,1062r-180,0","w":569},"\u00b8":{"d":"373,221v-12,-64,-70,-63,-157,-67r52,-177r134,0r-33,107v95,8,171,62,171,147v0,124,-130,190,-289,190v-55,0,-103,-4,-144,-12r11,-117v118,6,238,17,255,-71","w":682},"\u0141":{"d":"145,-565r-145,123r0,-167r145,-124r0,-733r194,0r0,568r332,-281r0,167r-332,281r0,558r728,0r0,173r-922,0r0,-565"},"\u0142":{"d":"133,-574r-130,110r0,-158r130,-110r0,-734r179,0r0,582r135,-115r0,157r-135,115r0,727r-179,0r0,-574","w":455},"\u0160":{"d":"655,-1660r110,-170r204,0r-225,280r-192,0r-216,-280r206,0xm1259,-414v0,283,-242,438,-542,439v-263,1,-441,-76,-545,-233v-51,-78,-77,-165,-80,-263r183,-16v20,231,188,338,433,338v193,0,364,-71,364,-249v0,-117,-71,-166,-172,-207v-76,-31,-474,-121,-544,-163v-117,-70,-208,-159,-208,-319v0,-269,232,-404,516,-404v315,0,533,145,551,438r-186,14v-22,-191,-138,-282,-357,-281v-117,0,-201,23,-256,64v-94,71,-104,202,-24,286v61,64,535,156,617,198v144,75,250,170,250,358","w":1366},"\u0161":{"d":"507,-1304r110,-170r204,0r-225,280r-192,0r-216,-280r206,0xm945,-312v0,220,-192,335,-428,336v-274,1,-411,-113,-454,-341r178,-28v20,142,111,221,275,221v139,0,244,-58,244,-169v0,-41,-17,-73,-53,-96v-66,-42,-410,-111,-459,-147v-90,-41,-155,-125,-155,-244v0,-211,169,-306,391,-306v237,0,395,83,421,298r-176,24v-17,-113,-97,-174,-232,-174v-133,0,-230,38,-230,137v0,59,40,90,91,111v18,7,71,22,159,46v127,34,217,62,267,84v94,41,161,118,161,248","w":1024},"\u017d":{"d":"635,-1660r110,-170r204,0r-225,280r-192,0r-216,-280r206,0xm41,0r0,-180r751,-939v53,-67,104,-125,152,-174r-818,0r0,-173r1050,0r0,173r-823,1017r-89,103r936,0r0,173r-1159,0","w":1251},"\u017e":{"d":"543,-1304r110,-170r204,0r-225,280r-192,0r-216,-280r206,0xm40,0r0,-146r676,-776v-77,4,-144,6,-203,6r-433,0r0,-146r868,0r0,119r-575,674r-111,123v236,-17,472,-6,718,-9r0,155r-940,0","w":1024},"\u00a6":{"d":"345,-1491r0,790r-157,0r0,-790r157,0xm345,-360r0,791r-157,0r0,-791r157,0","w":532},"\u00d0":{"d":"158,0r0,-667r-161,0r0,-132r161,0r0,-667v243,5,570,-23,766,21v302,68,446,334,446,704v0,388,-154,660,-469,724v-194,39,-510,11,-743,17xm352,-173v176,-4,414,15,541,-27v133,-44,190,-128,238,-260v51,-139,55,-426,1,-558v-79,-194,-185,-275,-472,-275r-308,0r0,494r404,0r0,132r-404,0r0,494","w":1479},"\u00f0":{"d":"737,-1003v-51,-102,-70,-130,-142,-213r-275,127r-44,-103r239,-109v-65,-60,-134,-115,-207,-165r217,0v48,36,90,70,125,102r214,-102r45,102r-172,83v213,245,320,499,320,760v0,317,-195,546,-493,546v-294,-1,-491,-207,-491,-542v0,-315,169,-545,452,-545v99,0,134,19,212,59xm563,-122v196,0,307,-176,307,-407v0,-227,-115,-395,-313,-395v-203,0,-300,171,-300,412v0,229,108,390,306,390"},"\u00dd":{"d":"571,0r0,-621r-565,-845r236,0r289,442v53,83,103,165,149,248v44,-77,97,-163,160,-259r284,-431r226,0r-585,845r0,621r-194,0xm555,-1556r133,-280r236,0r-220,280r-149,0","w":1366},"\u00fd":{"d":"127,409r-20,-169v109,34,217,11,258,-60v11,-18,49,-117,71,-178r-403,-1064r194,0r221,615v29,78,54,160,77,246v82,-303,202,-574,301,-861r180,0r-404,1080v-43,117,-79,196,-101,241v-64,132,-198,211,-374,150xm420,-1194r133,-280r236,0r-220,280r-149,0","w":1024},"\u00de":{"d":"158,0r0,-1466r194,0r0,298r359,0v282,-4,434,46,522,225v85,173,46,389,-75,515v-81,85,-223,130,-430,130r-376,0r0,298r-194,0xm731,-471v223,2,341,-72,346,-266v3,-122,-70,-222,-168,-244v-129,-29,-391,-10,-557,-14r0,524r379,0","w":1366},"\u00fe":{"d":"595,24v-136,0,-196,-46,-280,-134r0,517r-180,0r0,-1873r180,0r0,516v89,-93,145,-136,292,-136v301,0,448,240,450,547v2,317,-166,563,-462,563xm590,-945v-184,0,-292,191,-292,420v0,137,28,238,83,303v55,65,122,98,201,98v194,0,291,-177,291,-416v0,-135,-27,-237,-83,-304v-56,-67,-123,-101,-200,-101"},"\u00d7":{"d":"161,-409r315,-315r-314,-314r122,-122r314,314r313,-313r120,121r-312,313r314,314r-122,122r-314,-314r-315,315","w":1196},"\u00b9":{"d":"107,-1297v88,-29,209,-115,261,-187r108,0r0,751r-145,0r0,-554v-68,54,-143,92,-224,113r0,-123","w":682},"\u00b2":{"d":"352,-1484v171,-2,292,65,292,203v0,56,-24,106,-59,159v-30,45,-259,202,-323,268r386,0r0,121r-623,0v4,-38,20,-76,47,-114v42,-57,111,-121,207,-191v96,-70,152,-115,171,-134v79,-80,21,-201,-101,-194v-100,6,-124,31,-152,114r-151,-16v40,-146,123,-213,306,-216","w":682},"\u00b3":{"d":"646,-946v0,142,-136,231,-304,231v-180,0,-278,-71,-309,-214r146,-15v23,77,70,108,154,112v86,3,156,-55,157,-133v1,-100,-101,-119,-214,-107r22,-110v90,3,156,-31,156,-102v0,-57,-51,-91,-119,-89v-87,2,-113,33,-142,102r-143,-23v55,-134,110,-187,286,-190v162,-3,275,56,275,187v0,85,-61,140,-138,160v102,24,173,82,173,191","w":682},"\u00bd":{"d":"228,57r1101,-1548r157,0r-1101,1548r-157,0xm107,-1297v88,-29,209,-115,261,-187r108,0r0,751r-145,0r0,-554v-68,54,-143,92,-224,113r0,-123xm1376,-720v171,-2,292,65,292,203v0,56,-24,106,-59,159v-30,45,-257,204,-323,268r386,0r0,121r-623,0v4,-37,20,-75,48,-113v42,-58,110,-122,206,-191v96,-69,152,-115,171,-135v78,-80,22,-201,-101,-193v-99,6,-124,31,-152,113r-151,-15v39,-147,123,-214,306,-217","w":1708},"\u00bc":{"d":"252,57r1102,-1548r156,0r-1101,1548r-157,0xm107,-1297v88,-29,209,-115,261,-187r108,0r0,751r-145,0r0,-554v-68,54,-143,92,-224,113r0,-123xm1430,31r0,-154r-383,0r0,-123r405,-474r122,0r0,489r104,0r0,108r-104,0r0,154r-144,0xm1430,-231r0,-263r-230,263r230,0","w":1708},"\u00be":{"d":"252,57r1101,-1548r157,0r-1101,1548r-157,0xm646,-946v0,142,-136,231,-304,231v-180,0,-278,-71,-309,-214r146,-15v23,77,70,108,154,112v86,3,157,-55,157,-133v0,-80,-60,-112,-156,-110v-33,1,-53,3,-58,3r22,-110v90,3,156,-31,156,-102v0,-57,-51,-91,-119,-89v-87,2,-113,33,-142,102r-143,-23v55,-134,110,-187,286,-190v162,-3,275,56,275,187v0,85,-61,140,-138,160v102,24,173,82,173,191xm1429,31r0,-154r-382,0r0,-123r404,-474r123,0r0,489r104,0r0,108r-104,0r0,154r-145,0xm1429,-231r0,-263r-229,263r229,0","w":1708},"\u011e":{"d":"862,-1680v110,0,159,-42,178,-135r123,0v-18,160,-121,259,-295,259v-176,0,-278,-97,-296,-259r123,0v18,86,68,135,167,135xm847,-150v159,4,347,-80,428,-152r0,-273r-431,0r0,-172r621,-1r0,544v-164,130,-349,229,-607,229v-458,0,-749,-290,-749,-751v0,-455,265,-771,734,-765v335,5,536,151,600,435r-175,48v-52,-206,-181,-317,-424,-317v-366,0,-528,239,-535,587v-7,369,195,578,538,588","w":1593},"\u011f":{"d":"564,-1329v110,0,159,-42,178,-135r123,0v-18,160,-121,259,-295,259v-176,0,-278,-97,-296,-259r123,0v18,86,68,135,167,135xm66,-537v4,-308,152,-549,460,-549v125,0,229,51,310,152r0,-128r166,0r0,918v-2,301,-39,414,-210,515v-152,90,-446,77,-577,-25v-76,-59,-116,-143,-113,-258r175,26v16,124,109,166,244,168v163,2,250,-67,285,-190v9,-37,14,-114,13,-231v-79,93,-177,139,-294,139v-291,0,-463,-252,-459,-537xm539,-937v-186,0,-288,166,-288,387v0,240,92,401,291,401v195,0,292,-161,292,-395v0,-226,-106,-393,-295,-393"},"\u0130":{"d":"177,-1556r0,-224r223,0r0,224r-223,0xm191,0r0,-1466r194,0r0,1466r-194,0","w":569},"\u015e":{"d":"1259,-414v0,283,-242,438,-542,439v-263,1,-441,-76,-545,-233v-51,-78,-77,-165,-80,-263r183,-16v20,231,188,338,433,338v193,0,364,-71,364,-249v0,-117,-71,-166,-172,-207v-76,-31,-474,-121,-544,-163v-117,-70,-208,-159,-208,-319v0,-269,232,-404,516,-404v315,0,533,145,551,438r-186,14v-22,-191,-138,-282,-357,-281v-117,0,-201,23,-256,64v-94,71,-104,202,-24,286v61,64,535,156,617,198v144,75,250,170,250,358xm712,211v-12,-64,-70,-63,-157,-67r52,-177r134,0r-33,107v95,8,171,62,171,147v0,124,-130,190,-289,190v-55,0,-103,-4,-144,-12r11,-117v118,6,238,17,255,-71","w":1366},"\u015f":{"d":"945,-312v0,220,-192,335,-428,336v-274,1,-411,-113,-454,-341r178,-28v20,142,111,221,275,221v139,0,244,-58,244,-169v0,-41,-17,-73,-53,-96v-66,-42,-410,-111,-459,-147v-90,-41,-155,-125,-155,-244v0,-211,169,-306,391,-306v237,0,395,83,421,298r-176,24v-17,-113,-97,-174,-232,-174v-133,0,-230,38,-230,137v0,59,40,90,91,111v18,7,71,22,159,46v127,34,217,62,267,84v94,41,161,118,161,248xm532,201v-12,-64,-70,-63,-157,-67r52,-177r134,0r-33,107v95,8,171,62,171,147v0,124,-130,190,-289,190v-55,0,-103,-4,-144,-12r11,-117v118,6,238,17,255,-71","w":1024},"\u0106":{"d":"775,-141v242,0,385,-152,429,-373r194,49v-71,291,-272,490,-607,490v-328,0,-510,-141,-611,-376v-52,-122,-78,-253,-78,-393v1,-452,256,-747,692,-747v310,0,508,174,579,427r-191,45v-61,-191,-167,-303,-392,-306v-338,-4,-488,250,-488,580v0,246,69,444,224,535v77,46,160,69,249,69xm663,-1556r133,-280r236,0r-220,280r-149,0","w":1479},"\u0107":{"d":"561,-124v161,0,247,-105,267,-265r177,23v-32,227,-196,390,-442,390v-307,0,-483,-221,-483,-551v0,-335,165,-555,484,-559v238,-3,386,130,424,336r-175,27v-28,-126,-104,-215,-242,-215v-210,0,-306,160,-306,406v0,248,88,408,296,408xm424,-1194r133,-280r236,0r-220,280r-149,0","w":1024},"\u010c":{"d":"791,-1660r110,-170r204,0r-225,280r-192,0r-216,-280r206,0xm775,-141v242,0,385,-152,429,-373r194,49v-71,291,-272,490,-607,490v-328,0,-510,-141,-611,-376v-52,-122,-78,-253,-78,-393v1,-452,256,-747,692,-747v310,0,508,174,579,427r-191,45v-61,-191,-167,-303,-392,-306v-338,-4,-488,250,-488,580v0,246,69,444,224,535v77,46,160,69,249,69","w":1479},"\u010d":{"d":"561,-1304r110,-170r204,0r-225,280r-192,0r-216,-280r206,0xm561,-124v161,0,247,-105,267,-265r177,23v-32,227,-196,390,-442,390v-307,0,-483,-221,-483,-551v0,-335,165,-555,484,-559v238,-3,386,130,424,336r-175,27v-28,-126,-104,-215,-242,-215v-210,0,-306,160,-306,406v0,248,88,408,296,408","w":1024},"\u0111":{"d":"519,-1086v134,-2,235,65,293,146r0,-279r-346,0r0,-132r346,0r0,-115r179,0r0,115r145,0r0,132r-145,0r0,1219r-167,0r0,-134v-100,176,-354,204,-530,88v-137,-90,-224,-262,-224,-484v1,-313,147,-551,449,-556xm536,-937v-194,0,-281,169,-281,407v0,136,29,238,86,305v57,67,125,101,203,101v186,0,283,-165,283,-391v0,-145,-28,-252,-84,-320v-56,-68,-125,-102,-207,-102"},"\u00af":{"d":"-31,-1566r0,-129r1193,0r0,129r-1193,0","w":1131},"\u00b7":{"d":"238,-637r0,-205r205,0r0,205r-205,0","w":682},"\u0102":{"d":"674,-1680v110,0,159,-42,178,-135r123,0v-18,160,-121,259,-295,259v-176,0,-278,-97,-296,-259r123,0v18,86,68,135,167,135xm-3,0r563,-1466r209,0r600,1466r-221,0r-171,-444r-613,0r-161,444r-206,0xm420,-602r497,0r-153,-406v-47,-123,-81,-225,-104,-304v-51,254,-160,480,-240,710","w":1366},"\u0103":{"d":"581,-1329v110,0,159,-42,178,-135r123,0v-18,160,-121,259,-295,259v-176,0,-278,-97,-296,-259r123,0v18,86,68,135,167,135xm995,-445v6,270,-11,308,57,445r-188,0v-19,-37,-31,-81,-36,-131v-115,96,-212,150,-391,155v-213,5,-363,-111,-363,-304v0,-172,117,-269,258,-305v119,-31,406,-52,481,-89v18,-197,-77,-263,-255,-263v-179,0,-237,55,-277,202r-176,-24v41,-230,210,-327,479,-327v221,0,367,58,402,235v17,88,7,287,9,406xm291,-370v-76,130,31,253,189,253v143,0,256,-71,304,-170v24,-50,31,-154,29,-246v-75,43,-348,64,-451,104v-31,12,-56,33,-71,59"},"\u0104":{"d":"1035,246v3,-108,67,-189,138,-246r132,0v-64,38,-120,104,-120,191v0,59,33,102,98,100v34,0,68,-11,91,-24r0,128v-146,77,-344,24,-339,-149xm-3,0r563,-1466r209,0r600,1466r-221,0r-171,-444r-613,0r-161,444r-206,0xm420,-602r497,0r-153,-406v-47,-123,-81,-225,-104,-304v-51,254,-160,480,-240,710","w":1366},"\u0105":{"d":"745,246v3,-108,67,-189,138,-246r132,0v-64,38,-120,104,-120,191v0,59,33,102,98,100v34,0,68,-11,91,-24r0,128v-146,77,-344,24,-339,-149xm995,-445v6,270,-11,308,57,445r-188,0v-19,-37,-31,-81,-36,-131v-115,96,-212,150,-391,155v-213,5,-363,-111,-363,-304v0,-172,117,-269,258,-305v119,-31,406,-52,481,-89v18,-197,-77,-263,-255,-263v-179,0,-237,55,-277,202r-176,-24v41,-230,210,-327,479,-327v221,0,367,58,402,235v17,88,7,287,9,406xm291,-370v-76,130,31,253,189,253v143,0,256,-71,304,-170v24,-50,31,-154,29,-246v-75,43,-348,64,-451,104v-31,12,-56,33,-71,59"},"\u010e":{"d":"600,-1660r110,-170r204,0r-225,280r-192,0r-216,-280r206,0xm158,0r0,-1466v243,5,570,-23,766,21v302,68,444,334,446,704v2,301,-99,524,-272,643v-99,68,-240,98,-411,98r-529,0xm665,-173v389,13,496,-206,505,-571v6,-271,-91,-448,-259,-519v-112,-47,-385,-27,-559,-30r0,1120r313,0","w":1479},"\u010f":{"d":"1078,-1281r0,-185r184,0v-3,125,12,270,-36,348v-25,41,-62,74,-114,97r-45,-68v72,-34,99,-86,102,-192r-91,0xm520,-1086v134,-2,235,65,293,146r0,-526r179,0r0,1466r-167,0r0,-134v-100,176,-355,204,-531,88v-137,-90,-223,-262,-223,-484v1,-313,147,-551,449,-556xm537,-937v-194,0,-281,169,-281,407v0,136,29,238,86,305v57,67,125,101,203,101v186,0,283,-165,283,-391v0,-145,-28,-252,-84,-320v-56,-68,-125,-102,-207,-102","w":1259},"\u0110":{"d":"158,0r0,-667r-161,0r0,-132r161,0r0,-667v243,5,570,-23,766,21v302,68,446,334,446,704v0,388,-154,660,-469,724v-194,39,-510,11,-743,17xm352,-173v176,-4,414,15,541,-27v133,-44,190,-128,238,-260v51,-139,55,-426,1,-558v-79,-194,-185,-275,-472,-275r-308,0r0,494r404,0r0,132r-404,0r0,494","w":1479},"\u0118":{"d":"917,246v3,-108,67,-189,138,-246r132,0v-64,38,-120,104,-120,191v0,59,33,102,98,100v34,0,68,-11,91,-24r0,128v-146,77,-344,24,-339,-149xm162,0r0,-1466r1060,0r0,173r-866,0r0,449r811,0r0,172r-811,0r0,499r900,0r0,173r-1094,0","w":1366},"\u0119":{"d":"465,246v3,-108,67,-189,138,-246r132,0v-64,38,-120,104,-120,191v0,59,33,102,98,100v34,0,68,-11,91,-24r0,128v-146,77,-344,24,-339,-149xm582,-124v156,0,233,-86,280,-218r186,23v-55,208,-211,343,-467,343v-319,1,-506,-215,-506,-546v0,-333,186,-564,496,-564v316,0,506,247,482,601r-792,0v7,209,124,361,321,361xm864,-633v-10,-189,-122,-302,-291,-305v-172,-3,-295,133,-302,305r593,0"},"\u011a":{"d":"666,-1660r110,-170r204,0r-225,280r-192,0r-216,-280r206,0xm162,0r0,-1466r1060,0r0,173r-866,0r0,449r811,0r0,172r-811,0r0,499r900,0r0,173r-1094,0","w":1366},"\u011b":{"d":"583,-1304r110,-170r204,0r-225,280r-192,0r-216,-280r206,0xm582,-124v156,0,233,-86,280,-218r186,23v-55,208,-211,343,-467,343v-319,1,-506,-215,-506,-546v0,-333,186,-564,496,-564v316,0,506,247,482,601r-792,0v7,209,124,361,321,361xm864,-633v-10,-189,-122,-302,-291,-305v-172,-3,-295,133,-302,305r593,0"},"\u0139":{"d":"150,0r0,-1466r194,0r0,1293r722,0r0,173r-916,0xm304,-1556r133,-280r236,0r-220,280r-149,0"},"\u013a":{"d":"131,0r0,-1466r180,0r0,1466r-180,0xm66,-1541r133,-280r236,0r-220,280r-149,0","w":455},"\u013d":{"d":"712,-1261r0,-205r205,0v-3,139,14,302,-40,388v-28,45,-69,82,-127,107r-50,-77v80,-37,111,-95,114,-213r-102,0xm150,0r0,-1466r194,0r0,1293r722,0r0,173r-916,0"},"\u013e":{"d":"412,-1281r0,-185r184,0v-3,125,12,270,-36,348v-25,41,-62,74,-114,97r-45,-68v72,-34,99,-86,102,-192r-91,0xm136,0r0,-1466r180,0r0,1466r-180,0","w":597},"\u013f":{"d":"150,0r0,-1466r194,0r0,1293r722,0r0,173r-916,0xm466,-637r0,-205r205,0r0,205r-205,0"},"\u0140":{"d":"131,0r0,-1466r180,0r0,1466r-180,0xm460,-637r0,-205r205,0r0,205r-205,0","w":684},"\u0143":{"d":"156,0r0,-1466r199,0r770,1151r0,-1151r186,0r0,1466r-199,0r-770,-1152r0,1152r-186,0xm570,-1556r133,-280r236,0r-220,280r-149,0","w":1479},"\u0144":{"d":"597,-930v-188,0,-282,115,-282,350r0,580r-180,0r0,-1062r162,0r0,151v100,-163,316,-220,515,-141v102,41,151,112,176,224v7,33,10,92,10,175r0,653r-180,0r0,-646v7,-189,-58,-284,-221,-284xm448,-1194r133,-280r236,0r-220,280r-149,0"},"\u0147":{"d":"734,-1666r110,-170r204,0r-225,280r-192,0r-216,-280r206,0xm156,0r0,-1466r199,0r770,1151r0,-1151r186,0r0,1466r-199,0r-770,-1152r0,1152r-186,0","w":1479},"\u0148":{"d":"585,-1304r110,-170r204,0r-225,280r-192,0r-216,-280r206,0xm597,-930v-188,0,-282,115,-282,350r0,580r-180,0r0,-1062r162,0r0,151v100,-163,316,-220,515,-141v102,41,151,112,176,224v7,33,10,92,10,175r0,653r-180,0r0,-646v7,-189,-58,-284,-221,-284"},"\u0150":{"d":"473,-1556r121,-280r234,0r-211,280r-144,0xm820,-1556r127,-280r231,0r-207,280r-151,0xm800,25v-432,0,-691,-312,-701,-739v-10,-457,272,-778,702,-778v440,0,700,311,700,761v0,448,-266,756,-701,756xm1301,-732v-5,-346,-170,-593,-499,-593v-137,0,-255,47,-354,141v-99,94,-149,252,-149,473v0,327,198,570,500,570v314,0,507,-246,502,-591","w":1593},"\u0151":{"d":"283,-1194r121,-280r234,0r-211,280r-144,0xm630,-1194r127,-280r231,0r-207,280r-151,0xm566,24v-313,-1,-498,-220,-498,-555v0,-337,186,-552,498,-555v302,-3,497,222,497,540v0,266,-77,412,-241,505v-78,44,-163,65,-256,65xm566,-937v-205,0,-313,167,-313,406v0,240,107,407,313,407v206,0,312,-170,312,-413v0,-232,-111,-400,-312,-400"},"\u0154":{"d":"1333,-1066v0,241,-167,370,-413,399v140,66,197,141,278,268r255,399r-244,0r-194,-305v-89,-134,-139,-229,-239,-300v-59,-41,-91,-47,-196,-46r-225,0r0,651r-194,0r0,-1466r650,0v249,2,369,33,461,179v42,66,61,140,61,221xm1133,-1066v0,-161,-124,-238,-314,-238r-464,0r0,485r417,0v218,5,361,-60,361,-247xm503,-1556r133,-280r236,0r-220,280r-149,0","w":1479},"\u0155":{"d":"516,-900v-165,0,-203,175,-203,344r0,556r-180,0r0,-1062r162,0r0,161v69,-116,99,-185,230,-185v61,0,122,19,185,58r-62,167v-44,-26,-88,-39,-132,-39xm242,-1194r133,-280r236,0r-220,280r-149,0","w":682},"\u0158":{"d":"649,-1660r110,-170r204,0r-225,280r-192,0r-216,-280r206,0xm1333,-1066v0,241,-167,370,-413,399v140,66,197,141,278,268r255,399r-244,0r-194,-305v-89,-134,-139,-229,-239,-300v-59,-41,-91,-47,-196,-46r-225,0r0,651r-194,0r0,-1466r650,0v249,2,369,33,461,179v42,66,61,140,61,221xm1133,-1066v0,-161,-124,-238,-314,-238r-464,0r0,485r417,0v218,5,361,-60,361,-247","w":1479},"\u0159":{"d":"379,-1304r110,-170r204,0r-225,280r-192,0r-216,-280r206,0xm516,-900v-165,0,-203,175,-203,344r0,556r-180,0r0,-1062r162,0r0,161v69,-116,99,-185,230,-185v61,0,122,19,185,58r-62,167v-44,-26,-88,-39,-132,-39","w":682},"\u015a":{"d":"1259,-414v0,283,-242,438,-542,439v-263,1,-441,-76,-545,-233v-51,-78,-77,-165,-80,-263r183,-16v20,231,188,338,433,338v193,0,364,-71,364,-249v0,-117,-71,-166,-172,-207v-76,-31,-474,-121,-544,-163v-117,-70,-208,-159,-208,-319v0,-269,232,-404,516,-404v315,0,533,145,551,438r-186,14v-22,-191,-138,-282,-357,-281v-117,0,-201,23,-256,64v-94,71,-104,202,-24,286v61,64,535,156,617,198v144,75,250,170,250,358xm492,-1556r133,-280r236,0r-220,280r-149,0","w":1366},"\u015b":{"d":"945,-312v0,220,-192,335,-428,336v-274,1,-411,-113,-454,-341r178,-28v20,142,111,221,275,221v139,0,244,-58,244,-169v0,-41,-17,-73,-53,-96v-66,-42,-410,-111,-459,-147v-90,-41,-155,-125,-155,-244v0,-211,169,-306,391,-306v237,0,395,83,421,298r-176,24v-17,-113,-97,-174,-232,-174v-133,0,-230,38,-230,137v0,59,40,90,91,111v18,7,71,22,159,46v127,34,217,62,267,84v94,41,161,118,161,248xm394,-1194r133,-280r236,0r-220,280r-149,0","w":1024},"\u0162":{"d":"531,0r0,-1293r-483,0r0,-173r1162,0r0,173r-485,0r0,1293r-194,0xm673,221v-12,-64,-70,-63,-157,-67r52,-177r134,0r-33,107v95,8,171,62,171,147v0,124,-130,190,-289,190v-55,0,-103,-4,-144,-12r11,-117v118,6,238,17,255,-71","w":1251},"\u0163":{"d":"347,-301v-2,111,11,147,102,147v20,0,46,-2,79,-7r26,159v-154,37,-322,13,-364,-96v-13,-34,-22,-105,-22,-213r0,-611r-132,0r0,-140r132,0r0,-263r179,-108r0,371r181,0r0,140r-181,0r0,621xm433,221v-12,-64,-70,-63,-157,-67r52,-177r134,0r-33,107v95,8,171,62,171,147v0,124,-130,190,-289,190v-55,0,-103,-4,-144,-12r11,-117v118,6,238,17,255,-71","w":569},"\u0164":{"d":"630,-1660r110,-170r204,0r-225,280r-192,0r-216,-280r206,0xm531,0r0,-1293r-483,0r0,-173r1162,0r0,173r-485,0r0,1293r-194,0","w":1251},"\u0165":{"d":"581,-1281r0,-185r184,0v-3,125,12,270,-36,348v-25,41,-62,74,-114,97r-45,-68v72,-34,99,-86,102,-192r-91,0xm346,-301v-2,111,11,147,102,147v20,0,46,-2,79,-7r26,159v-154,37,-322,13,-364,-96v-13,-34,-22,-105,-22,-213r0,-611r-132,0r0,-140r132,0r0,-263r179,-108r0,371r181,0r0,140r-181,0r0,621","w":768},"\u016e":{"d":"737,-1469v-99,0,-181,-85,-181,-187v0,-94,86,-179,180,-179v97,0,180,85,180,183v0,98,-83,183,-179,183xm738,-1762v-56,0,-106,50,-106,107v0,59,49,111,106,111v56,0,106,-52,106,-109v0,-58,-48,-109,-106,-109xm724,-150v317,0,396,-126,396,-470r0,-846r194,0r0,847v-3,294,-51,449,-230,563v-87,54,-202,81,-343,81v-417,0,-580,-207,-580,-644r0,-847r194,0r0,846v2,232,24,341,157,421v57,34,129,49,212,49","w":1479},"\u016f":{"d":"563,-1151v-99,0,-181,-85,-181,-187v0,-94,86,-179,180,-179v97,0,180,85,180,183v0,98,-83,183,-179,183xm564,-1444v-56,0,-106,50,-106,107v0,59,49,111,106,111v56,0,106,-52,106,-109v0,-58,-48,-109,-106,-109xm831,0r0,-156v-109,167,-313,230,-513,144v-150,-64,-187,-169,-187,-392r0,-658r180,0r0,589v1,177,-1,233,83,301v74,60,204,52,288,0v102,-63,130,-148,130,-321r0,-569r180,0r0,1062r-161,0"},"\u0170":{"d":"465,-1556r121,-280r234,0r-211,280r-144,0xm812,-1556r127,-280r231,0r-207,280r-151,0xm724,-150v317,0,396,-126,396,-470r0,-846r194,0r0,847v-3,294,-51,449,-230,563v-87,54,-202,81,-343,81v-417,0,-580,-207,-580,-644r0,-847r194,0r0,846v2,232,24,341,157,421v57,34,129,49,212,49","w":1479},"\u0171":{"d":"238,-1194r121,-280r234,0r-211,280r-144,0xm585,-1194r127,-280r231,0r-207,280r-151,0xm831,0r0,-156v-109,167,-313,230,-513,144v-150,-64,-187,-169,-187,-392r0,-658r180,0r0,589v1,177,-1,233,83,301v74,60,204,52,288,0v102,-63,130,-148,130,-321r0,-569r180,0r0,1062r-161,0"},"\u0179":{"d":"41,0r0,-180r751,-939v53,-67,104,-125,152,-174r-818,0r0,-173r1050,0r0,173r-823,1017r-89,103r936,0r0,173r-1159,0xm473,-1556r133,-280r236,0r-220,280r-149,0","w":1251},"\u017a":{"d":"40,0r0,-146r676,-776v-77,4,-144,6,-203,6r-433,0r0,-146r868,0r0,119r-575,674r-111,123v236,-17,472,-6,718,-9r0,155r-940,0xm391,-1194r133,-280r236,0r-220,280r-149,0","w":1024},"\u017b":{"d":"533,-1556r0,-224r223,0r0,224r-223,0xm41,0r0,-180r751,-939v53,-67,104,-125,152,-174r-818,0r0,-173r1050,0r0,173r-823,1017r-89,103r936,0r0,173r-1159,0","w":1251},"\u017c":{"d":"398,-1194r0,-224r223,0r0,224r-223,0xm40,0r0,-146r676,-776v-77,4,-144,6,-203,6r-433,0r0,-146r868,0r0,119r-575,674r-111,123v236,-17,472,-6,718,-9r0,155r-940,0","w":1024},"\u0132":{"d":"191,0r0,-1466r194,0r0,1466r-194,0xm1400,-467v8,324,-119,492,-412,492v-267,0,-402,-161,-394,-441r175,-24v8,191,54,292,218,292v172,0,219,-104,219,-308r0,-1010r194,0r0,999","w":1505},"\u0133":{"d":"136,-1259r0,-207r180,0r0,207r-180,0xm136,0r0,-1062r180,0r0,1062r-180,0xm612,-1257r0,-209r180,0r0,209r-180,0xm503,273v109,0,109,-67,109,-219r0,-1116r180,0r0,1120v0,131,-20,220,-51,273v-60,101,-221,120,-357,81r34,-153v36,9,64,14,85,14","w":909},"\u0149":{"d":"124,-1272r0,-209r193,0v-1,119,6,293,-31,358v-30,53,-73,95,-134,122r-44,-71v76,-32,106,-93,110,-200r-94,0xm837,-930v-188,0,-282,115,-282,350r0,580r-180,0r0,-1062r162,0r0,151v100,-163,316,-220,515,-141v102,41,151,112,176,224v7,33,10,92,10,175r0,653r-180,0r0,-646v7,-189,-58,-284,-221,-284","w":1237},"\u0100":{"d":"359,-1578r0,-148r624,0r0,148r-624,0xm-3,0r563,-1466r209,0r600,1466r-221,0r-171,-444r-613,0r-161,444r-206,0xm420,-602r497,0r-153,-406v-47,-123,-81,-225,-104,-304v-51,254,-160,480,-240,710","w":1366},"\u0101":{"d":"274,-1227r0,-148r624,0r0,148r-624,0xm995,-445v6,270,-11,308,57,445r-188,0v-19,-37,-31,-81,-36,-131v-115,96,-212,150,-391,155v-213,5,-363,-111,-363,-304v0,-172,117,-269,258,-305v119,-31,406,-52,481,-89v18,-197,-77,-263,-255,-263v-179,0,-237,55,-277,202r-176,-24v41,-230,210,-327,479,-327v221,0,367,58,402,235v17,88,7,287,9,406xm291,-370v-76,130,31,253,189,253v143,0,256,-71,304,-170v24,-50,31,-154,29,-246v-75,43,-348,64,-451,104v-31,12,-56,33,-71,59"},"\u0108":{"d":"776,-1720r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm775,-141v242,0,385,-152,429,-373r194,49v-71,291,-272,490,-607,490v-328,0,-510,-141,-611,-376v-52,-122,-78,-253,-78,-393v1,-452,256,-747,692,-747v310,0,508,174,579,427r-191,45v-61,-191,-167,-303,-392,-306v-338,-4,-488,250,-488,580v0,246,69,444,224,535v77,46,160,69,249,69","w":1479},"\u0109":{"d":"594,-1364r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm561,-124v161,0,247,-105,267,-265r177,23v-32,227,-196,390,-442,390v-307,0,-483,-221,-483,-551v0,-335,165,-555,484,-559v238,-3,386,130,424,336r-175,27v-28,-126,-104,-215,-242,-215v-210,0,-306,160,-306,406v0,248,88,408,296,408","w":1024},"\u010a":{"d":"661,-1594r0,-224r223,0r0,224r-223,0xm775,-141v242,0,385,-152,429,-373r194,49v-71,291,-272,490,-607,490v-328,0,-510,-141,-611,-376v-52,-122,-78,-253,-78,-393v1,-452,256,-747,692,-747v310,0,508,174,579,427r-191,45v-61,-191,-167,-303,-392,-306v-338,-4,-488,250,-488,580v0,246,69,444,224,535v77,46,160,69,249,69","w":1479},"\u010b":{"d":"469,-1194r0,-224r223,0r0,224r-223,0xm561,-124v161,0,247,-105,267,-265r177,23v-32,227,-196,390,-442,390v-307,0,-483,-221,-483,-551v0,-335,165,-555,484,-559v238,-3,386,130,424,336r-175,27v-28,-126,-104,-215,-242,-215v-210,0,-306,160,-306,406v0,248,88,408,296,408","w":1024},"\u0112":{"d":"414,-1589r0,-148r624,0r0,148r-624,0xm162,0r0,-1466r1060,0r0,173r-866,0r0,449r811,0r0,172r-811,0r0,499r900,0r0,173r-1094,0","w":1366},"\u0113":{"d":"253,-1227r0,-148r624,0r0,148r-624,0xm582,-124v156,0,233,-86,280,-218r186,23v-55,208,-211,343,-467,343v-319,1,-506,-215,-506,-546v0,-333,186,-564,496,-564v316,0,506,247,482,601r-792,0v7,209,124,361,321,361xm864,-633v-10,-189,-122,-302,-291,-305v-172,-3,-295,133,-302,305r593,0"},"\u0114":{"d":"699,-1691v110,0,159,-42,178,-135r123,0v-18,160,-121,259,-295,259v-176,0,-278,-97,-296,-259r123,0v18,86,68,135,167,135xm162,0r0,-1466r1060,0r0,173r-866,0r0,449r811,0r0,172r-811,0r0,499r900,0r0,173r-1094,0","w":1366},"\u0115":{"d":"580,-1329v110,0,159,-42,178,-135r123,0v-18,160,-121,259,-295,259v-176,0,-278,-97,-296,-259r123,0v18,86,68,135,167,135xm582,-124v156,0,233,-86,280,-218r186,23v-55,208,-211,343,-467,343v-319,1,-506,-215,-506,-546v0,-333,186,-564,496,-564v316,0,506,247,482,601r-792,0v7,209,124,361,321,361xm864,-633v-10,-189,-122,-302,-291,-305v-172,-3,-295,133,-302,305r593,0"},"\u0116":{"d":"614,-1556r0,-224r223,0r0,224r-223,0xm162,0r0,-1466r1060,0r0,173r-866,0r0,449r811,0r0,172r-811,0r0,499r900,0r0,173r-1094,0","w":1366},"\u0117":{"d":"479,-1194r0,-224r223,0r0,224r-223,0xm582,-124v156,0,233,-86,280,-218r186,23v-55,208,-211,343,-467,343v-319,1,-506,-215,-506,-546v0,-333,186,-564,496,-564v316,0,506,247,482,601r-792,0v7,209,124,361,321,361xm864,-633v-10,-189,-122,-302,-291,-305v-172,-3,-295,133,-302,305r593,0"},"\u011c":{"d":"870,-1715r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm847,-150v159,4,347,-80,428,-152r0,-273r-431,0r0,-172r621,-1r0,544v-164,130,-349,229,-607,229v-458,0,-749,-290,-749,-751v0,-455,265,-771,734,-765v335,5,536,151,600,435r-175,48v-52,-206,-181,-317,-424,-317v-366,0,-528,239,-535,587v-7,369,195,578,538,588","w":1593},"\u011d":{"d":"544,-1364r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm66,-537v4,-308,152,-549,460,-549v125,0,229,51,310,152r0,-128r166,0r0,918v-2,301,-39,414,-210,515v-152,90,-446,77,-577,-25v-76,-59,-116,-143,-113,-258r175,26v16,124,109,166,244,168v163,2,250,-67,285,-190v9,-37,14,-114,13,-231v-79,93,-177,139,-294,139v-291,0,-463,-252,-459,-537xm539,-937v-186,0,-288,166,-288,387v0,240,92,401,291,401v195,0,292,-161,292,-395v0,-226,-106,-393,-295,-393"},"\u0120":{"d":"755,-1545r0,-224r223,0r0,224r-223,0xm847,-150v159,4,347,-80,428,-152r0,-273r-431,0r0,-172r621,-1r0,544v-164,130,-349,229,-607,229v-458,0,-749,-290,-749,-751v0,-455,265,-771,734,-765v335,5,536,151,600,435r-175,48v-52,-206,-181,-317,-424,-317v-366,0,-528,239,-535,587v-7,369,195,578,538,588","w":1593},"\u0121":{"d":"457,-1194r0,-224r223,0r0,224r-223,0xm66,-537v4,-308,152,-549,460,-549v125,0,229,51,310,152r0,-128r166,0r0,918v-2,301,-39,414,-210,515v-152,90,-446,77,-577,-25v-76,-59,-116,-143,-113,-258r175,26v16,124,109,166,244,168v163,2,250,-67,285,-190v9,-37,14,-114,13,-231v-79,93,-177,139,-294,139v-291,0,-463,-252,-459,-537xm539,-937v-186,0,-288,166,-288,387v0,240,92,401,291,401v195,0,292,-161,292,-395v0,-226,-106,-393,-295,-393"},"\u0122":{"d":"1060,228v0,130,-126,193,-293,193v-42,0,-89,-4,-140,-12r11,-117v29,3,58,4,87,4v111,0,167,-25,167,-76v0,-53,-78,-74,-159,-65r0,-105v173,-23,327,37,327,178xm847,-150v159,4,347,-80,428,-152r0,-273r-431,0r0,-172r621,-1r0,544v-164,130,-349,229,-607,229v-458,0,-749,-290,-749,-751v0,-455,265,-771,734,-765v335,5,536,151,600,435r-175,48v-52,-206,-181,-317,-424,-317v-366,0,-528,239,-535,587v-7,369,195,578,538,588","w":1593},"\u0123":{"d":"632,-1345r0,175r-209,0v-1,-112,-2,-230,37,-299v26,-46,68,-82,131,-107r54,83v-62,26,-98,75,-109,148r96,0xm66,-535v0,-305,162,-551,462,-551v124,0,227,51,308,152r0,-128r166,0r0,918v-3,289,-36,410,-206,512v-157,94,-473,80,-591,-30v-69,-64,-106,-146,-103,-250r175,26v11,112,93,168,244,168v148,0,249,-63,279,-168v13,-48,19,-132,19,-253v-78,93,-175,139,-291,139v-292,0,-462,-250,-462,-535xm539,-937v-191,2,-288,174,-288,387v0,142,28,244,85,307v57,63,125,94,206,94v199,0,292,-165,292,-399v0,-208,-97,-391,-295,-389"},"\u0124":{"d":"774,-1726r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm164,0r0,-1466r194,0r0,602r762,0r0,-602r194,0r0,1466r-194,0r0,-691r-762,0r0,691r-194,0","w":1479},"\u0125":{"d":"644,-1726r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm596,-931v-191,0,-281,127,-281,350r0,581r-180,0r0,-1466r180,0r0,526v84,-97,190,-146,318,-146v253,0,367,130,367,413r0,673r-180,0r0,-673v1,-168,-69,-258,-224,-258"},"\u0126":{"d":"164,-1099r-133,0r0,-148r133,0r0,-219r194,0r0,219r762,0r0,-219r194,0r0,219r133,0r0,148r-133,0r0,1099r-194,0r0,-691r-762,0r0,691r-194,0r0,-1099xm358,-1099r0,235r762,0r0,-235r-762,0","w":1479},"\u0127":{"d":"595,-931v-190,0,-280,127,-280,350r0,581r-180,0r0,-1199r-129,0r0,-134r129,0r0,-133r180,0r0,133r367,0r0,134r-367,0r0,259v128,-165,389,-193,571,-70v76,51,114,163,114,337r0,673r-180,0r0,-673v0,-172,-75,-258,-225,-258"},"\u0128":{"d":"146,-1676v-50,1,-78,39,-76,95r-133,0v-4,-130,80,-228,203,-228v41,0,98,18,169,54v39,20,71,30,94,30v54,0,64,-29,73,-87r130,0v-1,137,-71,225,-196,228v-42,0,-97,-19,-166,-56v-45,-24,-77,-36,-98,-36xm191,0r0,-1466r194,0r0,1466r-194,0","w":569},"\u0129":{"d":"164,-1314v-50,1,-78,39,-76,95r-133,0v-4,-130,80,-228,203,-228v41,0,98,18,169,54v39,20,71,30,94,30v54,0,64,-29,73,-87r130,0v-1,137,-71,225,-196,228v-42,0,-97,-19,-166,-56v-45,-24,-77,-36,-98,-36xm198,0r0,-1062r180,0r0,1062r-180,0","w":569},"\u012a":{"d":"-28,-1563r0,-148r624,0r0,148r-624,0xm191,0r0,-1466r194,0r0,1466r-194,0","w":569},"\u012b":{"d":"-23,-1227r0,-148r624,0r0,148r-624,0xm198,0r0,-1062r180,0r0,1062r-180,0","w":569},"\u012c":{"d":"289,-1665v110,0,159,-42,178,-135r123,0v-18,160,-121,259,-295,259v-176,0,-278,-97,-296,-259r123,0v18,86,68,135,167,135xm191,0r0,-1466r194,0r0,1466r-194,0","w":569},"\u012d":{"d":"284,-1329v110,0,159,-42,178,-135r123,0v-18,160,-121,259,-295,259v-176,0,-278,-97,-296,-259r123,0v18,86,68,135,167,135xm198,0r0,-1062r180,0r0,1062r-180,0","w":569},"\u012e":{"d":"75,246v3,-108,67,-189,138,-246r132,0v-64,38,-120,104,-120,191v0,59,33,102,98,100v34,0,68,-11,91,-24r0,128v-146,77,-344,24,-339,-149xm191,0r0,-1466r194,0r0,1466r-194,0","w":569},"\u012f":{"d":"25,246v3,-108,67,-189,138,-246r132,0v-64,38,-120,104,-120,191v0,59,33,102,98,100v34,0,68,-11,91,-24r0,128v-146,77,-344,24,-339,-149xm136,-1259r0,-207r180,0r0,207r-180,0xm136,0r0,-1062r180,0r0,1062r-180,0","w":455},"\u0134":{"d":"794,-1726r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm865,-467v8,324,-119,492,-412,492v-267,0,-402,-161,-394,-441r175,-24v8,191,54,292,218,292v172,0,219,-104,219,-308r0,-1010r194,0r0,999","w":1024},"\u0135":{"d":"230,-1364r-113,170r-205,0r216,-280r192,0r224,280r-203,0xm314,58v-4,241,-44,373,-267,373v-49,0,-96,-6,-141,-19r34,-153v35,9,63,14,85,14v114,0,109,-73,109,-219r0,-1116r180,0r0,1120","w":455},"\u0136":{"d":"1000,228v0,130,-126,193,-293,193v-42,0,-89,-4,-140,-12r11,-117v29,3,58,4,87,4v111,0,167,-25,167,-76v0,-53,-78,-74,-159,-65r0,-105v173,-23,327,37,327,178xm150,0r0,-1466r194,0r0,727r728,-727r263,0r-615,594r642,872r-256,0r-522,-742r-240,234r0,508r-194,0","w":1366},"\u0137":{"d":"829,228v0,130,-126,193,-293,193v-42,0,-89,-4,-140,-12r11,-117v29,3,58,4,87,4v111,0,167,-25,167,-76v0,-53,-78,-74,-159,-65r0,-105v173,-23,327,37,327,178xm136,0r0,-1466r180,0r0,836r426,-432r233,0r-406,394r447,668r-222,0r-351,-543r-127,122r0,421r-180,0","w":1024},"\u0138":{"d":"134,0r0,-1062r180,0r0,432r426,-432r233,0r-406,394r447,668r-222,0r-351,-543r-127,122r0,421r-180,0","w":1024},"\u013b":{"d":"880,228v0,130,-126,193,-293,193v-42,0,-89,-4,-140,-12r11,-117v29,3,58,4,87,4v111,0,167,-25,167,-76v0,-53,-78,-74,-159,-65r0,-105v173,-23,327,37,327,178xm150,0r0,-1466r194,0r0,1293r722,0r0,173r-916,0"},"\u013c":{"d":"430,228v0,130,-126,193,-293,193v-42,0,-89,-4,-140,-12r11,-117v29,3,58,4,87,4v111,0,167,-25,167,-76v0,-53,-78,-74,-159,-65r0,-105v173,-23,327,37,327,178xm131,0r0,-1466r180,0r0,1466r-180,0","w":455},"\u0145":{"d":"1026,228v0,130,-126,193,-293,193v-42,0,-89,-4,-140,-12r11,-117v29,3,58,4,87,4v111,0,167,-25,167,-76v0,-53,-78,-74,-159,-65r0,-105v173,-23,327,37,327,178xm156,0r0,-1466r199,0r770,1151r0,-1151r186,0r0,1466r-199,0r-770,-1152r0,1152r-186,0","w":1479},"\u0146":{"d":"790,228v0,130,-126,193,-293,193v-42,0,-89,-4,-140,-12r11,-117v29,3,58,4,87,4v111,0,167,-25,167,-76v0,-53,-78,-74,-159,-65r0,-105v173,-23,327,37,327,178xm597,-930v-188,0,-282,115,-282,350r0,580r-180,0r0,-1062r162,0r0,151v100,-163,316,-220,515,-141v102,41,151,112,176,224v7,33,10,92,10,175r0,653r-180,0r0,-646v7,-189,-58,-284,-221,-284"},"\u014a":{"d":"361,-1284v128,-149,240,-207,466,-207v260,0,393,126,478,315v46,101,68,242,68,422v0,263,-45,456,-130,586v-131,201,-380,250,-598,121r87,-153v123,67,212,80,303,-12v106,-106,141,-298,141,-537v0,-386,-135,-579,-405,-579v-175,0,-324,96,-372,222v-25,64,-38,166,-38,305r0,801r-196,0r0,-1466r196,0r0,182","w":1481},"\u014b":{"d":"599,-930v-189,0,-280,119,-280,350r0,580r-180,0r0,-1062r162,0r0,151v78,-117,191,-175,338,-175v163,0,295,80,335,194v19,55,28,135,28,239r0,711v-4,241,-44,373,-267,373v-49,0,-96,-6,-141,-19r34,-153v35,9,64,14,85,14v114,0,109,-77,109,-219r0,-700v-2,-184,-50,-284,-223,-284"},"\u014c":{"d":"504,-1599r0,-148r624,0r0,148r-624,0xm800,25v-432,0,-691,-312,-701,-739v-10,-457,272,-778,702,-778v440,0,700,311,700,761v0,448,-266,756,-701,756xm1301,-732v-5,-346,-170,-593,-499,-593v-137,0,-255,47,-354,141v-99,94,-149,252,-149,473v0,327,198,570,500,570v314,0,507,-246,502,-591","w":1593},"\u014d":{"d":"264,-1227r0,-148r624,0r0,148r-624,0xm566,24v-313,-1,-498,-220,-498,-555v0,-337,186,-552,498,-555v302,-3,497,222,497,540v0,266,-77,412,-241,505v-78,44,-163,65,-256,65xm566,-937v-205,0,-313,167,-313,406v0,240,107,407,313,407v206,0,312,-170,312,-413v0,-232,-111,-400,-312,-400"},"\u014e":{"d":"811,-1691v110,0,159,-42,178,-135r123,0v-18,160,-121,259,-295,259v-176,0,-278,-97,-296,-259r123,0v18,86,68,135,167,135xm800,25v-432,0,-691,-312,-701,-739v-10,-457,272,-778,702,-778v440,0,700,311,700,761v0,448,-266,756,-701,756xm1301,-732v-5,-346,-170,-593,-499,-593v-137,0,-255,47,-354,141v-99,94,-149,252,-149,473v0,327,198,570,500,570v314,0,507,-246,502,-591","w":1593},"\u014f":{"d":"571,-1329v110,0,159,-42,178,-135r123,0v-18,160,-121,259,-295,259v-176,0,-278,-97,-296,-259r123,0v18,86,68,135,167,135xm566,24v-313,-1,-498,-220,-498,-555v0,-337,186,-552,498,-555v302,-3,497,222,497,540v0,266,-77,412,-241,505v-78,44,-163,65,-256,65xm566,-937v-205,0,-313,167,-313,406v0,240,107,407,313,407v206,0,312,-170,312,-413v0,-232,-111,-400,-312,-400"},"\u0156":{"d":"1026,228v0,130,-126,193,-293,193v-42,0,-89,-4,-140,-12r11,-117v29,3,58,4,87,4v111,0,167,-25,167,-76v0,-53,-78,-74,-159,-65r0,-105v173,-23,327,37,327,178xm1333,-1066v0,241,-167,370,-413,399v140,66,197,141,278,268r255,399r-244,0r-194,-305v-89,-134,-139,-229,-239,-300v-59,-41,-91,-47,-196,-46r-225,0r0,651r-194,0r0,-1466r650,0v249,2,369,33,461,179v42,66,61,140,61,221xm1133,-1066v0,-161,-124,-238,-314,-238r-464,0r0,485r417,0v218,5,361,-60,361,-247","w":1479},"\u0157":{"d":"577,228v0,130,-126,193,-293,193v-42,0,-89,-4,-140,-12r11,-117v29,3,58,4,87,4v111,0,167,-25,167,-76v0,-53,-78,-74,-159,-65r0,-105v173,-23,327,37,327,178xm516,-900v-165,0,-203,175,-203,344r0,556r-180,0r0,-1062r162,0r0,161v69,-116,99,-185,230,-185v61,0,122,19,185,58r-62,167v-44,-26,-88,-39,-132,-39","w":682},"\u015c":{"d":"676,-1720r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm1259,-414v0,283,-242,438,-542,439v-263,1,-441,-76,-545,-233v-51,-78,-77,-165,-80,-263r183,-16v20,231,188,338,433,338v193,0,364,-71,364,-249v0,-117,-71,-166,-172,-207v-76,-31,-474,-121,-544,-163v-117,-70,-208,-159,-208,-319v0,-269,232,-404,516,-404v315,0,533,145,551,438r-186,14v-22,-191,-138,-282,-357,-281v-117,0,-201,23,-256,64v-94,71,-104,202,-24,286v61,64,535,156,617,198v144,75,250,170,250,358","w":1366},"\u015d":{"d":"534,-1364r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm945,-312v0,220,-192,335,-428,336v-274,1,-411,-113,-454,-341r178,-28v20,142,111,221,275,221v139,0,244,-58,244,-169v0,-41,-17,-73,-53,-96v-66,-42,-410,-111,-459,-147v-90,-41,-155,-125,-155,-244v0,-211,169,-306,391,-306v237,0,395,83,421,298r-176,24v-17,-113,-97,-174,-232,-174v-133,0,-230,38,-230,137v0,59,40,90,91,111v18,7,71,22,159,46v127,34,217,62,267,84v94,41,161,118,161,248","w":1024},"\u0166":{"d":"531,-629r-330,0r0,-132r330,0r0,-532r-483,0r0,-173r1162,0r0,173r-485,0r0,532r328,0r0,132r-328,0r0,629r-194,0r0,-629","w":1251},"\u0167":{"d":"325,-301v4,104,4,144,101,147v21,0,48,-2,79,-7r26,159v-158,39,-341,11,-371,-114v-19,-80,-14,-278,-15,-398r-133,0r0,-132r133,0r0,-276r-132,0r0,-140r132,0r0,-263r180,-108r0,371r180,0r0,140r-180,0r0,276r172,0r0,132r-172,0r0,213","w":569},"\u0168":{"d":"636,-1670v-50,1,-78,39,-76,95r-133,0v-4,-130,80,-228,203,-228v41,0,98,18,169,54v39,20,71,30,94,30v54,0,64,-29,73,-87r130,0v-1,137,-71,225,-196,228v-42,0,-97,-19,-166,-56v-45,-24,-77,-36,-98,-36xm724,-150v317,0,396,-126,396,-470r0,-846r194,0r0,847v-3,294,-51,449,-230,563v-87,54,-202,81,-343,81v-417,0,-580,-207,-580,-644r0,-847r194,0r0,846v2,232,24,341,157,421v57,34,129,49,212,49","w":1479},"\u0169":{"d":"452,-1314v-50,1,-78,39,-76,95r-133,0v-4,-130,80,-228,203,-228v41,0,98,18,169,54v39,20,71,30,94,30v54,0,64,-29,73,-87r130,0v-1,137,-71,225,-196,228v-42,0,-97,-19,-166,-56v-45,-24,-77,-36,-98,-36xm831,0r0,-156v-109,167,-313,230,-513,144v-150,-64,-187,-169,-187,-392r0,-658r180,0r0,589v1,177,-1,233,83,301v74,60,204,52,288,0v102,-63,130,-148,130,-321r0,-569r180,0r0,1062r-161,0"},"\u016a":{"d":"449,-1583r0,-148r624,0r0,148r-624,0xm724,-150v317,0,396,-126,396,-470r0,-846r194,0r0,847v-3,294,-51,449,-230,563v-87,54,-202,81,-343,81v-417,0,-580,-207,-580,-644r0,-847r194,0r0,846v2,232,24,341,157,421v57,34,129,49,212,49","w":1479},"\u016b":{"d":"265,-1227r0,-148r624,0r0,148r-624,0xm831,0r0,-156v-109,167,-313,230,-513,144v-150,-64,-187,-169,-187,-392r0,-658r180,0r0,589v1,177,-1,233,83,301v74,60,204,52,288,0v102,-63,130,-148,130,-321r0,-569r180,0r0,1062r-161,0"},"\u016c":{"d":"736,-1685v110,0,159,-42,178,-135r123,0v-18,160,-121,259,-295,259v-176,0,-278,-97,-296,-259r123,0v18,86,68,135,167,135xm724,-150v317,0,396,-126,396,-470r0,-846r194,0r0,847v-3,294,-51,449,-230,563v-87,54,-202,81,-343,81v-417,0,-580,-207,-580,-644r0,-847r194,0r0,846v2,232,24,341,157,421v57,34,129,49,212,49","w":1479},"\u016d":{"d":"572,-1329v110,0,159,-42,178,-135r123,0v-18,160,-121,259,-295,259v-176,0,-278,-97,-296,-259r123,0v18,86,68,135,167,135xm831,0r0,-156v-109,167,-313,230,-513,144v-150,-64,-187,-169,-187,-392r0,-658r180,0r0,589v1,177,-1,233,83,301v74,60,204,52,288,0v102,-63,130,-148,130,-321r0,-569r180,0r0,1062r-161,0"},"\u0172":{"d":"651,246v3,-108,67,-189,138,-246r132,0v-64,38,-120,104,-120,191v0,59,33,102,98,100v34,0,68,-11,91,-24r0,128v-146,77,-344,24,-339,-149xm724,-150v317,0,396,-126,396,-470r0,-846r194,0r0,847v-3,294,-51,449,-230,563v-87,54,-202,81,-343,81v-417,0,-580,-207,-580,-644r0,-847r194,0r0,846v2,232,24,341,157,421v57,34,129,49,212,49","w":1479},"\u0173":{"d":"706,246v3,-108,67,-189,138,-246r132,0v-64,38,-120,104,-120,191v0,59,33,102,98,100v34,0,68,-11,91,-24r0,128v-146,77,-344,24,-339,-149xm831,0r0,-156v-109,167,-313,230,-513,144v-150,-64,-187,-169,-187,-392r0,-658r180,0r0,589v1,177,-1,233,83,301v74,60,204,52,288,0v102,-63,130,-148,130,-321r0,-569r180,0r0,1062r-161,0"},"\u0174":{"d":"964,-1726r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm414,0r-389,-1466r199,0r223,961v24,101,45,201,62,300v37,-157,59,-247,66,-271r279,-990r234,0r210,742v53,184,91,357,114,519v19,-93,44,-199,73,-319r230,-942r195,0r-402,1466r-187,0r-355,-1289v-15,67,-30,125,-43,172r-311,1117r-198,0","w":1933},"\u0175":{"d":"754,-1364r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm331,0r-325,-1062r186,0r232,841v3,-11,19,-85,55,-219r169,-622r185,0r212,819r243,-819r175,0r-332,1062r-187,0r-169,-636r-41,-181r-215,817r-188,0","w":1479},"\u0176":{"d":"709,-1726r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm571,0r0,-621r-565,-845r236,0r289,442v53,83,103,165,149,248v44,-77,97,-163,160,-259r284,-431r226,0r-585,845r0,621r-194,0","w":1366},"\u0177":{"d":"559,-1364r-113,170r-206,0r216,-280r192,0r225,280r-204,0xm127,409r-20,-169v109,34,217,11,258,-60v11,-18,49,-117,71,-178r-403,-1064r194,0r221,615v29,78,54,160,77,246v82,-303,202,-574,301,-861r180,0r-404,1080v-43,117,-79,196,-101,241v-64,132,-198,211,-374,150","w":1024},"\u017f":{"d":"466,-1326v-121,1,-149,48,-149,166r0,1160r-180,0r0,-1175v-6,-220,86,-316,294,-316v53,0,108,6,167,18r-26,157v-36,-7,-71,-10,-106,-10","w":455},"\u0401":{"d":"162,0r0,-1466r1060,0r0,173r-866,0r0,449r811,0r0,172r-811,0r0,499r900,0r0,173r-1094,0xm411,-1556r0,-205r188,0r0,205r-188,0xm784,-1556r0,-205r188,0r0,205r-188,0","w":1367},"\u0410":{"d":"-3,0r563,-1466r209,0r600,1466r-221,0r-171,-444r-613,0r-161,444r-206,0xm420,-602r497,0r-153,-406v-47,-123,-81,-225,-104,-304v-51,254,-160,480,-240,710","w":1366,"k":{"\u044d":-45,"\u0444":-23,"\u0443":23,"\u0442":45,"\u0430":-23,"\u042d":45,"\u0427":160,"\u0424":68,"\u0423":90,"\u0422":160,"\u0421":45,"\u041f":23,"\u041e":45,"\u041b":-45,"\u0417":23,"\u0414":-68}},"\u0411":{"d":"167,-1466r951,0r0,173r-757,0r0,452v218,3,504,-13,659,37v144,47,254,192,252,378v-2,168,-81,295,-197,365v-66,40,-177,61,-334,61r-574,0r0,-1466xm749,-165v196,0,312,-72,314,-256v1,-124,-68,-207,-170,-233v-101,-26,-374,-19,-532,-20r0,509r388,0","w":1344,"k":{"\u0443":45,"\u043b":23,"\u042f":23,"\u042d":23,"\u042a":68,"\u0427":92,"\u0425":45,"\u0424":23,"\u0423":47,"\u0422":92,"\u0421":23,"\u041e":23,"\u0417":23,"\u0410":45}},"\u0412":{"d":"981,-780v160,45,276,166,276,355v0,305,-215,425,-548,425r-559,0r0,-1466r550,0v217,0,346,53,428,182v39,61,58,126,58,193v0,150,-88,256,-205,311xm344,-850v271,-18,651,83,651,-218v0,-101,-53,-180,-135,-204v-106,-31,-360,-18,-516,-21r0,443xm344,-173r365,0v126,1,174,-10,244,-47v97,-50,140,-242,61,-348v-68,-91,-160,-109,-331,-109r-339,0r0,504","w":1366,"k":{"\u044f":23,"\u0447":68,"\u0445":23,"\u0443":23,"\u0442":68,"\u043c":23,"\u0434":23,"\u042f":68,"\u042a":115,"\u0427":92,"\u0425":90,"\u0424":68,"\u0423":68,"\u0422":137,"\u0421":68,"\u041e":68,"\u041b":23,"\u0417":68,"\u0416":45,"\u0414":45,"\u0410":68}},"\u0413":{"d":"161,-1466r948,0r0,173r-754,0r0,1293r-194,0r0,-1466","w":1109,"k":{"\u044f":137,"\u044e":115,"\u044c":115,"\u044b":115,"\u0443":137,"\u0440":115,"\u043e":137,"\u043d":115,"\u043c":115,"\u043b":115,"\u0438":115,"\u0435":137,"\u0434":137,"\u0432":115,"\u0430":115,"\u042f":68,"\u0421":92,"\u041e":115,"\u041c":47,"\u041b":115,"\u0417":45,"\u0414":137,"\u0410":137,"\u00bb":137,"\u00ab":137,".":250,",":250}},"\u0414":{"d":"291,-1466r892,0r0,1293r132,0r0,515r-173,0r0,-342r-969,0r0,342r-173,0r0,-515r114,0v118,-178,177,-538,177,-1079r0,-214xm989,-1293r-511,0v2,335,-39,881,-165,1120r676,0r0,-1120","w":1387,"k":{"\u0443":-45,"\u043e":-23,"\u0437":-68,"\u0427":70,"\u0424":45,"\u0423":-23}},"\u0415":{"d":"162,0r0,-1466r1060,0r0,173r-866,0r0,449r811,0r0,172r-811,0r0,499r900,0r0,173r-1094,0","w":1366,"k":{"\u0441":23,"\u0417":45}},"\u0416":{"d":"1869,-1297v-86,-5,-171,2,-215,43v-58,54,-163,354,-216,408v-35,35,-77,71,-136,96v96,27,188,115,279,262r302,488r-240,0v-123,-189,-272,-477,-410,-621v-43,-45,-107,-65,-188,-65r0,686r-199,0r0,-686v-64,0,-120,18,-170,50v-49,32,-119,133,-183,238r-245,398r-241,0r302,-488v92,-149,185,-236,280,-262v-149,-68,-168,-121,-248,-312v-43,-104,-79,-169,-108,-197v-42,-40,-129,-43,-212,-38r0,-168v7,-1,45,-2,112,-2v129,-2,223,64,277,139v53,74,182,416,240,452v35,33,100,51,196,52r0,-642r199,0r0,642v95,0,158,-21,197,-52v56,-43,183,-374,236,-450v50,-73,153,-142,273,-141v63,0,103,1,118,2r0,168","w":1891,"k":{"\u0443":23,"\u043e":23,"\u0435":25,"\u0430":-23,"\u042a":-45,"\u0423":-45,"\u0422":-23,"\u0421":23,"\u041e":45,"\u0417":23}},"\u0417":{"d":"1154,-419v-2,269,-242,444,-535,444v-277,0,-458,-146,-541,-439r185,-48v30,143,164,321,355,321v184,0,332,-106,332,-270v0,-176,-156,-267,-350,-264r-93,0r0,-169v175,-3,250,-3,331,-94v36,-42,54,-91,54,-145v-1,-137,-123,-238,-276,-238v-151,0,-261,87,-298,203v-20,61,-30,106,-30,136r-186,-42v46,-311,218,-467,516,-467v259,0,467,168,467,399v0,137,-65,243,-194,318v142,38,264,176,263,355","w":1237,"k":{"\u042f":23,"\u0427":45,"\u0424":23,"\u0423":23,"\u0422":45,"\u0421":23,"\u041e":23,"\u041b":23}},"\u0418":{"d":"161,-1466r176,0r0,1161r780,-1161r195,0r0,1466r-176,0r0,-1158r-781,1158r-194,0r0,-1466","w":1472},"\u0419":{"d":"712,-1680v110,0,159,-42,178,-135r123,0v-18,160,-121,259,-295,259v-176,0,-278,-97,-296,-259r123,0v18,86,68,135,167,135xm161,-1466r176,0r0,1161r780,-1161r195,0r0,1466r-176,0r0,-1158r-781,1158r-194,0r0,-1466","w":1472},"\u041a":{"d":"1172,-1297v-86,-5,-175,-2,-216,43v-29,32,-64,95,-105,192v-83,200,-100,243,-247,312v95,26,188,113,280,262r302,488r-241,0r-245,-398v-67,-110,-124,-185,-169,-226v-45,-41,-104,-62,-176,-62r0,686r-194,0r0,-1466r194,0r0,642v89,0,151,-18,187,-52v59,-37,185,-373,238,-450v51,-73,153,-142,274,-141v75,0,114,1,118,2r0,168","w":1193,"k":{"\u0424":70,"\u0423":-23,"\u0421":23,"\u041e":23,"\u0417":23}},"\u041b":{"d":"265,-1466r918,0r0,1466r-194,0r0,-1293r-530,0r0,755v0,153,-7,266,-21,337v-25,133,-116,225,-266,226v-43,0,-94,-8,-154,-24r33,-172v72,33,142,27,181,-29v22,-33,33,-111,33,-234r0,-1032","w":1344,"k":{"\u0443":-23,"\u0431":-23,"\u0424":23}},"\u041c":{"d":"152,0r0,-1466r292,0r347,1038r70,217r78,-235r351,-1020r261,0r0,1466r-187,0r0,-1227r-426,1227r-175,0r-424,-1248r0,1248r-187,0","w":1706,"k":{"\u044d":-23,"\u0447":23,"\u0443":-23,"\u0441":-23,"\u043e":-23,"\u0435":-23,"\u0430":-23,"\u0427":23,"\u0424":23}},"\u041d":{"d":"164,0r0,-1466r194,0r0,602r762,0r0,-602r194,0r0,1466r-194,0r0,-691r-762,0r0,691r-194,0","w":1479},"\u041e":{"d":"800,25v-432,0,-691,-312,-701,-739v-10,-457,272,-778,702,-778v440,0,700,311,700,761v0,448,-266,756,-701,756xm1301,-732v-5,-346,-170,-593,-499,-593v-137,0,-255,47,-354,141v-99,94,-149,252,-149,473v0,327,198,570,500,570v314,0,507,-246,502,-591","w":1593,"k":{"\u0445":23,"\u043b":23,"\u0434":45,"\u042f":45,"\u0427":45,"\u0425":92,"\u0423":45,"\u041b":23,"\u0416":45,"\u0414":45,"\u0410":45}},"\u041f":{"d":"160,-1466r1153,0r0,1466r-195,0r0,-1293r-764,0r0,1293r-194,0r0,-1466","w":1472},"\u0420":{"d":"158,0r0,-1466r553,0v282,-4,433,45,521,224v85,172,46,390,-74,516v-81,85,-223,130,-430,130r-376,0r0,596r-194,0xm731,-769v224,1,341,-72,346,-267v3,-123,-70,-223,-169,-244v-130,-28,-390,-9,-556,-13r0,524r379,0","w":1366,"k":{"\u044f":68,"\u044d":45,"\u043e":90,"\u0435":90,"\u0434":160,"\u0430":68,"\u042f":45,"\u0425":92,"\u0424":23,"\u0423":45,"\u0422":92,"\u0421":23,"\u041e":45,"\u041c":23,"\u041b":115,"\u0417":45,"\u0416":23,"\u0414":137,"\u0410":137,"\u00bb":115,";":45,":":45,".":387,",":387}},"\u0421":{"d":"775,-141v242,0,385,-152,429,-373r194,49v-71,291,-272,490,-607,490v-328,0,-510,-141,-611,-376v-52,-122,-78,-253,-78,-393v1,-452,256,-747,692,-747v310,0,508,174,579,427r-191,45v-61,-191,-167,-303,-392,-306v-338,-4,-488,250,-488,580v0,246,69,444,224,535v77,46,160,69,249,69","w":1479,"k":{"\u0447":23,"\u0436":-45,"\u0430":-23,"\u042d":23,"\u042a":70,"\u0427":68,"\u0425":115,"\u0423":68,"\u0422":68,"\u041e":45,"\u041c":23,"\u041b":68,"\u0417":23,"\u0414":45,"\u0410":45}},"\u0422":{"d":"531,0r0,-1293r-483,0r0,-173r1162,0r0,173r-485,0r0,1293r-194,0","w":1251,"k":{"\u044f":115,"\u044e":90,"\u044c":90,"\u044b":90,"\u0449":90,"\u0445":90,"\u0443":115,"\u0441":115,"\u0440":115,"\u043f":90,"\u043e":160,"\u043c":90,"\u043b":92,"\u043a":90,"\u0438":90,"\u0435":115,"\u0432":90,"\u0430":92,"\u042f":45,"\u0424":68,"\u041e":92,"\u041b":45,"\u0417":23,"\u0416":-23,"\u0414":68,"\u0410":68,"\u00bb":90,"\u00ab":90,".":227,",":227}},"\u0423":{"d":"10,-1466r196,0r478,898r418,-898r193,0r-550,1140v-69,143,-124,237,-169,280v-88,84,-231,81,-373,31r0,-166v90,52,210,68,287,-1v34,-30,73,-99,114,-207","w":1301,"k":{"\u044f":137,"\u044e":92,"\u0449":92,"\u0448":92,"\u0446":92,"\u0445":92,"\u0441":137,"\u0440":92,"\u043f":92,"\u043e":137,"\u043d":92,"\u043c":92,"\u043b":137,"\u043a":92,"\u0439":68,"\u0438":92,"\u0437":115,"\u0436":68,"\u0435":137,"\u0434":160,"\u0433":92,"\u0432":115,"\u0431":45,"\u042f":45,"\u042d":45,"\u0424":68,"\u041e":68,"\u041b":68,"\u0417":45,"\u0414":92,"\u0410":137,"\u00bb":92,"\u00ab":90,";":45,":":45,".":272,",":272}},"\u0424":{"d":"82,-740v0,-335,278,-541,606,-550r0,-188r182,0r0,188v340,10,604,222,604,550v0,327,-257,542,-604,551r0,189r-182,0r0,-189v-327,-8,-606,-218,-606,-551xm870,-356v238,-9,405,-142,404,-384v0,-241,-164,-373,-404,-384r0,768xm688,-1123v-232,9,-405,143,-405,383v0,239,171,375,405,383r0,-766","w":1557,"k":{"\u043b":68,"\u042f":70,"\u0427":45,"\u0423":92,"\u0422":115,"\u041b":68,"\u0414":68,"\u0410":45}},"\u0425":{"d":"9,0r567,-764r-500,-702r231,0r266,376v55,78,95,138,118,180v122,-189,278,-374,411,-556r211,0r-515,691r555,775r-240,0r-369,-523v-21,-30,-42,-63,-64,-98v-143,229,-288,406,-438,621r-233,0","w":1366,"k":{"\u0443":45,"\u043e":23,"\u042d":70,"\u0424":68,"\u0421":68,"\u041e":68,"\u0417":45}},"\u0426":{"d":"159,-1466r194,0r0,1293r764,0r0,-1293r195,0r0,1293r134,0r0,580r-172,0r0,-407r-1115,0r0,-1466","w":1515,"k":{"\u0430":-45,"\u041e":45}},"\u0427":{"d":"1204,0r-194,0r0,-591v-174,65,-326,97,-457,97v-199,0,-376,-109,-427,-253v-62,-174,-32,-481,-39,-719r194,0v8,245,-38,625,87,728v59,49,129,76,211,76v137,0,280,-30,431,-91r0,-713r194,0r0,1466","w":1365},"\u0428":{"d":"161,-1466r194,0r0,1293r487,0r0,-1293r194,0r0,1293r487,0r0,-1293r194,0r0,1466r-1556,0r0,-1466","w":1877},"\u0429":{"d":"161,-1466r194,0r0,1293r487,0r0,-1293r194,0r0,1293r487,0r0,-1293r194,0r0,1293r133,0r0,580r-173,0r0,-407r-1516,0r0,-1466","w":1920,"k":{"\u0443":-45,"\u0430":-23}},"\u042a":{"d":"0,-1466r640,0r0,626r351,0v230,0,380,44,453,128v148,169,140,443,-18,592v-84,79,-224,120,-423,120r-557,0r0,-1293r-446,0r0,-173xm995,-165v222,-1,343,-56,347,-257v2,-123,-75,-212,-177,-234v-104,-23,-368,-16,-525,-17r0,508r355,0","w":1621,"k":{"\u042f":68}},"\u042b":{"d":"168,-1466r194,0r0,626r350,0v229,0,379,43,452,127v147,167,143,424,-7,585v-78,84,-221,128,-431,128r-558,0r0,-1466xm717,-165v222,-1,344,-56,348,-258v3,-123,-77,-211,-179,-233v-104,-22,-368,-16,-524,-17r0,508r355,0xm1449,-1466r194,0r0,1466r-194,0r0,-1466","w":1813},"\u042c":{"d":"165,-1466r194,0r0,626v233,3,570,-14,705,57v126,66,206,192,206,357v0,113,-39,213,-116,298v-77,85,-221,128,-432,128r-557,0r0,-1466xm714,-165v243,4,339,-71,347,-261v5,-120,-74,-206,-174,-229v-103,-23,-371,-17,-528,-18r0,508r355,0","w":1344,"k":{"\u042f":92,"\u042d":23,"\u0427":160,"\u0425":92,"\u0422":205,"\u0421":45,"\u041e":45,"\u041c":45,"\u041b":70,"\u0417":23,"\u0416":68,"\u0414":45,"\u0410":45}},"\u042d":{"d":"1160,-670v-8,299,-175,532,-460,532v-233,0,-380,-124,-439,-372r-187,49v85,324,289,486,612,486v231,0,400,-76,516,-223v178,-226,213,-626,84,-916v-93,-209,-307,-377,-604,-377v-314,0,-523,172,-589,427r190,50v55,-205,189,-307,400,-307v292,0,456,196,469,478r-537,0r0,173r545,0","w":1472,"k":{"\u044f":23,"\u043c":23,"\u043b":68,"\u0436":-23,"\u0434":68,"\u042f":45,"\u0425":70,"\u041b":68,"\u0417":23,"\u0416":25,"\u0414":68}},"\u042e":{"d":"1296,25v-382,0,-622,-284,-652,-661r-286,0r0,636r-194,0r0,-1466r194,0r0,658r282,0v17,-384,278,-683,661,-683v400,-1,664,322,664,750v0,445,-256,766,-669,766xm1303,-1327v-314,0,-468,260,-468,601v0,336,161,585,464,585v312,0,467,-250,467,-597v0,-333,-156,-589,-463,-589","w":2069,"k":{"\u043c":23,"\u043b":92,"\u0434":92,"\u0427":68,"\u0425":92,"\u0422":115,"\u0421":23,"\u041e":23,"\u041b":92,"\u0416":45,"\u0414":90,"\u0410":68}},"\u042f":{"d":"146,-1066v0,241,167,370,413,399v-140,66,-197,141,-278,268r-255,399r244,0r194,-305v89,-134,139,-229,239,-300v59,-41,91,-47,196,-46r225,0r0,651r194,0r0,-1466r-650,0v-249,2,-369,33,-461,179v-42,66,-61,140,-61,221xm346,-1066v0,-161,124,-238,314,-238r464,0r0,485r-417,0v-218,5,-361,-60,-361,-247","w":1479},"\u0430":{"d":"995,-445v6,270,-11,308,57,445r-188,0v-19,-37,-31,-81,-36,-131v-115,96,-212,150,-391,155v-213,5,-363,-111,-363,-304v0,-172,117,-269,258,-305v119,-31,406,-52,481,-89v18,-197,-77,-263,-255,-263v-179,0,-237,55,-277,202r-176,-24v41,-230,210,-327,479,-327v221,0,367,58,402,235v17,88,7,287,9,406xm291,-370v-76,130,31,253,189,253v143,0,256,-71,304,-170v24,-50,31,-154,29,-246v-75,43,-348,64,-451,104v-31,12,-56,33,-71,59","k":{"\u0447":45,"\u0443":23,"\u0442":45,"\u0437":23}},"\u0431":{"d":"609,-1062v288,-3,483,226,483,532v0,237,-102,395,-232,489v-130,95,-439,83,-552,-21v-174,-161,-216,-303,-217,-692v0,-281,48,-470,143,-567v95,-97,241,-146,438,-146v123,0,192,-2,209,-6v17,-4,27,-13,32,-28r159,2v-27,213,-110,215,-367,215v-259,0,-354,22,-421,180v-26,62,-36,145,-39,244v80,-118,187,-200,364,-202xm603,-121v197,0,301,-194,301,-414v0,-206,-101,-379,-300,-378v-213,1,-311,184,-311,411v0,221,116,381,310,381","w":1173,"k":{"\u044f":45,"\u044d":23,"\u044a":68,"\u0447":68,"\u0445":68,"\u0444":23,"\u0443":45,"\u0441":23,"\u043c":45,"\u043b":92,"\u0437":45,"\u0436":23,"\u0435":23,"\u0434":92,"\u0430":47}},"\u0432":{"d":"834,-553v96,31,180,130,174,256v-11,213,-156,297,-393,297r-479,0r0,-1062v203,6,491,-21,642,26v95,29,184,128,182,256v-1,113,-50,181,-126,227xm777,-763v0,-137,-101,-150,-263,-150r-198,0r0,298v158,-9,358,29,427,-61v20,-26,34,-53,34,-87xm553,-148v175,-4,261,-15,270,-158v4,-72,-55,-138,-119,-150v-86,-16,-271,-9,-388,-11r0,319r237,0","w":1088,"k":{"\u044f":23,"\u044a":68,"\u0447":92,"\u0444":23,"\u0443":45,"\u0442":45,"\u0441":23,"\u043e":23,"\u043c":23,"\u043b":47,"\u0437":23,"\u0436":23,"\u0435":23,"\u0434":23,"\u0431":23,"\u0430":23}},"\u0433":{"d":"136,-1062r611,0r0,149r-431,0r0,913r-180,0r0,-1062","w":747,"k":{"\u044f":23,"\u0441":45,"\u043e":45,"\u043b":45,"\u0437":23,"\u0435":45,"\u0434":92,"\u0430":45,".":250,",":250}},"\u0434":{"d":"277,-1062r740,0r0,914r115,0r0,449r-148,0r0,-301r-836,0r0,301r-148,0r0,-449r95,0v127,-172,187,-477,182,-914xm427,-913v-13,345,-67,600,-160,765r571,0r0,-765r-411,0","w":1195,"k":{"\u044d":-23,"\u044a":45}},"\u0435":{"d":"582,-124v156,0,233,-86,280,-218r186,23v-55,208,-211,343,-467,343v-319,1,-506,-215,-506,-546v0,-333,186,-564,496,-564v316,0,506,247,482,601r-792,0v7,209,124,361,321,361xm864,-633v-10,-189,-122,-302,-291,-305v-172,-3,-295,133,-302,305r593,0","k":{"\u0447":68,"\u0445":45,"\u0443":23,"\u0442":68,"\u043b":68,"\u0437":45,"\u0436":23,"\u0434":45,"\u0431":23}},"\u0436":{"d":"777,-1062r0,459v57,0,98,-11,121,-33v23,-22,57,-86,102,-192v42,-101,81,-164,113,-193v41,-37,133,-44,222,-41r0,149v-50,-2,-127,-2,-141,20v-31,27,-100,246,-138,275v-23,27,-58,51,-106,73v78,21,154,93,228,216r198,329r-198,0r-193,-329v-68,-104,-85,-152,-208,-162r0,491r-184,0r0,-491v-122,10,-145,56,-207,162r-193,329r-198,0r197,-329v75,-123,151,-195,229,-216v-144,-73,-131,-99,-208,-288v-34,-82,-71,-83,-177,-80r0,-149v130,2,191,2,248,66v39,44,149,336,188,359v23,23,63,34,121,34r0,-459r184,0","w":1370,"k":{"\u044a":-45,"\u0447":23,"\u0443":-23,"\u0431":-23}},"\u0437":{"d":"474,-121v114,3,212,-74,212,-183v0,-78,-62,-150,-119,-166v-32,-9,-123,-13,-197,-10r0,-141v139,-5,171,7,234,-57v25,-26,37,-60,37,-100v1,-98,-75,-160,-174,-160v-101,0,-172,60,-213,179r-171,-28v53,-199,182,-299,386,-299v206,0,363,130,363,315v0,87,-42,156,-126,207v97,52,160,131,160,267v0,206,-168,321,-395,321v-242,0,-382,-108,-421,-323r169,-36v24,122,121,212,255,214","w":939,"k":{"\u044a":45,"\u0447":68,"\u0444":23,"\u0443":23,"\u0441":23,"\u043e":23,"\u043b":23,"\u0437":23,"\u0435":23,"\u0434":45,"\u0431":23}},"\u0438":{"d":"135,-1062r180,0r0,810r499,-810r194,0r0,1062r-180,0r0,-805r-499,805r-194,0r0,-1062","w":1144},"\u0439":{"d":"582,-1329v110,0,159,-42,178,-135r123,0v-18,160,-121,259,-295,259v-176,0,-278,-97,-296,-259r123,0v18,86,68,135,167,135xm135,-1062r180,0r0,810r499,-810r194,0r0,1062r-180,0r0,-805r-499,805r-194,0r0,-1062","w":1144},"\u043a":{"d":"134,-1062r180,0r0,459v57,0,97,-11,120,-33v38,-21,150,-314,188,-358v56,-64,123,-68,250,-68r0,149v-50,-2,-127,-2,-141,20v-30,28,-101,246,-139,275v-23,27,-58,51,-105,73v77,21,154,92,228,216r197,329r-198,0r-192,-329v-68,-103,-86,-152,-208,-162r0,491r-180,0r0,-1062","w":896,"k":{"\u044d":-23,"\u0443":-23,"\u0442":-23,"\u0441":-23,"\u043e":-23,"\u043b":-23,"\u0437":-23,"\u0435":-23,"\u0431":-45,"\u0430":-45}},"\u043b":{"d":"103,-151v138,-7,120,-38,120,-211r0,-700r836,0r0,1062r-179,0r0,-913r-477,0r0,529v-7,211,17,262,-78,347v-63,57,-184,47,-301,36r0,-150r79,0","w":1195,"k":{"\u0447":45,"\u043e":-23}},"\u043c":{"d":"140,-1062r280,0r279,850r310,-850r259,0r0,1062r-180,0r0,-855r-314,855r-161,0r-297,-896r0,896r-176,0r0,-1062","w":1408,"k":{"\u0443":-23,"\u0437":23,"\u0431":23}},"\u043d":{"d":"136,-1062r180,0r0,442r499,0r0,-442r180,0r0,1062r-180,0r0,-471r-499,0r0,471r-180,0r0,-1062","w":1131},"\u043e":{"d":"566,24v-313,-1,-498,-220,-498,-555v0,-337,186,-552,498,-555v302,-3,497,222,497,540v0,266,-77,412,-241,505v-78,44,-163,65,-256,65xm566,-937v-205,0,-313,167,-313,406v0,240,107,407,313,407v206,0,312,-170,312,-413v0,-232,-111,-400,-312,-400","k":{"\u0447":45,"\u0445":23,"\u0443":23,"\u0442":45,"\u043b":45,"\u0437":23,"\u0436":23,"\u0434":45}},"\u043f":{"d":"136,-1062r838,0r0,1062r-180,0r0,-913r-478,0r0,913r-180,0r0,-1062","w":1109},"\u0440":{"d":"594,24v-126,4,-222,-62,-279,-134r0,517r-180,0r0,-1469r164,0r0,138v72,-98,152,-162,308,-162v301,0,448,240,450,547v2,317,-166,554,-463,563xm590,-945v-184,0,-292,191,-292,420v0,137,28,238,83,303v55,65,122,98,201,98v194,0,291,-177,291,-416v0,-135,-27,-237,-83,-304v-56,-67,-123,-101,-200,-101","k":{"\u044f":23,"\u0447":45,"\u0445":23,"\u0443":23,"\u0442":45,"\u043b":70,"\u0437":23,"\u0434":47}},"\u0441":{"d":"561,-124v161,0,247,-105,267,-265r177,23v-32,227,-196,390,-442,390v-307,0,-483,-221,-483,-551v0,-335,165,-555,484,-559v238,-3,386,130,424,336r-175,27v-28,-126,-104,-215,-242,-215v-210,0,-306,160,-306,406v0,248,88,408,296,408","w":1024,"k":{"\u044d":-23,"\u0447":23,"\u043e":-23,"\u0436":-23}},"\u0442":{"d":"38,-1062r863,0r0,149r-342,0r0,913r-179,0r0,-913r-342,0r0,-149","w":938,"k":{"\u0443":-23,"\u0441":23,"\u043e":23,"\u043b":45,"\u0436":-68,"\u0435":23,"\u0434":68,"\u0430":23,".":227,",":227}},"\u0443":{"d":"127,409r-20,-169v109,34,217,11,258,-60v11,-18,49,-117,71,-178r-403,-1064r194,0r221,615v29,78,54,160,77,246v82,-303,202,-574,301,-861r180,0r-404,1080v-43,117,-79,196,-101,241v-64,132,-198,211,-374,150","w":1024,"k":{"\u044f":23,"\u044d":23,"\u0444":23,"\u0441":23,"\u0440":23,"\u043e":25,"\u043c":23,"\u043b":45,"\u0436":-23,"\u0435":23,"\u0434":68,"\u0431":-23,"\u0430":23,"\u00bb":-23,".":205,",":205}},"\u0444":{"d":"492,-1086v122,2,201,51,261,127r0,-507r180,0r0,507v65,-74,145,-126,267,-127v269,-2,410,267,410,554v0,294,-154,556,-415,556v-126,0,-173,-32,-262,-116r0,499r-180,0r0,-499v-63,68,-143,116,-261,116v-111,0,-209,-48,-292,-146v-83,-98,-125,-238,-125,-420v0,-282,149,-546,417,-544xm992,-836v-74,118,-75,538,6,632v99,115,258,99,352,-20v93,-117,96,-492,6,-616v-92,-126,-281,-128,-364,4xm509,-938v-175,0,-251,182,-251,391v0,150,28,256,76,324v89,126,281,133,362,1v75,-123,72,-494,-3,-611v-44,-68,-102,-105,-184,-105","w":1685,"k":{"\u044f":23,"\u0447":45,"\u0443":23,"\u0442":45,"\u043b":45,"\u0434":45,"\u0431":23}},"\u0445":{"d":"15,0r388,-552r-359,-510r225,0r163,249v31,47,55,87,74,119r260,-368r215,0r-367,500r395,562r-221,0r-276,-419r-279,419r-218,0","w":1024,"k":{"\u0447":45,"\u0444":23,"\u0442":23,"\u0441":23,"\u043e":23,"\u0437":23,"\u0435":23,"\u0431":23,"\u0430":23}},"\u0446":{"d":"138,-1062r180,0r0,914r498,0r0,-914r180,0r0,914r116,0r0,449r-148,0r0,-301r-826,0r0,-1062","w":1173,"k":{"\u0441":23,"\u043e":23,"\u0437":23,"\u0435":23}},"\u0447":{"d":"441,-376v-236,0,-372,-162,-372,-408r0,-278r180,0v1,120,-7,309,15,390v22,81,113,145,223,145v68,0,156,-18,264,-54r0,-481r180,0r0,1062r-180,0r0,-428v-111,35,-214,52,-310,52","w":1067},"\u0448":{"d":"141,-1062r180,0r0,913r410,0r0,-913r180,0r0,913r411,0r0,-913r179,0r0,1062r-1360,0r0,-1062","w":1643},"\u0449":{"d":"141,-1062r180,0r0,914r410,0r0,-914r180,0r0,914r411,0r0,-914r179,0r0,914r119,0r0,449r-149,0r0,-301r-1330,0r0,-1062","w":1685,"k":{"\u0443":-23,"\u043e":23,"\u0435":23}},"\u044a":{"d":"1207,-321v0,214,-176,321,-421,321r-451,0r0,-913r-295,0r0,-149r475,0r0,415r229,0v162,0,280,32,353,95v73,63,110,140,110,231xm1020,-321v0,-146,-106,-175,-292,-176r-213,0r0,351v223,-7,505,39,505,-175","w":1280},"\u044b":{"d":"1146,-1062r180,0r0,1062r-180,0r0,-1062xm1011,-322v0,210,-168,322,-422,322r-450,0r0,-1062r180,0r0,415r228,0v261,-3,464,95,464,325xm825,-321v0,-137,-98,-177,-293,-177r-213,0r0,350v222,-6,506,37,506,-173","w":1472},"\u044c":{"d":"1004,-322v0,210,-168,322,-422,322r-450,0r0,-1062r180,0r0,415r228,0v261,-3,464,95,464,325xm818,-321v0,-137,-98,-177,-293,-177r-213,0r0,350v222,-6,506,37,506,-173","w":1067,"k":{"\u0447":137,"\u0442":160}},"\u044d":{"d":"964,-531v0,-325,-171,-555,-481,-555v-234,0,-391,141,-422,338r175,28v29,-145,114,-217,253,-217v175,1,272,150,290,319r-375,0r0,148r375,0v-20,203,-93,346,-291,346v-152,0,-242,-88,-269,-264r-176,23v35,225,195,389,453,389v313,0,468,-237,468,-555","w":1045,"k":{"\u044f":23,"\u0445":23,"\u0442":45,"\u043e":-23,"\u043b":45,"\u0437":23,"\u0435":-23,"\u0434":45}},"\u044e":{"d":"989,24v-282,0,-440,-212,-454,-494r-218,0r0,470r-180,0r0,-1062r180,0r0,444r218,0v26,-276,172,-465,450,-468v224,-2,327,97,407,244v41,75,61,178,61,307v0,338,-155,559,-464,559xm1268,-523v-3,-240,-62,-410,-273,-410v-196,0,-279,169,-279,386v0,146,25,253,74,321v49,68,115,102,198,102v197,0,283,-160,280,-399","w":1536,"k":{"\u0447":45,"\u0445":23,"\u0442":45,"\u043c":23,"\u043b":45,"\u0436":23,"\u0434":45}},"\u044f":{"d":"99,-752v0,-201,157,-310,380,-310r492,0r0,1062r-179,0r0,-414v-85,0,-200,-6,-246,24v-86,55,-215,284,-292,390r-223,0r194,-286v59,-87,118,-137,177,-148v-182,-19,-303,-139,-303,-318xm282,-746v0,159,117,184,311,184r199,0r0,-351r-256,0v-174,-2,-254,39,-254,167","w":1109},"\u0451":{"d":"582,-124v156,0,233,-86,280,-218r186,23v-55,208,-211,343,-467,343v-319,1,-506,-215,-506,-546v0,-333,186,-564,496,-564v316,0,506,247,482,601r-792,0v7,209,124,361,321,361xm864,-633v-10,-189,-122,-302,-291,-305v-172,-3,-295,133,-302,305r593,0xm284,-1270r0,-205r188,0r0,205r-188,0xm657,-1270r0,-205r188,0r0,205r-188,0"},"\u00a4":{"d":"213,-961r-139,-136r115,-119r139,139v136,-96,338,-96,474,0r139,-139r116,119r-139,136v95,144,94,327,0,471r139,136r-116,119r-139,-140v-136,97,-338,97,-474,0r-139,140r-115,-119r139,-136v-94,-144,-95,-327,0,-471xm564,-985v-139,0,-259,120,-259,259v0,140,120,260,259,260v139,0,259,-120,259,-260v0,-139,-119,-259,-259,-259"}}});

;// ColorBox v1.3.9 - a full featured, light-weight, customizable lightbox based on jQuery 1.3
// c) 2009 Jack Moore - www.colorpowered.com - jack@colorpowered.com
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
(function ($, window) {
	
	var
	// ColorBox Default Settings.	
	// See http://colorpowered.com/colorbox for details.
	defaults = {
		transition: "elastic",
		speed: 300,
		width: false,
		initialWidth: "600",
		innerWidth: false,
		maxWidth: false,
		height: false,
		initialHeight: "450",
		innerHeight: false,
		maxHeight: false,
		scalePhotos: true,
		scrolling: true,
		inline: false,
		html: false,
		iframe: false,
		photo: false,
		href: false,
		title: false,
		rel: false,
		opacity: 0.9,
		preloading: true,
		current: "image {current} of {total}",
		previous: "previous",
		next: "next",
		close: "close",
		open: false,
		loop: true,
		slideshow: false,
		slideshowAuto: true,
		slideshowSpeed: 2500,
		slideshowStart: "start slideshow",
		slideshowStop: "stop slideshow",
		onOpen: false,
		onLoad: false,
		onComplete: false,
		onCleanup: false,
		onClosed: false,
		overlayClose: true,		
		escKey: true,
		arrowKey: true
	},
	
	// Abstracting the HTML and event identifiers for easy rebranding
	colorbox = 'colorbox',
	prefix = 'cbox',
	
	// Events	
	event_open = prefix + '_open',
	event_load = prefix + '_load',
	event_complete = prefix + '_complete',
	event_cleanup = prefix + '_cleanup',
	event_closed = prefix + '_closed',
	
	// Special Handling for IE
	isIE = $.browser.msie && !$.support.opacity, // feature detection alone gave a false positive on at least one phone browser and on some development versions of Chrome.
	isIE6 = isIE && $.browser.version < 7,
	event_ie6 = prefix + '_IE6',

	// Cached jQuery Object Variables
	$overlay,
	$box,
	$wrap,
	$content,
	$topBorder,
	$leftBorder,
	$rightBorder,
	$bottomBorder,
	$related,
	$window,
	$loaded,
	$loadingBay,
	$loadingOverlay,
	$title,
	$current,
	$slideshow,
	$next,
	$prev,
	$close,
	$thumbs,

	// Variables for cached values or use across multiple functions
	interfaceHeight,
	interfaceWidth,
	loadedHeight,
	loadedWidth,
	element,
	bookmark,
	index,
	settings,
	open,
	active,
	
	publicMethod,
	boxElement = prefix + 'Element';
	
	// ****************
	// HELPER FUNCTIONS
	// ****************

	// jQuery object generator to reduce code size
	function $div(id, css) { 
		id = id ? ' id="' + prefix + id + '"' : '';
		css = css ? ' style="' + css + '"' : '';
		return $('<div' + id + css + '/>');
	}

	// Convert % values to pixels
	function setSize(size, dimension) {
		dimension = dimension === 'x' ? $window.width() : $window.height();
		return (typeof size === 'string') ? Math.round((size.match(/%/) ? (dimension / 100) * parseInt(size, 10) : parseInt(size, 10))) : size;
	}

	// Checks an href to see if it is a photo.
	// There is a force photo option (photo: true) for hrefs that cannot be matched by this regex.
	function isImage(url) {
		url = $.isFunction(url) ? url.call(element) : url;
		return settings.photo || url.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i);
	}
	
	// Assigns functions results to their respective settings.  This allows functions to be used to set ColorBox options.
	function process() {
		for (var i in settings) {
			if ($.isFunction(settings[i]) && i.substring(0, 2) !== 'on') { // checks to make sure the function isn't one of the callbacks, they will be handled at the appropriate time.
			    settings[i] = settings[i].call(element);
			}
		}
		settings.rel = settings.rel || element.rel || 'nofollow';
		settings.href = settings.href || $(element).attr('href');
		settings.title = settings.title || element.title;
	}

	function launch(elem) {
		
		element = elem;
		
		settings = $.extend({}, $(element).data(colorbox));
		
		process(); // Convert functions to their returned values.
		
		if (settings.rel !== 'nofollow') {
			$related = $('.' + boxElement).filter(function () {
				var relRelated = $(this).data(colorbox).rel || this.rel;
				return (relRelated === settings.rel);
			});
			index = $related.index(element);
			
			// Check direct calls to ColorBox.
			if (index === -1) {
				$related = $related.add(element);
				index = $related.length - 1;
			}
		} else {
			$related = $(element);
			index = 0;
		}
		
		if (!open) {
			open = active = true; // Prevents the page-change action from queuing up if the visitor holds down the left or right keys.
			
			bookmark = element;
			
			try {
				bookmark.blur(); // Remove the focus from the calling element.
			}catch (e) {}
			
			$.event.trigger(event_open);
			if (settings.onOpen) {
				settings.onOpen.call(element);
			}
			
			// +settings.opacity avoids a problem in IE when using non-zero-prefixed-string-values, like '.5'
			$overlay.css({"opacity": +settings.opacity, "cursor": settings.overlayClose ? "pointer" : "auto"}).show();
			
			// Opens inital empty ColorBox prior to content being loaded.
			settings.w = setSize(settings.initialWidth, 'x');
			settings.h = setSize(settings.initialHeight, 'y');
			publicMethod.position(0);
			
			if (isIE6) {
				$window.bind('resize.' + event_ie6 + ' scroll.' + event_ie6, function () {
					$overlay.css({width: $window.width(), height: $window.height(), top: $window.scrollTop(), left: $window.scrollLeft()});
				}).trigger('scroll.' + event_ie6);
			}
		}
		
		$current.add($prev).add($next).add($slideshow).add($title).hide();
		
		$close.html(settings.close).show();
		
		publicMethod.slideshow();
		
		publicMethod.load();
	}

	// ****************
	// PUBLIC FUNCTIONS
	// Usage format: $.fn.colorbox.close();
	// Usage from within an iframe: parent.$.fn.colorbox.close();
	// ****************
	
	publicMethod = $.fn[colorbox] = $[colorbox] = function (options, callback) {
		var $this = this;
		
		if (!$this[0] && $this.selector) { // if a selector was given and it didn't match any elements, go ahead and exit.
			return $this;
		}
		
		options = options || {};
		
		if (callback) {
			options.onComplete = callback;
		}
		
		if (!$this[0] || $this.selector === undefined) { // detects $.colorbox() and $.fn.colorbox()
			$this = $('<a/>');
			options.open = true; // assume an immediate open
		}
		
		$this.each(function () {
			$(this).data(colorbox, $.extend({}, $(this).data(colorbox) || defaults, options, $.metadata && $.metadata.get( this ))).addClass(boxElement);
		});
		
		if (options.open) {
			launch($this[0]);
		}
		
		return $this;
	};

	// Initialize ColorBox: store common calculations, preload the interface graphics, append the html.
	// This preps colorbox for a speedy open when clicked, and lightens the burdon on the browser by only
	// having to run once, instead of each time colorbox is opened.
	publicMethod.init = function () {
		// Create & Append jQuery Objects
		$window = $(window);
		$box = $div().attr({id: colorbox, 'class': isIE ? prefix + 'IE' : ''});
		$overlay = $div("Overlay", isIE6 ? 'position:absolute' : '').hide();
		
		$wrap = $div("Wrapper");
		$content = $div("Content").append(
			$loaded = $div("LoadedContent", 'width:0; height:0'),
			$loadingOverlay = $div("LoadingOverlay").add($div("LoadingGraphic")),
			$title = $div("Title"),
			$current = $div("Current"),
			$next = $div("Next"),
			$prev = $div("Previous"),
			$slideshow = $div("Slideshow"),
			$close = $div("Close"),
			$thumbs = $div("Thumbs")
		);
		$wrap.append( // The 3x3 Grid that makes up ColorBox
			$div().append(
				$div("TopLeft"),
				$topBorder = $div("TopCenter"),
				$div("TopRight")
			),
			$div().append(
				$leftBorder = $div("MiddleLeft"),
				$content,
				$rightBorder = $div("MiddleRight")
			),
			$div().append(
				$div("BottomLeft"),
				$bottomBorder = $div("BottomCenter"),
				$div("BottomRight")
			)
		).children().children().css({'float': 'left'});
		
		$loadingBay = $div(false, 'position:absolute; width:9999px; visibility:hidden; display:none');
		
		$('body').prepend($overlay, $box.append($wrap, $loadingBay));
		
		$content.children()
		.hover(function () {
			$(this).addClass('hover');
		}, function () {
			$(this).removeClass('hover');
		}).addClass('hover');
		
		// Cache values needed for size calculations
		interfaceHeight = $topBorder.height() + $bottomBorder.height() + $content.outerHeight(true) - $content.height();//Subtraction needed for IE6
		interfaceWidth = $leftBorder.width() + $rightBorder.width() + $content.outerWidth(true) - $content.width();
		loadedHeight = $loaded.outerHeight(true);
		loadedWidth = $loaded.outerWidth(true);
		
		// Setting padding to remove the need to do size conversions during the animation step.
		$box.css({"padding-bottom": interfaceHeight, "padding-right": interfaceWidth}).hide();
		
		// Setup button events.
		$next.click(publicMethod.next);
		$prev.click(publicMethod.prev);
		$close.click(publicMethod.close);
		$thumbs.click(publicMethod.thumbs);
		
		/*var thumbs_html = "<ul>";
		$('.' + boxElement).each(function(i,v){
			thumbs_html += "<li><a href=\"#\"><img src=\"" + jQuery(v).metadata().small_path + "\" /></a></li>";
		});
		thumbs_html += "</ul>";
		if ($('.' + boxElement).length > 1) {
			$(thumbs_html).appendTo($thumbs);
			
			$($thumbs).find("a").bind("click", function(){
				index = $($thumbs).find("a").index(this);
				publicMethod.load();
				return false;
			});
		}
		*/
		
		// Adding the 'hover' class allowed the browser to load the hover-state
		// background graphics.  The class can now can be removed.
		$content.children().removeClass('hover');
		
		$('.' + boxElement).live('click', function (e) {
			// checks to see if it was a non-left mouse-click and for clicks modified with ctrl, shift, or alt.
			if ((e.button !== 0 && typeof e.button !== 'undefined') || e.ctrlKey || e.shiftKey || e.altKey) {
				return true;
			} else {
				launch(this);			
				return false;
			}
		});
		
		$overlay.click(function () {
			if (settings.overlayClose) {
				publicMethod.close();
			}
		});
		
		// Set Navigation Key Bindings
		$(document).bind("keydown", function (e) {
			if (open && settings.escKey && e.keyCode === 27) {
				e.preventDefault();
				publicMethod.close();
			}
			if (open && settings.arrowKey && !active && $related[1]) {
				if (e.keyCode === 37 && (index || settings.loop)) {
					e.preventDefault();
					$prev.click();
				} else if (e.keyCode === 39 && (index < $related.length - 1 || settings.loop)) {
					e.preventDefault();
					$next.click();
				}
			}
		});
	};
	
	publicMethod.remove = function () {
		$box.add($overlay).remove();
		$('.' + boxElement).die('click').removeData(colorbox).removeClass(boxElement);
	};
	
	publicMethod.thumbs = function () {
	};

	publicMethod.position = function (speed, loadedCallback) {
		var
		animate_speed,
		// keeps the top and left positions within the browser's viewport.
		posTop = Math.max($window.height() - settings.h - loadedHeight - interfaceHeight, 0) / 2 + $window.scrollTop(),
		posLeft = Math.max($window.width() - settings.w - loadedWidth - interfaceWidth, 0) / 2 + $window.scrollLeft();
		
		// setting the speed to 0 to reduce the delay between same-sized content.
		animate_speed = ($box.width() === settings.w + loadedWidth && $box.height() === settings.h + loadedHeight) ? 0 : speed;
		
		// this gives the wrapper plenty of breathing room so it's floated contents can move around smoothly,
		// but it has to be shrank down around the size of div#colorbox when it's done.  If not,
		// it can invoke an obscure IE bug when using iframes.
		$wrap[0].style.width = $wrap[0].style.height = "9999px";
		
		function modalDimensions(that) {
			// loading overlay height has to be explicitly set for IE6.
			$topBorder[0].style.width = $bottomBorder[0].style.width = $content[0].style.width = that.style.width;
			$loadingOverlay[0].style.height = $loadingOverlay[1].style.height = $content[0].style.height = $leftBorder[0].style.height = $rightBorder[0].style.height = that.style.height;
		}
		
		$box.dequeue().animate({width: settings.w + loadedWidth, height: settings.h + loadedHeight, top: posTop, left: posLeft}, {
			duration: animate_speed,
			complete: function () {
				modalDimensions(this);
				
				active = false;
				
				// shrink the wrapper down to exactly the size of colorbox to avoid a bug in IE's iframe implementation.
				$wrap[0].style.width = (settings.w + loadedWidth + interfaceWidth) + "px";
				$wrap[0].style.height = (settings.h + loadedHeight + interfaceHeight) + "px";
				
				if (loadedCallback) {
					loadedCallback();
				}
			},
			step: function () {
				modalDimensions(this);
			}
		});
	};

	publicMethod.resize = function (options) {
		if (open) {
			options = options || {};
			
			if (options.width) {
				settings.w = setSize(options.width, 'x') - loadedWidth - interfaceWidth;
			}
			if (options.innerWidth) {
				settings.w = setSize(options.innerWidth, 'x');
			}
			$loaded.css({width: settings.w});
			
			if (options.height) {
				settings.h = setSize(options.height, 'y') - loadedHeight - interfaceHeight;
			}
			if (options.innerHeight) {
				settings.h = setSize(options.innerHeight, 'y');
			}
			if (!options.innerHeight && !options.height) {				
				var $child = $loaded.wrapInner("<div style='overflow:auto'></div>").children(); // temporary wrapper to get an accurate estimate of just how high the total content should be.
				settings.h = $child.height();
				$child.replaceWith($child.children()); // ditch the temporary wrapper div used in height calculation
			}
			$loaded.css({height: settings.h});
			
			publicMethod.position(settings.transition === "none" ? 0 : settings.speed);
		}
	};

	publicMethod.prep = function (object) {
		if (!open) {
			return;
		}
		
		var photo,
		speed = settings.transition === "none" ? 0 : settings.speed;
		
		$window.unbind('resize.' + prefix);
		$loaded.remove();
		$loaded = $div('LoadedContent').html(object);
		
		function getWidth() {
			settings.w = settings.w || $loaded.width();
			settings.w = settings.mw && settings.mw < settings.w ? settings.mw : settings.w;
			return settings.w;
		}
		function getHeight() {
			settings.h = settings.h || $loaded.height();
			settings.h = settings.mh && settings.mh < settings.h ? settings.mh : settings.h;
			return settings.h;
		}
		
		$loaded.hide()
		.appendTo($loadingBay.show())// content has to be appended to the DOM for accurate size calculations.
		.css({width: getWidth(), overflow: settings.scrolling ? 'auto' : 'hidden'})
		.css({height: getHeight()})// sets the height independently from the width in case the new width influences the value of height.
		.prependTo($content);
		
		$loadingBay.hide();
		
		$('#' + prefix + 'Photo').css({cssFloat: 'none'});// floating the IMG removes the bottom line-height and fixed a problem where IE miscalculates the width of the parent element as 100% of the document width.
		
		// Hides SELECT elements in IE6 because they would otherwise sit on top of the overlay.
		if (isIE6) {
			$('select').not($box.find('select')).filter(function () {
				return this.style.visibility !== 'hidden';
			}).css({'visibility': 'hidden'}).one(event_cleanup, function () {
				this.style.visibility = 'inherit';
			});
		}
				
		function setPosition(s) {
			var prev, prevSrc, next, nextSrc, total = $related.length, loop = settings.loop;
			publicMethod.position(s, function () {
				function defilter() {
					if (isIE) {
						//IE adds a filter when ColorBox fades in and out that can cause problems if the loaded content contains transparent pngs.
						$box[0].style.removeAttribute("filter");
					}
				}
				
				if (!open) {
					return;
				}
				
				if (isIE) {
					//This fadeIn helps the bicubic resampling to kick-in.
					if (photo) {
						$loaded.fadeIn(100);
					}
				}
				
				//Waited until the iframe is added to the DOM & it is visible before setting the src.
				//This increases compatability with pages using DOM dependent JavaScript.
				if (settings.iframe) {
					$("<iframe frameborder=0" + (settings.scrolling ? "" : " scrolling='no'") + (isIE ? " allowtransparency='true'" : '') + "/>")
					.attr({src: settings.href, name: new Date().getTime()})
					.appendTo($loaded);
				}
				
				$loaded.show();
				
				$title.show().html(settings.title);
				
				if (total > 1) { // handle grouping
					$current.html(settings.current.replace(/\{current\}/, index + 1).replace(/\{total\}/, total)).show();
					
					$next[(loop || index < total - 1) ? "show" : "hide"]().html(settings.next);
					$prev[(loop || index) ? "show" : "hide"]().html(settings.previous);
					
					prev = index ? $related[index - 1] : $related[total - 1];
					next = index < total - 1 ? $related[index + 1] : $related[0];
					
					if (settings.slideshow) {
						$slideshow.show();
						if (index === total - 1 && !loop && $box.is('.' + prefix + 'Slideshow_on')) {
							$slideshow.click();
						}
					}
					
					// Preloads images within a rel group
					if (settings.preloading) {
						nextSrc = $(next).data(colorbox).href || next.href;
						prevSrc = $(prev).data(colorbox).href || prev.href;
						
						if (isImage(nextSrc)) {
							$('<img/>')[0].src = nextSrc;
						}
						
						if (isImage(prevSrc)) {
							$('<img/>')[0].src = prevSrc;
						}
					}
				}
				
				$loadingOverlay.hide();
				
				if (settings.transition === 'fade') {
					$box.fadeTo(speed, 1, function () {
						defilter();
					});
				} else {
					defilter();
				}
				
				$window.bind('resize.' + prefix, function () {
					publicMethod.position(0);
				});
				
				$.event.trigger(event_complete);
				if (settings.onComplete) {
					settings.onComplete.call(element);
				}
			});
		}
		
		if (settings.transition === 'fade') {
			$box.fadeTo(speed, 0, function () {
				setPosition(0);
			});
		} else {
			setPosition(speed);
		}
	};

	publicMethod.load = function () {
		var href, img, setResize, prep = publicMethod.prep;
		
		active = true;
		
		element = $related[index];
		
		settings = $.extend({}, $(element).data(colorbox));
		
		//convert functions to static values
		process();
		
		$.event.trigger(event_load);
		if (settings.onLoad) {
			settings.onLoad.call(element);
		}
		
		settings.h = settings.height ?
				setSize(settings.height, 'y') - loadedHeight - interfaceHeight :
				settings.innerHeight && setSize(settings.innerHeight, 'y');
		
		settings.w = settings.width ?
				setSize(settings.width, 'x') - loadedWidth - interfaceWidth :
				settings.innerWidth && setSize(settings.innerWidth, 'x');
		
		// Sets the minimum dimensions for use in image scaling
		settings.mw = settings.w;
		settings.mh = settings.h;
		
		// Re-evaluate the minimum width and height based on maxWidth and maxHeight values.
		// If the width or height exceed the maxWidth or maxHeight, use the maximum values instead.
		if (settings.maxWidth) {
			settings.mw = setSize(settings.maxWidth, 'x') - loadedWidth - interfaceWidth;
			settings.mw = settings.w && settings.w < settings.mw ? settings.w : settings.mw;
		}
		if (settings.maxHeight) {
			settings.mh = setSize(settings.maxHeight, 'y') - loadedHeight - interfaceHeight;
			settings.mh = settings.h && settings.h < settings.mh ? settings.h : settings.mh;
		}
		
		href = settings.href;
		
		$loadingOverlay.show();
		
		if (settings.inline) {
			// Inserts an empty placeholder where inline content is being pulled from.
			// An event is bound to put inline content back when ColorBox closes or loads new content.
			$div('InlineTemp').hide().insertBefore($(href)[0]).bind(event_load + ' ' + event_cleanup, function () {
				$(this).replaceWith($loaded.children());
			});
			prep($(href));
		} else if (settings.iframe) {
			// IFrame element won't be added to the DOM until it is ready to be displayed,
			// to avoid problems with DOM-ready JS that might be trying to run in that iframe.
			prep(" ");
		} else if (settings.html) {
			prep(settings.html);
		} else if (isImage(href)) {
			img = new Image();
			img.onload = function () {
				var percent;
				
				img.onload = null;
				img.id = prefix + 'Photo';
				$(img).css({margin: 'auto', border: 'none', display: 'block', cssFloat: 'left'});
				
				if (settings.scalePhotos) {
					setResize = function () {
						img.height -= img.height * percent;
						img.width -= img.width * percent;	
					};
					if (settings.mw && img.width > settings.mw) {
						percent = (img.width - settings.mw) / img.width;
						setResize();
					}
					if (settings.mh && img.height > settings.mh) {
						percent = (img.height - settings.mh) / img.height;
						setResize();
					}
				}
				
				if (settings.h) {
					img.style.marginTop = Math.max(settings.h - img.height, 0) / 2 + 'px';
				}
				
				setTimeout(function () { // Chrome will sometimes report a 0 by 0 size if there isn't pause in execution
					prep(img);
				}, 1);
				
				if ($related[1] && (index < $related.length - 1 || settings.loop)) {
					$(img).css({cursor: 'pointer'}).click(publicMethod.next);
				}
				
				if (isIE) {
					img.style.msInterpolationMode = 'bicubic';
				}
			};
			img.src = href;
		} else {
			$div().appendTo($loadingBay).load(href, function (data, status, xhr) {
				prep(status === 'error' ? 'Request unsuccessful: ' + xhr.statusText : this);
			});
		}
	};

	// Navigates to the next page/image in a set.
	publicMethod.next = function () {
		if (!active) {
			index = index < $related.length - 1 ? index + 1 : 0;
			publicMethod.load();
		}
	};
	
	publicMethod.prev = function () {
		if (!active) {
			index = index ? index - 1 : $related.length - 1;
			publicMethod.load();
		}
	};

	publicMethod.slideshow = function () {
		var stop, timeOut, className = prefix + 'Slideshow_';
		
		$slideshow.bind(event_closed, function () {
			$slideshow.unbind();
			clearTimeout(timeOut);
			$box.removeClass(className + "off " + className + "on");
		});
		
		function start() {
			$slideshow
			.text(settings.slideshowStop)
			.bind(event_complete, function () {
				timeOut = setTimeout(publicMethod.next, settings.slideshowSpeed);
			})
			.bind(event_load, function () {
				clearTimeout(timeOut);	
			}).one("click", function () {
				stop();
			});
			$box.removeClass(className + "off").addClass(className + "on");
		}
		
		stop = function () {
			clearTimeout(timeOut);
			$slideshow
			.text(settings.slideshowStart)
			.unbind(event_complete + ' ' + event_load)
			.one("click", function () {
				start();
				timeOut = setTimeout(publicMethod.next, settings.slideshowSpeed);
			});
			$box.removeClass(className + "on").addClass(className + "off");
		};
		
		if (settings.slideshow && $related[1]) {
			if (settings.slideshowAuto) {
				start();
			} else {
				stop();
			}
		}
	};

	// Note: to use this within an iframe use the following format: parent.$.fn.colorbox.close();
	publicMethod.close = function () {
		if (open) {
			open = false;
			
			$.event.trigger(event_cleanup);
			
			if (settings.onCleanup) {
				settings.onCleanup.call(element);
			}
			
			$window.unbind('.' + prefix + ' .' + event_ie6);
			
			$overlay.fadeTo('fast', 0);
			
			$box.stop().fadeTo('fast', 0, function () {
				$box.find('iframe').attr('src', 'about:blank'); // change the location of the iframe to avoid a problem in IE with flash objects not clearing.
				
				$loaded.remove();
				
				$box.add($overlay).css({'opacity': 1, cursor: 'auto'}).hide();
				
				try {
					bookmark.focus();
				} catch (e) {
					// do nothing
				}
				
				setTimeout(function () {
					$.event.trigger(event_closed);
					if (settings.onClosed) {
						settings.onClosed.call(element);
					}
				}, 1);
			});
		}
	};

	// A method for fetching the current element ColorBox is referencing.
	// returns a jQuery object.
	publicMethod.element = function () {
		return $(element);
	};

	publicMethod.settings = defaults;

	// Initializes ColorBox when the DOM has loaded
	$(publicMethod.init);

}(jQuery, this));

