

/* Resource 2925 */

;var firstOpenRegister = true;

$(document).ready(function(){
    if (showContentMasterOnRegister == "1"){
    	$("#LoginUserRegisterBtn").click(function(){
            if (firstOpenRegister){
            	if($('#contentmaster_register').length > 0 && ($("#LoginUserRegisterBtn").attr("aria-expanded") == 'false' || $("#LoginUserRegisterBtn").attr("aria-expanded") == undefined)){
                	$('#contentmaster_register').append('<center style="color: white;margin: 10px;">A atualizar  <img src="/images/loader.gif"></center>');
                	updatefieldsRegister('contentmaster_register', "/info-registo-rapido",'');  
            	}
                firstOpenRegister = false;
            }
            else{
            	if (typeof readjustLargeOptionsMenuUserLogged == 'function' && username != '')
                {   
                    setTimeout(function(){
                        if ($(".winsig_large_options_menu_user_not_logged").length > 0)
                            readjustLargeOptionsMenuUserNotLogged();
                        else
                            readjustLargeOptionsMenuUserLogged();
                    },200);
                }
                else if (typeof readjustLargeOptionsMenuUserNotLogged == 'function')
                {
                    setTimeout(function(){
                        if ($(".winsig_large_options_menu_user_logged").length > 0)
                            readjustLargeOptionsMenuUserLogged();
                        else
                            readjustLargeOptionsMenuUserNotLogged();
                    },200);
                }     
            }
    	}); 
    }
});

function updatefieldsRegister(element,url,filter1){
    $("#" +element).fadeTo("fast", 0.3, function() {});
    $.get(url+'?ajaxget=1&'+filter1, function( data ) {
        //jQuery('html,body').animate({scrollTop:0},0);
        $("#" +element).html('');
        $("#" +element).fadeTo("fast", 1, function() {});
        $("#" +element).html( data );
        console && console.log( "Load was performed." );
        
        //initializeAllJSComponents();
    }).done(function() { 
        /*ajustes scroll*/
        if (typeof readjustLargeOptionsMenuUserLogged == 'function' && username != '')
        {   
            setTimeout(function(){
                if ($(".winsig_large_options_menu_user_not_logged").length > 0)
                    readjustLargeOptionsMenuUserNotLogged();
                else
                    readjustLargeOptionsMenuUserLogged();
            },200);
        }
        else if (typeof readjustLargeOptionsMenuUserNotLogged == 'function')
        {
            setTimeout(function(){
                if ($(".winsig_large_options_menu_user_logged").length > 0)
                    readjustLargeOptionsMenuUserLogged();
                else
                    readjustLargeOptionsMenuUserNotLogged();
            },200);
        }     
    });
}

/* Resource 1648 */

;function CleanALLShoppingCartGraph(){
    var colcount = 0;
    $("#table_product th").each(function(){
        colcount++;
    });
    var n=0;
    $("#table_product tr").each(function(){
        if(n >= 1) {
            $(this).remove();
        }
        n++;
    });
    $("#table_product").append('<tr>'+
                            '<td data-th="empty" colspan='+colcount+'><label>'+no_information_display+'.</label></td>'+
                            '<tr>');
    $('#total_itens').html("0");
    $('#total_price').html("0,00 €");
    $('#total_price_iva').html("0,00 €");
    $("#end_purchase").addClass("disabled");
    
    if($("#total_savings").length>0)
        $("#total_savings").html("0,00 €");
    
	GetStateShoppingCart();
}


function GetStateShoppingCart(){
    $.ajax({
        url: "/ActionInvokerGenericAPI.ashx?input=dyn-post&output=json&ActionID=4894",
        type: "post",
        data: 'pvpPriceType='+pvpPriceType+'&DocumentType='+DocumentType+'&showTotalLinesPerCart='+showTotalLinesPerCart,
        success: function(response, textStatus, jqXHR) {  
            console && console.log(response);
            if (response != ''){
                if(showItemsAndTotalInfo == '1'){
                	if (withoutTax == 1)
                		$('#StateShoppingCart').html('<strong>'+ response.data[0].nitems +'</strong> '+items+', '+total+' <strong>'+(response.data[0].totalValueWithoutTax).toFixed(2).replace(".",",")+' €</strong>');
                	else
                    	$('#StateShoppingCart').html('<strong>'+ response.data[0].nitems +'</strong> '+items+', '+total+' <strong>'+(response.data[0].totalValue).toFixed(2).replace(".",",")+' €</strong>');
                }
                else if (showItemsInfo == '1'){
                	$("#stateShoppingCartNItems").html(response.data[0].nitems);
                }
             }else{
                console && console.log("error");
            }
        },
        error: function(jqXHR, textStatus, errorThrown) {
            console && console.log("error - GetStateShoppingCart");
        }
    });    
}

var placeorderURL;

function checkOrderRequirements(url){ 
    
    if(loginValidation){
    	if(username !== ""){
            if (parseFloat(minOrder)>0 || minItemsOrder>0){
                placeorderURL = url;
                
                $.ajax({
                    url: "/ActionInvokerGenericAPI.ashx?input=dyn-post&output=json&ActionID=4894",
                    type: "post",
                    data: 'pvpPriceType='+pvpPriceType+'&DocumentType='+DocumentType+'&showTotalLinesPerCart='+showTotalLinesPerCart,
                    success: function(response, textStatus, jqXHR) {  
                        console && console.log(response);
                        if (response != ''){
                            if (parseFloat(minOrder)>0 && response.data[0].totalValue < parseFloat(minOrder))
                            {
                                $("#popup_message .message").html(orderMinimumRequired);
                                $("#popup_message").modal();   
                            }
                            else{
                                if (minItemsOrder>0 && response.data[0].nitems < parseFloat(minItemsOrder))
                                {
                                    $("#popup_message .message").html(CartZeroItems);
                                    $("#popup_message").modal();   
                                }
                                else{
                                	if (response.data[0].AllowNoStock != '1'){
                                    	$("#popup_message .message").html(orderDisallowNoStock);
                                    	$("#popup_message").modal(); 
                                        // window.location.href = cartURL;
                                	}
                                    else{
                                        window.location.href = placeorderURL;
                                    }
                                }
                            }
                        }else{
                            console && console.log("error");
                        }
                    },
                    error: function(jqXHR, textStatus, errorThrown) {
                        console && console.log("error - GetStateShoppingCart");
                    }
                });    
            }
            else{
                window.location.href = url;
            }
            //
        }else{
        	console.log("necessita de fazer login");
            $("#popup_message .message").html(Login_Register);
            $("#popup_message").modal();
            if (sessExpRedirect == 1){
                setTimeout(function() {	 
                    $('#popup_message').modal('hide');
                    window.location.href = "/session-expired";
                }, 2500);
            }
        }
    }else{
    
        if (parseFloat(minOrder)>0){
            placeorderURL = url;
            
            $.ajax({
                url: "/ActionInvokerGenericAPI.ashx?input=dyn-post&output=json&ActionID=4894",
                type: "post",
                data: 'pvpPriceType='+pvpPriceType+'&DocumentType='+DocumentType+'&showTotalLinesPerCart='+showTotalLinesPerCart,
                success: function(response, textStatus, jqXHR) {  
                    console && console.log(response);
                    if (response != ''){
                        if (response.data[0].totalValue < parseFloat(minOrder))
                        {
                            $("#popup_message .message").html(orderMinimumRequired);
                            $("#popup_message").modal();   
                        }
                        else{
                            window.location.href = placeorderURL;
                        }
                    }else{
                        console && console.log("error");
                    }
                },
                error: function(jqXHR, textStatus, errorThrown) {
                    console && console.log("error - GetStateShoppingCart");
                }
            });    
        }
        else{
            window.location.href = url;
        }
      
	}
}

$(document).ready(function(){
    if (showContentMasterOnCart == "1"){
    	$("#StateShoppingCart").click(function(){
            if($('#contentmaster_cart').length > 0 && ($("#StateShoppingCart").attr("aria-expanded") == 'false' || $("#StateShoppingCart").attr("aria-expanded") == undefined)){
                $('#contentmaster_cart').append('<center style="color: white;margin: 10px;">A atualizar  <img src="/images/loader.gif"></center>');
                updatefieldsCart('contentmaster_cart', "/info-carrinho",'');  
            }
            
        	//callPage('contentmaster_cart','',"#/");   
    	}); 
    }
    
    if(username == ""){
        $('#endPurchase').addClass('disabled');
    }
    
    var endBtnHtml;
    var seeCartHtml
    
    endBtnHtml = $("#endPurchase a").html();
    $("#endPurchase a").click(function(event){
        $("#endPurchase a").html("<img src=\"/images/loader.gif\" title=\"A carregar\" alt=\"A carregar informação\">");
    });
    
    seeCartHtml = $("#seeCart a").html();
    $("#seeCart a").click(function(event){
        $("#seeCart a").html("<img src=\"/images/loader.gif\" title=\"A carregar\" alt=\"A carregar informação\">");
    });
    
    
});

function updatefieldsCart(element,url,filter1){
    $("#" +element).fadeTo("fast", 0.3, function() {});
    if (filter1 != '') filter1 = '&' + filter1;
    
    $.get(url+'?ajaxget=1'+ filter1 , function( data ) {
        //jQuery('html,body').animate({scrollTop:0},0);
        $("#" +element).html('');
        $("#" +element).fadeTo("fast", 1, function() {});
        $("#" +element).html( data );
        console && console.log( "Load was performed" );
        
        /*ajustes scroll*/
        if (typeof readjustLargeOptionsMenuUserLogged == 'function' && username != '')
        {   
            setTimeout(function(){
                if ($(".winsig_large_options_menu_user_not_logged").length > 0)
                    readjustLargeOptionsMenuUserNotLogged();
                else
                    readjustLargeOptionsMenuUserLogged();
            },200);
        }
        else if (typeof readjustLargeOptionsMenuUserNotLogged == 'function')
        {
            setTimeout(function(){
                if ($(".winsig_large_options_menu_user_logged").length > 0)
                    readjustLargeOptionsMenuUserLogged();
                else
                    readjustLargeOptionsMenuUserNotLogged();
            },200);
        }
       // if (typeof readjustLargeOptionsMenuUserB2BLogged == 'function') 
         //   setTimeout(function(){readjustLargeOptionsMenuUserB2BLogged();},1500);         
    })
        .done(function() { 
               
        });
}

/* Resource 2085 */

;$(function() {

    listGridNumber = listGridNumber+'';
    if(listGridNumber.indexOf('1')>-1){
        $('.winsig_item_list_grid_1').each(function(index){
            
            var attrValue;
            
            if($(this).attr('class').indexOf('active')>-1){
                attrValue = $(this).attr('class').substr(0,$(this).attr('class').length-('active'.length+2))+(index+1);
                $(this).attr('class',attrValue);
                $(this).addClass('active');
            }else{
                attrValue = $(this).attr('class').substr(0,$(this).attr('class').length-2)+(index+1);
                $(this).attr('class',attrValue);
            }
            
        });
    }

});

function updateContentStatus(contentId){
    var itemToReplc = $("#contentStatusState_"+contentId);
    var state = itemToReplc.attr("state");
	$.ajax({
        url: "/ActionInvokerGenericAPI.ashx?input=dyn-post&output=string&ActionID=5455",
        type: "post",
        data: "title=&reference=&about=&price=&imageName=&parentID=&publishStatus="+state+"&idRelatedPage=&contentType=&contentID=" + contentId + "&action=4", 
        success: function(response, textStatus, jqXHR) {
            if(response && !isNaN(response)) {    
                if (response == 0){
                    $("#popup_message .message").html(login_required);
                    $("#popup_message").modal(); 
                }
                else{
                    $("#popup_message .message").html(content_state_updated);
                    $("#popup_message").modal(); 
                    if (state == 2){
                        itemToReplc.removeClass("red");
                        itemToReplc.addClass("green");
                        itemToReplc.html('Activate<span class="fa fa-check"></span>');
                        itemToReplc.attr("state","1");
                    }
                    else if (state == 1){
                        itemToReplc.removeClass("green");
                        itemToReplc.addClass("red");
                        itemToReplc.html('Inactivate<span class="fa fa-remove"></span>');
                        itemToReplc.attr("state","2");
                    }
                }
            }
        },
        error: function(jqXHR, textStatus, errorThrown) {
            if(console.log) console.log("The following error occured: " + textStatus, errorThrown);
            //$("#msg_dialogo").html("<h1>Ocorreu um erro!</br>Não foi possível registar.</h1>");
            //$('#popupSendSucess').click();
        },
        complete: function() {
            //$inputs.removeAttr("disabled");
        }
    });
}

/* Resource 2964 */

;/*
$(function(){

    debugger;
    var email = '{{Email}}';
    var phone = '{{phone}}';
    
    Emails = email.split(';');
	Phones = phone.split(';');
    
    if(Emails.length>1){
        
        var emailscode = '';
        
        Emails.forEach(function(item){
    		emailscode += '<a href="mailto:'+item+'">'                                  
                    	+item+'</a>';        
        });
        
        $('#email').replaceWith(emailscode);

    }
    
    if(Phones.length>1){

        var phonescode = '';
        
        Phones.forEach(function(item){
    		phonescode += '<div>'+item+'</div>';        
        });        
        
        $('phone').replaceWith(phonescode);
            
    }        
    
});*/

/* Resource 1696 */

;function sendGeneralEmail(id_type, id_Content, extra_tokens,to,cc,bcc,id_ContentTemplate,ContentAlias,ContentText,ContentSubject,ContentLink,ContentName,ContentImage, id_Newsletter, id_Repository, id_Language, id_User, Attachment_ReportID, Attachment_ActionID, Attachment_ActionTokens, Attachment_Name, Attachment_MediaType, SystemEmail){ 
    if(id_type >= 1){        
        
        var DataToSend = 'id_type='+(id_type == undefined ? '1' : id_type)+'&to='+(to == undefined ? 0 : to)+'&ContentAlias='+(ContentAlias == undefined ? 0 : ContentAlias)+
            '&cc='+(cc == undefined ? 0 : cc)+'&bcc='+(bcc == undefined ? 0 : bcc)+'&id_ContentTemplate='+(id_ContentTemplate == undefined ? 0 : id_ContentTemplate)+
            '&id_Content='+(id_Content == undefined ? 0 : id_Content)+'&ContentText='+(ContentText == undefined ? 0 : ContentText)+'&ContentSubject='+(ContentSubject == undefined ? 0 : ContentSubject)+
            '&ContentLink='+(ContentLink == undefined ? 0 : ContentLink)+'&ContentName='+(ContentName == undefined ? 0 : ContentName)+'&ContentImage='+(ContentImage == undefined ? 0 : ContentImage)+
            '&extra_tokens='+(extra_tokens == undefined ? 0 : extra_tokens)+'&id_Newsletter='+(id_Newsletter == undefined ? 0 : id_Newsletter)+'&id_Repository='+(id_Repository == undefined ? 0 : id_Repository)+
            '&id_Language='+(id_Language == undefined ? 1 : id_Language)+'&id_User='+(id_User == undefined ? 0 : id_User)+'&Attachment_ReportID='+(Attachment_ReportID == undefined ? 0 : Attachment_ReportID)+
            '&Attachment_ActionID='+(Attachment_ActionID == undefined ? 0 : Attachment_ActionID)+'&Attachment_ActionTokens='+(Attachment_ActionTokens == undefined ? 0 : Attachment_ActionTokens)+'&Attachment_Name='+(Attachment_Name == undefined ? 0 : Attachment_Name)+
            '&Attachment_MediaType='+(Attachment_MediaType == undefined ? 0 : Attachment_MediaType)+'&SystemEmail='+(SystemEmail == undefined ? 0 : SystemEmail);
        
        $.ajax({
            url: "/ActionInvokerGenericAPI.ashx?input=dyn-post&output=string&ActionID=5069&t=" + new Date().getTime(),
            type: "post",
            data: DataToSend,
            success: function(response, textStatus, jqXHR) {
                console && console.log(response);
            },error: function(jqXHR, textStatus, errorThrown) {
                console && console.log("The following error occurred: " + textStatus, errorThrown);
            }
        });
    }
}


function sendGeneralEmail_V2(data){ 
	if(data.id_type >= 1){        
        
        var DataToSend = 'id_type='+(data.id_type == undefined ? '1' : data.id_type)+'&to='+(data.to == undefined ? 0 : data.to)+'&ContentAlias='+(data.ContentAlias == undefined ? 0 : data.ContentAlias)+
            '&cc='+(data.cc == undefined ? 0 : data.cc)+'&bcc='+(data.bcc == undefined ? 0 : data.bcc)+'&id_ContentTemplate='+(data.id_ContentTemplate == undefined ? 0 : data.id_ContentTemplate)+
            '&id_Content='+(data.id_Content == undefined ? 0 : data.id_Content)+'&ContentText='+(data.ContentText == undefined ? 0 : data.ContentText)+'&ContentSubject='+(data.ContentSubject == undefined ? 0 : data.ContentSubject)+
            '&ContentLink='+(data.ContentLink == undefined ? 0 : data.ContentLink)+'&ContentName='+(data.ContentName == undefined ? 0 : data.ContentName)+'&ContentImage='+(data.ContentImage == undefined ? 0 : data.ContentImage)+
            '&extra_tokens='+(data.extra_tokens == undefined ? 0 : data.extra_tokens)+'&id_Newsletter='+(data.id_Newsletter == undefined ? 0 : data.id_Newsletter)+'&id_Repository='+(data.id_Repository == undefined ? 0 : data.id_Repository)+
            '&id_Language='+(data.id_Language == undefined ? 1 : data.id_Language)+'&id_User='+(data.id_User == undefined ? 0 : data.id_User)+'&Attachment_ReportID='+(data.Attachment_ReportID == undefined ? 0 : data.Attachment_ReportID)+
            '&Attachment_ActionID='+(data.Attachment_ActionID == undefined ? 0 : data.Attachment_ActionID)+'&Attachment_ActionTokens='+(data.Attachment_ActionTokens == undefined ? 0 : data.Attachment_ActionTokens)+'&Attachment_Name='+(data.Attachment_Name == undefined ? 0 : data.Attachment_Name)+
            '&Attachment_MediaType='+(data.Attachment_MediaType == undefined ? 0 : data.Attachment_MediaType)+'&SystemEmail='+(data.SystemEmail == undefined ? 0 : data.SystemEmail);
        
        $.ajax({
            url: "/ActionInvokerGenericAPI.ashx?input=dyn-post&output=string&ActionID=5069&t=" + new Date().getTime(),
            type: "post",
            data: DataToSend,
            success: function(response, textStatus, jqXHR) {
                console && console.log(response);
            },error: function(jqXHR, textStatus, errorThrown) {
                console && console.log("The following error occurred: " + textStatus, errorThrown);
            }
        });
    }
}

/**
sendGeneralEmail(1,1926,"{reference:'dfg23'}",'tiago.duarte@winsig.pt')

function sendGenericEmail(srequest){ 


//ação 4005 envia email generico
$.ajax({
type: "POST",
url: "/ActionInvokerGenericAPI.ashx?input=dyn-post&ActionID=4005",
data: srequest
}).done(function(rsp) {
//console.log("sucesso."+mail);
}).fail(function() {
//console.log("Erro.");
});
}

**/

/* Resource 3053 */

;;function stopCloseOptionsMenu(){$(".winsig_options_menu .btn-group ul.dropdown-menu,.winsig_large_options_menu_user_logged .btn-group ul.dropdown-menu,.winsig_large_options_menu_user_not_logged .btn-group ul.dropdown-menu").on("click",function(n){n.stopPropagation()})}$(document).ready(function(){$("#header #registerForm ul.dropdown-menu.inner.selectpicker").on("click","li",function(){var i,n,t;$("#header #registerForm select option").removeAttr("selected");i=$($(event.target).parent())[0].text;n=$(event.target).parent().attr("rel");typeof n=="undefined"&&(n=$(event.target).parent().parent().attr("rel"));t=$("#header #registerForm select option:eq("+n+")").val();$("#header #registerForm select").val(t);typeof $(event.target).parents().eq(4).find(".btn-group.bootstrap-select.select_box.show-tick.form-control.open")[0]!="undefined"?$(event.target).parents().eq(4).find(".btn-group.bootstrap-select.select_box.show-tick.form-control.open")[0].className="btn-group bootstrap-select select_box show-tick form-control":$(event.target).parents().eq(5).find(".btn-group.bootstrap-select.select_box.show-tick.form-control.open")[0].className="btn-group bootstrap-select select_box show-tick form-control";$("#header #registerForm select").selectpicker("refresh")});$("#header #registerForm .input-group > .select_box").on("click",function(){$(this).find("div.btn-group.bootstrap-select").attr("class").indexOf("open")>-1?$(this).find("div.btn-group.bootstrap-select").removeClass("open"):$(this).find("div.btn-group.bootstrap-select").addClass("open")});$("#header #registerForm").on("click",function(){event.stopPropagation()});setTimeout(stopCloseOptionsMenu(),1e3)});

/* Resource 2902 */

;;/*!
 * @name        image-zoom
 * @author      Matt Hinchliffe <http://maketea.co.uk>
 * @modified    Monday, September 15th, 2014
 * @version     2.2.1
 */
!function(n){"use strict";function t(t,i){return this.$target=n(t),this.opts=n.extend({},s,i),void 0===this.isOpen&&this._init(),this}var u,f,e,o,i,r,s={loadingNotice:"Loading image",errorNotice:"The image could not be loaded",errorDuration:2500,preventClicks:!0,onShow:void 0,onHide:void 0};t.prototype._init=function(){var t=this;this.$link=this.$target.find("a");this.$image=this.$target.find("img");this.$flyout=n('<div class="easyzoom-flyout" />');this.$notice=n('<div class="easyzoom-notice" />');this.$target.on("mouseenter.easyzoom touchstart.easyzoom",function(n){t.isMouseOver=!0;n.originalEvent.touches&&1!==n.originalEvent.touches.length||(n.preventDefault(),t.show(n,!0))}).on("mousemove.easyzoom touchmove.easyzoom",function(n){t.isOpen&&(n.preventDefault(),t._move(n))}).on("mouseleave.easyzoom touchend.easyzoom",function(){t.isMouseOver=!1;t.isOpen&&t.hide()});this.opts.preventClicks&&this.$target.on("click.easyzoom","a",function(n){n.preventDefault()})};t.prototype.show=function(n,t){var i,r,s,h,c=this;return this.isReady?(this.$target.append(this.$flyout),i=this.$target.width(),r=this.$target.height(),s=this.$flyout.width(),h=this.$flyout.height(),u=this.$zoom.width()-s,f=this.$zoom.height()-h,e=u/i,o=f/r,this.isOpen=!0,this.opts.onShow&&this.opts.onShow.call(this),void(n&&this._move(n))):void this._load(this.$link.attr("href"),function(){(c.isMouseOver||!t)&&c.show(n)})};t.prototype._load=function(t,i){var r=new Image;this.$target.addClass("is-loading").append(this.$notice.text(this.opts.loadingNotice));this.$zoom=n(r);r.onerror=n.proxy(function(){var n=this;this.$notice.text(this.opts.errorNotice);this.$target.removeClass("is-loading").addClass("is-error");this.detachNotice=setTimeout(function(){n.$notice.detach();n.detachNotice=null},this.opts.errorDuration)},this);r.onload=n.proxy(function(){r.width&&(this.isReady=!0,this.$notice.detach(),this.$flyout.html(this.$zoom),this.$target.removeClass("is-loading").addClass("is-ready"),i())},this);r.style.position="absolute";r.src=t};t.prototype._move=function(n){var t;0===n.type.indexOf("touch")?(t=n.touches||n.originalEvent.touches,i=t[0].pageX,r=t[0].pageY):(i=n.pageX||i,r=n.pageY||r);var c=this.$target.offset(),l=r-c.top,a=i-c.left,s=Math.ceil(l*o),h=Math.ceil(a*e);0>h||0>s||h>u||s>f?this.hide():this.$zoom.css({top:""+-1*s+"px",left:""+-1*h+"px"})};t.prototype.hide=function(){this.isOpen&&(this.$flyout.detach(),this.isOpen=!1,this.opts.onHide&&this.opts.onHide.call(this))};t.prototype.swap=function(t,i,r){this.hide();this.isReady=!1;this.detachNotice&&clearTimeout(this.detachNotice);this.$notice.parent().length&&this.$notice.detach();n.isArray(r)&&(r=r.join());this.$target.removeClass("is-loading is-ready is-error");this.$image.attr({src:t,srcset:r});this.$link.attr("href",i)};t.prototype.teardown=function(){this.hide();this.$target.removeClass("is-loading is-ready is-error").off(".easyzoom");this.detachNotice&&clearTimeout(this.detachNotice);delete this.$link;delete this.$zoom;delete this.$image;delete this.$notice;delete this.$flyout;delete this.isOpen;delete this.isReady};n.fn.easyZoom=function(i){return this.each(function(){var r=n.data(this,"easyZoom");r?void 0===r.isOpen&&r._init():n.data(this,"easyZoom",new t(this,i))})};"function"==typeof define&&define.amd?define(function(){return t}):"undefined"!=typeof module&&module.exports&&(module.exports=t)}(jQuery);

/* Resource 2075 */

;;function GetGlobalVariable(n){$.ajax({url:"/ActionInvokerGenericAPI.ashx?input=dyn-post&output=json&ActionID=5450",type:"post",data:"filter="+n,success:function(n){var t="";if(n!=""){for(i=0;i<n.data.length;i++)t+='"'+n.data[i].Variable+'":"'+n.data[i].Value+'",';t.length>1&&(t=t.slice(0,t.length-1));GlobalVariables.push(JSON.parse("{"+t+"}"))}},error:function(n,t,i){console&&console.log("The following error occurred: "+t,i)}})}var GlobalVariables=[];$(function(){GetGlobalVariable("registrationEmail,orderEmail,FormEmail")});