/* This file came from Pixelsilk at http://www.avamerelivingatberrypark.com/api2.min.js
 *  Version: 3.0.17.9029 | 2/17/2012 4:43:54 PM */
if(!window["pixelsilk2"]){window["pixelsilk2"]=(function(){var q=1;var e=1200;var f;var z;var n;var k,c,g;function a(){if(typeof(k)==="function"){k()}}function p(){if(typeof(c)==="function"){c()}}function x(i){if(typeof(g)==="function"){g(i)}else{if(i.error){alert(i.message)}}}function l(D,F,B,i,E){u("JSON","/_System/Scripts/json2.min.js");a();if(typeof(E)!=="function"&&typeof(i)==="function"){E=i;i=null}else{if(typeof(E)!=="function"&&typeof(B)==="function"){E=B;B=null}}var C=function(G){p();if(E){E(G)}};t(D,F,B,i,C)}function t(E,G,B,i,F){var D=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");if(G==="GET"){var H=E+"?"+d(B,i)+"&format=json";if(H.length>e){G="POST"}else{E=H}}D.open(G,E,true);D.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");D.onreadystatechange=function(){if(D.readyState===4&&D.status===200&&(D.responseText||D.responseText==="")){A(D);var J=JSON.parse(D.responseText);if(J&&J.error===true){x(J)}else{if(F!==null){F(J)}}}else{if(D.readyState===4&&D.status===500){A(D);var I=JSON.parse(D.responseText);x(I)}else{if(D.readyState===4&&D.status===0){w(E,B,eventCallbac)}}}};var C=d(B,i);D.send(C)}function A(B){if(typeof MiniProfiler=="undefined"){return}var i=B.getResponseHeader("X-MiniProfiler-Ids");if(i){var C=JSON.parse(i);MiniProfiler.fetchResultsExposed(C)}}function w(F,D,G){var i=q++;var H=j(i,G);var B=d(D);var E=s(F,B,H,i);var C=document.getElementsByTagName("head")[0];C.appendChild(E)}function j(B,C){var i="callback"+B;window["pixelsilk2"][i]=function(E){window["pixelsilk2"][i]=null;var D=document.getElementById("pixelsilk2api"+B);if(D){D.parentNode.removeChild(D)}C(E)};return"pixelsilk2."+i}function d(E,B){var D="json=";if(typeof(E)!=="undefined"){var C=JSON.stringify(E);D+=encodeURIComponent(C)}if(f&&!B){D+="&token="+encodeURIComponent(f)}if(z){var i=r(C);D+="&appId="+encodeURIComponent(z)+"&signature="+encodeURIComponent(i)}if(B){D+="&auth="+encodeURIComponent(B.auth)+"&token="+encodeURIComponent(B.token)}return D}function r(B){if(typeof(B)==="undefined"){B=""}var i=B+n;u("SHA1","/_System/Scripts/webtoolkit.sha1.min.js");return y(i)}function s(E,B,F,i){var D=document.createElement("script");D.type="text/javascript";var C=E+"?"+B+"&callback="+F;if(C.length>2000){throw"URL length is over 2000 characters, not creating script tag."}D.src=C;D.id="pixelsilk2api"+i;D.className="pixelsilk2api";return D}function v(i){return function(E,C,B){var D=window["pixelsilk2"].urlBase+i.name;l(D,i.httpMethod,E,C,B)}}var o={init:function(i){f=i},setKey:function(B,i){z=B;n=i},start:function(i){k=i},end:function(i){c=i},error:function(i){g=i},ajaxPost:function(C,D,B,i){l(C,"POST",D,B,i)},domain:"www.avamerelivingatberrypark.com",urlBase:"http://www.avamerelivingatberrypark.com/api2/",appPath:""};function u(C,E){if(!window[C]){var D=window.location.protocol+"//"+o.domain;if(o.appPath){D+="/"+o.appPath}D+=E;var i=document.createElement("script");i.type="text/javascript";i.src=D;var B=document.getElementsByTagName("head")[0];B.appendChild(i)}}
/*
        *
        *  Secure Hash Algorithm (SHA1)
        *  http://www.webtoolkit.info/
        *
        **/
function y(I){function P(B,i){var C=(B<<i)|(B>>>(32-i));return C}function Y(E){var D="";var B;var C;var W;for(B=0;B<=6;B+=2){C=(E>>>(B*4+4))&15;W=(E>>>(B*4))&15;D+=C.toString(16)+W.toString(16)}return D}function ab(D){var C="";var B;var E;for(B=7;B>=0;B--){E=(D>>>(B*4))&15;C+=E.toString(16)}return C}function T(D){D=D.replace(/\r\n/g,"\n");var C="";for(var i=0;i<D.length;i++){var B=D.charCodeAt(i);if(B<128){C+=String.fromCharCode(B)}else{if((B>127)&&(B<2048)){C+=String.fromCharCode((B>>6)|192);C+=String.fromCharCode((B&63)|128)}else{C+=String.fromCharCode((B>>12)|224);C+=String.fromCharCode(((B>>6)&63)|128);C+=String.fromCharCode((B&63)|128)}}}return C}var aa;var Z,X;var R=new Array(80);var N=1732584193;var V=4023233417;var F=2562383102;var M=271733878;var J=3285377520;var Q,H,U,K,L;var O;I=T(I);var S=I.length;var G=new Array();for(Z=0;Z<S-3;Z+=4){X=I.charCodeAt(Z)<<24|I.charCodeAt(Z+1)<<16|I.charCodeAt(Z+2)<<8|I.charCodeAt(Z+3);G.push(X)}switch(S%4){case 0:Z=2147483648;break;case 1:Z=I.charCodeAt(S-1)<<24|8388608;break;case 2:Z=I.charCodeAt(S-2)<<24|I.charCodeAt(S-1)<<16|32768;break;case 3:Z=I.charCodeAt(S-3)<<24|I.charCodeAt(S-2)<<16|I.charCodeAt(S-1)<<8|128;break}G.push(Z);while((G.length%16)!=14){G.push(0)}G.push(S>>>29);G.push((S<<3)&4294967295);for(aa=0;aa<G.length;aa+=16){for(Z=0;Z<16;Z++){R[Z]=G[aa+Z]}for(Z=16;Z<=79;Z++){R[Z]=P(R[Z-3]^R[Z-8]^R[Z-14]^R[Z-16],1)}Q=N;H=V;U=F;K=M;L=J;for(Z=0;Z<=19;Z++){O=(P(Q,5)+((H&U)|(~H&K))+L+R[Z]+1518500249)&4294967295;L=K;K=U;U=P(H,30);H=Q;Q=O}for(Z=20;Z<=39;Z++){O=(P(Q,5)+(H^U^K)+L+R[Z]+1859775393)&4294967295;L=K;K=U;U=P(H,30);H=Q;Q=O}for(Z=40;Z<=59;Z++){O=(P(Q,5)+((H&U)|(H&K)|(U&K))+L+R[Z]+2400959708)&4294967295;L=K;K=U;U=P(H,30);H=Q;Q=O}for(Z=60;Z<=79;Z++){O=(P(Q,5)+(H^U^K)+L+R[Z]+3395469782)&4294967295;L=K;K=U;U=P(H,30);H=Q;Q=O}N=(N+Q)&4294967295;V=(V+H)&4294967295;F=(F+U)&4294967295;M=(M+K)&4294967295;J=(J+L)&4294967295}var O=ab(N)+ab(V)+ab(F)+ab(M)+ab(J);return O.toLowerCase()}var b=[{"name":"addDomain","httpMethod":"POST"},{"name":"addListItem","httpMethod":"POST"},{"name":"addNewPageType","httpMethod":"POST"},{"name":"addNewSystemFile","httpMethod":"POST"},{"name":"addPageTypeField","httpMethod":"POST"},{"name":"addPageTypeFieldValue","httpMethod":"POST"},{"name":"addRole","httpMethod":"POST"},{"name":"addSearchField","httpMethod":"POST"},{"name":"addSearchFieldSort","httpMethod":"POST"},{"name":"addSection","httpMethod":"POST"},{"name":"addTheme","httpMethod":"POST"},{"name":"addUser","httpMethod":"POST"},{"name":"canEditPassword","httpMethod":"POST"},{"name":"checkValidNewControl","httpMethod":"POST"},{"name":"checkValidNewPageTypeField","httpMethod":"POST"},{"name":"copyControl","httpMethod":"POST"},{"name":"copyListItem","httpMethod":"POST"},{"name":"copyPageType","httpMethod":"POST"},{"name":"copySystemFile","httpMethod":"POST"},{"name":"copyTheme","httpMethod":"POST"},{"name":"createControl","httpMethod":"POST"},{"name":"createNewSectionSkin","httpMethod":"POST"},{"name":"deleteAlbum","httpMethod":"POST"},{"name":"deleteControl","httpMethod":"POST"},{"name":"deleteDomain","httpMethod":"POST"},{"name":"deleteFile","httpMethod":"POST"},{"name":"deleteItem","httpMethod":"POST"},{"name":"deletePageType","httpMethod":"POST"},{"name":"deletePageTypeField","httpMethod":"POST"},{"name":"deletePageTypeFieldValue","httpMethod":"POST"},{"name":"deleteRole","httpMethod":"POST"},{"name":"deleteSearchField","httpMethod":"POST"},{"name":"deleteSearchFieldSort","httpMethod":"POST"},{"name":"deleteSectionById","httpMethod":"POST"},{"name":"deleteSectionSkin","httpMethod":"POST"},{"name":"deleteSystemFile","httpMethod":"POST"},{"name":"deleteTheme","httpMethod":"POST"},{"name":"deleteUser","httpMethod":"POST"},{"name":"editListItems","httpMethod":"POST"},{"name":"editTheme","httpMethod":"POST"},{"name":"enablePlugin","httpMethod":"POST"},{"name":"enableSectionById","httpMethod":"POST"},{"name":"fileUpload","httpMethod":"POST"},{"name":"fileUploadValidator","httpMethod":"POST"},{"name":"getAlbumContents","httpMethod":"POST"},{"name":"getAlbums","httpMethod":"POST"},{"name":"getAllSections","httpMethod":"POST"},{"name":"getApiPermissions","httpMethod":"POST"},{"name":"getBaseTypes","httpMethod":"POST"},{"name":"getConfiguration","httpMethod":"POST"},{"name":"getContent","httpMethod":"GET"},{"name":"getControlProperties","httpMethod":"POST"},{"name":"getControls","httpMethod":"POST"},{"name":"getControlSecurity","httpMethod":"POST"},{"name":"getControlSettings","httpMethod":"POST"},{"name":"getControlSkins","httpMethod":"POST"},{"name":"getControlTypes","httpMethod":"POST"},{"name":"getDomains","httpMethod":"POST"},{"name":"getEdgeEnabled","httpMethod":"POST"},{"name":"getEmailAddressMessages","httpMethod":"POST"},{"name":"getEmailSettings","httpMethod":"POST"},{"name":"getEveryone","httpMethod":"POST"},{"name":"getFile","httpMethod":"POST"},{"name":"getIndexUser","httpMethod":"POST"},{"name":"getIsSiteQueued","httpMethod":"POST"},{"name":"getLayoutSkins","httpMethod":"POST"},{"name":"getListItems","httpMethod":"GET"},{"name":"getLoginMessages","httpMethod":"POST"},{"name":"getPageType","httpMethod":"POST"},{"name":"getPageTypeFields","httpMethod":"POST"},{"name":"getPageTypeFieldValues","httpMethod":"POST"},{"name":"getPageTypes","httpMethod":"POST"},{"name":"getPageTypeSkins","httpMethod":"POST"},{"name":"getPasswordMessages","httpMethod":"POST"},{"name":"getPasswordRequirements","httpMethod":"POST"},{"name":"getPlugins","httpMethod":"POST"},{"name":"getPluginSettings","httpMethod":"POST"},{"name":"getPotentialUrl","httpMethod":"POST"},{"name":"getRole","httpMethod":"POST"},{"name":"getRoles","httpMethod":"POST"},{"name":"getSearchFields","httpMethod":"POST"},{"name":"getSearchFieldSorts","httpMethod":"POST"},{"name":"getSection","httpMethod":"POST"},{"name":"getSections","httpMethod":"POST"},{"name":"getSectionsUrl","httpMethod":"POST"},{"name":"getSecuritySettings","httpMethod":"POST"},{"name":"getSiteListSections","httpMethod":"POST"},{"name":"getSkins","httpMethod":"POST"},{"name":"getSystemFile","httpMethod":"POST"},{"name":"getSystemFilenames","httpMethod":"POST"},{"name":"getSystemFiles","httpMethod":"POST"},{"name":"getThemes","httpMethod":"POST"},{"name":"getTokens","httpMethod":"POST"},{"name":"getUsernameMessages","httpMethod":"POST"},{"name":"getUsers","httpMethod":"POST"},{"name":"getWebboxContent","httpMethod":"GET"},{"name":"login","httpMethod":"POST"},{"name":"moveFile","httpMethod":"POST"},{"name":"movePageTypeFieldValueInsertBefore","httpMethod":"POST"},{"name":"movePageTypeFieldValueInsertBefore","httpMethod":"POST"},{"name":"moveSectionInsertBefore","httpMethod":"POST"},{"name":"moveSectionMakeChild","httpMethod":"POST"},{"name":"newSection","httpMethod":"POST"},{"name":"promoteControl","httpMethod":"POST"},{"name":"promoteFile","httpMethod":"POST"},{"name":"promotePageType","httpMethod":"POST"},{"name":"promoteTheme","httpMethod":"POST"},{"name":"purgeEdgeHost","httpMethod":"POST"},{"name":"purgeEdgeUrls","httpMethod":"POST"},{"name":"renameFile","httpMethod":"POST"},{"name":"renameSystemFile","httpMethod":"POST"},{"name":"renderSkin","httpMethod":"GET"},{"name":"saveAlbum","httpMethod":"POST"},{"name":"sendEmailVerificationLink","httpMethod":"POST"},{"name":"sendMailForPasswordUpdate","httpMethod":"POST"},{"name":"sendPasswordLink","httpMethod":"POST"},{"name":"setContent","httpMethod":"POST"},{"name":"setWebboxContent","httpMethod":"POST"},{"name":"showSectionInMenu","httpMethod":"POST"},{"name":"showSectionInSitemap","httpMethod":"POST"},{"name":"updateConfig","httpMethod":"POST"},{"name":"updateControlProperties","httpMethod":"POST"},{"name":"updateDomain","httpMethod":"POST"},{"name":"updateEmailSettings","httpMethod":"POST"},{"name":"updateIndexUser","httpMethod":"POST"},{"name":"updatePageType","httpMethod":"POST"},{"name":"updatePageTypeField","httpMethod":"POST"},{"name":"updatePageTypeFieldValue","httpMethod":"POST"},{"name":"updatePluginSettings","httpMethod":"POST"},{"name":"updateRole","httpMethod":"POST"},{"name":"updateSearchField","httpMethod":"POST"},{"name":"updateSearchFields","httpMethod":"POST"},{"name":"updateSearchFieldSort","httpMethod":"POST"},{"name":"updateSearchFieldSorts","httpMethod":"POST"},{"name":"updateSection","httpMethod":"POST"},{"name":"updateSecuritySettings","httpMethod":"POST"},{"name":"updateSkins","httpMethod":"POST"},{"name":"updateSystemFile","httpMethod":"POST"},{"name":"updateUser","httpMethod":"POST"},{"name":"updateUserByObject","httpMethod":"POST"},{"name":"useEmailAsUsername","httpMethod":"POST"},{"name":"userExists","httpMethod":"POST"},{"name":"validateIndexUser","httpMethod":"POST"},{"name":"verifyUserUniqueness","httpMethod":"POST"}];for(var h=0;h<b.length;h++){var m=b[h];o[m.name]=v(m)}return o}())};
