function setLoading(divId){$(divId).html('

');$(divId).show();}
function setLoadingsmalla(divId){$(divId).html('
');$(divId).show();}
function setLoadingbyclass(divId){$(divId).html('
');$(divId).show();}
function stopLoading(divId){$(divId).hide();}
function setLoadingSmallbyid(divId){$(divId).html('
');$(divId).show();}
function setLoadingSmallbyidwithoutdiv(divId){$(divId).html('
');$(divId).show();}
function localtionHash(divId){document.location.hash=divId;}
function setLoadingBackground(divId){$(divId).append('
');}
function setWait(divId){$(divId).html('
');$(divId).show();}
function handleExpandBoxClick(element,id){if($('#'+id).is(':visible')){$('#'+id).hide();$('#expandBox_menuLeft_'+id).hide();$('#expandBox_menuRight_'+id).hide();}else{$('#'+id).show();$('#expandBox_menuLeft_'+id).show();$('#expandBox_menuRight_'+id).show();}
$(element).toggleClass('ico1');$(element).parent('.grayBox').toggleClass('grayBox1');return false;}
function handleExpandBoxClickedtest(element){$('#'+element).slideToggle()
return false;}
function handleExpandBoxClicked(element){$(element).parents('.info-block').toggleClass('block-collapsed');$(element).parents('.info-block').toggleClass('block-expanded');return false;}
function getData(id,data){var tempAJAX=$.ajax;$.ajax=function(s){s.cache=true;tempAJAX(s);}
$(id).html(data);$(id).show();$.ajax=tempAJAX;}
function updateContent(selector,content){$(selector).html(content);$(selector).show();}
function replaceContent(selector,content){$(selector).replaceWith(content);$(selector).show();}
function updateWholeInfoBlock(selector,content){$(selector).parents('.info-block').replaceWith(content);}
function updatePageContent(content){$('#pagewrapper').html(content);$('#pagewrapper').show();}
function getContent(url,containerId){jQuery.ajax({'type':'GET','url':url,'cache':false,'data':'','success':function(html){jQuery('#'+containerId).html(html);}});}
function getContentByCss(url,containerId){jQuery.ajax({'type':'GET','url':url,'cache':false,'data':'','success':function(html){jQuery('.'+containerId).html(html);}});}
function getContentVal(url,containerId){jQuery.ajax({'type':'GET','url':url,'cache':false,'data':'','success':function(html){jQuery('#'+containerId).val(html);}});}
function destroyAllDialogs(){$('.ui-dialog').empty();$('.ui-dialog').remove();}
function destroyDialogs(aDialogContainerIds){for(var i=0;i\{\}\[\]\\\/]/gi;var isSplChar=re.test(valText);if(isSplChar)
{var no_spl_char=valText.replace(/[`~!@#$%^&*()_|+\-=?;:'".<>\{\}\[\]\\\/]/gi,'');$(obj).val(no_spl_char);}else{$(obj).val(valText);}}
function checkEmailformat(email)
{var error=0;if(email!=''){var mailformat=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!email.match(mailformat))
{error=1;}}
return error;}
function searchUsr(fname,surname)
{if(surname==0){var txtSearch=fname;}else{var txtSearch=fname+' '+surname;}
$('#finduser-clicks').trigger('click');$('#search_users_new').val(txtSearch);jQuery("#search_users_new").trigger('keyup');}
function showGCModal(title,content)
{if(title!=""){jQuery("#GcModalTitle").html(title);}
if(content!=""){jQuery("#GcModalBody").html(content);jQuery('#GcModal').modal('show');}}
function notifyMe(titlte,imgl,description,row,redirectUrl)
{Notification.requestPermission().then(function(result){if(result==='denied'){console.log('Permission wasn\'t granted. Allow a retry.');return;}
if(result==='granted'){var imgl='/images/logo-mid-pic.png';var row=new Notification(titlte,{icon:imgl,body:description,});row.onclick=function(){window.open(redirectUrl);};setTimeout(row.close.bind(row),10000);}
if(result==='default'){console.log('The permission request was dismissed.');return;}});}
function tooltippop(divId){$("#"+divId).tooltip({show:{effect:"slideDown",delay:250},position:{my:"left top",at:"left bottom"},});}
function myNotificaiton()
{jQuery('#tstDiv').load('/central/user/deskTopNotify/desktopnoti/1');}
if(jQuery.type(GC_LOGGED_USER)==="undefined"){}else{if(GC_LOGGED_USER==703){setInterval(myNotificaiton,45000);}}
$(document).ready(function(){const itemsToReplace=["onload","join","body","eval","this","document","style","opacity"];$('input[type="text"]').not('#LoginForm_username, #LoginForm_password, #forgotemail').on('input',function(){let input=$(this).val();const charactersToReplace=["[","]","(",")","$","&","%","#"];charactersToReplace.forEach(function(char){let regex=new RegExp('\\'+char,'g');input=input.replace(regex,'');});itemsToReplace.forEach(function(item){let regex=new RegExp('\\b'+item+'\\b','gi');input=input.replace(regex,'');});$(this).val(input);});const ids=['search_servicenew','kbsearch','qs'];ids.forEach(function(id){$(`input#${id}`).on('input',function(){let value=$(this).val();let regex=/(https?:\/\/|www\.)[^\s]+/gi;let newValue=value.replace(regex,'');$(this).val(newValue);});});});;gcLandingPage={urlSubscription:GC_JS_WEBROOT+'/central/user/controlAccess',urlUpgradeSubscription:GC_JS_WEBROOT+'/central/user/UpgradeSubscription',urlSubscriptionpeople:GC_JS_WEBROOT+'/central/user/controlAccessPeople',urlSubscriptiontry:GC_JS_WEBROOT+'/central/user/payagain',urlPaypalSubscription:GC_JS_WEBROOT+'/central/user/paypalcontrolAccess',urlPaypalUpgradeSubscription:GC_JS_WEBROOT+'/central/user/UpgradePaypalSubscription',};gcLandingPage.loggedFormNew=function(id)
{if(jQuery('#'+id).val()==''||jQuery('#'+id).val()!=''){jQuery('#'+id).removeClass('error');}}
gcLandingPage.ccTypeissueDate=function(id)
{if(id=='ccIssueDate'){if(jQuery('#CardInfo_ctype').val()!=''&&jQuery('#CardInfo_ctype').val()=='AMEX'){jQuery('#ccIssueDate').hide();}else{jQuery('#ccIssueDate').show();}}else{if(jQuery('#lCardInfo_ctype').val()!=''&&jQuery('#lCardInfo_ctype').val()=='AMEX'){jQuery('#lccIssueDate').hide();}else{jQuery('#lccIssueDate').show();}}}
gcLandingPage.checkFormnewlogged=function(){var creditcardform=false;if(jQuery('#CardInfo_fname').val()==''){jQuery('#CardInfo_fname').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_lname').val()==''){jQuery('#CardInfo_lname').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_ctype').val()==''){jQuery('#CardInfo_ctype').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_cnumber').val()==''){jQuery('#CardInfo_cnumber').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_ce_month').val()==''){jQuery('#CardInfo_ce_month').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_ce_year').val()==''){jQuery('#CardInfo_ce_year').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_cvv').val()==''){jQuery('#CardInfo_cvv').addClass('error');creditcardform=true;}
if(!creditcardform){jQuery('#ccsubmit').val('1');document.loggedinForm.submit();return true;}else{return false;}
if(jQuery('#ccsubmit').val()!=''){jQuery('#loaderImage').show();jQuery('#creditCardDiv').hide();}}
gcLandingPage.checkInvoice=function(param){if(param=='showcreditcard'){jQuery('#creditCardDiv').show();jQuery('#invoiceDiv').hide();jQuery("#description_txt").val(jQuery("#description").val());return false;}
var creditcardform=false;if(jQuery('#CardInfo_fname').val()==''){jQuery('#CardInfo_fname').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_lname').val()==''){jQuery('#CardInfo_lname').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_ctype').val()==''){jQuery('#CardInfo_ctype').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_cnumber').val()==''){jQuery('#CardInfo_cnumber').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_ce_month').val()==''){jQuery('#CardInfo_ce_month').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_ce_year').val()==''){jQuery('#CardInfo_ce_year').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_cvv').val()==''){jQuery('#CardInfo_cvv').addClass('error');creditcardform=true;}
if(!creditcardform){jQuery('#ccsubmit').val('1');jQuery('#loaderImage').show();jQuery('#creditCardDiv').hide();document.loggedinForm.submit();return true;}else{return false;}}
gcLandingPage.showExpirtyDateField=function(param){if(param=='AMEX'){jQuery('#ccIssueDate').hide();}else{jQuery('#ccIssueDate').show();}}
gcLandingPage.removerror=function(param){if(jQuery('#'+param).val()!=''){jQuery('#'+param).removeClass('error');}}
gcLandingPage.checkSubscription=function(param){var creditcardform=false;if(jQuery('#CardInfo_fname').val()==''){jQuery('#CardInfo_fname').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_lname').val()==''){jQuery('#CardInfo_lname').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_ctype').val()==''){jQuery('#CardInfo_ctype').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_cnumber').val()==''){jQuery('#CardInfo_cnumber').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_ce_month').val()==''){jQuery('#CardInfo_ce_month').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_ce_year').val()==''){jQuery('#CardInfo_ce_year').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_cvv').val()==''){jQuery('#CardInfo_cvv').addClass('error');creditcardform=true;}
if(!creditcardform){var urlShow=gcLandingPage.urlSubscription;var frmData=jQuery('#accesscontronfrm').serialize();setLoading("#creditCardDivAccess");jQuery.ajax({'type':'POST','url':urlShow,'cache':false,'data':frmData,'success':function(html){jQuery("#accesscontronfrm").html(html)}});return true;}else{return false;}}
gcLandingPage.removerrorPeople=function(param,userid){if(jQuery('#'+param+'_'+userid).val()!=''){jQuery('#'+param+'_'+userid).removeClass('error');}}
gcLandingPage.checkSubscriptionPeople=function(param,userid){var creditcardform=false;if(jQuery('#CardInfo_fname_'+userid).val()==''){jQuery('#CardInfo_fname_'+userid).addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_lname_'+userid).val()==''){jQuery('#CardInfo_lname_'+userid).addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_ctype_'+userid).val()==''){jQuery('#CardInfo_ctype_'+userid).addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_cnumber_'+userid).val()==''){jQuery('#CardInfo_cnumber_'+userid).addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_ce_month_'+userid).val()==''){jQuery('#CardInfo_ce_month_'+userid).addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_ce_year_'+userid).val()==''){jQuery('#CardInfo_ce_year_'+userid).addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_cvv_'+userid).val()==''){jQuery('#CardInfo_cvv_'+userid).addClass('error');creditcardform=true;}
if(!creditcardform){var urlShow=gcLandingPage.urlSubscription;var frmData=jQuery('#accesscontronfrm_'+userid).serialize();setLoading('#sliderUserFormTd'+userid);jQuery.ajax({'type':'POST','url':urlShow,'cache':false,'data':frmData,'success':function(html){jQuery('#sliderUserFormTd'+userid).html(html)}});return true;}else{return false;}}
gcLandingPage.goSubscription=function(param){var frmData=jQuery('#accesscontronfrm').serialize();jQuery("#subscription").css('position','inherit');setLoading("#subscription");setLoading('#GcModalBody');jQuery.ajax({'type':'POST','url':gcLandingPage.urlSubscription,'cache':false,'data':frmData,'success':function(html){jQuery("#subscription").css('position','relative');jQuery("#subscription").html(html);jQuery("#GcModalBody").html(html);}});return true;}
gcLandingPage.goSubscriptionFree=function(param){var frmData=jQuery('#accesscontronfrmfree').serialize();setLoading("#subscription");jQuery.ajax({'type':'POST','url':gcLandingPage.urlSubscription,'cache':false,'data':frmData,'success':function(html){jQuery("#subscription").html(html)}});return true;}
gcLandingPage.goSubscriptionPeople=function(param,userid){var frmData=jQuery('#accesscontronfrm_'+userid).serialize();setLoading('#sliderUserFormTd'+userid);jQuery.ajax({'type':'POST','url':gcLandingPage.urlSubscriptionpeople,'cache':false,'data':frmData,'success':function(html){updateContent('#sliderUserFormTd'+userid,html);}});return true;}
gcLandingPage.paypalSubscription=function(){var frmData=jQuery('#accesscontronfrm').serialize();setLoading("#subscription");jQuery.ajax({'type':'POST',dataType:'json','url':gcLandingPage.urlPaypalSubscription,'cache':false,'data':frmData+"&redirect=yes",'success':function(responseUrl){window.location=responseUrl.url;}});return false;}
gcLandingPage.paypalUpgradeSubscription=function(){var frmData=jQuery('#upgradeSubscription').serialize();setLoading("#creditCardDivAccess");jQuery.ajax({'type':'POST',dataType:'json','url':gcLandingPage.urlPaypalUpgradeSubscription,'cache':false,'data':frmData+"&redirect=yes",'success':function(responseUrl){window.location=responseUrl.url;}});return false;}
gcLandingPage.paypalInvoice=function(){document.invoicePaypalForm.submit();}
gcLandingPage.checkUpgradeSubscription=function(paybtn){paybtn.start();var creditcardform=false;if(jQuery('#CardInfo_fname').val()==''){jQuery('#CardInfo_fname').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_ctype').val()==''){jQuery('#CardInfo_ctype').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_cnumber').val()==''){jQuery('#CardInfo_cnumber').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_ce_month').val()==''){jQuery('#CardInfo_ce_month').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_ce_year').val()==''){jQuery('#CardInfo_ce_year').addClass('error');creditcardform=true;}
if(jQuery('#CardInfo_cvv').val()==''){jQuery('#CardInfo_cvv').addClass('error');creditcardform=true;}
if(!creditcardform){cardno=jQuery('#CardInfo_cnumber').val();newcardno=cardno.replace(/ /g,'');jQuery('#CardInfo_cnumber').val(newcardno);var urlShow=gcLandingPage.urlUpgradeSubscription;var frmData=jQuery('#upgradeSubscription').serialize();setLoading("#creditCardDivAccess");jQuery.ajax({'type':'POST','url':urlShow,'cache':false,'data':frmData,'success':function(html){window.location.href=html;}});paybtn.stop();return true;}else{paybtn.stop();return false;}};!function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define(b):a.Spinner=b()}(this,function(){"use strict";function a(a,b){var c,d=document.createElement(a||"div");for(c in b)d[c]=b[c];return d}function b(a){for(var b=1,c=arguments.length;c>b;b++)a.appendChild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-"),f=.01+c/d*100,g=Math.max(1-(1-a)/b*(100-f),a),h=j.substring(0,j.indexOf("Animation")).toLowerCase(),i=h&&"-"+h+"-"||"";return l[e]||(m.insertRule("@"+i+"keyframes "+e+"{0%{opacity:"+g+"}"+f+"%{opacity:"+a+"}"+(f+.01)+"%{opacity:1}"+(f+b)%100+"%{opacity:"+a+"}100%{opacity:"+g+"}}",m.cssRules.length),l[e]=1),e}function d(a,b){var c,d,e=a.style;for(b=b.charAt(0).toUpperCase()+b.slice(1),d=0;d',c)}m.addRule(".spin-vml","behavior:url(#default#VML)"),h.prototype.lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{width:k,height:k})}function h(a,h,i){b(m,b(e(f(),{rotation:360/d.lines*a+"deg",left:~~h}),b(e(c("roundrect",{arcsize:d.corners}),{width:j,height:d.width,left:d.radius,top:-d.width>>1,filter:i}),c("fill",{color:g(d.color,a),opacity:d.opacity}),c("stroke",{opacity:0}))))}var i,j=d.length+d.width,k=2*j,l=2*-(d.width+d.length)+"px",m=e(f(),{position:"absolute",top:l,left:l});if(d.shadow)for(i=1;i<=d.lines;i++)h(i,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(i=1;i<=d.lines;i++)h(i);return b(a,m)},h.prototype.opacity=function(a,b,c,d){var e=a.firstChild;d=d.shadow&&d.lines||0,e&&b+d>1)+"px"})}for(var i,k=0,l=(f.lines-1)*(1-f.direction)/2;kb;b++)if(f===j[b]){j.splice(b,1);break}}};return j.push(f),f}function c(a,b){for(;a.parentNode&&a.tagName!==b;)a=a.parentNode;return b===a.tagName?a:void 0}function d(a){for(var b=["input","textarea","select"],c=[],d=0;dg;g++)!function(){var a=f[g];if("function"==typeof a.addEventListener){var h=b(a),i=-1;a.addEventListener("click",function(b){var f=!0,g=c(a,"FORM");if("undefined"!=typeof g)for(var j=d(g),k=0;ka;a++)j[a].stop()}function g(b){var c,d,e=b.offsetHeight;0===e&&(e=parseFloat(window.getComputedStyle(b).height)),e>32&&(e*=.8),b.hasAttribute("data-spinner-size")&&(e=parseInt(b.getAttribute("data-spinner-size"),10)),b.hasAttribute("data-spinner-color")&&(c=b.getAttribute("data-spinner-color")),b.hasAttribute("data-spinner-lines")&&(d=parseInt(b.getAttribute("data-spinner-lines"),10));var f=.2*e,g=.6*f,h=7>f?2:3;return new a({color:c||"#fff",lines:d||12,radius:f,length:g,width:h,zIndex:"auto",top:"auto",left:"auto",className:""})}function h(a){for(var b=[],c=0;c