if(window.registerLoading){registerLoading("sa");}__said=document.documentElement.getAttribute('data-sa');function _said_(value,value2,ppc){if(value===undefined){return+($.cookie('_sa'));}else{_vaid_(value2);$.cookie('_sa',value);_set6210(value,ppc);}}function _vaid_(value){if(typeof localStorage==='undefined'){return null;}if(value===undefined){return localStorage["_vid_"];}else if(value>0){localStorage["_vid_"]=value;}}function _raid_(s,v,p,a,x,c,r,k,p1,p2,t,l,phone,e){var o,cookies,keys,index,key,value,svc,ssl,src,img;if(!s||!v){return;}_said_(s,v,p);o={expires:e};cookies={"SPPC":p,"PPCAD":a,"PPCEX":x,"PPCCMP":c,"SEOD":r,"SEOK":k,"PPCP1":p1,"PPCP2":p2,"PPCTR":t,"L":l};keys=Object.keys(cookies);index=keys.length;while(index--){key=keys[index];value=cookies[key];if(value){$.cookie(key,value,o);}else{$.removeCookie(key);}}if(window.Process){window.Process.Delayed();p1=_getPhoneNumber();if(p1!=phone){svc='sa.scorpiondesign.com';ssl=('https:'==document.location.protocol)?"1":"";src=(ssl?'https://':'http://')+svc+'/sa6.js?'+__said+','+s+','+phone+','+p1;if(navigator.sendBeacon){navigator.sendBeacon(src);return;}img=document.createElement('img');img.style.display='none';img.src='about:blank';document.body.appendChild(img);img.src=src;}}}function _vvid_(id,value,value2){var player,jw=window.jwplayer,el=id&&document.getElementById(id);if(el&&el.nodeName&&/video/i.test(el.nodeName)){player=el;}else if(jw){player=jw(id);}if(player&&value&&value2){if(!player.sa){player.sa={};}player.sa.vvid=value;player.sa.vpid=value2;}}function _set6210(id,ppc){var h;if(!id){return;}else if(ppc===undefined){ppc=$.cookie('SPPC')||"";}if(ppc){h='#~'+_base6210(parseInt(id));if(window.location.hash!=h){if(window.history&&window.history.replaceState){if(window.location.search&&window.location.search.indexOf("SPPC=")>0){h=window.location.pathname+h;}window.history.replaceState(undefined,undefined,h);}else if(window.location.replace){window.location.replace(h);}}}}function _getPhoneNumber(){var links,i,len,href,m,phone;links=document.getElementsByTagName('a');for(i=0,len=links.length;i=10){return phone;}}}return"";}rrequire(['jquery','cookie'],function(){if(/google|bing|yahoo|spider|crawl|monitor|site24|bot\b/i.test(window.navigator.userAgent||"")){return;}var loc,id2,width,d,jan,jul,tz,v,domain,keywords,ad,ex,cmp,query,s,fn_class,fnCustomSearch,sa_click,fnClick,ppc=$.cookie('SPPC')||"",svc='sa.scorpiondesign.com',id=_said_()||0,ssl=('https:'==document.location.protocol)?"1":"",phone=_getPhoneNumber(),sa=document.createElement('script');sa.type='text/javascript';sa.async=true;loc=$.cookie('L')||"0";if(!ppc&&window.location.hash&&window.location.hash[1]==='~'&&(id2=_base6210(window.location.hash.substr(2)))>0){$.cookie('SPPC','true');width=(window.innerWidth||document.documentElement.offsetWidth||document.body.offsetWidth||0);d=new Date();jan=new Date(d.getFullYear(),0,1);jul=new Date(d.getFullYear(),6,1);tz=Math.max(jan.getTimezoneOffset(),jul.getTimezoneOffset())/60;v=_vaid_()||0;sa.src=(ssl?'https://':'http://')+svc+'/sa4.js?'+__said+','+id+','+v+','+id2+','+width+','+tz+','+phone+','+encodeURIComponent(window.location.href)+','+loc;}else if(id){sa.src=(ssl?'https://':'http://')+svc+'/sa2.js?'+__said+','+id+','+phone+','+encodeURIComponent(window.location.href)+','+loc;if(ppc){_set6210(id,ppc);}if(window.Process){window.Process.Delayed();}}else{domain=$.cookie('SEOD')||"";keywords=$.cookie('SEOK')||"";width=(window.innerWidth||document.documentElement.offsetWidth||document.body.offsetWidth||0);d=new Date();jan=new Date(d.getFullYear(),0,1);jul=new Date(d.getFullYear(),6,1);tz=Math.max(jan.getTimezoneOffset(),jul.getTimezoneOffset())/60;v=_vaid_()||"";ad=$.cookie('PPCAD')||"";ex=$.cookie('PPCEX')||"";cmp=$.cookie('PPCCMP')||"";query=__said+','+ssl+','+ppc+','+domain+','+encodeURIComponent(keywords)+','+width+','+tz+','+phone+','+encodeURIComponent(window.location.href)+','+v+','+ad+','+ex+','+cmp+','+loc;sa.src=(ssl?'https://':'http://')+svc+'/sa.js?'+query;if(window.Process){window.Process.Delayed();}}s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(sa,s);fn_class=function(cls){if(!cls||!$.trim(cls)){return"";}else{return'.'+$.trim(cls).replace(/ +/g,'.');}};fnCustomSearch=function(){return undefined;};sa_click=false;fnClick=function(e){var p,children,index,last,id,ssl,clicked,w,h,t,x,y,src,target=$(e.target||e.srcElement),node=target[0].nodeName.toLowerCase(),button=target.closest('button'),form=button.closest('form'),post=form.attr('method')==='post'?'1':'',action=form.attr('action'),search=action&&form.data('search')&&form.find("input:text:visible").val(),link=target.closest("a[href]"),href=link.attr('href'),id=target.attr('id'),cls=fn_class(target.attr('class')),selector=[];if($.isFunction(fnCustomSearch)){search=fnCustomSearch(e)||search;}if(button.length){target=button;node='button';id=button.attr('id');cls=fn_class(target.attr('class'));href=action;}else if(link.length){target=link;node='a';id=link.attr('id');cls=fn_class(target.attr('class'));}if(id){selector.push("#"+id);}else{target.parents("[id],[class],li").filter(':not(body,html)').each(function(i){var item=$(this),_node=(item[0].nodeName||"").toLowerCase(),_id=item.attr('id'),_cls=fn_class(item.attr('class'));if(_id){selector.unshift('#'+_id);return false;}else if(_cls){selector.unshift(_node+_cls);}else{selector.unshift(_node);}});p=$(selector.join(" "));if(p.length>1){index=-1;p.each(function(i){var items=$(this).find(node+cls);if(items.index(target)>=0){index=i;return false;}});if(index>=0){selector[selector.length-1]+=':eq('+index+')';p=p.eq(index);}}children=p.find(node+cls);if(children.length===1){selector.push(node+cls);}else{index=children.index(target);if(index>=0){selector.push(node+cls+':eq('+index+')');}}}id=_said_();ssl=('https:'==document.location.protocol)?"1":"";clicked=encodeURIComponent(selector.join(" "));w=(window.innerWidth||document.documentElement.offsetWidth||document.body.offsetWidth||0);h=(window.innerHeight||document.documentElement.offsetHeight||document.body.offsetHeight||0);t=Math.max(document.documentElement.scrollTop,document.body.scrollTop);x=e.pageX||e.clientX||0;y=e.pageY||e.clientY||0;src=(ssl?'https://':'http://')+svc+'/sa3.js?'+__said+','+id+','+clicked+','+w+','+h+','+t+','+x+','+y+','+encodeURIComponent(href||"")+','+post+','+encodeURIComponent(search||"")+','+loc;if(navigator.sendBeacon){navigator.sendBeacon(src);return;}if(!sa_click){sa_click=document.createElement('img');sa_click.style.display='none';sa_click.src='about:blank';document.body.appendChild(sa_click);}sa_click.src=src;if(link.length&&href&&!e.shiftKey&&!e.ctrlKey&&href.indexOf('javascript:')!=0&&href.indexOf('#')!=0&&(link.attr('target')||'_self')==='_self'){if(e.stopPropagation){e.stopPropagation();e.stopImmediatePropagation();e.preventDefault();}else{e.returnValue=false;}link.one('click',function(e){e.stopPropagation();});link=link[0];setTimeout(function(){link&&link.click&&link.click();link=null;},100);return false;}};if(document.addEventListener){document.addEventListener('click',fnClick,false);}else if(document.attachEvent){document.attachEvent('onclick',fnClick);}window._sa_overrideSearch=function(fn){fnCustomSearch=fn;};window._sa_videoStart=function(jwid,vvid,video,from,dur,auto){var s,id,ssl;if(video.substring(0,11)=="/cms/video/"){$.ajax({url:video,dataType:'xml',success:function(xml){var hd,file,m;$('video[src]',xml).each(function(i){var $el=$(this),src=$el.attr('src');if($el.attr('width')){hd=src;}else if(!file){file=src;return false;}});file=file||hd;if(!file){return;}else{file=file.replace(/^(\w+:)?\d+\//,'/');if(file.substring(0,11)=="/cms/video/"){return;}}window._sa_videoStart(jwid,vvid,file,from,dur,auto);}});return;}s=document.createElement('script');id=_said_();ssl=('https:'==document.location.protocol)?"1":"";s.type='text/javascript';s.async=true;s.src='about:blank';s.src=(ssl?'https://':'http://')+svc+'/va.js?'+__said+','+id+','+jwid+','+encodeURIComponent(video||"")+','+from+','+dur+','+vvid+','+auto+','+loc;(document.head||document.body).appendChild(s);};window._sa_videoPlay=function(vvid,vpid,to,dur){var ssl=('https:'==document.location.protocol)?"1":"",src=(ssl?'https://':'http://')+svc+'/va2.js?'+__said+','+vvid+','+vpid+','+to+','+dur+','+loc;if(navigator.sendBeacon){navigator.sendBeacon(src);return;}if(!va_play){va_play=document.createElement('img');va_play.style.display='none';va_play.src='about:blank';document.body.appendChild(va_play);}va_play.src=src;};if(window.register){window.register("sa");}});function _base6210(value){var number,digit,mod,c,factor=1,even=true,chars=[];if(typeof value==='number'){if(isNaN(value)){return undefined;}number=value;while(number>0){if(even){digit=factor*62;}else{digit=factor*10;}even=!even;mod=number%digit;c=_toDigit62(mod/factor);chars.push(c);number-=mod;factor=digit;}return chars.join("");}else if(typeof value==='string'){if(!value){return 0;}number=0;for(var i=0;i