THEMEREX_MESSAGE_BOOKMARK_ADD="Add the bookmark";THEMEREX_MESSAGE_BOOKMARK_ADDED="Current page has been successfully added to the bookmarks. You can see it in the right panel on the tab 'Bookmarks'";THEMEREX_MESSAGE_BOOKMARK_TITLE="Enter bookmark title";THEMEREX_MESSAGE_BOOKMARK_EXISTS="Current page already exists in the bookmarks list";THEMEREX_MESSAGE_SEARCH_ERROR="Error occurs in AJAX search! Please, type your query and press search icon for the traditional search way.";THEMEREX_MESSAGE_EMAIL_CONFIRM="On the e-mail address %s we sent a confirmation email.
Please, open it and click on the link.";THEMEREX_MESSAGE_EMAIL_ADDED="Your address %s has been successfully added to the subscription list";THEMEREX_REVIEWS_VOTE="Thanks for your vote! New average rating is:";THEMEREX_REVIEWS_ERROR="Error saving your vote! Please, try again later.";THEMEREX_MAGNIFIC_LOADING="Loading image #%curr% ...";THEMEREX_MAGNIFIC_ERROR='The image #%curr% could not be loaded.';THEMEREX_MESSAGE_ERROR_LIKE="Error saving your like! Please, try again later.";THEMEREX_GLOBAL_ERROR_TEXT="Global error text";THEMEREX_NAME_EMPTY="The name can't be empty";THEMEREX_NAME_LONG="Too long name";THEMEREX_EMAIL_EMPTY="Too short (or empty) email address";THEMEREX_EMAIL_LONG="Too long email address";THEMEREX_EMAIL_NOT_VALID="Invalid email address";THEMEREX_SUBJECT_EMPTY="The subject can't be empty";THEMEREX_SUBJECT_LONG="Too long subject";THEMEREX_PHONE_EMPTY="Phone number too short";THEMEREX_PHONE_LONG="Phone number too long";THEMEREX_PHONE_NOT_VALID="Invalid phone";THEMEREX_MESSAGE_EMPTY="The message text can't be empty";THEMEREX_MESSAGE_LONG="Too long message text";THEMEREX_SEND_COMPLETE="Send message complete!";THEMEREX_SEND_ERROR="Transmit failed!";THEMEREX_LOGIN_EMPTY="The Login field can't be empty";THEMEREX_LOGIN_LONG="Too long login field";THEMEREX_PASSWORD_EMPTY="The password can't be empty and shorter then 5 characters";THEMEREX_PASSWORD_LONG="Too long password";THEMEREX_PASSWORD_NOT_EQUAL="The passwords in both fields are not equal";THEMEREX_REGISTRATION_SUCCESS="Registration success! Please log in!";THEMEREX_REGISTRATION_FAILED="Registration failed!";THEMEREX_REGISTRATION_AUTHOR="Your account is waiting for the site admin moderation!";THEMEREX_GEOCODE_ERROR="Geocode was not successful for the following reason:";THEMEREX_GOOGLE_MAP_NOT_AVAIL="Google map API not available!";var THEMEREX_ajax_url="#";var THEMEREX_ajax_nonce="b1f1870985";var THEMEREX_site_url="#";var THEMEREX_theme_font="";var THEMEREX_theme_skin="default";var THEMEREX_theme_skin_bg="#ffffff";var THEMEREX_slider_height=500;var THEMEREX_sound_enable=false;var THEMEREX_sound_folder="#";var THEMEREX_sound_mainmenu="#";var THEMEREX_sound_othermenu="#";var THEMEREX_sound_buttons="#";var THEMEREX_sound_links="#";var THEMEREX_sound_state={all:THEMEREX_sound_enable?1:0,mainmenu:0,othermenu:0,buttons:1,links:0};var THEMEREX_systemMessage={message:"",status:"",header:""};var THEMEREX_userLoggedIn=false;var THEMEREX_menu_toc="no";var THEMEREX_menu_toc_home=THEMEREX_menu_toc!="no"&&true;var THEMEREX_menu_toc_top=THEMEREX_menu_toc!="no"&&true;var THEMEREX_menuFixed=true;var THEMEREX_menuResponsive=1024;var THEMEREX_responsive_menu_click=true;var THEMEREX_demo_time=4000;var THEMEREX_useMediaElement=true;var THEMEREX_useAJAXSearch=false;var THEMEREX_AJAXSearch_min_length=3;var THEMEREX_AJAXSearch_delay=200;var THEMEREX_popupEngine="pretty";var THEMEREX_popupGallery=true;THEMEREX_EMAIL_MASK="^([a-zA-Z0-9_\\-]+\\.)*[a-zA-Z0-9_\\-]+@[a-z0-9_\\-]+(\\.[a-z0-9_\\-]+)*\\.[a-z]{2,6}$";THEMEREX_PHONE_MASK="^[0-9]{5,15}";var THEMEREX_msg_maxlength_contacts=1000;var THEMEREX_msg_maxlength_comments=1000;var THEMEREX_remember_visitors_settings=true;if(THEMEREX_theme_font==""){THEMEREX_theme_font="Sintony"}jQuery(document).ready(function(){main_slider_init();esg_init();user_popup_init();price_filter();woo_review_star();arc_skills_legend_color();phone_number_only_init()});function main_slider_init(){if(jQuery("#mainslider_1").length>0){"use strict";var h=document.getElementById("rs-plugin-settings-inline-css");var e="";if(h){h.innerHTML=h.innerHTML+e}else{var h=document.createElement("div");h.innerHTML="";document.getElementsByTagName("head")[0].appendChild(h.childNodes[0])}var b=function(){try{var v=new Object,o=jQuery(window).width(),z=9999,j=0,k=0,m=0,q=0,A=0,p=0;v.c=jQuery("#rev_slider_1_1");v.responsiveLevels=[1240,1024,778,480];v.gridwidth=[1150,1024,778,480];v.gridheight=[500,768,960,720];v.sliderLayout="fullwidth";if(v.responsiveLevels&&(jQuery.each(v.responsiveLevels,function(l,i){i>o&&(z=j=i,m=l),o>i&&i>j&&(j=i,k=l)}),z>j&&(m=k)),q=v.gridheight[m]||v.gridheight[0]||v.gridheight,A=v.gridwidth[m]||v.gridwidth[0]||v.gridwidth,p=o/A,p=p>1?1:p,q=Math.round(p*q),"fullscreen"==v.sliderLayout){var y=(v.c.width(),jQuery(window).height());if(void 0!=v.fullScreenOffsetContainer){var x=v.fullScreenOffsetContainer.split(",");if(x){jQuery.each(x,function(n,l){y=jQuery(l).length>0?y-jQuery(l).outerHeight(!0):y}),v.fullScreenOffset.split("%").length>1&&void 0!=v.fullScreenOffset&&v.fullScreenOffset.length>0?y-=jQuery(window).height()*parseInt(v.fullScreenOffset,0)/100:void 0!=v.fullScreenOffset&&v.fullScreenOffset.length>0&&(y-=parseInt(v.fullScreenOffset,0))}}q=y}else{void 0!=v.minHeight&&q";jQuery(i).show().html(j)}var d=jQuery;var a;if(d("#rev_slider_1_1").revolution==undefined){c("#rev_slider_1_1")}else{a=d("#rev_slider_1_1").show().revolution({sliderType:"standard",jsFileLocation:"js/vendor/revslider/public/assets/js/",sliderLayout:"fullwidth",dottedOverlay:"none",delay:9000,navigation:{onHoverStop:"on"},responsiveLevels:[1240,1024,778,480],visibilityLevels:[1240,1024,778,480],gridwidth:[1150,1024,778,480],gridheight:[500,768,960,720],lazyType:"none",shadow:0,spinner:"spinner0",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",autoHeight:"off",disableProgressBar:"on",hideThumbsOnMobile:"off",hideSliderAtLimit:0,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,debugMode:false,fallbacks:{simplifyAll:"off",nextSlideOnWindowFocus:"off",disableFocusListener:false}})}}if(jQuery("#mainslider_2").length>0){"use strict";var b=function(){try{var v=new Object,o=jQuery(window).width(),z=9999,j=0,k=0,m=0,q=0,A=0,p=0;v.c=jQuery("#rev_slider_2_1");v.responsiveLevels=[1240,1024,778,480];v.gridwidth=[1150,1024,778,480];v.gridheight=[980,768,1000,720];v.sliderLayout="fullscreen";v.fullScreenAutoWidth="off";v.fullScreenAlignForce="off";v.fullScreenOffsetContainer="";v.fullScreenOffset="";if(v.responsiveLevels&&(jQuery.each(v.responsiveLevels,function(l,i){i>o&&(z=j=i,m=l),o>i&&i>j&&(j=i,k=l)}),z>j&&(m=k)),q=v.gridheight[m]||v.gridheight[0]||v.gridheight,A=v.gridwidth[m]||v.gridwidth[0]||v.gridwidth,p=o/A,p=p>1?1:p,q=Math.round(p*q),"fullscreen"==v.sliderLayout){var y=(v.c.width(),jQuery(window).height());if(void 0!=v.fullScreenOffsetContainer){var x=v.fullScreenOffsetContainer.split(",");if(x){jQuery.each(x,function(n,l){y=jQuery(l).length>0?y-jQuery(l).outerHeight(!0):y}),v.fullScreenOffset.split("%").length>1&&void 0!=v.fullScreenOffset&&v.fullScreenOffset.length>0?y-=jQuery(window).height()*parseInt(v.fullScreenOffset,0)/100:void 0!=v.fullScreenOffset&&v.fullScreenOffset.length>0&&(y-=parseInt(v.fullScreenOffset,0))}}q=y}else{void 0!=v.minHeight&&q";jQuery(i).show().html(j)}var d=jQuery;var g;if(d("#rev_slider_2_1").revolution==undefined){c("#rev_slider_2_1")}else{g=d("#rev_slider_2_1").show().revolution({sliderType:"standard",jsFileLocation:"js/vendor/revslider/public/assets/js/",sliderLayout:"fullscreen",dottedOverlay:"none",delay:9000,navigation:{onHoverStop:"on"},responsiveLevels:[1240,1024,778,480],visibilityLevels:[1240,1024,778,480],gridwidth:[1150,1024,778,480],gridheight:[980,768,1000,720],lazyType:"none",shadow:0,spinner:"spinner0",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",autoHeight:"off",fullScreenAutoWidth:"off",fullScreenAlignForce:"off",fullScreenOffsetContainer:"",fullScreenOffset:"",disableProgressBar:"on",hideThumbsOnMobile:"off",hideSliderAtLimit:0,hideCaptionAtLimit:742,hideAllCaptionAtLilmit:0,debugMode:false,fallbacks:{simplifyAll:"off",nextSlideOnWindowFocus:"off",disableFocusListener:false}})}}if(jQuery("#mainslider_3").length>0){"use strict";var b=function(){try{var v=new Object,o=jQuery(window).width(),z=9999,j=0,k=0,m=0,q=0,A=0,p=0;v.c=jQuery("#rev_slider_3_1");v.gridwidth=[1150];v.gridheight=[500];v.sliderLayout="auto";if(v.responsiveLevels&&(jQuery.each(v.responsiveLevels,function(l,i){i>o&&(z=j=i,m=l),o>i&&i>j&&(j=i,k=l)}),z>j&&(m=k)),q=v.gridheight[m]||v.gridheight[0]||v.gridheight,A=v.gridwidth[m]||v.gridwidth[0]||v.gridwidth,p=o/A,p=p>1?1:p,q=Math.round(p*q),"fullscreen"==v.sliderLayout){var y=(v.c.width(),jQuery(window).height());if(void 0!=v.fullScreenOffsetContainer){var x=v.fullScreenOffsetContainer.split(",");if(x){jQuery.each(x,function(n,l){y=jQuery(l).length>0?y-jQuery(l).outerHeight(!0):y}),v.fullScreenOffset.split("%").length>1&&void 0!=v.fullScreenOffset&&v.fullScreenOffset.length>0?y-=jQuery(window).height()*parseInt(v.fullScreenOffset,0)/100:void 0!=v.fullScreenOffset&&v.fullScreenOffset.length>0&&(y-=parseInt(v.fullScreenOffset,0))}}q=y}else{void 0!=v.minHeight&&q";jQuery(i).show().html(j)}var d=jQuery;var f;if(d("#rev_slider_3_1").revolution==undefined){c("#rev_slider_3_1")}else{f=d("#rev_slider_3_1").show().revolution({sliderType:"standard",jsFileLocation:"js/vendor/revslider/public/assets/js/",sliderLayout:"auto",dottedOverlay:"none",delay:9000,navigation:{onHoverStop:"off"},visibilityLevels:[1240,1024,778,480],gridwidth:1150,gridheight:500,lazyType:"none",shadow:0,spinner:"spinner0",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",autoHeight:"off",disableProgressBar:"on",hideThumbsOnMobile:"off",hideSliderAtLimit:479,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,debugMode:false,fallbacks:{simplifyAll:"off",nextSlideOnWindowFocus:"off",disableFocusListener:false}})}}}function esg_init(){if(jQuery("#esg-grid-1-1").length>0){"use strict";function j(n,o){var u=n,w=0,s=9999,m=0,v=0,q=0,l=0,r=0,t=0,e=[{width:1400,amount:3},{width:1170,amount:3},{width:1024,amount:3},{width:960,amount:3},{width:778,amount:3},{width:640,amount:3},{width:480,amount:1}];if(e!=undefined&&e.length>0){jQuery.each(e,function(z,A){var y=A.width!=undefined?A.width:0,x=A.amount!=undefined?A.amount:0;if(s>y){s=y;v=x;t=z}if(mw&&y<=u){w=y;l=x;r=z}})}if(s>n){l=v;r=t}var p=new Object;p.index=r;p.column=l;if(o=="id"){return p}else{return l}}if("even"=="even"){var c=0,a=jQuery("#esg-grid-1-1");var d=a.width(),b="4:3",i=j(jQuery(window).width(),"id"),k=1;b=b.split(":");aratio=parseInt(b[0],0)/parseInt(b[1],0);c=d/aratio;c=c/i.column*k;var g=a.find("ul").first();g.css({display:"block",height:c+"px"})}var h;h=jQuery("#esg-grid-1-1").tpessential({gridID:1,layout:"even",forceFullWidth:"off",lazyLoad:"off",row:1,loadMoreAjaxToken:"c23c82d724",loadMoreAjaxUrl:"http://plumbing.themerex.net/wp-admin/admin-ajax.php",loadMoreAjaxAction:"Essential_Grid_Front_request_ajax",ajaxContentTarget:"ess-grid-ajax-container-",ajaxScrollToOffset:"0",ajaxCloseButton:"off",ajaxContentSliding:"on",ajaxScrollToOnLoad:"on",ajaxNavButton:"off",ajaxCloseType:"type1",ajaxCloseInner:"false",ajaxCloseStyle:"light",ajaxClosePosition:"tr",space:0,pageAnimation:"fade",paginationScrollToTop:"off",spinner:"spinner0",evenGridMasonrySkinPusher:"off",lightBoxMode:"single",animSpeed:1000,delayBasic:1,mainhoverdelay:1,filterType:"single",showDropFilter:"hover",filterGroupClass:"esg-fgc-1",googleFonts:["Open+Sans:300,400,600,700,800","Raleway:100,200,300,400,500,600,700,800,900","Droid+Serif:400,700"],aspectratio:"4:3",responsiveEntries:[{width:1400,amount:3},{width:1170,amount:3},{width:1024,amount:3},{width:960,amount:3},{width:778,amount:3},{width:640,amount:3},{width:480,amount:1}]});try{jQuery("#esg-grid-1-1 .esgbox").esgbox({padding:[0,0,0,0],afterLoad:function(){if(this.element.hasClass("esgboxhtml5")){var l=this.element.data("mp4"),e=this.element.data("ogv"),m=this.element.data("webm");this.content='
';var n=setInterval(function(){jQuery(window).trigger("resize")},100);setTimeout(function(){clearInterval(n)},2500)}},beforeShow:function(){this.title=jQuery(this.element).attr("lgtitle");if(this.title){this.title="";this.title='
'+this.title+"
"}},afterShow:function(){},openEffect:"fade",closeEffect:"fade",nextEffect:"fade",prevEffect:"fade",openSpeed:"normal",closeSpeed:"normal",nextSpeed:"normal",prevSpeed:"normal",helpers:{media:{},title:{type:""}}})}catch(f){}}}function user_popup_init(){if(jQuery("#usermenu").length>0){var a='
';a+='
';a+='";a+='
';a+='
';a+='
';a+='';a+='";a+="
";a+="
";a+='
';a+='
    ';a+="
  • You can login using your social profile
  • ";a+='
  • ';a+='';a+='';a+='';a+="
  • ";a+='
  • Problem with login?
  • ';a+="
";a+="
";a+='
';a+="
";a+='
';a+='
';a+='';a+='
';a+='";a+="
";a+='
';a+='
    ';a+='
  • ';a+='
  • ';a+="
";a+='
Minimum 6 characters
';a+="
";a+="
";a+='
';a+="
";a+="
";a+="
";jQuery("body").append(a)}}function price_filter(){if(jQuery("#slider-range").length>0){jQuery("#slider-range").slider({range:true,min:0,max:200,values:[0,200],slide:function(a,b){jQuery("#amount").val("£"+b.values[0]+" - £"+b.values[1])}});jQuery("#amount").val("£"+jQuery("#slider-range").slider("values",0)+" - £"+jQuery("#slider-range").slider("values",1))}}function woo_review_star(){if(jQuery(".stars","#review_form").length>0){jQuery(".stars").find("a").on("click",function(){jQuery("a.active").removeClass("active");jQuery(this).addClass("active");return false})}}function arc_skills_legend_color(){if(jQuery(".sc_skills_arc").length>0){jQuery(".sc_skills_arc").find("li:nth-child(1)",".sc_skills_legend").css({"background-color":jQuery(".arc:nth-child(1) input.color",".sc_skills_arc").attr("value")});jQuery(".sc_skills_arc").find("li:nth-child(2)",".sc_skills_legend").css({"background-color":jQuery(".arc:nth-child(2) input.color",".sc_skills_arc").attr("value")});jQuery(".sc_skills_arc").find("li:nth-child(3)",".sc_skills_legend").css({"background-color":jQuery(".arc:nth-child(3) input.color",".sc_skills_arc").attr("value")});jQuery(".sc_skills_arc").find("li:nth-child(4)",".sc_skills_legend").css({"background-color":jQuery(".arc:nth-child(4) input.color",".sc_skills_arc").attr("value")});jQuery(".sc_skills_arc").find("li:nth-child(5)",".sc_skills_legend").css({"background-color":jQuery(".arc:nth-child(5) input.color",".sc_skills_arc").attr("value")})}}function phone_number_only_init(){if(jQuery("#contact_form_phone",".sc_contact_form").length>0){jQuery("#contact_form_phone").keydown(function(a){if(jQuery.inArray(a.keyCode,[46,8,9,27,13,190])!==-1||(a.keyCode==65&&a.ctrlKey===true)||(a.keyCode==67&&a.ctrlKey===true)||(a.keyCode==88&&a.ctrlKey===true)||(a.keyCode==86&&a.ctrlKey===true)||(a.keyCode>=35&&a.keyCode<=39)){return}if((a.shiftKey||(a.keyCode<48||a.keyCode>57))&&(a.keyCode<96||a.keyCode>105)){a.preventDefault()}})}};