var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
var Extend = function () {
return {
showGroupChannel: function (channelId, channelName, channelUrl, linkTarget, navLocation, bgColor, textColor, dividerColor, isLast) {
var chList = Extend.Cookie.getCookie('chList');
if (chList && chList.indexOf(channelId) != -1) {
if (dividerColor.length > 0)
document.write('
');
else
document.write('
');
if (bgColor.length > 0)
document.write('');
if (isLast) {
if (dividerColor)
document.write('
');
else
document.write('
');
}
}
},
showGroupSubChannel: function (channelId, channelName, channelUrl, linkTarget) {
var chList = Extend.Cookie.getCookie('chList');
if (chList && chList.indexOf(channelId) != -1)
document.write('' + channelName + '');
else
document.write(' ');
},
showRegisterSignIn: function (showWelcome, showRegister, showSignIn, baseUrl, channelUrl) {
var accessUser = Extend.Cookie.getCookie('access_user');
var userName = accessUser || Extend.Cookie.getCookie('extend_user');
if (userName && showWelcome)
document.write('Welcome ' + userName + ' ');
document.write('');
if (userName) {
if (!accessUser) {
document.write('Profile | ');
}
document.write('Sign Out');
} else {
if (showRegister)
document.write('Register');
if (showRegister && showSignIn)
document.write(' | ');
if (showSignIn)
document.write('Sign In');
}
document.write('');
},
printPage: function () {
if (window.print) window.print();
else alert('Sorry, this feature is not available on your browser.\nPlease use your browser\'s print button.');
},
sendToFriend: function (url) {
url += '&pageurl=' + escape(window.location.href);
var top = window.screen.height / 2 - 600 / 2;
var left = window.screen.width / 2 - 400 / 2;
var win = window.open(url, 'sendtofriend', 'top=' + top + ',left=' + left + ',width=400,height=600,scrollbars=1,resizable=1');
win.opener = window;
win.focus();
},
getGadgetUrl: function (obj) {
if (obj.src.indexOf('?') == -1) {
obj.src += '?context=extend';
if (login = Extend.Cookie.getCookie('extend_login'))
obj.src += '&login=' + login;
}
}
};
}();
Extend.DateTime = function () {
return {
getDay: function () {
var word_day = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
var right_now = new Date();
return word_day[right_now.getDay()];
},
getDate: function () {
var word_month = new Array('January ', 'February ', 'March ', 'April ', 'May ', 'June ', 'July ', 'August ', 'September ', 'October ', 'November ', 'December ')
var right_now = new Date();
var right_year = right_now.getYear();
if (right_year < 2000) right_year = right_year + 1900;
return word_month[right_now.getMonth()] + right_now.getDate() + ', ' + right_year;
},
getTime: function () {
var right_now = new Date();
var time;
var hours = right_now.getHours();
if (hours >= 12) time = 'PM';
else time = 'AM';
if (hours > 12) hours -= 12;
if (hours == 0) hours = 12;
var mins = right_now.getMinutes();
if (mins < 10) mins = '0' + mins;
return hours + ':' + mins + ' ' + time;
}
}
}();
Extend.Cookie = function () {
var getCookieVal = function (offset) {
var endstr = document.cookie.indexOf(';', offset);
if (endstr == -1)
endstr = document.cookie.length;
return document.cookie.substring(offset, endstr);
};
return {
getCookie: function (name) {
var arg = name + '=';
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal(j);
i = document.cookie.indexOf(' ', i) + 1;
if (i == 0) break;
}
return null;
}
}
}();
Extend.JSON = function () {
return {
stringify: function (args) {
return JSON.stringify(args, function (k, v) { return v === "" ? "" : v });
}
}
}();
Extend.Search = function () {
var validateSearchText = function (searchTextbox) {
if (searchTextbox.val().length == 0) {
alert('Please enter one or more search terms.');
searchTextbox.focus();
return false;
}
return true;
};
var submitSearch = function (searchTextbox, resultsPage, openInNewWindow) {
if (searchTextbox.attr('disabled') || !validateSearchText(searchTextbox))
return;
var valid = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789- ';
var searchText = '';
var temp = jQuery('#searchtextbox').val();
for (i = 0; i < temp.length; i++)
if (valid.indexOf(temp.charAt(i)) > -1)
searchText += temp.charAt(i);
if (openInNewWindow)
window.open(resultsPage + '?q=' + searchText);
else
location.href = resultsPage + '?q=' + searchText;
};
return {
init: function () {
var searchTextbox = jQuery('#searchform #searchtextbox');
var goButton = jQuery('#searchform #go');
var searchText = jQuery('#searchform #searchText').val();
var resultsPage = jQuery('#searchform #resultsPage').val();
var openInNewWindow = jQuery('#searchform #openInNewWindow').val() == 'true';
searchTextbox.focus(function () {
searchTextbox.val('');
}).blur(function () {
if (searchTextbox.val().length == 0) {
searchTextbox.val(searchText);
}
}).keypress(function (event) {
var keyCode = null;
if (event.which)
keyCode = event.which;
else if (event.keyCode)
keyCode = event.keyCode;
if (keyCode == 13) {
submitSearch(searchTextbox, resultsPage, openInNewWindow);
event.preventDefault();
}
return true;
});
goButton.click(function () {
submitSearch(searchTextbox, resultsPage, openInNewWindow);
});
}
}
}();
Extend.Calendar = function () {
return {
adjustCalendar: function (calendarViewId, prePostDate, direction) {
var workingDate = new Date(prePostDate);
var day = workingDate.getDate();
var month = workingDate.getMonth() + 1;
var year = workingDate.getFullYear();
if (direction == -1) {
if (month == 1) {
month = 12;
year--;
}
else
month--;
}
else if (direction == 1) {
if (month == 12) {
month = 1;
year++;
}
else
month++;
}
jQuery.get('/controls/calendarofevents_loader.aspx?CalendarViewId=' + calendarViewId + '&EventId=0&WorkingDate=' + month + '/01/' + year + '&Action=ShowCalendar', function (response) {
jQuery('#ucCalendarOfEvents' + calendarViewId + '_divCalendar').html(response);
});
},
showTodaysEvents: function (calendarViewId, eventDate) {
var workingDate = new Date(eventDate);
var day = workingDate.getDate();
var month = workingDate.getMonth() + 1;
var year = workingDate.getFullYear();
jQuery.get('/controls/calendarofevents_loader.aspx?CalendarViewId=' + calendarViewId + '&EventId=0&WorkingDate=' + month + '/' + day + '/' + year + '&Action=ShowTodaysEvents', function (response) {
jQuery('#ucCalendarOfEvents' + calendarViewId + '_divCalendar').html(response);
});
},
showEvent: function (calendarViewId, eventId, eventDate) {
var workingDate = new Date(eventDate);
var day = workingDate.getDate();
var month = workingDate.getMonth() + 1;
var year = workingDate.getFullYear();
jQuery.get('/controls/calendarofevents_loader.aspx?CalendarViewId=' + calendarViewId + '&EventId=' + eventId + '&WorkingDate=' + month + '/' + day + '/' + year + '&Action=ShowEvent', function (response) {
jQuery('#ucCalendarOfEvents' + calendarViewId + '_divCalendar').html(response);
});
}
}
}();
Extend.SlideShow = function () {
return {
init: function (slideShowId, slides, delay, showNavigationControls, width) {
var html = [];
html.push(' 0 ? ' style="width:' + width + 'px"' : '') + '>');
html.push('
');
for (var i = 0; i < slides.length; i++) {
html.push('
');
html.push('

');
if (slides[i].title || slides[i].description) {
html.push('
');
if (slides[i].title)
html.push('
' + slides[i].title + '
');
if (slides[i].description)
html.push('
' + slides[i].description + '
');
html.push('
');
}
if (slides[i].link) {
html.push('
');
}
html.push('
');
}
html.push('
');
if (showNavigationControls) {
html.push('
‹');
html.push('
›');
}
html.push('
');
$('#slideShow' + slideShowId).html(html.join(''));
$('#slideShow' + slideShowId + '_Carousel').carousel({ interval: delay });
}
}
}();
Extend.Form = function () {
var getFieldValue = function (field) {
var value = '';
if (field.is('.name')) {
var firstName = jQuery.trim(field.find('input.firstname').val());
var lastName = jQuery.trim(field.find('input.lastname').val());
if (firstName.length > 0 && lastName.length > 0) {
value = firstName + ' ' + lastName;
}
}
else if (field.is('.fullname')) {
var firstName = jQuery.trim(field.find('input.firstname').val());
var middleName = jQuery.trim(field.find('input.middlename').val());
var lastName = jQuery.trim(field.find('input.lastname').val());
if (firstName.length > 0 && middleName.length > 0 && lastName.length > 0) {
value = firstName + ' ' + middleName + ' ' + lastName;
}
}
else if (field.is('.phone')) {
var area = jQuery.trim(field.find('.area').val());
var prefix = jQuery.trim(field.find('.prefix').val());
var suffix = jQuery.trim(field.find('.suffix').val());
var ext = jQuery.trim(field.find('.ext').val());
if (area.length > 0 || prefix.length > 0 || suffix.length > 0) {
value = '(' + area + ') ' + prefix + '-' + suffix;
if (ext.length > 0) {
value += ' ext. ' + ext;
}
}
}
else if (field.is('.dropdown')) {
value = jQuery.trim(field.find('select').val());
}
else if (field.is('.multiline')) {
value = jQuery.trim(field.find('textarea').val());
}
else if (field.is('.checkbox')) {
value = field.find('input:checkbox').is(':checked');
}
else if (field.is('.radiobutton')) {
value = field.find('input:radio:checked').val();
}
else {
value = jQuery.trim(field.find('input').val());
}
return value;
};
var validateField = function (field, label, value, validationSummary) {
// Validate required fields
if (!value || value.length == 0) {
if (field.find('span.required').length > 0) {
validationSummary.children('ul').append('' + label + ' is a required field.');
return false;
}
return true;
}
// Validate formatting
if (field.is('.email')) {
var expression = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
if (value.search(expression) < 0) {
validationSummary.children('ul').append('' + label + ' is not in the correct format. (eg. name@domain.com).');
return false;
}
}
if (field.is('.datepicker')) {
var expression = /^\d{1,2}\/\d{1,2}\/\d{4}$/;
if (value.search(expression) < 0) {
validationSummary.children('ul').append('' + label + ' must be a valid date in the format mm/dd/yyyy.');
return false;
}
}
if (field.is('.zip')) {
var expression = /\d{5}(\-\d{4})?$/;
if (value.search(expression) < 0) {
validationSummary.children('ul').append('' + label + ' is not in the correct format. (eg. 12345 or 12345-1234).');
return false;
}
}
if (field.is('.phone')) {
var expression = /^\(\d{3}\) \d{3}\-\d{4}( ext\. \d{1,6})?$/;
if (value.search(expression) < 0) {
validationSummary.children('ul').append('' + label + ' is not in the correct format. (eg. (123) 456-7890).');
return false;
}
}
return true;
};
var submitForm = function () {
var submitButton = jQuery(this);
var formWrapper = submitButton.parent().parent();
var validationSummary = formWrapper.children('div.error');
var formId = formWrapper.attr('id').replace('form', '');
var formData = [];
var isValid = true;
// Reset validation summary
validationSummary.children('ul').remove();
validationSummary.append('');
validationSummary.hide();
// Get recipient's email
var recipientEmailAddress = formWrapper.find('#txtRecipientEmailAddress').val();
// Process form fields
formWrapper.children('div.formfield').each(function () {
var field = jQuery(this);
var label = field.attr('title');
var value = getFieldValue(field);
if (!validateField(field, label, value, validationSummary)) {
isValid = false;
}
formData.push(value);
});
if (!isValid) {
validationSummary.show();
validationSummary.focus();
return;
}
jQuery.ajax({
url: '/presentation.asmx/SubmitForm',
type: 'POST',
contentType: 'application/json; charset=utf-8',
dataType: 'json',
data: Extend.JSON.stringify({
submittedFormId: formId,
recipientEmailAddress: recipientEmailAddress,
submittedFormData: formData
}),
beforeSend: function () {
// Disable the form
submitButton.after(' Submitting...');
formWrapper.find('input, select, textarea').attr('disabled', 'disabled').css('cursor', 'wait');
},
success: function (result) {
if (result.d.Success) {
formWrapper.html(result.d.SuccessMessage);
}
else {
for (var i = 0; i < result.d.Errors.length; i++) {
validationSummary.children('ul').append('' + result.d.Errors[i] + '');
validationSummary.show();
validationSummary.focus();
}
}
},
error: function () {
validationSummary.children('ul').append('The form submission failed unexpectedly. Please try again.');
validationSummary.show();
validationSummary.focus();
},
complete: function () {
// Re-enable the form
jQuery('span.saving').remove();
formWrapper.find('input, select, textarea').removeAttr('disabled').css('cursor', '');
}
});
};
return {
init: function () {
// Preload css images for validation summary and date picker
jQuery('
').attr('src', '/admin/images/error-bg.gif');
jQuery('
').attr('src', '/admin/images/symbol_restricted_16.gif');
jQuery('
').attr('src', '/admin/images/boxtitle_bg.gif');
// Bind submit action
jQuery('.formwrapper input[type="button"]').click(submitForm);
}
}
}();
jQuery(document).ready(function () {
Extend.Search.init();
Extend.Form.init();
});
}
/*
FILE ARCHIVED ON 02:22:57 Jul 14, 2017 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 14:48:32 Feb 21, 2023.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
/*
playback timings (ms):
captures_list: 87.408
exclusion.robots: 0.152
exclusion.robots.policy: 0.133
RedisCDXSource: 0.774
esindex: 0.01
LoadShardBlock: 56.152 (3)
PetaboxLoader3.datanode: 99.694 (4)
load_resource: 87.509
PetaboxLoader3.resolve: 30.063
*/