function loadremotecontent(e,t,n){var o=e;$(t).load(o+" "+n)}function scrollobj(e,t,n,o,i){var r=$(n).css("top"),s=$(n).css("position"),a=function(){var a=$(window).scrollTop();if(e)var l=$(e).offset().top;else l=t;var c=$(n);a>=l?(c.css({position:"fixed",top:o}),c.addClass(i)):a<=l&&(c.css({position:s,top:r}),c.removeClass(i))};$(window).scroll(a),a()}function setposition(e,t,n){if($(t).length>0){var o=e;$(t).offset().top>=o&&$(t).css({position:"absolute",top:n})}}function openwindow(e,t,n){window.open(e,"_blank","height="+n+",width="+t+",status=yes,toolbar=no,menubar=no,resizable=yes,scrollbars=yes")}function PopupBlocked(){var e=window.open(null,"","width=100,height=100");try{return e.close(),!1}catch(e){return!0}}function IsValidChars(e,t){var n,o=!0;if(0==(e+="").length)return!1;for(i=0;i<e.length&&1==o;i++)n=e.charAt(i),-1==t.indexOf(n)&&(o=!1);return o}function formatCurrency(e){e=e.toString().replace(/\$|\,/g,""),dblValue=parseFloat(e),blnSign=dblValue==(dblValue=Math.abs(dblValue)),dblValue=Math.floor(100*dblValue+.50000000001),intCents=dblValue%100,strCents=intCents.toString(),dblValue=Math.floor(dblValue/100).toString(),intCents<10&&(strCents="0"+strCents);for(var t=0;t<Math.floor((dblValue.length-(1+t))/3);t++)dblValue=dblValue.substring(0,dblValue.length-(4*t+3))+","+dblValue.substring(dblValue.length-(4*t+3));return(blnSign?"":"-")+"$"+dblValue+"."+strCents}function nosee(e){var t=document.getElementById(e);t&&(t.style.display="none")}function cansee(e){var t=document.getElementById(e);t&&(t.style.display="block")}function showhide_all_divs(e,t,n){for(var o=document.getElementsByTagName("DIV"),i=document.getElementById(e),r=0;r<=o.length;r++)""==o[r].style.display?(o[r].style.display="none",i.innerHTML=n):(o[r].style.display="",i.innerHTML=t)}function countit(e,t,n){var o=e.value,i=o.length;i>t&&(e.value=Left(o,t)),document.getElementById(n).innerHTML=i>0?"<b>Length: "+i+"<br><font color=red>Maximum: "+t+"</b>":""}function Left(e,t){return t<=0?"":t>String(e).length?e:String(e).substring(0,t)}function Right(e,t){if(t<=0)return"";if(t>String(e).length)return e;var n=String(e).length;return String(e).substring(n,n-t)}function showhide_all_spans(e,t,n){for(var o=document.getElementsByTagName("SPAN"),i=document.getElementById(e),r=0;r<=o.length;r++)o[r]&&(""==o[r].style.display?(o[r].style.display="none",i.innerHTML=n):(o[r].style.display="",i.innerHTML=t))}function togglevisible(e,t,n,o){var i=document.getElementById(e),r=document.getElementById(t);"none"==i.style.display?($("#"+e).fadeIn(),r.innerHTML=o):($("#"+e).fadeOut(),r.innerHTML=n)}function showpreview(e,t,n,o){var i=document.getElementById(e),r=document.getElementById(t);"preview_off"==i.className?(i.className="preview_on",r.innerHTML=o):(i.className="preview_off",r.innerHTML=n)}function instr(e,t){return e.indexOf(t)>0}function nulltostring(e){return null==e&&(e=""),e}function validateEmailAddress(e){return/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)}function validemail(e){return!!/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)||(alert("Please enter a valid email address to continue."),!1)}function feedpop(e){var t=e+"&s=2420";popup=window.open(t,"MenuPopup","location=no,menubars=yes,toolbars=no,resizable=yes,scrollbars=no,width=620,height=230")}function blogpop(e){blogpopup=window.open(e,"blogMenuPopup","location=yes,menubars=yes,toolbars=yes,resizable=yes,scrollbars=yes,width=400,height=560")}function imagepop(e){imagepop=window.open(e,"imagepop","location=yes,menubars=yes,toolbars=yes,resizable=yes,scrollbars=yes,width=600,height=560")}function premiumpop(e){blogpopup=window.open(e,"blogMenuPopup","location=yes,menubars=yes,toolbars=yes,resizable=yes,scrollbars=yes,width=400,height=350")}function winPopup(e,t,n){var o=(screen.width-t)/2,i="height="+n+",width="+t+",top="+(screen.height-n)/2+",left="+o+",scrollbars=yes,location=no,menubars=no,toolbars=no,resizable=yes";window.open(e,"popup",i);return!0}function Minimize(e){e.innerWidth=100,e.innerHeight=100,e.screenX=screen.width,e.screenY=screen.height,alwaysLowered=!0}function Maximize(e){e.innerWidth=screen.width,e.innerHeight=screen.height,e.screenX=0,e.screenY=0,alwaysLowered=!1}function fader(e,t,n,o){var r=Math.round(o/100),s=0;if(t>n)for(i=t;i>=n;i--)setTimeout("setOpacity("+i+",'"+e+"')",s*r),s++;else if(t<n)for(i=t;i<=n;i++)setTimeout("setOpacity("+i+",'"+e+"')",s*r),s++}function setOpacity(e,t){var n=document.getElementById(t).style;n.display="block",n.opacity=e/100,n.MozOpacity=e/100,n.KhtmlOpacity=e/100,n.filter="alpha(opacity="+e+")",0==e&&(document.getElementById(t).style.display="none")}$(document).ready(function(){function e(e){return new RegExp("^[a-zA-Z0-9.,\\-\\/$%#@!^*_()]+$").test(e)?($(".validatepasswordmsg").hide("slow"),!0):(event.preventDefault(),""==$(".validatepasswordmsg").html()&&$(".validatepasswordmsg").html("Sorry, the character you entered is not accepted."),$(".validatepasswordmsg").show("slow"),!1)}$(".validatepassword").bind("keydown",function(t){switch(t.keyCode){case 8:case 9:case 13:case 37:case 38:case 39:case 40:return!0;default:return e(t.key)}}),$(".validatepassword").bind("blur",function(t){if(v=$(this).val(),""==v)return!0;e(v)||$(this).focus()}),$(".togglepassword").click(function(){var e=$(".validatepassword");return"password"==e.attr("type")?e.attr("type","text"):e.attr("type","password"),!1})}),$(document).ready(function(){$(".form").submit(function(){$(".btnsubmit").toggle(),$("#btnsubmit").text("ENTER REQUIRED INFORMATION MARKED IN RED"),setTimeout(function(){$(".btnsubmit").toggle()},3e3),setTimeout(function(){$("#btnsubmit").text("SUBMIT")},8e3)})});var settosize=14;function getsavedsize(){return settosize}function setsavedsize(e,t){settosize=e,document.getElementById&&(document.getElementById(t).style.cssText="font-size:"+settosize+"px;")}function resetsavedsize(e){settosize=12,document.getElementById&&(document.getElementById(e).style.cssText="font-size:"+settosize+"px")}function fontbigger(e){document.getElementById&&(settosize++,document.getElementById(e).style.cssText="font-size:"+settosize+"px")}function fontsmaller(e){document.getElementById&&(settosize--,document.getElementById(e).style.cssText="font-size:"+settosize+"px")}function setMPCookie(e,t,n,o,i,r){var s=e+"="+(t=escape(t))+(n?"; expires="+n.toGMTString():"")+(o?"; path="+o:"")+(i?"; domain="+i:"")+(r?"; secure":"");document.cookie=s}function getMPCookie(e){var t=e+"=";if(document.cookie.length>0&&(offset=document.cookie.indexOf(t),-1!=offset))return offset+=t.length,end=document.cookie.indexOf(";",offset),-1==end&&(end=document.cookie.length),unescape(document.cookie.substring(offset,end))}function delMPCookie(e,t,n){getMPCookie(e)&&(document.cookie=e+"="+(t?";path="+t:"")+(n?";domain="+n:"")+";expires=Thu, 01-Jan-70 00:00:01 GMT")}function MPCookieExists(e){var t,n=null,o=" "+document.cookie+";",i=" "+e+"=",r=o.indexOf(i);return-1!=r&&(r+=i.length,t=o.indexOf(";",r),n=unescape(o.substring(r,t))),n}function removehtml(e){return e.replace(/<[^>]+>/g,"")}function countchars(e,t,n){var o=e.value,i=o.length;i>t&&(e.value=Left(o,t)),document.getElementById(n)&&(document.getElementById(n).innerHTML=i>0?"<b>Length: "+i+"<br>Maximum: "+t+"</b>":"")}function setclassname(e,t){document.getElementById(e).className=t}function replaceCharacter(e,t,n){return e.split(t).join(n)}function isWhitespace(e){return-1!=" \t\n\r\f".indexOf(e)}function ltrim(e){for(var t=0;t<e.length&&isWhitespace(e.charAt(t));t++);return e.substring(t,e.length)}function rtrim(e){for(var t=e.length-1;t>=0&&isWhitespace(e.charAt(t));t--);return e.substring(0,t+1)}function trim(e){return ltrim(rtrim(e))}function replace_white_space(e){var t="";return e&&(t=e.replace(/\s+/g,"")),t}function KeepAlphaNum(e){for(var t="",n=0;n<e.length;n++){var o=e.charAt(n).toLowerCase();(o>="0"&&o<="9"||o>="a"&&o<="z"||" "==o)&&(t+=o)}return t=trim(t)}function addinnerhtml(e,t){obj=document.getElementById(e),obj.innerHTML=""!=t?t:""}function removetags(e){return str=e,str.replace(/<[^>]+>/g,"")}function sponsored_link_track(e){ajaxgo("/advertising/track/?id="+e)}function URLEncode(e){var t="",n=0;e=e.toString();for(var o=/(^[a-zA-Z0-9_.]*)/;n<e.length;){var i=o.exec(e.substr(n));if(null!=i&&i.length>1&&""!=i[1])t+=i[1],n+=i[1].length;else{if(" "==e[n])t+="+";else{var r=e.charCodeAt(n).toString(16);t+="%"+(r.length<2?"0":"")+r.toUpperCase()}n++}}return t}function showDirectOverlay(e,t,n,o,i,r,s){var a,l,c,u,d,f;a=n<0?$(window).width()-50:n+"px",l=o<0?$(window).height()-50:o+"px",u=-1!=navigator.userAgent.indexOf("MSIE")?"none":"elastic",1==i?(d=!1,f=!1):(d=!0,f=!0),-1!=r.indexOf("iframe:true")?(c=!0,0==l&&(l=450)):c=!1;var p={title:e,href:t,width:a,height:l,opacity:1,overlayClose:f,escKey:d,transition:u,iframe:c,onComplete:function(){-1==r.indexOf("iframe:true")&&$.colorbox.resize()},onCleanup:function(){-1!=r.indexOf("iframe:true")&&$(".cboxIframe").attr("src","http://www.marketingprofs.com/preview/popupclose.html")}},m={};for(var g in p)m[g]=p[g];for(var g in s)m[g]=s[g];$.colorbox(m)}function closeOverlay(e){$.colorbox.close()}function getInternetExplorerVersion(){var e=-1;if("Microsoft Internet Explorer"==navigator.appName){var t=navigator.userAgent;null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1))}return e}function ucfirst(e){return""!=trim(e)?e.substr(0,1).toUpperCase()+e.substr(1):e}!function(e){e.fn.extend({getpage:function(t){t=e.extend({url:"/api/src/articlelist.asp",category:0,recs:10,bakecookie:!0,cookiename:"mpcat",fader:!0},t);return this.each(function(){var n=t;n.fader&&e(this).fadeOut(),e(this).load(n.url,{category:n.category,recs:n.recs}),n.fader&&e(this).fadeIn(),n.bakecookie&&e.cookie(n.cookiename,n.category,{expires:1,path:"/",domain:""})})}})}(jQuery),$(document).ready(function(){$(".disableonsubmit").click(function(){$(".disableonsubmit").each(function(e){$(this).clone().attr("value"," working.. ").attr("disabled","disabled").attr("id","").removeClass("disableonsubmit").insertAfter(this),$(this).hide()})})}),$(document).ready(function(){$(".ucfirst").blur(function(){this.value=ucfirst(this.value)})}),$(function(){$("#navbar ul.tabs li.dropmenu").hover(function(){var e=0,t=$(this).offset().left+$(this).find(".dropnav").outerWidth(),n=$("#navbar").offset().left+$("#navbar").outerWidth();t>n&&(e=n-t),$(this).find(".dropnav").css("left",e)},function(){$(this).find(".dropnav").css("left","-9999px")})}),function(e){var t=[];e.preLoadImages=function(){for(var e=arguments.length;e--;){var n=document.createElement("img");n.src=arguments[e],t.push(n)}}}(jQuery),$(document).ready(function(){$(".help, .helpinfo").click(function(){var e=$(".help").attr("rel");$("#"+e).slideToggle(500)}),$(".trackclick").click(function(){var e=$(this).attr("rel"),t=$(this).attr("href"),n="/trackevent.asp?name="+encodeURIComponent(e)+"&loc="+encodeURIComponent(t);$.ajax(n)})}),$(document).ready(function(){$("body").on("mousedown","a",function(e){new RegExp("/"+window.location.host+"/").test(this.href)||"http"==this.href.substring(0,4)&&$(this).attr("target","_blank")})});$('document').ready(function(){$('.clipboard').on('click',function(e){e.preventDefault();var copyText=$(this).data('copy');var textarea=document.createElement("textarea");textarea.textContent=copyText;textarea.style.position="fixed";document.body.appendChild(textarea);textarea.select();document.execCommand("copy");document.body.removeChild(textarea);alert("Copied to your clipboard successfully.")})
$(".fmtphone").keypress(function(e){if(e.which!=8&&e.which!=0&&(e.which<48||e.which>57)){return!1}
var curchr=this.value.length;var curval=$(this).val();if(curchr==3&&curval.indexOf("(")<=-1){$(this).val("("+curval+")"+" ")}else if(curchr==4&&curval.indexOf("(")>-1){$(this).val(curval+")-")}else if(curchr==5&&curval.indexOf(")")>-1){$(this).val(curval+"-")}else if(curchr==9){$(this).val(curval+"-");$(this).attr('maxlength','14')}})});document.addEventListener('DOMContentLoaded',()=>{for(const el of document.querySelectorAll("[placeholder][data-slots]")){const pattern=el.getAttribute("placeholder"),slots=new Set(el.dataset.slots||"_"),prev=(j=>Array.from(pattern,(c,i)=>slots.has(c)?j=i+1:j))(0),first=[...pattern].findIndex(c=>slots.has(c)),accept=new RegExp(el.dataset.accept||"\\d","g"),clean=input=>{input=input.match(accept)||[];return Array.from(pattern,c=>input[0]===c||slots.has(c)?input.shift()||c:c)},format=()=>{const[i,j]=[el.selectionStart,el.selectionEnd].map(i=>{i=clean(el.value.slice(0,i)).findIndex(c=>slots.has(c));return i<0?prev[prev.length-1]:back?prev[i-1]||first:i});el.value=clean(el.value).join``;el.setSelectionRange(i,j);back=!1};let back=!1;el.addEventListener("keydown",(e)=>back=e.key==="Backspace");el.addEventListener("input",format);el.addEventListener("focus",format);el.addEventListener("blur",()=>el.value===pattern&&(el.value=""))}})