function onResize(){if($(window).width()>959){$('#menu-utility-menu').removeAttr('style');$('.mobile-nav-link').removeClass('active');$('#menu-drop-down-banking-private ul, #menu-drop-down-banking-commercial ul').removeAttr('style');$('#menu-drop-down-banking-private .nav-arrow.active, #menu-drop-down-banking-commercial .nav-arrow.active').removeClass('active');$('#tabs ul').removeAttr('style');}
else{}}
$(window).bind('resize',onResize);jQuery(document).ready(function($){$(".fancybox").fancybox();$('.menu-utility-menu-container').append('Toggle Utility Menu');$('#utility-toggle').click(function(event){event.preventDefault();$('#menu-utility-menu').slideToggle(800,'easeOutQuart');});$('.menu-login-drop-down-menu-container').append('Login');$('#menu-login-drop-down-menu').addClass('drop-down').hide();$('#login-toggle').click(function(event){event.preventDefault();$(this).toggleClass('active');$('#menu-login-drop-down-menu').slideToggle(800,'easeOutQuart');});$(function(){$("#accordion").accordion({collapsible:true,active:false});});$('.nav-link:not(#nav-choosing-paragon)').click(function(event){event.preventDefault();var linkId=$(this).attr('id').replace('nav-','#nav-');var dropDownId=linkId.replace('nav-','drop-down-');if($('.nav-drop-down.active').length>0){var activeDropDownId=$('.nav-drop-down.active').attr('id').replace('drop-down','#drop-down');if(dropDownId==activeDropDownId){$(this).removeClass('open');$(dropDownId).removeClass('active').slideUp(750,'easeOutQuart');}
else{$('.nav-drop-down.active').removeClass('active').slideUp(750,'easeOutQuart',function(){$('.nav-link.open').removeClass('open');$(linkId).addClass('open');$(dropDownId).addClass('active').slideDown(750,'easeOutQuart');});}}
else{$(this).addClass('open');$(dropDownId).addClass('active').slideDown(750,'easeOutQuart');}});$('.mobile-nav-link:not(#mobile-nav-choosing-paragon)').click(function(event){event.preventDefault();var linkId=$(this).attr('id').replace('mobile-nav','#mobile-nav');var dropDownId=linkId.replace('mobile-nav','drop-down');if($('.mobile-nav-link.active').length>0){activeLinkId=$('.mobile-nav-link.active').attr('id').replace('mobile-nav','#mobile-nav');if(linkId===activeLinkId){$(this).removeClass('active');$(dropDownId).slideUp(750,'easeOutQuart');}
else{var activeDropDownId=$('.mobile-nav-link.active').attr('id').replace('mobile-nav','#drop-down');$('.mobile-nav-link.active').removeClass('active');$(this).addClass('active');$(activeDropDownId).slideUp(750,'easeOutQuart');$(dropDownId).slideDown(750,'easeOutQuart');}}
else{$(this).addClass('active');$(dropDownId).slideDown(750,'easeOutQuart');}});$('#menu-drop-down-banking-private > li > a, #menu-drop-down-banking-commercial > li > a').append('');$('#menu-drop-down-banking-private > li > a .nav-arrow, #menu-drop-down-banking-commercial > li > a .nav-arrow').click(function(event){event.preventDefault();$(this).toggleClass('active').parent().parent().find('ul').slideToggle();});var activeDropDown=$('.nav-drop-down .current-menu-item').closest('.nav-drop-down').attr('id');if(activeDropDown!==undefined){var correspondingDropDown=activeDropDown.replace('drop-down','#nav');$(correspondingDropDown).addClass('active');}
else if($('body.page-id-362').length>0){$('#nav-choosing-paragon').addClass('active');}
else{}
jQuery(document).ready(function(){jQuery.fn.cleardefault=function(){return this.focus(function(){if(this.value==this.defaultValue){this.value="";}}).blur(function(){if(!this.value.length){this.value=this.defaultValue;}});};jQuery(".clearit input, .clearit textarea").cleardefault();});$('#tabs .tab').append('Toggle Tab Menu');$('#tab-toggle').click(function(event){event.preventDefault();$(this).parent().find('ul').slideToggle();});$('a.lightbox').click(function(event){event.preventDefault();var lightboxLinkClasses=$(this).attr('class');var lightboxLinkUniqueClass=lightboxLinkClasses.replace('lightbox ','');$('html,body').animate({scrollTop:0},800,'swing');$('.lightbox-overlay.active').removeClass('active');$('.lightbox-overlay.'+lightboxLinkUniqueClass).addClass('active');});$('.lightbox-overlay .close').click(function(event){event.preventDefault();$('.lightbox-overlay.active').removeClass('active');});});$(window).load(function(){$('.flexslider').flexslider({animation:"slide",slideshowSpeed:10000,touch:false});});