$(document).ready(function() { /** * jCarouselLite * Functions for the carousel/demo viewer at the bottom of the home page */ $(".demoCarousel").jCarouselLite({ btnNext: ".next", btnPrev: ".prev", visible: 5 }); /** * Form validation (not really, just scripts to mark unfilled required fields */ function clearRequiredFields(){ $('form .requiredField').removeClass('emptyRequiredField'); } $('.requiredField').blur(function(){ if ($(this).val() == '') { $(this).addClass('emptyRequiredField'); $('.emptyRequiredField + .fieldHint').show(); } else { $(this).removeClass('emptyRequiredField'); } }); /** * Always give focus to the first text input box on the page, if there is one */ $(':text:first').focus(); }); /** * AJAXally load product descriptions on the products page * The gets productsList (with 'ajax' in the query string) and then loads only * the div that is specified by the selector * * @var selector which: the id of the div that should be loaded onto the page */ function loadProductText(sourceFilename, which) { $('.sideNavRightColumn').load(sourceFilename + '.php?ajax #' + which); } function renameInvitation(newName) { return 'new name here'; }