﻿/*
* Ethofy Syndication Utilities jQuery Plug-in
* http://www.ethofy.com
*
* Copyright (c) 2009 Ethofy
* Not licensed for independent use - please contact Ethofy for usage rights
*
* DEPENDENCIES: 
*   jQuery
*   jQuery.blockUI
*   jQuery.Query
*   json2.js
*   facebox
*/


(function($) {

    // Declare namespace if not already defined
    if (!$.ethofySyndi) {
        $.ethofySyndi = new Object();
    }


    $.ethofySyndi.setOptions = function(options) {
        $.extend($.ethofySyndi.options, options);
    }

    $.ethofySyndi.options = {
        debugMode: false,
        useCookies: true,
        language: "en"
    }

    $.ethofySyndi._getString = function(language, string) {
        var obj = $.ethofySyndi._strings;
        var lang = language.toLowerCase();
        var ilang = (obj.langs[lang] != undefined) ? obj.langs[lang] : 0;
        var ret = (obj[string]) ? (obj[string][ilang] ? obj[string][ilang] : obj[string][0]) : "";
        return ret;
    }



    /*********** PRIVATE UTILITIES ****************/

    $.ethofySyndi.Private = new Object();
    $.ethofySyndi.Private.Utilities = new Object();

    $.ethofySyndi.Private.Utilities._SI = "";
    $.ethofySyndi.Private.Utilities.getSyndiID = function() {
        if ($.ethofySyndi.Private.Utilities._SI == "") {
            var SI = "";
            SI = location.href.toLowerCase().replace(/[^\/]+\/{2}([^\/]+\/){3}([^\/]+)\/content\/([^\/]+)\/.*/, "$2");
            var QSI = $.query.get("SI");
            if (QSI != "" && QSI != undefined && QSI != null)
                SI = QSI;
            SI = SI.toUpperCase(); // always upper
            $.ethofySyndi.Private.Utilities._SI = SI;
        }
        return $.ethofySyndi.Private.Utilities._SI;
    }
    $.ethofySyndi.Private.Utilities._CFID = "";
    $.ethofySyndi.Private.Utilities.getClientFilesID = function() {
        if ($.ethofySyndi.Private.Utilities._CFID == "")
            $.ethofySyndi.Private.Utilities._CFID = location.href.toLowerCase().replace(/[^\/]+\/{2}([^\/]+\/){4}content\/([^\/]+)\/.*/, "$2");
        return $.ethofySyndi.Private.Utilities._CFID;
    }
    $.ethofySyndi.Private.Utilities._SITENET = "";
    $.ethofySyndi.Private.Utilities.getSITENET = function() {
        if ($.ethofySyndi.Private.Utilities._SITENET == "")
            $.ethofySyndi.Private.Utilities._SITENET = location.href.toLowerCase().replace(/[^\/]+\/{2}([^\/]+\/)([^\/]+)\/([^\/]+\/){2}content\/([^\/]+)\/.*/, "$2").toUpperCase();
        return $.ethofySyndi.Private.Utilities._SITENET;
    }


    $.ethofySyndi.Private.Utilities._ResizeTimerSet = false;
    $.ethofySyndi.Private.Utilities._LastHashSeen = "";
    $.ethofySyndi.Private.Utilities._HostSrc = "";
    $.ethofySyndi.Private.Utilities._FrameId = "";
    $.ethofySyndi.Private.Utilities._LastHeight = 0;

    $.ethofySyndi.Private.Utilities.SetResizeTimer = function() {
        if ($.ethofySyndi.Private.Utilities._ResizeTimerSet == false) {
            setInterval("$.ethofySyndi.Private.Utilities.ResizeTimer()", 250);
            $.ethofySyndi.Private.Utilities._ResizeTimerSet = true;
        }
    }

    $.ethofySyndi.Private.Utilities.ResizeTimer = function() {
        var height = $("body").height();

        if ($.browser.msie)
            height = document.body.scrollHeight;

        height += 50;

	if (height < 600) height = 600;


        if (height != $.ethofySyndi.Private.Utilities._LastHeight) {
            $.ethofySyndi.Private.Utilities._LastHeight = height;
            try {
                if (window.parent.postMessage != undefined)
                    window.parent.postMessage("ETHOFY_AUTOFRAME:" + height, "*");
            } catch (er) { };
        }
    }


    /*********** CUSTOMIZE ****************/

    $.ethofySyndi.Customize = new Object();

    $.fn.ethofySyndi_Customize = function(options) {
        $.ethofySyndi.Customize.currentOptions = $.extend({}, $.ethofySyndi.options, $.ethofySyndi.Customize.options, options);
        $.ethofySyndi.Customize._init();
        return this.each(function() {
            var av = $(this).attr("ethofySyndi");
            av = av.replace(/Customize=([A-Za-z0-9:._-]+)/, "$1");
            var rules = av.split(",");
            for (var ir = 0; ir < rules.length; ir++) {
                var cmd = rules[ir].split(":");
                switch (cmd[0].toLowerCase()) {
                    case "hidewhenset":
                        if ($.ethofySyndi.ProfileManager.isItemDefined(cmd[1]))
                            $(this).css("cssText", "display: none !important"); // workaround for !important
                        break;
                    case "hidewhennotset":
                        if (!$.ethofySyndi.ProfileManager.isItemDefined(cmd[1]))
                            $(this).css("cssText", "display: none !important");
                        break;
                    case "deletewhenset":
                        if ($.ethofySyndi.ProfileManager.isItemDefined(cmd[1]))
                            $(this).remove();
                        break;
                    case "deletewhennotset":
                        if (!$.ethofySyndi.ProfileManager.isItemDefined(cmd[1]))
                            $(this).remove();
                        break;
                    case "deletewhennochildren":
                        if ($(this).find(cmd[1]).length == 0)
                            $(this).remove();
                        break;
                }
            }
        });
    }

    $.ethofySyndi.Customize.options = {}

    $.ethofySyndi.Customize.setOptions = function(options) {
        $.extend($.ethofySyndi.Customize.options, options);
    }

    $.ethofySyndi.Customize._init = function() {
        if ($.ethofySyndi.Customize._initted == null) {
            $.ethofySyndi.Customize._initted = true;
        }
    }



    /*********** PROFILE MANAGER ****************/

    $.ethofySyndi.ProfileManager = new Object();
    $.ethofySyndi.ProfileManager.load = function(options) {
        $.ethofySyndi.ProfileManager.currentOptions = $.extend({}, $.ethofySyndi.options, $.ethofySyndi.ProfileManager.options, options);
        $.ethofySyndi.ProfileManager._init();
        if ($.ethofySyndi.ProfileManager.items == undefined) {
            var SI = $.ethofySyndi.Private.Utilities.getSyndiID();
            if (SI != "") {
                var path = $.ethofySyndi.ProfileManager._host + "/_profiles/" + SI + ".json";
                var script = "<scr" + "ipt type='text/javascript' src='" + path + "' ></scr" + "ipt>" /**/;
                document.write(script);
            }
        }
    }

    $.ethofySyndi.ProfileManager.isItemDefined = function(item) {
        var SI = $.ethofySyndi.Private.Utilities.getSyndiID().toLowerCase();
        if (SI == "contentmenu" || SI == "")
            return true;

        var ret = false;
        try {
            ret = eval("$.ethofySyndi.ProfileManager.items." + item + " != undefined");
        } catch (er) { };
        return ret;
    }

    $.ethofySyndi.ProfileManager._setItems = function(obj) {
        $.ethofySyndi.ProfileManager.items = obj;
        var options = $.ethofySyndi.ProfileManager.currentOptions;
        if (options.onload != null)
            options.onload();
    }

    $.ethofySyndi.ProfileManager._init = function() {
        if ($.ethofySyndi.ProfileManager._initted == null) {
            $.ethofySyndi.ProfileManager._host = location.href.toLowerCase().replace(/(https?:\/\/[^\/]+).*/, "$1");
            $.ethofySyndi.ProfileManager._initted = true;
        }
    }

    $.ethofySyndi.ProfileManager.options = {
        onload: null
    }

    $.ethofySyndi.ProfileManager.setOptions = function(options) {
        $.extend($.ethofySyndi.ProfileManager.options, options);
    }


    /*********** LEAD CAPTURE ****************/

    /*
    * required, email classes - should these be replaced by hard rules so we don't have css collision?
    * custom fields 
    */

    $.ethofySyndi.CaptureLead = function(options) {
        $.ethofySyndi.CaptureLead.currentOptions = $.extend({}, $.ethofySyndi.options, $.ethofySyndi.CaptureLead.options, options);
        $.ethofySyndi.CaptureLead._init();
        var cOpt = $.ethofySyndi.CaptureLead.currentOptions;

        // before doing anything else let's figure out if we previously sent the lead
        lastTime = null; // disabled for now
        if ($.ethofySyndi.options.useCookies) {
            var name = $.ethofySyndi.Private.Utilities.getSyndiID() + "/" + $.ethofySyndi.Private.Utilities.getSITENET() + '/elcm.lc';
            $.cookie(name);
        }
        var now = new Date().getTime();
        if (lastTime != null && (now - lastTime) < cOpt.captureInterval * 1000 * 60 * 60 * 24) {
            $.ethofySyndi.CaptureLead._completed($.ethofySyndi.CaptureLead.resultCodes.prevSent);
            return;
        }

        var notes = (typeof cOpt.notes == 'function') ? cOpt.notes() : cOpt.notes + "";

        var SI = $.ethofySyndi.Private.Utilities.getSyndiID();
        if (SI == "")
            $.ethofySyndi.CaptureLead.currentOptions.debugMode = true;

        var CFID = $.ethofySyndi.Private.Utilities.getClientFilesID();

        $("#ethofy_leadCaptureManager_Language").val(cOpt.language);
        $("#ethofy_leadCaptureManager_SyndicatorID").val(SI);
        $("#ethofy_leadCaptureManager_SourceItemCFID").val(CFID);
        $("#ethofy_leadCaptureManager_SourceItemPath").val(location.href);
        $("#ethofy_leadCaptureManager_SourceItemNotes").val(notes);

        $("#ethofy_leadCaptureManager_CancelButton").val(cOpt.required ? $.ethofySyndi._getString(cOpt.language, "leadcap_cancel") : $.ethofySyndi._getString(cOpt.language, "leadcap_no"));
        $("#ethofy_leadCaptureManager_SubmitButton").val(cOpt.debugMode ? $.ethofySyndi._getString(cOpt.language, "leadcap_yes") + " (DEBUG)" : $.ethofySyndi._getString(cOpt.language, "leadcap_yes"));

        $.facebox({ div: "#ethofy_leadCaptureManager_Container", opacity: 0.8, overlayBG: "white", showFooter: false });
        $("#facebox .ethofy_leadCaptureManager_leadCaptureTable input[type='text']").css("cssText", "width: 300px ; border: solid 1px #cccccc ; padding: 2px ;");

        $("#facebox .ethofy_leadCaptureManager_leadCaptureForm").validate({ errorPlacement: function() { } });
        $("#facebox .ethofy_leadCaptureManager_leadCaptureForm *").blur(function() {
            // $.ethofySyndi.CaptureLead._saveFormValues();
            $("#facebox .ethofy_leadCaptureManager_leadCaptureForm").valid();
            $("#facebox .ethofy_leadCaptureManager_leadCaptureTable input[type='text']").css("cssText", "width: 300px ; border: solid 1px #cccccc ; padding: 2px ; background-color: white;");
            $("#facebox .ethofy_leadCaptureManager_leadCaptureTable input[type='text'].error").css("cssText", "width: 300px; border: solid 1px red ; background-color: #ffe7b8 ;");
        });
        $.ethofySyndi.CaptureLead._loadFormValues();

        return false;
    }

    $.fn.ethofySyndi_CaptureLead = function(options) {
        return this.each(function() {
            $(this).click(function() {
                if (options == undefined) options = new Object();
                if ($(this).attr("href") != undefined && $(this).attr("href") != "" && $(this).attr("href") != "#")
                    options.successLink = $(this).attr("href");
                if ($(this).attr("target") != undefined && $(this).attr("target") != "")
                    options.successLinkTarget = $(this).attr("target");
                $.ethofySyndi.CaptureLead(options);
                return false;
            });
        });
    }

    $.ethofySyndi.CaptureLead.options = {
        callback: null,
        captureInterval: 1,
        notes: "",
        required: true,
        showThanks: true,
        successLink: "",
        successLinkTarget: "_blank"
    }

    $.ethofySyndi.CaptureLead.setOptions = function(options) {
        $.extend($.ethofySyndi.CaptureLead.options, options);
    }

    $.ethofySyndi.CaptureLead.resultCodes = {
        error: 0,
        sent: 1,
        prevSent: 2,
        cancelled: 3,
        bypassed: 4
    }

    $.ethofySyndi.CaptureLead._loadFormValues = function() {
        if (!$.ethofySyndi.options.useCookies) return;
        $("#facebox .ethofy_leadCaptureManager_leadCaptureForm *").filter("[cookie]").each(function() {
            var name = $.ethofySyndi.Private.Utilities.getSyndiID() + "/" + $.ethofySyndi.Private.Utilities.getSITENET() + '/' + $(this).attr("cookie");
            var val = ($.cookie(name) != null) ? $.cookie(name) : "";
            $(this).val(val);
        });
    }
    $.ethofySyndi.CaptureLead._saveFormValues = function() {
        if (!$.ethofySyndi.options.useCookies) return;
        $("#facebox .ethofy_leadCaptureManager_leadCaptureForm *").filter("[cookie]").each(function() {
            var name = $.ethofySyndi.Private.Utilities.getSyndiID() + "/" + $.ethofySyndi.Private.Utilities.getSITENET() + '/' + $(this).attr("cookie");
            $.cookie(name, $(this).val(), { path: '/', expires: 3650 });
        });
    }

    $.ethofySyndi.CaptureLead._submitClicked = function() {
        if (!$("#facebox .ethofy_leadCaptureManager_leadCaptureForm").valid())
            return;
        $.ethofySyndi.CaptureLead._saveFormValues();
        if ($.ethofySyndi.CaptureLead.currentOptions.debugMode == true)
            $.ethofySyndi.CaptureLead._completed($.ethofySyndi.CaptureLead.resultCodes.sent);
        else {
            if ($("#facebox .ethofy_leadCaptureManager_leadCaptureForm").valid()) {
                $(".ethofy_leadCaptureManager_LeadSubmitting").show();
                $("#facebox .ethofy_leadCaptureManager_leadCaptureForm").submit();
            }
        }
    }

    $.ethofySyndi.CaptureLead._cancelClicked = function() {
        $.ethofySyndi.CaptureLead._saveFormValues();
        var result = ($.ethofySyndi.CaptureLead.currentOptions.required) ? $.ethofySyndi.CaptureLead.resultCodes.cancelled : $.ethofySyndi.CaptureLead.resultCodes.bypassed;
        $.ethofySyndi.CaptureLead._completed(result);
    }

    $.ethofySyndi.CaptureLead._completed = function(result) {
        var options = $.ethofySyndi.CaptureLead.currentOptions;

        if (options.showThanks == true && result == $.ethofySyndi.CaptureLead.resultCodes.sent) {
            var thanks = $.ethofySyndi._getString(options.language, "leadcap_thanks");
            $("#facebox .ethofy_leadCaptureManager_Legal").html("");
            $("#facebox .ethofy_leadCaptureManager_leadCaptureTable").html('<tr><td><div style="font-family: arial, helvetica !important; font-size: 14px !important; white-space: normal !important;">' + thanks + "</div></td></tr>");
            window.setTimeout("$.ethofySyndi.CaptureLead._completed2()", 1500);
        }
        else
            $.ethofySyndi.CaptureLead._completed2();
    }
    $.ethofySyndi.CaptureLead._completed2 = function(result) {
        var options = $.ethofySyndi.CaptureLead.currentOptions;

        $('.ethofy_leadCaptureManager_LeadSubmitting').hide();
        $.facebox.close();

        if (result == $.ethofySyndi.CaptureLead.resultCodes.sent ||
            result == $.ethofySyndi.CaptureLead.resultCodes.bypassed) {
            if ($.ethofySyndi.options.useCookies) {
                var name = $.ethofySyndi.Private.Utilities.getSyndiID() + "/" + $.ethofySyndi.Private.Utilities.getSITENET() + '/elcm.lc';
                $.cookie(name, new Date().getTime(), { path: '/', expires: options.captureInterval })
            }
        }
        if ((result == $.ethofySyndi.CaptureLead.resultCodes.sent ||
             result == $.ethofySyndi.CaptureLead.resultCodes.bypassed ||
             result == $.ethofySyndi.CaptureLead.resultCodes.prevSent
             ) && options.successLink != "") {
            window.open(options.successLink, options.successLinkTarget);
        }
        if (options.callback != null)
            options.callback(result);
    }

    $.ethofySyndi.CaptureLead._init = function() {
        if ($.ethofySyndi.CaptureLead._initted == null) {
            // do stuff here
            var outDivFormIframe = ' \
            <div id="ethofy_leadCaptureManager_Container" style="display:none"> \
                <form id="ethofy_leadCaptureManager_leadCaptureForm" class="ethofy_leadCaptureManager_leadCaptureForm" action="http://ibm.ethofytools.com/_ws/postSubmitLead.aspx" method="post" target="ethofy_leadCaptureManager_leadCaptureIframe"> \
                    <input type="hidden" id="ethofy_leadCaptureManager_SyndicatorID" name="ethofy_leadCaptureManager_SyndicatorID" value="" /> \
                    <input type="hidden" id="ethofy_leadCaptureManager_SourceItemCFID" name="ethofy_leadCaptureManager_SourceItemCFID" value="" /> \
                    <input type="hidden" id="ethofy_leadCaptureManager_SourceItemPath" name="ethofy_leadCaptureManager_SourceItemPath" value="" /> \
                    <input type="hidden" id="ethofy_leadCaptureManager_SourceItemNotes" name="ethofy_leadCaptureManager_SourceItemNotes" value="hey, some notes here" /> \
                    <input type="hidden" id="ethofy_leadCaptureManager_Language" name="ethofy_leadCaptureManager_Language" value=en" /> \
                    <table id="ethofy_leadCaptureManager_leadCaptureTable" class="ethofy_leadCaptureManager_leadCaptureTable"> \
                        <tr><td colspan="2" class="ethofy_leadCaptureManager_leadCaptureHeader" ethofySyndiLoc="leadcap_header" style="font-family: arial, helvetica !important; font-size: 14px !important; padding-bottom: 5px; white-space: normal !important;"></td></tr> \
                        <tr> \
                            <td ethofySyndiLoc="leadcap_firstName"></td> \
                            <td><input type="text" cookie="elcm.cfn" id="ethofy_leadCaptureManager_FirstName" name="ethofy_leadCaptureManager_FirstName" class="required"/></td> \
                        </tr> \
                        <tr> \
                            <td ethofySyndiLoc="leadcap_lastName"></td> \
                            <td><input type="text" cookie="elcm.cln" id="ethofy_leadCaptureManager_LastName" name="ethofy_leadCaptureManager_LastName" class="required"/></td> \
                        </tr> \
                        <tr> \
                            <td ethofySyndiLoc="leadcap_company"></td> \
                            <td><input type="text" cookie="elcm.co" id="ethofy_leadCaptureManager_CompanyName" name="ethofy_leadCaptureManager_CompanyName" class="required"/></td> \
                        </tr> \
                        <tr> \
                            <td ethofySyndiLoc="leadcap_city"></td> \
                            <td><input type="text" cookie="elcm.cty" id="ethofy_leadCaptureManager_City" name="ethofy_leadCaptureManager_City" class="required"/></td> \
                        </tr> \
                        <tr> \
                            <td ethofySyndiLoc="leadcap_state"></td> \
                            <td><input type="text" cookie="elcm.stp" id="ethofy_leadCaptureManager_StateOrProvince" name="ethofy_leadCaptureManager_StateOrProvince" class="required"/></td> \
                        </tr> \
                        <tr style="display:none"> \
                            <td ethofySyndiLoc="leadcap_country"></td> \
                            <td><input type="text" cookie="elcm.ctry" id="ethofy_leadCaptureManager_Country" name="ethofy_leadCaptureManager_Country" class=""/></td> \
                        </tr> \
                        <tr> \
                            <td ethofySyndiLoc="leadcap_postal"></td> \
                            <td><input type="text" cookie="elcm.po" id="ethofy_leadCaptureManager_PostalCode" name="ethofy_leadCaptureManager_PostalCode" class="required"/></td> \
                        </tr> \
                        <tr> \
                            <td ethofySyndiLoc="leadcap_phone"></td> \
                            <td><input type="text" cookie="elcm.phn" id="ethofy_leadCaptureManager_PhoneNumber" name="ethofy_leadCaptureManager_PhoneNumber" class="required"/></td> \
                        </tr> \
                        <tr> \
                            <td ethofySyndiLoc="leadcap_email"></td> \
                            <td><input type="text" cookie="elcm.eml" id="ethofy_leadCaptureManager_EmailAddress" name="ethofy_leadCaptureManager_EmailAddress" class="required email"/></td> \
                        </tr> \
                        <tr> \
                            <td ethofySyndiLoc="leadcap_notes"></td> \
                            <td><textarea id="ethofy_leadCaptureManager_CommentsOrNotes" name="ethofy_leadCaptureManager_CommentsOrNotes"></textarea></td> \
                        </tr> \
                        <tr> \
                            <td> \
                            <div id="ethofy_leadCaptureManager_LeadSubmitting" class="ethofy_leadCaptureManager_LeadSubmitting" style="display: none;"><img src="/_e/1/ethofy/libs/_files/submitting.gif" style="float: left;"/><span style="padding-left: 5px; color: #0D23A5; font-weight: bold; line-height: 11pt;" ethofySyndiLoc="leadcap_submitting">Submitting</span></div></td> \
                            <td align="right"><input type="button" id="ethofy_leadCaptureManager_SubmitButton" value="Yes, Contact Me" onclick="$.ethofySyndi.CaptureLead._submitClicked()" />&nbsp;<input type="button" id="ethofy_leadCaptureManager_CancelButton" value="Cancel" onclick="$.ethofySyndi.CaptureLead._cancelClicked()" /></td> \
                        </tr> \
                    </table> \
                </form> \
                <div class="ethofy_leadCaptureManager_Legal" ethofySyndiLoc="leadcap_legal"></div> \
            </div> \
            <iframe id="ethofy_leadCaptureManager_leadCaptureIframe" name="ethofy_leadCaptureManager_leadCaptureIframe" width="20" height="20" src="" style="display:none;"></iframe> \
            ';

            $("body").append(outDivFormIframe);

            $("#ethofy_leadCaptureManager_Container [ethofySyndiLoc]").each(function() {
                $(this).html($.ethofySyndi._getString($.ethofySyndi.CaptureLead.currentOptions.language, $(this).attr("ethofySyndiLoc")));
            });

            $.validator.addMethod("phoneIntl", function(value, element) {
                return this.optional(element) || /^[+]?[-0-9()]+$/.test(value);
            });

            $.ethofySyndi.CaptureLead._initted = true;
        }
    }
    $.ethofySyndi._strings = {
        "langs": {
            "": 0,
            "da-dk": 1,
            "de-de": 2,
            "en": 3,
            "es": 4,
            "es-es": 5,
            "fi-fi": 6,
            "fr-fr": 7,
            "it-it": 8,
            "ja-jp": 9,
            "nb-no": 10,
            "nl-be": 11,
            "nl-nl": 12,
            "pt-br": 13,
            "pt-pt": 14,
            "ru-ru": 15,
            "sv-se": 16,
            "zh-cn": 17
        },
        "leadcap_cancel": [
    "Cancel",
    "Annuller",
    "Abbrechen",
    "Cancel",
    "Cancelar",
    "Cancelar",
    "Peruuta",
    "Annuler",
    "Annulla",
    "取消し",
    "Avbryt",
    "Annuleren",
    "Annuleren",
    "Cancelar",
    "Cancelar",
    "Отменить",
    "Avbryt",
    "取消"
  ],
        "leadcap_city": [
    "City:",
    "By:",
    "Ort:",
    "City:",
    "Ciudad:",
    "Ciudad:",
    "Kaupunki:",
    "Ville :",
    "Città:",
    "市:",
    "Sted:",
    "Plaats:",
    "Plaats:",
    "Cidade:",
    "Cidade:",
    "Город:",
    "Stad:",
    "城市："
  ],
        "leadcap_company": [
    "Company name:",
    "Firmanavn:",
    "Firmenname:",
    "Company name:",
    "Nombre de la empresa:",
    "Nombre de la empresa:",
    "Yrityksen nimi:",
    "Nom de la société :",
    "Nome dell'azienda:",
    "会社名:",
    "Firmanavn:",
    "Bedrijfsnaam:",
    "Bedrijfsnaam:",
    "Nome da empresa:",
    "Nome da empresa:",
    "Название компании:",
    "Företagsnamn:",
    "公司名称："
  ],
        "leadcap_country": [
    "Country:",
    "Land:",
    "Land:",
    "",
    "País:",
    "País:",
    "Maa:",
    "Pays :",
    "Nazione:",
    "国:",
    "Land:",
    "Land:",
    "Land:",
    "País:",
    "País:",
    "Страна:",
    "Land:",
    "国家："
  ],
        "leadcap_email": [
    "Email address:",
    "E-mail-adresse:",
    "E-Mail-Adresse:",
    "Email address:",
    "Correo electrónico:",
    "Correo electrónico:",
    "Sähköpostiosoite:",
    "Adresse e-mail :",
    "Indirizzo e-mail:",
    "メールアドレス:",
    "E-postadresse:",
    "E-mailadres:",
    "E-mailadres:",
    "Endereço de e-mail:",
    "Endereço de Email:",
    "Электронный адрес:",
    "E-postadress:",
    "电子邮件地址："
  ],
        "leadcap_firstName": [
    "First name:",
    "Fornavn:",
    "Vorname:",
    "",
    "Nombre:",
    "Nombre:",
    "Etunimi:",
    "Prénom :",
    "Nome:",
    "お名前:",
    "Fornavn:",
    "Voornaam:",
    "Voornaam:",
    "Primeiro nome:",
    "Primeiro nome:",
    "Имя:",
    "Förnamn:",
    "名字："
  ],
        "leadcap_header": [
    "We would like to contact you to follow up on your request.  Please complete this form:",
    "Vi vil gerne kontakte dig for at følge op på din anmodning. Udfyld venligst denne formular:",
    "Zur Nachverfolgung Ihrer Anfrage möchten wir Sie kontaktieren. Bitte füllen Sie dieses Formular aus:",
    "",
    "Quisiéramos  contactarlo para dar seguimiento a su pedido. Por favor complete este formulario:",
    "Nos gustaría contactar con usted para responder a su petición. Por favor, complete este formulario:",
    "Haluaisimme ottaa sinuun yhteyttä pyyntösi johdosta. Ole hyvä ja täytä tämä lomake:",
    "Nous souhaiterions vous contacter pour faire suite à votre demande. Veuillez compléter ce formulaire :",
    "Vorremmo contattarvi in seguito alla vostra richiesta. Vi preghiamo di completare questo modulo:",
    "お客様のリクエストをフォローするため、ご連絡を差し上げます。こちらのフォームにご記入ください。",
    "Vi vil gjerne ta kontakt med deg for å følge opp forespørselen din. Vennligst fyll ut dette skjemaet:",
    "We willen graag contact met u opnemen over uw verzoek. Vul a.u.b. dit formulier in:",
    "We willen graag contact met u opnemen over uw verzoek. Vul a.u.b. dit formulier in:",
    "Gostaríamos de contatá-lo  para acompanhar o seu pedido. Por favor, preencha o formulário:",
    "Gostaríamos de contactá-lo  para acompanhar o seu pedido. Por favor, preencha o seguinte formulário:",
    "Мы хотели бы связаться с Вами для выполнения дальнейших действий в связи с Вашим запросом. Пожалуйста, заполните данную форму:",
    "Vi skulle vilja kontakta dig och göra en uppföljning enligt din begäran. Var vänlig fyll i detta formulär:",
    "我们将与您联系，以跟踪您的请求。请填写此表："
  ],
        "leadcap_lastName": [
    "Last name:",
    "Efternavn:",
    "Zuname:",
    "",
    "Apellido:",
    "Apellido:",
    "Sukunimi:",
    "Nom :",
    "Cognome:",
    "姓:",
    "Etternavn:",
    "Familienaam:",
    "Achternaam:",
    "Sobrenome:",
    "Apelido:",
    "Фамилия:",
    "Efternamn:",
    "姓氏："
  ],
        "leadcap_legal": [
    "I authorize you to contact me about your products and services.  I understand my contact information will be used solely by you and your privacy policy applies, and that my information is being provided to you through a hosting party whose privacy policy also applies.",
    "Jeg giver jer lov til at kontakte mig vedrørende jeres produkter og tjenester. Jeg er indforstået med, at min kontaktinformation udelukkende vil blive brugt af jer, at jeres politik om beskyttelse af personlige data er gældende, og at mine oplysninger bliver viderebragt til jer af et hosting-firma, hvis politik om beskyttelse af private data også er gældende.",
    "Ich ermächtige Sie hiermit, mich über Ihre Produkte und Dienstleistungen zu kontaktieren. Mir ist bekannt, dass meine Kontaktdaten ausschließlich von Ihnen verwendet werden und dass Ihre Datenschutzbestimmungen gelten, und dass meine Daten Ihnen über eine Hosting-Partei übermittelt werden, deren Datenschutzbestimmungen ebenfalls gelten.",
    "I authorize you to contact me about your products and services.  I understand my contact information will be used solely by you and your privacy policy applies, and that my information is being provided to you through a hosting party whose privacy policy also applies.",
    "Les autorizo a comunicarse conmigo acerca de sus productos y servicios. Comprendo que mi información de contacto será utilizada exclusivamente por ustedes y que se aplica su política de privacidad, y que mi información está siendo proporcionada a usted a través de un grupo de hospedaje en el que también se aplica la política de privacidad.",
    "Les autorizo a contactar conmigo acerca de sus productos y servicios. Comprendo que mi información de contacto será utilizada exclusivamente por ustedes y que se aplica su política de privacidad, y que mi información les está siendo proporcionada a través de un grupo de hospedaje cuya política de privacidad también se aplica.",
    "Hyväksyn sen, että minuun otetaan yhteyttä koskien tuotteitanne ja palveluitanne. Ymmärrän, että yhteystietojani ei käytä yrityksenne lisäksi kukaan muu ja että tietosuojakäytäntöä noudatetaan. Ymmärrän myös, että tietoni toimitetaan teille hosting-osapuolen välityksellä, jonka tietosuojakäytäntöä myöskin noudatetaan.",
    "Je vous autorise à me contacter au sujet de vos produits et services. J'ai noté que mes coordonnées ne seront utilisées que par vous et dans le cadre de votre politique de confidentialité, et que ces informations vous sont fournies par un hébergeur également soumis à une politique de confidentialité.",
    "Vi autorizzo a contattarmi per comunicarmi novità su prodotti e servizi. Prendo visione del fatto che i miei contatti verranno utilizzati esclusivamente da Voi e che sarà applicata la vostra informativa sulla privacy, e comprendo inoltre che i miei dati vi verranno forniti tramite un hosting party, che applicherà a sua volta la propria informativa sulla privacy.",
    "貴社が製品やサービスに関して連絡することを許可します。 貴社以外が連絡先情報を使用することはないこと、また連絡先情報は貴社の個人情報保護方針に従って管理されることを理解しました。加えて、この個人情報はホスティングパーティによって貴社に提供されること、そしてホスティングパーティの個人情報保護方針もまた適用されることを理解しました。",
    "Jeg gir deg tillatelse til å kontakte meg om dine produkter og tjenester. Jeg forstår at kontaktinformasjonen min kun vil bli brukt av dere, at deres personvernregler gjelder og at min informasjon blir gjort tilgjengelig til dere gjennom en vertstjeneste, hvis personvernregler også gjelder.",
    "Ik geef u toestemming om contact met mij op te nemen voor informatie over onze producten en services. Ik begrijp dat mijn contactinformatie uitsluitend door u wordt gebruikt en dat uw privacybeleid van toepassing is en dat mijn informatie aan u wordt verstrekt via een hostingpartij waarvan het privacybeleid ook van toepassing is.",
    "Ik geef u toestemming om contact met mij op te nemen voor informatie over onze producten en services. Ik begrijp dat mijn contactinformatie uitsluitend door u wordt gebruikt en dat uw privacybeleid van toepassing is, en dat mijn informatie aan u wordt verstrekt via een hostingpartij wiens privacybeleid ook van toepassing is.",
    "Autorizo seu contato para divulgação dos seus produtos e serviços. Estou ciente de que minhas informações de contato serão utilizadas exclusivamente por você e que sua política de privacidade será aplicada, e que minhas informações estão sendo fornecidas a você através de um hospedeiro terceirizado cuja política de privacidade também será aplicada.",
    "Autorizo-os a entrar em contacto comigo sobre os seus produtos e serviços. Compreendo que as minhas informações de contacto serão exclusivamente utilizadas por si e que a sua politica de privacidade se aplica e que a minha informação está-lhe a ser providenciada através de uma política de hospedagem cuja politica de privacidade também se aplica.",
    "Я даю разрешение высылать мне информацию о Ваших продуктах и услугах. Я понимаю, что мои контактные данные будут использоваться исключительно Вами, и на них распространяются Ваши правила конфиденциальности, а также что мои данные предоставляются Вам стороной, обеспечивающей размещение содержания, и правила конфиденциальности этой стороны также распространяются на мои данные.",
    "Jag godkänner att ni kontaktar mig angående era produkter och tjänster. Jag är medveten om att min kontaktinformation endast kommer att användas av er och att er privatpolicy gäller och att min information har tillhandahållits er genom en värdpart samt att även dennes privatpolicy gäller.",
    "我授权您就您的产品和服务与我联系。 我了解，我的联系信息将仅供您方单独使用，并且您方会应用隐私策略；并且我的信息将通过也会应用其隐私策略的托管方提供给您方。"
  ],
        "leadcap_no": [
    "Skip this step",
    "Spring trinet over",
    "Diesen Schritt überspringen",
    "",
    "Saltear este paso",
    "Saltar este paso",
    "Ohita tämä vaihe",
    "Passer cette étape",
    "Ignora questo passo",
    "この手順を飛ばす",
    "Hopp over dette trinnet",
    "Deze stap overslaan",
    "Deze stap overslaan",
    "Pular esta etapa",
    "Saltar este passo",
    "Пропустить этот шаг",
    "Hoppa över detta steg",
    "跳过此步骤"
  ],
        "leadcap_notes": [
    "Notes:",
    "Bemærkninger:",
    "Anmerkungen:",
    "Notes:",
    "Notas:",
    "Notas:",
    "Huomautuksia:",
    "Notes :",
    "Note:",
    "メモ:",
    "Merknader:",
    "Notities",
    "Opmerkingen:",
    "Observações:",
    "Notas:",
    "Примечания:",
    "Anteckningar:",
    "注："
  ],
        "leadcap_phone": [
    "Phone number:",
    "Telefonnr.:",
    "Telefonnummer:",
    "Phone number:",
    "Número de teléfono:",
    "Número de teléfono:",
    "Puhelinnumero:",
    "Numéro de téléphone :",
    "Numero di telefono:",
    "電話番号:",
    "Telefonnummer:",
    "Telefoonnummer:",
    "Telefoonnummer:",
    "Telefone:",
    "Telefone:",
    "Номер телефона:",
    "Telefonnummer:",
    "电话号码："
  ],
        "leadcap_postal": [
    "Zip/Postal code:",
    "Postnummer:",
    "PLZ:",
    "Zip/Postal code:",
    "Código Postal:",
    "Código Postal:",
    "Postinumero:",
    "Code postal :",
    "Codice postale:",
    "郵便番号:",
    "Postkode:",
    "Postcode:",
    "Postcode:",
    "CEP",
    "Código postal:",
    "Индекс:",
    "Postnummer:",
    "邮政编码："
  ],
        "leadcap_state": [
    "State/Province:",
    "Stat/provins:",
    "Staat/Provinz",
    "State/Province:",
    "Estado / Provincia:",
    "Estado / Provincia:",
    "Osavaltio/maakunta:",
    "État / Province :",
    "Stato/Provincia:",
    "州:",
    "Fylke / Kommune",
    "Staat/Provincie:",
    "Provincie:",
    "Estado",
    "Estado/Província:",
    "Штат/Провинция:",
    "Stat/provins:",
    "州/省："
  ],
        "leadcap_submitting": [
    "Submitting",
    "Sender",
    "Übermittlung wird durchgeführt",
    "Submitting",
    "Enviando",
    "Enviando",
    "Lähetetään",
    "Envoi en cours",
    "Invio in corso",
    "送信中",
    "Sender",
    "Versturen",
    "Indiening",
    "Enviando",
    "A submeter",
    "Подача",
    "Skickar",
    "正在提交："
  ],
        "leadcap_thanks": [
    "Thank you.  We will contact you shortly.",
    "Tak. Du hører snarest fra os.",
    "Vielen Dank. Wir werden Sie in kürze kontaktieren.",
    "",
    "Gracias. Nos comunicaremos con usted a la brevedad.",
    "Gracias. Contactaremos con usted en breve.",
    "Kiitos. Otamme pian yhteyttä.",
    "Merci. Nous vous contacterons sous peu.",
    "Grazie. Vi contatteremo a breve.",
    "ありがとうございます。後ほどご連絡いたします。",
    "Takk. Vi vil ta kontakt med deg innen kort tid.",
    "Dank u. We nemen binnenkort contact op.",
    "Dank u. We nemen binnenkort contact op.",
    "Gratos. Iremos contatá-lo em breve.",
    "Obrigado. Entraremos em contacto brevemente.",
    "Спасибо. Мы вскоре с Вами свяжемся.",
    "Tack. Du kommer att kontaktas inom kort.",
    "谢谢。我们很快就会与您联系。"
  ],
        "leadcap_yes": [
    "Submit",
    "Send",
    "Abschicken",
    "Submit",
    "Enviar",
    "Enviar",
    "Lähetä",
    "Envoyer",
    "Invia",
    "送信",
    "Send",
    "Versturen",
    "Versturen",
    "Enviar",
    "Submeter",
    "Подать",
    "Skicka",
    "提交"
  ],
        "leadcap_yourName": [
    "Your name:",
    "Dit navn:",
    "Ihr Name:",
    "Your name:",
    "Su nombre:",
    "Su nombre:",
    "Nimi:",
    "Votre nom :",
    "Vostro nome:",
    "お客様のお名前:",
    "Ditt navn:",
    "Uw naam:",
    "Uw naam:",
    "Seu nome:",
    "Seu nome:",
    "Ваше имя:",
    "Ditt namn:",
    "您的姓名："
  ]
    }






})(jQuery);
jQuery(document).ready(function($) {
    $.ethofySyndi.Private.Utilities.SetResizeTimer();
});

