$(function() { /* c l i e n t p o r t a l d i a l o g */ var Full_Name = $("#Full_Name"), CompanyName = $("#CompanyName"), CustomField1 = $("#CustomField1"), Question = $("#Question"), allFields = $([]).add(Full_Name).add(CompanyName).add(CustomField1).add(Question), tips = $("#validateTips"); function updateTips(t) { tips.text(t).effect("highlight",{},1500); } function checkLength(o,n,min) { if ( o.val().length < min ) { o.addClass('ui-state-error'); updateTips("Please enter " + n + " with at least " + min + " characters."); return false; } else { return true; } } function clientPortalButtonClick() { var bValid = true; allFields.removeClass('ui-state-error'); bValid = bValid && checkLength(Full_Name,"a name",2); if (bValid) { /* validation: * The GoToAssist landing page requires the question field to be filled in. * Frequently clients only enter their name. If the question field is blank, * move Full_Name to Question. */ if ($("#Question").val().length == 0) { $("#Question").val($("#Full_Name").val()); $("#Full_Name").val(''); } document.QuestionEntry.submit(); } } $("#client-portal-dialog").dialog({ bgiframe: true, autoOpen: false, //height: 410, width: 360, position: ['center',80], modal: true, buttons: { 'Continue': function() { clientPortalButtonClick(); }, Cancel: function() { $(this).dialog('close'); } }, close: function() { allFields.val('').removeClass('ui-state-error'); } }); $('#client-portal-button').click(function() { $('#client-portal-dialog').dialog('open'); }); $('#client-portal-dialog').keyup(function(e) { if (e.keyCode == 13) { clientPortalButtonClick(); } }); }); /* j Q u e r y */ function closeMenus() { $('.navigation-head').css({'background-color' : '', 'color' : ''}); $('#navigation-home-img').attr('src', 'themes/custom/provinet/images/home.gif'); $.Menu.closeAll(); } $(document).ready(function(){ /* r e m o v e a n c h o r s */ /* for js-enabled browsers */ $('#client-portal-button').removeAttr('href'); /* m e n u */ /* http://p.sohei.org/jquery-plugins/menu/ */ /* begin logic to close menu on mouseout */ var navigationout, menudivout = true; var navigationtimeout, menudivtimeout; $('.navigation-head').mouseleave(function() { navigationout = true; if (navigationout && menudivout) { navigationtimeout = setTimeout('closeMenus()', 200) } }); $('#root-menu-div').mouseleave(function() { menudivout = true; if (navigationout && menudivout) { menudivtimeout = setTimeout('closeMenus()', 200) } }); $('.navigation-head').mouseenter(function() { clearTimeout(menudivtimeout); clearTimeout(navigationtimeout); navigationout = false; }); $('#root-menu-div').mouseenter(function() { clearTimeout(menudivtimeout); clearTimeout(navigationtimeout); menudivout = false; }); $('.navigation-head').mouseenter(function() { $('.navigation-head').css({'background-color' : '', 'color' : ''}); $(this).css({'background-color' : '#0065ad', 'color' : 'white'}); $('#navigation-home-img').attr('src', 'themes/custom/provinet/images/home.gif'); $('#navigation-home').mouseover(function() { $('#navigation-home-img').attr('src', 'themes/custom/provinet/images/home-white.gif'); }); }); /* end logic to close menu on mouseout */ var options = {minWidth: 210, offsetTop: 18, hoverOpenDelay: 200 }; var items = [ {src: 'News and Events', url: 'news-and-events'}, {src: 'Clients', url: 'clients'}, {src: 'Partners', url: 'partners'} ]; $('#about-us').menu(options, items); var items = [ {src: 'Hosted Desktop', url: 'hosted-desktop'}, {src: 'Application Hosting', url: 'application-hosting'}, {src: 'Managed Internet Service Provider', url: 'managed-internet-service-provider'}, {src: 'Integrated Senior Care Software Solution', url: 'integrated-senior-care-software-solution'} ]; $('#total-solutions').menu(options, items); var items = [ ]; $('#outsourcing').menu(options, items); var items = [ {src: 'Infrastructure Analysis and Review', url: 'infrastructure-analysis-and-review'}, {src: 'Proactive Server Maintenance', url: 'proactive-server-maintenance'}, {src: 'Software Consulting, Installation and Support', url: 'software-consulting-installation-and-support'}, {src: 'System Design, Implementation and Support', url: 'system-design-implementation-and-support'}, {src: 'Project Management', url: 'project-management'}, {src: 'System Integration, Monitoring and Administration', url: 'system-integration-monitoring-and-administration'}, {src: 'Hardware Sales', url: 'hardware-sales'} ]; $('#technology-services').menu(options, items); var items = [ {src: 'Custom Application Development', url: 'custom-application-development'}, {src: 'Integration Services', url: 'integration-services'}, {src: 'Website Development', url: 'website-development'}, {src: 'Database Design', url: 'database-design'}, {src: 'E-Commerce Development', url: 'ecommerce-development'} ]; $('#software-development').menu(options, items); var items = [ {src: 'Wiring', url: 'wiring'}, {src: 'Wireless Solutions', url: 'wireless-solutions'}, {src: 'Telephony', url: 'telephony'}, {src: 'Security & Surveillance Solutions (CCTV)', url: 'security-and-surveillance-solutions-cctv'} ]; $('#communications').menu(options, items); var items = [ {src: 'Tele-health and Health Management', url: 'telehealth-and-health-management'}, {src: 'Social Connectedness and Brain Fitness', url: 'social-connectedness-and-brain-fitness'}, {src: 'Medication Dispensers', url: 'medication-dispensers'}, {src: 'Fall Detection', url: 'fall-detection'}, {src: 'Wander Management', url: 'wander-management'}, {src: 'Personal Emergency Response Systems', url: 'personal-emergency-response-systems'} ]; $('#life-technologies').menu(options, items); /* f e a t u r e d c o n t e n t */ /* http://www.malsup.com/jquery/cycle/options.html */ $('#content-featured') .before('