1/*! 2 Flowplayer v5.5.2 (Thursday, 27. November 2014 10:32AM) | flowplayer.org/license 3*/ 4function WebForm_PostBackOptions(n,t,i,r,u,f,e){this.eventTarget=n;this.eventArgument=t;this.validation=i;this.validationGroup=r;this.actionUrl=u;this.trackFocus=f;this.clientSubmit=e}function WebForm_DoPostBackWithOptions(n){var r=!0,i,t;n.validation&&typeof Page_ClientValidate=="function"&&(r=Page_ClientValidate(n.validationGroup));r&&(typeof n.actionUrl!="undefined"&&n.actionUrl!=null&&n.actionUrl.length>0&&(theForm.action=n.actionUrl),n.trackFocus&&(i=theForm.elements.__LASTFOCUS,typeof i!="undefined"&&i!=null&&(typeof document.activeElement=="undefined"?i.value=n.eventTarget:(t=document.activeElement,typeof t!="undefined"&&t!=null&&(typeof t.id!="undefined"&&t.id!=null&&t.id.length>0?i.value=t.id:typeof t.name!="undefined"&&(i.value=t.name))))));n.clientSubmit&&__doPostBack(n.eventTarget,n.eventArgument)}function WebForm_DoCallback(n,t,i,r,u,f){var w=__theFormPostData+"__CALLBACKID="+WebForm_EncodeCallback(n)+"&__CALLBACKPARAM="+WebForm_EncodeCallback(t),s,v,h,l,o,y,a,p,c,e,b;theForm.__EVENTVALIDATION&&(w+="&__EVENTVALIDATION="+WebForm_EncodeCallback(theForm.__EVENTVALIDATION.value));try{s=new XMLHttpRequest}catch(k){try{s=new ActiveXObject("Microsoft.XMLHTTP")}catch(k){}}v=!0;try{v=s&&s.setRequestHeader}catch(k){}if(h={},h.eventCallback=i,h.context=r,h.errorCallback=u,h.async=f,l=WebForm_FillFirstAvailableSlot(__pendingCallbacks,h),f||(__synchronousCallBackIndex!=-1&&(__pendingCallbacks[__synchronousCallBackIndex]=null),__synchronousCallBackIndex=l),v){s.onreadystatechange=WebForm_CallbackComplete;h.xmlRequest=s;o=theForm.action||document.location.pathname;y=o.indexOf("#");y!==-1&&(o=o.substr(0,y));__nonMSDOMBrowser||(a=o.indexOf("?"),a!==-1?(p=o.substr(0,a),p.indexOf("%")===-1&&(o=encodeURI(p)+o.substr(a))):o.indexOf("%")===-1&&(o=encodeURI(o)));s.open("POST",o,!0);s.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8");s.send(w);return}if(h.xmlRequest={},c="__CALLBACKFRAME"+l,e=document.frames[c],!e){e=document.createElement("IFRAME");e.width="1";e.height="1";e.frameBorder="0";e.id=c;e.name=c;e.style.position="absolute";e.style.top="-100px";e.style.left="-100px";try{callBackFrameUrl&&(e.src=callBackFrameUrl)}catch(k){}document.body.appendChild(e)}b=window.setInterval(function(){var a,s,h,i,r,u,f,o;
4if(e=document.frames[c],e&&e.document){for(window.clearInterval(b),e.document.write(""),e.document.close(),e.document.write('<html><body><form method="post"><input type="hidden" name="__CALLBACKLOADSCRIPT" value="t"><\/form><\/body><\/html>'),e.document.close(),e.document.forms[0].action=theForm.action,a=__theFormPostCollection.length,h=0;h<a;h++)s=__theFormPostCollection[h],s&&(i=e.document.createElement("INPUT"),i.type="hidden",i.name=s.name,i.value=s.value,e.document.forms[0].appendChild(i));r=e.document.createElement("INPUT");r.type="hidden";r.name="__CALLBACKID";r.value=n;e.document.forms[0].appendChild(r);u=e.document.createElement("INPUT");u.type="hidden";u.name="__CALLBACKPARAM";u.value=t;e.document.forms[0].appendChild(u);theForm.__EVENTVALIDATION&&(f=e.document.createElement("INPUT"),f.type="hidden",f.name="__EVENTVALIDATION",f.value=theForm.__EVENTVALIDATION.value,e.document.forms[0].appendChild(f));o=e.document.createElement("INPUT");o.type="hidden";o.name="__CALLBACKINDEX";o.value=l;e.document.forms[0].appendChild(o);e.document.forms[0].submit()}},10)}function WebForm_CallbackComplete(){for(var i,t,n=0;n<__pendingCallbacks.length;n++)callbackObject=__pendingCallbacks[n],callbackObject&&callbackObject.xmlRequest&&callbackObject.xmlRequest.readyState==4&&(__pendingCallbacks[n].async||(__synchronousCallBackIndex=-1),__pendingCallbacks[n]=null,i="__CALLBACKFRAME"+n,t=document.getElementById(i),t&&t.parentNode.removeChild(t),WebForm_ExecuteCallback(callbackObject))}function WebForm_ExecuteCallback(n){var t=n.xmlRequest.responseText,r,u,f,i;t.charAt(0)=="s"?typeof n.eventCallback!="undefined"&&n.eventCallback!=null&&n.eventCallback(t.substring(1),n.context):t.charAt(0)=="e"?typeof n.errorCallback!="undefined"&&n.errorCallback!=null&&n.errorCallback(t.substring(1),n.context):(r=t.indexOf("|"),r!=-1&&(u=parseInt(t.substring(0,r)),isNaN(u)||(f=t.substring(r+1,r+u+1),f!=""&&(i=theForm.__EVENTVALIDATION,i||(i=document.createElement("INPUT"),i.type="hidden",i.name="__EVENTVALIDATION",theForm.appendChild(i)),i.value=f),typeof n.eventCallback!="undefined"&&n.eventCallback!=null&&n.eventCallback(t.substring(r+u+1),n.context))))}function WebForm_FillFirstAvailableSlot(n,t){for(var i=0;i<n.length;i++)if(!n[i])break;return n[i]=t,i}function WebForm_InitCallback(){for(var t,i,e,r,o,f=theForm.elements,s=f.length,n,u=0;u<s;u++)if(n=f[u],t=n.tagName.toLowerCase(),t=="input")i=n.type,(__callbackTextTypes.test(i)||(i=="checkbox"||i=="radio")&&n.checked)&&n.id!="__EVENTVALIDATION"&&WebForm_InitCallbackAddField(n.name,n.value);else if(t=="select")for(e=n.options.length,r=0;r<e;r++)o=n.options[r],o.selected==!0&&WebForm_InitCallbackAddField(n.name,n.value);else t=="textarea"&&WebForm_InitCallbackAddField(n.name,n.value)}function WebForm_InitCallbackAddField(n,t){var i={};i.name=n;i.value=t;__theFormPostCollection[__theFormPostCollection.length]=i;__theFormPostData+=WebForm_EncodeCallback(n)+"="+WebForm_EncodeCallback(t)+"&"}function WebForm_EncodeCallback(n){return encodeURIComponent?encodeURIComponent(n):escape(n)}function WebForm_ReEnableControls(){var i,t,n;if(typeof __enabledControlArray=="undefined")return!1;for(i=0,t=0;t<__enabledControlArray.length;t++)n=__nonMSDOMBrowser?document.getElementById(__enabledControlArray[t]):document.all[__enabledControlArray[t]],typeof n!="undefined"&&n!=null&&n.disabled==!0&&(n.disabled=!1,__disabledControlArray[i++]=n);return setTimeout("WebForm_ReDisableControls()",0),!0}function WebForm_ReDisableControls(){for(var n=0;n<__disabledControlArray.length;n++)__disabledControlArray[n].disabled=!0}function WebForm_SimulateClick(n,t){var i;if(n){if(n.click)n.click();else if(i=document.createEvent("MouseEvents"),i.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),!n.dispatchEvent(i))return!0;return t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation(),!1}return!0}function WebForm_FireDefaultButton(n,t){var i,r;if(n.keyCode==13){if(i=n.srcElement||n.target,i&&i.tagName.toLowerCase()=="input"&&(i.type.toLowerCase()=="submit"||i.type.toLowerCase()=="button")||i.tagName.toLowerCase()=="a"&&i.href!=null&&i.href!=""||i.tagName.toLowerCase()=="textarea")return!0;
4if(r=__nonMSDOMBrowser?document.getElementById(t):document.all[t],r)return WebForm_SimulateClick(r,n)}return!0}function WebForm_GetScrollX(){return __nonMSDOMBrowser?window.pageXOffset:document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body?document.body.scrollLeft:0}function WebForm_GetScrollY(){return __nonMSDOMBrowser?window.pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body?document.body.scrollTop:0}function WebForm_SaveScrollPositionSubmit(){return(__nonMSDOMBrowser?(theForm.elements.__SCROLLPOSITIONY.value=window.pageYOffset,theForm.elements.__SCROLLPOSITIONX.value=window.pageXOffset):(theForm.__SCROLLPOSITIONX.value=WebForm_GetScrollX(),theForm.__SCROLLPOSITIONY.value=WebForm_GetScrollY()),typeof this.oldSubmit!="undefined"&&this.oldSubmit!=null)?this.oldSubmit():!0}function WebForm_SaveScrollPositionOnSubmit(){return(theForm.__SCROLLPOSITIONX.value=WebForm_GetScrollX(),theForm.__SCROLLPOSITIONY.value=WebForm_GetScrollY(),typeof this.oldOnSubmit!="undefined"&&this.oldOnSubmit!=null)?this.oldOnSubmit():!0}function WebForm_RestoreScrollPosition(){return(__nonMSDOMBrowser?window.scrollTo(theForm.elements.__SCROLLPOSITIONX.value,theForm.elements.__SCROLLPOSITIONY.value):window.scrollTo(theForm.__SCROLLPOSITIONX.value,theForm.__SCROLLPOSITIONY.value),typeof theForm.oldOnLoad!="undefined"&&theForm.oldOnLoad!=null)?theForm.oldOnLoad():!0}function WebForm_TextBoxKeyHandler(n){if(n.keyCode==13){var t;if(t=__nonMSDOMBrowser?n.target:n.srcElement,typeof t!="undefined"&&t!=null&&typeof t.onchange!="undefined")return t.onchange(),n.cancelBubble=!0,n.stopPropagation&&n.stopPropagation(),!1}return!0}function WebForm_TrimString(n){return n.replace(/^\s+|\s+$/g,"")}function WebForm_AppendToClassName(n,t){var r=" "+WebForm_TrimString(n.className)+" ",i;t=WebForm_TrimString(t);i=r.indexOf(" "+t+" ");i===-1&&(n.className=n.className===""?t:n.className+" "+t)}function WebForm_RemoveClassName(n,t){var i=" "+WebForm_TrimString(n.className)+" ",r;t=WebForm_TrimString(t);r=i.indexOf(" "+t+" ");r>=0&&(n.className=WebForm_TrimString(i.substring(0,r)+" "+i.substring(r+t.length+1,i.length)))}function WebForm_GetElementById(n){return document.getElementById?document.getElementById(n):document.all?document.all[n]:null}function WebForm_GetElementByTagName(n,t){var i=WebForm_GetElementsByTagName(n,t);return i&&i.length>0?i[0]:null}function WebForm_GetElementsByTagName(n,t){if(n&&t){if(n.getElementsByTagName)return n.getElementsByTagName(t);if(n.all&&n.all.tags)return n.all.tags(t)}return null}function WebForm_GetElementDir(n){return n?n.dir?n.dir:WebForm_GetElementDir(n.parentNode):"ltr"}function WebForm_GetElementPosition(n){var t={},i,r;if(t.x=0,t.y=0,t.width=0,t.height=0,n.offsetParent)for(t.x=n.offsetLeft,t.y=n.offsetTop,i=n.offsetParent;i;)t.x+=i.offsetLeft,t.y+=i.offsetTop,r=i.tagName.toLowerCase(),r!="table"&&r!="body"&&r!="html"&&r!="div"&&i.clientTop&&i.clientLeft&&(t.x+=i.clientLeft,t.y+=i.clientTop),i=i.offsetParent;else n.left&&n.top?(t.x=n.left,t.y=n.top):(n.x&&(t.x=n.x),n.y&&(t.y=n.y));return n.offsetWidth&&n.offsetHeight?(t.width=n.offsetWidth,t.height=n.offsetHeight):n.style&&n.style.pixelWidth&&n.style.pixelHeight&&(t.width=n.style.pixelWidth,t.height=n.style.pixelHeight),t}function WebForm_GetParentByTagName(n,t){for(var i=n.parentNode,r=t.toUpperCase();i&&i.tagName.toUpperCase()!=r;)i=i.parentNode?i.parentNode:i.parentElement;return i}function WebForm_SetElementHeight(n,t){n&&n.style&&(n.style.height=t+"px")}function WebForm_SetElementWidth(n,t){n&&n.style&&(n.style.width=t+"px")}function WebForm_SetElementX(n,t){n&&n.style&&(n.style.left=t+"px")}function WebForm_SetElementY(n,t){n&&n.style&&(n.style.top=t+"px")}function ValidatorUpdateDisplay(n){if(typeof n.display=="string"){if(n.display=="None")return;if(n.display=="Dynamic"){n.style.display=n.isvalid?"none":"inline";return}}navigator.userAgent.indexOf("Mac")>-1&&navigator.userAgent.indexOf("MSIE")>-1&&(n.style.display="inline");n.style.visibility=n.isvalid?"hidden":"visible"}function ValidatorUpdateIsValid(){Page_IsValid=AllValidatorsValid(Page_Validators)}
4function AllValidatorsValid(n){if(typeof n!="undefined"&&n!=null)for(var t=0;t<n.length;t++)if(!n[t].isvalid)return!1;return!0}function ValidatorHookupControlID(n,t){if(typeof n=="string"){var i=document.getElementById(n);typeof i!="undefined"&&i!=null?ValidatorHookupControl(i,t):(t.isvalid=!0,t.enabled=!1)}}function ValidatorHookupControl(n,t){var i,r;if(typeof n.tagName=="string"){if(n.tagName!="INPUT"&&n.tagName!="TEXTAREA"&&n.tagName!="SELECT"){for(i=0;i<n.childNodes.length;i++)ValidatorHookupControl(n.childNodes[i],t);return}typeof n.Validators=="undefined"&&(n.Validators=[],n.type=="radio"?r="onclick":(r="onchange",typeof t.focusOnError=="string"&&t.focusOnError=="t"&&ValidatorHookupEvent(n,"onblur","ValidatedControlOnBlur(event); ")),ValidatorHookupEvent(n,r,"ValidatorOnChange(event); "),Page_TextTypes.test(n.type)&&ValidatorHookupEvent(n,"onkeypress","event = event || window.event; if (!ValidatedTextBoxOnKeyPress(event)) { event.cancelBubble = true; if (event.stopPropagation) event.stopPropagation(); return false; } "));n.Validators[n.Validators.length]=t}}function ValidatorHookupEvent(n,t,i){var r=n[t];typeof r=="function"?(r=r.toString(),r=r.substring(r.indexOf("{")+1,r.lastIndexOf("}"))):r="";n[t]=new Function("event",i+" "+r)}function ValidatorGetValue(n){var t;return(t=document.getElementById(n),typeof t.value=="string")?t.value:ValidatorGetValueRecursive(t)}function ValidatorGetValueRecursive(n){if(typeof n.value=="string"&&(n.type!="radio"||n.checked==!0))return n.value;for(var i,t=0;t<n.childNodes.length;t++)if(i=ValidatorGetValueRecursive(n.childNodes[t]),i!="")return i;return""}function Page_ClientValidate(n){if(Page_InvalidControlToBeFocused=null,typeof Page_Validators=="undefined")return!0;for(var t=0;t<Page_Validators.length;t++)ValidatorValidate(Page_Validators[t],n,null);return ValidatorUpdateIsValid(),ValidationSummaryOnSubmit(n),Page_BlockSubmit=!Page_IsValid,Page_IsValid}function ValidatorCommonOnSubmit(){Page_InvalidControlToBeFocused=null;var n=!Page_BlockSubmit;return typeof event!="undefined"&&window.event!=null&&(window.event.returnValue=n),Page_BlockSubmit=!1,n}function ValidatorEnable(n,t){n.enabled=t!=!1;ValidatorValidate(n);ValidatorUpdateIsValid()}function ValidatorOnChange(n){var t,i,r;if(n=n||window.event,Page_InvalidControlToBeFocused=null,t=typeof n.srcElement!="undefined"&&n.srcElement!=null?n.srcElement:n.target,typeof t.Validators!="undefined"?i=t.Validators:t.tagName.toLowerCase()=="label"&&(t=document.getElementById(t.htmlFor),i=t.Validators),i)for(r=0;r<i.length;
4r++)ValidatorValidate(i[r],null,n);ValidatorUpdateIsValid()}function ValidatedTextBoxOnKeyPress(n){if(n=n||window.event,n.keyCode==13){ValidatorOnChange(n);var t;return t=typeof n.srcElement!="undefined"&&n.srcElement!=null?n.srcElement.Validators:n.target.Validators,AllValidatorsValid(t)}return!0}function ValidatedControlOnBlur(n){n=n||window.event;var t;t=typeof n.srcElement!="undefined"&&n.srcElement!=null?n.srcElement:n.target;typeof t!="undefined"&&t!=null&&Page_InvalidControlToBeFocused==t&&(t.focus(),Page_InvalidControlToBeFocused=null)}function ValidatorValidate(n,t,i){n.isvalid=!0;(typeof n.enabled=="undefined"||n.enabled!=!1)&&IsValidationGroupMatch(n,t)&&typeof n.evaluationfunction=="function"&&(n.isvalid=n.evaluationfunction(n),n.isvalid||Page_InvalidControlToBeFocused!=null||typeof n.focusOnError!="string"||n.focusOnError!="t"||ValidatorSetFocus(n,i));ValidatorUpdateDisplay(n)}function ValidatorSetFocus(n,t){var i,r,u,f;typeof n.controlhookup=="string"&&(typeof t!="undefined"&&t!=null&&(r=typeof t.srcElement!="undefined"&&t.srcElement!=null?t.srcElement:t.target),typeof r!="undefined"&&r!=null&&typeof r.id=="string"&&r.id==n.controlhookup&&(i=r));(typeof i=="undefined"||i==null)&&(i=document.getElementById(n.controltovalidate));typeof i!="undefined"&&i!=null&&(i.tagName.toLowerCase()!="table"||typeof t=="undefined"||t==null)&&(i.tagName.toLowerCase()!="input"||i.type.toLowerCase()!="hidden")&&(typeof i.disabled=="undefined"||i.disabled==null||i.disabled==!1)&&(typeof i.visible=="undefined"||i.visible==null||i.visible!=!1)&&IsInVisibleContainer(i)&&((i.tagName.toLowerCase()=="table"&&(typeof __nonMSDOMBrowser=="undefined"||__nonMSDOMBrowser)||i.tagName.toLowerCase()=="span")&&(u=i.getElementsByTagName("input"),f=u[u.length-1],f!=null&&(i=f)),typeof i.focus!="undefined"&&i.focus!=null&&(i.focus(),Page_InvalidControlToBeFocused=i))}function IsInVisibleContainer(n){return typeof n.style!="undefined"&&(typeof n.style.display!="undefined"&&n.style.display=="none"||typeof n.style.visibility!="undefined"&&n.style.visibility=="hidden")?!1:typeof n.parentNode!="undefined"&&n.parentNode!=null&&n.parentNode!=n?IsInVisibleContainer(n.parentNode):!0}function IsValidationGroupMatch(n,t){if(typeof t=="undefined"||t==null)return!0;var i="";return typeof n.validationGroup=="string"&&(i=n.validationGroup),i==t}function ValidatorOnLoad(){if(typeof Page_Validators!="undefined"){for(var val,i=0;i<Page_Validators.length;
4i++)val=Page_Validators[i],typeof val.evaluationfunction=="string"&&eval("val.evaluationfunction = "+val.evaluationfunction+";"),typeof val.isvalid=="string"?val.isvalid=="False"?(val.isvalid=!1,Page_IsValid=!1):val.isvalid=!0:val.isvalid=!0,typeof val.enabled=="string"&&(val.enabled=val.enabled!="False"),typeof val.controltovalidate=="string"&&ValidatorHookupControlID(val.controltovalidate,val),typeof val.controlhookup=="string"&&ValidatorHookupControlID(val.controlhookup,val);Page_ValidationActive=!0}}function ValidatorConvert(n,t,i){function p(n){var t=i.cutoffyear%100,r=i.cutoffyear-t;return n>t?r-100+n:r+n}var u,l,r,e,a,v,y,h,w,c,o,s,b,f;if(t=="Integer")return(e=/^\s*[-\+]?\d+\s*$/,n.match(e)==null)?null:(u=parseInt(n,10),isNaN(u)?null:u);if(t=="Double")return(e=new RegExp("^\\s*([-\\+])?(\\d*)\\"+i.decimalchar+"?(\\d*)\\s*$"),r=n.match(e),r==null)?null:r[2].length==0&&r[3].length==0?null:(l=(r[1]!=null?r[1]:"")+(r[2].length>0?r[2]:"0")+(r[3].length>0?"."+r[3]:""),u=parseFloat(l),isNaN(u)?null:u);if(t=="Currency")return(a=i.digits>0,h=parseInt(i.groupsize,10),!isNaN(h)&&h>0?(v="{1,"+h+"}",y="{"+h+"}"):v=y="+",e=new RegExp("^\\s*([-\\+])?((\\d"+v+"(\\"+i.groupchar+"\\d"+y+")+)|\\d*)"+(a?"\\"+i.decimalchar+"?(\\d{0,"+i.digits+"})":"")+"\\s*$"),r=n.match(e),r==null)?null:r[2].length==0&&a&&r[5].length==0?null:(l=(r[1]!=null?r[1]:"")+r[2].replace(new RegExp("(\\"+i.groupchar+")","g"),"")+(a&&r[5].length>0?"."+r[5]:""),u=parseFloat(l),isNaN(u)?null:u);if(t=="Date"){if(w=new RegExp("^\\s*((\\d{4})|(\\d{2}))([-/]|\\. ?)(\\d{1,2})\\4(\\d{1,2})\\.?\\s*$"),r=n.match(w),r!=null&&(typeof r[2]!="undefined"&&r[2].length==4||i.dateorder=="ymd"))c=r[6],o=r[5],s=r[2].length==4?r[2]:p(parseInt(r[3],10));else{if(i.dateorder=="ymd"||(b=new RegExp("^\\s*(\\d{1,2})([-/]|\\. ?)(\\d{1,2})(?:\\s|\\2)((\\d{4})|(\\d{2}))(?:\\sг\\.|\\.)?\\s*$"),r=n.match(b),r==null))return null;i.dateorder=="mdy"?(c=r[3],o=r[1]):(c=r[1],o=r[3]);s=typeof r[5]!="undefined"&&r[5].length==4?r[5]:p(parseInt(r[6],10))}return o-=1,f=new Date(s,o,c),s<100&&f.setFullYear(s),typeof f=="object"&&s==f.getFullYear()&&o==f.getMonth()&&c==f.getDate()?f.valueOf():null}return n.toString()}function ValidatorCompare(n,t,i,r){var e=r.type,u,f;if((u=ValidatorConvert(n,e,r))==null)return!1;if(i=="DataTypeCheck"||(f=ValidatorConvert(t,e,r))==null)return!0;switch(i){case"NotEqual":return u!=f;case"GreaterThan":return u>f;case"GreaterThanEqual":return u>=f;case"LessThan":return u<f;case"LessThanEqual":return u<=f;default:return u==f}}function CompareValidatorEvaluateIsValid(n){var r=ValidatorGetValue(n.controltovalidate),t,i;return ValidatorTrim(r).length==0?!0:(t="",typeof n.controltocompare!="string"||typeof document.getElementById(n.controltocompare)=="undefined"||null==document.getElementById(n.controltocompare)?typeof n.valuetocompare=="string"&&(t=n.valuetocompare):t=ValidatorGetValue(n.controltocompare),i="Equal",typeof n.operator=="string"&&(i=n.operator),ValidatorCompare(r,t,i,n))}function CustomValidatorEvaluateIsValid(val){var value="",args;return typeof val.controltovalidate=="string"&&(value=ValidatorGetValue(val.controltovalidate),ValidatorTrim(value).length==0&&(typeof val.validateemptytext!="string"||val.validateemptytext!="true"))?!0:(args={Value:value,IsValid:!0}
4,typeof val.clientvalidationfunction=="string"&&eval(val.clientvalidationfunction+"(val, args) ;"),args.IsValid)}function RegularExpressionValidatorEvaluateIsValid(n){var t=ValidatorGetValue(n.controltovalidate),r,i;return ValidatorTrim(t).length==0?!0:(r=new RegExp(n.validationexpression),i=r.exec(t),i!=null&&t==i[0])}function ValidatorTrim(n){var t=n.match(/^\s*(\S+(\s+\S+)*)\s*$/);return t==null?"":t[1]}function RequiredFieldValidatorEvaluateIsValid(n){return ValidatorTrim(ValidatorGetValue(n.controltovalidate))!=ValidatorTrim(n.initialvalue)}function RangeValidatorEvaluateIsValid(n){var t=ValidatorGetValue(n.controltovalidate);return ValidatorTrim(t).length==0?!0:ValidatorCompare(t,n.minimumvalue,"GreaterThanEqual",n)&&ValidatorCompare(t,n.maximumvalue,"LessThanEqual",n)}function ValidationSummaryOnSubmit(n){var t,u,r,f,e,o,s,h,i,c;if(typeof Page_ValidationSummaries!="undefined")for(u=0;u<Page_ValidationSummaries.length;u++)if((t=Page_ValidationSummaries[u],t)&&(t.style.display="none",!Page_IsValid&&IsValidationGroupMatch(t,n))){if(t.showsummary!="False"){t.style.display="";typeof t.displaymode!="string"&&(t.displaymode="BulletList");switch(t.displaymode){case"List":f="<br>";e="";o="";s="<br>";h="";break;case"BulletList":default:f="";e="<ul>";o="<li>";
4s="<\/li>";h="<\/ul>";break;case"SingleParagraph":f=" ";e="";o="";s=" ";h="<br>"}for(r="",typeof t.headertext=="string"&&(r+=t.headertext+f),r+=e,i=0;i<Page_Validators.length;i++)Page_Validators[i].isvalid||typeof Page_Validators[i].errormessage!="string"||(r+=o+Page_Validators[i].errormessage+s);r+=h;t.innerHTML=r;window.scrollTo(0,0)}if(t.showmessagebox=="True"){for(r="",typeof t.headertext=="string"&&(r+=t.headertext+"\r\n"),c=Page_Validators.length-1,i=0;i<=c;i++)if(!Page_Validators[i].isvalid&&typeof Page_Validators[i].errormessage=="string")switch(t.displaymode){case"List":r+=Page_Validators[i].errormessage;i<c&&(r+="\r\n");break;case"BulletList":default:r+="- "+Page_Validators[i].errormessage;i<c&&(r+="\r\n");break;case"SingleParagraph":r+=Page_Validators[i].errormessage+" "}alert(r)}}}function GridView(){this.pageIndex=null;this.sortExpression=null;this.sortDirection=null;this.dataKeys=null;this.createPropertyString=GridView_createPropertyString;this.setStateField=GridView_setStateValue;this.getHiddenFieldContents=GridView_getHiddenFieldContents;this.stateField=null;this.panelElement=null;this.callback=null}function GridView_createPropertyString(){return createPropertyStringFromValues_GridView(this.pageIndex,this.sortDirection,this.sortExpression,this.dataKeys)}function GridView_setStateValue(){this.stateField.value=this.createPropertyString()}function GridView_OnCallback(n,t){for(var f=new String(n),i=f.split("|"),u=i[4],r=5;r<i.length;r++)u+="|"+i[r];t.panelElement.innerHTML=u;t.stateField.value=createPropertyStringFromValues_GridView(i[0],i[1],i[2],i[3])}function GridView_getHiddenFieldContents(n){return n+"|"+this.stateField.value}function createPropertyStringFromValues_GridView(n,t,i,r){var u=[n,t,i,r];return u.join("|")}function DetailsView(){this.pageIndex=null;this.dataKeys=null;this.createPropertyString=DetailsView_createPropertyString;this.setStateField=DetailsView_setStateValue;this.getHiddenFieldContents=DetailsView_getHiddenFieldContents;this.stateField=null;this.panelElement=null;this.callback=null}function DetailsView_createPropertyString(){return createPropertyStringFromValues_DetailsView(this.pageIndex,this.dataKeys)}function DetailsView_setStateValue(){this.stateField.value=this.createPropertyString()}function DetailsView_OnCallback(n,t){for(var f=new String(n),i=f.split("|"),u=i[2],r=3;r<i.length;r++)u+="|"+i[r];t.panelElement.innerHTML=u;t.stateField.value=createPropertyStringFromValues_DetailsView(i[0],i[1])}function DetailsView_getHiddenFieldContents(n){return n+"|"+this.stateField.value}function createPropertyStringFromValues_DetailsView(n,t){var i=[n,t];return i.join("|")}function TreeView_HoverNode(n,t){n&&(t.hoverClass=n.hoverClass,WebForm_AppendToClassName(t,n.hoverClass),t=__nonMSDOMBrowser?t.childNodes[t.childNodes.length-1]:t.children[t.children.length-1],t.hoverHyperLinkClass=n.hoverHyperLinkClass,WebForm_AppendToClassName(t,n.hoverHyperLinkClass))}function TreeView_GetNodeText(n){var t=WebForm_GetParentByTagName(n,"TR"),i,r;return t.childNodes[t.childNodes.length-1].getElementsByTagName&&(i=t.childNodes[t.childNodes.length-1].getElementsByTagName("A"),i&&i.length!=0||(i=t.childNodes[t.childNodes.length-1].getElementsByTagName("SPAN"))),r=i&&i.length>0?i[0].childNodes[0]:t.childNodes[t.childNodes.length-1].childNodes[0],r&&r.nodeValue?r.nodeValue:""}function TreeView_PopulateNode(n,t,i,r,u,f,e,o,s,h,c){var l,y,a,v,p;if(n){if(l={},l.data=n,l.node=i,l.selectNode=r,l.selectImageNode=u,l.lineType=f,l.index=t,l.isChecked="f",y=WebForm_GetParentByTagName(i,"TR"),y&&(a=y.getElementsByTagName("INPUT"),a&&a.length>0))for(v=0;v<a.length;v++)if(a[v].type.toLowerCase()=="checkbox"){a[v].checked&&(l.isChecked="t");break}p=t+"|"+n.lastIndex+"|"+s+l.isChecked+c+"|"+e.length+"|"+e+h.length+"|"+h+o;TreeView_PopulateNodeDoCallBack(l,p)}}function TreeView_ProcessNodeData(n,t){var i=t.node,f,l,c,u,r,s,e,h,o;n.length>0?(f=n.indexOf("|",0),t.data.lastIndex=n.substring(0,f),f=n.indexOf("|",f+1),l=n.substring(t.data.lastIndex.length+1,f),t.data.expandState.value+=l,c=n.substr(f+1),__nonMSDOMBrowser?(s=document.createElement("div"),s.innerHTML=c,r=WebForm_GetParentByTagName(i,"TABLE"),u=null,typeof r.nextSibling=="undefined"||r.nextSibling==null?(r.parentNode.insertBefore(s.firstChild,r.nextSibling),u=r.previousSibling):(r=r.nextSibling,r.parentNode.insertBefore(s.firstChild,r),u=r.previousSibling),u=document.getElementById(i.id+"Nodes")):(r=WebForm_GetParentByTagName(i,"TABLE"),r.insertAdjacentHTML("afterEnd",c),u=d
4ocument.all[i.id+"Nodes"]),typeof u!="undefined"&&u!=null&&(TreeView_ToggleNode(t.data,t.index,i,t.lineType,u),i.href=document.getElementById?"javascript:TreeView_ToggleNode("+t.data.name+","+t.index+",document.getElementById('"+i.id+"'),'"+t.lineType+"',document.getElementById('"+u.id+"'))":"javascript:TreeView_ToggleNode("+t.data.name+","+t.index+","+i.id+",'"+t.lineType+"',"+u.id+")",typeof t.selectNode!="undefined"&&t.selectNode!=null&&t.selectNode.href&&t.selectNode.href.indexOf("javascript:TreeView_PopulateNode",0)==0&&(t.selectNode.href=i.href),typeof t.selectImageNode!="undefined"&&t.selectImageNode!=null&&t.selectNode.href&&t.selectImageNode.href.indexOf("javascript:TreeView_PopulateNode",0)==0&&(t.selectImageNode.href=i.href)),t.data.populateLog.value+=t.index+","):(e=i.childNodes?i.childNodes[0]:i.children[0],typeof e!="undefined"&&e!=null&&(h=t.lineType,e.src=h=="l"?t.data.images[13]:h=="t"?t.data.images[10]:h=="-"?t.data.images[16]:t.data.images[3],__nonMSDOMBrowser?(o=i.parentNode,o.insertBefore(e,i),o.removeChild(i)):(o=i.parentElement,i.style.visibility="hidden",i.style.display="none",o.insertAdjacentElement("afterBegin",e))))}function TreeView_SelectNode(n,t,i){var u,r;n&&(typeof n.selectedClass!="undefined"&&n.selectedClass!=null&&(u=n.selectedNodeID.value,u.length>0&&(r=document.getElementById(u),typeof r!="undefined"&&r!=null&&(WebForm_RemoveClassName(r,n.selectedHyperLinkClass),r=WebForm_GetParentByTagName(r,"TD"),WebForm_RemoveClassName(r,n.selectedClass))),WebForm_AppendToClassName(t,n.selectedHyperLinkClass),t=WebForm_GetParentByTagName(t,"TD"),WebForm_AppendToClassName(t,n.selectedClass)),n.selectedNodeID.value=i)}function TreeView_ToggleNode(n,t,i,r,u){if(n){var f=i.childNodes[0],e;try{u.style.display=="none"?(u.style.display="block",e="e",typeof f!="undefined"&&f!=null&&(f.src=r=="l"?n.images[15]:r=="t"?n.images[12]:r=="-"?n.images[18]:n.images[5],f.alt=n.collapseToolTip.replace(/\{0\}/,TreeView_GetNodeText(i)))):(u.style.display="none",e="c",typeof f!="undefined"&&f!=null&&(f.src=r=="l"?n.images[14]:r=="t"?n.images[11]:r=="-"?n.images[17]:n.images[4],f.alt=n.expandToolTip.replace(/\{0\}/,TreeView_GetNodeText(i))))}catch(o){}n.expandState.value=n.expandState.value.substring(0,t)+e+n.expandState.value.slice(t+1)}}function TreeView_UnhoverNode(n){n.hoverClass&&(WebForm_RemoveClassName(n,n.hoverClass),n=__nonMSDOMBrowser?n.childNodes[n.childNodes.length-1]:n.children[n.children.length-1],WebForm_RemoveClassName(n,n.hoverHyperLinkClass))}function Point(n,t){this.x=n;this.y=t}function __wpTranslateOffset(n,t,i,r,u){while(typeof i!="undefined"&&i!=null&&i!=r){n+=i.offsetLeft;t+=i.offsetTop;var f=i.tagName;f!="TABLE"&&f!="BODY"&&(n+=i.clientLeft,t+=i.clientTop);u&&f!="BODY"&&(n-=i.scrollLeft,t-=i.scrollTop);i=i.offsetParent}return new Point(n,t)}function __wpGetPageEventLocation(n,t){return(typeof n=="undefined"||n==null)&&(n=window.event),__wpTranslateOffset(n.offsetX,n.offsetY,n.srcElement,null,t)}function __wpClearSelection(){document.selection.empty()}function WebPart(n,t,i,r,u){this.webPartElement=n;this.allowZoneChange=u;this.zone=i;this.zoneIndex=r;this.title=typeof t!="undefined"&&t!=null?t.innerText:"";n.__webPart=this;typeof t!="undefined"&&t!=null&&(t.style.cursor="move",t.attachEvent("onmousedown",WebPart_OnMouseDown),n.attachEvent("ondragstart",WebPart_OnDragStart),n.attachEvent("ondrag",WebPart_OnDrag),n.attachEvent("ondragend",WebPart_OnDragEnd));this.UpdatePosition=WebPart_UpdatePosition;this.Dispose=WebPart_Dispose}function WebPart_Dispose(){this.webPartElement.__webPart=null}function WebPart_OnMouseDown(){var t=window.event,n=WebPart_GetParentWebPartElement(t.srcElement);if(typeof n!="undefined"&&n!=null){document.selection.empty();try{__wpm.draggedWebPart=n;__wpm.DragDrop()}catch(i){__wpm.draggedWebPart=n;window.setTimeout("__wpm.DragDrop()",0)}t.returnValue=!1;t.cancelBubble=!0}}function WebPart_OnDragStart(){var n=window.event,t=n.srcElement,i;if(typeof t.__webPart=="undefined"||t.__webPart==null){n.returnValue=!1;n.cancelBubble=!0;return}i=n.dataTransfer;i.effectAllowed=__wpm.InitiateWebPartDragDrop(t)}function WebPart_OnDrag(){__wpm.ContinueWebPartDragDrop()}function WebPart_OnDragEnd(){__wpm.CompleteWebPartDragDrop()}function WebPart_GetParentWebPartElement(n){for(var t=n;typeof t.__webPart=="undefined"||t.__webPart==null;)if(t=t.parentElement,typeof t=="undefined"||t==null)break;return t}function WebPart_UpdatePosition(){var n=__wpTranslateOffset(0,0,this.webPartElement,null,!1);this.middleX=n.x+this.webPartElement.offsetWidth/2;this.middleY=n.y+this.webPartElement.offsetHeight/2}function Zone(n,t,i,r,u,f){var o=null,e,s;for(webPartTableContainer=n.rows.length==1?n.rows[0].cells[0]:n.rows[1].cells[0],e=0;e<webPartTableContainer.childNodes.length;e++)if(s=webPartTableContainer.childNodes[e],s.tagName=="TABLE"){o=s;break}if(this.zoneElement=n,this.zoneIndex=t,this.webParts=[],this.uniqueID=i,this.isVertical=r,this.allowLayoutChange=u,this.allowDrop=!1,this.webPartTable=o,this.highlightColor=f,this.savedBorderColor=o!=null?o.style.borderColor:null,this.dropCueElements=[],o!=null)if(r)for(e=0;e<o.rows.length;e+=2)this.dropCueElements[e/2]=o.rows[e].cells[0].childNodes[0];else for(e=0;e<o.rows[0].cells.length;e+=2)this.dropCueElements[e/2]=o.rows[0].cells[e].childNodes[0];this.AddWebPart=Zone_AddWebPart;this.GetWebPartIndex=Zone_GetWebPartIndex;this.ToggleDropCues=Zone_ToggleDropCues;this.UpdatePosition=Zone_UpdatePosition;this.Dispose=Zone_Dispose;o.__zone=this;o.attachEvent("ondragenter",Zone_OnDragEnter);o.attachEvent("ondrop",Zone_OnDrop)}function Zone_Dispose(){for(var n=0;n<this.webParts.length;n++)this.webParts[n].Dispose();this.webPartTable.__zone=null}function Zone_OnDragEnter(){var t=__wpm.ProcessWebPartDragEnter(),n=window.event;t&&(n.returnValue=!1,n.cancelBubble=!0)}function Zone_OnDragOver(){var t=__wpm.ProcessWebPartDragOver(),n=window.event;t&&(n.returnValue=!1,n.cancelBubble=!0)}function Zone_OnDrop(){var t=__wpm.ProcessWebPartDrop(),n=window.event;t&&(n.returnValue=!1,n.cancelBubble=!0)}function Zone_GetParentZoneElement(n){for(var t=n;typeof t.__zone=="undefined"||t.__zone==null;)if(t=t.parentElement,typeof t=="undefined"||t==null)break;return t}
4function Zone_AddWebPart(n,t,i){var r=null,u=this.webParts.length;return r=this.allowLayoutChange&&__wpm.IsDragDropEnabled()?new WebPart(n,t,this,u,i):new WebPart(n,null,this,u,i),this.webParts[u]=r,r}function Zone_ToggleDropCues(n,t,i){var r,f,e,u,o;(i==!1&&(this.webPartTable.style.borderColor=n?this.highlightColor:this.savedBorderColor),t!=-1)&&(r=this.dropCueElements[t],r&&r.style&&(r.style.height!="100%"||r.webPartZoneHorizontalCueResized||(f=r.parentElement.clientHeight,e=f-10,r.style.height=e+"px",u=r.getElementsByTagName("DIV")[0],u&&u.style&&(u.style.height=r.style.height,o=r.parentElement.clientHeight-f,o&&(r.style.height=e-o+"px",u.style.height=r.style.height)),r.webPartZoneHorizontalCueResized=!0),r.style.visibility=n?"visible":"hidden"))}function Zone_GetWebPartIndex(n){var i=n.x,r=n.y,t,u;if(i<this.webPartTableLeft||i>this.webPartTableRight||r<this.webPartTableTop||r>this.webPartTableBottom)return-1;var o=this.isVertical,f=this.webParts,e=f.length;for(t=0;t<e;t++)if(u=f[t],o){if(r<u.middleY)return t}else if(i<u.middleX)return t;return e}function Zone_UpdatePosition(){var n=__wpTranslateOffset(0,0,this.webPartTable,null,!1),t;for(this.webPartTableLeft=n.x,this.webPartTableTop=n.y,this.webPartTableRight=this.webPartTable!=null?n.x+this.webPartTable.offsetWidth:n.x,this.webPartTableBottom=this.webPartTable!=null?n.y+this.webPartTable.offsetHeight:n.y,t=0;t<this.webParts.length;t++)this.webParts[t].UpdatePosition()}function WebPartDragState(n,t){this.webPartElement=n;this.dropZoneElement=null;this.dropIndex=-1;this.effect=t;this.dropped=!1}function WebPartMenu(n,t,i){this.menuLabelElement=n;this.menuDropDownElement=t;this.menuElement=i;this.menuLabelElement.__menu=this;this.menuLabelElement.attachEvent("onclick",WebPartMenu_OnClick);this.menuLabelElement.attachEvent("onkeypress",WebPartMenu_OnKeyPress);this.menuLabelElement.attachEvent("onmouseenter",WebPartMenu_OnMouseEnter);this.menuLabelElement.attachEvent("onmouseleave",WebPartMenu_OnMouseLeave);typeof this.menuDropDownElement!="undefined"&&this.menuDropDownElement!=null&&(this.menuDropDownElement.__menu=this);this.menuItemStyle="";this.menuItemHoverStyle="";this.popup=null;this.hoverClassName="";this.hoverColor="";this.oldColor=this.menuLabelElement.style.color;this.oldTextDecoration=this.menuLabelElement.style.textDecoration;this.oldClassName=this.menuLabelElement.className;this.Show=WebPartMenu_Show;this.Hide=WebPartMenu_Hide;this.Hover=WebPartMenu_Hover;this.Unhover=WebPartMenu_Unhover;this.Dispose=WebPartMenu_Dispose;var r=this;this.disposeDelegate=function(){r.Dispose()};window.attachEvent("onunload",this.disposeDelegate)}function WebPartMenu_Dispose(){this.menuLabelElement.__menu=null;this.menuDropDownElement.__menu=null;window.detachEvent("onunload",this.disposeDelegate)}function WebPartMenu_Show(){var r,n;typeof __wpm.menu!="undefined"&&__wpm.menu!=null&&__wpm.menu.Hide();var u="<html><head><style>a.menuItem, a.menuItem:Link { display: block; padding: 1px; text-decoration: none; "+this.itemStyle+" }a.menuItem:Hover { "+this.itemHoverStyle+' }<\/style><body scroll="no" style="border: none; margin: 0; padding: 0;" ondragstart="window.event.returnValue=false;" onclick="popup.hide()">'+this.menuElement.innerHTML+"<\/body><\/html>",t=16,i=16;this.popup=window.createPopup();__wpm.menu=this;r=this.popup.document;r.write(u);this.popup.show(0,0,t,i);n=r.body;t=n.scrollWidth;i=n.scrollHeight;t<this.menuLabelElement.offsetWidth&&(t=this.menuLabelElement.offsetWidth+16);this.menuElement.innerHTML.indexOf("progid:DXImageTransform.Microsoft.Shadow")!=-1&&(n.style.paddingRight="4px");n.__wpm=__wpm;n.__wpmDeleteWarning=__wpmDeleteWarning;n.__wpmCloseProviderWarning=__wpmCloseProviderWarning;n.popup=this.popup;this.popup.hide();this.popup.show(0,this.menuLabelElement.offsetHeight,t,i,this.menuLabelElement)}function WebPartMenu_Hide(){__wpm.menu==this&&(__wpm.menu=null,typeof this.popup!="undefined"&&this.popup!=null&&(this.popup.hide(),this.popup=null))}function WebPartMenu_Hover(){this.labelHoverClassName!=""&&(this.menuLabelElement.className=this.menuLabelElement.className+" "+this.labelHoverClassName);this.labelHoverColor!=""&&(this.menuLabelElement.style.color=this.labelHoverColor)}function WebPartMenu_Unhover(){this.labelHoverClassName!=""&&(this.menuLabelElement.style.textDecoration=this.oldTextDecoration,this.menuLabelElement.className=this.oldClassName);this.labelHoverColor!=""&&(this.menuLabelElement.style.color=this.oldColor)}function WebPartMenu_OnClick(){var n=window.event.srcElement.__menu;typeof n!="undefined"&&n!=null&&(window.event.returnValue=!1,window.event.cancelBubble=!0,n.Show())}function WebPartMenu_OnKeyPress(){if(window.event.keyCode==13){var n=window.event.srcElement.__menu;typeof n!="undefined"&&n!=null&&(window.event.returnValue=!1,window.event.cancelBubble=!0,n.Show())}}function WebPartMenu_OnMouseEnter(){var n=window.event.srcElement.__menu;typeof n!="undefined"&&n!=null&&n.Hover()}function WebPartMenu_OnMouseLeave(){var n=window.event.srcElement.__menu;typeof n!="undefined"&&n!=null&&n.Unhover()}function WebPartManager(){this.overlayContainerElement=null;this.zones=[];this.dragState=null;this.menu=null;this.draggedWebPart=null;this.AddZone=WebPartManager_AddZone;this.IsDragDropEnabled=WebPartManager_IsDragDropEnabled;this.DragDrop=WebPartManager_DragDrop;this.InitiateWebPartDragDrop=WebPartManager_InitiateWebPartDragDrop;this.CompleteWebPartDragDrop=WebPartManager_CompleteWebPartDragDrop;this.ContinueWebPartDragDrop=WebPartManager_ContinueWebPartDragDrop;this.ProcessWebPartDragEnter=WebPartManager_ProcessWebPartDragEnter;this.ProcessWebPartDragOver=WebPartManager_ProcessWebPartDragOver;this.ProcessWebPartDrop=WebPartManager_ProcessWebPartDrop;this.ShowHelp=WebPartManager_ShowHelp;this.ExportWebPart=WebPartManager_ExportWebPart;this.Execute=WebPartManager_Execute;this.SubmitPage=WebPartManager_SubmitPage;this.UpdatePositions=WebPartManager_UpdatePositions;window.attachEvent("onunload",WebPartManager_Dispose)}function WebPartManager_Dispose(){for(var n=0;
4n<__wpm.zones.length;n++)__wpm.zones[n].Dispose();window.detachEvent("onunload",WebPartManager_Dispose)}function WebPartManager_AddZone(n,t,i,r,u){var f=this.zones.length,e=new Zone(n,f,t,i,r,u);return this.zones[f]=e,e}function WebPartManager_IsDragDropEnabled(){return typeof this.overlayContainerElement!="undefined"&&this.overlayContainerElement!=null}function WebPartManager_DragDrop(){if(typeof this.draggedWebPart!="undefined"&&this.draggedWebPart!=null){var n=this.draggedWebPart;this.draggedWebPart=null;n.dragDrop();window.setTimeout("__wpClearSelection()",0)}}function WebPartManager_InitiateWebPartDragDrop(n){var f=n.__webPart,r,t,i,u;if(this.UpdatePositions(),this.dragState=new WebPartDragState(n,"move"),r=__wpGetPageEventLocation(window.event,!0),t=this.overlayContainerElement,t.style.left=r.x-n.offsetWidth/2,t.style.top=r.y+4+(n.clientTop?n.clientTop:0),t.style.display="block",t.style.width=n.offsetWidth,t.style.height=n.offsetHeight,t.appendChild(n.cloneNode(!0)),f.allowZoneChange==!1)f.zone.allowDrop=!0;else for(i=0;i<__wpm.zones.length;i++)u=__wpm.zones[i],u.allowLayoutChange&&(u.allowDrop=!0);return document.body.attachEvent("ondragover",Zone_OnDragOver),"move"}function WebPartManager_CompleteWebPartDragDrop(){var n=this.dragState,t,r,i,u,f;for(this.dragState=null,typeof n.dropZoneElement!="undefined"&&n.dropZoneElement!=null&&n.dropZoneElement.__zone.ToggleDropCues(!1,n.dropIndex,!1),document.body.detachEvent("ondragover",Zone_OnDragOver),t=0;t<__wpm.zones.length;t++)__wpm.zones[t].allowDrop=!1;this.overlayContainerElement.removeChild(this.overlayContainerElement.firstChild);this.overlayContainerElement.style.display="none";typeof n!="undefined"&&n!=null&&n.dropped==!0&&(r=n.webPartElement.__webPart.zone,i=n.webPartElement.__webPart.zoneIndex,(r!=n.dropZoneElement.__zone||i!=n.dropIndex&&i!=n.dropIndex-1)&&(u=n.dropZoneElement.__zone.uniqueID,f="Drag:"+n.webPartElement.id+":"+n.dropIndex,this.SubmitPage(u,f)))}function WebPartManager_ContinueWebPartDragDrop(){var n=this.dragState,t,i;typeof n!="undefined"&&n!=null&&(t=this.overlayContainerElement.style,i=__wpGetPageEventLocation(window.event,!0),t.left=i.x-n.webPartElement.offsetWidth/2,t.top=i.y+4+(n.webPartElement.clientTop?n.webPartElement.clientTop:0))}function WebPartManager_Execute(n){this.menu&&this.menu.Hide();var t=new Function(n);return t()!=!1}function WebPartManager_ProcessWebPartDragEnter(){var n=__wpm.dragState,r,t,i;return typeof n!="undefined"&&n!=null?(r=window.event,t=Zone_GetParentZoneElement(r.srcElement),(typeof t.__zone=="undefined"||t.__zone==null||t.__zone.allowDrop==!1)&&(t=null),i=-1,typeof t!="undefined"&&t!=null&&(i=t.__zone.GetWebPartIndex(__wpGetPageEventLocation(r,!1)),i==-1&&(t=null)),n.dropZoneElement!=t?(typeof n.dropZoneElement!="undefined"&&n.dropZoneElement!=null&&n.dropZoneElement.__zone.ToggleDropCues(!1,n.dropIndex,!1),n.dropZoneElement=t,n.dropIndex=i,typeof t!="undefined"&&t!=null&&t.__zone.ToggleDropCues(!0,i,!1)):n.dropIndex!=i&&(n.dropIndex!=-1&&n.dropZoneElement.__zone.ToggleDropCues(!1,n.dropIndex,!1),n.dropIndex=i,typeof t!="undefined"&&t!=null&&t.__zone.ToggleDropCues(!0,i,!1)),typeof n.dropZoneElement!="undefined"&&n.dropZoneElement!=null&&(r.dataTransfer.effectAllowed=n.effect),!0):!1}function WebPartManager_ProcessWebPartDragOver(){var n=__wpm.dragState,r=window.event,u=!1,t,f,i;return typeof n!="undefined"&&n!=null&&typeof n.dropZoneElement!="undefined"&&n.dropZoneElement!=null&&(t=Zone_GetParentZoneElement(r.srcElement),typeof t!="undefined"&&t!=null&&t.__zone.allowDrop==!1&&(t=null),(typeof t=="undefined"||t==null)&&typeof n.dropZoneElement!="undefined"&&n.dropZoneElement!=null?(n.dropZoneElement.__zone.ToggleDropCues(!1,__wpm.dragState.dropIndex,!1),n.dropZoneElement=null,n.dropIndex=-1):typeof t!="undefined"&&t!=null&&(f=__wpGetPageEventLocation(r,!1),i=t.__zone.GetWebPartIndex(f),i==-1&&(t=null),n.dropZoneElement!=t?((n.dropIndex!=-1||typeof t=="undefined"||t==null)&&n.dropZoneElement.__zone.ToggleDropCues(!1,__wpm.dragState.dropIndex,!1),n.dropZoneElement=t):n.dropZoneElement.__zone.ToggleDropCues(!1,n.dropIndex,!0),n.dropIndex=i,typeof t!="undefined"&&t!=null&&t.__zone.ToggleDropCues(!0,i,!1)),u=!0),(typeof n=="undefined"||n==null||typeof n.dropZoneElement=="undefined"||n.dropZoneElement==null)&&(r.dataTransfer.effectAllowed="none"),u}function WebPartManager_ProcessWebPartDrop(){var t=this.dragState,i,n;return typeof t!="undefined"&&t!=null?(i=window.event,n=Zone_GetParentZoneElement(i.srcElement),typeof n!="undefined"&&n!=null&&n.__zone.allowDrop==!1&&(n=null),typeof n!="undefined"&&n!=null&&t.dropZoneElement==n&&(t.dropped=!0),!0):!1}function WebPartManager_ShowHelp(n,t){if(typeof this.menu!="undefined"&&this.menu!=null&&this.menu.Hide(),t==0||t==1)if(t==0)window.showModalDialog(n,null,"edge: Sunken; center: yes; help: no; resizable: yes; status: no");else window.open(n,null,"scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no");else t==2&&(window.location=n)}
4function WebPartManager_ExportWebPart(n,t,i){return t==!0&&__wpmExportWarning.length>0&&this.personalizationScopeShared!=!0&&confirm(__wpmExportWarning)==!1?!1:(i==!1&&(window.location=n),!0)}function WebPartManager_UpdatePositions(){for(var n=0;n<this.zones.length;n++)this.zones[n].UpdatePosition()}function WebPartManager_SubmitPage(n,t){typeof this.menu!="undefined"&&this.menu!=null&&this.menu.Hide();__doPostBack(n,t)}function WebForm_FindFirstFocusableChild(n){var u,t,i,r;if(!n||!n.tagName||(u=n.tagName.toLowerCase(),u=="undefined"))return null;if(t=n.childNodes,t)for(i=0;i<t.length;i++)try{if(WebForm_CanFocus(t[i]))return t[i];if(r=WebForm_FindFirstFocusableChild(t[i]),WebForm_CanFocus(r))return r}catch(f){}return null}function WebForm_AutoFocus(n){var i,t;if(i=__nonMSDOMBrowser?document.getElementById(n):document.all[n],t=i,i&&!WebForm_CanFocus(i)&&(t=WebForm_FindFirstFocusableChild(i)),t)try{t.focus();__nonMSDOMBrowser&&t.scrollIntoView(!1);window.__smartNav&&(window.__smartNav.ae=t.id)}catch(r){}}function WebForm_CanFocus(n){if(!n||!n.tagName)return!1;var t=n.tagName.toLowerCase();return!n.disabled&&(!n.type||n.type.toLowerCase()!="hidden")&&WebForm_IsFocusableTag(t)&&WebForm_IsInVisibleContainer(n)}function WebForm_IsFocusableTag(n){return n=="input"||n=="textarea"||n=="select"||n=="button"||n=="a"}function WebForm_IsInVisibleContainer(n){for(var t=n;typeof t!="undefined"&&t!=null;){if(t.disabled||typeof t.style!="undefined"&&(typeof t.style.display!="undefined"&&t.style.display=="none"||typeof t.style.visibility!="undefined"&&t.style.visibility=="hidden"))return!1;if(typeof t.parentNode!="undefined"&&t.parentNode!=null&&t.parentNode!=t&&t.parentNode.tagName.toLowerCase()!="body")t=t.parentNode;else return!0}return!0}function accordion(){if(document.querySelector(".accordion__category")!=null){const n=document.querySelectorAll(".accordion__item");n.forEach(n=>n.addEventListener("click",t));function t(n){const t=n.currentTarget,i=t.querySelector(".accordion__answer");t.classList.toggle("active");i.classList.toggle("active")}}}function transparencyAccordion(){function r(n){return n.closest(".transparency__group")}function u(){Array.prototype.forEach.call(t,function(n){var t=r(n);t&&t.classList.remove("is-open")})}function i(){u();Array.prototype.forEach.call(t,function(t){n.matches?(t.disabled=!1,t.setAttribute("aria-expanded","false")):(t.disabled=!0,t.removeAttribute("aria-expanded"))})}var t=document.querySelectorAll(".transparency__group-head"),n;t.length&&(n=window.matchMedia("(max-width: 767px)"),Array.prototype.forEach.call(t,function(i){i.addEventListener("click",function(){var f,e;n.matches&&(f=r(i),f)&&(e=f.classList.contains("is-open"),u(),Array.prototype.forEach.call(t,function(n){n.setAttribute("aria-expanded","false")}),e||(f.classList.add("is-open"),i.setAttribute("aria-expanded","true")))})}),n.addEventListener?n.addEventListener("change",i):n.addListener&&n.addListener(i),i())}function paddingTop(){if(jQuery(".pageHeaderFixed").length){const n=document.querySelector(".pageHeaderFixed"),t=document.querySelector("body");let i=n.getBoundingClientRect().height;t.style.paddingTop=i+"px"}}function scrollFunction(){if(jQuery(".pageHeaderFixed").length){var n=document.getElementsByClassName("pageHeaderFixed")[0],t=n.offsetHeight;document.body.scrollTop>t||document.documentElement.scrollTop>t?n.classList.add("page-header-fixed-scroll"):n.classList.remove("page-header-fixed-scroll")}}function Compare(){function t(){return window.innerWidth<580?2:window.innerWidth<768?2:window.innerWidth<960?3:window.innerWidth<1170?4:window.innerWidth>=1170?5:5}var i=jQuery(window),n;i.on("load",function(){jQuery(".compare-slider .flexslider").flexslider({animationLoop:!1,animation:"slide",easing:"swing",slideshow:!1,allowOneSlide:!0,smoothHeight:!1,slideshowSpeed:6e3,animationSpeed:600,useCSS:!1,touch:!0,controlNav:!1,directionNav:!0,pausePlay:!1,prevText:'<i class="fa fa-angle-left"><\/i>',nextText:'<i class="fa fa-angle-right"><\/i>',itemWidth:320,minItems:t(),maxItems:t(),move:1,start:function(){var t,n,i;for(window.innerWidth>=1170&&jQuery(".compare-slider .slides > li").length<=5&&jQuery(".flex-direction-nav").addClass("flex-hidden"),window.innerWidth>960&&window.innerWidth<1170&&jQuery(".compare-slider .slides > li").length<=4&&jQuery(".flex-direction-nav").addClass("flex-hidden"),window.innerWidth>768&&window.innerWidth<960&&jQuery(".compare-slider .slides > li").length<=3&&jQuery(".flex-direction-nav").addClass("flex-hidden"),window.innerWidth<768&&jQuery(".compare-slider .slides > li").length<=2&&jQuery(".flex-direction-nav").addClass("flex-hidden"),window.innerWidth<580&&jQuery(".compare-slider .slides > li").length<=2&&jQuery(".flex-direction-nav").addClass("flex-hidden"),t=[".cmp-img",".product-item-badges",".compare .catalog-item-title h3",".cmp-cijena",".cmp-opis",".cmp-boja",".cmp-smart",".cmp-rezolucija",".cmp-dijagonala",".cmp-frekvencija",".cmp-e
4nergetska-klasa",".cmp-os",".cmp-tehnologija",".cmp-jamstvo",".cmp-brand",".cmp-tezina",".cmp-dimenzije",".cmp-zemlja-porijekla",".cmp-tip-zvucnika",".cmp-broj-modela",".cmp-bluetooth",".cmp-wifi",".cmp-ethernet",".cmp-zvuk",".cmp-potrosnja",".cmp-dodatci",".cmp-utori",".cmp-materijali",".cmp-jezici",".cmp-napajanje",".cmp-link",".cmp-dodatni-opis",".cmp-kuciste",".cmp-maticna-ploca",".cmp-procesor",".cmp-graficka-kartica",".cmp-hladjenje",".cmp-ram",".cmp-disk",".cmp-dodatne-komponente",".cmp-dodatna-oprema",".cmp-baterija",".cmp-sim",".cmp-interna-memorija",".cmp-glavna-kamera",".cmp-dodatna-oprema-kamere",".cmp-kvaliteta-snimanja-glavna",".cmp-prednja-kamera",".cmp-kvaliteta-snimanja-prednja",".cmp-nastavci",".cmp-tip-komponente",".cmp-tezina-paketa",".cmp-kapacitet",".cmp-model",".cmp-broj-okretaja",".cmp-motor",".cmp-tip-aparata",".cmp-buka",".cmp-wishlist",".cmp-cart",".compare-slider .slides > li"],n=0;n<t.length;n++)jQuery(t[n]).matchHeight({byRow:!0});jQuery(".compare .flex-next i").css("top",jQuery(".compare-box-remove").innerHeight()+jQuery(".cmp-img").innerHeight());jQuery(".compare .flex-prev i").css("top",jQuery(".compare-box-remove").innerHeight()+jQuery(".cmp-img").innerHeight());i=jQuery(".compare-slider .slides > li");jQuery(".compare-box-empty").length!==0?jQuery(".compare-slider").addClass("slides-"+(i.length-1)):jQuery(".compare-slider").addClass("slides-"+i.length);jQuery(".compare .flex-next i").css("top",jQuery(".compare-box-title").innerHeight()+jQuery(".cmp-img").innerHeight());jQuery(".compare .flex-prev i").css("top",jQuery(".compare-box-title").innerHeight()+jQuery(".cmp-img").innerHeight())}})});i.resize(function(){var i=t();n!==undefined&&n.vars!==undefined&&(n.vars.minItems=i,n.vars.maxItems=i)})}function headerSlider(){if(jQuery(".header-slider").length){var n=new Swiper(".header-slider",{autoHeight:!0,keyboard:{enabled:!0},autoplay:{delay:7e3,disableOnInteraction:!0},pagination:{el:".swiper-pagination",clickable:!0},on:{init:function(){this.slides.length<2&&jQuery(".header-slide .slider-play-stop").css("display","none")}},navigation:{nextEl:".main-slider-arrows .swiper-button-next",prevEl:".main-slider-arrows .swiper-button-prev"},preloadImages:!1,lazy:!0,loop:!1});swiperHeaderStart=jQuery(".header-slider .start-autoplay");swiperHeaderStop=jQuery(".header-slider .stop-autoplay");swiperHeaderStart.on("click",function(t){t.preventDefault();n.autoplay.start();swiperHeaderStart.css("visibility","hidden");swiperHeaderStop.css("visibility","visible")});swiperHeaderStop.on("click",function(t){t.preventDefault();n.autoplay.stop();swiperHeaderStop.css("visibility","hidden");swiperHeaderStart.css("visibility","visible")})}}function catalogSlider(){if(jQuery(".product-slider ").length){var n=[];$(".section-product-slider").each(function(t){$(this).addClass("section-product-slider-"+t);var i=new Swiper(".section-product-slider-"+t+" .swiper",{navigation:{nextEl:".section-product-slider-"+t+" .swiper-button-next",prevEl:".section-product-slider-"+t+" .swiper-button-prev"},on:{init:function(){jQuery(".section-product-slider-"+t+" .swiper-slide").length<5&&jQuery(".section-product-slider-"+t+" .swiper-wrapper").addClass("justify-content-under-5");jQuery(".section-product-slider-"+t+" .swiper-slide").length<4&&jQuery(".section-product-slider-"+t+" .swiper-wrapper").addClass("justify-content-under-4");jQuery(".section-product-slider-"+t+" .swiper-slide").length<3&&jQuery(".section-product-slider-"+t+" .swiper-wrapper").addClass("justify-content-under-3");jQuery(".section-product-slider-"+t+" .swiper-slide").length<2&&jQuery(".section-product-slider-"+t+" .swiper-wrapper").addClass("justify-content-under-2")}},breakpoints:{320:{slidesPerView:1,spaceBetween:50},582:{slidesPerView:2,spaceBetween:45},960:{slidesPerView:3,spaceBetween:45},1300:{slidesPerView:4,spaceBetween:45},1600:{slidesPerView:5,spaceBetween:40}}});n.push(i)})}}function clearFilter(){jQuery(".dropdown-item select").val(jQuery(this).data("Sve")).trigger("change");TopFilterSearch()}function TopFilterSearch(){var n,t,i;if(typeof getCurrentFilterData!="undefined"){n=getCurrentFilterData();storeCurrentFilterData(n);doFilterChanged(null,n);
4t=new URL(window.location);t.searchParams.forEach(function(n,t){n=n.toLowerCase();t=t.toLowerCase()});for(i in n)n[i].length>0?t.searchParams.set(i.toLowerCase(),n[i]):t.searchParams.delete(i.toLowerCase());window.history.pushState({},"",t)}}function dropDown(n,t){var n=document.getElementById(n),t=document.getElementById(t);(n||t)&&(n.classList.toggle("show"),t.classList.toggle("active"))}function searchParam(){$(".search-parameters .switch").click(function(){$(this).closest(".search-parameters").toggleClass("open")})}function PathScroll(){function i(){n.scrollLeft()>=t.innerWidth()-n.innerWidth()?jQuery("body").addClass("path-shadow-hide"):jQuery("body").removeClass("path-shadow-hide")}var n=jQuery(".path"),t=jQuery(".path-wrapper");n.innerWidth()<t.innerWidth()&&!responsive.isPC?jQuery("body").addClass("path-scroll"):jQuery("body").removeClass("path-scroll");jQuery(".path").bind("touchmove scroll",i)}function Filter(){function n(){responsive.isPC?(jQuery(".catalog-options").insertBefore(".catalog-listing"),jQuery(".sort p").insertBefore("#container .sort .select")):(jQuery(".catalog-options").appendTo(".sidenav-wrapper"),jQuery(".sort p").appendTo(".catalog-options .switch"));window.innerWidth<=959&&window.innerWidth>420?jQuery(".sidenav-wrapper .panel").css("width",jQuery(".container-row-main > .wrap:first-child").innerWidth()):window.innerWidth<=420?jQuery(".sidenav-wrapper .panel").css("width",jQuery("body").innerWidth()):jQuery(".sidenav-wrapper .panel").css("width","100%")}jQuery(".filter-item .switch").click(function(){jQuery(this).closest(".filter-item").toggleClass("open")});CallFunctionOnResize(n);n();jQuery(".catalog-options .switch").click(function(){jQuery(this).closest(".catalog-options").toggleClass("open")})}function weatherTooltip(){function t(){var n=jQuery(".header-weather-message");n.css({position:"absolute",visibility:"visible",left:event.pageX});setTimeout(function(){n.css({visibility:"hidden"})},1e4)}var n=jQuery(".header-weather-info"),i=jQuery(".weather-message-close");n.click(function(n){n.stopPropagation();n.preventDefault;t()});n.on("keydown",function(n){n.which===32&&(n.stopPropagation(),n.preventDefault,t())});i.click(function(n){n.stopPropagation();n.preventDefault;jQuery(".header-weather-message").css({visibility:"hidden"})})}function mainMenuPreventDefault(){jQuery('#menu a[href="#"]').click(function(n){n.preventDefault?n.preventDefault():n.returnValue=!1})}function usingMouse(){document.body.addEventListener("mousedown",function(){document.body.classList.add("using-mouse")});document.body.addEventListener("keydown",function(){document.body.classList.remove("using-mouse")})}function progressBar(){var t=document.body.scrollTop||document.documentElement.scrollTop,i=document.documentElement.scrollHeight-document.documentElement.clientHeight,r=t/i*100,n=document.getElementsByClassName("progress-wrapper")[0];document.getElementById("progressBar").style.width=r+"%";t>n.style.height?n.classList.add("progress-wrapper--active"):n.classList.remove("progress-wrapper--active")}function ToggleScrollToTopVisibility(){if(responsive.isPC){var n=300;jQuery(".top")&&jQuery(".top").length>0&&(jQuery(".top").hide(),jQuery(window).bind("scroll",function(){jQuery(window).scrollTop()>n?jQuery(".top").show():jQuery(".top").hide()}))}}function InitFixedMobileHeader(){function u(){var n=jQuery(this).scrollTop();Math.abs(t-n)<=i||(n>t&&n>r?jQuery("body").removeClass("header-fixed"):n+jQuery(window).height()<jQuery(document).height()&&jQuery("body").addClass("header-fixed"),t=n)}var n,t=0,i=200,r=jQuery("#pageHeader").innerHeight();jQuery(window).scroll(function(){n=!0});setInterval(function(){n&&(u(),n=!1)},250)}function InitIE10PlaceholderFix(){if(navigator.userAgent.indexOf("MSIE 10")>0)jQuery(".select select").focusin(function(){jQuery(this).data("placeholder",jQuery(this).attr("placeholder"));jQuery(this).attr("placeholder","")}).focusout(function(){setTimeout(jQuery(this).attr("placeholder",jQuery(this).data("placeholder")),200)})}function ScrollToElement(n,t){if(jQuery(n)&&jQuery(n).length>0){var i=jQuery(n).offset().top;responsive.isPC||(i-=jQuery("#pageHeader").height());t=t!=undefined?t:500;jQuery("html, body").animate({scrollTop:i},responsive.isMob?0:t)}}function AdjustVideoIframes(){jQuery(".video-wrapper iframe").each(function(){var n=jQuery(this).attr("src");jQuery(this).attr("src",n+(n.indexOf("?")>=0?"&":"?")+"wmode=transparent")})}function InitTableScroll(){jQuery(".table-wrapper").bind("scroll",function(){var n=jQuery(this).children("table").innerWidth(),t=jQuery(this).closest(".table-wrapper-outer").innerWidth();jQuery(this).scrollLeft()>=n-t?jQuery(this).closest(".table-wrapper-outer").removeClass("table-fade-active"):jQuery(this).closest(".table-wrapper-outer").addClass("table-fade-active")})}function AdjustTables(){jQuery(".table-wrapper").each(function(){jQuery(this).parent().is(".table-wrapper-outer")||(jQuery(this).wrap('<div class="table-wrapper-outer"><\/div>'),jQuery(this).before('<div class="table-wrapper-fade"><\/div>'))});jQuery(".table-wrapper-outer > .table-wrapper > table").each(function(){var n=jQuery(this).closest(".table-wrapper-outer");jQuery(this).innerWidth()>jQuery(n).innerWidth()?jQuery(n).addClass("table-fade-active"):jQuery(n).removeClass("table-fade-active")})}function InitImgTitles(){jQuery("img").each(function(){var n=jQuery(this).attr("alt"),t=jQuery(this).attr("title");n&&n.length>0&&!(t&&t.length>0)&&jQuery(this).attr("title",n)})}function InitTableRowClasses(){jQuery("table").each(function(){jQuery(this).find("tr:even").addClass("even");jQuery(this).find("tr:odd").addClass("odd")})}function InitElementHiding(){jQuery("body").click(function(n){jQuery(n.target).closest(".menu-switch, .mob-nav").length==0&&jQuery("form").removeClass("menu-open");jQuery(n.target).closest(".blog-nav").length==0&&jQuery(".blog-nav").removeClass("open");jQuery(n.target).closest(".hdr-user-box").length==0&&jQuery(".hdr-user-box").removeClass("open");jQuery(n.target).closest(".hdr-cart-box").length==0&&jQuery(".hdr-cart-box").removeClass("open");jQuery(n.target).closest(".language").length==0&&jQuery(".language").removeClass("open");jQuery(n.target).closest(".search-box").length==0&&jQuery(".search-box").removeClass("open");jQuery(n.target).closest(".filter").length==0&&jQuery(".filter").removeClass("open");jQuery(n.target).closest(".catalog-options").length==0&&jQuery(".catalog-options").removeClass("open");jQuery(n.target).closest(".sort").length==0&&jQuery(".sort").removeClass("open")})}function InitHeights(){InitListImageHeightsDelayed(300);InitRowHeightsDelayed(350)}function InitListImageHeightsDelayed(n){setTimeout(function(){InitFlexOnResize(".gallery .flexslider, .gallery .flexslider ul.slides, .gallery .flexslider ul.slides li",".gallery .flexslider")},n)}function InitRowHeightsDelayed(n){setTimeout(function(){InitRowHeights(jQuery(".catalog-listing .article-container .article-title"),responsive.isMob?1:responsive.isTablet?2:4);InitRowHeights(jQuery(".catalog-listing .article-container .article-price"),responsive.isMob?1:responsive.isTablet?2:4);InitRowHeights(jQuery(".gallery-listing .gallery-title"),responsive.isPC?2:1);InitRowHeights(jQuery(".gallery-listing .gallery-date"),responsive.isPC?2:1);InitRowHeights(jQuery(".gallery-main-listing .gallery-main-title"),responsive.isMob?1:responsive.isTablet?2:4)},n)}function InitFlexOnResize(n,t){jQuery(n).height("auto");InitListImageHeights(".gallery .flexslider ul.slides > li "+GetHolderClass()+" img",".gallery .flexslider, .gallery .flexslider ul.slides, .gallery .flexslider ul.slides > li",".gallery .flexslider ul.slides > li");var i=jQuery(t).find("li.flex-active-slide");jQuery(i)&&jQuery(i).length>0&&InitFlexHeight(i,t,"outerHeight")}function InitFlexHeight(n,t,i){var r;jQuery(t).each(function(){jQuery(this).height("auto")});jQuery(n).height("auto");jQuery(n).length>0&&(r=GetItemHeight(n,i),r>0&&jQuery(t).each(function(){jQuery(this).height(r)}))}function GetHolderClass(){return responsive.isMob?".mob-image":responsive.isTablet?".tablet-image":".pc-image"}function GetItemHeight(n,t){return t=="height"?jQuery(n).height():t=="innerHeight"?jQuery(n).innerHeight():jQuery(n).outerHeight(!1)}function InitRowHeights(n,t){for(var r,u=0,i=0;i<n.length;i++)i%t==0&&(r=n.slice(i,i+t),n.length>70?(InitMaxHeightDelayed(r,u*1e3),u++):InitMaxHeight(r))}function InitMaxHeightDelayed(n,t){setTimeout(function(){InitMaxHeight(n)},t)}function InitListImageHeights(n,t,i){jQuery(t).height("auto");var r;r=jQuery(n+":not(.img_v img)").length>0?GetMaxHeight(jQuery(n+":not(.img_v img)"),i):GetMaxHeight(jQuery(n),i);r>0&&jQuery(t).height(r)}function InitMaxHeight(n){ResetHeight(n);var t=GetMaxHeight(n);jQuery(n).height(t)}function ResetHeight(n){browser_ie8||browser_ie7||browser_ie6?jQuery(n).height("auto !important"):jQuery(n).height("auto")}function GetMaxHeight(n,t){var i=0;return jQuery(n).each(function(){var r,n;t&&t.length>0?(n=jQuery(this).closest(t+":not(:visible)"),n.length==0&&jQuery(this).not(":visible")&&(n=this),n&&n.length>0&&jQuery(n).show(),r=jQuery(this).closest("a").hasClass("img_v")?jQuery(this).actual("height"):jQuery(this).outerHeight(!1),n&&n.length>0&&jQuery(n).hide()):r=jQuery(this).closest("a").hasClass("img_v")?jQuery(this).actual("height"):jQuery(this).outerHeight(!1);r>i&&(i=r)}),i}function InitMenu(n,t){function c(n,t){if(n&&t){var r=n.x>t.x?n.x-t.x:t.x-n.x,u=n.y>t.y?n.y-t.y:t.y-n.y,i=10;return r>i||u>i}return!1}function l(n){var t={x:0,y:0};return n&&n.originalEvent&&n.originalEvent.changedTouches&&n.originalEvent.changedTouches.length>0?(t.x=n.originalEvent.changedTouches[0].clientX,t.y=n.originalEvent.changedTouches[0].clientY):n&&n.originalEvent&&(t.x=n.originalEvent.clientX,t.y=n.originalEvent.clientY),t}function a(n,t){var i=h(t);i&&i.length>0?(window.location.assign(i),f=!0):s(n,t)}function s(n,t){jQuery(t).toggleClass("open");jQuery(t).siblings().removeClass("open");n.preventDefault()}function h(n){var i=jQuery(n).children("a"),t=jQuery(i).attr("href");return t=="#"&&(t=""),t}var o=n+" li",i=!1,r=!1,u=!1,f=!1,e=undefined;jQuery(o).bind("click pointerdown MSPointerDown MSPointerUp",function(n){var h=l(n);if((n.type=="touchstart"||n.type=="pointerdown"||n.type=="MSPointerDown")&&(e=h,i=!1),(n.type=="touchend"||n.type=="pointerup"||n.type=="MSPointerUp")&&(u=!0,r=c(e,h)),u||n.type=="click"){if(!i&&!f&&!r){var o=jQuery(this).closest("li"),v=jQuery(o).find("li"),y=jQuery("html").hasClass("no-touch");v.length==0||t||y?a(n,o):s(n,o);i=!0}n.type=="click"&&(i=!1);r=!1;u=!1;e=undefined;f||(n.stopPropagation(),n.stopImmediatePropagation())}})}function CallFunctionOnResize(n){callonresize.push(n)}function InitResponsive(){jQuery(".image-responsive > img:not(span > img)").wrap("<noscript><\/noscript>");InitResponsiveScripts();InitHeightsTimeout();CallFunctionOnResize(InitResponsiveScripts)}function InitResponsiveScripts(){responsive={};responsive.devicePixelRatio=1;responsive.screenWidth=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)*responsive.devicePixelRatio;responsive.isMob=!1;responsive.isTablet=!1;responsive.isPC=!1;responsive.isPCWide=!1;responsive.screenWidth<768?responsive.isMob=!0:responsive.screenWidth<960?responsive.isTablet=!0:(responsive.isPC=!0,responsive.screenWidth>1600&&(responsive.isPCWide=!0));InitResponsiveImages();InitImgTitles();InitHeights();AdjustTables();AdjustElementPositions()}function InitHeightsTimeout(){setTimeout(function(){InitHeights();heightTimeoutLength<heightTimeoutMaxLength&&(InitHeightsTimeout(),heightTimeoutLength+=500)},500)}function InitResponsiveImages(){responsive.loadImages=function(){var u,n,f,t,i,r;for(jQuery(".mob-image, .tablet-image, .pc-image").hide(),u=responsive.isMob?"mob-image":responsive.isTablet?"tablet-image":"pc-image",n=jQuery("."+u),n.show(),f=responsive.isPCWide?"popup-wide-image":"popup-image",t=0;t<n.length;t++)responsive.loadImage(n[t]),i=jQuery(n[t]).closest("a"),i.length>0&&(r=jQuery(i).find("."+f+" noscript"),r.length>0&&jQuery(i).attr("href",jQuery(r).attr("data-url")))};responsive.loadImage=function(n){if(n.children.length!=0){var i=n.children[0],r=i.getAttribute("data-title")?i.getAttribute("data-title"):"",u=i.getAttribute("data-url"),t=document.createElement("img");t.setAttribute("alt",r);t.setAttribute("title",r);t.setAttribute("src",u);n.children.length==1&&n.appendChild(t)}};responsive.loadImages()}function AppendLoader(n,t){jQuery(n).append('<img class="loader" src="/assets/images/interface/loadermini.gif" alt="loading" />');t&&jQuery(n).find(".loader").attr("style",t)}
4function DisplayLoaderOverlay(n){jQuery(".loader-overlay").css("display",n?"block":"none")}function AdjustElementType(n,t){try{jQuery(n).each(function(){jQuery(this).prop("type",t)})}catch(i){}}function AdjustElementPositions(){responsive.isPC&&jQuery(".article-shop-options-pc .article-shop-options").length==0?jQuery(".article-shop-options-pc").append(jQuery(".article-shop-options")):responsive.isPC||jQuery(".article-shop-options-mob .article-shop-options").length!=0||jQuery(".article-shop-options-mob").append(jQuery(".article-shop-options"))}function AdjustInputs(){AdjustElementType(".input-email input, input.input-email","email");AdjustElementType(".input-tel input, input.input-tel","tel");AdjustElementType(".input-number input, input.input-number","number");AdjustElementType(".input-search input, input.input-search","search");AdjustElementType(".input-date input, input.input-date","date");jQuery(".numeric input").bind("keydown",function(n){n.keyCode==46||n.keyCode==8||n.keyCode==9||n.keyCode==27||n.keyCode==13||n.keyCode==65&&n.ctrlKey===!0||n.keyCode>=35&&n.keyCode<=39||(n.shiftKey||(n.keyCode<48||n.keyCode>57)&&(n.keyCode<96||n.keyCode>105))&&n.preventDefault()});jQuery(".telephone input").bind("keydown",function(n){var t,i;(is_firefox?(t=171,i=173):(t=187,i=189),n.keyCode==46||n.keyCode==8||n.keyCode==9||n.keyCode==27||n.keyCode==13||n.keyCode==107||n.keyCode==109||n.keyCode==111||n.keyCode==t||n.keyCode==i||n.shiftKey===!0&&n.keyCode==56||n.shiftKey===!0&&n.keyCode==57||n.shiftKey===!0&&n.keyCode==55||n.keyCode==65&&n.ctrlKey===!0||n.keyCode>=35&&n.keyCode<=39)||(n.shiftKey||(n.keyCode<48||n.keyCode>57)&&(n.keyCode<96||n.keyCode>105))&&n.preventDefault()});jQuery(".valactive").addClass("form-hidden");jQuery(".checkbox br, .radio br").remove()}function PositionElementOnAnother(n,t){var i=t.position(),r=t.outerWidth();n.css({position:"absolute",top:i.top+"px",left:i.left+r/2+"px"})}function showToolTipMessage(n,t,i=3e3){var r=null,t;return r=typeof n=="string"||n instanceof String?n:n.length>0?n[0]:n,t=Tipped.create(r,t,{close:!0,hideOn:!1,showOn:!1}),t.show(),i>0&&setTimeout(function(){t.remove()},i),t}function getUriQueryParameter(uri,paramName){if(uri){var parsed=parseUri(uri);return eval("parsed.queryKey."+paramName)}return null}function setUriQueryParameter(uri,paramName,paramValue){if(uri){var parsed=parseUri(uri),currentValue=eval("parsed.queryKey."+paramName);return result=currentValue?uri.replace(paramName+"="+currentValue,paramName+"="+paramValue):uri+(parsed.query?"&":"?")+paramName+"="+paramValue}return null}function parseUri(n){for(var t=parseUri.options,u=t.parser[t.strictMode?"strict":"loose"].exec(n),i={},r=14;r--;)i[t.key[r]]=u[r]||"";return i[t.q.name]={},i[t.key[12]].replace(t.q.parser,function(n,r,u){r&&(i[t.q.name][r]=u)}),i}function innerSwiper(){var n=new Swiper(".innerSwiper",{navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},autoHeight:!0,on:{init:function(){$("body").addClass("innerSwiperActive")}}});jQuery(".innerSwiperActive #cboxNext").click(function(t){t.preventDefault();n.slideNext()});jQuery(".innerSwiperActive #cboxPrevious").click(function(t){t.preventDefault();n.slidePrev()})}function InitTabs(n,t,i,r,u,f,e,o){return jQuery(n).length>1&&(i!=undefined&&i&&(InitTabWidth(t,n,0,!0),timeout[t]=window.setTimeout(function(){SetNextTimeout(t,n,timeoutLength)},timeoutLength)),SetActiveNavItem(n,0),jQuery(n).click(function(){i!=undefined&&(ClearTabsTimeout(t),i=!1,r&&u&&(jQuery(u).hide(),jQuery(r).show()));var f=jQuery(n).index(this);return SetItem(t,n,f),!1}),r!=undefined&&jQuery(r).click(function(){return i||(r&&u&&(jQuery(u).show(),jQuery(r).hide()),SetNextItem(t,n),timeout[t]=window.setTimeout(function(){SetNextTimeout(t,n,timeoutLength)},timeoutLength),i=!0),!1}),u!=undefined&&jQuery(u).click(function(){return r&&u&&(jQuery(u).hide(),jQuery(r).show()),ClearTabsTimeout(t),i=!1,!1}),f!=undefined&&jQuery(f).click(function(){return SetNextItem(t,n),r&&u&&(jQuery(u).hide(),jQuery(r).show()),ClearTabsTimeout(t),i=!1,!1}),e!=undefined&&jQuery(e).click(function(){return SetPrevItem(t,n),r&&u&&(jQuery(u).hide(),jQuery(r).show()),ClearTabsTimeout(t),i=!1,!1}),o!=undefined&&(staticCurrentItemIndexSelector=o)),!1}function ClearTabsTimeout(n){clearTimeout(timeout[n]);timeout[n]=undefined}function SetItem(n,t,i){var e,u,r,f,o;if(!jQuery(n).is(":animated")&&(e=GetCurrentIndex(t),i!=e))for(SetActiveNavItem(t,i),u=n.split(","),r=0;r<u.length;r++)f=jQuery(u[r]).get(i),jQuery(u[r]).css("z-index","0"),o=jQuery(u[r]).not(f),jQuery(f).css("z-index","10").fadeIn(500,function(){jQuery(o).removeClass("on").hide()}).addClass("on"),InitTabWidth(n,t,i)}function InitTabWidth(n,t,i,r){var u=jQuery(t).get(i);jQuery(t).find("span").stop().css("width","0%");timeout[n]||r?jQuery(u).find("span").animate({width:"100%"},timeoutLength,"linear"):jQuery(u).find("span").css("width","100%")}function SetActiveNavItem(n,t){var i=jQuery(n).get(t),r;jQuery(n).removeClass("on");jQuery(n).children().removeClass("active");jQuery(i).addClass("on");jQuery(jQuery(i).children()[0]).addClass("active");r=GetCurrentIndex(n);jQuery(staticCurrentItemIndexSelector).text(r+1)}function SetNextItem(n,t){var i=GetCurrentIndex(t),r=GetNextIndex(t,i);SetItem(n,t,r)}function SetPrevItem(n,t){var i=GetCurrentIndex(t),r=GetPrevIndex(t,i);SetItem(n,t,r)}function GetCurrentIndex(n){var t=jQuery(n+".on")[0];return jQuery(n).index(t)}function GetNextIndex(n,t){return jQuery(n).size()>t+1?t+1:0}function GetPrevIndex(n,t){return t-1>=0?t-1:jQuery(n).size()-1}function SetNextTimeout(n,t,i){SetNextItem(n,t);timeout[n]=window.setTimeout(function(){SetNextTimeout(n,t,i)},i)}
4function initDatePicker(n,t,i){var r=n;typeof r=="string"&&(r=(r[0]!="#"&&r[0]!="."?"#":"")+r);jQuery(r).each(function(){var n=jQuery(this),o,r,u;if(n.siblings(".input-calendar").length==0&&n.after('<a class="input-calendar" href="javascript:void(0)"><img src="/assets/images/interface/calendar.png" alt="Calendar" /><\/a>'),o=n.parent().find(".input-calendar"),setPopupOnClick(n,o),n.closest(".date-input").length==0&&n.parent().parent().addClass("date-input"),r=n.val(),n.addClass("fieldset__input js__datepicker picker__input"),n.pickadate({format:t,formatSubmit:"dd.mm.yyyy.",editable:!0,container:"#frmMain",onOpen:function(){jQuery("form").addClass("date-picker-active")},onClose:function(){jQuery("form").removeClass("date-picker-active");i&&i()}}),r&&r.length>0){var f="",s=["d","m","y"],e=0;for(u=0;u<r.length;u++)r[u]=="."?(f+=".",e<s.length&&e++):f+=s[e];n.pickadate("picker").set("select",r,{format:f})}})}function setPopupOnClick(n,t){var r=n,u,i,f;typeof r=="string"&&(r=(r[0]!="#"&&r[0]!="."?"#":"")+r);u=jQuery(r);i=t;typeof i=="string"&&(i=(i[0]!="#"&&i[0]!="."?"#":"")+i);f=jQuery(i);jQuery(f).bind("click",function(n){jQuery(u).pickadate("picker").open();n.stopPropagation()});jQuery(u).bind("click",function(){jQuery(f).trigger("click")});jQuery(u).on("keydown",function(n){n.which===32&&(jQuery(u).pickadate("picker").open(),n.stopPropagation())})}function WarningClose(){jQuery.ajax({url:"/Handlers/SessionHandler.ashx?isIEWarningIgnored=true",type:"POST",success:function(n){n=="true"&&jQuery("#iewarning").hide()},"async":!1})}function generateSemiUID(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}function getUrlQueryParam(n,t){return getUriQueryParameter(n,t)}function ItemList_HistoryStateChange(){var t,n;stateChangeStop||(t=History.getState(),t.data.state&&(n=t.data.state,RefreshFromUrlStatic(n.sendUrl,n.onSuccess,n.JSONData,n.contentSelector,!0,ItemList.FilterParam)))}function ItemList_RevertToStateFromQuery(){var t=getUriQueryParameter(window.location,"state"),n;t&&(n=getStoredState(t),n&&RefreshFromUrlStatic(n.sendUrl,n.onSuccess,n.JSONData,n.contentSelector,!0,ItemList.FilterParam))}function RefreshFromUrlStatic(n,t,i,r,u,f){var e="";e=u?getUriQueryParameter(window.location,"state"):AddToBrowserHistory(n,t,i,r,f);e&&(n=setUriQueryParameter(n,"state",e));ItemList.AjaxActive++;jQuery.ajax({url:n,data:i,type:"POST",success:function(n){if(n){var i=jQuery(r).get(0);setTimeout(function(){RefreshFromUrlHandlers.callAllHandlers(!1);jQuery(i).html(n);RefreshFromUrlHandlers.callAllHandlers(!0);t&&t();ItemList.AjaxActive--},50)}},error:function(){ItemList.AjaxActive--},"async":!1})}function AddToBrowserHistory(n,t,i,r,u){var f={},e,o;return f.sendUrl=n,f.onSuccess=t,f.JSONData=i,f.uid=generateSemiUID(),f.contentSelector=r,e="?state="+f.uid,u&&(o=getUriQueryParameter(window.location,u),o&&(e+="&"+u+"="+o)),storeStatePermanently(f.uid,f),stateChangeStop=!0,History.pushState({state:f},null,e),stateChangeStop=!1,f.uid}function storeStatePermanently(n,t){if(typeof Storage!="undefined"){var i=JSON.stringify(t);localStorage.setItem("sts-"+n,i)}}function getStoredState(n){if(typeof Storage!="undefined"){var t=localStorage.getItem("sts-"+n);if(t)return JSON.parse(t)}return null}function RefreshFromUrlHandlersArray(){this.funcs=[]}function GetReloadQueryString(n,t,i){var u,r,o,f,e;for(n.length>0&&n.substring(0,1)=="?"&&(n=n.substring(1)),t=encodeURIComponent(t.toLowerCase()),i=encodeURIComponent(i.toLowerCase()),u=[],r=n.split("&"),r.length==1&&r[0].length==0&&r.splice(0,r.length),o=!1,f=0;f<r.length;f++)e=r[f].split("="),e[0]==t&&(e[1]=i,o=!0),u.push(e.join("="));return o||u.push(t+"="+i),u.join("&")}function ReloadByKeyValue(n,t){var i=GetReloadQueryString(location.search,n,t);location.href=location.pathname+"?"+i}function ReloadByArrayKeyValue(n,t){for(var r=location.search,i=0;i<n.length;i++)r=GetReloadQueryString(r,n[i],t[i]);location.href=location.pathname+"?"+r}function ReloadBySort(n,t){var r,u,f,i;if(n=encodeURIComponent(n.toLowerCase()),r=typeof t!="undefined",r&&(t=encodeURIComponent(t.toLowerCase())),GetQueryValue("sort")==null)u="",u=location.search.length==0?"?sort="+n:"&sort="+n,r&&(u+="&dir="+t),location.href+=u;else{var e=location.search.substring(1).toLowerCase().split("&"),o=[],s=!1;for(f=0;f<e.length;f++){if(i=e[f].split("="),i[0]=="sort")i[1]!=n&&(i[1]=n,s=!0);else if(r&&i[0]=="dir")if(s)i[1]=t;else switch(i[1]){case"ascending":i[1]="descending";break;
4case"descending":i[1]="ascending";break;default:i[1]=t}o.push(i.join("="))}location.href=location.pathname+"?"+o.join("&")}}function ReloadByFilter(n,t){var a,s,u,f,r,c,i,e,o;if(n=encodeURIComponent(n.toLowerCase()),t!=null&&(t=encodeURIComponent(t.toLowerCase())),GetQueryValue("filter")==null)t!=null?(a="filter="+n+":"+t,location.href+=location.search.length==0?"?"+a:"&"+a):location.reload();else{for(s=location.search.substring(1).toLowerCase().split("&"),u=[],f=0;f<s.length;f++)if(r=s[f].split("="),r[0]=="filter"){var y=r[1].split("|"),h=[],p=!1;for(c=0;c<y.length;c++){if(i=y[c].split(":"),i[0]==n){if(t!=null)if(i.length>1){var v=i[1].split(","),l=[],w=!1;for(e=0;e<v.length;e++)v[e]==t?w=!0:l.push(v[e]);w||l.push(t);l.length>0?i[1]=l.join(","):i.splice(0,i.length)}else i.push(t);else i.splice(0,i.length);p=!0}i.length>0&&h.push(i.join(":"))}p||(o=[],t!=null&&(o.push(n),o.push(t)),o.length>0&&h.push(o.join(":")));h.length>0?r[1]=h.join("|"):r.splice(0,r.length);r.length>0&&u.push(r.join("="))}else u.push(s[f]);location.href=u.length>0?location.pathname+"?"+u.join("&"):location.pathname}}function GetQueryValue(n){var r=null,i,t;if(location.search.length>0)for(i=location.search.substring(1).toLowerCase().split("&"),t=0;t<i.length;t++)if(i[t].split("=")[0]==n.toLowerCase()){r=i[t].split("=")[1];break}return r}function InitButtonParentClick(){jQuery(".form-buttons div").click(function(e){try{var link=jQuery(this).find("a").get(0);jQuery(e.target).is(".form-buttons div a")||jQuery(link).click()&&eval(jQuery(link).attr("href"))}catch(Error){return}})}function SpecimenOK(n,t){return typeof Page_ClientValidate=="function"&&(t?Page_ClientValidate(t):Page_ClientValidate()),Page_IsValid||(Page_BlockSubmit=!1,jQuery(".errorMessage","#frmMain").attr("style","color: Red; visibility: visible;"),GoToSpecimen(n)),Page_IsValid}function GoToSpecimen(n){if(typeof GoToSpecimenCustom=="function")GoToSpecimenCustom(n);else return window.location.hash="",window.location.hash=n?n:"specimen",!1}function ClearForm(n){n||(n="body");jQuery(jQuery(n).find(".errorMessage","form")).attr("style","color: Red; visibility: hidden;");jQuery(jQuery(n).find(".errorMessage")).html("");jQuery(jQuery(n).find(":input","form")).not(":button, :submit, :reset, :hidden").removeAttr("checked").removeAttr("selected");jQuery(jQuery(n).find(":input","form")).not(":button, :submit, :reset, :hidden, :radio").val("");jQuery("."+errorClass).removeClass("error");jQuery("."+validatorClass).css("visibility","hidden")}function CheckValidators(n){n||(n="."+validatorClass);jQuery(n).each(function(){var t=this,i,r;jQuery(t).css("visibility")=="visible"&&jQuery(t).is(":visible")?GetMasterParent(t).addClass(errorClass):jQuery(t).siblings(n).length>0?(i=this,r=!0,jQuery(i).siblings(n).each(function(){var n=this;jQuery(n).css("visibility")=="visible"&&jQuery(n).is(":visible")&&(r=!1)}),r&&GetMasterParent(i).removeClass(errorClass)):GetMasterParent(t).removeClass(errorClass)})}function GetMasterParent(n){return jQuery(jQuery(jQuery(jQuery(n).parent()).parent()))}function IsCheckBoxListValid(n,t){var i=jQuery(n).parent();t.IsValid=jQuery(i).find("input:checked").length>0}function UpdateHiddenDate(n,t,i){var e=jQuery(n),u,f,r;for(u==""&&(u=".."),u=e.val().split("."),f="",i=="0"&&(i=""),r=0;r<3;r++)r!=0&&(f+="."),u[r]==undefined&&(u[r]=""),f+=r!=t?u[r]:i;f==".."&&(f="");e.val(f)}function CardUIHandlersArray(){this.funcs=[]}function AddToCart(urlAddToCard,structureID){var json="",cartClientResponse;return jQuery.ajax({url:urlAddToCard,success:function(n){json=n},"async":!1}),cartClientResponse=null,json!=""&&(cartClientResponse=eval("("+json+")")),RefreshCartUIHandlers.callAllHandlers(structureID),cartClientResponse}function AddQ(n,t){var i,u=document.getElementById(n),r;i=parseInt(u.value);isNaN(i)&&(i=0);r=i+t;r>0&&(u.value=r)}function AddQServerSide(n){jQuery.ajax({url:n,success:function(){},"async":!1});RefreshCartUIHandlers.callAllHandlers(-1)}function DeleteCartItem(n){jQuery.ajax({url:n,success:function(){},"async":!1});RefreshCartUIHandlers.callAllHandlers(-1)}function ClearCart(n){jQuery.ajax({url:n,success:function(){},"async":!1});RefreshCartUIHandlers.callAllHandlers(-1)}function RefreshCartUi(n){RefreshCartUIHandlers.callAllHandlers(n)}function ClearWishList(n){jQuery.ajax({url:n,success:function(){},"async":!1});RefreshCartUIHandlers.callAllHandlers(-1)}function AddMarker(n,t,i,r){return AddIconMarker(n,t,i,r,null)}function AddIconMarker(n,t,i,r,u){var f=new google.maps.Marker({position:t,map:n,title:i,icon:u});return r.push(f),f}function RemoveMarkers(n){for(var t=0;t<n.length;t++)n[t].setMap(null);n.length=0}function FitAllMarkers(n,t){for(var r=new google.maps.LatLngBounds,i=0;i<t.length;i++)r.extend(t[i].position);n.fitBounds(r)}
4function GetVisibilityStyleForFeature(n,t){return[{featureType:n,stylers:[{visibility:t}]},{}]}function HideAllMarkers(n){for(var t=0;t<n.length;t++)n[t].setVisible(!1)}function ShowAllMarkers(n){for(var t=0;t<n.length;t++)n[t].setVisible(!0)}function AutoComplete_Initialize(n,t,i,r,u,f){autoComplete={};autoComplete.Map=n;autoComplete.Input=document.getElementById(t);autoComplete.Geocoder=new google.maps.Geocoder;autoComplete.Button=i?document.getElementById(i):null;var e={types:r,fields:u,componentRestrictions:{country:null}};return typeof f!="undefined"&&f.length>0&&(e.componentRestrictions.country=f),autoComplete.Gac=new google.maps.places.Autocomplete(autoComplete.Input,e),autoComplete.Gac.addListener("place_changed",Autocomplete_PlaceChanged),autoComplete.Button!=null&&autoComplete.Button.addEventListener("click",function(){AutoComplete_SearchOnMap(autoComplete.Input.value)},!1),autoComplete}function AutoComplete_SearchOnMap(n){var t={address:n};autoComplete.Geocoder.geocode(t,function(n,t){t=="OK"&&(autoComplete.Map.setCenter(n[0].geometry.location),autoComplete.Map.fitBounds(n[0].geometry.bounds))})}function Autocomplete_PlaceChanged(){var n=autoComplete.Gac.getPlace();n.formatted_address&&AutoComplete_SearchOnMap(n.formatted_address)}function IsMobileDevice(){var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;return n<768}var __pendingCallbacks,__synchronousCallBackIndex,__disabledControlArray,__wpm,responsive,callonresize,heightTimeoutLength,heightTimeoutMaxLength,ItemList,stateChangeStop,RefreshFromUrlHandlers,catalogCompare,GoToSpecimenCustom,RefreshCartUIHandlers,autoComplete;!function(n){function ct(t,i,r){var u,f,e;return r=r||"transparent",u="obj"+(""+Math.random()).slice(2,15),f='<object class="fp-engine" id="'+u+'" name="'+u+'" ',f+=n.browser.msie?'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">':' data="'+t+'" type="application/x-shockwave-flash">',e={width:"100%",height:"100%",allowscriptaccess:"always",wmode:r,quality:"high",flashvars:"",movie:t+(n.browser.msie?"?"+u:""),name:u},n.each(i,function(n,t){e.flashvars+=n+"="+t+"&"}),n.each(e,function(n,t){f+='<param name="'+n+'" value="'+t+'"/>'}),f+="<\/object>",n(f)}function e(n,t){return t=t||100,Math.round(n*t)/t}function v(n){return/mpegurl/i.test(n)?"application/x-mpegurl":"video/"+n}function rt(n){return/^(video|application)/i.test(n)||(n=v(n)),!!tt.canPlayType(n).replace("no","")}function lt(t,i){var r=n.grep(t,function(n){return n.type===i});return r.length?r[0]:null}function ft(n){var i=n.attr("src"),t=n.attr("type")||"",r=i.split(s)[1];return t=/mpegurl/i.test(t)?"mpegurl":t.replace("video/",""),{src:i,suffix:r||t,type:t||r}}function et(t){var r=this,i=[];n("source",t).each(function(){i.push(ft(n(this)))});i.length||i.push(ft(t));r.initialSources=i;r.resolve=function(t){return t?(n.isArray(t)?t={sources:n.map(t,function(t){var i,r=n.extend({},t);return n.each(t,function(n){i=n}),r.type=i,r.src=t[i],delete r[i],r})}:typeof t=="string"&&(t={src:t,sources:[]},n.each(i,function(n,i){i.type!="flash"&&t.sources.push({type:i.type,src:t.src.replace(s,"."+i.suffix+"$2")})})),t):{sources:i}}}function h(n){return n=parseInt(n,10),n>=10?n:"0"+n}function i(n){n=n||0;var i=Math.floor(n/3600),t=Math.floor(n/60);return(n=n-t*60,i>=1)?(t-=i*60,i+":"+h(t)+":"+h(n)):h(t)+":"+h(n)}var f,g,nt,tt,it,o,ut,s,y,c,r,ht,k;!function(n){if(!n.browser){var r=n.browser={},t=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(t)||/(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];i[1]&&(r[i[1]]=!0,r.version=i[2]||"0")}}(jQuery);n(function(){typeof n.fn.flowplayer=="function"&&n("video").parent(".flowplayer").flowplayer()});var a=[],d=[],t=window.navigator.userAgent;window.flowplayer=function(t){return n.isFunction(t)?d.push(t):typeof t=="number"||t===undefined?a[t||0]:n(t).data("flowplayer")};n(window).on("beforeunload",function(){n.each(a,function(t,i){i.conf.splash?i.unload():i.bind("error",function(){n(".flowplayer.is-error .fp-message").remove()})})});f=!1;try{typeof localStorage=="object"&&(window.localStorage.flowplayerTestStorage="test",f=!0)}catch(at){}g=/Safari/.exec(navigator.userAgent)&&!/Chrome/.exec(navigator.userAgent);m=/(\d+\.\d+) Safari/.exec(navigator.userAgent);safariVersion=m?Number(m[1]):100;n.extend(flowplayer,{version:"5.5.2",engine:{},conf:{},support:{},defaults:{debug:!1,disabled:!1,engine:"html5",fullscreen:window==window.top,keyboard:!0,ratio:9/16,adaptiveRatio:!1,flashfit:!1,rtmp:0,splash:!1,live:!1,swf:"//releases.flowplayer.org/5.5.2/flowplayer.swf",speeds:[.25,.5,1,1.5,2],tooltip:!0,volume:f?localStorage.muted=="true"?0:isNaN(localStorage.volume)?1:localStorage.volume||1:1,errors:["","Video loading aborted","Network error","Video not properly encoded","Video file not found","Unsupported video","Skin not found","SWF file not found","Subtitles not found","Invalid RTMP URL","Unsupported video format. Try installing Adobe Flash."],errorUrls:["","","","","","","","","","","https://get.adobe.com/flashplayer/"],playlist:[],hlsFix:g&&safariVersion<8}});nt=1;n.fn.flowplayer=function(t,i){return typeof t=="string"&&(t={swf:t}),n.isFunction(t)&&(i=t,t={}),!t&&this.data("flowplayer")||this.each(function(){var u=n(this).addClass("is-loading"),e=n.extend({},flowplayer.defaults,flowplayer.conf,t,u.data()),s=n("video",u).addClass("fp-engine").removeAttr("controls"),c=s.length?new et(s):null,h={},p,o,w,v,l,y,r;e.playlist.length&&(w=e.preload||s.attr("preload"),s.length&&s.replaceWith(v=n("<p />")),s=n("<video />
4").addClass("fp-engine"),v?v.replaceWith(s):u.prepend(s),flowplayer.support.video&&s.attr("preload",w),typeof e.playlist[0]=="string"?s.attr("src",e.playlist[0]):n.each(e.playlist[0],function(t,i){for(var r in i)i.hasOwnProperty(r)&&s.append(n("<source />").attr({type:"video/"+r,src:i[r]}))}),c=new et(s));l=u.data("flowplayer");l&&l.unload();u.data("fp-player_id",u.data("fp-player_id")||nt++);try{h=f?window.localStorage:h}catch(b){}y=this.currentStyle&&this.currentStyle.direction==="rtl"||window.getComputedStyle&&window.getComputedStyle(this,null).getPropertyValue("direction")==="rtl";y&&u.addClass("is-rtl");r=l||{conf:e,currentSpeed:1,volumeLevel:typeof e.volume=="undefined"?h.volume*1:e.volume,video:{},disabled:!1,finished:!1,loading:!1,muted:h.muted=="true"||e.muted,paused:!1,playing:!1,ready:!1,splash:!1,rtl:y,load:function(t,i){if(!r.error&&!r.loading&&!r.disabled){if(t=c.resolve(t),n.extend(t,o.pick(t.sources)),t.src){var f=n.Event("load");if(u.trigger(f,[r,t,o]),f.isDefaultPrevented())r.loading=!1;else if(o.load(t),n.isFunction(t)&&(i=t),i)u.one("ready",i)}return r}},pause:function(n){if(r.ready&&!r.seeking&&!r.disabled&&!r.loading){o.pause();r.one("pause",n)}return r},resume:function(){return r.ready&&r.paused&&!r.disabled&&(o.resume(),r.finished&&(r.trigger("resume",[r]),r.finished=!1)),r},toggle:function(){return r.ready?r.paused?r.resume():r.pause():r.load()},seek:function(t,i){var f,e;if(r.ready&&!r.live)if(typeof t=="boolean"&&(f=r.video.duration*.1,t=r.video.time+(t?f:-f)),t=p=Math.min(Math.max(t,0),r.video.duration).toFixed(1),e=n.Event("beforeseek"),u.trigger(e,[r,t]),e.isDefaultPrevented())r.seeking=!1,u.toggleClass("is-seeking",r.seeking);else if(o.seek(t),n.isFunction(i))u.one("seek",i);return r},seekTo:function(n,t){var i=n===undefined?p:r.video.duration*.1*n;return r.seek(i,t)},mute:function(n){return n===undefined&&(n=!r.muted),h.muted=r.muted=n,h.volume=isNaN(h.volume)?e.volume:h.volume,r.volume(n?0:h.volume,!0),r.trigger("mute",n),r},volume:function(n,t){return r.ready&&(n=Math.min(Math.max(n,0),1),t||(h.volume=n),o.volume(n)),r},speed:function(t,i){if(r.ready&&(typeof t=="boolean"&&(t=e.speeds[n.inArray(r.currentSpeed,e.speeds)+(t?1:-1)]||r.currentSpeed),o.speed(t),i))u.one("speed",i);return r},stop:function(){return r.ready&&(r.pause(),r.seek(0,function(){u.trigger("stop")})),r},unload:function(){return u.hasClass("is-embedding")||(e.splash?(r.trigger("unload"),o.unload()):r.stop()),r},disable:function(n){return n===undefined&&(n=!r.disabled),n!=r.disabled&&(r.disabled=n,r.trigger("disable",n)),r}};r.conf=n.extend(r.conf,e);n.each(["bind","one","unbind"],function(n,t){r[t]=function(n,i){return u[t](n,i),r}});r.trigger=function(n,t){return u.trigger(n,[r,t]),r};u.data("flowplayer")||u.bind("boot",function(){if(n.each(["autoplay","loop","preload","poster"],function(n,t){var i=s.attr(t);i!==undefined&&(e[t]=i?i:!0)}),(e.splash||u.hasClass("is-splash")||!flowplayer.support.firstframe)&&(r.forcedSplash=!e.splash&&!u.hasClass("is-splash"),r.splash=e.splash=e.autoplay=!0,u.addClass("is-splash"),flowplayer.support.video&&s.attr("preload","none")),(e.live||u.hasClass("is-live"))&&(r.live=e.live=!0,u.addClass("is-live")),n.each(d,function(){this(r,u)}),o=flowplayer.engine[e.engine],o&&(o=o(r,u)),o.pick(c.initialSources)?r.engine=e.engine:n.each(flowplayer.engine,function(n){if(n!=e.engine&&(o=this(r,u),o.pick(c.initialSources)))return r.engine=n,!1}),a.push(r),!r.engine)return r.trigger("error",{code:flowplayer.support.flashVideo?5:10});e.splash?r.unload():r.load();e.disabled&&r.disable();o.volume(r.volumeLevel);u.one("ready",i)}).bind("load",function(t,i){e.splash&&n(".flowplayer").filter(".is-ready, .is-loading").not(u).each(function(){var t=n(this).data("flowplayer");t.conf.splash&&t.unload()});u.addClass("is-loading");i.loading=!0}).bind("ready",function(n,t,i){function r(){u.removeClass("is-loading");t.loading=!1}if(i.time=0,t.video=i,e.splash)u.one("progress",r);else r();t.muted?t.mute(!0):t.volume(t.volumeLevel);var f=t.conf.hlsFix&&/mpegurl/i.exec(i.type);u.toggleClass("hls-fix",!!f)}).bind("unload",function(){e.splash&&s.remove();u.removeClass("is-loading");r.loading=!1}).bind("ready unload",function(n){var t=n.type=="ready";u.toggleClass("is-splash",!t).toggleClass("is-ready",t);r.ready=t;r.splash=!t}).bind("progress",function(n,t,i){t.video.time=i}).bind("speed",function(n,t,i){t.currentSpeed=i}).bind("volume",function(n,t,i){t.volumeLevel=Math.round(i*100)/100;t.muted?i&&t.mute(!1):h.volume=i}).bind("beforeseek seek",function(n){r.seeking=n.type=="beforeseek";u.toggleClass("is-seeking",r.seeking)}).bind("ready pause resume unload finish stop",function(n,t,i){r.paused=/pause|finish|unload|stop/.test(n.type);n.type=="ready"&&(r.paused=e.preload=="none",i&&(r.paused=!i.duration||!e.autoplay&&e.preload!="none"));r.playing=!r.paused;u.toggleClass("is-paused",r.paused).toggleClass("is-playing",r.playing);r.load.ed||r.pause()}).bind("finish",function(){r.finished=!0}).bind("error",function(){s.remove()});u.trigger("boot",[r,u]).data("flowplayer",r)})};!function(){var y=function(n){var t=/Version\/(\d\.\d)/.exec(n);return t&&t.length>1?parseFloat(t[1],10):0},r=flowplayer.support,c=n.browser,l=n("<video loop autoplay preload/>")[0],t=navigator.userAgent,h=c.msie||/Trident\/7/.test(t),u=/iPad|MeeGo/.test(t)&&!/CriOS/.test(t),s=/iPad/.test(t)&&/CriOS/.test(t),f=/iP(hone|od)/i.test(t)&&!/iPad/.test(t),e=/Android/.test(t)&&!/Firefox/.test(t),p=/Android/.test(t)&&/Firefox/.test(t),v=/Silk/.test(t),o=/IEMobile/.test(t),w=o?parseFloat(/Windows\ Phone\ (\d+\.\d+)/.exec(t)[1],10):0,b=o?parseFloat(/IEMobile\/(\d+\.\d+)/.exec(t)[1],10):0,d=u?y(t):0,k=e?parseFloat(/Android\ ((\d+\.\d+)|\d+)/.exec(t)[1],10):0,a,i;n.extend(r,{subtitles:!!l.addTextTrack,fullscreen:typeof document.webkitCancelFullScreen=="function"&&!/Mac OS X 10_5.+Version\/5\.0\.\d S
4afari/.test(t)||document.mozFullScreenEnabled||typeof document.exitFullscreen=="function"||typeof document.msExitFullscreen=="function",inlineBlock:!(h&&c.version<8),touch:"ontouchstart"in window,dataload:!u&&!f&&!o,zeropreload:!h&&!e,volume:!u&&!e&&!f&&!v&&!s,cachedVideoTag:!u&&!f&&!s&&!o,firstframe:!f&&!u&&!e&&!v&&!s&&!o&&!p,inlineVideo:!f&&(!o||w>=8.1&&b>=11)&&(!e||k>=3),hlsDuration:!e&&(!c.safari||u||f||s),seekable:!u&&!s});try{a=navigator.plugins["Shockwave Flash"];i=h?new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version"):a.description;h||a[0].enabledPlugin?(i=i.split(/\D+/),i.length&&!i[0]&&(i=i.slice(1)),r.flashVideo=i[0]>9||i[0]==9&&i[3]>=115):r.flashVideo=!1}catch(g){}try{r.video=!!l.canPlayType;r.video&&l.canPlayType("video/mp4")}catch(nt){r.video=!1}r.animation=function(){for(var i=["","Webkit","Moz","O","ms","Khtml"],r=n("<p/>")[0],t=0;t<i.length;t++)if(r.style[i[t]+"AnimationName"]!=="undefined")return!0}()}();window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_savedUnloadHandler=__flash_unloadHandler=function(){}});flowplayer.engine.flash=function(t,i){var u=t.conf,a=t.video,f,e,r,o=n(window),s=function(){if(ot=="webkit"||b){var u=n("object param[name='flashvars']",i),r=(u.attr("value")||"").split("&");n.each(r,function(n,i){return i=i.split("="),i[0]=="url"&&i[1]!=t.video.url?(r[n]="url="+t.video.url,u.attr({value:r.join("&")}),!1):void 0})}},h=function(r){var p=i.height(),w=i.width();if(t.conf.flashfit||/full/.test(r.type)){var h=t.isFullscreen,b=h&&l,k=!flowplayer.support.inlineBlock,e=h?b?screen.width:o.width():w,s=h?b?screen.height:o.height():p,c=0,a=0,u=k?w:"",f=k?p:"",v,y;(t.conf.flashfit||r.type==="fullscreen")&&(v=t.video.width/t.video.height,y=t.video.height/t.video.width,f=Math.max(y*e),u=Math.max(v*s),f=f>s?u*y:f,f=Math.min(Math.round(f),s),u=u>e?f*v:u,u=Math.min(Math.round(u),e),a=Math.max(Math.round((s+a-f)/2),0),c=Math.max(Math.round((e+c-u)/2),0));n("object",i).css({width:u,height:f,marginTop:a,marginLeft:c})}},c={pick:function(t){var r,i,u;if(flowplayer.support.flashVideo){if(r=n.grep(t,function(n){return n.type=="flash"})[0],r)return r;for(i=0;i<t.length;i++)if(u=t[i],/mp4|flv/i.test(u.type))return u}},load:function(o){function y(n){return n.replace(/&/g,"%26").replace(/&/g,"%26").replace(/=/g,"%3D")}var a=n("video",i),l=y(o.src),v,p,c;if(is_absolute=/^https?:/.test(l),v=function(){a.remove()},p=function(t){return n.grep(t,function(n){return!!a[0].canPlayType("video/"+n.type)}).length>0},flowplayer.support.video&&a.prop("autoplay")&&p(o.sources))a.one("timeupdate",v);else v();is_absolute||u.rtmp||(l=n("<img/>").attr("src",l)[0].src);r?r.__play(l):(t.bind("ready",s).bind("ready fullscreen fullscreen-exit",h),f="fp"+(""+Math.random()).slice(3,15),c={hostname:u.embedded?u.hostname:location.hostname,url:l,callback:"jQuery."+f},i.data("origin")&&(c.origin=i.data("origin")),is_absolute&&delete u.rtmp,n.each(["key","autoplay","preload","rtmp","subscribe","live","loop","debug","splash","poster","rtmpt"],function(n,t){u.hasOwnProperty(t)&&(c[t]=u[t])}),u.bufferTime!==undefined&&(c.bufferTime=u.bufferTime),c.rtmp&&(c.rtmp=y(c.rtmp)),c.initialVolume=t.volumeLevel,e=ct(u.swf,c,u.wmode),e.prependTo(i),r=e[0],setTimeout(function(){try{if(!r.PercentLoaded())return i.trigger("error",[t,{code:7,url:u.swf}])}catch(n){}},5e3),setTimeout(function(){typeof r.PercentLoaded=="undefined"&&i.trigger("flashdisabled",[t])},1e3),r.pollInterval=setInterval(function(){if(r){var n=r.__status?r.__status():null;n&&(t.trigger("progress",n.time),o.buffer=n.buffer/o.bytes*o.duration,t.trigger("buffer",o.buffer),!o.buffered&&n.time>0&&(o.buffered=!0,t.trigger("buffered")))}},250),n[f]=function(i,r){u.debug&&console.log("--",i,r);var f=n.Event(i);switch(i){case"ready":r=n.extend(o,r);break;case"click":f.flash=!0;break;case"keydown":f.which=r;break;case"seek":o.time=r}i!="buffered"&&setTimeout(function(){t.trigger(f,r)},1)})},speed:n.noop,unload:function(){r&&r.__unload&&r.__unload();delete n[f];n("object",i).remove();r=0;t.unbind("ready",s).unbind("ready fullscreen fullscreen-exit",h);clearInterval(r.pollInterval)}};return n.each("pause,resume,seek,volume".split(","),function(n,u){c[u]=function(n){try{t.ready&&(u=="seek"&&t.video.time&&!t.paused&&t.trigger("beforeseek"),n===undefined?r["__"+u]():r["__"+u](n))}catch(f){if(typeof r["__"+u]=="undefined")return i.trigger("flashdisabled",[t]);throw f;}}}),c};tt=n("<video/>")[0];it={ended:"finish",pause:"pause",play:"resume",progress:"buffer",timeupdate:"progress",volumechange:"volume",ratechange:"speed",seeked:"seek",loadeddata:"ready",error:"error",dataunavailable:"error"};ut=function(t){return o?o.attr({type:v(t.type),src:t.src}):o=n("<video/>",{src:t.src,type:v(t.type),"class":"fp-engine",autoplay:"autoplay",preload:"none","x-webkit-airplay":"allow"})};flowplayer.engine.html5=function(t,i){function l(r,u,o){r.listeners&&r.listeners.hasOwnProperty(i.data("fp-player_id"))||((r.listeners||(r.listeners={}))[i.data("fp-player_id")]=!0,u.bind("error",function(i){try{if(i.originalEvent&&n(i.originalEvent.originalTarget).is("img"))return i.preventDefault();rt(n(i.target).attr("type"))&&t.trigger("error",{code:4})}catch(r){}}),n.each(it,function(u,c){r.addEventListener(u,function(l){var v,a,y,p;if(c=="progress"&&l.srcElement&&l.srcElement.readyState===0&&setTimeout(function(){t.video.duration||t.conf.live&&(t.video.type!=="mpegurl"||!s.hlsDuration)||(c="error",t.trigger(c,{code:4}))},1e4),f.debug&&!/progress/.test(c)&&console.log(u,"->",c,l),(t.ready||/ready|error/.test(c))&&c&&n("video",i).length){v=n.Event(c);switch(c){case"ready":a=n.extend(o,{duration:r.duration,width:r.videoWidth,height:r.videoHeight,url:r.currentSrc,src:r.currentSrc});try{a.seekable=!f.live&&/mpegurl/i.test(o?o.type||"":"")&&r.duration||r.seekable&&r.seekable.end(null)}catch(w){}if(h=h||setInterval(function(){try{a.buffer=r.buffered.end(null)}catch(n){}a.buffer&&(e(a.buffer,1e3)<e(a.duration,1e3)&&!a.buffered?t.trigger("buffer",l):a.buffered||(a.buffered=!0,t.trigger("buffer",l).trigger("buffered",l),clearInterval(h),h=0))},250),!f.live&&!a.duration&&!s.hlsDuration&&u==="loadeddata"){y=function(){a.duration=r.duration;try{a.seekable=r.seekable&&r.seekable.end(null)}catch(n){}t.trigger(v,a);r.removeEventListener("durationchange",y)};r.addEventListener("durationchange",y);return}break;case"progress":case"seek":if(p=t.video.duration,r.currentTime>0||t.live){a=Math.max(r.currentTime,0);break}else if(c=="progress")return;case"speed":a=e(r.playbackRate);break;case"volume":a=e(r.volume);break;case"error":try{a=(l.srcElement||l.originalTarget).error}catch(b){return}}t.trigger(v,a)}},!1)}))}var u=n("video",i),s=flowplayer.support,a=n("track",u),f=t.conf,h,r,c;return{pick:function(n){var i,t;if(s.video){if(f.videoTypePreference&&(i=lt(n,f.videoTypePreference),i))return i;for(t=0;t<n.length;t++)if(rt(n[t].type))return n[t]}},load:function(e){if(f.splash&&!r)u=ut(e).prependTo(i),s.inlineVideo||u.css({position:"absolute",top:"-9999em"}),f.loop&&u.attr("loop","loop"),r=u[0],typeof c!="undefined"&&(r.volume=c);else{r=u[0];var o=u.find("source");if(!r.src&&o.length&&(r.src=e.src,o.remove()),t.video.src&&e.src!=t.video.src)u.attr("autoplay","autoplay"),r.src=e.src;
4else if(f.preload=="none"||!s.dataload)if(s.zeropreload)t.trigger("ready",e).trigger("pause").one("ready",function(){i.trigger("resume",[t])});else t.one("ready",function(){i.trigger("pause",[t])})}l(r,n("source",u).add(u),e);(f.preload=="none"||e.type=="mpegurl")&&s.zeropreload&&s.dataload||r.load();f.splash&&r.load()},pause:function(){r.pause()},resume:function(){r.play()},speed:function(n){r.playbackRate=n},seek:function(n){try{var i=t.paused;r.currentTime=n;i&&r.pause()}catch(u){}},volume:function(n){c=n;r&&(r.volume=n)},unload:function(){n("video.fp-engine",i).remove();s.cachedVideoTag||(o=null);h=clearInterval(h);r=0}}};s=/\.(\w{3,4})(\?.*)?$/i;n.throttle=function(n,t){var i;return function(){i||(n.apply(this,arguments),i=1,setTimeout(function(){i=0},t))}};n.fn.slider2=function(t){var i=/iPad/.test(navigator.userAgent)&&!/CriOS/.test(navigator.userAgent);return this.each(function(){var r=n(this),w=n(document),s=r.children(":last"),h,c,l,a,f,o,u,b,v=!1,y=function(){c=r.offset();l=r.width();a=r.height();o=f?a:l;b=g(u)},p=function(n){!h&&n!=e.value&&(!u||n<u)&&(r.trigger("slide",[n]),e.value=n)},k=function(n){var u=n.pageX,r,i;return!u&&n.originalEvent&&n.originalEvent.touches&&n.originalEvent.touches.length&&(u=n.originalEvent.touches[0].pageX),r=f?n.pageY-c.top:u-c.left,r=Math.max(0,Math.min(b||o,r)),i=r/o,f&&(i=1-i),t&&(i=1-i),d(i,0,!0)},d=function(n,t){t===undefined&&(t=0);n>1&&(n=1);var r=Math.round(n*1e3)/10+"%";return(!u||n<=u)&&(i||v||s.stop(),v?s.css("width",r):s.animate(f?{height:r}:{width:r},t,"linear")),n},g=function(n){return Math.max(0,Math.min(o,f?(1-n)*a:n*l))},e={max:function(n){u=n},disable:function(n){h=n},slide:function(n,t,i){y();i&&p(n);d(n,t)},disableAnimation:function(n,t){v=n!==!1;r.toggleClass("no-animation",!!t)}};y();r.data("api",e).bind("mousedown.sld touchstart",function(t){if(t.preventDefault(),!h){var i=n.throttle(p,100);y();e.dragging=!0;r.addClass("is-dragging");p(k(t));w.bind("mousemove.sld touchmove",function(n){n.preventDefault();i(k(n))}).one("mouseup touchend",function(){e.dragging=!1;r.removeClass("is-dragging");w.unbind("mousemove.sld touchmove")})}})})};flowplayer(function(t,r){function u(t){return n(".fp-"+t,r)}function it(t){(r.css("width")==="0px"||r.css("height")==="0px"||t!==flowplayer.defaults.ratio)&&(parseInt(k,10)||v.css("paddingTop",t*100+"%"));c.inlineBlock||n("object",r).height(r.height())}function s(n){r.toggleClass("is-mouseover",n).toggleClass("is-mouseout",!n)}var e=t.conf,c=flowplayer.support,p,h,y;r.find(".fp-ratio,.fp-ui").remove();r.addClass("flowplayer").append(' <div class="ratio"/> <div class="ui"> <div class="waiting"><em/><em/><em/><\/div> <a class="fullscreen"/> <a class="unload"/> <p class="speed"/> <div class="controls"> <a class="play"><\/a> <div class="timeline"> <div class="buffer"/> <div class="progress"/> <\/div> <div class="volume"> <a class="mute"><\/a> <div class="volumeslider"> <div class="volumelevel"/> <\/div> <\/div> <\/div> <div class="time"> <em class="elapsed">00:00<\/em> <em class="remaining"/> <em class="duration">00:00<\/em> <\/div> <div class="message"><h2/><p/><\/div> <\/div>'.replace(/class="/g,'class="fp-'));var rt=u("progress"),l=u("buffer"),a=u("elapsed"),w=u("remaining"),ut=u("waiting"),v=u("ratio"),b=u("speed"),ft=u("duration"),k=v.css("paddingTop"),d=u("timeline").slider2(t.rtl),f=d.data("api"),et=u("volume"),g=u("fullscreen"),nt=u("volumeslider").slider2(t.rtl),o=nt.data("api"),tt=r.is(".fixed-controls, .no-toggle");f.disableAnimation(r.hasClass("is-touch"));c.animation||ut.html("<p>loading …<\/p>");it(e.ratio);try{e.fullscreen||g.remove()}catch(ot){g.remove()}t.bind("ready",function(){var n=t.video.duration;f.disable(t.disabled||!n);e.adaptiveRatio&&it(t.video.height/t.video.width);ft.add(w).html(i(n));n>=3600&&r.addClass("is-long")||r.removeClass("is-long");o.slide(t.volumeLevel);t.engine==="flash"&&f.disableAnimation(!0,!0)}).bind("unload",function(){k||v.css("paddingTop","")}).bind("buffer",function(){var n=t.video,i=n.buffer/n.duration;!n.seekable&&c.seekable&&f.max(i);i<1?l.css("width",i*100+"%"):l.css({width:"100%"})}).bind("speed",function(n,t,i){b.text(i+"x").addClass("fp-hilite");setTimeout(function(){b.removeClass("fp-hilite")},1e3)}).bind("buffered",function(){l.css({width:"100%"});f.max(1)}).bind("progress",function(){var n=t.video.time,r=t.video.duration;f.dragging||f.slide(n/r,t.seeking?0:250);a.html(i(n));w.html("-"+i(r-n))}).bind("finish resume seek",function(n){r.toggleClass("is-finished",n.type=="finish")}).bind("stop",function(){a.html(i(0));f.slide(0,100)}).bind("finish",function(){a.html(i(t.video.duration));f.slide(1,100);r.removeClass("is-seeking")}).bind("beforeseek",function(){rt.stop()}).bind("volume",function(){o.slide(t.volumeLevel)}).bind("disable",function(){var n=t.disabled;f.disable(n);o.disable(n);r.toggleClass("is-disabled",t.disabled)}).bind("mute",function(n,t,i){r.toggleClass("is-muted",i)}).bind("error",function(t,i,u){if(r.removeClass("is-loading").addClass("is-error"),u){u.message=e.errors[u.code];i.error=!0;var f=n(".fp-message",r);n("h2",f).text((i.engine||"html5")+": "+u.message);n("p",f).text(u.url||i.video.url||i.video.src||e.errorUrls[u.code]);r.unbind("mouseenter click").removeClass("is-mouseover")}}).bind("mouseenter mouseleave",function(n){if(!tt){var i=n.type=="mouseenter",t;s(i);i?(r.bind("pause.x mousemove.x volume.x",function(){s(!0);t=new Date}),p=setInterval(function(){new Date-t>5e3&&(s(!1),t=new Date)},100)):(r.unbind(".x"),clearInterval(p))}}).bind("mouseleave",function(){(f.dragging||o.dragging)&&r.addClass("is-mouseover").removeClass("is-mouseout")}).bind("click.player",function(i){if(n(i.target).is(".fp-ui, .fp-engine")||i.flash)return i.preventDefault(),t.toggle(
4)}).bind("contextmenu",function(t){t.preventDefault();var i=r.offset(),u=n(window),f=t.clientX-i.left,e=t.clientY-i.top+u.scrollTop(),o=r.find(".fp-context-menu").css({left:f+"px",top:e+"px",display:"block"}).on("click",function(n){n.stopPropagation()});n("html").on("click.outsidemenu",function(){o.hide();n("html").off("click.outsidemenu")})}).bind("flashdisabled",function(){r.addClass("is-flash-disabled").one("ready",function(){r.removeClass("is-flash-disabled").find(".fp-flash-disabled").remove()}).append('<div class="fp-flash-disabled">Adobe Flash is disabled for this page, click player area to enable.<\/div>')});e.poster&&r.css("backgroundImage","url("+e.poster+")");h=r.css("backgroundColor");y=r.css("backgroundImage")!="none"||h&&h!="rgba(0, 0, 0, 0)"&&h!="transparent";!y||e.splash||e.autoplay||t.bind("ready stop",function(){r.addClass("is-poster").one("progress",function(){r.removeClass("is-poster")})});!y&&t.forcedSplash&&r.css("backgroundColor","#555");n(".fp-toggle, .fp-play",r).click(t.toggle);n.each(["mute","fullscreen","unload"],function(n,i){u(i).click(function(){t[i]()})});d.bind("slide",function(n,i){t.seeking=!0;t.seek(i*t.video.duration)});nt.bind("slide",function(n,i){t.volume(i)});u("time").click(function(){n(this).toggleClass("is-inverted")});s(tt)});r="is-help";n(document).bind("keydown.fp",function(t){var i=y,e=t.ctrlKey||t.metaKey||t.altKey,u=t.which,f=i&&i.conf;if(i&&f.keyboard&&!i.disabled){if(n.inArray(u,[63,187,191])!=-1||u==27&&c.hasClass(r))return c.toggleClass(r),!1;if(!e&&i.ready){if(t.preventDefault(),t.shiftKey){u==39?i.speed(!0):u==37&&i.speed(!1);return}if(u<58&&u>47)return i.seekTo(u-48);switch(u){case 38:case 75:i.volume(i.volumeLevel+.15);break;case 40:case 74:i.volume(i.volumeLevel-.15);break;case 39:case 76:i.seeking=!0;i.seek(!0);break;case 37:case 72:i.seeking=!0;i.seek(!1);break;case 190:i.seekTo();break;case 32:i.toggle();break;case 70:f.fullscreen&&i.fullscreen();break;case 77:i.mute();break;case 81:i.unload()}}}});flowplayer(function(t,i){if(t.conf.keyboard){i.bind("mouseenter mouseleave",function(n){y=!t.disabled&&n.type=="mouseenter"?t:0;y&&(c=i)});var u=flowplayer.support.video&&t.conf.engine!=="flash"&&!!n("<video/>")[0].playbackRate?"<p><em>shift<\/em> + <em>←<\/em><em>→<\/em>slower / faster<\/p>":"";if(i.append(' <div class="fp-help"> <a class="fp-close"><\/a> <div class="fp-help-section fp-help-basics"> <p><em>space<\/em>play / pause<\/p> <p><em>q<\/em>unload | stop<\/p> <p><em>f<\/em>fullscreen<\/p>'+u+' <\/div> <div class="fp-help-section"> <p><em>↑<\/em><em>↓<\/em>volume<\/p> <p><em>m<\/em>mute<\/p> <\/div> <div class="fp-help-section"> <p><em>←<\/em><em>→<\/em>seek<\/p> <p><em> . <\/em>seek to previous <\/p><p><em>1<\/em><em>2<\/em>… <em>6<\/em> seek to 10%, 20% … 60% <\/p> <\/div> <\/div> '),t.conf.tooltip)n(".fp-ui",i).attr("title","Hit ? for help").on("mouseout.tip",function(){n(this).removeAttr("title").off("mouseout.tip")});n(".fp-close",i).click(function(){i.toggleClass(r)})}});var ot=n.browser.mozilla?"moz":"webkit",p="fullscreen",w="fullscreen-exit",u,l=flowplayer.support.fullscreen,vt=typeof document.exitFullscreen=="function",st=navigator.userAgent.toLowerCase(),b=/(safari)[ \/]([\w.]+)/.exec(st)&&!/(chrome)[ \/]([\w.]+)/.exec(st);n(document).bind("fullscreenchange webkitfullscreenchange mozfullscreenchange MSFullscreenChange",function(t){var i=n(document.webkitCurrentFullScreenElement||document.mozFullScreenElement||document.fullscreenElement||document.msFullscreenElement||t.target);i.length&&!u?u=i.trigger(p,[i]):(u.trigger(w,[u]),u=null)});flowplayer(function(t,i){var u,r,f,e;t.conf.fullscreen&&(u=n(window),r={apply:!1,pos:0,play:!1},t.isFullscreen=!1,t.fullscreen=function(e){if(!t.disabled){if(e===undefined&&(e=!t.isFullscreen),e&&(f=u.scrollTop()),(ot=="webkit"||b)&&t.engine=="flash"&&(r={apply:!0,pos:t.video.time,play:t.playing}),l)if(e){var o=i[0];n.each(["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"],function(n,t){if(typeof o[t]=="function")return o[t](Element.ALLOW_KEYBOARD_INPUT),!b||document.webkitCurrentFullScreenElement||document.mozFullScreenElement||o[t](),!1})}else n.each(["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"],function(n,t){if(typeof document[t]=="function")return document[t](),!1});else t.trigger(e?p:w,[t]);return t}},i.bind("mousedown.fs",function(){+new Date-e<150&&t.ready&&t.fullscreen();e=+new Date}),t.bind(p,function(){i.addClass("is-fullscreen");t.isFullscreen=!0}).bind(w,function(){var n;l||t.engine!=="html5"||(n=i.css("opacity")||"",i.css("opacity",0)
4);i.removeClass("is-fullscreen");l||t.engine!=="html5"||setTimeout(function(){i.css("opacity",n)});t.isFullscreen=!1;u.scrollTop(f)}).bind("ready",function(){if(r.apply){var i=function(){r.play||t.conf.live?t.resume():t.pause();n.extend(r,{pos:0,play:!1})};t.conf.live?i():t.conf.rtmp&&r.pos&&!isNaN(r.pos)?(t.resume(),t.seek(r.pos,i)):i()}}))});flowplayer(function(t,i){function e(){return n(r.query,i)}function h(){return n(r.query+"."+f,i)}var r=n.extend({active:"is-active",advance:!0,query:".fp-playlist a"},t.conf),f=r.active,o,u,s,c;if(t.play=function(i){if(i===undefined)return t.resume();if(typeof i!="number"||t.conf.playlist[i])typeof i!="number"&&t.load.apply(null,arguments);else return t;return t.unbind("resume.fromfirst"),t.video.index=i,t.load(typeof t.conf.playlist[i]=="string"?t.conf.playlist[i].toString():n.map(t.conf.playlist[i],function(t){return n.extend({},t)})),t},t.next=function(n){n&&n.preventDefault();var i=t.video.index;return i!=-1&&(i=i===t.conf.playlist.length-1?0:i+1,t.play(i)),t},t.prev=function(n){n&&n.preventDefault();var i=t.video.index;return i!=-1&&(i=i===0?t.conf.playlist.length-1:i-1,t.play(i)),t},n(".fp-next",i).click(t.next),n(".fp-prev",i).click(t.prev),r.advance&&i.unbind("finish.pl").bind("finish.pl",function(n,t){var u=t.video.index>=0?t.video.index+1:undefined;if(u<t.conf.playlist.length||r.loop)u=u===t.conf.playlist.length?0:u,i.removeClass("is-finished"),setTimeout(function(){t.play(u)});else if(i.addClass("is-playing"),t.conf.playlist.length>1)t.one("resume.fromfirst",function(){return t.play(0),!1})}),o=!1,t.conf.playlist.length&&(o=!0,u=i.find(".fp-playlist"),u.length||(u=n('<div class="fp-playlist"><\/div>'),s=n(".fp-next,.fp-prev",i),s.length?s.eq(0).before(u):n("video",i).after(u)),u.empty(),n.each(t.conf.playlist,function(t,i){var r,f;if(typeof i=="string")r=i;else for(f in i[0])if(i[0].hasOwnProperty(f)){r=i[0][f];break}u.append(n("<a />").attr({href:r,"data-index":t}))})),e().length){o||(t.conf.playlist=[],e().each(function(){var i=n(this).attr("href");n(this).attr("data-index",t.conf.playlist.length);t.conf.playlist.push(i)}));i.on("click",r.query,function(i){i.preventDefault();var f=n(i.target).closest(r.query),u=Number(f.attr("data-index"));u!=-1&&t.play(u)});c=e().filter("[data-cuepoints]").length;t.bind("load",function(r,u,e){var l=h().removeClass(f),a=l.attr("data-index"),o=e.index=t.video.index||0,v=n('a[data-index="'+o+'"]',i).addClass(f),s=o==t.conf.playlist.length-1;i.removeClass("video"+a).addClass("video"+o).toggleClass("last-video",s);e.index=u.video.index=o;e.is_last=u.video.is_last=s;c&&(t.cuepoints=v.data("cuepoints"))}).bind("unload.pl",function(){h().toggleClass(f)})}t.conf.playlist.length&&(t.conf.loop=!1)});ht=/ ?cue\d+ ?/;flowplayer(function(t,i){function u(n){i[0].className=i[0].className.replace(ht," ");n>=0&&i.addClass("cue"+n)}var r=0;t.cuepoints=t.conf.cuepoints||[];t.bind("progress",function(n,f,e){var h,s,o;if(r&&e-r<.015)return r=e;for(r=e,h=t.cuepoints||[],s=0;s<h.length;s++)o=h[s],isNaN(o)||(o={time:o}),o.time<0&&(o.time=t.video.duration+o.time),o.index=s,Math.abs(o.time-e)<.125*t.currentSpeed&&(u(s),i.trigger("cuepoint",[t,o]))}).bind("unload seek",u);t.conf.generate_cuepoints&&t.bind("load",function(){n(".fp-cuepoint",i).remove()}).bind("ready",function(){var u=t.cuepoints||[],r=t.video.duration,f=n(".fp-timeline",i).css("overflow","visible");n.each(u,function(i,u){var e=u.time||u,o;e<0&&(e=r+u);o=n("<a/>").addClass("fp-cuepoint fp-cuepoint"+i).css("left",e/r*100+"%");o.appendTo(f).mousedown(function(){return t.seek(e),!1})})})});flowplayer(function(t,i){function c(n){var t=n.split(":");return t.length==2&&t.unshift(0),t[0]*3600+t[1]*60+parseFloat(t[2].replace(",","."))}var u=n("track",i),s=t.conf,f,h,e,o,r;if(flowplayer.support.subtitles&&(t.subtitles=u.length&&u[0].track,s.nativesubtitles&&s.engine=="html5")){if(!t.subtitles)return;
4f=function(t){var r=n("video",i)[0].textTracks;r.length&&(r[0].mode=t)};f("disabled");t.one("ready",function(){t.conf.splash&&n("video.fp-engine",i).append(n("<track />").attr({kind:"subtitles",srclang:t.subtitles.language||"en",label:t.subtitles.language||"en",src:u.attr("src")}));f("disabled");f("showing")});return}(u.remove(),h=/^(([0-9]{2}:){1,2}[0-9]{2}[,.][0-9]{3}) --\> (([0-9]{2}:){1,2}[0-9]{2}[,.][0-9]{3})(.*)/,t.subtitles=[],e=u.attr("src"),e)&&(setTimeout(function(){n.get(e,function(i){for(var r=0,u=i.split("\n"),a=u.length,f={},o,e,s,l;r<a;r++)if(e=h.exec(u[r]),e){for(o=u[r-1],s="<p>"+u[++r]+"<\/p><br/>";n.trim(u[++r])&&r<u.length;)s+="<p>"+u[r]+"<\/p><br/>";f={title:o,startTime:c(e[1]),endTime:c(e[3]),text:s};l={time:f.startTime,subtitle:f};t.subtitles.push(f);t.cuepoints.push(l);t.cuepoints.push({time:f.endTime,subtitleEnd:o});f.startTime===0&&t.trigger("cuepoint",l)}}).fail(function(){return t.trigger("error",{code:8,url:e}),!1})}),o=n("<div class='fp-subtitle'/>").appendTo(i),t.bind("cuepoint",function(n,t,i){i.subtitle?(r=i.index,o.html(i.subtitle.text).addClass("fp-active")):i.subtitleEnd&&(o.removeClass("fp-active"),r=i.index)}).bind("seek",function(i,u,f){r&&t.cuepoints[r]&&t.cuepoints[r].time>f&&(o.removeClass("fp-active"),r=null);n.each(t.cuepoints||[],function(n,i){var u=i.subtitle;u&&r!=i.index?f>=i.time&&(!u.endTime||f<=u.endTime)&&t.trigger("cuepoint",i):i.subtitleEnd&&f>=i.time&&i.index==r+1&&t.trigger("cuepoint",i)})}))});flowplayer(function(t,i){var f=t.conf.analytics,r=0,u=0;if(f){typeof _gat=="undefined"&&n.getScript("//google-analytics.com/ga.js");function e(){if(r&&typeof _gat!="undefined"){var n=_gat._getTracker(f),u=t.video;n._setAllowLinker(!0);n._trackEvent("Video / Seconds played",t.engine+"/"+u.type,i.attr("title")||u.src.split("/").slice(-1)[0].replace(s,""),Math.round(r/1e3));r=0}}t.bind("load unload",e).bind("progress",function(){t.seeking||(r+=u?+new Date-u:0,u=+new Date)}).bind("pause",function(){u=0});n(window).unload(e)}});k=/IEMobile/.test(t);(flowplayer.support.touch||k)&&flowplayer(function(r,u){var s=/Android/.test(t)&&!/Firefox/.test(t)&&!/Opera/.test(t),l=/Silk/.test(t),a=s?parseFloat(/Android\ ((\d+\.\d+)|\d+)/.exec(t)[1],10):0,c,e,f,h,o;s&&(!/Chrome/.test(t)&&a<4&&(c=r.load,r.load=function(){var n=c.apply(r,arguments);return r.trigger("ready",[r,r.video]),n}),f=0,h=function(n){e=setInterval(function(){n.video.time=++f;n.trigger("progress",f)},1e3)},r.bind("ready pause unload",function(){e&&(clearInterval(e),e=null)}),r.bind("ready",function(){f=0}),r.bind("resume",function(n,t){if(t.live){if(f)return h(t);r.one("progress",function(n,t,i){i===0&&h(t)})}}));flowplayer.support.volume||u.addClass("no-volume no-mute");u.addClass("is-touch");u.find(".fp-timeline").data("api").disableAnimation();(!flowplayer.support.inlineVideo||r.conf.native_fullscreen)&&(r.conf.nativesubtitles=!0);o=!1;u.bind("touchmove",function(){o=!0}).bind("touchend click",function(){if(o){o=!1;return}if(r.playing&&!u.hasClass("is-mouseover"))return u.addClass("is-mouseover").removeClass("is-mouseout"),!1;r.paused&&u.hasClass("is-mouseout")&&!r.splash&&r.toggle();r.paused&&k&&n("video.fp-engine",u)[0].play()});r.conf.native_fullscreen&&typeof n("<video />")[0].webkitEnterFullScreen=="function"&&(r.fullscreen=function(){var t=n("video.fp-engine",u);t[0].webkitEnterFullScreen();t.one("webkitendfullscreen",function(){t.prop("controls",!0).prop("controls",!1)})});(s||l)&&r.bind("ready",function(){var t=n("video.fp-engine",u);t.one("canplay",function(){t[0].play()});t[0].play();r.bind("progress.dur",function(){var f=t[0].duration;f!==1&&(r.video.duration=f,n(".fp-duration",u).html(i(f)),r.unbind("progress.dur"))})})});flowplayer(function(t,i){if(t.conf.embed!==!1){var r=t.conf,f=n(".fp-ui",i),e=n("<a/>",{"class":"fp-embed",title:"Copy to your site"}).appendTo(f),o=n("<div/>",{"class":"fp-embed-code"}).append("<label>Paste this HTML code on your site to embed.<\/label><textarea/>").appendTo(f),u=n("textarea",o);t.embedCode=function(){var e=t.video,s=e.width||i.width(),h=e.height||i.height(),f=n("<div/>",{"class":"flowplayer",css:{width:s,height:h}}),c=n("<video/>").appendTo(f),u,o;return n.each(["origin","analytics","key","rtmp","subscribe","bufferTime"],function(n,t){r.hasOwnProperty(t)&&f.attr("data-"+t,r[t])}),r.logo&&f.attr("data-logo",n("<img />").attr("src",r.logo)[0].src),n.each(e.sources,function(t,i){var u=i.src;(/^https?:/.test(i.src)||i.type==="flash")&&r.rtmp||(u=n("<img/>").attr("src",i.src)[0].src);c.append(n("<source/>",{type:i.type!="mpegurl"?"video/"+i.type:"application/x-mpegurl",src:u}))}),u={src:"//embed.flowplayer.org/5.5.2/embed.min.js"},n.isPlainObject(r.embed)&&(u["data-swf"]=r.embed.swf,u["data-library"]=r.embed.library,u.src=r.embed.script||u.src,r.embed.skin&&(u["data-skin"]=r.embed.skin)),o=n("<foo/>",u).append(f),n("<p/>").append(o).html().replace(/<(\/?)foo/g,"<$1script")};i.fptip(".fp-embed","is-embedding");u.click(function(){this.select()});e.click(function(){u.text(t.embedCode());u[0].focus();u[0].select()})}});n.fn.fptip=function(t,i){return this.each(function(){function u(){r.removeClass(i);n(document).unbind(".st")}var r=n(this);n(t||"a",this).click(function(t){t.preventDefault();r.toggleClass(i);r.hasClass(i)&&n(document).bind("keydown.st",function(n){n.which==27&&u()}).bind("click.st",function(t){n(t.target).parents("."+i).length||u()})})})}}(jQuery);flowplayer(function(n,t){function h(n){var t=i("<a/>")[0];return t.href=n,t.hostname}
4var i=jQuery,r=n.conf,u=r.swf.indexOf("flowplayer.org")&&r.e&&t.data("origin"),o=u?h(u):location.hostname,f=r.key,e,s;("file:"==location.protocol&&(o="localhost"),n.load.ed=1,r.hostname=o,r.origin=u||location.href,u&&t.addClass("is-embedded"),"string"==typeof f&&(f=f.split(/,\s*/)),f&&"function"==typeof key_check&&key_check(f,o))?r.logo&&t.append(i("<a>",{"class":"fp-logo",href:u}).append(i("<img/>",{src:r.logo}))):(e=i("<a/>").attr("href","https://flowplayer.org").appendTo(t),i(".fp-controls",t),s=i('<div class="fp-context-menu"><ul><li class="copyright">© 2014<\/li><li><a href="https://flowplayer.org">About Flowplayer<\/a><\/li><li><a href="https://flowplayer.org/license">GPL based license<\/a><\/li><\/ul><\/div>').appendTo(t),n.bind("pause resume finish unload",function(n,r){var u=-1;r.video.src&&i.each([["org","flowplayer","drive"],["org","flowplayer","my"]],function(n,t){return u=r.video.src.indexOf("://"+t.reverse().join(".")),-1===u});/pause|resume/.test(n.type)&&"flash"!=r.engine&&4!=u&&5!=u?(e.show().css({position:"absolute",left:16,bottom:36,zIndex:99999,width:100,height:20,backgroundImage:"url("+[".png","logo","/",".net",".cloudfront","d32wqyuo10o653","//"].reverse().join("")+")"}),r.load.ed=e.is(":visible")&&i.contains(t[0],s[0]),r.load.ed||r.pause()):e.hide()}))});__pendingCallbacks=[];__synchronousCallBackIndex=-1;var __nonMSDOMBrowser=window.navigator.appName.toLowerCase().indexOf("explorer")==-1,__theFormPostData="",__theFormPostCollection=[],__callbackTextTypes=/^(text|password|hidden|search|tel|url|email|number|range|c
4olor|datetime|date|month|week|time|datetime-local)$/i;__disabledControlArray=[];var Page_ValidationVer="125",Page_IsValid=!0,Page_BlockSubmit=!1,Page_InvalidControlToBeFocused=null,Page_TextTypes=/^(text|password|file|search|tel|url|email|number|range|color|datetime|date|month|week|time|datetime-local)$/i;window.jQuery&&function(n){function o(n,t){var r,i,u={},f=n.attributes,o=f.length,e=t.length;for(t=t.toLowerCase(),r=0;r<o;r++)i=f[r],i.specified&&i.name.substr(0,e).toLowerCase()===t&&(u[i.name.substr(e)]=i.value);return u}function s(n){return n=n.toLowerCase(),i[n]===undefined?n:i[n]}function h(t){var i=o(t,u+"-");n.each(i,function(n,i){t[s(n)]=i})}function c(t){var i=n.inArray(t,Page_Validators);i>=0&&Page_Validators.splice(i,1)}function l(n,t){i[n.toLowerCase()]=t}function f(t,i,r){return n(t).find("["+i+"='true']").each(function(t,i){h(i);i.dispose=function(){c(i);i.dispose=null};n.inArray(i,r)===-1&&r.push(i)}).length}function t(n){var t=f(n,u,Page_Validators);return t+f(n,e,Page_ValidationSummaries)}function r(){typeof ValidatorOnLoad=="function"&&ValidatorOnLoad();typeof ValidatorOnSubmit=="undefined"&&(window.ValidatorOnSubmit=function(){return Page_ValidationActive?ValidatorCommonOnSubmit():!0})}function a(){if(window.Sys&&Sys.WebForms&&Sys.WebForms.PageRequestManager){var n=Sys.WebForms.PageRequestManager.getInstance(),u,i;n.get_isInAsyncPostBack()&&(i=function(){t(document)&&r();n.remove_endRequest(i);i=null},n.add_endRequest(i));n.add_beginRequest(function(n,t){u=t.get_postBackElement()});n.add_pageLoaded(function(n,i){var f,e,o=0;if(typeof u!="undefined"){for(e=i.get_panelsUpdated(),f=0;f<e.length;f++)o+=t(e[f]);for(e=i.get_panelsCreated(),f=0;f<e.length;f++)o+=t(e[f]);o&&r()}})}}var u="data-val",e="data-valsummary",i={validationgroup:"validationGroup",focusonerror:"focusOnError"};n(function(){typeof Page_Validators=="undefined"&&(window.Page_Validators=[]);typeof Page_ValidationSummaries=="undefined"&&(window.Page_ValidationSummaries=[]);typeof Page_ValidationActive=="undefined"&&(window.Page_ValidationActive=!1);n.WebFormValidator={addNormalizedAttribute:l,parse:t};t(document)&&r();a()})}(jQuery);window.Sys||(window.Sys={});Sys.WebForms||(Sys.WebForms={});Sys.WebForms.Menu=function(n){var u,f,s,t,e,o,i,r;for(this.items=[],this.depth=n.depth||1,this.parentMenuItem=n.parentMenuItem,this.element=Sys.WebForms.Menu._domHelper.getElement(n.element),this.element.tagName==="DIV"?(u=this.element,this.element=Sys.WebForms.Menu._domHelper.firstChild(u),this.element.tabIndex=n.tabIndex||0,n.element=u,n.menu=this,this.container=new Sys.WebForms._MenuContainer(n),Sys.WebForms.Menu._domHelper.setFloat(this.element,this.container.rightToLeft?"right":"left")):(this.container=n.container,this.keyMap=n.keyMap),Sys.WebForms.Menu._elementObjectMapper.map(this.element,this),this.parentMenuItem&&this.parentMenuItem.parentMenu&&(this.parentMenu=this.parentMenuItem.parentMenu,this.rootMenu=this.parentMenu.rootMenu,this.element.id||(this.element.id=(this.container.element.id||"menu")+":submenu:"+Sys.WebForms.Menu._elementObjectMapper._computedId),this.depth>this.container.staticDisplayLevels?(this.displayMode="dynamic",this.element.style.display="none",this.element.style.position="absolute",this.rootMenu&&this.container.orientation==="horizontal"&&this.parentMenu.isStatic()?(this.element.style.top="100%",this.container.rightToLeft?this.element.style.right="0px":this.element.style.left="0px"):(this.element.style.top="0px",this.container.rightToLeft?this.element.style.right="100%":this.element.style.left="100%"),this.keyMap=this.container.rightToLeft?Sys.WebForms.Menu._keyboardMapping.verticalRtl:Sys.WebForms.Menu._keyboardMapping.vertical):(this.displayMode="static",this.element.style.display="block",this.container.orientation==="horizontal"&&Sys.WebForms.Menu._domHelper.setFloat(this.element,this.container.rightToLeft?"right":"left"))),Sys.WebForms.Menu._domHelper.appendCssClass(this.element,this.displayMode),f=this.element.childNodes,s=f.length,t=0;t<s;t++)(e=f[t],e.nodeType===1)&&(o=null,this.parentMenuItem&&(o=this.parentMenuItem.topLevelMenuItem),i=new Sys.WebForms.MenuItem(this,e,o),r=this.items[this.items.length-1],r&&(i.previousSibling=r,r.nextSibling=i),this.items[this.items.length]=i)};Sys.WebForms.Menu.prototype={blur:function(){this.container&&this.container.blur()},collapse:function(){this.each(function(n){n.hover(!1);n.blur();var t=n.childMenu;t&&t.collapse()});this.hide()},doDispose:function(){this.each(function(n){n.doDispose()})},each:function(n){for(var i=this.items.length,t=0;t<i;t++)n(this.items[t])},firstChild:function(){return this.items[0]},focus:function(){this.container&&this.container.focus()},get_displayed:function(){return this.element.style.display!=="none"},get_focused:function(){return this.container?this.container.focused:!1},handleKeyPress:function(n){if(this.keyMap.contains(n)){if(this.container.focusedMenuItem){this.container.focusedMenuItem.navigate(n);return}var t=this.firstChild();t&&this.container.navigateTo(t)}},hide:function(){this.get_displayed()&&(this.each(function(n){n.childMenu&&n.childMenu.hide()}),this.isRoot()||(this.get_focused()&&this.container.navigateTo(this.parentMenuItem),this.element.style.display="none"))},isRoot:function(){return this.rootMenu===this},isStatic:function(){return this.displayMode==="static"},lastChild:function(){return this.items[this.items.length-1]},show:function(){this.element.style.display="block"}};Sys.WebForms.Menu.registerClass&&Sys.WebForms.Menu.registerClass("Sys.WebForms.Menu");Sys.WebForms.MenuItem=function(n,t,i){for(this.keyMap=n.keyMap,this.parentMenu=n,this.container=n.container,this.element=t,this.topLevelMenuItem=i||this,this._anchor=Sys.WebForms.Menu._domHelper.firstChild(t);this._anchor&&this._anchor.tagName!=="A";)this._anchor=Sys.WebForms.Menu._domHelper.nextSibling(this._anchor);if(this._anchor){this._anchor.tabIndex=-1;for(var r=this._anchor;r&&r.tagName!=="UL";)r=Sys.WebForms.Menu._domHelper.nextSibling(r);r&&(this.childMenu=new Sys.WebForms.Menu({element:r,parentMenuItem:this,depth:n.depth+1,container:this.container,keyMap:this.keyMap}),this.childMenu.isStatic()||(Sys.WebForms.Menu._domHelper.appendCssClass(this.element,"has-popup"),Sys.WebForms.Menu._domHelper.appendAttributeValue(this.element,"aria-haspopup",this.childMenu.element.i
4d)))}Sys.WebForms.Menu._elementObjectMapper.map(t,this);Sys.WebForms.Menu._domHelper.appendAttributeValue(t,"role","menuitem");Sys.WebForms.Menu._domHelper.appendCssClass(t,n.displayMode);this._anchor&&Sys.WebForms.Menu._domHelper.appendCssClass(this._anchor,n.displayMode);this.element.style.position="relative";this.parentMenu.depth==1&&this.container.orientation=="horizontal"&&Sys.WebForms.Menu._domHelper.setFloat(this.element,this.container.rightToLeft?"right":"left");this.container.disabled||(Sys.WebForms.Menu._domHelper.addEvent(this.element,"mouseover",Sys.WebForms.MenuItem._onmouseover),Sys.WebForms.Menu._domHelper.addEvent(this.element,"mouseout",Sys.WebForms.MenuItem._onmouseout))};Sys.WebForms.MenuItem.prototype={applyUp:function(n,t){t=t||function(n){return n};for(var i=this,r=null;t(i);)n(i),r=i,i=i.parentMenu.parentMenuItem;return r},blur:function(){this.setTabIndex(-1)},doDispose:function(){Sys.WebForms.Menu._domHelper.removeEvent(this.element,"mouseover",Sys.WebForms.MenuItem._onmouseover);Sys.WebForms.Menu._domHelper.removeEvent(this.element,"mouseout",Sys.WebForms.MenuItem._onmouseout);this.childMenu&&this.childMenu.doDispose()},focus:function(){this.parentMenu.get_displayed()||this.parentMenu.show();this.setTabIndex(0);this.container.focused=!0;this._anchor.focus()},get_highlighted:function(){return/(^|\s)highlighted(\s|$)/.test(this._anchor.className)},getTabIndex:function(){return this._anchor.tabIndex},highlight:function(n){n?(this.applyUp(function(n){n.parentMenu.parentMenuItem.highlight(!0)},function(n){return!n.parentMenu.isStatic()&&n.parentMenu.parentMenuItem}),Sys.WebForms.Menu._domHelper.appendCssClass(this._anchor,"highlighted")):(Sys.WebForms.Menu._domHelper.removeCssClass(this._anchor,"highlighted"),this.setTabIndex(-1))},hover:function(n){var r,i,t;if(n)r=this.container.hoveredMenuItem,r&&r.hover(!1),i=this.container.focusedMenuItem,i&&i!==this&&i.hover(!1),this.applyUp(function(n){n.childMenu&&!n.childMenu.get_displayed()&&n.childMenu.show()}),this.container.hoveredMenuItem=this,this.highlight(!0);else for(t=this;t;)t.highlight(!1),t.childMenu&&(t.childMenu.isStatic()||t.childMenu.hide()),t=t.parentMenu.parentMenuItem},isSiblingOf:function(n){return n.parentMenu===this.parentMenu},mouseout:function(){var i=this,n=this.container.pendingMouseoutId,t=this.container.disappearAfter;n&&window.clearTimeout(n);t>-1&&(this.container.pendingMouseoutId=window.setTimeout(function(){i.hover(!1)},t))},mouseover:function(){var n=this.container.pendingMouseoutId;n&&(window.clearTimeout(n),this.container.pendingMouseoutId=null);this.hover(!0);this.container.menu.get_focused()&&this.container.navigateTo(this)},navigate:function(n){switch(this.keyMap[n]){case this.keyMap.next:this.navigateNext();break;case this.keyMap.previous:this.navigatePrevious();break;case this.keyMap.child:this.navigateChild();break;case this.keyMap.parent:this.navigateParent();break;case this.keyMap.tab:this.navigateOut()}},navigateChild:function(){var i=this.childMenu,t,n;if(i)t=i.firstChild(),t&&this.container.navigateTo(t);else if(this.container.orientation==="horizontal"){if(n=this.topLevelMenuItem.nextSibling||this.topLevelMenuItem.parentMenu.firstChild(),n==this.topLevelMenuItem)return;this.topLevelMenuItem.childMenu.hide();this.container.navigateTo(n);n.childMenu&&this.container.navigateTo(n.childMenu.firstChild())}},navigateNext:function(){this.childMenu&&this.childMenu.hide();var n=this.nextSibling;!n&&this.parentMenu.isRoot()&&(n=this.parentMenu.parentMenuItem,n&&(n=n.nextSibling));n||(n=this.parentMenu.firstChild());n&&this.container.navigateTo(n)},navigateOut:function(){this.parentMenu.blur()},navigateParent:function(){var t=this.parentMenu,i=this.container.orientation==="horizontal",n;if(t){if(i&&this.childMenu&&t.isRoot()){this.navigateChild();return}t.parentMenuItem&&!t.isRoot()&&(i&&this.parentMenu.depth===2?(n=this.parentMenu.parentMenuItem.previousSibling,n||(n=this.parentMenu.rootMenu.lastChild()),this.topLevelMenuItem.childMenu.hide(),this.container.navigateTo(n),n.childMenu&&this.container.navigateTo(n.childMenu.firstChild())):this.parentMenu.hide())}},navigatePrevious:function(){var n,t;this.childMenu&&this.childMenu.hide();n=this.previousSibling;n&&(t=n.childMenu,t&&t.isRoot()&&(n=t.lastChild()));!n&&this.parentMenu.isRoot()&&(n=this.parentMenu.parentMenuItem);n||(n=this.parentMenu.lastChild());n&&this.container.navigateTo(n)},setTabIndex:function(n){this._anchor&&(this._anchor.tabIndex=n)}};Sys.WebForms.MenuItem._onmouseout=function(n){var t=Sys.WebForms.Menu._elementObjectMapper.getMappedObject(this);t&&(t.mouseout(),Sys.WebForms.Menu._domHelper.cancelEvent(n))};Sys.WebForms.MenuItem._onmouseover=function(n){var t=Sys.WebForms.Menu._elementObjectMapper.getMappedObject(this);t&&(t.mouseover(),Sys.WebForms.Menu._domHelper.cancelEvent(n))};Sys.WebForms.Menu._domHelper={addEvent:function(n,t,i,r){n.addEventListener?n.addEventListener(t,i,!!r):n["on"+t]=i},appendAttributeValue:function(n,t,i){this.updateAttributeValue("append",n,t,i)},appendCssClass:function(n,t){this.updateClassName("append",n,name,t)},appendString:function(n,t,i){var r=n(),u;if(!r){t(i);return}(u=this._regexes.getRegex("(^| )"+i+"($| )"),u.test(r))||t(r+" "+i)},cancelEvent:function(n){var t=n||window.event;t&&(t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation())},contains:function(n,t){for(;t&&t!==n;t=t.parentNode);return!!t},firstChild:function(n){var t=n.firstChild;return t&&t.nodeType!==1&&(t=this.nextSibling(t)),t},getElement:function(n){return typeof n=="string"?document.getElementById(n):n},getElementDirection:function(n){return n?n.dir?n.dir:this.getElementDirection(n.parentNode):"ltr"}
4,getKeyCode:function(n){return n.keyCode||n.charCode||0},insertAfter:function(n,t){var i=n.nextSibling;i?n.parentNode.insertBefore(t,i):n.parentNode&&n.parentNode.appendChild(t)},nextSibling:function(n){for(var t=n.nextSibling;t;){if(t.nodeType===1)return t;t=t.nextSibling}},removeAttributeValue:function(n,t,i){this.updateAttributeValue("remove",n,t,i)},removeCssClass:function(n,t){this.updateClassName("remove",n,name,t)},removeEvent:function(n,t,i,r){n.removeEventListener?n.removeEventListener(t,i,!!r):n.detachEvent&&n.detachEvent("on"+t,i);n["on"+t]=null},removeString:function(n,t,i){var r=n(),u;r&&(u=this._regexes.getRegex("(\\s|\\b)"+i+"$|\\b"+i+"\\s+"),t(r.replace(u,"")))},setFloat:function(n,t){n.style.styleFloat=t;n.style.cssFloat=t},updateAttributeValue:function(n,t,i,r){this[n+"String"](function(){return t.getAttribute(i)},function(n){t.setAttribute(i,n)},r)},updateClassName:function(n,t,i,r){this[n+"String"](function(){return t.className},function(n){t.className=n},r)},_regexes:{getRegex:function(n){var t=this[n];return t||(this[n]=t=new RegExp(n)),t}}};Sys.WebForms.Menu._elementObjectMapper={_computedId:0,_mappings:{},_mappingIdName:"Sys.WebForms.Menu.Mapping",getMappedObject:function(n){var t=n[this._mappingIdName];if(t)return this._mappings[this._mappingIdName+":"+t]},map:function(n,t){var r=n[this._mappingIdName],i;r!==t&&(i=n[this._mappingIdName]||n.id||"%"+ ++this._computedId,n[this._mappingIdName]=i,this._mappings[this._mappingIdName+":"+i]=t,t.mappingId=i)}};Sys.WebForms.Menu._keyboardMapping=new function(){var n=37,t=38,i=39,r=40,u=9,f=27;this.vertical={next:0,previous:1,child:2,parent:3,tab:4};this.vertical[r]=this.vertical.next;this.vertical[t]=this.vertical.previous;this.vertical[i]=this.vertical.child;this.vertical[n]=this.vertical.parent;this.vertical[u]=this.vertical[f]=this.vertical.tab;this.verticalRtl={next:0,previous:1,child:2,parent:3,tab:4};this.verticalRtl[r]=this.verticalRtl.next;this.verticalRtl[t]=this.verticalRtl.previous;this.verticalRtl[n]=this.verticalRtl.child;this.verticalRtl[i]=this.verticalRtl.parent;this.verticalRtl[u]=this.verticalRtl[f]=this.verticalRtl.tab;this.horizontal={next:0,previous:1,child:2,parent:3,tab:4};this.horizontal[i]=this.horizontal.next;this.horizontal[n]=this.horizontal.previous;this.horizontal[r]=this.horizontal.child;this.horizontal[t]=this.horizontal.parent;this.horizontal[u]=this.horizontal[f]=this.horizontal.tab;this.horizontalRtl={next:0,previous:1,child:2,parent:3,tab:4};this.horizontalRtl[i]=this.horizontalRtl.previous;this.horizontalRtl[n]=this.horizontalRtl.next;this.horizontalRtl[r]=this.horizontalRtl.child;this.horizontalRtl[t]=this.horizontalRtl.parent;this.horizontalRtl[u]=this.horizontalRtl[f]=this.horizontalRtl.tab;this.horizontal.contains=this.horizontalRtl.contains=this.vertical.contains=this.verticalRtl.contains=function(n){return this[n]!=null}};Sys.WebForms._MenuContainer=function(n){var i,t;this.focused=!1;this.disabled=n.disabled;this.staticDisplayLevels=n.staticDisplayLevels||1;this.element=n.element;this.orientation=n.orientation||"vertical";this.disappearAfter=n.disappearAfter;this.rightToLeft=Sys.WebForms.Menu._domHelper.getElementDirection(this.element)==="rtl";Sys.WebForms.Menu._elementObjectMapper.map(this.element,this);this.menu=n.menu;this.menu.rootMenu=this.menu;this.menu.displayMode="static";this.menu.element.style.position="relative";this.menu.element.style.width="auto";this.orientation==="vertical"?(Sys.WebForms.Menu._domHelper.appendAttributeValue(this.menu.element,"role","menu"),this.menu.keyMap=this.rightToLeft?Sys.WebForms.Menu._keyboardMapping.verticalRtl:Sys.WebForms.Menu._keyboardMapping.vertical):(Sys.WebForms.Menu._domHelper.appendAttributeValue(this.menu.element,"role","menubar"),this.menu.keyMap=this.rightToLeft?Sys.WebForms.Menu._keyboardMapping.horizontalRtl:Sys.WebForms.Menu._keyboardMapping.horizontal);i=document.createElement("div");i.style.clear=this.rightToLeft?"right":"left";this.element.appendChild(i);Sys.WebForms.Menu._domHelper.setFloat(this.element,this.rightToLeft?"right":"left");Sys.WebForms.Menu._domHelper.insertAfter(this.element,i);this.disabled||(Sys.WebForms.Menu._domHelper.addEvent(this.menu.element,"focus",this._onfocus,!0),Sys.WebForms.Menu._domHelper.addEvent(this.menu.element,"keydown",this._onkeydown),t=this,this.element.dispose=function(){t.element.dispose&&(t.element.dispose=null,Sys.WebForms.Menu._domHelper.removeEvent(t.menu.element,"focus",t._onfocus,!0),Sys.WebForms.Menu._domHelper.removeEvent(t.menu.element,"keydown",t._onkeydown),t.menu.doDispose())},Sys.WebForms.Menu._domHelper.addEvent(window,"unload",function(){t.element.dispose&&t.element.dispose()}))};Sys.WebForms._MenuContainer.prototype={blur:function(){this.focused=!1;this.isBlurring=!1;this.menu.collapse();this.focusedMenuItem=null},focus:function(){this.focused=!0},navigateTo:function(n){this.focusedMenuItem&&this.focusedMenuItem!==this&&this.focusedMenuItem.highlight(!1);n.highlight(!0);n.focus();this.focusedMenuItem=n},_onfocus:function(n){var t=n||window.event;t.srcElement&&this&&Sys.WebForms.Menu._domHelper.contains(this.element,t.srcElement)&&(this.focused||this.focus())},_onkeydown:function(n){var t=Sys.WebForms.Menu._elementObjectMapper.getMappedObject(this),i=Sys.WebForms.Menu._domHelper.getKeyCode(n||window.event);t&&t.handleKeyPress(i)}};__wpm=null;responsive={};callonresize=[];jQuery(document).ready(function(){InitResponsive();InitTableRowClasses();InitTableScroll();AdjustInputs();AdjustVideoIframes();InitElementHiding();InitMenu("#menu");InitMenu("#sidemenu",!0);InitMenu("#mobmenu",!0);headerSlider();accordion();transparencyAccordion();paddingTop();ToggleScrollToTopVisibility("#pcScrollToTop");InitFixedMobileHeader();usingMouse();mainMenuPreventDefault();weatherTooltip();Filter();clearFilter();TopFilterSearch();dropDown();searchParam();innerSwiper();Compare();catalogSlider();jQuery(".section-news-categories .news-item").matchHeight({byRow:!0}
4)});jQuery(window).bind("load",function(){InitResponsiveScripts()});jQuery(window).bind("focus",function(){InitResponsiveScripts()});$(window).on("load",function(){InitListImageHeightsDelayed(300);InitRowHeightsDelayed(350);InitIE10PlaceholderFix()});window.onscroll=function(){scrollFunction();progressBar()};window.onresize=function(){paddingTop()};window.addEventListener("load",PathScroll);window.addEventListener("resize",PathScroll);window.addEventListener("orientationchange",PathScroll);window.onresize=function(){for(var n=0;n<callonresize.length;n++)callonresize[n]&&callonresize[n]()};heightTimeoutLength=0;heightTimeoutMaxLength=8e3,function(n){function i(n){jQuery(t).each(function(){jQuery(n.target).closest(this).length==0&&jQuery.fn.message.RemoveMessage(n.data.settings,this)})}function r(n){var t=jQuery('<div class="message"><div class="message-main typ"><p><\/p><div class="cart-template-input"><input type="text"><\/div><ul class="message-buttons cf"><li class="msg-reset"><a href="javascript:void(0)"><span><\/span><\/a><\/li><li class="msg-submit"><a href="javascript:void(0)"><span><\/span><\/a><\/li><\/ul><\/div><div class="message-bottom"><\/div><a class="message-close"><\/a><\/div>');return jQuery(t).find(".message-close").html(n.closeText),jQuery(t).find(".message-main p").html(n.content),n.cartTemplateInput||jQuery(t).find(".cart-template-input").remove(),n.confirmation?(jQuery(t).find(".msg-submit a").append(n.confirmText),n.cancelText?jQuery(t).find(".msg-reset a").append(n.cancelText):jQuery(t).find(".msg-reset a").hide(),n.onConfirm&&jQuery(t).find(".msg-submit").click(function(){n.onConfirm(n,t)}),n.onCancel&&jQuery(t).find(".msg-reset").click(function(){n.onCancel(n,t)})):jQuery(t).find(".message-buttons").remove(),jQuery(t).show(),jQuery(t).find(".message-close").click(function(){jQuery.fn.message.RemoveMessage(n,t)}),t}var t=[];n.fn.message=function(u){var f=n.extend({content:"",cartTemplateInput:!1,confirmation:!1,confirmText:"Da",cancelText:"Ne",closeText:"Zatvori",timeoutLength:0,onConfirm:function(){},onCancel:function(n,t){jQuery.fn.message.RemoveMessage(n,t)},onRemove:function(n,t){t.remove()}},u);return jQuery(document).off("click",i),this.each(function(){var n=r(f),i=jQuery(this).append(n);jQuery(i).find(".message").show();t.push(n);f.timeoutLength>0&&setTimeout(function(){jQuery.fn.message.RemoveMessage(f,n)},f.timeoutLength)}),setTimeout(function(){jQuery(document).on("click",{settings:f},i)},100),t};jQuery.fn.message.RemoveMessage=function(n,i){function r(n){var i=t.indexOf(n);i!=-1&&t.splice(i,1)}if(i?(jQuery(i).remove(),r(i)):jQuery(t).each(function(){jQuery(this).remove();r(this)}),n&&n.onRemove)n.onRemove(n,i)};jQuery.fn.swapWith=function(t){return this.each(function(){var i=n(t).clone(!0),r=n(this).clone(!0);n(t).replaceWith(r);n(this).replaceWith(i)})}}(jQuery);parseUri.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}}; 5/*! WOW wow.js - v1.3.0 - 2016-10-04 6 * https://wowjs.uk 7 * Copyright (c) 2016 Thomas Grainger; Licensed MIT */ 8!function(n,t){if("function"==typeof define&&define.amd)define(["module","exports"],t);else if("undefined"!=typeof exports)t(module,exports);else{var i={exports:{}};t(i,i.exports);n.WOW=i.exports}}(this,function(n,t){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){return t.indexOf(n)>=0}function l(n,t){var i,r;for(i in t)null==n[i]&&(r=t[i],n[i]=r);return n}function a(n){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n)}function v(n){var i=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],r=arguments.length<=2||void 0===arguments[2]?!1:arguments[2],u=arguments.length<=3||void 0===arguments[3]?null:arguments[3],t=void 0;return null!=document.createEvent?(t=document.createEvent("CustomEvent"),t.initCustomEvent(n,i,r,u)):null!=document.createEventObject?(t=document.createEventObject(),t.eventType=n):t.eventName=n,t}function y(n,t){null!=n.dispatchEvent?n.dispatchEvent(t):t in(null!=n)?n[t]():"on"+t in(null!=n)&&n["on"+t]()}function i(n,t,i){null!=n.addEventListener?n.addEventListener(t,i,!1):null!=n.attachEvent?n.attachEvent("on"+t,i):n[t]=i}function e(n,t,i){null!=n.removeEventListener?n.removeEventListener(t,i,!1):null!=n.detachEvent?n.detachEvent("on"+t,i):delete n[t]}function p(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight}
8Object.defineProperty(t,"__esModule",{value:!0});var o,s,u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),w=window.WeakMap||window.MozWeakMap||function(){function n(){r(this,n);this.keys=[];this.values=[]}return u(n,[{key:"get",value:function(n){for(var i,t=0;t<this.keys.length;t++)if(i=this.keys[t],i===n)return this.values[t]}},{key:"set",value:function(n,t){for(var r,i=0;i<this.keys.length;i++)if(r=this.keys[i],r===n)return this.values[i]=t,this;return this.keys.push(n),this.values.push(t),this}},]),n}(),h=window.MutationObserver||window.WebkitMutationObserver||window.MozMutationObserver||(s=o=function(){function n(){r(this,n);"undefined"!=typeof console&&null!==console&&(console.warn("MutationObserver is not supported by your browser."),console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content."))}return u(n,[{key:"observe",value:function(){}}]),n}(),o.notSupported=!0,s),c=window.getComputedStyle||function(n){var t=/(\-([a-z]){1})/g;return{getPropertyValue:function(i){"float"===i&&(i="styleFloat");t.test(i)&&i.replace(t,function(n,t){return t.toUpperCase()});var r=n.currentStyle;return(null!=r?r[i]:void 0)||null}}},b=function(){function n(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];r(this,n);this.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null,resetAnimation:!0};this.animate=function(){return"requestAnimationFrame"in window?function(n){return window.requestAnimationFrame(n)}:function(n){return n()}}();this.vendors=["moz","webkit"];this.start=this.start.bind(this);this.resetAnimation=this.resetAnimation.bind(this);this.scrollHandler=this.scrollHandler.bind(this);this.scrollCallback=this.scrollCallback.bind(this);this.scrolled=!0;this.config=l(t,this.defaults);null!=t.scrollContainer&&(this.config.scrollContainer=document.querySelector(t.scrollContainer));this.animationNameCache=new w;this.wowEvent=v(this.config.boxClass)}return u(n,[{key:"init",value:function(){this.element=window.document.documentElement;f(document.readyState,["interactive","complete"])?this.start():i(document,"DOMContentLoaded",this.start);this.finished=[]}},{key:"start",value:function(){var u=this,n,t,r;if(this.stopped=!1,this.boxes=[].slice.call(this.element.querySelectorAll("."+this.config.boxClass)),this.all=this.boxes.slice(0),this.boxes.length)if(this.disabled())this.resetStyle();else for(n=0;n<this.boxes.length;n++)t=this.boxes[n],this.applyStyle(t,!0);(this.disabled()||(i(this.config.scrollContainer||window,"scroll",this.scrollHandler),i(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live)&&(r=new h(function(n){for(var r,i,f,t=0;t<n.length;t++)for(r=n[t],i=0;i<r.addedNodes.length;i++)f=r.addedNodes[i],u.doSync(f)}),r.observe(document.body,{childList:!0,subtree:!0}))}},{key:"stop",value:function(){this.stopped=!0;e(this.config.scrollContainer||window,"scroll",this.scrollHandler);e(window,"resize",this.scrollHandler);null!=this.interval&&clearInterval(this.interval)}},{key:"sync",value:function(){h.notSupported&&this.doSync(this.element)}},{key:"doSync",value:function(n){var r,i,t;if("undefined"!=typeof n&&null!==n||(n=this.element),1===n.nodeType)for(n=n.parentNode||n,r=n.querySelectorAll("."+this.config.boxClass),i=0;i<r.length;i++)t=r[i],f(t,this.all)||(this.boxes.push(t),this.all.push(t),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(t,!0),this.scrolled=!0)}},{key:"show",value:function(n){return this.applyStyle(n),n.className=n.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(n),y(n,this.wowEvent),this.config.resetAnimation&&(i(n,"animationend",this.resetAnimation),i(n,"oanimationend",this.resetAnimation),i(n,"webkitAnimationEnd",this.resetAnimation),i(n,"MSAnimationEnd",this.resetAnimation)),n}},{key:"applyStyle",value:function(n,t){var i=this,r=n.getAttribute("data-wow-duration"),u=n.getAttribute("data-wow-delay"),f=n.getAttribute("data-wow-iteration");return this.animate(function(){return i.customStyle(n,t,r,u,f)})}},{key:"resetStyle",value:function(){for(var t,n=0;n<this.boxes.length;n++)t=this.boxes[n],t.style.visibility="visible"}},{key:"resetAnimation",value:function(n){if(n.type.toLowerCase().indexOf("animationend")>=0){var t=n.target||n.srcElement;t.className=t.className.replace(this.config.animateClass,"").trim()}}},{key:"customStyle",value:function(n,t,i,r,u){return t&&this.cacheAnimationName(n),n.style.visibility=t?"hidden":"visible",i&&this.vendorSet(n.style,{animationDuration:i}),r&&this.vendorSet(n.style,{animationDelay:r}),u&&this.vendorSet(n.style,{animationIterationCount:u}),this.vendorSet(n.style,{animationName:t?"none":this.cachedAnimationName(n)}),n}},{key:"vendorSet",value:function(n,t){var i,u,r,f;for(i in t)if(t.hasOwnProperty(i))for(u=t[i],n[""+i]=u,r=0;r<this.vendors.length;r++)f=this.vendors[r],n[""+f+i.charAt(0).toUpperCase()+i.substr(1)]=u}},{key:"vendorCSS",value:function(n,t){for(var f,u=c(n),i=u.getPropertyCSSValue(t),r=0;r<this.vendors.length;r++)f=this.vendors[r],i=i||u.getPropertyCSSValue("-"+f+"-"+t);return i}},{key:"animationName",value:function(n){var t=void 0;try{t=this.vendorCSS(n,"animation-name").cssText}catch(i){t=c(n).getPropertyValue("animation-name")}return"none"===t?"":t}},{key:"cacheAnimationName",value:function(n){return this.animationNameCache.set(n,this.animationName(n))}},{key:"cachedAnimationName",value:function(n){return this.animationNameCache.get(n)}},{key:"scrollHandler",value:function(){this.scrolled=!0}},{key:"scrollCallback",value:function(){var i,t,n;if(this.scrolled){for(this.scrolled=!1,i=[],t=0;t<this.boxes.length;
8t++)if(n=this.boxes[t],n){if(this.isVisible(n)){this.show(n);continue}i.push(n)}this.boxes=i;this.boxes.length||this.config.live||this.stop()}}},{key:"offsetTop",value:function(n){for(;void 0===n.offsetTop;)n=n.parentNode;for(var t=n.offsetTop;n.offsetParent;)n=n.offsetParent,t+=n.offsetTop;return t}},{key:"isVisible",value:function(n){var r=n.getAttribute("data-wow-offset")||this.config.offset,t=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,u=t+Math.min(this.element.clientHeight,p())-r,i=this.offsetTop(n),f=i+n.clientHeight;return u>=i&&f>=t}},{key:"disabled",value:function(){return!this.config.mobile&&a(navigator.userAgent)}},]),n}();t["default"]=b;n.exports=t["default"]}); 9/*! 10 * Tipped - A Complete Javascript Tooltip Solution - v4.7.0 11 * (c) 2012-2019 Nick Stakenburg 12 * 13 * http://www.tippedjs.com 14 * 15 * @license: https://creativecommons.org/licenses/by/4.0 16 */ 17(function(n,t){typeof define=="function"&&define.amd?define(["jquery"],t):typeof module=="object"&&module.exports?module.exports=t(require("jquery")):n.Tipped=t(jQuery)})(this,function($){function degrees(n){return n*180/Math.PI}function radian(n){return n*Math.PI/180}function sec(n){return 1/Math.cos(n)}function sfcc(n){return String.fromCharCode.apply(String,n.replace(" ","").split(","))}function deepExtend(n,t){for(var i in t)t[i]&&t[i].constructor&&t[i].constructor===Object?(n[i]=$.extend({},n[i])||{},deepExtend(n[i],t[i])):n[i]=t[i];return n}function Spin(){return this.initialize.apply(this,_slice.call(arguments))}function Visible(){return this.initialize.apply(this,_slice.call(arguments))}function Skin(){this.initialize.apply(this,_slice.call(arguments))}function Stem(){this.initialize.apply(this,_slice.call(arguments))}function Tooltip(){this.initialize.apply(this,_slice.call(arguments))}function Collection(){this.initialize.apply(this,_slice.call(arguments))}var Tipped={},AjaxCache,Voila,Options,Tooltips,Delegations;$.extend(Tipped,{version:"4.7.0"});Tipped.Skins={base:{afterUpdate:!1,ajax:{},cache:!0,container:!1,containment:{selector:"viewport",padding:5},close:!1,detach:!0,fadeIn:200,fadeOut:200,showDelay:75,hideDelay:25,hideAfter:!1,hideOn:{element:"mouseleave"},hideOthers:!1,position:"top",inline:!1,offset:{x:0,y:0},onHide:!1,onShow:!1,padding:!0,radius:!0,shadow:!0,showOn:{element:"mousemove"},size:"medium",spinner:!0,stem:!0,target:"element",voila:!0},reset:{ajax:!1,hideOn:{element:"mouseleave",tooltip:"mouseleave"},showOn:{element:"mouseenter",tooltip:"mouseenter"}}};$.each("dark light gray red green blue lightyellow lightblue lightpink".split(" "),function(n,t){Tipped.Skins[t]={}});var Browser=function(n){function t(t){var i=new RegExp(t+"([\\d.]+)").exec(n);return i?parseFloat(i[1]):!0}return{IE:!!(window.attachEvent&&n.indexOf("Opera")===-1)&&t("MSIE "),Opera:n.indexOf("Opera")>-1&&(!!window.opera&&opera.version&&parseFloat(opera.version())||7.55),WebKit:n.indexOf("AppleWebKit/")>-1&&t("AppleWebKit/"),Gecko:n.indexOf("Gecko")>-1&&n.indexOf("KHTML")===-1&&t("rv:"),MobileSafari:!!n.match(/Apple.*Mobile.*Safari/),Chrome:n.indexOf("Chrome")>-1&&t("Chrome/"),ChromeMobile:n.indexOf("CrMo")>-1&&t("CrMo/"),Android:n.indexOf("Android")>-1&&t("Android "),IEMobile:n.indexOf("IEMobile")>-1&&t("IEMobile/")}}(navigator.userAgent),Support=function(){function r(t){return n(t,"prefix")}function u(n,i){for(var r in n)if(t.style[n[r]]!==undefined)return i==="prefix"?n[r]:!0;return!1}function n(n,t){var r=n.charAt(0).toUpperCase()+n.substr(1),f=(n+" "+i.join(r+" ")+r).split(" ");return u(f,t)}var t=document.createElement("div"),i="Webkit Moz O ms Khtml".split(" ");return{css:{animation:n("animation"),transform:n("transform"),prefixed:r},shadow:n("boxShadow")&&n("pointerEvents"),touch:function(){try{return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}catch(n){return!1}}()}}(),_slice=Array.prototype.slice,_={wrap:function(n,t){var i=n;return function(){var n=[$.proxy(i,this)].concat(_slice.call(arguments));return t.apply(this,n)}},isElement:function(n){return n&&n.nodeType===1},isText:function(n){return n&&n.nodeType===3},isDocumentFragment:function(n){return n&&n.nodeType===11},delay:function(n,t){var i=_slice.call(arguments,2);return setTimeout(function(){return n.apply(n,i)},t)},defer:function(n){return _.delay.apply(this,[n,1].concat(_slice.call(arguments,1
17)))},pointer:function(n){return{x:n.pageX,y:n.pageY}},element:{isAttached:function(){function n(n){for(var t=n;t&&t.parentNode;)t=t.parentNode;return t}return function(t){var i=n(t);return!!(i&&i.body)}}()}};var getUID=function(){var n=0,t="_tipped-uid-";return function(i){for(i=i||t,n++;document.getElementById(i+n);)n++;return i+n}}(),Position={positions:["topleft","topmiddle","topright","righttop","rightmiddle","rightbottom","bottomright","bottommiddle","bottomleft","leftbottom","leftmiddle","lefttop"],regex:{toOrientation:/^(top|left|bottom|right)(top|left|bottom|right|middle|center)$/,horizontal:/^(top|bottom)/,isCenter:/(middle|center)/,side:/^(top|bottom|left|right)/},toDimension:function(){var n={top:"height",left:"width",bottom:"height",right:"width"};return function(t){return n[t]}}(),isCenter:function(n){return!!n.toLowerCase().match(this.regex.isCenter)},isCorner:function(n){return!this.isCenter(n)},getOrientation:function(n){return n.toLowerCase().match(this.regex.horizontal)?"horizontal":"vertical"},getSide:function(n){var i=null,t=n.toLowerCase().match(this.regex.side);return t&&t[1]&&(i=t[1]),i},split:function(n){return n.toLowerCase().match(this.regex.toOrientation)},_flip:{top:"bottom",bottom:"top",left:"right",right:"left"},flip:function(n,t){var i=this.split(n);return t?this.inverseCornerPlane(this.flip(this.inverseCornerPlane(n))):this._flip[i[1]]+i[2]},inverseCornerPlane:function(n){if(Position.isCorner(n)){var t=this.split(n);return t[2]+t[1]}return n},adjustOffsetBasedOnPosition:function(n,t,i){var r=$.extend({},n),f={horizontal:"x",vertical:"y"},e=Position.getOrientation(t),o,s,u;return e===Position.getOrientation(i)?Position.getSide(t)!==Position.getSide(i)&&(o={x:"y",y:"x"}[f[e]],r[o]*=-1):(s=r.x,r.x=r.y,r.y=s,u={top:{right:"x"},bottom:{left:"x"},left:{bottom:"y"},right:{top:"y"}}[Position.getSide(t)][Position.getSide(i)],u&&(r[u]*=-1),r[f[Position.getOrientation(i)]]=0),r},getBoxFromPoints:function(n,t,i,r){var u=Math.min(n,i),e=Math.max(n,i),f=Math.min(t,r),o=Math.max(t,r);return{left:u,top:f,width:Math.max(e-u,0),height:Math.max(o-f,0)}},isPointWithinBox:function(n,t,i,r,u,f){var e=this.getBoxFromPoints(i,r,u,f);return n>=e.left&&n<=e.left+e.width&&t>=e.top&&t<=e.top+e.height},isPointWithinBoxLayout:function(n,t,i){return this.isPointWithinBox(n,t,i.position.left,i.position.top,i.position.left+i.dimensions.width,i.position.top+i.dimensions.height)},getDistance:function(n,t,i,r){return Math.sqrt(Math.pow(Math.abs(i-n),2)+Math.pow(Math.abs(r-t),2))},intersectsLine:function(){var n=function(n,t,i,r,u,f){var e=(f-t)*(i-n)-(r-t)*(u-n);return e>0?!0:e<0?!1:!0};return function(t,i,r,u,f,e,o,s,h){var c,l,v,y,p,a,w,b;return h?(c=r-t,l=u-i,v=o-f,y=s-e,p=(-l*(t-f)+c*(i-e))/(-v*l+c*y),a=(v*(i-e)-y*(t-f))/(-v*l+c*y),p>=0&&p<=1&&a>=0&&a<=1)?(w=t+a*c,b=i+a*l,{x:w,y:b}):!1:n(t,i,f,e,o,s)!=n(r,u,f,e,o,s)&&n(t,i,r,u,f,e)!=n(t,i,r,u,o,s)}}()},Bounds={viewport:function(){return Browser.MobileSafari||Browser.Android&&Browser.Gecko?{width:window.innerWidth,height:window.innerHeight}:{height:$(window).height(),width:$(window).width()}}},Mouse={_buffer:{pageX:0,pageY:0},_dimensions:{width:30,height:30},_shift:{x:2,y:10},getPosition:function(n){var t=this.getActualPosition(n);return{left:t.left-Math.round(this._dimensions.width*.5)+this._shift.x,top:t.top-Math.round(this._dimensions.height*.5)+this._shift.y}},getActualPosition:function(n){var t=n&&$.type(n.pageX)==="number"?n:this._buffer;return{left:t.pageX,top:t.pageY}},getDimensions:function(){return this._dimensions}},Color=function(){function t(n){return("0"+parseInt(n).toString(16)).slice(-2)}function i(n){return n=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+))?\)$/),"#"+t(n[1])+t(n[2])+t(n[3])}var n={_default:"#000000",aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00"};return{toRGB:function(t){if(/^rgba?\(/.test(t))return i(t);n[t]&&(t=n[t]);var r=t.replace("#","");return/^(?:[0-9a-fA-F]{3}){1,2}$/.test(r)?(r.length==3&&(r=r.charAt(0)+r.charAt(0)+r.charAt(1)+r.charAt(1)+r.charAt(2)+r.charAt(2)),"#"+r):n._default}}}();Spin.supported=Support.css.transform&&Support.css.animation;$.extend(Spin.prototype,{initialize:function(){this.options=$.extend({},arguments[0]||{});this.build();this.start()},build:function(){var f=(this.options.length+this.options.radius)*2,i={height:f,width:f},t,n,r,e,u;for(this.element=$("<div>").addClass("tpd-spin").css(i),this.element.append(this._rotate=$("<div>").addClass("tpd-spin-rotate")),this.element.css({"margin-left":-.5*i.width,"margin-top":-.5*i.height}),t=this.options.lines,n=0;n<t;n++)this._rotate.append(r=$("<div>").addClass("tpd-spin-frame").append(e=$("<div>").addClass("tpd-spin-line"))),e.css({"background-color":this.options.color,width:this.options.width,height:this.options.length,"margin-left":-.5*this.options.width,"border-radius":Math.round(.5*this.options.width)}),r.css({opacity:(1/t*(n+1)).toFixed(2)}),u={},u[Support.css.prefixed("transform")]="rotate("+360/t*(n+1)+"deg)",r.css(u)},start:function(){var n={};n[Support.css.prefixed("animation")]="tpd-spin 1s infinite steps("+this.options.lines+")";this._rotate.css(n)},stop:function(){var n={};n[Support.css.prefixed("animation")]="none";this._rotate.css(n);this.element.detach()}});$.extend(Visible.prototype,{initialize:function(n){return n=$.type(n)=="array"?n:[n],this.elements=n,this._restore=[],$.each(n,$.proxy(function(n,t){var i=$(t).is(":visible");i||$(t).show();this._restore.push({element:t,visible:i})},this)),this},restore:function(){$.each(this._restore,function(n,t){t.visible||$(t.element).show()});this._restore=null}});AjaxCache=function(){var n=[];return{get:function(t){for(var r=null,i=0;i<n.length;i++)n[i]&&n[i].url===t.url&&(n[i].type||"GET").toUpperCase()===(t.type||"GET").toUpperCase()&&$.param(n[i].data||{})===$.param(t.data||{})&&(r=n[i]);return r},set:function(t,i,r){var u=this.get(t);u||(u=$.extend({callbacks:{}},t),n.push(u));u.callbacks[i]=r},remove:function(t){for(var i=0;i<n.length;i++)n[i]&&n[i].url===t&&delete n[i]},clear:function(){n=[]}}}(); 18/*! 19 * Voilà - v1.3.0 20 * (c) 2015 Nick Stakenburg 21 * 22 * http://voila.nickstakenburg.com 23 * 24 * MIT License 25 */ 26return Voila=function(n){function t(i,r,u){if(!(this instanceof t))return new t(i,r,u);var f=n.type(arguments[1]),o=f==="object"?arguments[1]:{},e=f==="function"?arguments[1]:n.type(arguments[2])==="function"?arguments[2]:!1;return this.options=n.extend({method:"onload"},o),this.deferred=new jQuery.Deferred,e&&this.always(e),this._processed=0,this.images=[],this._add(i),this}
26n.extend(t.prototype,{_add:function(t){var r=n.type(t)=="string"?n(t):t instanceof jQuery||t.length>0?t:[t];n.each(r,n.proxy(function(t,r){var u=n(),f=n(r);u=f.is("img")?u.add(f):u.add(f.find("img"));u.each(n.proxy(function(t,r){this.images.push(new i(r,n.proxy(function(n){this._progress(n)},this),n.proxy(function(n){this._progress(n)},this),this.options))},this))},this));this.images.length<1&&setTimeout(n.proxy(function(){this._resolve()},this))},abort:function(){this._progress=this._notify=this._reject=this._resolve=function(){};n.each(this.images,function(n,t){t.abort()});this.images=[]},_progress:function(n){this._processed++;n.isLoaded||(this._broken=!0);this._notify(n);this._processed===this.images.length&&this[this._broken?"_reject":"_resolve"]()},_notify:function(n){this.deferred.notify(this,n)},_reject:function(){this.deferred.reject(this)},_resolve:function(){this.deferred.resolve(this)},always:function(n){return this.deferred.always(n),this},done:function(n){return this.deferred.done(n),this},fail:function(n){return this.deferred.fail(n),this},progress:function(n){return this.deferred.progress(n),this}});var i=function(n){var i=function(){return this.initialize.apply(this,Array.prototype.slice.call(arguments))},t;return n.extend(i.prototype,{initialize:function(){this.options=n.extend({test:function(){},success:function(){},timeout:function(){},callAt:!1,intervals:[[0,0],[1e3,10],[2e3,50],[4e3,100],[2e4,500]]},arguments[0]||{});this._test=this.options.test;this._success=this.options.success;this._timeout=this.options.timeout;this._ipos=0;this._time=0;this._delay=this.options.intervals[this._ipos][1];this._callTimeouts=[];this.poll();this._createCallsAt()},poll:function(){this._polling=setTimeout(n.proxy(function(){if(this._test()){this.success();return}if(this._time+=this._delay,this._time>=this.options.intervals[this._ipos][0]){if(!this.options.intervals[this._ipos+1]){n.type(this._timeout)=="function"&&this._timeout();return}this._ipos++;this._delay=this.options.intervals[this._ipos][1]}this.poll()},this),this._delay)},success:function(){this.abort();this._success()},_createCallsAt:function(){this.options.callAt&&n.each(this.options.callAt,n.proxy(function(t,i){var r=i[0],u=i[1],f=setTimeout(n.proxy(function(){u()},this),r);this._callTimeouts.push(f)},this))},_stopCallTimeouts:function(){n.each(this._callTimeouts,function(n,t){clearTimeout(t)});this._callTimeouts=[]},abort:function(){this._stopCallTimeouts();this._polling&&(clearTimeout(this._polling),this._polling=null)}}),t=function(){return this.initialize.apply(this,Array.prototype.slice.call(arguments))},n.extend(t.prototype,{supports:{naturalWidth:function(){return"naturalWidth"in new Image}()},initialize:function(t,i,r){if(this.img=n(t)[0],this.successCallback=i,this.errorCallback=r,this.isLoaded=!1,this.options=n.extend({method:"onload",pollFallbackAfter:1e3},arguments[3]||{}),this.options.method=="onload"||!this.supports.naturalWidth){this.load();return}this.poll()},poll:function(){this._poll=new i({test:n.proxy(function(){return this.img.naturalWidth>0},this),success:n.proxy(function(){this.success()},this),timeout:n.proxy(function(){this.error()},this),callAt:[[this.options.pollFallbackAfter,n.proxy(function(){this.load()},this)]]})},load:function(){this._loading=setTimeout(n.proxy(function(){var t=new Image;this._onloadImage=t;t.onload=n.proxy(function(){t.onload=function(){};this.supports.naturalWidth||(this.img.naturalWidth=t.width,this.img.naturalHeight=t.height,t.naturalWidth=t.width,t.naturalHeight=t.height);this.success()},this);t.onerror=n.proxy(this.error,this);t.src=this.img.src},this))},success:function(){this._calledSuccess||(this._calledSuccess=!0,this.abort(),this.waitForRender(n.proxy(function(){this.isLoaded=!0;this.successCallback(this)},this)))},error:function(){this._calledError||(this._calledError=!0,this.abort(),this._errorRenderTimeout=setTimeout(n.proxy(function(){this.errorCallback&&this.errorCallback(this)},this)))},abort:function(){this.stopLoading();this.stopPolling();this.stopWaitingForRender()},stopPolling:function(){this._poll&&(this._poll.abort(),this._poll=null)},stopLoading:function(){this._loading&&(clearTimeout(this._loading),this._loading=null);this._onloadImage&&(this._onloadImage.onload=function(){},this._onloadImage.onerror=function(){})},waitForRender:function(n){this._renderTimeout=setTimeout(n)},stopWaitingForRender:function(){this._renderTimeout&&(clearTimeout(this._renderTimeout),this._renderTimeout=null);
26this._errorRenderTimeout&&(clearTimeout(this._errorRenderTimeout),this._errorRenderTimeout=null)}}),t}(jQuery);return t}(jQuery),Tipped.Behaviors={hide:{showOn:{element:"mouseenter",tooltip:!1},hideOn:{element:"mouseleave",tooltip:"mouseenter"}},mouse:{showOn:{element:"mouseenter",tooltip:!1},hideOn:{element:"mouseleave",tooltip:"mouseenter"},target:"mouse",showDelay:100,fadeIn:0,hideDelay:0,fadeOut:0},sticky:{showOn:{element:"mouseenter",tooltip:"mouseenter"},hideOn:{element:"mouseleave",tooltip:"mouseleave"},showDelay:150,target:"mouse",fixed:!0}},Options={create:function(){function r(i){return n=Tipped.Skins.base,t=deepExtend($.extend({},n),Tipped.Skins.reset),r=f,f(i)}function i(n){return n.match(/^(top|left|bottom|right)$/)&&(n+="middle"),n.replace("center","middle").replace(" ",""),n}function u(n){var t;return n.behavior&&(t=Tipped.Behaviors[n.behavior])?deepExtend($.extend({},t),n):n}function f(r){var w=r.skin?r.skin:Tooltips.options.defaultSkin,a=$.extend({},Tipped.Skins[w]||{}),v,f,b,y,e,s,h,p,o,c,l;return a.skin||(a.skin=Tooltips.options.defaultSkin||"dark"),v=deepExtend($.extend({},t),u(a)),f=deepExtend($.extend({},v),u(r)),f.ajax&&(b=t.ajax||{},y=n.ajax,$.type(f.ajax)==="boolean"&&(f.ajax={}),f.ajax=deepExtend($.extend({},y),f.ajax)),s=s=f.position&&f.position.target||$.type(f.position)==="string"&&f.position||t.position&&t.position.target||$.type(t.position)==="string"&&t.position||n.position&&n.position.target||n.position,s=i(s),h=f.position&&f.position.tooltip||t.position&&t.position.tooltip||n.position&&n.position.tooltip||Tooltips.Position.getInversedPosition(s),h=i(h),f.position?$.type(f.position)==="string"?(f.position=i(f.position),e={target:f.position,tooltip:Tooltips.Position.getTooltipPositionFromTarget(f.position)}):(e={tooltip:h,target:s},f.position.tooltip&&(e.tooltip=i(f.position.tooltip)),f.position.target&&(e.target=i(f.position.target))):e={tooltip:h,target:s},Position.isCorner(e.target)&&Position.getOrientation(e.target)!==Position.getOrientation(e.tooltip)&&(e.target=Position.inverseCornerPlane(e.target)),f.target==="mouse"&&(p=Position.getOrientation(e.target),e.target=p==="horizontal"?e.target.replace(/(left|right)/,"middle"):e.target.replace(/(top|bottom)/,"middle")),f.position=e,f.target==="mouse"?(o=$.extend({},n.offset),$.extend(o,Tipped.Skins.reset.offset||{}),r.skin&&$.extend(o,(Tipped.Skins[r.skin]||Tipped.Skins[Tooltips.options.defaultSkin]||{}).offset||{}),o=Position.adjustOffsetBasedOnPosition(n.offset,n.position,e.target,!0),r.offset&&(o=$.extend(o,r.offset||{}))):o={x:f.offset.x,y:f.offset.y},f.offset=o,f.hideOn&&f.hideOn==="click-outside"&&(f.hideOnClickOutside=!0,f.hideOn=!1,f.fadeOut=0),f.showOn&&(c=f.showOn,$.type(c)==="string"&&(c={element:c}),f.showOn=c),f.hideOn&&(l=f.hideOn,$.type(l)==="string"&&(l={element:l}),f.hideOn=l),f.inline&&$.type(f.inline)!=="string"&&(f.inline=!1),Browser.IE&&Browser.IE<9&&$.extend(f,{fadeIn:0,fadeOut:0,hideDelay:0}),f.spinner&&(Spin.supported?$.type(f.spinner)==="boolean"&&(f.spinner=t.spinner||n.spinner||{}):f.spinner=!1),f.container||(f.container=document.body),f.containment&&$.type(f.containment)==="string"&&(f.containment={selector:f.containment,padding:t.containment&&t.containment.padding||n.padding&&n.containment.padding}),f.shadow&&(f.shadow=Support.shadow),f}var n,t;return r}()},$.extend(Skin.prototype,{initialize:function(n){var i,e,t,u,r,f;this.tooltip=n;this.element=n._skin;i=this.tooltip.options;this.tooltip._tooltip[(i.shadow?"remove":"add")+"Class"]("tpd-no-sha
26dow")[(i.radius?"remove":"add")+"Class"]("tpd-no-radius")[(i.stem?"remove":"add")+"Class"]("tpd-no-stem");f=Support.css.prefixed("borderTopLeftRadius");this.element.append(e=$("<div>").addClass("tpd-frames").append($("<div>").addClass("tpd-frame").append($("<div>").addClass("tpd-backgrounds").append(t=$("<div>").addClass("tpd-background").append(u=$("<div>").addClass("tpd-background-content")))))).append(r=$("<div>").addClass("tpd-spinner"));t.css({width:999,height:999,zoom:1});this._css={border:parseFloat(t.css("border-top-width")),radius:parseFloat(f?t.css(f):0),padding:parseFloat(n._content.css("padding-top")),borderColor:t.css("border-top-color"),backgroundColor:u.css("background-color"),backgroundOpacity:u.css("opacity"),spinner:{dimensions:{width:r.innerWidth(),height:r.innerHeight()}}};r.remove();e.remove();this._side=Position.getSide(n.options.position.tooltip)||"top";this._vars={}},destroy:function(){this.frames&&($.each("top right bottom left".split(" "),$.proxy(function(n,t){this["stem_"+t]&&this["stem_"+t].destroy()},this)),this.frames.remove(),this.frames=null)},build:function(){this.frames||(this.element.append(this.frames=$("<div>").addClass("tpd-frames")),$.each("top right bottom left".split(" "),$.proxy(function(n,t){this.insertFrame(t)},this)),this._spinner||this.tooltip._tooltip.append(this._spinner=$("<div>").addClass("tpd-spinner").hide().append($("<div>").addClass("tpd-spinner-spin"))))},_frame:function(){var n,t=$("<div>").addClass("tpd-frame").append(n=$("<div>").addClass("tpd-backgrounds").append($("<div>").addClass("tpd-background-shadow"))).append($("<div>").addClass("tpd-shift-stem").append($("<div>").addClass("tpd-shift-stem-side tpd-shift-stem-side-before")).append($("<div>").addClass("tpd-stem")).append($("<div>").addClass("tpd-shift-stem-side tpd-shift-stem-side-after")));return $.each("top right bottom left".split(" "),$.proxy(function(t,i){n.append($("<div>").addClass("tpd-background-box tpd-background-box-"+i).append($("<div>").addClass("tpd-background-box-shift").append($("<div>").addClass("tpd-background-box-shift-further").append($("<div>").addClass("tpd-background").append($("<div>").addClass("tpd-background-title")).append($("<div>").addClass("tpd-background-content"))).append($("<div>").addClass("tpd-background tpd-background-loading")).append($("<div>").addClass("tpd-background-border-hack").hide()))))},this)),t}(),_getFrame:function(n){var t=this._frame.clone(),i,u;t.addClass("tpd-frame-"+n);t.find(".tpd-background-shadow").css({"border-radius":this._css.radius});this.tooltip.options.stem&&t.find(".tpd-stem").attr("data-stem-position",n);i=Math.max(this._css.radius-this._css.border,0);t.find(".tpd-background-title").css({"border-top-left-radius":i,"border-top-right-radius":i});t.find(".tpd-background-content").css({"border-bottom-left-radius":i,"border-bottom-right-radius":i});t.find(".tpd-background-loading").css({"border-radius":i});var r={backgroundColor:this._css.borderColor},f=Position.getOrientation(n),e=f==="horizontal";return r[e?"height":"width"]=this._css.border+"px",u={top:"bottom",bottom:"top",left:"right",right:"left"},r[u[n]]=0,t.find(".tpd-shift-stem-side").css(r),t},insertFrame:function(n){var t=this["frame_"+n]=this._getFrame(n),i;this.frames.append(t);this.tooltip.options.stem&&(i=t.find(".tpd-stem"),this["stem_"+n]=new Stem(i,this,{}))},startLoading:function(){this.tooltip.supportsLoading&&(this.build(),this._spinner||this.tooltip.is("resize-to-content")||this.setDimensions(this._css.spinner.dimensions),this._spinner&&this._spinner.show())},stopLoading:function(){this.tooltip.supportsLoading&&this._spinner&&(this.build(),this._spinner.hide())}
26,updateBackground:function(){var f=this._vars.frames[this._side],n=$.extend({},f.background.dimensions);if(this.tooltip.title&&!this.tooltip.is("loading")){this.element.find(".tpd-background-title, .tpd-background-content").show();this.element.find(".tpd-background").css({"background-color":"transparent"});var r=$.extend({},n),t=Math.max(this._css.radius-this._css.border,0),i={"border-top-left-radius":t,"border-top-right-radius":t,"border-bottom-left-radius":t,"border-bottom-right-radius":t},e=new Visible(this.tooltip._tooltip),u=this.tooltip._titleWrapper.innerHeight();r.height-=u;this.element.find(".tpd-background-title").css({height:u,width:n.width});i["border-top-left-radius"]=0;i["border-top-right-radius"]=0;e.restore();this.element.find(".tpd-background-content").css(r).css(i);this.element.find(".tpd-background-loading").css({"background-color":this._css.backgroundColor})}else this.element.find(".tpd-background-title, .tpd-background-content").hide(),this.element.find(".tpd-background").css({"background-color":this._css.backgroundColor});this._css.border&&(this.element.find(".tpd-background").css({"border-color":"transparent"}),this.element.find(".tpd-background-border-hack").css({width:n.width,height:n.height,"border-radius":this._css.radius,"border-width":this._css.border,"border-color":this._css.borderColor}).show())},paint:function(){var e,o,h,r,u,f;if(!this._paintedDimensions||this._paintedDimensions.width!==this._dimensions.width||this._paintedDimensions.height!==this._dimensions.height||this._paintedStemPosition!==this._stemPosition){this._paintedDimensions=this._dimensions;this._paintedStemPosition=this._stemPosition;this.element.removeClass("tpd-visible-frame-top tpd-visible-frame-bottom tpd-visible-frame-left tpd-visible-frame-right").addClass("tpd-visible-frame-"+this._side);e=this._vars.frames[this._side];o=$.extend({},e.background.dimensions);this.element.find(".tpd-background").css(o);this.element.find(".tpd-background-shadow").css({width:o.width+2*this._css.border,height:o.height+2*this._css.border});
26this.updateBackground();this.element.find(".tpd-background-box-shift, .tpd-background-box-shift-further").removeAttr("style");this.element.add(this.frames).add(this.tooltip._tooltip).css(e.dimensions);var i=this._side,n=this._vars.frames[i],t=this.element.find(".tpd-frame-"+this._side),s=this._vars.frames[i].dimensions;t.css(s);t.find(".tpd-backgrounds").css($.extend({},n.background.position,{width:s.width-n.background.position.left,height:s.height-n.background.position.top}));h=Position.getOrientation(i);this.tooltip.options.stem&&(t.find(".tpd-shift-stem").css($.extend({},n.shift.dimensions,n.shift.position)),h==="vertical"?(r=t.find(".tpd-background-box-top, .tpd-background-box-bottom"),r.css({height:this._vars.cut,width:this._css.border}),t.find(".tpd-background-box-bottom").css({top:n.dimensions.height-this._vars.cut}).find(".tpd-background-box-shift").css({"margin-top":-1*n.dimensions.height+this._vars.cut}),u=i==="right"?n.dimensions.width-n.stemPx-this._css.border:0,r.css({left:u}).find(".tpd-background-box-shift").css({"margin-left":-1*u}),t.find(".tpd-background-box-"+(i=="left"?"left":"right")).hide(),i==="right"?t.find(".tpd-background-box-left").css({width:n.dimensions.width-n.stemPx-this._css.border}):t.find(".tpd-background-box-right").css({"margin-left":this._css.border}).find(".tpd-background-box-shift").css({"margin-left":-1*this._css.border}),f=t.find(".tpd-background-box-"+this._side),f.css({height:n.dimensions.height-2*this._vars.cut,"margin-top":this._vars.cut}),f.find(".tpd-background-box-shift").css({"margin-top":-1*this._vars.cut})):(r=t.find(".tpd-background-box-left, .tpd-background-box-right"),r.css({width:this._vars.cut,height:this._css.border}),t.find(".tpd-background-box-right").css({left:n.dimensions.width-this._vars.cut}).find(".tpd-background-box-shift").css({"margin-left":-1*n.dimensions.width+this._vars.cut}),u=i==="bottom"?n.dimensions.height-n.stemPx-this._css.border:0,r.css({top:u}).find(".tpd-background-box-shift").css({"margin-top":-1*u}),t.find(".tpd-background-box-"+(i==="top"?"top":"bottom")).hide(),i==="bottom"?t.find(".tpd-background-box-top").css({height:n.dimensions.height-n.stemPx-this._css.border}):t.find(".tpd-background-box-bottom").css({"margin-top":this._css.border}).find(".tpd-background-box-shift").css({"margin-top":-1*this._css.border}),f=t.find(".tpd-background-box-"+this._side),f.css({width:n.dimensions.width-2*this._vars.cut,"margin-left":this._vars.cut}),f.find(".tpd-background-box-shift").css({"margin-left":-1*this._vars.cut})));var c=e.background,l=c.position,a=c.dimensions;this._spinner.css({top:l.top+this._css.border+(a.height*.5-this._css.spinner.dimensions.height*.5),left:l.left+this._css.border+(a.width*.5-this._css.spinner.dimensions.width*.5)})}},getVars:function(){var o=this._css.padding,s=this._css.radius,r=this._css.border,e=this._vars.maxStemHeight||0,u=$.extend({},this._dimensions||{}),n={frames:{},dimensions:u,maxStemHeight:e};n.cut=Math.max(this._css.border,this._css.radius)||0;var i={width:0,height:0},f=0,t=0;return this.tooltip.options.stem&&(i=this.stem_top.getMath().dimensions.outside,f=this.stem_top._css.offset,t=Math.max(i.height-this._css.border,0)),n.stemDimensions=i,n.stemOffset=f,$.each("top right bottom left".split(" "),$.proxy(function(f,e){var l=Position.getOrientation(e),s=l==="vertical",h={width:u.width+2*r,height:u.height+2*r},c=h[s?"height":"width"]-2*n.cut,o={dimensions:h,stemPx:t,position:{top:0,left:0},background:{dimensions:$.extend({},u),position:{top:0,left:0}}};n.frames[e]=o;o.dimensions[s?"width":"height"]+=t;(e==="top"||e==="left")&&(o.background.position[e]+=t);$.extend(o,{shift:{position:{top:0,left:0},dimensions:{width:s?i.height:c,height:s?c:i.height}}});switch(e){case"top":case"bottom":o.shift.position.left+=n.cut;e==="bottom"&&(o.shift.position.top+=h.height-r-t);break;case"left":case"right":o.shift.position.top+=n.cut;e==="right"&&(o.shift.position.left+=h.width-r-t)}},this)),n.connections={},$.each(Position.positions,$.proxy(function(t,i){n.connections[i]=this.getConnectionLayout(i,n)},this)),n},setDimensions:function(n){this.build();var t=this._dimensions;t&&t.width===n.width&&t.height===n.height||(this._dimensions=n,this._vars=this.getVars())},setSide:function(n){this._side=n;this._vars=this.getVars()},getConnectionLayout:function(n,t){var k=Position.getSide(n),d=Position.getOrientation(n),nt=t.dimensions,b=t.cut,g=this["stem_"+k],r=t.stemOffset,i=this.tooltip.options.stem?g.getMath().dimensions.outside.width:0,c=b+r+i*.5,l={stem:{}},f={left:0,right:0,up:0,down:0},e={top:0,left:0},h={top:0,left:0},u=t.frames[k],c=0,a,v;if(d=="horizontal"){a=u.dimensions.width;this.tooltip.options.stem&&(a=u.shift.dimensions.width,a-i<2*r&&(r=Math.floor((a-i)*.5)||0),c=b+r+i*.5);var y=a-2*r,p=Position.split(n),o=r;switch(p[2]){case"left":f.right=y-i;e.left=c;break;case"middle":o+=Math.round(y*.5-i*.5);f.left=o-r;f.right=o-r;e.left=h.left=Math.round(u.dimensions.width*.5);break;case"right":o+=y-i;f.left=y-i;e.left=u.dimensions.width-c;
26h.left=u.dimensions.width}p[1]==="bottom"&&(e.top+=u.dimensions.height,h.top+=u.dimensions.height);$.extend(l.stem,{position:{left:o},before:{width:o},after:{left:o+i,width:a-o-i+1}})}else{v=u.dimensions.height;this.tooltip.options.stem&&(v=u.shift.dimensions.height,v-i<2*r&&(r=Math.floor((v-i)*.5)||0),c=b+r+i*.5);var w=v-2*r,p=Position.split(n),s=r;switch(p[2]){case"top":f.down=w-i;e.top=c;break;case"middle":s+=Math.round(w*.5-i*.5);f.up=s-r;f.down=s-r;e.top=h.top=Math.round(u.dimensions.height*.5);break;case"bottom":s+=w-i;f.up=w-i;e.top=u.dimensions.height-c;h.top=u.dimensions.height}p[1]==="right"&&(e.left+=u.dimensions.width,h.left+=u.dimensions.width);$.extend(l.stem,{position:{top:s},before:{height:s},after:{top:s+i,height:v-s-i+1}})}return l.move=f,l.stem.connection=e,l.connection=h,l},setStemPosition:function(n,t){if(this._stemPosition!==n){this._stemPosition=n;var i=Position.getSide(n);this.setSide(i)}this.tooltip.options.stem&&this.setStemShift(n,t)},setStemShift:function(n,t){var r=this._shift,f=this._dimensions;if(!r||r.stemPosition!==n||r.shift.x!==t.x||r.shift.y!==t.y||!f||r.dimensions.width!==f.width||r.dimensions.height!==f.height){this._shift={stemPosition:n,shift:t,dimensions:f};var s=Position.getSide(n),u={horizontal:"x",vertical:"y"}[Position.getOrientation(n)],e={x:{left:"left",width:"width"},y:{left:"top",width:"height"}}[u],o=this["stem_"+s],i=deepExtend({},this._vars.connections[n].stem);t&&t[u]!==0&&(i.before[e.width]+=t[u],i.position[e.left]+=t[u],i.after[e.left]+=t[u],i.after[e.width]-=t[u]);o.element.css(i.position);o.element.siblings(".tpd-shift-stem-side-before").css(i.before);o.element.siblings(".tpd-shift-stem-side-after").css(i.after)}}}),$.extend(Stem.prototype,{initialize:function(n,t){(this.element=$(n),this.element[0])&&(this.skin=t,this.element.removeClass("tpd-stem-reset"),this._css=$.extend({},t._css,{width:this.element.innerWidth(),height:this.element.innerHeight(),offset:parseFloat(this.element.css("margin-left")),spacing:parseFloat(this.element.css("margin-top"))}),this.element.addClass("tpd-stem-reset"),this.options=$.extend({},arguments[2]||{}),this._position=this.element.attr("data-stem-position")||"top",this._m=100,this.build())},destroy:function(){this.element.html("")},build:function(){this.destroy();var n=this._css.backgroundColor,t=n.indexOf("rgba")>-1&&parseFloat(n.replace(/^.*,(.+)\)/,"$1")),i=t&&t<1;this._useTransform=i&&Support.css.transform;this._css.border||(this._useTransform=!1);this[(this._useTransform?"build":"buildNo")+"Transform"]()},buildTransform:function(){var u,f,s,h,t,c,l,e;this.element.append(this.spacer=$("<div>").addClass("tpd-stem-spacer").append(this.downscale=$("<div>").addClass("tpd-stem-downscale").append(this.transform=$("<div>").addClass("tpd-stem-transform").append(this.first=$("<div>").addClass("tpd-stem-side").append(this.border=$("<div>").addClass("tpd-stem-border")).append($("<div>").addClass("tpd-stem-border-corner")).append($("<div>").addClass("tpd-stem-triangle"))))));this.transform.append(this.last=this.first.clone().addClass("tpd-stem-side-inversed"));this.sides=this.first.add(this.last);var r=this.getMath(),i=r.dimensions,n=this._m,o=Position.getSide(this._position);this.element.find(".tpd-stem-spacer").css({width:e?i.inside.height:i.inside.width,height:e?i.inside.width:i.inside.height});(o==="top"||o==="left")&&(u={},o==="top"?(u.bottom=0,u.top="auto"):o==="left"&&(u.right=0,u.left="auto"),this.element.find(".tpd-stem-spacer").css(u));this.transform.css({width:i.inside.width*n,height:i.inside.height*n});f=Support.css.prefixed("transform");s={"background-color":"transparent","border-bottom-color":this._css.backgroundColor,"border-left-width":i.inside.width*.5*n,"border-bottom-width":i.inside.height*n};s[f]="translate("+r.border*n+"px, 0)";this.element.find(".tpd-stem-triangle").css(s);t=this._css.borderColor;alpha=t.indexOf("rgba")>-1&&parseFloat(t.replace(/^.*,(.+)\)/,"$1"));alpha&&alpha<1?t=(t.substring(0,t.lastIndexOf(","))+")").replace("rgba","rgb"):alpha=1;h={"background-color":"transparent","border-right-width":r.border*n,width:r.border*n,"margin-left":-2*r.border*n,"border-color":t,opacity:alpha};h[f]="skew("+r.skew+"deg) translate("+r.border*n+"px, "+-1*this._css.border*n+"px)";this.element.find(".tpd-stem-border").css(h);t=this._css.borderColor;alpha=t.indexOf("rgba")>
26-1&&parseFloat(t.replace(/^.*,(.+)\)/,"$1"));alpha&&alpha<1?t=(t.substring(0,t.lastIndexOf(","))+")").replace("rgba","rgb"):alpha=1;c={width:r.border*n,"border-right-width":r.border*n,"border-right-color":t,background:t,opacity:alpha,"margin-left":-2*r.border*n};c[f]="skew("+r.skew+"deg) translate("+r.border*n+"px, "+(i.inside.height-this._css.border)*n+"px)";this.element.find(".tpd-stem-border-corner").css(c);this.setPosition(this._position);n>1&&(l={},l[f]="scale("+1/n+","+1/n+")",this.downscale.css(l));e=/^(left|right)$/.test(this._position);this._css.border||this.element.find(".tpd-stem-border, .tpd-stem-border-corner").hide();this.element.css({width:e?i.outside.height:i.outside.width,height:e?i.outside.width:i.outside.height})},buildNoTransform:function(){var f,e,s;this.element.append(this.spacer=$("<div>").addClass("tpd-stem-spacer").append($("<div>").addClass("tpd-stem-notransform").append($("<div>").addClass("tpd-stem-border").append($("<div>").addClass("tpd-stem-border-corner")).append($("<div>").addClass("tpd-stem-border-center-offset").append($("<div>").addClass("tpd-stem-border-center-offset-inverse").append($("<div>").addClass("tpd-stem-border-center"))))).append($("<div>").addClass("tpd-stem-triangle"))));var h=this.getMath(),n=h.dimensions,r=/^(left|right)$/.test(this._position),u=/^(bottom)$/.test(this._position),i=/^(right)$/.test(this._position),c=Position.getSide(this._position);this.element.css({width:r?n.outside.height:n.outside.width,height:r?n.outside.width:n.outside.height});this.element.find(".tpd-stem-notransform").add(this.element.find(".tpd-stem-spacer")).css({width:r?n.inside.height:n.inside.width,height:r?n.inside.width:n.inside.height});(c==="top"||c==="left")&&(f={},c==="top"?(f.bottom=0,f.top="auto"):c==="left"&&(f.right=0,f.left="auto"),this.element.find(".tpd-stem-spacer").css(f));this.element.find(".tpd-stem-border").css({width:"100%",background:"transparent"});e={opacity:1};e[r?"height":"width"]="100%";e[r?"width":"height"]=this._css.border;e[u?"top":"bottom"]=0;$.extend(e,i?{left:0}:{right:0});this.element.find(".tpd-stem-border-corner").css(e);var o={width:0,"background-color":"transparent",opacity:1},l=n.inside.width*.5+"px solid transparent",t={"background-color":"transparent"},a=n.inside.width*.5-h.border+"px solid transparent";r?(s={left:"auto",top:"50%","margin-top":-.5*n.inside.width,"border-top":l,"border-bottom":l},$.extend(o,s),o[i?"right":"left"]=0,o[i?"border-left":"border-right"]=n.inside.height+"px solid "+this._css.borderColor,$.extend(t,s),t[i?"border-left":"border-right"]=n.inside.height+"px solid "+this._css.backgroundColor,t[i?"right":"left"]=h.top,t[i?"left":"right"]="auto",this.element.find(".tpd-stem-border-center-offset").css({"margin-left":-1*this._css.border*(i?-1:1)}).find(".tpd-stem-border-center-offset-inverse").css({"margin-left":this._css.border*(i?-1:1)})):(s={"margin-left":-.5*n.inside.width,"border-left":l,"border-right":l},$.extend(o,s),o[u?"border-top":"border-bottom"]=n.inside.height+"px solid "+this._css.borderColor,$.extend(t,s),t[u?"border-top":"border-bottom"]=n.inside.height+"px solid "+this._css.backgroundColor,t[u?"bottom":"top"]=h.top,t[u?"top":"bottom"]="auto",this.element.find(".tpd-stem-border-center-offset").css({"margin-top":-1*this._css.border*(u?-1:1)}).find(".tpd-stem-border-center-offset-inverse").css({"margin-top":this._css.border*(u?-1:1)}));this.element.find(".tpd-stem-border-center").css(o);this.element.find(".tpd-stem-border-corner").css({"background-color":this._css.borderColor});this.element.find(".tpd-stem-triangle").css(t);this._css.border||this.element.find(".tpd-stem-border").hide()},setPosition:function(n){this._position=n;this.transform.attr("class","tpd-stem-transform tpd-stem-transform-"+n)},getMath:function(){var i=this._css.height,n=this._css.width,t=this._css.border,f;this._useTransform&&!!(Math.floor(n)%2)&&(n=Math.max(Math.floor(n)-1,0));var e=degrees(Math.atan(n*.5/i)),c=90-e,l=t/Math.cos((90-c)*Math.PI/180),o=t/Math.cos((90-e)*Math.PI/180),r={width:n+l*2,height:i+o},k=Math.max(t,this._css.radius);i=r.height;n=r.width*.5;var a=degrees(Math.atan(i/n)),v=90-a,y=t/Math.cos(v*Math.PI/180),s=Math.atan(i/n)*180/Math.PI,p=-1*(90-s),h=90-s,w=t*Math.tan(h*Math.PI/180),o=t/Math.cos((90-h)*Math.PI/180),b=$.extend({},r),u=$.extend({},r);return u.height+=this._css.spacing,u.height=Math.ceil(u.height),f=!0,t*2>=r.width&&(f=!1),{enabled:f,outside:u,dimensions:{inside:b,outside:u},top:o,border:y,skew:p,corner:w}}}),Tooltips={tooltips:{},options:{defaultSkin:"dark",startingZIndex:999999},_emptyClickHandler:function(){},init:function(){this.reset();this._resizeHandler=$.proxy(this.onWindowResize,this);$(window).bind("resize orientationchange",this._resizeHandler);Browser.MobileSafari&&$("body").bind("click",this._emptyClickHandler)},reset:function(){Tooltips.removeAll();Delegations.removeAll();this._resizeHandler&&$(window).unbind("resize orientationchange",this._resizeHandler);Browser.MobileSafari&&$("body").unbind("click",this._emptyClickHandler)},onWindowResize:function(){this._resizeTimer&&(window.clearTimeout(this._resizeTimer),this._resizeTimer=null);this._resizeTimer=_.delay($.proxy(function(){var n=this.getVisible();$.each(n,function(n,t){t.clearUpdatedTo();t.position()})},this),15)},_getTooltips:function(n,t){var i=[],f=[],r,u;return _.isElement(n)?(r=$(n).data("tipped-uids"))&&(i=i.concat(r)):$(n).each(function(n,t){(r=$(t).data("tipped-uids"))&&(i=i.concat(r))}),i[0]||t||(u=this.getTooltipByTooltipElement($(n).closest(".tpd-tooltip")[0]),u&&u.element&&(r=$(u.element).data("tipped-uids")||[],r&&(i=i.concat(r)))),i.length>0&&$.each(i,$.proxy(function(n,t){var i;(i=this.tooltips[t])&&f.push(i)},this)),f},findElement:function(n){var t=[];return _.isElement(n)&&(t=this._getTooltips(n)),t[0]&&t[0].element},get:function(n){var i=$.extend({api:!1},arguments[1]||{}),t=[];return _.isElement(n)?t=this._getTooltips(n):n instanceof $?n.each($.proxy(function(n,i){var r=this._getTooltips(i,!0);r.length>0&&(t=t.concat(r))}
26,this)):$.type(n)==="string"&&$.each(this.tooltips,function(i,r){r.element&&$(r.element).is(n)&&t.push(r)}),i.api&&$.each(t,function(n,t){t.is("api",!0)}),t},getTooltipByTooltipElement:function(n){if(!n)return null;var t=null;return $.each(this.tooltips,function(i,r){r.is("build")&&r._tooltip[0]===n&&(t=r)}),t},getBySelector:function(n){var t=[];return $.each(this.tooltips,function(i,r){r.element&&$(r.element).is(n)&&t.push(r)}),t},getNests:function(){var n=[];return $.each(this.tooltips,function(t,i){i.is("nest")&&n.push(i)}),n},show:function(n){$(this.get(n)).each(function(n,t){t.show(!1,!0)})},hide:function(n){$(this.get(n)).each(function(n,t){t.hide()})},toggle:function(n){$(this.get(n)).each(function(n,t){t.toggle()})},hideAll:function(n){$.each(this.getVisible(),function(t,i){n&&n===i||i.hide()})},refresh:function(n){var t;t=n?$.grep(this.get(n),function(n){return n.is("visible")}):this.getVisible();$.each(t,function(n,t){t.refresh()})},getVisible:function(){var n=[];return $.each(this.tooltips,function(t,i){i.visible()&&n.push(i)}),n},isVisibleByElement:function(n){var t=!1;return _.isElement(n)&&$.each(this.getVisible()||[],function(i,r){if(r.element===n)return t=!0,!1}),t},getHighestTooltip:function(){var n=0,t;return $.each(this.tooltips,function(i,r){r.zIndex>n&&(n=r.zIndex,t=r)}),t},resetZ:function(){this.getVisible().length<=1&&$.each(this.tooltips,function(n,t){t.is("build")&&!t.options.zIndex&&t._tooltip.css({zIndex:t.zIndex=+Tooltips.options.startingZIndex})})},clearAjaxCache:function(){$.each(this.tooltips,$.proxy(function(n,t){t.options.ajax&&(t._cache&&t._cache.xhr&&(t._cache.xhr.abort(),t._cache.xhr=null),t.is("updated",!1),t.is("updating",!1),t.is("sanitized",!1))},this));AjaxCache.clear()},add:function(n){this.tooltips[n.uid]=n},remove:function(n){var t=this._getTooltips(n);this.removeTooltips(t)},removeTooltips:function(n){n&&$.each(n,$.proxy(function(n,t){var i=t.uid;delete this.tooltips[i];t.remove()},this))},removeDetached:function(){var n=this.getNests(),t=[];n.length>0&&$.each(n,function(n,i){i.is("detached")&&(t.push(i),i.attach())});$.each(this.tooltips,$.proxy(function(n,t){t.element&&!_.element.isAttached(t.element)&&this.remove(t.element)},this));$.each(t,function(n,t){t.detach()})},removeAll:function(){$.each(this.tooltips,$.proxy(function(n,t){t.element&&this.remove(t.element)},this));this.tooltips={}},setDefaultSkin:function(n){this.options.defaultSkin=n||"dark"},setStartingZIndex:function(n){this.options.startingZIndex=n||0}},Tooltips.Position={inversedPosition:{left:"right",right:"left",top:"bottom",bottom:"top",middle:"middle",center:"center"},getInversedPosition:function(n){var u=Position.split(n),t=u[1],i=u[2],f=Position.getOrientation(n),r=$.extend({horizontal:!0,vertical:!0},arguments[1]||{});return f==="horizontal"?(r.vertical&&(t=this.inversedPosition[t]),r.horizontal&&(i=this.inversedPosition[i])):(r.vertical&&(i=this.inversedPosition[i]),r.horizontal&&(t=this.inversedPosition[t])),t+i},getTooltipPositionFromTarget:function(n){var t=Position.split(n);return this.getInversedPosition(t[1]+this.inversedPosition[t[2]])}},$.extend(Tooltip.prototype,{supportsLoading:Support.css.transform&&Support.css.animation,initialize:function(element,content){var options,dataOptions,title,dt,SCRIPT_REGEX,uids,uid,parentTooltipElement,parentTooltip,target;if(this.element=element,this.element){if($.type(content)!=="object"||_.isElement(content)||_.isText(content)||_.isDocumentFragment(content)||content instanceof $?options=arguments[2]||{}:(options=content,content=null),dataOptions=$(element).data("tipped-options"),dataOptions&&(options=deepExtend($.extend({},options),eval("({"+dataOptions+"})"))),this.options=Options.create(options),this._cache={dimensions:{width:0,height:0},events:[],timers:{},layouts:{},is:{},fnCallFn:"",updatedTo:{}},this.queues={showhide:$({})},title=$(element).attr("title")||$(element).data("tipped-restore-title"),content||(dt=$(element).attr("data-tipped"),dt?content=dt:title&&(content=title),content&&(SCRIPT_REGEX=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,content=content.replace(SCRIPT_REGEX,""))),(!content||content instanceof $&&!content[0])&&!(this.options.ajax&&this.options.ajax.url||this.options.inline)){this._aborted=!0;return}title&&($(element).data("tipped-restore-title",title),$(element)[0].setAttribute("title",""));this.content=content;
26this.title=$(this.element).data("tipped-title");$.type(this.options.title)!="undefined"&&(this.title=this.options.title);this.zIndex=this.options.zIndex||+Tooltips.options.startingZIndex;uids=$(element).data("tipped-uids");uids||(uids=[]);uid=getUID();this.uid=uid;uids.push(uid);$(element).data("tipped-uids",uids);parentTooltipElement=$(this.element).closest(".tpd-tooltip")[0];parentTooltipElement&&(parentTooltip=Tooltips.getTooltipByTooltipElement(parentTooltipElement))&&parentTooltip.is("nest",!0);target=this.options.target;this.target=target==="mouse"?this.element:target==="element"||!target?this.element:_.isElement(target)?target:target instanceof $&&target[0]?target[0]:this.element;this.options.inline&&(this.content=$("#"+this.options.inline)[0]);this.options.ajax&&(this.__content=this.content);$.type(this.content)==="function"&&(this._fn=this.content);this.preBuild();Tooltips.add(this)}},remove:function(){var n,t,i,r,u,f;this.unbind();this.clearTimers();this.restoreElementToMarker();this.stopLoading();this.abort();this.is("build")&&this._tooltip&&(this._tooltip.remove(),this._tooltip=null);n=$(this.element).data("tipped-uids")||[];t=$.inArray(this.uid,n);t>-1&&(n.splice(t,1),$(this.element).data("tipped-uids",n));n.length<1&&(i="tipped-restore-title",(r=$(this.element).data(i))&&(!$(this.element)[0].getAttribute("title")!=""&&$(this.element).attr("title",r),$(this.element).removeData(i)),$(this.element).removeData("tipped-uids"));u=$(this.element).attr("class")||"";f=u.replace(/(tpd-delegation-uid-)\d+/g,"").replace(/^\s\s*/,"").replace(/\s\s*$/,"");$(this.element).attr("class",f)},detach:function(){this.options.detach&&!this.is("detached")&&(this._tooltip&&this._tooltip.detach(),this.is("detached",!0))},attach:function(){var n,t;this.is("detached")&&($.type(this.options.container)==="string"?(t=this.target,t==="mouse"&&(t=this.element),n=$($(t).closest(this.options.container).first())):n=$(this.options.container),n[0]||(n=$(document.body)),n.append(this._tooltip),this.is("detached",!1))},preBuild:function(){this.is("detached",!0);var n={left:"-10000px",top:"-10000px",opacity:0,zIndex:this.zIndex};this._tooltip=$("<div>").addClass("tpd-tooltip").addClass("tpd-skin-"+this.options.skin).addClass("tpd-size-"+this.options.size).css(n).hide();this.createPreBuildObservers()},build:function(){this.is("build")||(this.attach(),this._tooltip.append(this._skin=$("<div>").addClass("tpd-skin")).append(this._contentWrapper=$("<div>").addClass("tpd-content-wrapper").append(this._contentSpacer=$("<div>").addClass("tpd-content-spacer").append(this._titleWrapper=$("<div>").addClass("tpd-title-wrapper").append(this._titleSpacer=$("<div>").addClass("tpd-title-spacer").append(this._titleRelative=$("<div>").addClass("tpd-title-relative").append(this._titleRelativePadder=$("<div>").addClass("tpd-title-relative-padder").append(this._title=$("<div>").addClass("tpd-title"))))).append(this._close=$("<div>").addClass("tpd-close").append($("<div>").addClass("tpd-close-icon").html("×")))).append(this._contentRelative=$("<div>").addClass("tpd-content-relative").append(this._contentRelativePadder=$("<div>").addClass("tpd-content-relative-padder").append(this._content=$("<div>").addClass("tpd-content"))).append(this._inner_close=$("<div>").addClass("tpd-close").append($("<div>").addClass("tpd-close-icon").html("×")))))),this.skin=new Skin(this),this._contentSpacer.css({"border-radius":Math.max(this.skin._css.radius-this.skin._css.border,0)}),this.createPostBuildObservers(),this.is("build",!0))},createPostBuildObservers:function(){this._tooltip.delegate(".tpd-close, .close-tooltip","click",$.proxy(function(n){n.stopPropagation();n.preventDefault();this.is("api",!1);this.hide(!0)},this))},createPreBuildObservers:function(){this.bind(this.element,"mouseenter",this.setActive);this.bind(this._tooltip,Support.touch&&Browser.MobileSafari?"touchstart":"mouseenter",this.setActive);this.bind(this.element,"mouseleave",function(n){this.setIdle(n)});this.bind(this._tooltip,"mouseleave",function(n){this.setIdle(n)});this.options.showOn&&($.each(this.options.showOn,$.proxy(function(n,t){var i,r=!1,u;switch(n){case"element":i=this.element;this.options.hideOn&&this.options.showOn&&this.options.hideOn.element==="click"&&this.options.showOn.element==="click"&&(r=!0,this.is("toggleable",r));break;case"tooltip":i=this._tooltip;break;case"target":i=this.target}i&&t&&(u=t,this.bind(i,u,t==="click"&&r?function(){this.is("api",!1);this.toggle()}:function(){this.is("api",!1);this.showDelayed()}))},this)),Support.touch&&Browser.MobileSafari&&this.bind(this._tooltip,"touchend",function(){this._tooltipTouchEndTime=(new Date).getTime()}));this.options.hideOn&&$.each(this.options.hideOn,$.proxy(function(n,t){var i,r;switch(n){case"element":if(this.is("toggleable")&&t==="click")return;i=this.element;break;case"tooltip":i=this._tooltip;break;case"target":i=this.target}i&&t&&(r=t,Support.touch&&Browser.MobileSafari&&/^(target|element)/.test(n)&&/mouse(leave|out)/.test(r)?this.bind(i,r,function(n){if(this._tooltipTouchEndTime&&/^mouse(leave|out)$/.test(n.type)){var t=(new Date).getTime();if(t-this._tooltipTouchEndTime<450)return}this.is("api",!1);this.hideDelayed()}):this.bind(i,r,function(){this.is("api",!1);this.hideDelayed()}))},this));this.options.hideOnClickOutside&&($(this.element).addClass("tpd-hideOnClickOutside"),this.bind(document.documentElement,"click touchend",$.proxy(function(n){if(this.visible()){var t=$(n.target).closest(".tpd-tooltip, .tpd-hideOnClickOutside")[0];(!t||t&&t!==this._tooltip[0]&&t!==this.element)&&this.hide()}},this)));this.options.target==="mouse"&&this.bind(this.element,"mouseenter mousemove",$.proxy(function(n){this._cache.event=n},this));var n=!1;this.options.showOn&&this.options.target==="mouse"&&!this.options.fixed&&(n=!0);n&&this.bind(this.element,"mousemove",function(){this.is("build")&&(this.is("api",!1),this.position())})}}),$.extend(Tooltip.prototype,{stop:function(){if(this._tooltip){var n=this.queues.showhide;n.queue([]);this._tooltip.stop(1,0)}},showDelayed:function(){this.is("disabled")||(this.clearTimer("hide"),this.is("visible")||this.getTimer("show"))||this.setTimer("show",$.proxy(function(){this.clearTimer("show");this.show()},this),this.options.showDelay||1)},show:function(){if(this.clearTimer("hide"),!this.visible()&&!this.is("disabled")&&$(this.target).is(":visible")){this.is("visible",!0);this.attach();this.stop();var n=this.queues.showhide;this.is("updated")||this.is("updating")||n.queue($.proxy(function(n){this._onResizeDimensions={width:0,height:0};this.update($.proxy(function(t){if(t){this.is("visible",!1);this.detach();return}n()},this))},this));n.queue($.proxy(function(n){this.is("sanitized")?(this.stopLoading(),this._contentWrapper.css({visibility:"visible"}),this.is("resize-to-content",!0),n()):(this._contentWrapper.css({visibility:"hidden"}),this.startLoading(),this.sanitize($.proxy(function(){this.stopLoading();this._contentWrapper.css({visibility:"visible"});this.is("resize-to-content",!0);n()},this)))},this));n.queue($.proxy(function(n){this.position();this.raise();n()},this));n.queue($.proxy(function(n){if(this.is("updated")&&$.type(this.options.onShow)==="function"){var t=new Visible(this._tooltip);this.options.onShow(this._content[0],this.element);
26t.restore();n()}else n()},this));n.queue($.proxy(function(n){this._show(this.options.fadeIn,function(){n()})},this))}},_show:function(n,t){n=($.type(n)==="number"?n:this.options.fadeIn)||0;t=t||($.type(arguments[0])=="function"?arguments[0]:!1);this.options.hideOthers&&Tooltips.hideAll(this);this._tooltip.fadeTo(n,1,$.proxy(function(){t&&t()},this))},hideDelayed:function(){(this.clearTimer("show"),this.getTimer("hide")||!this.visible()||this.is("disabled"))||this.setTimer("hide",$.proxy(function(){this.clearTimer("hide");this.hide()},this),this.options.hideDelay||1)},hide:function(n,t){if(this.clearTimer("show"),this.visible()&&!this.is("disabled")){this.is("visible",!1);this.stop();var i=this.queues.showhide;i.queue($.proxy(function(n){this.abort();n()},this));i.queue($.proxy(function(t){this._hide(n,t)},this));i.queue(function(n){Tooltips.resetZ();n()});i.queue($.proxy(function(n){this.clearUpdatedTo();n()},this));$.type(this.options.afterHide)==="function"&&this.is("updated")&&i.queue($.proxy(function(n){this.options.afterHide(this._content[0],this.element);n()},this));!this.options.cache&&(this.options.ajax||this._fn)&&i.queue($.proxy(function(n){this.is("updated",!1);this.is("updating",!1);this.is("sanitized",!1);n()},this));$.type(t)==="function"&&i.queue(function(n){t();n()});i.queue($.proxy(function(n){this.detach();n()},this))}},_hide:function(n,t){t=t||($.type(arguments[0])==="function"?arguments[0]:!1);this.attach();this._tooltip.fadeTo(n?0:this.options.fadeOut,0,$.proxy(function(){this.stopLoading();this.is("resize-to-content",!1);this._tooltip.hide();t&&t()},this))},toggle:function(){this.is("disabled")||this[this.visible()?"hide":"show"]()},raise:function(){if(this.is("build")&&!this.options.zIndex){var n=Tooltips.getHighestTooltip();n&&n!==this&&this.zIndex<=n.zIndex&&(this.zIndex=n.zIndex+1,this._tooltip.css({"z-index":this.zIndex}),this._tooltipShadow&&(this._tooltipShadow.css({"z-index":this.zIndex}),this.zIndex=n.zIndex+2,this._tooltip.css({"z-index":this.zIndex})))}}}),$.extend(Tooltip.prototype,{createElementMarker:function(){!this.elementMarker&&this.content&&_.element.isAttached(this.content)&&($(this.content).data("tpd-restore-inline-display",$(this.content).css("display")),this.elementMarker=$("<div>").hide(),$(this.content).before($(this.elementMarker).hide()))},restoreElementToMarker:function(){var n;this.elementMarker&&this.content&&((n=$(this.content).data("tpd-restore-inline-display"))&&$(this.content).css({display:n}),$(this.elementMarker).before(this.content).remove())},startLoading:function(){this.is("loading")||(this.build(),this.is("loading",!0),this.options.spinner)&&(this._tooltip.addClass("tpd-is-loading"),this.skin.startLoading(),this.is("resize-to-content")||(this.position(),this.raise(),this._show()))},stopLoading:function(){(this.build(),this.is("loading",!1),this.options.spinner)&&(this._tooltip.removeClass("tpd-is-loading"),this.skin.stopLoading())},abort:function(){this.abortAjax();this.abortSanitize();this.is("refreshed-before-sanitized",!1)},abortSanitize:function(){this._cache.voila&&(this._cache.voila.abort(),this._cache.voila=null)},abortAjax:function(){this._cache.xhr&&(this._cache.xhr.abort(),this._cache.xhr=null,this.is("updated",!1),this.is("updating",!1))},update:function(n){var r,u,t,e;if(!this.is("updating")){this.is("updating",!0);this.build();r=this.options.inline?"inline":this.options.ajax?"ajax":_.isElement(this.content)||_.isText(this.content)||_.isDocumentFragment(this.content)?"element":this._fn?"function":"html";this._contentWrapper.css({visibility:"hidden"});switch(r){case"html":case"element":case"inline":if(this.is("updated")){n&&n();return}this._update(this.content,n);break;case"function":if(this.is("updated")){n&&n();return}if(u=this._fn(this.element),!u){this.is("updating",!1);n&&n(!0);return}this._update(u,n);break;case"ajax":var i=this.options.ajax||{},s=i.url||this.__content,h=i.data||{},r=i.type||"GET",o=i.dataType,f={url:s,data:h};if(r&&$.extend(f,{type:r}),o&&$.extend(f,{dataType:o}),t=$.extend({},f,i),t.method&&(t=$.extend({},t),delete t.method),$.each("complete error success".split(" "),$.proxy(function(i,r){t[r]||(t[r]=r==="success"?function(n,t,i){return i.responseText}:function(){});t[r]=_.wrap(t[r],$.proxy(function(i){var u=_slice.call(arguments,1
26),e=$.type(u[0]==="object")?u[0]:u[2],f;e.statusText&&e.statusText==="abort"||(this.options.cache&&AjaxCache.set({url:t.url,type:t.type,data:t.data},r,u),this._cache.xhr=null,f=i.apply(this,u),f&&this._update(f,n))},this))},this)),this.options.cache&&(e=AjaxCache.get(t))&&e.callbacks.success){$.each(e.callbacks,$.proxy(function(n,i){$.type(t[n])==="function"&&t[n].apply(this,i)},this));return}this.startLoading();this._cache.xhr=$.ajax(t)}}},_update:function(n,t){var r={title:this.options.title,close:this.options.close};$.type(n)==="string"||_.isElement(n)||_.isText(n)||_.isDocumentFragment(n)||n instanceof $?r.content=n:$.extend(r,n);var n=r.content,u=r.title,i=r.close;this.content=n;this.title=u;this.close=i;this.createElementMarker();(_.isElement(n)||n instanceof $)&&$(n).show();this._content.html(this.content);this._title.html(u&&$.type(u)==="string"?u:"");this._titleWrapper[u?"show":"hide"]();this._close[(this.title||this.options.title)&&i?"show":"hide"]();var f=i&&!(this.options.title||this.title),e=i&&!(this.options.title||this.title)&&i!=="overlap",o=i&&(this.options.title||this.title)&&i!=="overlap";this._inner_close[f?"show":"hide"]();this._tooltip[(e?"add":"remove")+"Class"]("tpd-has-inner-close");this._tooltip[(o?"add":"remove")+"Class"]("tpd-has-title-close");this._content[(this.options.padding?"remove":"add")+"Class"]("tpd-content-no-padding");this.finishUpdate(t)},sanitize:function(n){if(!this.options.voila||this._content.find("img").length<1){this.is("sanitized",!0);n&&n();return}this._cache.voila=Voila(this._content,{method:"onload"},$.proxy(function(t){this._markImagesAsSanitized(t.images);this.is("refreshed-before-sanitized")?(this.is("refreshed-before-sanitized",!1),this.sanitize(n)):(this.is("sanitized",!0),n&&n())},this))},_markImagesAsSanitized:function(n){$.each(n,function(n,t){var i=t.img;$(i).data("completed-src",t.img.src)})},_hasAllImagesSanitized:function(){var n=!0;return this._content.find("img").each(function(t,i){var r=$(i).data("completed-src");if(!r||i.src!==r)return n=!1,!1}),n},refresh:function(){if(this.visible()){if(!this.is("sanitized")){this.is("refreshed-before-sanitized",!0);return}this.is("refreshing",!0);this.clearTimer("refresh-spinner");!this.options.voila||this._content.find("img").length<1||this._hasAllImagesSanitized()?(this.is("should-update-dimensions",!0),this.position(),this.is("refreshing",!1)):(this.is("sanitized",!1),this._contentWrapper.css({visibility:"hidden"}),this.startLoading(),this.sanitize($.proxy(function(){this._contentWrapper.css({visibility:"visible"});this.stopLoading();this.is("should-update-dimensions",!0);this.position();this.is("refreshing",!1)},this)))}},finishUpdate:function(n){if(this.is("updated",!0),this.is("updating",!1),$.type(this.options.afterUpdate)==="function"){var t=this._contentWrapper.css("visibility");t&&this._contentWrapper.css({visibility:"visible"});this.options.afterUpdate(this._content[0],this.element);t&&this._contentWrapper.css({visibility:"hidden"})}n&&n()}}),$.extend(Tooltip.prototype,{clearUpdatedTo:function(){this._cache.updatedTo={}},updateDimensionsToContent:function(n,t){var v,y,nt,i,w,ut,k,s,r,o,l,a,rt,g;if((this.skin.build(),v=this.is("loading"),y=this._cache.updatedTo,this._maxWidthPass||this.is("api")||this.is("should-update-dimensions")||y.stemPosition!==t||y.loading!==v)&&(!v||!this.is("resize-to-content"))){this._cache.updatedTo={type:this.is("resize-to-content")?"content":"spinner",loading:this.is("loading"),stemPosition:t};this.is("should-update-dimensions")&&this.is("should-update-dimensions",!1);n=n||this.options.position.target;t=t||this.options.position.tooltip;var u=Position.getSide(t),p=Position.getOrientation(t),e=this.skin._css.border,ot=e+"px ";if(this._tooltip.addClass("tpd-tooltip-measuring"),nt=this._tooltip.attr("style"),this._tooltip.removeAttr("style"),i={top:e,right:e,bottom:e,left:e},s=0,Position.getOrientation(t)==="vertical"){this.options.stem&&(i[u]=this.skin["stem_"+u].getMath().dimensions.outside.height);w=this.getMouseRoom();w[Position._flip[u]]&&(i[u]+=w[Position._flip[u]]);var h=this.getContainmentLayout(t),f=this.getPaddingLine(n),b=!1;Position.isPointWithinBoxLayout(f.x1,f.y1,h)||Position.isPointWithinBoxLayout(f.x2,f.y2,h)?b=!0:(ut=!1,$.each("top right bottom left".split(" "),$.proxy(function(n,t){var i=this.getSideLine(h,t);
26if(Position.intersectsLine(f.x1,f.y1,f.x2,f.y2,i.x1,i.y1,i.x2,i.y2))return b=!0,!1},this)));b&&(s=u==="left"?f.x1-h.position.left:h.position.left+h.dimensions.width-f.x1,i[u]+=s)}this.options.offset&&p==="vertical"&&(k=Position.adjustOffsetBasedOnPosition(this.options.offset,this.options.position.target,n),k.x!==0&&(i.right+=Math.abs(k.x)));this.options.containment&&(s=this.options.containment.padding)&&($.each(i,function(n){i[n]+=s}),p==="vertical"?i[u==="left"?"left":"right"]-=s:i[u==="top"?"top":"bottom"]-=s);var d=Bounds.viewport(),ft=this.close&&this.close!=="overlap"&&!this.title,c={width:0,height:0};if(ft&&(c=this._innerCloseDimensions||{width:this._inner_close.outerWidth(!0),height:this._inner_close.outerHeight(!0)},this._innerCloseDimensions=c),this._contentRelativePadder.css({"padding-right":c.width}),this._contentSpacer.css({width:d.width-i.left-i.right}),r={width:this._content.innerWidth()+c.width,height:Math.max(this._content.innerHeight(),c.height||0)},o={width:0,height:0},this.title&&(l={width:0,height:0},this._titleWrapper.add(this._titleSpacer).css({width:"auto",height:"auto"}),this.close&&this.close!=="overlap"&&(l={width:this._close.outerWidth(!0),height:this._close.outerHeight(!0)},this._close.hide()),this._maxWidthPass&&r.width>this.options.maxWidth&&this._titleRelative.css({width:r.width}),this._titleRelativePadder.css({"padding-right":l.width}),a=parseFloat(this._titleWrapper.css("border-bottom-width")),o={width:this.title?this._titleWrapper.innerWidth():0,height:Math.max(this.title?this._titleWrapper.innerHeight()+a:0,l.height+a)},o.width>d.width-i.left-i.right&&(o.width=d.width-i.left-i.right,this._titleSpacer.css({width:o.width}),o.height=Math.max(this.title?this._titleWrapper.innerHeight()+a:0,l.height+a)),r.width=Math.max(o.width,r.width),r.height+=o.height,this._titleWrapper.css({height:Math.max(this.title?this._titleWrapper.innerHeight():0,l.height)}),this.close&&this._close.show()),this.options.stem){var tt=p==="vertical"?"height":"width",et=this.skin["stem_"+u].getMath(),it=et.outside.width+2*this.skin._css.radius;r[tt]<it&&(r[tt]=it)}this._contentSpacer.css({width:r.width});r.height!==Math.max(this._content.innerHeight(),c.height)+(this.title?this._titleRelative.outerHeight():0)&&r.width++;this.is("resize-to-content")||(r=this.skin._css.spinner.dimensions);this.setDimensions(r);i={top:e,right:e,bottom:e,left:e};this.options.stem&&(rt=Position.getSide(t),i[rt]=this.skin.stem_top.getMath().dimensions.outside.height);this._contentSpacer.css({"margin-top":i.top,"margin-left":+i.left,width:r.width});(this.title||this.close)&&this._titleWrapper.css({height:this._titleWrapper.innerHeight(),width:r.width});this._tooltip.removeClass("tpd-tooltip-measuring");this._tooltip.attr("style",nt);g=this._contentRelative.add(this._titleRelative);this.options.maxWidth&&r.width>this.options.maxWidth&&!this._maxWidthPass&&this.is("resize-to-content")&&(g.css({width:this.options.maxWidth}),this._maxWidthPass=!0,this.updateDimensionsToContent(n,t),this._maxWidthPass=!1,g.css({width:"auto"}))}},setDimensions:function(n){this.skin.setDimensions(n)},getContainmentSpace:function(n,t){var o=this.getContainmentLayout(n,t),s=this.getTargetLayout(),i=s.position,f=s.dimensions,r=o.position,u=o.dimensions,e={top:Math.max(i.top-r.top,0),bottom:Math.max(r.top+u.height-(i.top+f.height),0),left:Math.max(i.left-r.left,0),right:Math.max(r.left+u.width-(i.left+f.width),0)};return i.top>r.top+u.height&&(e.top-=i.top-(r.top+u.height)),i.top+f.height<r.top&&(e.bottom-=r.top-(i.top+f.height)),i.left>r.left+u.width&&r.left+u.width>=i.left&&(e.left-=i.left-(r.left+u.width)),i.left+f.width<r.left&&(e.right-=r.left-(i.left+f.width)),this._cache.layouts.containmentSpace=e,e},position:function(){var y,r,f,s;if(this.visible()){this.is("positioning",!0);this._cache.layouts={};var g=this._cache.dimensions,h=this.options.position.target,a=this.options.position.tooltip,n=a,i=h;this.updateDimensionsToContent(i,n);var w=this.getPositionBasedOnTarget(i,n),t=deepExtend(w),e=[];if(this.options.containment){var v=!1,c={};if($.each("top right bottom left".split(" "),$.proxy(function(t,i){(c[i]=this.isSideWithinContainment(i,n,!0))&&(v=!0)},this)),v||(t.contained=!0),t.contained)this.setPosition(t);else if(e.unshift({position:t,targetPosition:i,stemPosition:n}),y=Position.flip(h),i=y,n=Position.flip(a),c[Position.getSide(i)]?(this.updateDimensionsToContent(i,n),t=this.getPositionBasedOnTarget(i,n)):t.contained=!1,t.contained)this.setPosition(t,n);else{e.unshift({position:t,targetPosition:i,stemPosition:n});var l=h,o=this.getContainmentSpace(n,!0),u=Position.getOrientation(l)==="horizontal"?["left","right"]:["top","bottom"],b=o[u[0]]===o[u[1]]?Position.getOrientation(l)==="horizontal"?"left"
26:"top":u[o[u[0]]>o[u[1]]?0:1];var k=Position.split(l)[1],p=b+k,d=Position.flip(p);i=p;n=d;c[Position.getSide(i)]?(this.updateDimensionsToContent(i,n),t=this.getPositionBasedOnTarget(i,n)):t.contained=!1;t.contained?this.setPosition(t,n):(e.unshift({position:t,targetPosition:i,stemPosition:n}),f=[],$.each(e,function(n,t){if(t.position.top>=0&&t.position.left>=0)r=t;else{var i=t.position.top>=0?1:Math.abs(t.position.top),u=t.position.left>=0?1:Math.abs(t.position.left);f.push({result:t,negativity:i*u})}}),r||(s=f[f.length-1],$.each(f,function(n,t){t.negativity<s.negativity&&(s=t)}),r=s.result),this.updateDimensionsToContent(r.targetPosition,r.stemPosition,!0),this.setPosition(r.position,r.stemPosition))}}else this.setPosition(t);this._cache.dimensions=this.skin._vars.dimensions;this.skin.paint();this.is("positioning",!1)}},getPositionBasedOnTarget:function(n,t){var ft,nt,et,tt,d,ri,wt,f,o,r,ht,ct;t=t||this.options.position.tooltip;var e=this.getTargetDimensions(),s={left:0,top:0},h={left:0,top:0},oi=Position.getSide(n),l=this.skin._vars,bt=l.frames[Position.getSide(t)],fi=Position.getOrientation(n),ut=Position.split(n),a;if(fi==="horizontal"){a=Math.floor(e.width*.5);switch(ut[2]){case"left":h.left=a;break;case"middle":s.left=e.width-a;h.left=s.left;break;case"right":s.left=e.width;h.left=e.width-a}ut[1]==="bottom"&&(s.top=e.height,h.top=e.height)}else{a=Math.floor(e.height*.5);switch(ut[2]){case"top":h.top=a;break;case"middle":s.top=e.height-a;h.top=s.top;break;case"bottom":h.top=e.height-a;s.top=e.height}ut[1]==="right"&&(s.left=e.width,h.left=e.width)}var kt=this.getTargetPosition(),u=$.extend({},e,{top:kt.top,left:kt.left,connection:s,max:h}),i={width:bt.dimensions.width,height:bt.dimensions.height,top:0,left:0,connection:l.connections[t].connection,stem:l.connections[t].stem};if(i.top=u.top+u.connection.top,i.left=u.left+u.connection.left,i.top-=i.connection.top,i.left-=i.connection.left,this.options.stem&&(ft=l.stemDimensions.width,r={stem:{top:i.top+i.stem.connection.top,left:i.left+i.stem.connection.left},connection:{top:u.top+u.connection.top,left:u.left+u.connection.left},max:{top:u.top+u.max.top,left:u.left+u.max.left}},!Position.isPointWithinBox(r.stem.left,r.stem.top,r.connection.left,r.connection.top,r.max.left,r.max.top))){var r={stem:{top:i.top+i.stem.connection.top,left:i.left+i.stem.connection.left},connection:{top:u.top+u.connection.top,left:u.left+u.connection.left},max:{top:u.top+u.max.top,left:u.left+u.max.left}},g={connection:Position.getDistance(r.stem.left,r.stem.top,r.connection.left,r.connection.top),max:Position.getDistance(r.stem.left,r.stem.top,r.max.left,r.max.top)},dt=Math.min(g.connection,g.max),gt=r[g.connection<=g.max?"connection":"max"],y=Position.getOrientation(t)==="horizontal"?"left":"top",ei=Position.getDistance(r.connection.left,r.connection.top,r.max.left,r.max.top);if(ft<=ei)nt={top:0,left:0},et=gt[y]<r.stem[y]?-1:1,nt[y]=dt*et,nt[y]+=Math.floor(ft*.5)*et,i.left+=nt.left,i.top+=nt.top;else{$.extend(r,{center:{top:Math.round(u.top+e.height*.5),left:Math.round(u.left+e.left*.5)}});var ni={connection:Position.getDistance(r.center.left,r.center.top,r.connection.left,r.connection.top),max:Position.getDistance(r.center.left,r.center.top,r.max.left,r.max.top)},dt=g[ni.connection<=ni.max?"connection":"max"],lt={top:0,left:0},et=gt[y]<r.stem[y]?-1:1;lt[y]=dt*et;i.left+=lt.left;i.top+=lt.top}}this.options.offset&&(tt=$.extend({},this.options.offset),tt=Position.adjustOffsetBasedOnPosition(tt,this.options.position.target,n),i.top+=tt.y,i.left+=tt.x);var c=this.getContainment({top:i.top,left:i.left},t),at=c.horizontal&&c.vertical,b={x:0,y:0},ti=Position.getOrientation(t);if(!c[ti]){var it=ti==="horizontal",rt=it?["left","right"]:["up","down"],v=it?"x":"y",p=it?"left":"top",w=c.correction[v],ii=this.getContainmentLayout(t),k=ii.position[it?"left":"top"];if(w!==0){var vt=l.connections[t].move,yt=vt[rt[w*-1<0?0:1]],pt=w<0?-1:1;if(yt>=w*pt&&i[p]+w>=k)i[p]+=w,b[v]=w*-1,at=!0;else if(Position.getOrientation(n)===Position.getOrientation(t)){i[p]+=yt*pt;b[v]=yt*pt*-1;i[p]<k&&(d=k-i[p],ri=vt[rt[0]]+vt[rt[1]],d=Math.min(d,ri),i[p]+=d,wt=b[v]-d,wt>=l.connections[t].move[rt[0]]&&wt<=l.connections[t].move[rt[1]]&&(b[v]-=d));
26c=this.getContainment({top:i.top,left:i.left},t);f=c.correction[v];o=deepExtend({},i);this.options.offset&&(o.left-=this.options.offset.x,o.top-=this.options.offset.y);r={stem:{top:o.top+i.stem.connection.top,left:o.left+i.stem.connection.left}};r.stem[p]+=b[v];var ot=this.getTargetLayout(),ft=l.stemDimensions.width,st=Math.floor(ft*.5),ui=k+ii.dimensions[it?"width":"height"];v==="x"?(ht=ot.position.left+st,f>0&&(ht+=ot.dimensions.width-st*2),(f<0&&r.stem.left+f>=ht&&o.left+f>=k||f>0&&r.stem.left+f<=ht&&o.left+f<=ui)&&(o.left+=f)):(ct=ot.position.top+st,f>0&&(ct+=ot.dimensions.height-st*2),(f<0&&r.stem.top+f>=ct&&o.top+f>=k||f>0&&r.stem.top+f<=ct&&o.top+f<=ui)&&(o.top+=f));i=o;this.options.offset&&(i.left+=this.options.offset.x,i.top+=this.options.offset.y)}}c=this.getContainment({top:i.top,left:i.left},t);at=c.horizontal&&c.vertical}return{top:i.top,left:i.left,contained:at,shift:b}},setPosition:function(n,t){var u=this._position,i,r;if(!(u&&u.top===n.top&&u.left===n.left)){if(this.options.container!==document.body&&($.type(this.options.container)==="string"?(r=this.target,r==="mouse"&&(r=this.element),i=$($(r).closest(this.options.container).first())):i=$(i),i[0])){var f=$(i).offset(),e={top:Math.round(f.top),left:Math.round(f.left)},o={top:Math.round($(i).scrollTop()),left:Math.round($(i).scrollLeft())};n.top-=e.top;n.top+=o.top;n.left-=e.left;n.left+=o.left}this._position=n;this._tooltip.css({top:n.top,left:n.left})}this.skin.setStemPosition(t||this.options.position.tooltip,n.shift||{x:0,y:0})},getSideLine:function(n,t){var u=n.position.left,f=n.position.top,i=n.position.left,r=n.position.top;switch(t){case"top":i+=n.dimensions.width;break;case"bottom":f+=n.dimensions.height;i+=n.dimensions.width;r+=n.dimensions.height;break;case"left":r+=n.dimensions.height;break;case"right":u+=n.dimensions.width;i+=n.dimensions.width;r+=n.dimensions.height}return{x1:u,y1:f,x2:i,y2:r}},isSideWithinContainment:function(n,t,i){var u=this.getContainmentLayout(t,i),e=this.getTargetLayout(),r=this.getSideLine(e,n),f;return Position.isPointWithinBoxLayout(r.x1,r.y1,u)||Position.isPointWithinBoxLayout(r.x2,r.y2,u)?!0:(f=!1,$.each("top right bottom left".split(" "),$.proxy(function(n,t){var i=this.getSideLine(u,t);if(Position.intersectsLine(r.x1,r.y1,r.x2,r.y2,i.x1,i.y1,i.x2,i.y2))return f=!0,!1},this)),f)},getContainment:function(n,t){var r={horizontal:!0,vertical:!0,correction:{y:0,x:0}},i,u;return this.options.containment&&(i=this.getContainmentLayout(t),u=this.skin._vars.frames[Position.getSide(t)].dimensions,this.options.containment&&((n.left<i.position.left||n.left+u.width>i.position.left+i.dimensions.width)&&(r.horizontal=!1,r.correction.x=n.left<i.position.left?i.position.left-n.left:i.position.left+i.dimensions.width-(n.left+u.width)),(n.top<i.position.top||n.top+u.height>i.position.top+i.dimensions.height)&&(r.vertical=!1,r.correction.y=n.top<i.position.top?i.position.top-n.top:i.position.top+i.dimensions.height-(n.top+u.height)))),r},getContainmentLayout:function(n,t){var s={top:$(window).scrollTop(),left:$(window).scrollLeft()},f=this.target,u,i,r,e,o;return f==="mouse"&&(f=this.element),u=$(f).closest(this.options.containment.selector).first()[0],i=u&&this.options.containment.selector!=="viewport"?{dimensions:{width:$(u).innerWidth(),height:$(u).innerHeight()},position:$(u).offset()}:{dimensions:Bounds.viewport(),position:s},r=this.options.containment.padding,r&&!t&&(e=Math.max(i.dimensions.height,i.dimensions.width),r*2>e&&(r=Math.max(Math.floor(e*.5),0)),r&&(i.dimensions.width-=2*r,i.dimensions.height-=2*r,i.position.top+=r,i.position.left+=r,o=Position.getOrientation(n),o==="vertical"?(i.dimensions.width+=r,Position.getSide(n)==="left"&&(i.position.left-=r)):(i.dimensions.height+=r,Position.getSide(n)==="top"&&(i.position.top-=r)))),this._cache.layouts.containmentLayout=i,i},getMouseRoom:function(){var i={top:0,left:0,right:0,bottom:0};if(this.options.target==="mouse"&&!this.is("api")){var n=Mouse.getActualPosition(this._cache.event),t=$(this.element).offset(),r={width:$(this.element).innerWidth(),height:$(this.element).innerHeight()};i={top:Math.max(0,n.top-t.top),bottom:Math.max(0,t.top+r.height-n.top),left
26:Math.max(0,n.left-t.left),right:Math.max(0,t.left+r.width-n.left)}}return i},getTargetPosition:function(){var t,n;return this.options.target==="mouse"?this.is("api")?(n=$(this.element).offset(),t={top:Math.round(n.top),left:Math.round(n.left)}):t=Mouse.getPosition(this._cache.event):(n=$(this.target).offset(),t={top:Math.round(n.top),left:Math.round(n.left)}),this._cache.layouts.targetPosition=t,t},getTargetDimensions:function(){if(this._cache.layouts.targetDimensions)return this._cache.layouts.targetDimensions;var n;return n=this.options.target==="mouse"?Mouse.getDimensions():{width:$(this.target).innerWidth(),height:$(this.target).innerHeight()},this._cache.layouts.targetDimensions=n,n},getTargetLayout:function(){if(this._cache.layouts.targetLayout)return this._cache.layouts.targetLayout;var n={position:this.getTargetPosition(),dimensions:this.getTargetDimensions()};return this._cache.layouts.targetLayout=n,n},getPaddingLine:function(n){var t=this.getTargetLayout(),r="left",f,i,u;return Position.getOrientation(n)==="vertical"?this.getSideLine(t,Position.getSide(n)):Position.isCorner(n)?(f=Position.inverseCornerPlane(n),r=Position.getSide(f),this.getSideLine(t,r)):(i=this.getSideLine(t,r),u=Math.round(t.dimensions.width*.5),i.x1+=u,i.x2+=u,i)}}),$.extend(Tooltip.prototype,{setActive:function(){this.is("active",!0);this.visible()&&this.raise();this.options.hideAfter&&this.clearTimer("idle")},setIdle:function(){this.is("active",!1);this.options.hideAfter&&this.setTimer("idle",$.proxy(function(){this.clearTimer("idle");this.is("active")||this.hide()},this),this.options.hideAfter)}}),$.extend(Tooltip.prototype,{bind:function(n,t,i,r){var u=$.proxy(i,r||this);this._cache.events.push({element:n,eventName:t,handler:u});$(n).bind(t,u)},unbind:function(){$.each(this._cache.events,function(n,t){$(t.element).unbind(t.eventName,t.handler)});this._cache.events=[]}}),$.extend(Tooltip.prototype,{disable:function(){this.is("disabled")||this.is("disabled",!0)},enable:function(){this.is("disabled")&&this.is("disabled",!1)}}),$.extend(Tooltip.prototype,{is:function(n,t){return $.type(t)==="boolean"&&(this._cache.is[n]=t),this._cache.is[n]},visible:function(){return this.is("visible")}}),$.extend(Tooltip.prototype,{setTimer:function(n,t,i){this._cache.timers[n]=_.delay(t,i)},getTimer:function(n){return this._cache.timers[n]},clearTimer:function(n){this._cache.timers[n]&&(clearTimeout(this._cache.timers[n]),delete this._cache.timers[n])},clearTimers:function(){$.each(this._cache.timers,function(n,t){clearTimeout(t)});this._cache.timers={}}}),$.extend(Tipped,{init:function(){Tooltips.init()},create:function(n,t){var r=$.extend({},arguments[2]||{}),i=[];return _.isElement(n)?i.push(new Tooltip(n,t,r)):$(n).each(function(n,u){i.push(new Tooltip(u,t,r))}),new Collection(i)},get:function(n){var t=Tooltips.get(n);return new Collection(t)},findElement:function(n){return Tooltips.findElement(n)},hideAll:function(){return Tooltips.hideAll(),this},setDefaultSkin:function(n){return Tooltips.setDefaultSkin(n),this},visible:function(n){if(_.isElement(n))return Tooltips.isVisibleByElement(n);if($.type(n)!=="undefined"){var i=$(n),t=0;return $.each(i,function(n,i){Tooltips.isVisibleByElement(i)&&t++}),t}return Tooltips.getVisible().length},clearAjaxCache:function(){return Tooltips.clearAjaxCache(),this},refresh:function(n,t,i){return Tooltips.refresh(n,t,i),this},setStartingZIndex:function(n){return Tooltips.setStartingZIndex(n),this},remove:function(n){return Tooltips.remove(n),this}}),$.each("show hide toggle disable enable".split(" "),function(n,t){Tipped[t]=function(n){return this.get(n)[t](),this}}),$.extend(Tipped,{delegate:function(){Delegations.add.apply(Delegations,_slice.call(arguments))},undelegate:function(){Delegations.remove.apply(Delegations,_slice.call(arguments))}}),Delegations={_uid:0,_delegations:{},add:function(n,t,i){var i,r,u,f;$.type(t)!=="object"||_.isElement(t)?i=arguments[2]||{}:(i=t,t=null);r=++this._uid;u=Options.create($.extend({},i));this._delegations[r]={uid:r,selector:n,content:t,options:u};f=function(n){$(this).addClass("tpd-delegation-uid-"+r);var u=new Tooltip(this,t,i);u._cache.event=n;u.setActive();
26u.showDelayed()};this._delegations[r].removeTitleHandler=$.proxy(this.removeTitle,this);$(document).delegate(n+":not(.tpd-delegation-uid-"+r+")","mouseenter",this._delegations[r].removeTitleHandler);this._delegations[r].handler=f;$(document).delegate(n+":not(.tpd-delegation-uid-"+r+")",u.showOn.element,f)},removeTitle:function(n){var t=n.currentTarget,i=$(t).attr("title");i&&($(t).data("tipped-restore-title",i),$(t)[0].setAttribute("title",""))},remove:function(n){$.each(this._delegations,$.proxy(function(t,i){i.selector===n&&($(document).undelegate(n+":not(.tpd-delegation-uid-"+t+")","mouseenter",i.removeTitleHandler).undelegate(n+":not(.tpd-delegation-uid-"+t+")",i.options.showOn.element,i.handler),delete this._delegations[t])},this))},removeAll:function(){$.each(this._delegations,$.proxy(function(n,t){$(document).undelegate(t.selector+":not(.tpd-delegation-uid-"+n+")","mouseenter",t.removeTitleHandler).undelegate(t.selector+":not(.tpd-delegation-uid-"+n+")",t.options.showOn.element,t.handler);delete this._delegations[n]},this))}},$.extend(Collection.prototype,{initialize:function(n){return this.tooltips=n,this},items:function(){return $.each(this.tooltips,function(n,t){t.is("api",!0)}),this.tooltips},refresh:function(){return $.each(this._tooltips,function(n,t){t.is("visible")&&t.refresh()}),this},remove:function(){return Tooltips.removeTooltips(this.tooltips),this.tooltips=[],this}}),$.each("show hide toggle disable enable".split(" "),function(n,t){Collection.prototype[t]=function(){return $.each(this.tooltips,function(n,i){i.is("api",!0);i[t]()}),this}}),Tipped.init(),Tipped});window.Modernizr=function(n,t,i){function w(n){d.cssText=n}function u(n,t){return typeof n===t}function rt(n,t){return!!~(""+n).indexOf(t)}function b(n,t){var u,r;for(u in n)if(r=n[u],!rt(r,"-")&&d[r]!==i)return t=="pfx"?r:!0;return!1}function ut(n,t,r){var e,f;for(e in n)if(f=t[n[e]],f!==i)return r===!1?n[e]:u(f,"function")?f.bind(r||t):f;return!1}function ft(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),f=(n+" "+nt.join(r+" ")+r).split(" ");return u(t,"string")||u(t,"undefined")?b(f,t):(f=(n+" "+tt.join(r+" ")+r).split(" "),ut(f,t,i))}var r={},c=!0,f=t.documentElement,o="modernizr",k=t.createElement(o),d=k.style,et,ht={}.toString,l=" -webkit- -moz- -o- -ms- ".split(" "),g="Webkit Moz O ms",nt=g.split(" "),tt=g.toLowerCase().split(" "),e={},a=[],v=a.slice,s,it=function(n,i,r,u){var l,a,c,v,e=t.createElement("div"),h=t.body,s=h||t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:o+(r+1),e.appendChild(c);return l=["­",'<style id="s',o,'">',n,"<\/style>"].join(""),e.id=o,(h?e:s).innerHTML+=l,s.appendChild(e),h||(s.style.background="",s.style.overflow="hidden",v=f.style.overflow,f.style.overflow="hidden",f.appendChild(s)),a=i(e,n),h?e.parentNode.removeChild(e):(s.parentNode.removeChild(s),f.style.overflow=v),!!a},ot=function(){function n(n,f){f=f||t.createElement(r[n]||"div");n="on"+n;var e=n in f;return e||(f.setAttribute||(f=t.createElement("div")),f.setAttribute&&f.removeAttribute&&(f.setAttribute(n,""),e=u(f[n],"function"),u(f[n],"undefined")||(f[n]=i),f.removeAttribute(n))),f=null,e}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return n}(),y={}.hasOwnProperty,p,h;p=!u(y,"undefined")&&!u(y.call,"undefined")?function(n,t){return y.call(n,t)}:function(n,t){return t in n&&u(n.constructor.prototype[t],"undefined")};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=v.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(v.call(arguments))),Object(u)===u?u:e):t.apply(n,i.concat(v.call(arguments)))},r});e.canvas=function(){var n=t.createElement("canvas");return!!n.getContext&&!!n.getContext("2d")};e.canvastext=function(){return!!r.canvas&&!!u(t.createElement("canvas").getContext("2d").fillText,"function")};e.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:it(["@media (",l.join("touch-enabled),("),o,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i};for(h in e)p(e,h)&&(s=h.toLowerCase(),r[s]=e[h](),a.push((r[s]?"":"no-")+s));return r.addTest=function(n,t){if(typeof n=="object")for(var u in n)p(n,u)&&r.addTest(u,n[u]);else{if(n=n.toLowerCase(),r[n]!==i)return r;t=typeof t=="function"?t():t;typeof c!="undefined"&&c&&(f.className+=" "+(t?"":"no-")+n);r[n]=t}return r},w(""),k=et=null,r._version="2.6.3",r._prefixes=l,r._domPrefixes=tt,r._
26cssomPrefixes=nt,r.hasEvent=ot,r.testProp=function(n){return b([n])},r.testAllProps=ft,r.testStyles=it,f.className=f.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(c?" js "+a.join(" "):""),r}(this,this.document),function(n,t,i){function h(n){return"[object Function]"==y.call(n)}function c(n){return"string"==typeof n}function l(){}function w(n){return!n||"loaded"==n||"complete"==n||"uninitialized"==n}function f(){var n=a.shift();v=1;n?n.t?s(function(){("c"==n.t?u.injectCss:u.injectJs)(n.s,0,n.a,n.x,n.e,1)},0):(n(),f()):v=0}function ut(n,i,o,h,c,l,y){function k(t){if(!nt&&w(p.readyState)&&(tt.r=nt=1,!v&&f(),p.onload=p.onreadystatechange=null,t)){"img"!=n&&s(function(){g.removeChild(p)},50);for(var u in r[i])r[i].hasOwnProperty(u)&&r[i][u].onload()}}var y=y||u.errorTimeout,p=t.createElement(n),nt=0,b=0,tt={t:o,s:i,e:c,a:l,x:y};1===r[i]&&(b=1,r[i]=[]);"object"==n?p.data=i:(p.src=i,p.type=n);p.width=p.height="0";p.onerror=p.onload=p.onreadystatechange=function(){k.call(this,b)};a.splice(h,0,tt);"img"!=n&&(b||2===r[i]?(g.insertBefore(p,d?null:e),s(k,y)):r[i].push(p))}function ft(n,t,i,r,u){return v=0,t=t||"j",c(n)?ut("c"==t?et:nt,n,t,this.i++,i,r,u):(a.splice(this.i++,0,n),1==a.length&&f()),this}function b(){var n=u;return n.loader={load:ft,i:0},n}var o=t.documentElement,s=n.setTimeout,e=t.getElementsByTagName("script")[0],y={}.toString,a=[],v=0,k="MozAppearance"in o.style,d=k&&!!t.createRange().compareNode,g=d?o:e.parentNode,o=n.opera&&"[object Opera]"==y.call(n.opera),o=!!t.attachEvent&&!o,nt=k?"object":o?"script":"img",et=o?"script":nt,tt=Array.isArray||function(n){return"[object Array]"==y.call(n)},p=[],r={},it={timeout:function(n,t){return t.length&&(n.timeout=t[0]),n}},rt,u;u=function(n){function a(n){for(var n=n.split("!"),f=p.length,i=n.pop(),e=n.length,i={url:i,origUrl:i,prefixes:n},u,r,t=0;t<e;t++)r=n[t].split("="),(u=it[r.shift()])&&(i=u(i,r));for(t=0;t<f;t++)i=p[t](i);return i}function f(n,t,u,f,e){var o=a(n),s=o.autoCallback;o.url.split(".").pop().split("?").shift();o.bypass||(t&&(t=h(t)?t:t[n]||t[f]||t[n.split("/").pop().split("?")[0]]),o.instead?o.instead(n,t,u,f,e):(r[o.url]?o.noexec=!0:r[o.url]=1,u.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":i,o.noexec,o.attrs,o.timeout),(h(t)||h(s))&&u.load(function(){b();t&&t(o.origUrl,e,f);s&&s(o.origUrl,e,f);r[o.url]=2})))}function s(n,t){function a(n,o){if(n){if(c(n))o||(i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}),f(n,i,t,0,e);else if(Object(n)===n)for(r in v=function(){var t=0;for(var i in n)n.hasOwnProperty(i)&&t++;return t}(),n)n.hasOwnProperty(r)&&(!o&&!--v&&(h(i)?i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}:i[r]=function(n){return function(){var t=[].slice.call(arguments);n&&n.apply(this,t);u()}}(s[r])),f(n[r],i,t,r,e))}else o||u()}var e=!!n.test,o=n.load||n.both,i=n.callback||l,s=i,u=n.complete||l,v,r;a(e?n.yep:n.nope,!!o);o&&a(o)}var e,t,o=this.yepnope.loader;if(c(n))f(n,0,o,0);else if(tt(n))for(e=0;e<n.length;e++)t=n[e],c(t)?f(t,0,o,0):tt(t)?u(t):Object(t)===t&&s(t,o);else Object(n)===n&&s(n,o)};u.addPrefix=function(n,t){it[n]=t};u.addFilter=function(n){p.push(n)};u.errorTimeout=1e4;null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",rt=function(){t.removeEventListener("DOMContentLoaded",rt,0);t.readyState="complete"},0));n.yepnope=b();n.yepnope.executeStack=f;n.yepnope.injectJs=function(n,i,r,o,h,c){var a=t.createElement("script"),v,y,o=o||u.errorTimeout;a.src=n;for(y in r)a.setAttribute(y,r[y]);i=c?f:i||l;a.onreadystatechange=a.onload=function(){!v&&w(a.readyState)&&(v=1,i(),a.onload=a.onreadystatechange=null)};s(function(){v||(v=1,i(1))},o);h?a.onload():e.parentNode.insertBefore(a,e)};n.yepnope.injectCss=function(n,i,r,u,o,h){var u=t.createElement("link"),c,i=h?f:i||l;u.href=n;u.rel="stylesheet";u.type="text/css";for(c in r)u.setAttribute(c,r[c]);o||(e.parentNode.insertBefore(u,e),s(i,0))}}(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(n){n.flexslider=function(t,i){var r=n(t);r.vars=n.extend({},n.flexslider.defaults,i);var f=r.vars.namespace,v=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,y=("ontouchstart"in window||v||window.DocumentTouch&&document instanceof DocumentTouch)&&r.vars.touch,a="click touchend MSPointerUp keyup",s="",p,h=r.vars.direction==="vertical",o=r.vars.reverse,e=r.vars.itemWidth>0,c=r.vars.animation==="fade",l=r.vars.asNavFor!=="",u={},w=!0;n.data(t,"flexslider",r);u={init:function(){r.animating=!1;r.currentSlide=parseInt(r.vars.startAt?r.vars.startAt:0,10);isNaN(r.currentSlide)&&(r.currentSlide=0);r.animatingTo=r.currentSlide;r.atEnd=r.currentSlide===0||r.currentSlide===r.last;r.containerSelector=r.vars.selector.substr(0,r.vars.selector.search(" "));r.slides=n(r.vars.selector,r);r.container=n(r.containerSelector,r);r.count=r.slides.length;r.syncExists=n(r.vars.sync).length>0;r.vars.animation==="slide"&&(r.vars.animation="swing");r.prop=h?"top":"marginLeft";r.args={};r.manualPause=!1;r.stopped=!1;r.started=!1;r.startTimeout=null;r.transitions=!r.vars.video&&!c&&r.vars.useCSS&&function(){var i=document.createElement("div"),n=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var t in n)if(i.style[n[t]]!==undefined)return r.pfx=n[t].replace("Perspective","").toLowerCase(),r.prop="-"+r.pfx+"-transform",!0;return!1}();r.ensureAnimationEnd="";r.vars.controlsContainer!==""&&(r.controlsContainer=n(r.vars.controlsContainer).length>0&&n(r.vars.controlsContainer));r.vars.manualControls!==""&&(r.manualControls=n(r.vars.manualControls).length>0&&n(r.vars.manualControls));r.vars.randomize&&(r.slides.sort(function(){return Math.round(Math.random())-.5}),r.container.empty().append(r.slides));r.doMath();r.setup("init");r.vars.controlNav&&u.controlNav.setup();r.vars.directionNav&&u.directionNav.setup();r.vars.keyboard&&(n(r.containerSelector).length===1||r.vars.multipleKeyboard)&&n(document).bind("keyup",function(n){var t=n.keyCode,i;r.animating||t!==39&&t!==37||(i=t===39?r.getTarget("next"):t===37?r.getTarget("prev"):!1,r.flexAnimate(i,r.vars.pauseOnAction))});r.vars.mousewheel&&r.bind("mousewheel",function(n,t){n.preventDefault();var i=t<0?r.getTarget("next"):r.getTarget("prev");r.flexAnimate(i,r.vars.pauseOnAction)});r.vars.pausePlay&&u.pausePlay.setup();
26r.vars.slideshow&&r.vars.pauseInvisible&&u.pauseInvisible.init();r.vars.slideshow&&(r.vars.pauseOnHover&&r.hover(function(){r.manualPlay||r.manualPause||r.pause()},function(){r.manualPause||r.manualPlay||r.stopped||r.play()}),r.vars.pauseInvisible&&u.pauseInvisible.isHidden()||(r.vars.initDelay>0?r.startTimeout=setTimeout(r.play,r.vars.initDelay):r.play()));l&&u.asNav.setup();y&&r.vars.touch&&u.touch();(!c||c&&r.vars.smoothHeight)&&n(window).bind("resize orientationchange focus",u.resize);r.find("img").attr("draggable","false");setTimeout(function(){r.vars.start(r)},200)},asNav:{setup:function(){if(r.asNav=!0,r.animatingTo=Math.floor(r.currentSlide/r.move),r.currentItem=r.currentSlide,r.slides.removeClass(f+"active-slide").eq(r.currentItem).addClass(f+"active-slide"),v)t._slider=r,r.slides.each(function(){var t=this;t._gesture=new MSGesture;t._gesture.target=t;t.addEventListener("MSPointerDown",function(n){n.preventDefault();n.currentTarget._gesture&&n.currentTarget._gesture.addPointer(n.pointerId)},!1);t.addEventListener("MSGestureTap",function(t){t.preventDefault();var i=n(this),u=i.index();n(r.vars.asNavFor).data("flexslider").animating||i.hasClass("active")||(r.direction=r.currentItem<u?"next":"prev",r.flexAnimate(u,r.vars.pauseOnAction,!1,!0,!0))})});else r.slides.on(a,function(t){t.preventDefault();var i=n(this),u=i.index(),e=i.offset().left-n(r).scrollLeft();
26e<=0&&i.hasClass(f+"active-slide")?r.flexAnimate(r.getTarget("prev"),!0):n(r.vars.asNavFor).data("flexslider").animating||i.hasClass(f+"active-slide")||(r.direction=r.currentItem<u?"next":"prev",r.flexAnimate(u,r.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){r.manualControls?u.controlNav.setupManual():u.controlNav.setupPaging()},setupPaging:function(){var c=r.vars.controlNav==="thumbnails"?"control-thumbs":"control-paging",h=1,e,o,t,i;if(r.controlNavScaffold=n('<ol class="'+f+"control-nav "+f+c+'"><\/ol>'),r.pagingCount>1)for(t=0;t<r.pagingCount;t++)o=r.slides.eq(t),e=r.vars.controlNav==="thumbnails"?'<img src="'+o.attr("data-thumb")+'"/>':"<a>"+h+"<\/a>","thumbnails"===r.vars.controlNav&&!0===r.vars.thumbCaptions&&(i=o.attr("data-thumbcaption"),""!=i&&undefined!=i&&(e+='<span class="'+f+'caption">'+i+"<\/span>")),r.controlNavScaffold.append("<li>"+e+"<\/li>"),h++;r.controlsContainer?n(r.controlsContainer).append(r.controlNavScaffold):r.append(r.controlNavScaffold);u.controlNav.set();u.controlNav.active();r.controlNavScaffold.delegate("a, img",a,function(t){if(t.preventDefault(),s===""||s===t.type){var i=n(this),e=r.controlNav.index(i);i.hasClass(f+"active")||(r.direction=e>r.currentSlide?"next":"prev",r.flexAnimate(e,r.vars.pauseOnAction))}s===""&&(s=t.type);u.setToClearWatchedEvent()})},setupManual:function(){r.controlNav=r.manualControls;u.controlNav.active();r.controlNav.bind(a,function(t){if(t.preventDefault(),s===""||s===t.type){var i=n(this),e=r.controlNav.index(i);i.hasClass(f+"active")||(r.direction=e>r.currentSlide?"next":"prev",r.flexAnimate(e,r.vars.pauseOnAction))}s===""&&(s=t.type);u.setToClearWatchedEvent()})},set:function(){var t=r.vars.controlNav==="thumbnails"?"img":"a";r.controlNav=n("."+f+"control-nav li "+t,r.controlsContainer?r.controlsContainer:r)},active:function(){r.controlNav.removeClass(f+"active").eq(r.animatingTo).addClass(f+"active")},update:function(t,i){r.pagingCount>1&&t==="add"?r.controlNavScaffold.append(n("<li><a>"+r.count+"<\/a><\/li>")):r.pagingCount===1?r.controlNavScaffold.find("li").remove():r.controlNav.eq(i).closest("li").remove();u.controlNav.set();r.pagingCount>1&&r.pagingCount!==r.controlNav.length?r.update(i,t):u.controlNav.active()}},directionNav:{setup:function(){var t=n('<ul class="'+f+'direction-nav"><li class="'+f+'nav-prev"><a class="'+f+'prev" href="#">'+r.vars.prevText+'<\/a><\/li><li class="'+f+'nav-next"><a class="'+f+'next" href="#">'+r.vars.nextText+"<\/a><\/li><\/ul>");r.controlsContainer?(n(r.controlsContainer).append(t),r.directionNav=n("."+f+"direction-nav li a",r.controlsContainer)):(r.append(t),r.directionNav=n("."+f+"direction-nav li a",r));u.directionNav.update();r.directionNav.bind(a,function(t){t.preventDefault();var i;(s===""||s===t.type)&&(i=n(this).hasClass(f+"next")?r.getTarget("next"):r.getTarget("prev"),r.flexAnimate(i,r.vars.pauseOnAction));s===""&&(s=t.type);u.setToClearWatchedEvent()})},update:function(){var n=f+"disabled";r.pagingCount===1?r.directionNav.addClass(n).attr("tabindex","-1"):r.vars.animationLoop?r.directionNav.removeClass(n).removeAttr("tabindex"):r.animatingTo===0?r.directionNav.removeClass(n).filter("."+f+"prev").addClass(n).attr("tabindex","-1"):r.animatingTo===r.last?r.directionNav.removeClass(n).filter("."+f+"next").addClass(n).attr("tabindex","-1"):r.directionNav.removeClass(n).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=n('<div class="'+f+'pauseplay"><a><\/a><\/div>');r.controlsContainer?(r.controlsContainer.append(t),r.pausePlay=n("."+f+"pauseplay a",r.controlsContainer)):(r.append(t),r.pausePlay=n("."+f+"pauseplay a",r));u.pausePlay.update(r.vars.slideshow?f+"pause":f+"play");r.pausePlay.bind(a,function(t){t.preventDefault();(s===""||s===t.type)&&(n(this).hasClass(f+"pause")?(r.manualPause=!0,r.manualPlay=!1,r.pause()):(r.manualPause=!1,r.manualPlay=!0,r.play()));s===""&&(s=t.type);u.setToClearWatchedEvent()})},update:function(n){n==="play"?r.pausePlay.removeClass(f+"pause").addClass(f+"play").html(r.vars.playText):r.pausePlay.removeClass(f+"play").addClass(f+"pause").html(r.vars.pauseText)}},touch:function(){var p,w,f,u,n,s,l=!1,a=0,y=0,i=0;if(v){t.style.msTouchAction=h?"pan-x":"pan-y";t._gesture=new MSGesture;t._gesture.target=t;t.addEventListener("MSPointerDown",a,!1);t._slider=r;t.addEventListener("MSGestureChange",v,!1);t.addEventListener("MSGestureEnd",y,!1);function a(n){n.stopPropagation();r.animating?n.preventDefault():(r.pause(),t._gesture.addPointer(n.pointerId),i=0,u=h?r.h:r.w,s=Number(new Date),f=e&&o&&r.animatingTo===r.last?0:e&&o?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:e&&r.currentSlide===r.last?r.limit:e?(r.itemW+r.vars.itemMargin)*r.move*r.currentSlide:o?(r.last-r.currentSlide+r.cloneOffset)*u:(r.currentSlide+r.cloneOffset)*u)}function v(r){var e,o,a;if(r.stopPropagation(),e=r.target._slider,e){if(o=-r.translationX,a=-r.translationY,i=i+(h?a:o),n=i,l=h?Math.abs(i)<Math.abs(-o):Math.abs(i)<Math.abs(-a),r.detail===r.MSGESTURE_FLAG_INERTIA){setImmediate(function(){t._gesture.stop()});return}(!l||Number(new Date)-s>500)&&(r.preventDefault(),!c&&e.transitions&&(e.vars.animationLoop||(n=i/(e.currentSlide===0&&i<0||e.currentSlide===e.last&&i>0?Math.abs(i)/u+2:1)),e.setProps(f+n,"setTouch")))}}function y(t){var r,e,h;(t.stopPropagation(),r=t.target._slider,r)&&(r.animatingTo!==r.currentSlide||l||n===null||(e=o?-n:n,h=e>0?r.getTarget("next"):r.getTarget("prev"),r.canAdvance(h)&&(Number(new Date)-s<550&&Math.abs(e)>50||Math.abs(e)>u/2)?r.flexAnimate(h,r.vars.pauseOnAction):c||r.flexAnimate(r.currentSlide,r.vars.pauseOnAction,!0)),p=null,w=null,n=null,f=null,i=0)}}else{t.addEventListener("touchstart",b,!1);function b(n){r.animating?n.preventDefault():(window.navigator.msPointerEnabled||n.touches.length===1)&&(r.pause(),u=h?r.h:r.w,s=Number(new Date),a=n.touches[0].pageX,y=n.touches[0].pageY,f=e&&o&&r.animatingTo===r.last?0:e&&o?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:e&&r.currentSlide===r.last?r.limit:e?(r.itemW+r.vars.itemMargin)*r.move*r.currentSlide:o?(r.last-r.currentSlide+r.cloneOffset)*u:(r.currentSlide+r.cloneOffset)*u,p=h?y:a,w=h?a:y,t.addEventListener("touchmove",i,!1),t.addEventListener("touchend",v,!1))}function i(t){a=t.touches[0].pageX;y=t.touches[0].pageY;n=h?p-y:p-a;l=h?Math.abs(n)<Math.abs(a-w):Math.abs(n)<Math.abs(y-w);(!l||Number(new Date)-s>500)&&(t.preventDefault(),!c&&r.transitions&&(r.vars.animationLoop||(n=n/(r.currentSlide===0&&n<0||r.currentSlide===r.last&&n>0?Math.abs(n)/u+2:1)),r.setProps(f+n,"setTouch")))}function v(){if(t.removeEventListener("touchmove",i,!1),r.animatingTo===r.currentSlide&&!l&&!(n===null)){var e=o?-n:n,h=e>0?r.getTarget("next"):r.getTarget("prev");r.canAdvance(h)&&(Number(new Date)-s<550&&Math.abs(e)>50||Math.abs(e)>u/2)?r.flexAnimate(h,r.vars.pauseOnAction):c||r.flexAnimate(r.currentSlide,r.vars.pauseOnAction,!0)}t.removeEventListener("touchend",v,!1);p=null;w=null;n=null;f=null}}},resize:function(){!r.animating&&r.is(":visible")&&(e||r.doMath(),c?u.smoothHeight():e?(r.slides.width(r.computedW),r.update(r.pagingCount),r.setProps()):h?(r.viewport.height(r.h),r.setProps(r.h,"setTotal")):(r.vars.smoothHeight&&u.smoothHeight(),r.newSlides.width(r.computedW),r.setProps(r.computedW,"setTotal")))}
26,smoothHeight:function(n){if(!h||c){var t=c?r:r.viewport;n?t.animate({height:r.slides.eq(r.animatingTo).height()},n):t.height(r.slides.eq(r.animatingTo).height())}},sync:function(t){var i=n(r.vars.sync).data("flexslider"),u=r.animatingTo;switch(t){case"animate":i.flexAnimate(u,r.vars.pauseOnAction,!1,!0);break;case"play":i.playing||i.asNav||i.play();break;case"pause":i.pause()}},uniqueID:function(t){return t.filter("[id]").add(t.find("[id]")).each(function(){var t=n(this);t.attr("id",t.attr("id")+"_clone")}),t},pauseInvisible:{visProp:null,init:function(){var n=u.pauseInvisible.getHiddenProp(),t;n&&(t=n.replace(/[H|h]idden/,"")+"visibilitychange",document.addEventListener(t,function(){u.pauseInvisible.isHidden()?r.startTimeout?clearTimeout(r.startTimeout):r.pause():r.started?r.play():r.vars.initDelay>0?setTimeout(r.play,r.vars.initDelay):r.play()}))},isHidden:function(){var n=u.pauseInvisible.getHiddenProp();return n?document[n]:!1},getHiddenProp:function(){var t=["webkit","moz","ms","o"],n;if("hidden"in document)return"hidden";for(n=0;n<t.length;n++)if(t[n]+"Hidden"in document)return t[n]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(p);p=setTimeout(function(){s=""},3e3)}};r.flexAnimate=function(t,i,s,a,v){var w,p,d,b,k;if(r.vars.animationLoop||t===r.currentSlide||(r.direction=t>r.currentSlide?"next":"prev"),l&&r.pagingCount===1&&(r.direction=r.currentItem<t?"next":"prev"),!r.animating&&(r.canAdvance(t,v)||s)&&r.is(":visible")){if(l&&a)if(w=n(r.vars.asNavFor).data("flexslider"),r.atEnd=t===0||t===r.count-1,w.flexAnimate(t,!0,!1,!0,v),r.direction=r.currentItem<t?"next":"prev",w.direction=r.direction,Math.ceil((t+1)/r.visible)-1!==r.currentSlide&&t!==0)r.currentItem=t,r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide"),t=Math.floor(t/r.visible);else return r.currentItem=t,r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide"),!1;r.animating=!0;r.animatingTo=t;i&&r.pause();r.vars.before(r);r.syncExists&&!v&&u.sync("animate");r.vars.controlNav&&u.controlNav.active();e||r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide");r.atEnd=t===0||t===r.last;r.vars.directionNav&&u.directionNav.update();t===r.last&&(r.vars.end(r),r.vars.animationLoop||r.pause());c?y?(r.slides.eq(r.currentSlide).css({opacity:0,zIndex:1}),r.slides.eq(t).css({opacity:1,zIndex:2}),r.wrapup(p)):(r.slides.eq(r.currentSlide).css({zIndex:1}).animate({opacity:0}
26,r.vars.animationSpeed,r.vars.easing),r.slides.eq(t).css({zIndex:2}).animate({opacity:1},r.vars.animationSpeed,r.vars.easing,r.wrapup)):(p=h?r.slides.filter(":first").height():r.computedW,e?(d=r.vars.itemMargin,k=(r.itemW+d)*r.move*r.animatingTo,b=k>r.limit&&r.visible!==1?r.limit:k):b=r.currentSlide===0&&t===r.count-1&&r.vars.animationLoop&&r.direction!=="next"?o?(r.count+r.cloneOffset)*p:0:r.currentSlide===r.last&&t===0&&r.vars.animationLoop&&r.direction!=="prev"?o?0:(r.count+1)*p:o?(r.count-1-t+r.cloneOffset)*p:(t+r.cloneOffset)*p,r.setProps(b,"",r.vars.animationSpeed),r.transitions?(r.vars.animationLoop&&r.atEnd||(r.animating=!1,r.currentSlide=r.animatingTo),r.container.unbind("webkitTransitionEnd transitionend"),r.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(r.ensureAnimationEnd);r.wrapup(p)}),clearTimeout(r.ensureAnimationEnd),r.ensureAnimationEnd=setTimeout(function(){r.wrapup(p)},r.vars.animationSpeed+100)):r.container.animate(r.args,r.vars.animationSpeed,r.vars.easing,function(){r.wrapup(p)}));r.vars.smoothHeight&&u.smoothHeight(r.vars.animationSpeed)}};r.wrapup=function(n){c||e||(r.currentSlide===0&&r.animatingTo===r.last&&r.vars.animationLoop?r.setProps(n,"jumpEnd"):r.currentSlide===r.last&&r.animatingTo===0&&r.vars.animationLoop&&r.setProps(n,"jumpStart"));r.animating=!1;r.currentSlide=r.animatingTo;r.vars.after(r)};r.animateSlides=function(){!r.animating&&w&&r.flexAnimate(r.getTarget("next"))};r.pause=function(){clearInterval(r.animatedSlides);r.animatedSlides=null;r.playing=!1;r.vars.pausePlay&&u.pausePlay.update("play");r.syncExists&&u.sync("pause")};r.play=function(){r.playing&&clearInterval(r.animatedSlides);r.animatedSlides=r.animatedSlides||setInterval(r.animateSlides,r.vars.slideshowSpeed);r.started=r.playing=!0;r.vars.pausePlay&&u.pausePlay.update("pause");r.syncExists&&u.sync("play")};r.stop=function(){r.pause();r.stopped=!0};r.canAdvance=function(n,t){var i=l?r.pagingCount-1:r.last;return t?!0:l&&r.currentItem===r.count-1&&n===0&&r.direction==="prev"?!0:l&&r.currentItem===0&&n===r.pagingCount-1&&r.direction!=="next"?!1:n===r.currentSlide&&!l?!1:r.vars.animationLoop?!0:r.atEnd&&r.currentSlide===0&&n===i&&r.direction!=="next"?!1:r.atEnd&&r.currentSlide===i&&n===0&&r.direction==="next"?!1:!0};r.getTarget=function(n){return r.direction=n,n==="next"?r.currentSlide===r.last?0:r.currentSlide+1:r.currentSlide===0?r.last:r.currentSlide-1};r.setProps=function(n,t,i){var u=function(){var i=n?n:(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo,u=function(){if(e)return t==="setTouch"?n:o&&r.animatingTo===r.last?0:o?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:r.animatingTo===r.last?r.limit:i;switch(t){case"setTotal":return o?(r.count-1-r.currentSlide+r.cloneOffset)*n:(r.currentSlide+r.cloneOffset)*n;case"setTouch":return o?n:n;case"jumpEnd":return o?n:r.count*n;case"jumpStart":return o?r.count*n:n;default:return n}}();return u*-1+"px"}();r.transitions&&(u=h?"translate3d(0,"+u+",0)":"translate3d("+u+",0,0)",i=i!==undefined?i/1e3+"s":"0s",r.container.css("-"+r.pfx+"-transition-duration",i),r.container.css("transition-duration",i));r.args[r.prop]=u;(r.transitions||i===undefined)&&r.container.css(r.args);r.container.css("transform",u)};r.setup=function(t){if(c)r.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),t==="init"&&(y?r.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+r.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(r.currentSlide).css({opacity:1,zIndex:2}):r.vars.fadeFirstSlide==!1?r.slides.css({opacity:0,display:"block",zIndex:1}).eq(r.currentSlide).css({zIndex:2}).css({opacity:1}):r.slides.css({opacity:0,display:"block",zIndex:1}).eq(r.currentSlide).css({zIndex:2}).animate({opacity:1},r.vars.animationSpeed,r.vars.easing)),r.vars.smoothHeight&&u.smoothHeight();else{var i,s;t==="init"&&(r.viewport=n('<div class="'+f+'viewport"><\/div>').css({overflow:"hidden",position:"relative"}).appendTo(r).append(r.container),r.cloneCount=0,r.cloneOffset=0,o&&(s=n.makeArray(r.slides).reverse(),r.slides=n(s),r.container.empty().append(r.slides)));r.vars.animationLoop&&!e&&(r.cloneCount=2,r.cloneOffset=1,t!=="init"&&r.container.find(".clone").remove(),r.container.append(u.uniqueID(r.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(u.uniqueID(r.slides.last().clone().addClass("clone")).attr("aria-hidden","true")));r.newSlides=n(r.vars.selector,r);i=o?r.count-1-r.currentSlide+r.cloneOffset:r.currentSlide+r.cloneOffset;h&&!e?(r.container.height((r.count+r.cloneCount)*200+"%").css("position","absolute").width("100%"),setTimeout(function(){r.newSlides.css({display:"block"});r.doMath();r.viewport.height(r.h);r.setProps(i*r.h,"init")},t==="init"?100:0)):(r.container.width((r.count+r.cloneCount)*200+"%"),r.setProps(i*r.computedW,"init"),setTimeout(function(){r.doMath();r.newSlides.css({width:r.computedW,float:"left",display:"block"});r.vars.smoothHeight&&u.smoothHeight()},t==="init"?100:0))}e||r.slides.removeClass(f+"active-slide").eq(r.currentSlide).addClass(f+"active-slide");r.vars.init(r)};r.doMath=function(){var u=r.slides.first(),n=r.vars.itemMargin,t=r.vars.minItems,i=r.vars.maxItems;r.w=r.viewport===undefined?r.width():r.viewport.width();
26r.h=u.height();r.boxPadding=u.outerWidth()-u.width();e?(r.itemT=r.vars.itemWidth+n,r.minW=t?t*r.itemT:r.w,r.maxW=i?i*r.itemT-n:r.w,r.itemW=r.minW>r.w?(r.w-n*(t-1))/t:r.maxW<r.w?(r.w-n*(i-1))/i:r.vars.itemWidth>r.w?r.w:r.vars.itemWidth,r.visible=Math.floor(r.w/r.itemW),r.move=r.vars.move>0&&r.vars.move<r.visible?r.vars.move:r.visible,r.pagingCount=Math.ceil((r.count-r.visible)/r.move+1),r.last=r.pagingCount-1,r.limit=r.pagingCount===1?0:r.vars.itemWidth>r.w?r.itemW*(r.count-1)+n*(r.count-1):(r.itemW+n)*r.count-r.w-n):(r.itemW=r.w,r.pagingCount=r.count,r.last=r.count-1);r.computedW=r.itemW-r.boxPadding};r.update=function(n,t){r.doMath();e||(n<r.currentSlide?r.currentSlide+=1:n<=r.currentSlide&&n!==0&&(r.currentSlide-=1),r.animatingTo=r.currentSlide);r.vars.controlNav&&!r.manualControls&&(t==="add"&&!e||r.pagingCount>r.controlNav.length?u.controlNav.update("add"):(t==="remove"&&!e||r.pagingCount<r.controlNav.length)&&(e&&r.currentSlide>r.last&&(r.currentSlide-=1,r.animatingTo-=1),u.controlNav.update("remove",r.last)));r.vars.directionNav&&u.directionNav.update()};r.addSlide=function(t,i){var u=n(t);r.count+=1;r.last=r.count-1;h&&o?i!==undefined?r.slides.eq(r.count-i).after(u):r.container.prepend(u):i!==undefined?r.slides.eq(i).before(u):r.container.append(u);r.update(i,"add");r.slides=n(r.vars.selector+":not(.clone)",r);r.setup();r.vars.added(r)};r.removeSlide=function(t){var i=isNaN(t)?r.slides.index(n(t)):t;r.count-=1;r.last=r.count-1;isNaN(t)?n(t,r.slides).remove():h&&o?r.slides.eq(r.last).remove():r.slides.eq(t).remove();r.doMath();r.update(i,"remove");r.slides=n(r.vars.selector+":not(.clone)",r);r.setup();r.vars.removed(r)};u.init()};n(window).blur(function(){focused=!1}).focus(function(){focused=!0});n.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}};n.fn.flexslider=function(t){if(t===undefined&&(t={}),typeof t=="object")return this.each(function(){var i=n(this),u=t.selector?t.selector:".slides > li",r=i.find(u);r.length===1&&t.allowOneSlide===!0||r.length===0?(r.fadeIn(400),t.start&&t.start(i)):i.data("flexslider")===undefined&&new n.flexslider(this,t)});var i=n(this).data("flexslider");switch(t){case"play":i.play();break;case"pause":i.pause();break;case"stop":i.stop();break;case"next":i.flexAnimate(i.getTarget("next"),!0);break;case"prev":case"previous":i.flexAnimate(i.getTarget("prev"),!0);break;default:typeof t=="number"&&i.flexAnimate(t,!0)}}}(jQuery); 27/*! 28 Colorbox 1.6.3 29 license: MIT 30 https://www.jacklmoore.com/colorbox 31*/ 32(function(n,t,i){function h(i,r,u){var f=t.createElement(i);return r&&(f.id=e+r),u&&(f.style.cssText=u),n(f)}function ai(){return i.innerHeight?i.innerHeight:n(i).height()}function kt(t,i){i!==Object(i)&&(i={});this.cache={};this.el=t;this.value=function(t){var r;return this.cache[t]===undefined&&(r=n(this.el).attr("data-cbox-"+t),r!==undefined?this.cache[t]=r:i[t]!==undefined?this.cache[t]=i[t]:ni[t]!==undefined&&(this.cache[t]=ni[t])),this.cache[t]};this.get=function(t){var i=this.value(t);return n.isFunction(i)?i.call(this.el,this):i}}function dt(n){var i=c.length,t=(v+n)%i;return t<0?i+t:t}function a(n,t){return Math.round((/%/.test(n)?(t==="x"?g.width():ai())/100:1)*parseInt(n,10))}function pi(n,t){return n.get("photo")||n.get("photoRegex").test(t)}function wi(n,t){return n.get("retinaUrl")&&i.devicePixelRatio>1?t.replace(n.get("photoRegex"),n.get("retinaSuffix")):t}function bi(n){"contains"in u[0]&&!u[0].contains(n.target)&&n.target!==d[0]&&(n.stopPropagation(),u.focus())}function at(n){at.str!==n&&(u.add(d).removeClass(at.str).addClass(n),at.str=n)}function gi(t){v=0;t&&t!==!1&&t!=="nofollow"?(c=n("."+ft).filter(function(){var i=n.data(this,y),r=new kt(this,i);return r.get("rel")===t}),v=c.index(r.el),v===-1&&(c=c.add(r.el),v=c.length-1)):c=n(r.el)}function ut(i){n(t).trigger(i);w.triggerHandler(i)}function gt(i){var e,f;if(!lt){if(e=n(i).data(y),r=new kt(i,e),gi(r.get("rel")),!it){it=ct=!0;at(r.get("className"));u.css({visibility:"hidden",display:"block",opacity:""});l=h(s,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden");p.css({width:"",height:""}).append(l);b=ri.height()+ei.height()+p.outerHeight(!0)-p.height();k=ui.width()+fi.width()+p.outerWidth(!0)-p.width();nt=l.outerHeight(!0);tt=l.outerWidth(!0);var c=a(r.get("initialWidth"),"x"),v=a(r.get("initialHeight"),"y"),g=r.get("maxWidth"),rt=r.get("maxHeight");if(r.w=Math.max((g!==!1?Math.min(c,a(g,"x")):c)-tt-k,0),r.h=Math.max((rt!==!1?Math.min(v,a(rt,"y")):v)-nt-b,0),l.css({width:"",height:r.h}),o.position(),ut(di),r.get("onOpen"),hi.add(oi).hide(),u.focus(),r.get("trapFocus")&&t.addEventListener){t.addEventListener("focus",bi,!0);w.one(ii,function(){t.removeEventListener("focus",bi,!0)})}if(r.get("returnFocus"))w.one(ii,function(){n(r.el).focus()})}f=parseFloat(r.get("opacity"));
32d.css({opacity:f===f?f:"",cursor:r.get("overlayClose")?"pointer":"",visibility:"visible"}).show();r.get("closeButton")?bt.html(r.get("close")).appendTo(p):bt.appendTo("<div/>");ir()}}function ki(){u||(li=!1,g=n(i),u=h(s).attr({id:y,"class":n.support.opacity===!1?e+"IE":"",role:"dialog",tabindex:"-1"}).hide(),d=h(s,"Overlay").hide(),wt=n([h(s,"LoadingOverlay")[0],h(s,"LoadingGraphic")[0]]),rt=h(s,"Wrapper"),p=h(s,"Content").append(oi=h(s,"Title"),si=h(s,"Current"),ht=n('<button type="button"/>').attr({id:e+"Previous"}),st=n('<button type="button"/>').attr({id:e+"Next"}),et=n('<button type="button"/>').attr({id:e+"Slideshow"}),wt),bt=n('<button type="button"/>').attr({id:e+"Close"}),rt.append(h(s).append(h(s,"TopLeft"),ri=h(s,"TopCenter"),h(s,"TopRight")),h(s,!1,"clear:left").append(ui=h(s,"MiddleLeft"),p,fi=h(s,"MiddleRight")),h(s,!1,"clear:left").append(h(s,"BottomLeft"),ei=h(s,"BottomCenter"),h(s,"BottomRight"))).find("div div").css({float:"left"}),ot=h(s,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),hi=st.add(ht).add(si).add(et));t.body&&!u.parent().length&&n(t.body).append(d,u.append(rt,ot))}function tr(){function i(n){n.which>1||n.shiftKey||n.altKey||n.metaKey||n.ctrlKey||(n.preventDefault(),gt(this))}if(u){if(!li)if(li=!0,st.click(function(){o.next()}),ht.click(function(){o.prev()}),bt.click(function(){o.close()}),d.click(function(){r.get("overlayClose")&&o.close()}),n(t).bind("keydown."+e,function(n){var t=n.keyCode;it&&r.get("escKey")&&t===27&&(n.preventDefault(),o.close());it&&r.get("arrowKey")&&c[1]&&!n.altKey&&(t===37?(n.preventDefault(),ht.click()):t===39&&(n.preventDefault(),st.click()))}
32),n.isFunction(n.fn.on))n(t).on("click."+e,"."+ft,i);else n("."+ft).live("click."+e,i);return!0}return!1}function ir(){var t,y,u=o.prep,p,d=++ci,l;if(ct=!0,f=!1,ut(pt),ut(vt),r.get("onLoad"),r.h=r.get("height")?a(r.get("height"),"y")-nt-b:r.get("innerHeight")&&a(r.get("innerHeight"),"y"),r.w=r.get("width")?a(r.get("width"),"x")-tt-k:r.get("innerWidth")&&a(r.get("innerWidth"),"x"),r.mw=r.w,r.mh=r.h,r.get("maxWidth")&&(r.mw=a(r.get("maxWidth"),"x")-tt-k,r.mw=r.w&&r.w<r.mw?r.w:r.mw),r.get("maxHeight")&&(r.mh=a(r.get("maxHeight"),"y")-nt-b,r.mh=r.h&&r.h<r.mh?r.h:r.mh),t=r.get("href"),vi=setTimeout(function(){wt.show()},100),r.get("inline")){l=n(t);p=n("<div>").hide().insertBefore(l);w.one(pt,function(){p.replaceWith(l)});u(l)}else if(r.get("iframe"))u(" ");else if(r.get("html"))u(r.get("html"));else if(pi(r,t)){t=wi(r,t);f=r.get("createImg");n(f).addClass(e+"Photo").bind("error."+e,function(){u(h(s,"Error").html(r.get("imgError")))}).one("load",function(){d===ci&&setTimeout(function(){var t;r.get("retinaImage")&&i.devicePixelRatio>1&&(f.height=f.height/i.devicePixelRatio,f.width=f.width/i.devicePixelRatio);r.get("scalePhotos")&&(y=function(){f.height-=f.height*t;f.width-=f.width*t},r.mw&&f.width>r.mw&&(t=(f.width-r.mw)/f.width,y()),r.mh&&f.height>r.mh&&(t=(f.height-r.mh)/f.height,y()));r.h&&(f.style.marginTop=Math.max(r.mh-f.height,0)/2+"px");c[1]&&(r.get("loop")||c[v+1])&&(f.style.cursor="pointer",n(f).bind("click."+e,function(){o.next()}));f.style.width=f.width+"px";f.style.height=f.height+"px";u(f)},1)});f.src=t}else t&&ot.load(t,r.get("data"),function(t,i){d===ci&&u(i==="error"?h(s,"Error").html(r.get("xhrError")):n(this).contents())})}var ni={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:undefined,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return n(this).attr("href")},title:function(){return this.title},createImg:function(){var t=new Image,i=n(this).data("cbox-img-attrs");return typeof i=="object"&&n.each(i,function(n,i){t[n]=i}),t},createIframe:function(){var i=t.createElement("iframe"),r=n(this).data("cbox-iframe-attrs");return typeof r=="object"&&n.each(r,function(n,t){i[n]=t}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},y="colorbox",e="cbox",ft=e+"Element",di=e+"_open",vt=e+"_load",yt=e+"_complete",ti=e+"_cleanup",ii=e+"_closed",pt=e+"_purge",d,u,rt,p,ri,ui,fi,ei,c,g,l,ot,wt,oi,si,et,st,ht,bt,hi,w=n("<a/>"),r,b,k,nt,tt,v,f,it,ct,lt,vi,o,s="div",ci=0,yi={},li,nr=function(){function t(){clearTimeout(l)}function s(){(r.get("loop")||c[v+1])&&(t(),l=setTimeout(o.next,r.get("slideshowSpeed")))}function a(){et.html(r.get("slideshowStop")).unbind(i).one(i,y);w.bind(yt,s).bind(vt,t);u.removeClass(n+"off").addClass(n+"on")}function y(){t();w.unbind(yt,s).unbind(vt,t);et.html(r.get("slideshowStart")).unbind(i).one(i,function(){o.next();a()});u.removeClass(n+"on").addClass(n+"off")}function h(){f=!1;et.hide();t();w.unbind(yt,s).unbind(vt,t);u.removeClass(n+"off "+n+"on")}var f,n=e+"Slideshow_",i="click."+e,l;return function(){if(f)r.get("slideshow")||(w.unbind(ti,h),h());else if(r.get("slideshow")&&c[1]){f=!0;w.one(ti,h);r.get("slideshowAuto")?a():y();et.show()}}}();n[y]||(n(ki),o=n.fn[y]=n[y]=function(t,i){var u,r=this;return(t=t||{},n.isFunction(r)&&(r=n("<a/>"),t.open=!0),!r[0])?r:(ki(),tr()&&(i&&(t.onComplete=i),r.each(function(){var i=n.data(this,y)||{};n.data(this,y,n.extend(i,t))}).addClass(ft),u=new kt(r[0],t),u.get("open")&>(r[0])),r)},o.position=function(t,i){function w(){ri[0].style.width=ei[0].style.width=p[0].style.width=parseInt(u[0].style.width,10)-k+"px";p[0].style.height=ui[0].style.height=fi[0].style.height=parseInt(u[0].style.height,10)-b+"px"}var f,h=0,c=0,s=u.offset(),l,v,y;g.unbind("resize."+e);u.css({top:-9e4,left:-9e4});l=g.scrollTop();v=g.scrollLeft();r.get("fixed")?(s.top-=l,s.left-=v,u.css({position:"fixed"})):(h=l,c=v,u.css({position:"absolute"}));c+=r.get("right")!==!1?Math.max(g.width()-r.w-tt-k-a(r.get("right"),"x"),0):r.get("left")!==!1?a(r.get("left"),"x"):Math.round(Math.max(g.width()-r.w-tt-k,0)/2);h+=r.get("bottom")!==!1?Math.max(ai()-r.h-nt-b-a(r.get("bottom"),"y"),0):r.get("top")!==!1?a(r.get("top"),"y"):Math.round(Math.max(ai()-r.h-nt-b,0)/2);
32u.css({top:s.top,left:s.left,visibility:"visible"});rt[0].style.width=rt[0].style.height="9999px";f={width:r.w+tt+k,height:r.h+nt+b,top:h,left:c};t&&(y=0,n.each(f,function(n){if(f[n]!==yi[n]){y=t;return}}),t=y);yi=f;t||u.css(f);u.dequeue().animate(f,{duration:t||0,complete:function(){w();ct=!1;rt[0].style.width=r.w+tt+k+"px";rt[0].style.height=r.h+nt+b+"px";r.get("reposition")&&setTimeout(function(){g.bind("resize."+e,o.position)},1);n.isFunction(i)&&i()},step:w})},o.resize=function(n){var t;it&&(n=n||{},n.width&&(r.w=a(n.width,"x")-tt-k),n.innerWidth&&(r.w=a(n.innerWidth,"x")),l.css({width:r.w}),n.height&&(r.h=a(n.height,"y")-nt-b),n.innerHeight&&(r.h=a(n.innerHeight,"y")),n.innerHeight||n.height||(t=l.scrollTop(),l.css({height:"auto"}),r.h=l.height()),l.css({height:r.h}),t&&l.scrollTop(t),o.position(r.get("transition")==="none"?0:r.get("speed")))},o.prep=function(i){function k(){return r.w=r.w||l.width(),r.w=r.mw&&r.mw<r.w?r.mw:r.w,r.w}function d(){return r.h=r.h||l.height(),r.h=r.mh&&r.mh<r.h?r.mh:r.h,r.h}if(it){var a,b=r.get("transition")==="none"?0:r.get("speed");l.remove();l=h(s,"LoadedContent").append(i);l.hide().appendTo(ot.show()).css({width:k(),overflow:r.get("scrolling")?"auto":"hidden"}).css({height:d()}).prependTo(p);ot.hide();n(f).css({float:"none"});at(r.get("className"));a=function(){function s(){n.support.opacity===!1&&u[0].style.removeAttribute("filter")}var f=c.length,i,o;if(it){if(o=function(){clearTimeout(vi);wt.hide();ut(yt);r.get("onComplete")},oi.html(r.get("title")).show(),l.show(),f>1?(typeof r.get("current")=="string"&&si.html(r.get("current").replace("{current}",v+1).replace("{total}",f)).show(),st[r.get("loop")||v<f-1?"show":"hide"]().html(r.get("next")),ht[r.get("loop")||v?"show":"hide"]().html(r.get("previous")),nr(),r.get("preloading")&&n.each([dt(-1),dt(1)],function(){var u,f=c[this],r=new kt(f,n.data(f,y)),i=r.get("href");i&&pi(r,i)&&(i=wi(r,i),u=t.createElement("img"),u.src=i)})):hi.hide(),r.get("iframe")){i=r.get("createIframe");r.get("scrolling")||(i.scrolling="no");n(i).attr({src:r.get("href"),"class":e+"Iframe"}).one("load",o).appendTo(l);w.one(pt,function(){i.src="//about:blank"});r.get("fastIframe")&&n(i).trigger("load")}else o();r.get("transition")==="fade"?u.fadeTo(b,1,s):s()}};r.get("transition")==="fade"?u.fadeTo(b,0,function(){o.position(0,a)}):o.position(b,a)}},o.next=function(){!ct&&c[1]&&(r.get("loop")||c[v+1])&&(v=dt(1),gt(c[v]))},o.prev=function(){!ct&&c[1]&&(r.get("loop")||v)&&(v=dt(-1),gt(c[v]))},o.close=function(){it&&!lt&&(lt=!0,it=!1,ut(ti),r.get("onCleanup"),g.unbind("."+e),d.fadeTo(r.get("fadeOut")||0,0),u.stop().fadeTo(r.get("fadeOut")||0,0,function(){u.hide();d.hide();ut(pt);l.remove();setTimeout(function(){lt=!1;ut(ii);r.get("onClosed")},1)}))},o.remove=function(){u&&(u.stop(),n[y].close(),u.stop(!1,!0).remove(),d.remove(),lt=!1,u=null,n("."+ft).removeData(y).removeClass(ft),n(t).unbind("click."+e).unbind("keydown."+e))},o.element=function(){return n(r.el)},o.settings=ni)})(jQuery,document,window);var timeout=[],timeoutLength=6e3,tabTimeout=[],staticCurrentItemIndexSelector=""; 33/*! 34 * pickadate.js v3.5.5, 2015/02/08 35 * By Amsul, https://amsul.ca 36 * Hosted on https://amsul.github.io/pickadate.js 37 * Licensed under MIT 38 */ 39(function(n){typeof define=="function"&&define.amd?define("picker",["jquery"],n):typeof exports=="object"?module.exports=n(require("jquery")):this.Picker=n(jQuery)})(function(n){function t(e,s,l,a){function g(){return t._.node("div",t._.node("div",t._.node("div",t._.node("div",v.component.nodes(y.open),w.box),w.wrap),w.frame),w.holder,'tabindex="-1"')}function it(){if(b.data(s,v).addClass(w.input).val(b.data("value")?v.get("select",p.format):e.value),!p.editable)b.on("focus."+y.id+" click."+y.id,function(n){n.preventDefault();v.open()}).on("keydown."+y.id,tt);i(e,{haspopup:!0,expanded:!1,readonly:!1,owns:e.id+"_root"})}function rt(){i(v.$root[0],"hidden",!0)}function ut(){v.$holder.on({keydown:tt,"focus.toOpen":nt,blur:function(){b.removeClass(w.target)},focusin:function(n){v.$root.removeClass(w.focused);n.stopPropagation()},"mousedown click":function(t){var i=t.target;i!=v.$holder[0]&&(t.stopPropagation(),t.type!="mousedown"||n(i).is("input, select, textarea, button, option")||(t.preventDefault(),v.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var r=n(this),t=r.data(),u=r.hasClass(w.navDisabled)||r.hasClass(w.disabled),i=o();i=i&&(i.type||i.href);(u||i&&!n.contains(v.$root[0],i))&&v.$holder[0].focus();!u&&t.nav?v.set("highlight",v.component.item.highlight,{nav:t.nav}):!u&&"pick"in t?(v.set("select",t.pick),p.closeOnSelect&&v.close(!0)):t.clear?(v.clear(),p.closeOnClear&&v.close(!0)):t.close&&v.close(!0)})}function ft(){var t;p.hiddenName===!0?(t=e.name,e.name=""):(t=[typeof p.hiddenPrefix=="string"?p.hiddenPrefix:"",typeof p.hiddenSuffix=="string"?p.hiddenSuffix:"_submit"],t=t[0]+e.name+t[1]);v._hidden=n('<input type=hidden name="'+t+'"'+(b.data("value")||e.value?' value="'+v.get("select",p.formatSubmit)+'"':"")+">")[0];b.on("change."+y.id,function(){v._hidden.value=e.value?v.get("select",p.formatSubmit):""})}
39function et(){if(k&&h())v.$holder.find("."+w.frame).one("transitionend",function(){v.$holder[0].focus()});else v.$holder[0].focus()}function nt(n){n.stopPropagation();b.addClass(w.target);v.$root.addClass(w.focused);v.open()}function tt(n){var t=n.keyCode,i=/^(8|46)$/.test(t);if(t==27)return v.close(!0),!1;(t==32||i||!y.open&&v.component.key[t])&&(n.preventDefault(),n.stopPropagation(),i?v.clear().close():v.open())}if(!e)return t;var k=!1,y={id:e.id||"P"+Math.abs(~~(Math.random()*new Date))},p=l?n.extend(!0,{},l.defaults,a):a||{},w=n.extend({},t.klasses(),p.klass),b=n(e),d=function(){return this.start()},v=d.prototype={constructor:d,$node:b,start:function(){if(y&&y.start)return v;y.methods={};y.start=!0;y.open=!1;y.type=e.type;e.autofocus=e==o();e.readOnly=!p.editable;e.id=e.id||y.id;e.type!="text"&&(e.type="text");v.component=new l(v,p);v.$root=n('<div class="'+w.picker+'" id="'+e.id+'_root" />');rt();v.$holder=n(g()).appendTo(v.$root);ut();p.formatSubmit&&ft();it();p.containerHidden?n(p.containerHidden).append(v._hidden):b.after(v._hidden);p.container?n(p.container).append(v.$root):b.after(v.$root);v.on({start:v.component.onStart,render:v.component.onRender,stop:v.component.onStop,open:v.component.onOpen,close:v.component.onClose,set:v.component.onSet}).on({start:p.onStart,render:p.onRender,stop:p.onStop,open:p.onOpen,close:p.onClose,set:p.onSet});return k=c(v.$holder[0]),e.autofocus&&v.open(),v.trigger("start").trigger("render")},render:function(n){return n?(v.$holder=g(),v.$root.html(v.$holder)):v.$root.find("."+w.box).html(v.component.nodes(y.open)),v.trigger("render")},stop:function(){return y.start?(v.close(),v._hidden&&v._hidden.parentNode.removeChild(v._hidden),v.$root.remove(),b.removeClass(w.input).removeData(s),setTimeout(function(){b.off("."+y.id)},0),e.type=y.type,e.readOnly=!1,v.trigger("stop"),y.methods={},y.start=!1,v):v},open:function(o){if(y.open)return v;if(b.addClass(w.active),i(e,"expanded",!0),setTimeout(function(){v.$root.addClass(w.opened);i(v.$root[0],"hidden",!1)},0),o!==!1){y.open=!0;k&&r.css("overflow","hidden").css("padding-right","+="+f());et();u.on("click."+y.id+" focusin."+y.id,function(n){var t=n.target;t!=e&&t!=document&&n.which!=3&&v.close(t===v.$holder[0])}).on("keydown."+y.id,function(i){var r=i.keyCode,u=v.component.key[r],f=i.target;r==27?v.close(!0):f==v.$holder[0]&&(u||r==13)?(i.preventDefault(),u?t._.trigger(v.component.key.go,v,[t._.trigger(u)]):v.$root.find("."+w.highlighted).hasClass(w.disabled)||(v.set("select",v.component.item.highlight),p.closeOnSelect&&v.close(!0))):n.contains(v.$root[0],f)&&r==13&&(i.preventDefault(),f.click())})}return v.trigger("open")},close:function(n){return(n&&(p.editable?e.focus():(v.$holder.off("focus.toOpen").focus(),setTimeout(function(){v.$holder.on("focus.toOpen",nt)},0))),b.removeClass(w.active),i(e,"expanded",!1),setTimeout(function(){v.$root.removeClass(w.opened+" "+w.focused);i(v.$root[0],"hidden",!0)},0),!y.open)?v:(y.open=!1,k&&r.css("overflow","").css("padding-right","-="+f()),u.off("."+y.id),v.trigger("close"))},clear:function(n){return v.set("clear",null,n)},set:function(t,i,r){var u,f,o=n.isPlainObject(t),e=o?t:{};if(r=o&&n.isPlainObject(i)?i:r||{},t){o||(e[t]=i);for(u in e)f=e[u],u in v.component.item&&(f===undefined&&(f=null),v.component.set(u,f,r)),(u=="select"||u=="clear")&&b.val(u=="clear"?"":v.get(u,p.format)).trigger("change");v.render()}return r.muted?v:v.trigger("set",e)},get:function(n,i){if(n=n||"value",y[n]!=null)return y[n];if(n=="valueSubmit"){if(v._hidden)return v._hidden.value;n="value"}if(n=="value")return e.value;if(n in v.component.item){if(typeof i=="string"){var r=v.component.get(n);return r?t._.trigger(v.component.formats.toString,v.component,[i,r]):""}return v.component.get(n)}},on:function(t,i,r){var u,e,o=n.isPlainObject(t),f=o?t:{};if(t){o||(f[t]=i);for(u in f)e=f[u],r&&(u="_"+u),y.methods[u]=y.methods[u]||[],y.methods[u].push(e)}return v},off:function(){var n,t,i=arguments;for(n=0,namesCount=i.length;n<namesCount;n+=1)t=i[n],t in y.methods&&delete y.methods[t];return v},trigger:function(n,i){var r=function(n){var r=y.methods[n];r&&r.map(function(n){t._.trigger(n,v,[i])})};return r("_"+n),r(n),v}};return new d}function c(n){var t,i="position";return n.currentStyle?t=n.currentStyle[i]:window.getComputedStyle&&(t=getComputedStyle(n)[i]),t=="fixed"}function f(){var t,i,u,f;return r.height()<=s.height()?0:(t=n('<div style="visibility:hidden;width:100px" />').appendTo("body"),i=t[0].offsetWidth,t.css("overflow","scroll"),u=n('<div style="width:100%" />').appendTo(t),f=u[0].offsetWidth,t.remove(),i-f)}function i(t,i,r){if(n.isPlainObject(i))for(var u in i)e(t,u,i[u]);else e(t,i,r)}function e(n,t,i){n.setAttribute((t=="role"?"":"aria-")+t,i)}function l(t,i){var r,u,f;n.isPlainObject(t)||(t={attribute:i});i="";for(r in t)u=(r=="role"?"":"aria-")+r,f=t[r],i+=f==null?"":u+'="'+t[r]+'"';return i}function o(){try{return document.activeElement}catch(n){}}var s=n(window),u=n(document),r=n(document.documentElement),h=function(){return document.body.style.transition!=null};return t.klasses=function(n){return n=n||"picker",{picker:n,opened:n+"--opened",focused:n+"--focused",input:n+"__input",active:n+"__input--active",target:n+"__input--target",holder:n+"__holder",frame:n+"__frame",wrap:n+"__wrap",box:n+"__box"}},t._={group:function(n){for(var i,u="",r=t._.trigger(n.min,n);r<=t._.trigger(n.max,n,[r]);r+=n.i)i=t._.trigger(n.item,n,[r]),u+=t._.node(n.node,i[0],i[1],i[2]);return u},node:function(t,i,r,u){return i?(i=n.isArray(i)?i.join(""):i,r=r?' class="'+r+'"':"",u=u?" "+u:"","<"+t+r+u+">"+i+"<\/"+t+">"):""},lead:function(n){return(n<10?"0":"")+n},trigger:function(n,t,i){return typeof n=="function"?n.apply(t,i||[]):n},digits:function(n){return/\d/.test(n[1])?2:1},isDate:function(n){return{}.toString.call(n).indexOf("Date")>-1&&this.isInteger(n.getDate())},isInteger:function(n){return{}.toString.call(n).indexOf("Number")>-1&&n%1==0},ariaAttr:l},t.extend=function(i,r){n.fn[i]=function(u,f){var e=this.data(i);return u=="picker"?e:e&&typeof u=="string"?t._.trigger(e[u],e,[f]):this.each(function(){var f=n(this);f.data(i)||new t(this,i,r,u)})};n.fn[i].defaults=r.defaults},t}); 40/*! 41 * Date picker for pickadate.js v3.5.5 42 * https://amsul.github.io/pickadate.js/date.htm 43 */ 44(function(n){typeof define=="function"&&define.amd?define(["picker","jquery"],n):typeof exports=="object"?module.exports=n(require("./picker.js"),require("jquery")):n(Picker,jQuery)})(function(n,t){function r(n,t){var i=this,r=n.$node[0],o=r.value,u=n.$node.data("value"),f=u||o,s=u?t.formatSubmit:t.format,e=function(){return r.currentStyle?r.currentStyle.direction=="rtl":getComputedStyle(n.$root[0]).direction=="rtl"};i.settings=t;i.$node=n.$node;i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"};i.item={};i.item.clear=null;i.item.disable=(t.disable||[]).slice(0);i.item.enable=-function(n){return n[0]===!0?n.shift():-1}(i.item.disable);i.set("min",t.min).set("max",t.max).set("now");f?i.set("select",f,{format:s,defaultValue:!0}):i.set("select",null).set("highlight",i.item.now);i.key={40:7,38:-7,39:function(){return e()?-1:1},37:function(){return e()?1:-1},go:function(n){var t=i.item.highlight,r=new Date(t.year,t.month,t.date+n);i.set("highlight",r,{interval:n});this.render()}};n.on("render",function(){n.$root.find("."+t.klass.selectMonth).on("change",function(){var i=this.value;i&&(n.set("highlight",[n.get("view").year,i,n.get("highlight").date]),n.$root.find("."+t.klass.selectMonth).trigger("focus"))});n.$root.find("."+t.klass.selectYear).on("change",function(){var i=this.value;i&&(n.set("highlight",[i,n.get("view").month,n.get("highlight").date]),n.$root.find("."+t.klass.selectYear).trigger("focus"))})},1).on("open",function(){var r="";i.disabled(i.get("now"))&&(r=":not(."+t.klass.buttonToday+")");n.$root.find("button"+r+", select").attr("disabled",!1)},1).on("close",function(){n.$root.find("button, select").attr("disabled",!0)},1)}var u=7,f=6,i=n._;r.prototype.set=function(n,t,i){var r=this,u=r.item;return t===null?(n=="clear"&&(n="select"),u[n]=t,r):(u[n=="enable"?"disable":n=="flip"?"enable":n]=r.queue[n].split(" ").map(function(u){return t=r[u](n,t,i)}).pop(),n=="select"?r.set("highlight",u.select,i):n=="highlight"?r.set("view",u.highlight,i):n.match(/^(flip|min|max|disable|enable)$/)&&(u.select&&r.disabled(u.select)&&r.set("select",u.select,i),u.highlight&&r.disabled(u.highlight)&&r.set("highlight",u.highlight,i)),r)};r.prototype.get=function(n){return this.item[n]};r.prototype.create=function(n,r,u){var f,e=this;return r=r===undefined?n:r,r==-Infinity||r==Infinity?f=r:t.isPlainObject(r)&&i.isInteger(r.pick)?r=r.obj:t.isArray(r)?(r=new Date(r[0],r[1],r[2]),r=i.isDate(r)?r:e.create().obj):r=i.isInteger(r)||i.isDate(r)?e.normalize(new Date(r),u):e.now(n,r,u),{year:f||r.getFullYear(),month:f||r.getMonth(),date:f||r.getDate(),day:f||r.getDay(),obj:f||r,pick:f||r.getTime()}};r.prototype.createRange=function(n,r){var f=this,u=function(n){return n===!0||t.isArray(n)||i.isDate(n)?f.create(n):n};return i.isInteger(n)||(n=u(n)),i.isInteger(r)||(r=u(r)),i.isInteger(n)&&t.isPlainObject(r)?n=[r.year,r.month,r.date+n]:i.isInteger(r)&&t.isPlainObject(n)&&(r=[n.year,n.month,n.date+r]),{from:u(n),to:u(r)}};r.prototype.withinRange=function(n,t){return n=this.createRange(n.from,n.to),t.pick>=n.from.pick&&t.pick<=n.to.pick};r.prototype.overlapRanges=function(n,t){var i=this;return n=i.createRange(n.from,n.to),t=i.createRange(t.from,t.to),i.withinRange(n,t.from)||i.withinRange(n,t.to)||i.withinRange(t,n.from)||i.withinRange(t,n.to)};r.prototype.now=function(n,t,i){return t=new Date,i&&i.rel&&t.setDate(t.getDate()+i.rel),this.normalize(t,i)};r.prototype.navigate=function(n,i,r){var s,f,u,e,c=t.isArray(i),h=t.isPlainObject(i),o=this.item.view;if(c||h){for(h?(f=i.year,u=i.month,e=i.date):(f=+i[0],u=+i[1],e=+i[2]),r&&r.nav&&o&&o.month!==u&&(f=o.year,u=o.month),s=new Date(f,u+(r&&r.nav?r.nav:0),1),f=s.getFullYear(),u=s.getMonth();new Date(f,u,e).getMonth()!==u;)e-=1;i=[f,u,e]}return i};r.prototype.normalize=function(n){return n.setHours(0,0,0,0),n};r.prototype.measure=function(n,t){var r=this;return t?typeof t=="string"?t=r.parse(n,t):i.isInteger(t)&&(t=r.now(n,t,{rel:t})):t=n=="min"?-Infinity:Infinity,t};r.prototype.viewset=function(n,t){return this.create([t.year,t.month,1])};r.prototype.validate=function(n,r,u){var f=this,c=r,e=u&&u.interval?u.interval:1,h=f.item.enable===-1,l,a,o=f.item.min,s=f.item.max,v,y,p=h&&f.item.disable.filter(function(n){if(t.isArray(n)){var u=f.create(n).pick;u<r.pick?l=!0:u>r.pick&&(a=!0)}return i.isInteger(n)}).length;if((!u||!u.nav&&!u.defaultValue)&&(!h&&f.disabled(r)||h&&f.disabled(r)&&(p||l||a)||!h&&(r.pick<=o.pick||r.pick>=s.pick)))for(h&&!p&&(!a&&e>0||!l&&e<0)&&(e*=-1);f.disabled(r);
44){if(Math.abs(e)>1&&(r.month<c.month||r.month>c.month)&&(r=c,e=e>0?1:-1),r.pick<=o.pick?(v=!0,e=1,r=f.create([o.year,o.month,o.date+(r.pick===o.pick?0:-1)])):r.pick>=s.pick&&(y=!0,e=-1,r=f.create([s.year,s.month,s.date+(r.pick===s.pick?0:1)])),v&&y)break;r=f.create([r.year,r.month,r.date+e])}return r};r.prototype.disabled=function(n){var r=this,u=r.item.disable.filter(function(u){return i.isInteger(u)?n.day===(r.settings.firstDay?u:u-1)%7:t.isArray(u)||i.isDate(u)?n.pick===r.create(u).pick:t.isPlainObject(u)?r.withinRange(u,n):void 0});return u=u.length&&!u.filter(function(n){return t.isArray(n)&&n[3]=="inverted"||t.isPlainObject(n)&&n.inverted}).length,r.item.enable===-1?!u:u||n.pick<r.item.min.pick||n.pick>r.item.max.pick};r.prototype.parse=function(n,t,r){var f=this,u={};return!t||typeof t!="string"?t:(r&&r.format||(r=r||{},r.format=f.settings.format),f.formats.toArray(r.format).map(function(n){var r=f.formats[n],e=r?i.trigger(r,f,[t,u]):n.replace(/^!/,"").length;r&&(u[n]=t.substr(0,e));t=t.substr(e)}),[u.yyyy||u.yy,+(u.mm||u.m)-1,u.dd||u.d])};r.prototype.formats=function(){function n(n,t,i){var r=n.match(/[^\x00-\x7F]+|\w+/)[0];return i.mm||i.m||(i.m=t.indexOf(r)+1),r.length}function t(n){return n.match(/\w+/)[0].length}return{d:function(n,t){return n?i.digits(n):t.date},dd:function(n,t){return n?2:i.lead(t.date)},ddd:function(n,i){return n?t(n):this.settings.weekdaysShort[i.day]},dddd:function(n,i){return n?t(n):this.settings.weekdaysFull[i.day]},m:function(n,t){return n?i.digits(n):t.month+1},mm:function(n,t){return n?2:i.lead(t.month+1)},mmm:function(t,i){var r=this.settings.monthsShort;return t?n(t,r,i):r[i.month]},mmmm:function(t,i){var r=this.settings.monthsFull;return t?n(t,r,i):r[i.month]},yy:function(n,t){return n?2:(""+t.year).slice(2)},yyyy:function(n,t){return n?4:t.year},toArray:function(n){return n.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(n,t){var r=this;return r.formats.toArray(n).map(function(n){return i.trigger(r.formats[n],r,[0,t])||n.replace(/^!/,"")}).join("")}}}();r.prototype.isDateExact=function(n,r){var u=this;return i.isInteger(n)&&i.isInteger(r)||typeof n=="boolean"&&typeof r=="boolean"?n===r:(i.isDate(n)||t.isArray(n))&&(i.isDate(r)||t.isArray(r))?u.create(n).pick===u.create(r).pick:t.isPlainObject(n)&&t.isPlainObject(r)?u.isDateExact(n.from,r.from)&&u.isDateExact(n.to,r.to):!1};r.prototype.isDateOverlap=function(n,r){var u=this,f=u.settings.firstDay?1:0;return i.isInteger(n)&&(i.isDate(r)||t.isArray(r))?(n=n%7+f,n===u.create(r).day+1):i.isInteger(r)&&(i.isDate(n)||t.isArray(n))?(r=r%7+f,r===u.create(n).day+1):t.isPlainObject(n)&&t.isPlainObject(r)?u.overlapRanges(n,r):!1};r.prototype.flipEnable=function(n){var t=this.item;t.enable=n||(t.enable==-1?1:-1)};r.prototype.deactivate=function(n,r){var f=this,u=f.item.disable.slice(0);return r=="flip"?f.flipEnable():r===!1?(f.flipEnable(1),u=[]):r===!0?(f.flipEnable(-1),u=[]):r.map(function(n){for(var e,r=0;r<u.length;r+=1)if(f.isDateExact(n,u[r])){e=!0;break}e||(i.isInteger(n)||i.isDate(n)||t.isArray(n)||t.isPlainObject(n)&&n.from&&n.to)&&u.push(n)}),u};r.prototype.activate=function(n,r){var f=this,u=f.item.disable,e=u.length;return r=="flip"?f.flipEnable():r===!0?(f.flipEnable(1),u=[]):r===!1?(f.flipEnable(-1),u=[]):r.map(function(n){for(var o,s,h,r=0;r<e;r+=1)if(s=u[r],f.isDateExact(s,n)){o=u[r]=null;h=!0;break}else if(f.isDateOverlap(s,n)){t.isPlainObject(n)?(n.inverted=!0,o=n):t.isArray(n)?(o=n,o[3]||o.push("inverted")):i.isDate(n)&&(o=[n.getFullYear(),n.getMonth(),n.getDate(),"inverted"]);break}if(o)for(r=0;r<e;r+=1)if(f.isDateExact(u[r],n)){u[r]=null;break}if(h)for(r=0;r<e;r+=1)if(f.isDateOverlap(u[r],n)){u[r]=null;break}o&&u.push(o)}),u.filter(function(n){return n!=null})};r.prototype.nodes=function(n){var r=this,t=r.settings,o=r.item,c=o.now,l=o.select,a=o.highlight,e=o.view,w=o.disable,s=o.min,h=o.max,b=function(n,r){return t.firstDay&&(n.push(n.shift()),r.push(r.shift())),i.node("thead",i.node("tr",i.group({min:0,max:u-1,i:1,node:"th",item:function(i){return[n[i],t.klass.weekdays,'scope=col title="'+r[i]+'"']}})))}((t.showWeekdaysFull?t.weekdaysFull:t.weekdaysShort).slice(0),t.weekdaysFull.slice(0)),v=function(n){return i.node("div"," ",t.klass["nav"+(n?"Next":"Prev")]+(n&&e.year>=h.year&&e.month>=h.month||!n&&e.year<=s.year&&e.month<=s.month?" "+t.klass.navDisabled:""),"data-nav="+(n||-1)+" "+i.ariaAttr({role:"button",controls:r.$node[0].id+"_table"})+' title="'+(n?t.labelMonthNext:t.labelMonthPrev)+'"')},y=function(){var u=t.showMonthsShort?t.monthsShort:t.monthsFull;return t.selectMonths?i.node("select",i.group({min:0,max:11,i:1,node:"option",item:function(n){return[u[n],0,"value="+n+(e.month==n?" selected":"")+(e.year==s.year&&n<s.month||e.year==h.year&&n>h.month?" disabled":"")]}}),t.klass.selectMonth,(n?"":"disabled")+" "+i.ariaAttr({controls:r.$node[0].id+"_table"})+' title="'+t.labelMonthSelect+'"'):i.node("div",u[e.month],t.klass.month)},p=function(){var o=e.year,l=t.selectYears===!0?5:~~(t.selectYears/2),v,y;if(l){var c=s.year,a=h.year,u=o-l,f=o+l;return c>u&&(f+=c-u,u=c),a<f&&(v=u-c,y=f-a,u-=v>y?y:v,f=a),i.node("select",i.group({min:u,max:f,i:1,node:"option",item:function(n){return[n,0,"value="+n+(o==n?" selected":"")]}}),t.klass.selectYear,(n?"":"disabled")+" "+i.ariaAttr({controls:r.$node[0].id+"_table"})+' title="'+t.labelYearSelect+'"')}return i.node("div",o,t.klass.year)};return i.node("div",(t.selectYears?p()+y():y()+p())+v()+v(1),t.klass.header)+i.node("table",b+i.node("tbody",i.group({min:0,max:f-1,i:1,node:"tr",item:function(n){var f=t.firstDay&&r.create([e.year,e.month,1]).day===0?-7:0;return[i.group({min:u*n-e.day+f+1,max:function(){return this.min+u-1},i:1,node:"td",item:function(n){n=r.create([e.year,e.month,n+(t.firstDay?1:0)]);var u=l&&l.pick==n.pick,f=a&&a.pick==n.pick,o=w&&r.disabled(n)||n.pick<s.pick||n.pick>h.pick,v=i.trigger(r.formats.toString,r,[t.format,n]);return[i.node("div",n.date,function(i){return i.push(e.month==n.month?t.klass.infocus:t.klass.outfocus),c.pick==n.pick&&i.push(t.klass.now),u&&i.push(t.klass.selected),f&&i.push(t.klass.highlighted),o&&i.push(t.klass.disabled),i.join(" ")}([t.klass.day]),"data-pick="+n.pick+" "+i.ariaAttr({role:"gridcell",label:v,selected:u&&r.$node.val()===v?!0:null,activedescendant:f?!0:null,disabled:o?!0:null})),"",i.ariaAttr({role:"presentation"})]}})]}})),t.klass.table,'id="'+r.$node[0].id+'_table" '+i.ariaAttr({role:"grid",controls:r.$node[0].id,readonly:!0}))+i.node("div",i.node("button",t.today,t.klass.buttonToday,"type=button data-
44pick="+c.pick+(n&&!r.disabled(c)?"":" disabled")+" "+i.ariaAttr({controls:r.$node[0].id}))+i.node("button",t.clear,t.klass.buttonClear,"type=button data-clear=1"+(n?"":" disabled")+" "+i.ariaAttr({controls:r.$node[0].id}))+i.node("button",t.close,t.klass.buttonClose,"type=button data-close=true "+(n?"":" disabled")+" "+i.ariaAttr({controls:r.$node[0].id})),t.klass.footer)};r.defaults=function(n){return{labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:n+"table",header:n+"header",navPrev:n+"nav--prev",navNext:n+"nav--next",navDisabled:n+"nav--disabled",month:n+"month",year:n+"year",selectMonth:n+"select--month",selectYear:n+"select--year",weekdays:n+"weekday",day:n+"day",disabled:n+"day--disabled",selected:n+"day--selected",highlighted:n+"day--highlighted",now:n+"day--today",infocus:n+"day--infocus",outfocus:n+"day--outfocus",footer:n+"footer",buttonClear:n+"button--clear",buttonToday:n+"button--today",buttonClose:n+"button--close"}}}(n.klasses().picker+"__");n.extend("pickadate",r)}); 45/*! 46 * Time picker for pickadate.js v3.5.5 47 * https://amsul.github.io/pickadate.js/time.htm 48 */ 49(function(n){typeof define=="function"&&define.amd?define(["picker","jquery"],n):typeof exports=="object"?module.exports=n(require("./picker.js"),require("jquery")):n(Picker,jQuery)})(function(n,t){function r(n,t){var i=this,f=n.$node[0].value,r=n.$node.data("value"),u=r||f,e=r?t.formatSubmit:t.format;i.settings=t;i.$node=n.$node;i.queue={interval:"i",min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse create validate",view:"parse create validate",disable:"deactivate",enable:"activate"};i.item={};i.item.clear=null;i.item.interval=t.interval||30;i.item.disable=(t.disable||[]).slice(0);i.item.enable=-function(n){return n[0]===!0?n.shift():-1}(i.item.disable);i.set("min",t.min).set("max",t.max).set("now");u?i.set("select",u,{format:e}):i.set("select",null).set("highlight",i.item.now);i.key={40:1,38:-1,39:1,37:-1,go:function(n){i.set("highlight",i.item.highlight.pick+n*i.item.interval,{interval:n*i.item.interval});this.render()}};n.on("render",function(){var i=n.$root.children(),r=i.find("."+t.klass.viewset),u=function(n){return["webkit","moz","ms","o",""].map(function(t){return(t?"-"+t+"-":"")+n})},f=function(n,t){u("transform").map(function(i){n.css(i,t)});u("transition").map(function(i){n.css(i,t)})};r.length&&(f(i,"none"),i[0].scrollTop=~~r.position().top-r[0].clientHeight*2,f(i,""))},1).on("open",function(){n.$root.find("button").attr("disabled",!1)},1).on("close",function(){n.$root.find("button").attr("disabled",!0)},1)}var e=24,u=60,o=12,f=e*u,i=n._;r.prototype.set=function(n,t,i){var r=this,u=r.item;return t===null?(n=="clear"&&(n="select"),u[n]=t,r):(u[n=="enable"?"disable":n=="flip"?"enable":n]=r.queue[n].split(" ").map(function(u){return t=r[u](n,t,i)}).pop(),n=="select"?r.set("highlight",u.select,i):n=="highlight"?r.set("view",u.highlight,i):n=="interval"?r.set("min",u.min,i).set("max",u.max,i):n.match(/^(flip|min|max|disable|enable)$/)&&(u.select&&r.disabled(u.select)&&r.set("select",t,i),u.highlight&&r.disabled(u.highlight)&&r.set("highlight",t,i),n=="min"&&r.set("max",u.max,i)),r)};r.prototype.get=function(n){return this.item[n]};r.prototype.create=function(n,r,o){var s=this;return r=r===undefined?n:r,i.isDate(r)&&(r=[r.getHours(),r.getMinutes()]),t.isPlainObject(r)&&i.isInteger(r.pick)?r=r.pick:t.isArray(r)?r=+r[0]*u+ +r[1]:i.isInteger(r)||(r=s.now(n,r,o)),n=="max"&&r<s.item.min.pick&&(r+=f),n!="min"&&n!="max"&&(r-s.item.min.pick)%s.item.interval!=0&&(r+=s.item.interval),r=s.normalize(n,r,o),{hour:~~(e+r/u)%e,mins:(u+r%u)%u,time:(f+r)%f,pick:r%f}};r.prototype.createRange=function(n,r){var f=this,u=function(n){return n===!0||t.isArray(n)||i.isDate(n)?f.create(n):n};return i.isInteger(n)||(n=u(n)),i.isInteger(r)||(r=u(r)),i.isInteger(n)&&t.isPlainObject(r)?n=[r.hour,r.mins+n*f.settings.interval]:i.isInteger(r)&&t.isPlainObject(n)&&(r=[n.hour,n.mins+r*f.settings.interval]),{from:u(n),to:u(r)}};r.prototype.withinRange=function(n,t){return n=this.createRange(n.from,n.to),t.pick>=n.from.pick&&t.pick<=n.to.pick};r.prototype.overlapRanges=function(n,t){var i=this;return n=i.createRange(n.from,n.to),t=i.createRange(t.from,t.to),i.withinRange(n,t.from)||i.withinRange(n,t.to)||i.withinRange(t,n.from)||i.withinRange(t,n.to)};r.prototype.now=function(n,t){var f=this.item.interval,o=new Date,r=o.getHours()*u+o.getMinutes(),s=i.isInteger(t),e;return r-=r%f,e=t<0&&f*t+r<=-f,r+=n=="min"&&e?0:f,s&&(r+=f*(e&&n!="max"?t+1:t)),r};r.prototype.normalize=function(n,t){var i=this.item.interval,r=this.item.min&&this.item.min.pick||0;return t-(n=="min"?0:(t-r)%i)};r.prototype.measure=function(n,r,f){var o=this;return r||(r=n=="min"?[0,0]:[e-1,u-1]),typeof r=="string"?r=o.parse(n,r):r===!0||i.isInteger(r)?r=o.now(n,r,f):t.isPlainObject(r)&&i.isInteger(r.pick)&&(r=o.normalize(n,r.pick,f)),r};r.prototype.validate=function(n,t,i){var r=this,u=i&&i.interval?i.interval:r.item.interval;return r.disabled(t)&&(t=r.shift(t,u)),t=r.scope(t),r.disabled(t)&&(t=r.shift(t,u*-1)),t};r.prototype.disabled=function(n){var r=this,u=r.item.disable.filter(function(u){return i.isInteger(u)?n.hour==u:t.isArray(u)||i.isDate(u)?n.pick==r.create(u).pick:t.isPlainObject(u)?r.withinRange(u,n):void 0});return u=u.length&&!u.filter(function(n){return t.isArray(n)&&n[2]=="inverted"||t.isPlainObject(n)&&n.inverted}).length,r.item.enable===-1?!u:u||n.pick<r.item.min.pick||n.pick>r.item.max.pick};r.prototype.shift=function(n,t){var i=this,r=i.item.min.pick,u=i.item.max.pick;for(t=t||i.item.interval;i.disabled(n);)if(n=i.create(n.pick+=t),n.pick<=r||n.pick>=u)break;return n};r.prototype.scope=function(n){var t=this.item.min.pick,i=this.item.max.pick;return this.create(n.pick>i?i:n.pick<t?t:n)};r.prototype.parse=function(n,t,r){var s,c,l,f,o,h=this,e={};if(!t||typeof t!="string")return t;r&&r.format||(r=r||{},r.format=h.settings.format);h.formats.toArray(r.format).map(function(n){var r,u=h.formats[n],f=u?i.trigger(u,h,[t,e]):n.replace(/^!/,"").length;u&&(r=t.substr(0,f),e[n]=r.match(/^\d+$/)?+r:r);t=t.substr(f)});for(f in e)o=e[f],i.isInteger(o)?f.match(/^(h|hh)$/i)?(s=o,(f=="h"||f=="hh")&&(s%=12)):f=="i"&&(c=o):f.match(/^a$/i)&&o.match(/^p/i)&&("h"in e||"hh"in e)&&(l=!0);return(l?s+12:s)*u+c};r.prototype.formats={h:function(n,t){return n?i.digits(n):t.hour%o||o},hh:function(n,t){return n?2:i.lead(t.hour%o||o)},H:function(n,t){return n?i.digits(n):""+t.hour%24},HH:function(n,t){return n?i.digits(n):i.lead(t.hour%24)},i:function(n,t){return n?2:i.lead(t.mins)},a:function(n,t){return n?4:f/2>t.time%f?"a.m.":"p.m."},A:function(n,t){return n?2:f/2>t.time%f?"AM":"PM"},toArray:function(n){return n.split(/(h{1,2}|H{1,2}|i|a|A|!.)/g)},toString:function(n,t){var r=this;return r.formats.toArray(n).map(function(n){return i.trigger(r.formats[n],r,[0,t])||n.replace(/^!/,"")}).join("")}};r.prototype.isTimeExact=function(n,r){var u=this;return i.isInteger(n)&&i.isInteger(r)||typeof n=="boolean"&&typeof r=="boolean"?n===r:(i.isDate(n)||t.isArray(n))&&(i.isDate(r)||t.isArray(r))?u.create(n).pick===u.create(r).pick:t.isPlainObject(n)&&t.isPlainObject(r)?u.isTimeExact(n.from,r.from)&&u.isTimeExact(n.to,r.to):!1};r.prototype.isTimeOverlap=function(n,r){var u=this;return i.isInteger(n)&&(i.isDate(r)||t.isArray(r))?n===u.create(r).hour:i.isInteger(r)&&(i.isDate(n)||t.isArray(n))?r===u.create(n).hour:t.isPlainObject(n)&&t.isPlainObject(r)?u.overlapRanges(n,r):!1}
49;r.prototype.flipEnable=function(n){var t=this.item;t.enable=n||(t.enable==-1?1:-1)};r.prototype.deactivate=function(n,r){var f=this,u=f.item.disable.slice(0);return r=="flip"?f.flipEnable():r===!1?(f.flipEnable(1),u=[]):r===!0?(f.flipEnable(-1),u=[]):r.map(function(n){for(var e,r=0;r<u.length;r+=1)if(f.isTimeExact(n,u[r])){e=!0;break}e||(i.isInteger(n)||i.isDate(n)||t.isArray(n)||t.isPlainObject(n)&&n.from&&n.to)&&u.push(n)}),u};r.prototype.activate=function(n,r){var f=this,u=f.item.disable,e=u.length;return r=="flip"?f.flipEnable():r===!0?(f.flipEnable(1),u=[]):r===!1?(f.flipEnable(-1),u=[]):r.map(function(n){for(var o,s,h,r=0;r<e;r+=1)if(s=u[r],f.isTimeExact(s,n)){o=u[r]=null;h=!0;break}else if(f.isTimeOverlap(s,n)){t.isPlainObject(n)?(n.inverted=!0,o=n):t.isArray(n)?(o=n,o[2]||o.push("inverted")):i.isDate(n)&&(o=[n.getFullYear(),n.getMonth(),n.getDate(),"inverted"]);break}if(o)for(r=0;r<e;r+=1)if(f.isTimeExact(u[r],n)){u[r]=null;break}if(h)for(r=0;r<e;r+=1)if(f.isTimeOverlap(u[r],n)){u[r]=null;break}o&&u.push(o)}),u.filter(function(n){return n!=null})};r.prototype.i=function(n,t){return i.isInteger(t)&&t>0?t:this.item.interval};r.prototype.nodes=function(n){var t=this,r=t.settings,u=t.item.select,f=t.item.highlight,e=t.item.view,o=t.item.disable;return i.node("ul",i.group({min:t.item.min.pick,max:t.item.max.pick,i:t.item.interval,node:"li",item:function(n){n=t.create(n);var s=n.pick,h=u&&u.pick==s,c=f&&f.pick==s,l=o&&t.disabled(n),a=i.trigger(t.formats.toString,t,[r.format,n]);return[i.trigger(t.formats.toString,t,[i.trigger(r.formatLabel,t,[n])||r.format,n]),function(n){return h&&n.push(r.klass.selected),c&&n.push(r.klass.highlighted),e&&e.pick==s&&n.push(r.klass.viewset),l&&n.push(r.klass.disabled),n.join(" ")}([r.klass.listItem]),"data-pick="+n.pick+" "+i.ariaAttr({role:"option",label:a,selected:h&&t.$node.val()===a?!0:null,activedescendant:c?!0:null,disabled:l?!0:null})]}})+i.node("li",i.node("button",r.clear,r.klass.buttonClear,"type=button data-clear=1"+(n?"":" disabled")+" "+i.ariaAttr({controls:t.$node[0].id})),"",i.ariaAttr({role:"presentation"})),r.klass.list,i.ariaAttr({role:"listbox",controls:t.$node[0].id}))};r.defaults=function(n){return{clear:"Clear",format:"h:i A",interval:30,closeOnSelect:!0,closeOnClear:!0,klass:{picker:n+" "+n+"--time",holder:n+"__holder",list:n+"__list",listItem:n+"__list-item",disabled:n+"__list-item--disabled",selected:n+"__list-item--selected",highlighted:n+"__list-item--highlighted",viewset:n+"__list-item--viewset",now:n+"__list-item--now",buttonClear:n+"__button--clear"}}}(n.klasses().picker);n.extend("pickatime",r)}); 50/*! Copyright 2012, Ben Lin (https://dreamerslab.com/) 51 * Licensed under the MIT License (LICENSE.txt). 52 * 53 * Version: 1.0.16 54 * 55 * Requires: jQuery >= 1.2.3 56 */ 57(function(n){n.fn.addBack=n.fn.addBack||n.fn.andSelf;n.fn.extend({actual:function(t,i){var s,u,h,c;if(!this[t])throw'$.actual => The jQuery method "'+t+'" you called does not exist';var f=n.extend({absolute:!1,clone:!1,includeMargin:!1},i),r=this.eq(0),e,o;return f.clone===!0?(e=function(){r=r.clone().attr("style","position: absolute !important; top: -1000 !important; ").appendTo("body")},o=function(){r.remove()}):(s=[],u="",e=function(){h=r.parents().addBack().filter(":hidden");u+="visibility: hidden !important; display: block !important; ";f.absolute===!0&&(u+="position: absolute !important; ");h.each(function(){var i=n(this),t=i.attr("style");s.push(t);i.attr("style",t?t+";"+u:u)})},o=function(){h.each(function(t){var i=n(this),r=s[t];r===undefined?i.removeAttr("style"):i.attr("style",r)})}),e(),c=/(outer)/.test(t)?r[t](f.includeMargin):r[t](),o(),c}})})(jQuery);Object.create!=="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t});
57ItemList={HandlerUrl:"",SortParam:"",SortItemClass:"",SortClasses:[],PageParam:"",CountParam:"",HashParam:"",FilterParam:"",ContentSelector:"",CountSelector:"",ActiveItemClass:"",PagingSelector:"",JSONData:null,AjaxActive:0,Init:function(){var n=this;jQuery(n.PagingSelector).click(function(t){jQuery(n.PagingSelector).removeClass(n.ActiveItemClass);jQuery(this).addClass(n.ActiveItemClass);var i=jQuery(n.PagingSelector).closest(".paginator ul").append("<li><\/li>");return AppendLoader(i,"position:absolute;"),n.Refresh(this),t.stopImmediatePropagation(),!1});n.CountSelector&&jQuery(n.CountSelector).length&&jQuery(n.CountSelector).change(function(t){return AppendLoader(jQuery(this).closest(".results-dd"),"position:absolute;"),n.Refresh(this),t.stopImmediatePropagation(),!1});n.SortItemClass&&jQuery("."+n.SortItemClass).length&&jQuery("."+n.SortItemClass).click(function(t){return n.SetActiveSortItem(this),t.stopImmediatePropagation(),!1});n.AjaxActive=0},SetActiveSortItem:function(n){jQuery("."+this.SortItemClass).removeClass(this.ActiveItemClass).parent().removeClass(this.ActiveItemClass);jQuery(n).addClass(this.ActiveItemClass).parent().addClass(this.ActiveItemClass);AppendLoader(jQuery(n).closest(".sort"),"position:absolute;");this.Refresh(n)},Refresh:function(){var t=this.GetSendUrl(),n=this.ContentSelector;this.ScrollToSelector&&(n=this.ScrollToSelector);this.RefreshFromUrl(t,function(){ScrollToElement(n)})},RefreshHash:function(){var t=this.HandlerUrl+"&time="+(new Date).getTime()+"&"+this.HashParam+"="+location.hash.replace("#",""),n=this.ContentSelector;this.ScrollToSelector&&(n=this.ScrollToSelector);this.RefreshFromUrl(t,function(){ScrollToElement(n)})},RefreshFromUrl:function(n,t){RefreshFromUrlStatic(n,t,this.JSONData,this.ContentSelector,!1,this.FilterParam)},GetSendUrl:function(){var n=this.HandlerUrl+"&time="+(new Date).getTime(),r="."+this.SortItemClass+"."+this.ActiveItemClass,u,t,f,i;return this.SortItemClass&&this.ActiveItemClass&&jQuery(r).length&&(u=this.GetSort(jQuery(r)),n+="&"+this.SortParam+"="+u),t=this.GetPage(),t&&(n+="&"+this.PageParam+"="+t),this.CountSelector&&jQuery(this.CountSelector).length&&(f=jQuery(this.CountSelector).val(),n+="&"+this.CountParam+"="+f),i=this.GetFilterParamValue(),i&&(n+="&"+this.FilterParam+"="+i),n},GetSort:function(n){for(var i=1,t=0;t<this.SortClasses.length;t++)jQuery(n).hasClass(this.SortClasses[t])&&(i=t+1);return i},GetPage:function(){var t=jQuery(jQuery(this.PagingSelector+"."+this.ActiveItemClass).get(0)),i=jQuery(t).attr("href"),n=getUrlQueryParam(i,"page");return n==null&&(n=1),n},ReadParamsFrom:function(n){this.HandlerUrl=n.HandlerUrl;this.SortParam=n.SortParam;this.SortItemClass=n.SortItemClass;this.SortClasses=n.SortClasses;this.PageParam=n.PageParam;this.CountParam=n.CountParam;this.HashParam=n.HashParam;this.FilterParam=n.FilterParam;this.ContentSelector=n.ContentSelector;this.CountSelector=n.CountSelector;this.ActiveItemClass=n.ActiveItemClass;this.PagingSelector=n.PagingSelector;this.JSONData=n.JSONData},GetFilterParamValue:function(){return getUriQueryParameter(window.location,this.FilterParam)}};stateChangeStop=!1;RefreshFromUrlHandlersArray.prototype.add=function(n){for(var r,t=!1,u=n.toString().split("{",1)[0],i=0;i<this.funcs.length;i++)if(r=this.funcs[i].toString().split("{",1)[0],t=u==r,t)break;t||(this.funcs[this.funcs.length]=n)};RefreshFromUrlHandlersArray.prototype.callAllHandlers=function(n){for(var t=0;t<this.funcs.length;t++)this.funcs[t](n)};RefreshFromUrlHandlers=new RefreshFromUrlHandlersArray; 58/*! 59 * jQuery hashchange event - v1.3 - 7/21/2010 60 * http://benalman.com/projects/jquery-hashchange-plugin/ 61 * 62 * Copyright (c) 2010 "Cowboy" Ben Alman 63 * Dual licensed under the MIT and GPL licenses. 64 * http://benalman.com/about/license/ 65 */ 66(function($,n,t){function r(n){return n=n||location.href,"#"+n.replace(/^[^#]*#?(.*)$/,"$1")}var i="hashchange",u=document,f,o=$.event.special,s=u.documentMode,e="on"+i in n&&(s===t||s>7);$.fn[i]=function(n){return n?this.bind(i,n):this.trigger(i)};$.fn[i].delay=50;o[i]=$.extend(o[i],{setup:function(){if(e)return!1;$(f.start)},teardown:function(){if(e)return!1;$(f.stop)}});f=function(){function l(){var u=r(),t=a(s);u!==s?(c(s=u,t),$(n).trigger(i)):t!==s&&(location.href=location.href.replace(/#.*/,"")+t);o=setTimeout(l,$.fn[i].delay)}var f={},o,s=r(),h=function(n){return n},c=h,a=h;return f.start=function(){o||l()},f.stop=function(){o&&clearTimeout(o);o=t},$.browser.msie&&!e&&function(){var n,t;f.start=function(){n||(t=$.fn[i].src,t=t&&t+r(),n=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){t||c(r());l()}).attr("src",t||"javascript:0").insertAfter("body")[0].contentWindow,u.on
66propertychange=function(){try{event.propertyName==="title"&&(n.document.title=u.title)}catch(t){}})};f.stop=h;a=function(){return r(n.location.href)};c=function(t,r){var f=n.document,e=$.fn[i].domain;t!==r&&(f.title=u.title,f.open(),e&&f.write('<script>document.domain="'+e+'"<\/script>'),f.close(),n.location.hash=t)}}(),f}()})(jQuery,this);typeof JSON!="object"&&(JSON={}),function(){"use strict";function f(n){return n<10?"0"+n:n}function quote(n){return escapable.lastIndex=0,escapable.test(n)?'"'+n.replace(escapable,function(n){var t=meta[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function str(n,t){var r,e,u,o,s=gap,f,i=t[n];i&&typeof i=="object"&&typeof i.toJSON=="function"&&(i=i.toJSON(n));typeof rep=="function"&&(i=rep.call(t,n,i));switch(typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i)return"null";if(gap+=indent,f=[],Object.prototype.toString.apply(i)==="[object Array]"){for(o=i.length,r=0;r<o;r+=1)f[r]=str(r,i)||"null";return u=f.length===0?"[]":gap?"[\n"+gap+f.join(",\n"+gap)+"\n"+s+"]":"["+f.join(",")+"]",gap=s,u}if(rep&&typeof rep=="object")for(o=rep.length,r=0;r<o;r+=1)typeof rep[r]=="string"&&(e=rep[r],u=str(e,i),u&&f.push(quote(e)+(gap?": ":":")+u));else for(e in i)Object.prototype.hasOwnProperty.call(i,e)&&(u=str(e,i),u&&f.push(quote(e)+(gap?": ":":")+u));return u=f.length===0?"{}":gap?"{\n"+gap+f.join(",\n"+gap)+"\n"+s+"}":"{"+f.join(",")+"}",gap=s,u}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(n,t,i){var r;if(gap="",indent="",typeof i=="number")for(r=0;r<i;r+=1)indent+=" ";else typeof i=="string"&&(indent=i);if(rep=t,t&&typeof t!="function"&&(typeof t!="object"||typeof t.length!="number"))throw new Error("JSON.stringify");return str("",{"":n})});typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(n,t){var r,u,i=n[t];if(i&&typeof i=="object")for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(u=walk(i,r),u!==undefined?i[r]=u:delete i[r]);return reviver.call(n,t,i)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse");})}(); 67/** 68 * History.js jQuery Adapter 69 * @author Benjamin Arthur Lupton <[email protected]> 70 * @copyright 2010-2011 Benjamin Arthur Lupton <[email protected]> 71 * @license New BSD License <https://creativecommons.org/licenses/BSD/> 72 */ 73(function(n,t){"use strict";var i=n.History=n.History||{},r=n.jQuery;if(typeof i.Adapter!="undefined")throw new Error("History.js Adapter has already been loaded...");i.Adapter={bind:function(n,t,i){r(n).bind(t,i)},trigger:function(n,t,i){r(n).trigger(t,i)},extractEventData:function(n,i,r){return i&&i.originalEvent&&i.originalEvent[n]||r&&r[n]||t},onDomLoad:function(n){r(n)}};typeof i.init!="undefined"&&i.init()})(window); 74/** 75 * History.js HTML4 Support 76 * Depends on the HTML5 Support 77 * @author Benjamin Arthur Lupton <[email protected]> 78 * @copyright 2010-2011 Benjamin Arthur Lupton <[email protected]> 79 * @license New BSD License <https://creativecommons.org/licenses/BSD/> 80 */ 81(function(n){"use strict";var i=n.document,u=n.setTimeout||u,f=n.clearTimeout||f,r=n.setInterval||r,t=n.History=n.History||{};if(typeof t.initHtml4!="undefined")throw new Error("History.js HTML4 Support has already been loaded...");t.initHtml4=function(){if(typeof t.initHtml4.initialized!="undefined")return!1;if(t.initHtml4.initialized=!0,t.enabled=!0,t.savedHashes=[],t.isLastHash=function(n){var i=t.getHashByIndex();return n===i},t.isHashEqual=function(n,t){return n=encodeURIComponent(n).replace(/%25/g,"%"),t=encodeURIComponent(t).replace(/%25/g,"%"),n===t},t.saveHash=function(n){return t.isLastHash(n)?!1:(t.savedHashes.push(n),!0)},t.getHashByIndex=function(n){return typeof n=="undefined"?t.savedHashes[t.savedHashes.length-1]:n<0?t.savedHashes[t.savedHashes.length+n
81]:t.savedHashes[n]},t.discardedHashes={},t.discardedStates={},t.discardState=function(n,i,r){var f=t.getHashByState(n),u;return u={discardedState:n,backState:r,forwardState:i},t.discardedStates[f]=u,!0},t.discardHash=function(n,i,r){var u={discardedHash:n,backState:r,forwardState:i};return t.discardedHashes[n]=u,!0},t.discardedState=function(n){var i=t.getHashByState(n);return t.discardedStates[i]||!1},t.discardedHash=function(n){return t.discardedHashes[n]||!1},t.recycleState=function(n){var i=t.getHashByState(n);return t.discardedState(n)&&delete t.discardedStates[i],!0},t.emulated.hashChange){t.hashChangeInit=function(){t.checkerFunction=null;var f="",s,u,e,o,h=Boolean(t.getHash());return t.isInternetExplorer()?(s="historyjs-iframe",u=i.createElement("iframe"),u.setAttribute("id",s),u.setAttribute("src","#"),u.style.display="none",i.body.appendChild(u),u.contentWindow.document.open(),u.contentWindow.document.close(),e="",o=!1,t.checkerFunction=function(){if(o)return!1;o=!0;var r=t.getHash(),i=t.getHash(u.contentWindow.document);return r!==f?(f=r,i!==r&&(e=i=r,u.contentWindow.document.open(),u.contentWindow.document.close(),u.contentWindow.document.location.hash=t.escapeHash(r)),t.Adapter.trigger(n,"hashchange")):i!==e&&(e=i,h&&i===""?t.back():t.setHash(i,!1)),o=!1,!0}):t.checkerFunction=function(){var i=t.getHash()||"";return i!==f&&(f=i,t.Adapter.trigger(n,"hashchange")),!0},t.intervalList.push(r(t.checkerFunction,t.options.hashChangeInterval)),!0};t.Adapter.onDomLoad(t.hashChangeInit)}if(t.emulated.pushState&&(t.onHashChange=function(i){var e=i&&i.newURL||t.getLocationHref(),u=t.getHashByUrl(e),r=null,o=null,f;return t.isLastHash(u)?(t.busy(!1),!1):(t.doubleCheckComplete(),t.saveHash(u),u&&t.isTraditionalAnchor(u))?(t.Adapter.trigger(n,"anchorchange"),t.busy(!1),!1):(r=t.extractState(t.getFullUrl(u||t.getLocationHref()),!0),t.isLastSavedState(r))?(t.busy(!1),!1):(o=t.getHashByState(r),f=t.discardedState(r),f)?(t.getHashByIndex(-2)===t.getHashByState(f.forwardState)?t.back(!1):t.forward(!1),!1):(t.pushState(r.data,r.title,encodeURI(r.url),!1),!0)},t.Adapter.bind(n,"hashchange",t.onHashChange),t.pushState=function(i,r,u,f){if(u=encodeURI(u).replace(/%25/g,"%"),t.getHashByUrl(u))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(f!==!1&&t.busy())return t.pushQueue({scope:t,callback:t.pushState,args:arguments,queue:f}),!1;t.busy(!0);var e=t.createStateObject(i,r,u),o=t.getHashByState(e),s=t.getState(!1),h=t.getHashByState(s),c=t.getHash(),l=t.expectedStateId==e.id;return(t.storeState(e),t.expectedStateId=e.id,t.recycleState(e),t.setTitle(e),o===h)?(t.busy(!1),!1):(t.saveState(e),l||t.Adapter.trigger(n,"statechange"),t.isHashEqual(o,c)||t.isHashEqual(o,t.getShortUrl(t.getLocationHref()))||t.setHash(o,!1),t.busy(!1),!0)},t.replaceState=function(i,r,u,f){if(u=encodeURI(u).replace(/%25/g,"%"),t.getHashByUrl(u))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(f!==!1&&t.busy())return t.pushQueue({scope:t,callback:t.replaceState,args:arguments,queue:f}),!1;t.busy(!0);var e=t.createStateObject(i,r,u),s=t.getHashByState(e),o=t.getState(!1),h=t.getHashByState(o),c=t.getStateByIndex(-2);return t.discardState(o,e,c),s===h?(t.storeState(e),t.expectedStateId=e.id,t.recycleState(e),t.setTitle(e),t.saveState(e),t.Adapter.trigger(n,"statechange"),t.busy(!1)):t.pushState(e.data,e.title,e.url,!1),!0}),t.emulated.pushState&&t.getHash()&&!t.emulated.hashChange)t.Adapter.onDomLoad(function(){t.Adapter.trigger(n,"hashchange")})};typeof t.init!="undefined"&&t.init()})(window); 82/** 83 * History.js Core 84 * @author Benjamin Arthur Lupton <[email protected]> 85 * @copyright 2010-2011 Benjamin Arthur Lupton <[email protected]> 86 * @license New BSD License <https://creativecommons.org/licenses/BSD/> 87 */ 88(function(n,t){"use strict";var e=n.console||t,r=n.document,o=n.navigator,f=!1,h=n.setTimeout,c=n.clearTimeout,l=n.setInterval,a=n.clearInterval,u=n.JSON,v=n.alert,i=n.History=n.History||{},s=n.history;try{f=n.sessionStorage;f.setItem("TEST","1");f.removeItem("TEST")}catch(y){f=!1}if(u.stringify=u.stringify||u.encode,u.parse=u.parse||u.decode,typeof i.init!="undefined")throw new Error("History.js Core has already been loaded...");i.init=function(){return typeof i.Adapter=="undefined"?!1:(typeof i.initCore!="undefined"&&i.initCore(),typeof i.initHtml4!="undefined"&&i.initHtml4(),!0)};
88i.initCore=function(){if(typeof i.initCore.initialized!="undefined")return!1;i.initCore.initialized=!0;i.options=i.options||{};i.options.hashChangeInterval=i.options.hashChangeInterval||100;i.options.safariPollInterval=i.options.safariPollInterval||500;i.options.doubleCheckInterval=i.options.doubleCheckInterval||500;i.options.disableSuid=i.options.disableSuid||!1;i.options.storeInterval=i.options.storeInterval||1e3;i.options.busyDelay=i.options.busyDelay||250;i.options.debug=i.options.debug||!1;i.options.initialTitle=i.options.initialTitle||r.title;i.options.html4Mode=i.options.html4Mode||!1;i.options.delayInit=i.options.delayInit||!1;i.intervalList=[];i.clearAllIntervals=function(){var n,t=i.intervalList;if(typeof t!="undefined"&&t!==null){for(n=0;n<t.length;n++)a(t[n]);i.intervalList=null}};i.debug=function(){(i.options.debug||!1)&&i.log.apply(i,arguments)};i.log=function(){var s=!(typeof e=="undefined"||typeof e.log=="undefined"||typeof e.log.apply=="undefined"),t=r.getElementById("log"),n,f,h,o,i;for(s?(o=Array.prototype.slice.call(arguments),n=o.shift(),typeof e.debug!="undefined"?e.debug.apply(e,[n,o]):e.log.apply(e,[n,o])):n="\n"+arguments[0]+"\n",f=1,h=arguments.length;f<h;++f){if(i=arguments[f],typeof i=="object"&&typeof u!="undefined")try{i=u.stringify(i)}catch(c){}n+="\n"+i+"\n"}return t?(t.value+=n+"\n-----\n",t.scrollTop=t.scrollHeight-t.clientHeight):s||v(n),!0}; 89/** 90 * History.getInternetExplorerMajorVersion() 91 * Get's the major version of Internet Explorer 92 * @return {integer} 93 * @license Public Domain 94 * @author Benjamin Arthur Lupton <[email protected]> 95 * @author James Padolsey <https://gist.github.com/527683> 96 */ 97i.getInternetExplorerMajorVersion=function(){return i.getInternetExplorerMajorVersion.cached=typeof i.getInternetExplorerMajorVersion.cached!="undefined"?i.getInternetExplorerMajorVersion.cached:function(){for(var n=3,t=r.createElement("div"),i=t.getElementsByTagName("i");(t.innerHTML="<!--[if gt IE "+ ++n+"]><i><\/i><![endif]-->")&&i[0];);return n>4?n:!1}()}; 98/** 99 * History.isInternetExplorer() 100 * Are we using Internet Explorer? 101 * @return {boolean} 102 * @license Public Domain 103 * @author Benjamin Arthur Lupton <[email protected]> 104 */ 105if(i.isInternetExplorer=function(){return i.isInternetExplorer.cached=typeof i.isInternetExplorer.cached!="undefined"?i.isInternetExplorer.cached:Boolean(i.getInternetExplorerMajorVersion())},i.emulated=i.options.html4Mode?{pushState:!0,hashChange:!0}
105:{pushState:!Boolean(n.history&&n.history.pushState&&n.history.replaceState&&!(/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(o.userAgent)||/AppleWebKit\/5([0-2]|3[0-2])/i.test(o.userAgent))),hashChange:Boolean(!("onhashchange"in n||"onhashchange"in r)||i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8)},i.enabled=!i.emulated.pushState,i.bugs={setHash:Boolean(!i.emulated.pushState&&o.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(o.userAgent)),safariPoll:Boolean(!i.emulated.pushState&&o.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(o.userAgent)),ieDoubleCheck:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<7)},i.isEmptyObject=function(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0},i.cloneObject=function(n){var i,t;return n?(i=u.stringify(n),t=u.parse(i)):t={},t},i.getRootUrl=function(){var n=r.location.protocol+"//"+(r.location.hostname||r.location.host);return(r.location.port||!1)&&(n+=":"+r.location.port),n+"/"},i.getBaseHref=function(){var t=r.getElementsByTagName("base"),i=null,n="";return t.length===1&&(i=t[0],n=i.href.replace(/[^\/]+$/,"")),n=n.replace(/\/+$/,""),n&&(n+="/"),n},i.getBaseUrl=function(){return i.getBaseHref()||i.getBasePageUrl()||i.getRootUrl()},i.getPageUrl=function(){var n=i.getState(!1,!1),t=(n||{}).url||i.getLocationHref();return t.replace(/\/+$/,"").replace(/[^\/]+$/,function(n){return/\./.test(n)?n:n+"/"})},i.getBasePageUrl=function(){return i.getLocationHref().replace(/[#\?].*/,"").replace(/[^\/]+$/,function(n){return/[^\/]$/.test(n)?"":n}).replace(/\/+$/,"")+"/"},i.getFullUrl=function(n,t){var u=n,r=n.substring(0,1);return t=typeof t=="undefined"?!0:t,/[a-z]+\:\/\//.test(n)||(u=r==="/"?i.getRootUrl()+n.replace(/^\/+/,""):r==="#"?i.getPageUrl().replace(/#.*/,"")+n:r==="?"?i.getPageUrl().replace(/[\?#].*/,"")+n:t?i.getBaseUrl()+n.replace(/^(\.\/)+/,""):i.getBasePageUrl()+n.replace(/^(\.\/)+/,"")),u.replace(/\#$/,"")},i.getShortUrl=function(n){var t=n,r=i.getBaseUrl(),u=i.getRootUrl();return i.emulated.pushState&&(t=t.replace(r,"")),t=t.replace(u,"/"),i.isTraditionalAnchor(t)&&(t="./"+t),t.replace(/^(\.\/)+/g,"./").replace(/\#$/,"")},i.getLocationHref=function(n){return(n=n||r,n.URL===n.location.href)?n.location.href:n.location.href===decodeURIComponent(n.URL)?n.URL:n.location.hash&&decodeURIComponent(n.location.href.replace(/^[^#]+/,""))===n.location.hash?n.location.href:n.URL.indexOf("#")==-1&&n.location.href.indexOf("#")!=-1?n.location.href:n.URL||n.location.href},i.store={},i.idToState=i.idToState||{},i.stateToId=i.stateToId||{},i.urlToId=i.urlToId||{},i.storedStates=i.storedStates||[],i.savedStates=i.savedStates||[],i.normalizeStore=function(){i.store.idToState=i.store.idToState||{};i.store.urlToId=i.store.urlToId||{};i.store.stateToId=i.store.stateToId||{}},i.getState=function(n,t){typeof n=="undefined"&&(n=!0);typeof t=="undefined"&&(t=!0);var r=i.getLastSavedState();return!r&&t&&(r=i.createStateObject()),n&&(r=i.cloneObject(r),r.url=r.cleanUrl||r.url),r},i.getIdByState=function(n){var t=i.extractId(n.url),r;if(!t)if(r=i.getStateString(n),typeof i.stateToId[r]!="undefined")t=i.stateToId[r];else if(typeof i.store.stateToId[r]!="undefined")t=i.store.stateToId[r];else{for(;;)if(t=(new Date).getTime()+String(Math.random()).replace(/\D/g,""),typeof i.idToState[t]=="undefined"&&typeof i.store.idToState[t]=="undefined")break;i.stateToId[r]=t;i.idToState[t]=n}return t},i.normalizeState=function(n){var t,r;return(n&&typeof n=="object"||(n={}),typeof n.normalized!="undefined")?n:(n.data&&typeof n.data=="object"||(n.data={}),t={},t.normalized=!0,t.title=n.title||"",t.url=i.getFullUrl(n.url?n.url:i.getLocationHref()),t.hash=i.getShortUrl(t.url),t.data=i.cloneObject(n.data),t.id=i.getIdByState(t),t.cleanUrl=t.url.replace(/\??\&_suid.*/,""),t.url=t.cleanUrl,r=!i.isEmptyObject(t.data),(t.title||r)&&i.options.disableSuid!==!0&&(t.hash=i.getShortUrl(t.url).replace(/\??\&_suid.*/,""),/\?/.test(t.hash)||(t.hash+="?"),t.hash+="&_suid="+t.id),t.hashedUrl=i.getFullUrl(t.hash),(i.emulated.pushState||i.bugs.safariPoll)&&i.hasUrlDuplicate(t)&&(t.url=t.hashedUrl),t)},i.createStateObject=function(n,t,r){var u={data:n,title:t,url:r};return i.normalizeState(u)},i.getStateById=function(n){n=String(n);return i.idToState[n]||i.store.idToState[n]||t},i.getStateString=function(n){var t,r;return t=i.normalizeState(n),r={data:t.data,title:n.title,url:n.url},u.stringify(r)},i.getStateId=function(n){var t;return t=i.normalizeState(n),t.id},i.getHashByState=function(n){var t;return t=i.normalizeState(n),t.hash},i.extractId=function(n){var i,t,u,r;return r=n.indexOf("#")!=-1?n.split("#")[0]:n,t=/(.*)\&_suid=([0-9]+)$/.exec(r),u=t?t[1]||n:n,i=t?String(t[2]||""):"",i||!1},i.isTraditionalAnchor=function(n){return!/[\/\?\.]/.test(n)},i.extractState=function(n,t){var r=null,u,f;return t=t||!1,u=i.extractId(n),u&&(r=i.getStateById(u)),r||(f=i.getFullUrl(n),u=i.getIdByUrl(f)||!1,u&&(r=i.getStateById(u)),r||!t||i.isTraditionalAnchor(n)||(r=i.createStateObject(null,null,f))),r},i.getIdByUrl=function(n){return i.urlToId[n]||i.store.urlToId[n]||t},i.getLastSavedState=function(){return i.savedStates[i.savedStates.length-1]||t},i.getLastStoredState=function(){return i.storedStates[i.storedStates.length-1]||t},i.hasUrlDuplicate=function(n){var t;return t=i.extractState(n.url),t&&t.id!==n.id},i.storeState=function(n){return i.urlToId[n.url]=n.id,i.storedStates.push(i.cloneObject(n)),n},i.isLastSavedState=function(n){var t=!1,r,u,f;return i.savedStates.length&&(r=n.id,u=i.getLastSavedState(),f=u.id,t=r===f),t},i.saveState=function(n){return i.isLastSavedState(n)?!1:(i.savedStates.push(i.cloneObject(n)),!0)},i.getStateByIndex=function(n){return typeof n=="undefined"?i.savedStates[i.savedStates.length-1]:n<0?i.savedStates[i.savedStates.length+n
105]:i.savedStates[n]},i.getCurrentIndex=function(){return i.savedStates.length<1?0:i.savedStates.length-1},i.getHash=function(n){var t=i.getLocationHref(n);return i.getHashByUrl(t)},i.unescapeHash=function(n){var t=i.normalizeHash(n);return decodeURIComponent(t)},i.normalizeHash=function(n){return n.replace(/[^#]*#/,"").replace(/#.*/,"")},i.setHash=function(n,t){var u,f;return t!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.setHash,args:arguments,queue:t}),!1):(i.busy(!0),u=i.extractState(n,!0),u&&!i.emulated.pushState?i.pushState(u.data,u.title,u.url,!1):i.getHash()!==n&&(i.bugs.setHash?(f=i.getPageUrl(),i.pushState(null,null,f+"#"+n,!1)):r.location.hash=n),i)},i.escapeHash=function(t){var r=i.normalizeHash(t);return r=n.encodeURIComponent(r),i.bugs.hashEscape||(r=r.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),r},i.getHashByUrl=function(n){var t=String(n).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return i.unescapeHash(t)},i.setTitle=function(n){var t=n.title,u;t||(u=i.getStateByIndex(0),u&&u.url===n.url&&(t=u.title||i.options.initialTitle));try{r.getElementsByTagName("title")[0].innerHTML=t.replace("<","<").replace(">",">").replace(" & "," & ")}catch(f){}return r.title=t,i},i.queues=[],i.busy=function(n){if(typeof n!="undefined"?i.busy.flag=n:typeof i.busy.flag=="undefined"&&(i.busy.flag=!1),!i.busy.flag){c(i.busy.timeout);var t=function(){var n,r,u;if(!i.busy.flag)for(n=i.queues.length-1;n>=0;--n)(r=i.queues[n],r.length!==0)&&(u=r.shift(),i.fireQueueItem(u),i.busy.timeout=h(t,i.options.busyDelay))};i.busy.timeout=h(t,i.options.busyDelay)}return i.busy.flag},i.busy.flag=!1,i.fireQueueItem=function(n){return n.callback.apply(n.scope||i,n.args||[])},i.pushQueue=function(n){return i.queues[n.queue||0]=i.queues[n.queue||0]||[],i.queues[n.queue||0].push(n),i},i.queue=function(n,t){return typeof n=="function"&&(n={callback:n}),typeof t!="undefined"&&(n.queue=t),i.busy()?i.pushQueue(n):i.fireQueueItem(n),i},i.clearQueue=function(){return i.busy.flag=!1,i.queues=[],i},i.stateChanged=!1,i.doubleChecker=!1,i.doubleCheckComplete=function(){return i.stateChanged=!0,i.doubleCheckClear(),i},i.doubleCheckClear=function(){return i.doubleChecker&&(c(i.doubleChecker),i.doubleChecker=!1),i},i.doubleCheck=function(n){return i.stateChanged=!1,i.doubleCheckClear(),i.bugs.ieDoubleCheck&&(i.doubleChecker=h(function(){return i.doubleCheckClear(),i.stateChanged||n(),!0},i.options.doubleCheckInterval)),i},i.safariStatePoll=function(){var r=i.extractState(i.getLocationHref()),t;if(!i.isLastSavedState(r))return t=r,t||(t=i.createStateObject()),i.Adapter.trigger(n,"popstate"),i},i.back=function(n){return n!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.back,args:arguments,queue:n}),!1):(i.busy(!0),i.doubleCheck(function(){i.back(!1)}),s.go(-1),!0)},i.forward=function(n){return n!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.forward,args:arguments,queue:n}),!1):(i.busy(!0),i.doubleCheck(function(){i.forward(!1)}),s.go(1),!0)},i.go=function(n,t){var r;if(n>0)for(r=1;r<=n;++r)i.forward(t);else if(n<0)for(r=-1;r>=n;--r)i.back(t);else throw new Error("History.go: History.go requires a positive or negative integer passed.");return i},i.emulated.pushState){var y=function(){};i.pushState=i.pushState||y;i.replaceState=i.replaceState||y}else i.onPopState=function(t,r){var e=!1,u=!1,o,f;return(i.doubleCheckComplete(),o=i.getHash(),o)?(f=i.extractState(o||i.getLocationHref(),!0),f?i.replaceState(f.data,f.title,f.url,!1):(i.Adapter.trigger(n,"anchorchange"),i.busy(!1)),i.expectedStateId=!1,!1):(e=i.Adapter.extractEventData("state",t,r)||!1,u=e?i.getStateById(e):i.expectedStateId?i.getStateById(i.expectedStateId):i.extractState(i.getLocationHref()),u||(u=i.createStateObject(null,null,i.getLocationHref())),i.expectedStateId=!1,i.isLastSavedState(u))?(i.busy(!1),!1):(i.storeState(u),i.saveState(u),i.setTitle(u),i.Adapter.trigger(n,"statechange"),i.busy(!1),!0)},i.Adapter.bind(n,"popstate",i.onPopState),i.pushState=function(t,r,u,f){if(i.getHashByUrl(u)&&i.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.pushState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u);return i.isLastSavedState(e)?i.busy(!1):(i.storeState(e),i.expectedStateId=e.id,s.pushState(e.id,e.title,e.url),i.Adapter.trigger(n,"popstate")),!0},i.replaceState=function(t,r,u,f){if(i.getHashByUrl(u)&&i.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.replaceState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u);return i.isLastSavedState(e)?i.busy(!1):(i.storeState(e),i.expectedStateId=e.id,s.replaceState(e.id,e.title,e.url),i.Adapter.trigger(n,"popstate")),!0};if(f){try{i.store=u.parse(f.getItem("History.store"))||{}}catch(p){i.store={}}
105i.normalizeStore()}else i.store={},i.normalizeStore();if(i.Adapter.bind(n,"unload",i.clearAllIntervals),i.saveState(i.storeState(i.extractState(i.getLocationHref(),!0))),f&&(i.onUnload=function(){var n,t,r;try{n=u.parse(f.getItem("History.store"))||{}}catch(o){n={}}n.idToState=n.idToState||{};n.urlToId=n.urlToId||{};n.stateToId=n.stateToId||{};for(t in i.idToState)i.idToState.hasOwnProperty(t)&&(n.idToState[t]=i.idToState[t]);for(t in i.urlToId)i.urlToId.hasOwnProperty(t)&&(n.urlToId[t]=i.urlToId[t]);for(t in i.stateToId)i.stateToId.hasOwnProperty(t)&&(n.stateToId[t]=i.stateToId[t]);i.store=n;i.normalizeStore();r=u.stringify(n);try{f.setItem("History.store",r)}catch(e){if(e.code===DOMException.QUOTA_EXCEEDED_ERR)f.length&&(f.removeItem("History.store"),f.setItem("History.store",r));else throw e;}},i.intervalList.push(l(i.onUnload,i.options.storeInterval)),i.Adapter.bind(n,"beforeunload",i.onUnload),i.Adapter.bind(n,"unload",i.onUnload)),!i.emulated.pushState&&(i.bugs.safariPoll&&i.intervalList.push(l(i.safariStatePoll,i.options.safariPollInterval)),(o.vendor==="Apple Computer, Inc."||(o.appCodeName||"")==="Mozilla")&&(i.Adapter.bind(n,"hashchange",function(){i.Adapter.trigger(n,"popstate")}),i.getHash())))i.Adapter.onDomLoad(function(){i.Adapter.trigger(n,"hashchange")})};i.options&&i.options.delayInit||i.init()})(window),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):typeof module!="undefined"&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){var e=-1,r=-1,i=function(n){return parseFloat(n)||0},o=function(t){var f=1,e=n(t),u=null,r=[];return e.each(function(){var t=n(this),e=t.offset().top-i(t.css("margin-top")),o=r.length>0?r[r.length-1]:null;o===null?r.push(t):Math.floor(Math.abs(u-e))<=f?r[r.length-1]=o.add(t):r.push(t);u=e}),r},u=function(t){var i={byRow:!0,property:"height",target:null,remove:!1};return typeof t=="object"?n.extend(i,t):(typeof t=="boolean"?i.byRow=t:t==="remove"&&(i.remove=!0),i)},t=n.fn.matchHeight=function(i){var r=u(i),f;return r.remove?(f=this,this.css(r.property,""),n.each(t._groups,function(n,t){t.elements=t.elements.not(f)}),this):this.length<=1&&!r.target?this:(t._groups.push({elements:this,options:r}),t._apply(this,r),this)},f;t.version="master";t._groups=[];t._throttle=80;t._maintainScroll=!1;t._beforeUpdate=null;t._afterUpdate=null;t._rows=o;t._parse=i;t._parseOptions=u;t._apply=function(r,f){var e=u(f),s=n(r),c=[s],l=n(window).scrollTop(),a=n("html").outerHeight(!0),h=s.parents().filter(":hidden");return h.each(function(){var t=n(this);t.data("style-cache",t.attr("style"))}),h.css("display","block"),e.byRow&&!e.target&&(s.each(function(){var i=n(this),t=i.css("display");t!=="inline-block"&&t!=="flex"&&t!=="inline-flex"&&(t="block");i.data("style-cache",i.attr("style"));i.css({display:t,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),c=o(s),s.each(function(){var t=n(this);t.attr("style",t.data("style-cache")||"")})),n.each(c,function(t,r){var u=n(r),f=0;if(e.target)f=e.target.outerHeight(!1);else{if(e.byRow&&u.length<=1){u.css(e.property,"");return}u.each(function(){var t=n(this),u=t.attr("style"),i=t.css("display"),r;i!=="inline-block"&&i!=="flex"&&i!=="inline-flex"&&(i="block");r={display:i};r[e.property]="";t.css(r);t.outerHeight(!1)>f&&(f=t.outerHeight(!1));u?t.attr("style",u):t.css("display","")})}u.each(function(){var t=n(this),r=0;e.target&&t.is(e.target)||(t.css("box-sizing")!=="border-box"&&(r+=i(t.css("border-top-width"))+i(t.css("border-bottom-width")),r+=i(t.css("padding-top"))+i(t.css("padding-bottom"))),t.css(e.property,f-r+"px"))})}),h.each(function(){var t=n(this);t.attr("style",t.data("style-cache")||null)}),t._maintainScroll&&n(window).scrollTop(l/a*n("html").outerHeight(!0)),this};t._applyDataApi=function(){var t={};n("[data-match-height], [data-mh]").each(function(){var i=n(this),r=i.attr("data-mh")||i.attr("data-match-height");t[r]=r in t?t[r].add(i):i});n.each(t,function(){this.matchHeight(!0)})};f=function(i){t._beforeUpdate&&t._beforeUpdate(i,t._groups);n.each(t._groups,function(){t._apply(this.elements,this.options)});t._afterUpdate&&t._afterUpdate(i,t._groups)};t._update=function(i,u){if(u&&u.type==="resize"){var o=n(window).width();if(o===e)return;e=o}i?r===-1&&(r=setTimeout(function(){f(u);r=-1},t._throttle)):f(u)};n(t._applyDataApi);n(window).bind("load",function(n){t._update(!1,n)});n(window).bind("resize orientationchange",function(n){t._update(!0,n)})});catalogCompare=function(){function t(n,t,i){$.ajax({url:n,type:"POST",data:t.toString(),success:function(n){i(n)},"async":!0})}var n=[];return{addCompareCountDisplay:function(t){n.indexOf(t)==-1&&n.push(t)},refreshCatalogCompareCount:function(t){for(var i=0;i<n.length;i++)$(n[i]).text(t)},addPage:function(n,i){t(this.addPagePostUrl,n,function(n){n.Success&&catalogCompare.refreshCatalogCompareCount(n.Count);i&&i(n)})},removePage:function(n,i){t(this.removePagePostUrl,n,function(n){n.Success&&catalogCompare.refreshCatalogCompareCount(n.Count);i&&i(n)})},addPagePostUrl:"",removePagePostUrl:""}}
105();window.catalogCompare=catalogCompare; 106/*! 107 * Isotope PACKAGED v3.0.1 108 * 109 * Licensed GPLv3 for open source use 110 * or Isotope Commercial License for commercial use 111 * 112 * https://isotope.metafizzy.co 113 * Copyright 2016 Metafizzy 114 */ 115(function(n,t){"use strict";typeof define=="function"&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){t(n,i)}):typeof module=="object"&&module.exports?module.exports=t(n,require("jquery")):n.jQueryBridget=t(n,n.jQuery)})(window,function(n,t){"use strict";function u(i,u,o){function s(n,t,u){var f,e="$()."+i+'("'+t+'")';return n.each(function(n,s){var h=o.data(s,i),c,l;if(!h){r(i+" not initialized. Cannot call methods, i.e. "+e);return}if(c=h[t],!c||t.charAt(0)=="_"){r(e+" is not a valid method");return}l=c.apply(h,u);f=f===undefined?l:f}),f!==undefined?f:n}function h(n,t){n.each(function(n,r){var f=o.data(r,i);f?(f.option(t),f._init()):(f=new u(r,t),o.data(r,i,f))})}(o=o||t||n.jQuery,o)&&(u.prototype.option||(u.prototype.option=function(n){o.isPlainObject(n)&&(this.options=o.extend(!0,this.options,n))}),o.fn[i]=function(n){if(typeof n=="string"){var t=e.call(arguments,1);return s(this,n,t)}return h(this,n),this},f(o))}function f(n){!n||n&&n.bridget||(n.bridget=u)}var e=Array.prototype.slice,i=n.console,r=typeof i=="undefined"?function(){}:function(n){i.error(n)};return f(t||n.jQuery),u}),function(n,t){typeof define=="function"&&define.amd?define("ev-emitter/ev-emitter",t):typeof module=="object"&&module.exports?module.exports=t():n.EvEmitter=t()}(typeof window!="undefined"?window:this,function(){function t(){}var n=t.prototype;return n.on=function(n,t){if(n&&t){var i=this._events=this._events||{},r=i[n]=i[n]||[];return r.indexOf(t)==-1&&r.push(t),this}},n.once=function(n,t){if(n&&t){this.on(n,t);var i=this._onceEvents=this._onceEvents||{},r=i[n]=i[n]||{};return r[t]=!0,this}},n.off=function(n,t){var i=this._events&&this._events[n],r;if(i&&i.length)return r=i.indexOf(t),r!=-1&&i.splice(r,1),this},n.emitEvent=function(n,t){var r=this._events&&this._events[n],u,i,f,e;if(r&&r.length){for(u=0,i=r[u],t=t||[],f=this._onceEvents&&this._onceEvents[n];i;)e=f&&f[i],e&&(this.off(n,i),delete f[i]),i.apply(this,t),u+=e?0:1,i=r[u];return this}},t}); 116/*! 117 * getSize v2.0.2 118 * measure size of elements 119 * MIT license 120 */ 121(function(n,t){"use strict";typeof define=="function"&&define.amd?define("get-size/get-size",[],function(){return t()}):typeof module=="object"&&module.exports?module.exports=t():n.getSize=t()})(window,function(){"use strict";function n(n){var t=parseFloat(n),i=n.indexOf("%")==-1&&!isNaN(t);return i&&t}function o(){}function h(){for(var u,r={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0;n<i;n++)u=t[n],r[u]=0;return r}function r(n){var t=getComputedStyle(n);return t||s("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}function c(){var t,i,o;u||(u=!0,t=document.createElement("div"),t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box",i=document.body||document.documentElement,i.appendChild(t),o=r(t),e.isBoxSizeOuter=f=n(o.width)==200,i.removeChild(t))}function e(u){var o,e,a,s,l;if(c(),typeof u=="string"&&(u=document.querySelector(u)),u&&typeof u=="object"&&u.nodeType){if(o=r(u),o.display=="none")return h();for(e={},e.width=u.offsetWidth,e.height=u.offsetHeight,a=e.isBorderBox=o.boxSizing=="border-box",s=0;s<i;s++){var v=t[s],nt=o[v],y=parseFloat(nt);e[v]=isNaN(y)?0:y}var p=e.paddingLeft+e.paddingRight,w=e.paddingTop+e.paddingBottom,tt=e.marginLeft+e.marginRight,it=e.marginTop+e.marginBottom,b=e.borderLeftWidth+e.borderRightWidth,k=e.borderTopWidth+e.borderBottomWidth,d=a&&f,g=n(o.width);return g!==!1&&(e.width=g+(d?0:p+b)),l=n(o.height),l!==!1&&(e.height=l+(d?0:w+k)),e.innerWidth=e.width-(p+b),e.innerHe
121ight=e.height-(w+k),e.outerWidth=e.width+tt,e.outerHeight=e.height+it,e}}var s=typeof console=="undefined"?o:function(n){console.error(n)},t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],i=t.length,u=!1,f;return e}),function(n,t){"use strict";typeof define=="function"&&define.amd?define("desandro-matches-selector/matches-selector",t):typeof module=="object"&&module.exports?module.exports=t():n.matchesSelector=t()}(window,function(){"use strict";var n=function(){var t=Element.prototype,i,n,u,r;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(i=["webkit","moz","ms","o"],n=0;n<i.length;n++)if(u=i[n],r=u+"MatchesSelector",t[r])return r}();return function(t,i){return t[n](i)}}),function(n,t){typeof define=="function"&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return t(n,i)}):typeof module=="object"&&module.exports?module.exports=t(n,require("desandro-matches-selector")):n.fizzyUIUtils=t(n,n.matchesSelector)}(window,function(n,t){var i={},r;return i.extend=function(n,t){for(var i in t)n[i]=t[i];return n},i.modulo=function(n,t){return(n%t+t)%t},i.makeArray=function(n){var t=[],i;if(Array.isArray(n))t=n;else if(n&&typeof n.length=="number")for(i=0;i<n.length;i++)t.push(n[i]);else t.push(n);return t},i.removeFrom=function(n,t){var i=n.indexOf(t);i!=-1&&n.splice(i,1)},i.getParent=function(n,i){while(n!=document.body)if(n=n.parentNode,t(n,i))return n},i.getQueryElement=function(n){return typeof n=="string"?document.querySelector(n):n},i.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},i.filterFindElements=function(n,r){n=i.makeArray(n);var u=[];return n.forEach(function(n){var f,i;if(n instanceof HTMLElement){if(!r){u.push(n);return}for(t(n,r)&&u.push(n),f=n.querySelectorAll(r),i=0;i<f.length;i++)u.push(f[i])}}),u},i.debounceMethod=function(n,t,i){var u=n.prototype[t],r=t+"Timeout";n.prototype[t]=function(){var t=this[r],f,n;t&&clearTimeout(t);f=arguments;n=this;this[r]=setTimeout(function(){u.apply(n,f);delete n[r]},i||100)}},i.docReady=function(n){var t=document.readyState;t=="complete"||t=="interactive"?n():document.addEventListener("DOMContentLoaded",n)},i.toDashed=function(n){return n.replace(/(.)([A-Z])/g,function(n,t,i){return t+"-"+i}).toLowerCase()},r=n.console,i.htmlInit=function(t,u){i.docReady(function(){var e=i.toDashed(u),f="data-"+e,s=document.querySelectorAll("["+f+"]"),h=document.querySelectorAll(".js-"+e),c=i.makeArray(s).concat(i.makeArray(h)),l=f+"-options",o=n.jQuery;c.forEach(function(n){var i=n.getAttribute(f)||n.getAttribute(l),e,s;try{e=i&&JSON.parse(i)}catch(h){r&&r.error("Error parsing "+f+" on "+n.className+": "+h);return}s=new t(n,e);o&&o.data(n,u,s)})})},i}),function(n,t){typeof define=="function"&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],t):typeof module=="object"&&module.exports?module.exports=t(require("ev-emitter"),require("get-size")):(n.Outlayer={},n.Outlayer.Item=t(n.EvEmitter,n.getSize))}(window,function(n,t){"use strict";function l(n){for(var t in n)return!1;return t=null,!0}function u(n,t){n&&(this.element=n,this.layout=t,this.position={x:0,y:0},this._create())}function v(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}var f=document.documentElement.style,r=typeof f.transition=="str
121ing"?"transition":"WebkitTransition",e=typeof f.transform=="string"?"transform":"WebkitTransform",o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],a={transform:e,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},i=u.prototype=Object.create(n.prototype),s,h,c;return i.constructor=u,i._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},i.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},i.getSize=function(){this.size=t(this.element)},i.css=function(n){var r=this.element.style,t,i;for(t in n)i=a[t]||t,r[i]=n[t]},i.getPosition=function(){var f=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop"),r=f[e?"left":"right"],u=f[o?"top":"bottom"],n=this.layout.size,t=r.indexOf("%")!=-1?parseFloat(r)/100*n.width:parseInt(r,10),i=u.indexOf("%")!=-1?parseFloat(u)/100*n.height:parseInt(u,10);t=isNaN(t)?0:t;i=isNaN(i)?0:i;t-=e?n.paddingLeft:n.paddingRight;i-=o?n.paddingTop:n.paddingBottom;this.position.x=t;this.position.y=i},i.layoutPosition=function(){var r=this.layout.size,n={},t=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),u=t?"paddingLeft":"paddingRight",f=t?"left":"right",e=t?"right":"left",o=this.position.x+r[u];n[f]=this.getXValue(o);n[e]="";var s=i?"paddingTop":"paddingBottom",h=i?"top":"bottom",c=i?"bottom":"top",l=this.position.y+r[s];n[h]=this.getYValue(l);n[c]="";this.css(n);this.emitEvent("layout",[this])},i.getXValue=function(n){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?n/this.layout.size.width*100+"%":n+"px"},i.getYValue=function(n){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?n/this.layout.size.height*100+"%":n+"px"},i._transitionTo=function(n,t){this.getPosition();var r=this.position.x,u=this.position.y,f=parseInt(n,10),e=parseInt(t,10),o=f===this.position.x&&e===this.position.y;if(this.setPosition(n,t),o&&!this.isTransitioning){this.layoutPosition();return}var s=n-r,h=t-u,i={};i.transform=this.getTranslate(s,h);this.transition({to:i,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},i.getTranslate=function(n,t){var i=this.layout._getOption("originLeft"),r=this.layout._getOption("originTop");return n=i?n:-n,t=r?t:-t,"translate3d("+n+"px, "+t+"px, 0)"},i.goTo=function(n,t){this.setPosition(n,t);this.layoutPosition()},i.moveTo=i._transitionTo,i.setPosition=function(n,t){this.position.x=parseInt(n,10);this.position.y=parseInt(t,10)},i._nonTransition=function(n){this.css(n.to);n.isCleaning&&this._removeStyles(n.to);for(var t in n.onTransitionEnd)n.onTransitionEnd[t].call(this)},i.transition=function(n){var i,t,r;if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(n);return}i=this._transn;for(t in n.onTransitionEnd)i.onEnd[t]=n.onTransitionEnd[t];for(t in n.to)i.ingProperties[t]=!0,n.isCleaning&&(i.clean[t]=!0);n.from&&(this.css(n.from),r=this.element.offsetHeight,r=null);this.enableTransition(n.to);this.css(n.to);this.isTransitioning=!0},s="opacity,"+v(e),i.enableTransition=function(){if(!this.isTransitioning){var n=this.layout.options.transitionDuration;n=typeof n=="number"?n+"ms":n;this.css({transitionProperty:s,transitionDuration:n,transitionDelay:this.staggerDelay||0});this.element.addEventListener(o,this,!1)}},i.onwebkitTransitionEnd=function(n){this.ontransitionend(n)},i.onotransitionend=function(n){this.ontransitionend(n)},h={"-webkit-transform":"transform"},i.ontransitionend=function(n){var t,i,r;n.target===this.element&&(t=this._transn,i=h[n.propertyName]||n.propertyName,delete t.ingProperties[i],l(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[n.propertyName]="",delete t.clean[i]),i in t.onEnd&&(r=t.onEnd[i],r.call(this),delete t.onEnd[i]),this.emitEvent("transitionEnd",[this]))},i.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(o,this,!1);this.isTransitioning=!1},i._removeStyles=function(n){var t={};for(var i in n)t[i]="";this.css(t)},c={transitionProperty:"",transitionDuration:"",transitionDelay:""},i.removeTransitionStyles=function(){this.css(c)},i.stagger=function(n){n=isNaN(n)?0:n;this.staggerDelay=n+"ms"},i.removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:""});this.emitEvent("remove",[this])},i.remove=function(){if(!r||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}this.once("transitionEnd",function(){this.removeElem()});this.hide()},i.reveal=function(){delete this.isHidden;this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("visibleStyle");t[i]=this.onRevealTransitionEnd;this.transition({from:n.hiddenStyle,to:n.visibleStyle,isCleaning:!0,onTransitionEnd:t})},i.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},i.getHideRevealTransitionEndProperty=function(n){var t=this.layout.options[n],i;if(t.opacity)return"opacity";for(i in t)return i},i.hide=function(){this.isHidden=!0;this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");t[i]=this.onHideTransitionEnd;this.transition({from:n.visibleStyle,to:n.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},i.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},i.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},u}); 122/*! 123 * Outlayer v2.1.0 124 * the brains and guts of a layout library 125 * MIT license 126 */ 127(function(n,t){"use strict";typeof define=="function"&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,r,u,f){return t(n,i,r,u,f)}):typeof module=="object"&&module.exports?module.exports=t(n,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):n.Outlayer=t(n,n.EvEmitter,n.getSize,n.fizzyUIUtils,n.Outlayer.Item)})(window,function(n,t,i,r,u){"use strict";function e(n,t){var i=r.getQueryElement(n),u,f;if(!i){h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||n));return}this.element=i;o&&(this.$element=o(this.element));this.options=r.extend({},this.constructor.defaults);this.option(t);u=++v;this.element.outlayerGUID=u;s[u]=this;this._create();f=this._getOption("initLayout");f&&this.layout()}function l(n){function t(){n.apply(this,arguments)}return t.prototype=Object.create(n.prototype),t.prototype.constructor=t,t}function y(n){var r;if(typeof n=="number")return n;var t=n.match(/(^\d*\.?\d*)(\w*)/),i=t&&t[1],u=t&&t[2];return i.length?(i=parseFloat(i),r=a[u]||1,i*r):0}var h=n.console,o=n.jQuery,c=function(){},v=0,s={},f,a;return e.namespace="outlayer",e.Item=u,e.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},f=e.prototype,r.extend(f,t.prototype),f.option=function(n){r.extend(this.options,n)},f._getOption=function(n){var t=this.constructor.compatOptions[n];return t&&this.options[t]!==undefined?this.options[t]:this.options[n]},e.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);r.extend(this.element.style,this.options.containerStyle);var n=this._getOption("resize");n&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(n){for(var u,f,i=this._filterFindItemElements(n),e=this.constructor.Item,r=[],t=0;t<i.length;t++)u=i[t],f=new e(u,this),r.push(f);return r},f._filterFindItemElements=function(n){return r.filterFindElements(n,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(n){return n.element})},f.layout=function(){this._resetLayout();this._manageStamps();
127var n=this._getOption("layoutInstant"),t=n!==undefined?n:!this._isLayoutInited;this.layoutItems(this.items,t);this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(n,t){var r=this.options[n],u;r?(typeof r=="string"?u=this.element.querySelector(r):r instanceof HTMLElement&&(u=r),this[n]=u?i(u)[t]:r):this[n]=0},f.layoutItems=function(n,t){n=this._getItemsForLayout(n);this._layoutItems(n,t);this._postLayout()},f._getItemsForLayout=function(n){return n.filter(function(n){return!n.isIgnored})},f._layoutItems=function(n,t){if(this._emitCompleteOnItems("layout",n),n&&n.length){var i=[];n.forEach(function(n){var r=this._getItemLayoutPosition(n);r.item=n;r.isInstant=t||n.isLayoutInstant;i.push(r)},this);this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(n){this.updateStagger();n.forEach(function(n,t){this._positionItem(n.item,n.x,n.y,n.isInstant,t)},this)},f.updateStagger=function(){var n=this.options.stagger;if(n===null||n===undefined){this.stagger=0;return}return this.stagger=y(n),this.stagger},f._positionItem=function(n,t,i,r,u){r?n.goTo(t,i):(n.stagger(u*this.stagger),n.moveTo(t,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer"),n;t&&(n=this._getContainerSize(),n&&(this._setContainerMeasure(n.width,!0),this._setContainerMeasure(n.height,!1)))},f._getContainerSize=c,f._setContainerMeasure=function(n,t){if(n!==undefined){var i=this.size;i.isBorderBox&&(n+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth);n=Math.max(n,0);this.element.style[t?"width":"height"]=n+"px"}},f._emitCompleteOnItems=function(n,t){function r(){f.dispatchEvent(n+"Complete",null,[t])}function e(){i++;i==u&&r()}var f=this,u=t.length,i;if(!t||!u){r();return}i=0;t.forEach(function(t){t.once(n,e)})},f.dispatchEvent=function(n,t,i){var u=t?[t].concat(i):i,r;this.emitEvent(n,u);o&&(this.$element=this.$element||o(this.element),t?(r=o.Event(t),r.type=n,this.$element.trigger(r,i)):this.$element.trigger(n,i))},f.ignore=function(n){var t=this.getItem(n);t&&(t.isIgnored=!0)},f.unignore=function(n){var t=this.getItem(n);t&&delete t.isIgnored},f.stamp=function(n){(n=this._find(n),n)&&(this.stamps=this.stamps.concat(n),n.forEach(this.ignore,this))},f.unstamp=function(n){(n=this._find(n),n)&&n.forEach(function(n){r.removeFrom(this.stamps,n);this.unignore(n)},this)},f._find=function(n){if(n)return typeof n=="string"&&(n=this.element.querySelectorAll(n)),r.makeArray(n)},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),n=this.size;this._boundingRect={left:t.left+n.paddingLeft+n.borderLeftWidth,top:t.top+n.paddingTop+n.borderTopWidth,right:t.right-(n.paddingRight+n.borderRightWidth),bottom:t.bottom-(n.paddingBottom+n.borderBottomWidth)}},f._manageStamp=c,f._getElementOffset=function(n){var t=n.getBoundingClientRect(),r=this._boundingRect,u=i(n);return{left:t.left-r.left-u.marginLeft,top:t.top-r.top-u.marginTop,right:r.right-t.right-u.marginRight,bottom:r.bottom-t.bottom-u.marginBottom}},f.handleEvent=r.handleEvent,f.bindResize=function(){n.addEventListener("resize",this);this.isResizeBound=!0},f.unbindResize=function(){n.removeEventListener("resize",this);this.isResizeBound=!1},f.onresize=function(){this.resize()},r.debounceMethod(e,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var n=i(this.element),t=this.size&&n;return t&&n.innerWidth!==this.size.innerWidth},f.addItems=function(n){var t=this._itemize(n);return t.length&&(this.items=this.items.concat(t)),t},f.appended=function(n){var t=this.addItems(n);t.length&&(this.layoutItems(t,!0),this.reveal(t))},f.prepended=function(n){var t=this._itemize(n),i;t.length&&(i=this.items.slice(0),this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i))},f.reveal=function(n){if(this._emitCompleteOnItems("reveal",n),n&&n.length){var t=this.updateStagger();
127n.forEach(function(n,i){n.stagger(i*t);n.reveal()})}},f.hide=function(n){if(this._emitCompleteOnItems("hide",n),n&&n.length){var t=this.updateStagger();n.forEach(function(n,i){n.stagger(i*t);n.hide()})}},f.revealItemElements=function(n){var t=this.getItems(n);this.reveal(t)},f.hideItemElements=function(n){var t=this.getItems(n);this.hide(t)},f.getItem=function(n){for(var i,t=0;t<this.items.length;t++)if(i=this.items[t],i.element==n)return i},f.getItems=function(n){n=r.makeArray(n);var t=[];return n.forEach(function(n){var i=this.getItem(n);i&&t.push(i)},this),t},f.remove=function(n){var t=this.getItems(n);(this._emitCompleteOnItems("remove",t),t&&t.length)&&t.forEach(function(n){n.remove();r.removeFrom(this.items,n)},this)},f.destroy=function(){var n=this.element.style,t;n.height="";n.position="";n.width="";this.items.forEach(function(n){n.destroy()});this.unbindResize();t=this.element.outlayerGUID;delete s[t];delete this.element.outlayerGUID;o&&o.removeData(this.element,this.constructor.namespace)},e.data=function(n){n=r.getQueryElement(n);var t=n&&n.outlayerGUID;return t&&s[t]},e.create=function(n,t){var i=l(e);return i.defaults=r.extend({},e.defaults),r.extend(i.defaults,t),i.compatOptions=r.extend({},e.compatOptions),i.namespace=n,i.data=e.data,i.Item=l(u),r.htmlInit(i,n),o&&o.bridget&&o.bridget(n,i),i},a={ms:1,s:1e3},e.Item=u,e}),function(n,t){typeof define=="function"&&define.amd?define("isotope/js/item",["outlayer/outlayer"],t):typeof module=="object"&&module.exports?module.exports=t(require("outlayer")):(n.Isotope=n.Isotope||{},n.Isotope.Item=t(n.Outlayer))}(window,function(n){"use strict";function i(){n.Item.apply(this,arguments)}var t=i.prototype=Object.create(n.Item.prototype),u=t._create,r;return t._create=function(){this.id=this.layout.itemGUID++;u.call(this);this.sortData={}},t.updateSortData=function(){var t,i,n,r;if(!this.isIgnored){this.sortData.id=this.id;this.sortData["original-order"]=this.id;this.sortData.random=Math.random();t=this.layout.options.getSortData;i=this.layout._sorters;for(n in t)r=i[n],this.sortData[n]=r(this.element,this)}},r=t.destroy,t.destroy=function(){r.apply(this,arguments);this.css({display:""})},i}),function(n,t){typeof define=="function"&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],t):typeof module=="object"&&module.exports?module.exports=t(require("get-size"),require("outlayer")):(n.Isotope=n.Isotope||{},n.Isotope.LayoutMode=t(n.getSize,n.Outlayer))}(window,function(n,t){"use strict";function r(n){this.isotope=n;n&&(this.options=n.options[this.namespace],this.element=n.element,this.items=n.filteredItems,this.size=n.size)}var i=r.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(n){i[n]=function(){return t.prototype[n].apply(this.isotope,arguments)}}),i.needsVerticalResizeLayout=function(){var t=n(this.isotope.element),i=this.isotope.size&&t;return i&&t.innerHeight!=this.isotope.size.innerHeight},i._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},i.getColumnWidth=function(){this.getSegmentSize("column","Width")},i.getRowHeight=function(){this.getSegmentSize("row","Height")},i.getSegmentSize=function(n,t){var i=n+t,u="outer"+t,r;(this._getMeasurement(i,u),this[i])||(r=this.getFirstItemSize(),this[i]=r&&r[u]||this.isotope.size["inner"+t])},i.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&n(t.element)},i.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},i.getSize=function(){this.isotope.getSize();this.size=this.isotope.size},r.modes={},r.create=function(n,t){function u(){r.apply(this,arguments)}return u.prototype=Object.create(i),u.prototype.constructor=u,t&&(u.options=t),u.prototype.namespace=n,r.modes[n]=u,u},r}); 128/*! 129 * Masonry v4.1.0 130 * Cascading grid layout library 131 * https://masonry.desandro.com 132 * MIT License 133 * by David DeSandro 134 */ 135(function(n,t){typeof define=="function"&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],t):typeof module=="object"&&module.exports?module.exports=t(require("outlayer"),require("get-size")):n.Masonry=t(n.Outlayer,n.getSize)})(window,function(n,t){var i=n.create("masonry");return i.compatOptions.fitWidth="isFitWidth",i.prototype._resetLayout=function(){this.get
135Size();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();this.colYs=[];for(var n=0;n<this.cols;n++)this.colYs.push(0);this.maxY=0},i.prototype.measureColumns=function(){var n,i;this.getContainerWidth();this.columnWidth||(n=this.items[0],i=n&&n.element,this.columnWidth=i&&t(i).outerWidth||this.containerWidth);var r=this.columnWidth+=this.gutter,f=this.containerWidth+this.gutter,u=f/r,e=r-f%r,o=e&&e<1?"round":"floor";u=Math[o](u);this.cols=Math.max(u,1)},i.prototype.getContainerWidth=function(){var i=this._getOption("fitWidth"),r=i?this.element.parentNode:this.element,n=t(r);this.containerWidth=n&&n.innerWidth},i.prototype._getItemLayoutPosition=function(n){var t;n.getSize();var f=n.size.outerWidth%this.columnWidth,o=f&&f<1?"round":"ceil",i=Math[o](n.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);var r=this._getColGroup(i),u=Math.min.apply(Math,r),e=r.indexOf(u),s={x:this.columnWidth*e,y:u},h=u+n.size.outerHeight,c=this.cols+1-r.length;for(t=0;t<c;t++)this.colYs[e+t]=h;return s},i.prototype._getColGroup=function(n){var i,r,t,u;if(n<2)return this.colYs;for(i=[],r=this.cols+1-n,t=0;t<r;t++)u=this.colYs.slice(t,t+n),i[t]=Math.max.apply(Math,u);return i},i.prototype._manageStamp=function(n){var e=t(n),u=this._getElementOffset(n),l=this._getOption("originLeft"),o=l?u.left:u.right,s=o+e.outerWidth,f=Math.floor(o/this.columnWidth),i,h,c,r;for(f=Math.max(0,f),i=Math.floor(s/this.columnWidth),i-=s%this.columnWidth?0:1,i=Math.min(this.cols-1,i),h=this._getOption("originTop"),c=(h?u.top:u.bottom)+e.outerHeight,r=f;r<=i;r++)this.colYs[r]=Math.max(c,this.colYs[r])},i.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var n={height:this.maxY};return this._getOption("fitWidth")&&(n.width=this._getContainerFitWidth()),n},i.prototype._getContainerFitWidth=function(){for(var n=0,t=this.cols;--t;){if(this.colYs[t]!==0)break;n++}return(this.cols-n)*this.columnWidth-this.gutter},i.prototype.needsResizeLayout=function(){var n=this.containerWidth;return this.getContainerWidth(),n!=this.containerWidth},i}); 136/*! 137 * Masonry layout mode 138 * sub-classes Masonry 139 * https://masonry.desandro.com 140 */ 141(function(n,t){typeof define=="function"&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],t):typeof module=="object"&&module.exports?module.exports=t(require("../layout-mode"),require("masonry-layout")):t(n.Isotope.LayoutMode,n.Masonry)})(window,function(n,t){"use strict";var u=n.create("masonry"),i=u.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0},r,f,e;for(r in t.prototype)o[r]||(i[r]=t.prototype[r]);return f=i.measureColumns,i.measureColumns=function(){this.items=this.isotope.filteredItems;f.call(this)},e=i._getOption,i._getOption=function(n){return n=="fitWidth"?this.options.isFitWidth!==undefined?this.options.isFitWidth:this.options.fitWidth:e.apply(this.isotope,arguments)},u}),function(n,t){typeof define=="function"&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],t):typeof exports=="object"?module.exports=t(require("../layout-mode")):t(n.Isotope.LayoutMode)}(window,function(n){"use strict";var i=n.create("fitRows"),t=i.prototype;return t._resetLayout=function(){this.x=0;this.y=0;this.maxY=0;this._getMeasurement("gutter","outerWidth")},t._getItemLayoutPosition=function(n){var t,i,r;return n.getSize(),t=n.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter,this.x!==0&&t+this.x>i&&(this.x=0,this.y=this.maxY),r={x:this.x,y:this.y},this.maxY=Math.max(this.maxY,this.y+n.size.outerHeight),this.x+=t,r},t._getContainerSize=function(){return{height:this.maxY}},i}),function(n,t){typeof define=="function"&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],t):typeof module=="object"&&module.exports?module.exports=t(require("../layout-mode")):t(n.Isotope.LayoutMode)}(window,function(n){"use strict";var i=n.create("vertical",{horizontalAlignment:0}),t=i.prototype;return t._resetLayout=function(){this.y=0},t._getItemLayoutPosition=function(n){n.getSize();var t=(this.isotope.size.innerWidth-n.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=n.size.outerHeight,{x:t,y:i}},t._getContainerSize=function(){return{height:this.y}},i}); 142/*! 143 * Isotope v3.0.1 144 * 145 * Licensed GPLv3 for open source use 146 * or Isotope Commercial License for commercial use 147 * 148 * https://isotope.metafizzy.co 149 * Copyright 2016 Metafizzy 150 */ 151(function(n,t){typeof define=="function"&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(i,r,u,f,e,o){return t(n,i,r,u,f,e,o)}):typeof module=="object"&&module.exports?module.exports=t(n,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope/js/item"),require("isotope/js/layout-mode"),require("isotope/js/layout-modes/masonry"),require("isotope/js/layout-modes/fit-rows"),require("isotope/js/layout-modes/vertical")):n.Isotope=t(n,n.Outlayer,n.getSize,n.matchesSelector,n.fizzyUIUtils,n.Isotope.Item,n.Isotope.LayoutMode)}
151)(window,function(n,t,i,r,u,f,e){function v(n,t){return function(i,r){for(var s,h,u=0;u<n.length;u++){var f=n[u],e=i.sortData[f],o=r.sortData[f];if(e>o||e<o)return s=t[f]!==undefined?t[f]:t,h=s?1:-1,(e>o?1:-1)*h}return 0}}var h=n.jQuery,a=String.prototype.trim?function(n){return n.trim()}:function(n){return n.replace(/^\s+|\s+$/g,"")},s=t.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0}),o,c,l;return s.Item=f,s.LayoutMode=e,o=s.prototype,o._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();t.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=["original-order"];for(var n in e.modes)this._initLayoutMode(n)},o.reloadItems=function(){this.itemGUID=0;t.prototype.reloadItems.call(this)},o._itemize=function(){for(var r,n=t.prototype._itemize.apply(this,arguments),i=0;i<n.length;i++)r=n[i],r.id=this.itemGUID++;return this._updateItemsSortData(n),n},o._initLayoutMode=function(n){var t=e.modes[n],i=this.options[n]||{};this.options[n]=t.options?u.extend(t.options,i):i;this.modes[n]=new t(this)},o.layout=function(){if(!this._isLayoutInited&&this._getOption("initLayout")){this.arrange();return}this._layout()},o._layout=function(){var n=this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,n);this._isLayoutInited=!0},o.arrange=function(n){this.option(n);this._getIsInstant();var t=this._filter(this.items);this.filteredItems=t.matches;this._bindArrangeComplete();this._isInstant?this._noTransition(this._hideReveal,[t]):this._hideReveal(t);this._sort();this._layout()},o._init=o.arrange,o._hideReveal=function(n){this.reveal(n.needReveal);this.hide(n.needHide)},o._getIsInstant=function(){var n=this._getOption("layoutInstant"),t=n!==undefined?n:!this._isLayoutInited;return this._isInstant=t,t},o._bindArrangeComplete=function(){function n(){t&&i&&r&&u.dispatchEvent("arrangeComplete",null,[u.filteredItems])}var t,i,r,u=this;this.once("layoutComplete",function(){t=!0;n()});this.once("hideComplete",function(){i=!0;n()});this.once("revealComplete",function(){r=!0;n()})},o._filter=function(n){var u=this.options.filter,i,t,r;u=u||"*";var f=[],e=[],o=[],s=this._getFilterTest(u);for(i=0;i<n.length;i++)(t=n[i],t.isIgnored)||(r=s(t),r&&f.push(t),r&&t.isHidden?e.push(t):r||t.isHidden||o.push(t));return{matches:f,needReveal:e,needHide:o}},o._getFilterTest=function(n){return h&&this.options.isJQueryFiltering?function(t){return h(t.element).is(n)}:typeof n=="function"?function(t){return n(t.element)}:function(t){return r(t.element,n)}},o.updateSortData=function(n){var t;n?(n=u.makeArray(n),t=this.getItems(n)):t=this.items;this._getSorters();this._updateItemsSortData(t)},o._getSorters=function(){var t=this.options.getSortData,n,i;for(n in t)i=t[n],this._sorters[n]=c(i)},o._updateItemsSortData=function(n){for(var r,i=n&&n.length,t=0;i&&t<i;t++)r=n[t],r.updateSortData()}
151,c=function(){function n(n){if(typeof n!="string")return n;var i=a(n).split(" "),r=i[0],u=r.match(/^\[(.+)\]$/),o=u&&u[1],f=t(o,r),e=s.sortDataParsers[i[1]];return e?function(n){return n&&e(f(n))}:function(n){return n&&f(n)}}function t(n,t){return n?function(t){return t.getAttribute(n)}:function(n){var i=n.querySelector(t);return i&&i.textContent}}return n}(),s.sortDataParsers={parseInt:function(n){return parseInt(n,10)},parseFloat:function(n){return parseFloat(n)}},o._sort=function(){var n=this.options.sortBy,t,i;n&&(t=[].concat.apply(n,this.sortHistory),i=v(t,this.options.sortAscending),this.filteredItems.sort(i),n!=this.sortHistory[0]&&this.sortHistory.unshift(n))},o._mode=function(){var n=this.options.layoutMode,t=this.modes[n];if(!t)throw new Error("No layout mode: "+n);return t.options=this.options[n],t},o._resetLayout=function(){t.prototype._resetLayout.call(this);this._mode()._resetLayout()},o._getItemLayoutPosition=function(n){return this._mode()._getItemLayoutPosition(n)},o._manageStamp=function(n){this._mode()._manageStamp(n)},o._getContainerSize=function(){return this._mode()._getContainerSize()},o.needsResizeLayout=function(){return this._mode().needsResizeLayout()},o.appended=function(n){var t=this.addItems(n),i;t.length&&(i=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(i))},o.prepended=function(n){var t=this._itemize(n),i;t.length&&(this._resetLayout(),this._manageStamps(),i=this._filterRevealAdded(t),this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=t.concat(this.items))},o._filterRevealAdded=function(n){var t=this._filter(n);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},o.insert=function(n){var i=this.addItems(n),t,u,r,f;if(i.length){for(r=i.length,t=0;t<r;t++)u=i[t],this.element.appendChild(u.element);for(f=this._filter(i).matches,t=0;t<r;t++)i[t].isLayoutInstant=!0;for(this.arrange(),t=0;t<r;t++)delete i[t].isLayoutInstant;this.reveal(f)}},l=o.remove,o.remove=function(n){var t,r,i,f;for(n=u.makeArray(n),t=this.getItems(n),l.call(this,n),r=t&&t.length,i=0;r&&i<r;i++)f=t[i],u.removeFrom(this.filteredItems,f)},o.shuffle=function(){for(var t,n=0;n<this.items.length;n++)t=this.items[n],t.sortData.random=Math.random();this.options.sortBy="random";this._sort();this._layout()},o._noTransition=function(n,t){var r=this.options.transitionDuration,i;return this.options.transitionDuration=0,i=n.apply(this,t),this.options.transitionDuration=r,i},o.getFilteredItemElements=function(){return this.filteredItems.map(function(n){return n.element})},s}),function(n){"use strict";function t(n){var t=n.create("moduloColumns");t.prototype._resetLayout=function(){var n,t,i;for(this.getColumnWidth(),this._getMeasurement("gutter","outerHeight"),this.getSize(),n=this.options.gutter,t=this.size.width,this.columnWidth+=n,i=this.cols=Math.floor((t+n)/this.columnWidth)||1,this.columnHeights=[];i--;)this.columnHeights.push(0);this.currentColumn=0};t.prototype._getItemLayoutPosition=function(n){var i,t,u,f;n.getSize();var e=n.size.outerWidth,o=n.size.outerHeight,r=Math.min(this.cols,Math.ceil(e/this.columnWidth));for(this.currentColumn+r>this.cols&&(this.currentColumn=0),i=0,t=0;t<r;t++)i=Math.max(i,this.columnHeights[this.currentColumn+t]);for(u=i+o,t=0;t<r;t++)this.columnHeights[this.currentColumn+t]=u;return f={x:this.currentColumn*this.columnWidth,y:i},this.currentColumn+=r,this.currentColumn>this.cols&&(this.currentColumn=0),f};t.prototype._getContainerSize=function(){return{height:Math.max.apply(Math,this.columnHeights)}}}"function"==typeof define&&define.amd?define(["isotope/js/layout-mode"],t):t(n.Isotope.LayoutMode)}(window); 152/*! 153 * Retina.js v1.3.0 154 * 155 * Copyright 2014 Imulus, LLC 156 * Released under the MIT license 157 * 158 * Retina.js is an open source script that makes it easy to serve 159 * high-resolution images to devices with retina displays. 160 */ 161(function(){function i(){}function e(n){return r.retinaImageSuffix+n}function t(n,t){var i,r;this.path=n||"";typeof t!="undefined"&&t!==null?(this.at_2x_path=t,this.perform_check=!1):(undefined!==document.createElement?(i=document.createElement("a"),i.href=this.path,i.pathname=i.pathname.replace(u,e),this.at_2x_path=i.href):(r=this.path.split("?"),r[0]=r[0].replace(u,e),this.at_2x_path=r.join("?")),this.perform_check=!0)}function f(n){this.el=n;this.path=new t(this.el.getAttribute("src"),this.el.getAttribute("data-at2x"));var i=this;this.path.check_2x_variant(function(n){n&&i.swap()})}var n=typeof exports=="undefined"?window:exports,r={retinaImageSuffix:"@2x",check_mime_type:!0,force_original_dimensions:!0},u;n.Retina=i;i.configure=function(n){n===null&&(n={});for(var t in n)n.hasOwnProperty(t)&&(r[t]=n[t])};i.init=function(t){t===null&&(t=n);var i=t.onload||function(){};t.onload=function(){for(var r=document.getElementsByTagName("img"),u=[],t,n=0;n<r.length;n+=1)t=r[n],!!t.getAttributeNode("data-no-retina")||u.push(new f(t));i()}};i.isRetina=function(){return n.devicePixelRatio>1?!0:n.matchMedia&&n.matchMedia("(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)").matches?!0:!1};u=/\.\w+$/;n.RetinaImagePath=t;t.confirmed_paths=[];t.prototype.is_external=function(){return!!(this.path.match(/^https?\:/i)&&!this.path.match("//"+document.domain))};t.prototype.check_2x_variant=function(n){var i,u=this;if(this.is_external())return n(!1);
161if(this.perform_check||typeof this.at_2x_path=="undefined"||this.at_2x_path===null){if(this.at_2x_path in t.confirmed_paths)return n(!0);i=new XMLHttpRequest;i.open("HEAD",this.at_2x_path);i.onreadystatechange=function(){if(i.readyState!==4)return n(!1);if(i.status>=200&&i.status<=399){if(r.check_mime_type){var f=i.getResponseHeader("Content-Type");if(f===null||!f.match(/^image/i))return n(!1)}return t.confirmed_paths.push(u.at_2x_path),n(!0)}return n(!1)};i.send()}else return n(!0)};n.RetinaImage=f;f.prototype.swap=function(n){function i(){t.el.complete?(r.force_original_dimensions&&(t.el.setAttribute("width",t.el.offsetWidth),t.el.setAttribute("height",t.el.offsetHeight)),t.el.setAttribute("src",n)):setTimeout(i,5)}typeof n=="undefined"&&(n=this.path.at_2x_path);var t=this;i()};i.isRetina()&&i.init(n)})(),function(n,t,i){var u=function(){for(var t,i,u=new RegExp("audio(.min)?.js.*"),r=document.getElementsByTagName("script"),n=0,f=r.length;n<f;n++)if(t=r[n].getAttribute("src"),u.test(t))return i=t.split("/"),i.pop(),i.join("/")+"/";return""}(),r;i[n]={instanceCount:0,instances:{},flashSource:' <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="$1" width="1" height="1" name="$1" style="position: absolute; left: -1px;"> <param name="movie" value="$2?playerInstance='+n+'.instances[\'$1\']&datetime=$3"> <param name="allowscriptaccess" value="always"> <embed name="$1" src="$2?playerInstance='+n+'.instances[\'$1\']&datetime=$3" width="1" height="1" allowscriptaccess="always"> <\/object>',settings:{autoplay:!1,loop:!1,preload:!0,imageLocation:"/assets/audiojs/player-graphics.gif",retinaImageLocation:"/assets/audiojs/[email protected]",swfLocation:"/assets/audiojs/audiojs.swf",useFlash:function(){var n=document.createElement("audio");return!(n.canPlayType&&n.canPlayType("audio/mpeg;").replace(/no/,""))}(),hasFlash:function(){var n,t;if(navigator.plugins&&navigator.plugins.length&&navigator.plugins["Shockwave Flash"])return!0;if(navigator.mimeTypes&&navigator.mimeTypes.length)return n=navigator.mimeTypes["application/x-shockwave-flash"],n&&n.enabledPlugin;try{return t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),!0}catch(i){}return!1}(),createPlayer:{markup:' <div class="play-pause"> <p class="play"><\/p> <p class="pause"><\/p> <p class="loading"><\/p> <p class="error"><\/p> <\/div> <div class="scrubber"> <div class="progress"><\/div> <div class="loaded"><\/div> <\/div> <div class="time"> <em class="played">00:00<\/em>/<strong class="duration">00:00<\/strong> <\/div> <div class="error-message"><\/div>',playPauseClass:"play-pause",scrubberClass:"scrubber",progressClass:"progress",loaderClass:"loaded",timeClass:"time",durationClass:"duration",playedClass:"played",errorMessageClass:"error-message",playingClass:"playing",loadingClass:"loading",errorClass:"error"},css:' .audiojs audio { position: absolute; left: -1px; } .audiojs { width: 460px; height: 36px; background: #404040; overflow: hidden; font-family: monospace; font-size: 12px; background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #444), color-stop(0.5, #555), color-stop(0.51, #444), color-stop(1, #444)); background-image: -moz-linear-gradient(center top, #444 0%, #555 50%, #444 51%, #444 100%); -webkit-box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3); -moz-box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3); -o-box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3); box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3); } .audiojs .play-pause { width: 25px; height: 40px; padding: 4px 6px; margin: 0px; float: left; overflow: hidden; border-right: 1px solid #000; } .audiojs p { display: none; width: 25px; height: 40px; margin: 0px; cursor: pointer; } .audiojs .play { display: block; } .audiojs .scrubber { position: relative; float: left; width: 280px; background: #5a5a5a; height: 14px; margin: 10px; border-top: 1px solid #3f3f3f; border-left: 0px; border-bottom: 0px; overflow: hidden; } .audiojs .progress { position: absolute; top: 0px; left: 0px; height: 14px; width: 0px; background: #ccc; z-index: 1; background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ccc), color-stop(0.5, #ddd), color-stop(0.51, #ccc), color-stop(1, #ccc)); background-image: -moz-linear-gradient(center top, #ccc 0%, #ddd 50%, #ccc 51%, #ccc 100%); } .audiojs .loaded { position: absolute; top: 0px; left: 0px; height: 14px; width: 0px; background: #000; background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #222), color-stop(0.5, #333), color-stop(0.51, #222), color-stop(1, #222)); background-image: -moz-linear-gradient(center top, #222 0%, #333 50%, #222 51%, #222 100%); } .audiojs .time { float: left; height: 36px; line-height: 36px; margin: 0px 0px 0px 6px; padding: 0px 6px 0px 12px; border-left: 1px solid #000; color: #ddd; text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5); } .audiojs .time em { padding: 0px 2px 0px 0px; color: #f9f9f9; font-style: normal; } .audiojs .time strong { padding: 0px 0px 0px 2px; font-weight: normal; } .audiojs .error-message { float: left; display: none; margin: 0px 10px; height: 36px; width: 400px; overflow: hidden; line-height: 36px; white-space: nowrap; color: #fff; text-overflow: ellipsis; -o-text-overflow: ellipsis; -icab-text-overflow: ellipsis; -khtml-text-overflow: ellipsis; -moz-text-overflow: ellipsis; -webkit-text-overflow: ellipsis; } .audiojs .error-message a { color: #eee; text-decoration: none; padding-bottom: 1px; border-bottom: 1px solid #999; white-space: wrap; } .audiojs .play { background: url("$1") -2px -1px no-repeat; } .audiojs .loading { background: url("$1") -2px -31px no-repeat; } .audiojs .error { background: url("$1") -2px -61px no-repeat; } .audiojs .pause { background: url("$1") -2px -91px no-repeat; } @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (min-moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2) { .audiojs .play, .audiojs .loading, .audiojs .error, .audiojs .pause { background-image: url("$2"); -webkit-background-size: 30px 120px; -moz-background-size: 30px 120px; -o-background-size: 30px 120px; background-size: 30px 120px; } } .playing .play, .playing .loading, .playing .error { display: none; } .playing .pause { display: block; } .loading .play, .loading .pause, .loading .error { display: none; } .loading .loading { display: block; } .error .time, .error .play, .error .pause, .error .scrubber, .error .loading { display: none; } .error .error { display: block; } .error .play-pause p { cursor: auto; } .error .error-message { display: block; }',trackEnded:function(){},flashError:function(){var t=this.settings.createPlayer,f=r(t.errorMessageClass,this.wrapper),u='Missing <a href="https://get.adobe.com/flashplayer/">flash player<\/a> plugin.';this.mp3&&(u+=' <a href="'+this.mp3+'">Download audio file<\/a>.');i[n].helpers.removeClass(this.wrapper,t.loadingClass);i[n].helpers.addClass(this.wrapper,t.errorClass);f.innerHTML=u},loadError:function(){var t=this.settings.createPlayer,u=r(t.errorMessageClass,this.wrapper);i[n].helpers.removeClass(this.wrapper,t.loadingClass);i[n].helpers.addClass(this.wrapper,t.errorClass);u.innerHTML='Error loading: "'+this.mp3+'"'},init:function(){var t=this.settings.createPlayer;i[n].helpers.addClass(this.wrapper,t.loadingClass)},loadStarted:function(){var t=this.settings.createPlayer,e=r(t.durationClass,this.wrapper),u=Math.floor(this.duration/60),f=Math.floor(this.duration%60);i[n].helpers.removeClass(this.wrapper,t.loadingClass);e.innerHTML=(u<10?"0":"")+u+":"+(f<10?"0":"")+f},loadProgress:function(n){var t=this.settings.createPlayer,i=r(t.loaderClass,this.wrapper);i.style.width=Math.round(100*n)+"%"},playPause:function(){this.playing?this.settings.play():this.settings.pause()},play:function(){var t=this.settings.createPlayer;i[n].helpers.removeClass(this.wrapper,t.errorClass);i[n].helpers.addClass(this.wrapper,t.playingClass)},pause:function(){var t=this.settings.createPlayer;i[n].helpers.removeClass(this.wrapper,t.playingClass)},updatePlayhead:function(n){var t=this.settings.createPlayer,e=r(t.progressClass,this.wrapper);e.style.width=Math.round(100*n)+"%";var o=r(t.playedClass,this.wrapper),i=this.duration*n,u=Math.floor(i/60),f=Math.floor(i%60);o.innerHTML=(u<10?"0":"")+u+":"+(f<10?"0":"")+f}},create:function(n,t){var t=t||{};return n.length?this.createAll(t,n):this.newInstance(n,t)},createAll:function(n,t){var r=t||document.getElementsByTagName("audio"),u=[],i,f;for(n=n||{},i=0,f=r.length;i<f;i++)(" "+r[i].parentNode.className+" ").replace(/[\n\t]/g," ").indexOf(" audiojs ")>-1||u.push(this.newInstance(r[i],n));return u},newInstance:function(n,r){var n=n,u=this.helpers.clone(this.settings),e="audiojs"+this.instanceCount,o="audiojs_wrapper"+this.instanceCount,s=this.instanceCount++,f;return n.getAttribute("autoplay")!=null&&(u.autoplay=!0),n.getAttribute("loop")!=null&&(u.loop=!0),n.getAttribute("preload")=="none"&&(u.preload=!1),r&&this.helpers.merge(u,r),u.createPlayer.markup?n=this.createPlayer(n,u.createPlayer,o):n.parentNode.setAttribute("id",o),f=new i[t](n,u),u.css&&this.helpers.injectCss(f,u.css),u.useFlash&&u.hasFlash?(this.injectFlas
161h(f,e),this.attachFlashEvents(f.wrapper,f)):u.useFlash&&!u.hasFlash&&u.flashError.apply(f),(!u.useFlash||u.useFlash&&u.hasFlash)&&this.attachEvents(f.wrapper,f),this.instances[e]=f,f},createPlayer:function(n,t,i){var r=document.createElement("div"),u=n.cloneNode(!0);return r.setAttribute("class","audiojs"),r.setAttribute("className","audiojs"),r.setAttribute("id",i),u.outerHTML&&!document.createElement("audio").canPlayType?(u=this.helpers.cloneHtml5Node(n),r.innerHTML=t.markup,r.appendChild(u),n.outerHTML=r.outerHTML,r=document.getElementById(i)):(r.appendChild(u),r.innerHTML=r.innerHTML+t.markup,n.parentNode.replaceChild(r,n)),r.getElementsByTagName("audio")[0]},attachEvents:function(t,u){if(u.settings.createPlayer){var f=u.settings.createPlayer,o=r(f.playPauseClass,t),e=r(f.scrubberClass,t),s=function(n){var t=0;if(n.offsetParent)do t+=n.offsetLeft;while(n=n.offsetParent);return t};(i[n].events.addListener(o,"click",function(){u.playPause.apply(u)}),i[n].events.addListener(e,"click",function(n){var t=n.clientX-s(this);u.skipTo(t/e.offsetWidth)}),u.settings.useFlash)||(i[n].events.trackLoadProgress(u),i[n].events.addListener(u.element,"timeupdate",function(){u.updatePlayhead.apply(u)}),i[n].events.addListener(u.element,"ended",function(){u.trackEnded.apply(u)}),i[n].events.addListener(u.source,"error",function(){clearInterval(u.readyTimer);clearInterval(u.loadTimer);u.settings.loadError.apply(u)}))}},attachFlashEvents:function(n,t){t.swfReady=!1;t.load=function(n){t.mp3=n;t.swfReady&&t.element.load(n)};t.loadProgress=function(n,i){t.loadedPercent=n;t.duration=i;t.settings.loadStarted.apply(t);t.settings.loadProgress.apply(t,[n])};t.skipTo=function(n){n>t.loadedPercent||(t.updatePlayhead.call(t,[n]),t.element.skipTo(n))};t.updatePlayhead=function(n){t.settings.updatePlayhead.apply(t,[n])};t.play=function(){t.settings.preload||(t.settings.preload=!0,t.element.init(t.mp3));t.playing=!0;t.element.pplay();t.settings.play.apply(t)};t.pause=function(){t.playing=!1;t.element.ppause();t.settings.pause.apply(t)};t.setVolume=function(n){t.element.setVolume(n)};t.loadStarted=function(){t.swfReady=!0;t.settings.preload&&t.element.init(t.mp3);t.settings.autoplay&&t.play.apply(t)}},injectFlash:function(n,t){var i=this.flashSource.replace(/\$1/g,t),u,r;i=i.replace(/\$2/g,n.settings.swfLocation);i=i.replace(/\$3/g,+new Date+Math.random());u=n.wrapper.innerHTML;r=document.createElement("div");r.innerHTML=i+u;n.wrapper.innerHTML=r.innerHTML;n.element=this.helpers.getSwf(t)},helpers:{merge:function(n,t){for(attr in t)(n.hasOwnProperty(attr)||t.hasOwnProperty(attr))&&(n[attr]=t[attr])},clone:function(n){var t,i;if(n==null||typeof n!="object")return n;t=new n.constructor;for(i in n)t[i]=arguments.callee(n[i]);return t},addClass:function(n,t){var i=new RegExp("(\\s|^)"+t+"(\\s|$)");i.test(n.className)||(n.className+=" "+t)},removeClass:function(n,t){var i=new RegExp("(\\s|^)"+t+"(\\s|$)");n.className=n.className.replace(i," ")},injectCss:function(n,t){var e="",o=document.getElementsByTagName("style"),r=t.replace(/\$1/g,n.settings.imageLocation),u,h,s;for(r=r.replace(/\$2/g,n.settings.retinaImageLocation),u=0,h=o.length;u<h;u++)if(s=o[u].getAttribute("title"),s&&~s.indexOf("audiojs")){if(i=o[u],i.innerHTML===r)return;e=i.innerHTML;break}var f=document.getElementsByTagName("head")[0],c=f.firstChild,i=document.createElement("style");f&&(i.setAttribute("type","text/css"),i.setAttribute("title","audiojs"),i.styleSheet?i.styleSheet.cssText=e+r:i.appendChild(document.createTextNode(e+r)),c?f.insertBefore(i,c):f.appendChild(i))},cloneHtml5Node:function(n){var i=document.createDocumentFragment(),r=i.createElement?i:document,t;return r.createElement("audio"),t=r.createElement("div"),i.appendChild(t),t.innerHTML=n.outerHTML,t.firstChild},getSwf:function(n){var t=document[n]||window[n];return t.length>1?t[t.length-1]:t}},events:{memoryLeaking:!1,listeners:[],addListener:function(t,r,u){t.addEventListener?t.addEventListener(r,u,!1):t.attachEvent&&(this.listeners.push(t),this.memoryLeaking||(window.attachEvent("onunload",function(){if(this.listeners)for(var t=0,r=this.listeners.length;t<r;t++)i[n].events.purge(this.listeners[t])}),this.memoryLeaking=!0),t.attachEvent("on"+r,function(){u.call(t,window.event)}))},trackLoadProgress:function(n){if(n.settings.preload){var t,i,n=n,r=/(ipo
161d|iphone|ipad)/i.test(navigator.userAgent);t=setInterval(function(){n.element.readyState>-1&&(r||n.init.apply(n));n.element.readyState>1&&(n.settings.autoplay&&n.play.apply(n),clearInterval(t),i=setInterval(function(){n.loadProgress.apply(n);n.loadedPercent>=1&&clearInterval(i)},200))},200);n.readyTimer=t;n.loadTimer=i}},purge:function(n){var i=n.attributes,t;if(i)for(t=0;t<i.length;t+=1)typeof n[i[t].name]=="function"&&(n[i[t].name]=null);if(i=n.childNodes,i)for(t=0;t<i.length;t+=1)purge(n.childNodes[t])},ready:function(){return function(n){var i=window,e=!1,o=!0,t=i.document,s=t.documentElement,f=t.addEventListener?"addEventListener":"attachEvent",c=t.addEventListener?"removeEventListener":"detachEvent",u=t.addEventListener?"":"on",r=function(f){(f.type!="readystatechange"||t.readyState=="complete")&&((f.type=="load"?i:t)[c](u+f.type,r,!1),!e&&(e=!0)&&n.call(i,f.type||f))},h=function(){try{s.doScroll("left")}catch(n){setTimeout(h,50);return}r("poll")};if(t.readyState=="complete")n.call(i,"lazy");else{if(t.createEventObject&&s.doScroll){try{o=!i.frameElement}catch(l){}o&&h()}t[f](u+"DOMContentLoaded",r,!1);t[f](u+"readystatechange",r,!1);i[f](u+"load",r,!1)}}}()}};i[t]=function(n,t){this.element=n;this.wrapper=n.parentNode;this.source=n.getElementsByTagName("source")[0]||n;this.mp3=function(n){var t=n.getElementsByTagName("source")[0];return n.getAttribute("src")||(t?t.getAttribute("src"):null)}(n);this.settings=t;this.loadStartedCalled=!1;this.loadedPercent=0;this.duration=1;this.playing=!1};i[t].prototype={updatePlayhead:function(){var n=this.element.currentTime/this.duration;this.settings.updatePlayhead.apply(this,[n])},skipTo:function(n){n>this.loadedPercent||(this.element.currentTime=this.duration*n,this.updatePlayhead())},load:function(t){this.loadStartedCalled=!1;this.source.setAttribute("src",t);this.element.load();this.mp3=t;i[n].events.trackLoadProgress(this)},loadError:function(){this.settings.loadError.apply(this)},init:function(){this.settings.init.apply(this)},loadStarted:function(){if(!this.element.duration)return!1;this.duration=this.element.duration;this.updatePlayhead();this.settings.loadStarted.apply(this)},loadProgress:function(){if(this.element.buffered!=null&&this.element.buffered.length){this.loadStartedCalled||(this.loadStartedCalled=this.loadStarted());var n=this.element.buffered.end(this.element.buffered.length-1);this.loadedPercent=n/this.duration;this.settings.loadProgress.apply(this,[this.loadedPercent])}},playPause:function(){this.playing?this.pause():this.play()},play:function(){var t=/(ipod|iphone|ipad)/i.test(navigator.userAgent);t&&this.element.readyState==0&&this.init.apply(this);this.settings.preload||(this.settings.preload=!0,this.element.setAttribute("preload","auto"),i[n].events.trackLoadProgress(this));this.playing=!0;this.element.play();this.settings.play.apply(this)},pause:function(){this.playing=!1;this.element.pause();this.settings.pause.apply(this)},setVolume:function(n){this.element.volume=n},trackEnded:function(){this.skipTo.apply(this,[0]);this.settings.loop||this.pause.apply(this);this.settings.trackEnded.apply(this)}};r=function(n,t){var i=[],r,f,u,e;if(t=t||document,t.getElementsByClassName)i=t.getElementsByClassName(n);else for(u=t.getElementsByTagName("*"),e=new RegExp("(^|\\s)"+n+"(\\s|$)"),r=0,f=u.length;r<f;r++)e.test(u[r].className)&&i.push(u[r]);return i.length>1?i:i[0]}}("audiojs","audiojsInstance",this);var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(n){var f="",e,t,i,s,h,o,r,u=0;for(n=Base64._utf8_encode(n);u<n.length;)e=n.charCodeAt(u++),t=n.charCodeAt(u++),i=n.charCodeAt(u++),s=e>>2,h=(e&3)<<4|t>>4,o=(t&15)<<2|i>>6,r=i&63,isNaN(t)?o=r=64:isNaN(i)&&(r=64),f=f+Base64._keyStr.charAt(s)+Base64._keyStr.charAt(h)+Base64._keyStr.charAt(o)+Base64._keyStr.charAt(r);return f},decode:function(n){var t="",e,o,s,h,u,r,f,i=0;for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<n.length;)h=Base64._keyStr.indexOf(n.charAt(i++)),u=Base64._keyStr.indexOf(n.charAt(i++)),r=Base64._keyStr.indexOf(n.charAt(i++)),f=Base64._keyStr.indexOf(n.charAt(i++)),e=h<<2|u>>4,o=(u&15)<<4|r>>2,s=(r&3)<<6|f,t=t+String.fromCharCode(e),r!=64&&(t=t+String.fromCharCode(o)),f!=64&&(t=t+String.fromCharCode(s));return Base64._utf8_decode(t)},_utf8_encode:function(n){var i,r,t;for(n=n.replace(/\r\n/g,"\n"),i="",r=0;r<n.length;r++)t=n.charCodeAt(r),t<128?i+=String.fromCharCode(t):t>127&&t<2048?(i+=String.fromCharCode(t>>6|192),i+=String.fromCharCode(t&63|128)):(i+=String.fromCharCode(t>>12|224),i+=String.fromCharCode(t>>6&63|128),i+=String.fromCharCode(t&63|128));return i}
161,_utf8_decode:function(n){for(var r="",t=0,i=c1=c2=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r}},validatorClass="valactive",errorClass="error",holderClass="valholder",specimenScriptsCheckValidatorsEvents="click change";window.scrollTo=function(){};jQuery(document).ready(function(){jQuery("input, select, .form-submit").bind(specimenScriptsCheckValidatorsEvents,function(){CheckValidators("."+validatorClass)});InitButtonParentClick()});GoToSpecimenCustom=undefined;typeof RefreshCartUIHandlers=="undefined"&&(RefreshCartUIHandlers=new CardUIHandlersArray);CardUIHandlersArray.prototype.add=function(n){for(var r,t=!1,u=n.toString().split("{",1)[0],i=0;i<this.funcs.length;i++)if(r=this.funcs[i].toString().split("{",1)[0],t=u==r,t)break;t||(this.funcs[this.funcs.length]=n)};CardUIHandlersArray.prototype.callAllHandlers=function(n){for(var t=0;t<this.funcs.length;t++)this.funcs[t](n)};autoComplete=null
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.