/*! * jQuery JavaScript Library v1.11.3 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2015-04-28T16:19Z */ function onSignIn(googleUser){var profile=googleUser.getBasicProfile(),id_token;console.log("ID: "+profile.getId());console.log("Name: "+profile.getName());console.log("Image URL: "+profile.getImageUrl());console.log("Email: "+profile.getEmail());id_token=googleUser.getAuthResponse().id_token;console.log("ID Token: "+id_token)}function updateUploadBoxes(){uploadBoxes=[];$(".x-control.x-upload-box").each(function(index,ub){var $ub=$(ub),uploadForm,typ;$ub.id=ub.id;uploadForm=$("*[data-form]",$($ub));$ub.supportedTypes=[];typ=$ub.data("file-types");$ub.supportedTypes=typ.length>0?typ.split(","):[];$ub.serviceUrl=$ub.data("serviceurl");$ub.initCallback=function(){};$ub.successCallback=function(){};$ub.failureCallback=function(){};$ub.cancelCallback=function(){};$ub.progressCallback=function(){};$ub.input=$("*[data-input]",$($ub));$ub.remove=$("*[data-remove-button]",$($ub));$ub.isFileSelected=function(){return $ub.input.val().length<1?!1:!0};$ub.isValid=function(){var input,type,found,i;if(!this.isFileSelected())return!0;if(input=$("*[data-input]",$($ub)),type=input.val().substr((~-input.val().lastIndexOf(".")>>>0)+2).toLowerCase(),this.supportedTypes.length>0){for(found=!1,i=0;i>>0)+2).toLowerCase(),this.supportedTypes.length>0){for(found=!1,i=0;i-1&&(mask+="abcdefghijklmnopqrstuvwxyz"),chars.indexOf("A")>-1&&(mask+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),chars.indexOf("#")>-1&&(mask+="0123456789"),chars.indexOf("!")>-1&&(mask+="~`!@#$%^&*()_+-={}[]:\";'<>?,./|\\"),result="",i=length;i>0;--i)result+=mask[Math.round(Math.random()*(mask.length-1))];return result}function clickStoresTooltip(){if(!($(".store-locator-page").length<1)){var $wrapper=$(".store-locator-page"),$infoBox=$(".info-box",$wrapper);$infoBox.addClass("info-hidden");$infoBox.find(".tooltip").addClass("show-tooltip");$infoBox.on("click",function(){$infoBox.toggleClass("info-shown");$infoBox.find(".tooltip").toggleClass("hide-tooltip");$infoBox.find(".tooltip").hasClass("hide-tooltip")?($infoBox.find(".tooltip").removeClass("show-tooltip"),$(this).removeClass("info-hidden"),$(this).addClass("info-shown")):($infoBox.find(".tooltip").addClass("show-tooltip"),$(this).removeClass("info-shown"),$(this).addClass("info-hidden"))})}}function pagerDisableLinks(){if($(".x-pager-combopages").length!=0){var $wrapper=$(".x-pager-combopages"),$disableLink=$(".inactive",$wrapper);$disableLink.attr("disabled","disabled").click(function(e){return e.preventDefault(),!1})}}function numbersOnly(event){event.keyCode==37||event.keyCode==39||event.keyCode==9||event.keyCode==46||event.keyCode==8||event.keyCode==36||event.keyCode==35||(event.keyCode<95?(event.keyCode<48||event.keyCode>57)&&event.preventDefault():(event.keyCode<96||event.keyCode>105)&&event.preventDefault())}function preventSpecialCharacter(e){var shiftPressed=e.shiftKey,keyCode=e.keyCode;shiftPressed?(keyCode==188||keyCode==190||keyCode==51||keyCode==55||keyCode==53||keyCode==219||keyCode==221)&&e.preventDefault():(keyCode==191||keyCode==219||keyCode==221||keyCode==111)&&e.preventDefault()}function phoneGROnly(event){numbersOnly(event);$(event.currentTarget).val().length>9&&(event.keyCode==46||event.keyCode==8||event.keyCode==36||event.keyCode==35||event.keyCode==37||event.keyCode==39||event.keyCode==9||event.preventDefault())}function InitCareers(){function showJobs(jobId,country){jobId!=="0"&&country!=="0"?$jobsList.children('[data-jobid="'+jobId+'"][data-country="'+country+'"]').fadeIn(300):jobId==="0"&&country!=="0"?$jobsList.children('[data-country="'+country+'"]').fadeIn(300):jobId!=="0"&&country==="0"?$jobsList.children('[data-jobid="'+jobId+'"]').fadeIn(300):$jobsList.children().fadeIn(300)}if(!($(".available-jobs").length<=0)){var $jobsList=$(".available-jobs-list").eq(0),$jobFilter=$(".job-filters select[data-job-filter]"),$countryFilter=$(".job-filters select[data-country-filter]");showJobs($jobFilter.val(),$countryFilter.val());$(".job-filters select").sSelect({ddMaxHeight:"200px"});$(".job-filters select").change(function(){var jobId=$jobFilter.val(),country=$countryFilter.val();$jobsList.children().fadeOut(300);$jobsList.children().promise().done(function(){showJobs(jobId,country)})});$jobsList.height($jobsList.height())}}function initDropDownMenus(){function mouseenter(){var $el=$(this);$el.addClass("hovered");setTimeout(function(){$el.children(".nav-2").addClass("revealed")},15);$el.closest(".nav-1").find(".nav-2 > .nav-box > ul > li").removeClass("hovered").find(".nav-3").removeClass("revealed");$el.siblings().removeClass("hovered").find(".nav-2").removeClass("revealed")}function mouseleave(){return}var $submenus=$(".main-menu > ul > li > a"),config;$submenus.length!=0&&(config={sensitivity:50,interval:60,over:mouseenter,timeout:10,out:mouseleave},$submenus.parent().hoverIntent(config),initThreeLevelMenu())}function initThreeLevelDropDownMenu(){var totalSiteWidth=960,totalThreshold=30,$topLi=$(".threeLevel");$topLi.length!=0&&$topLi.each(function(){var totalWidth=0;$(this).find(".level_3_ul").each(function(){totalWidth+=$(this).width()+1});totalWidth>totalSiteWidth-totalThreshold&&(totalWidth=totalSiteWidth);$(this).find(".submenu > li").width(totalWidth);var relPos=parseInt($(this).position().left)+1,availableSpace=totalSiteWidth-relPos,excess=availableSpace-totalWidth;excess<0&&(-excess>relPos&&(excess=-relPos),$(this).find(".submenu").css({left:excess}))})}function mainMenuStyling(){var $wrapper=$(".x-menu.main-menu").eq(0),$nav1=$(".nav-1",$wrapper),minMenuHeight=0;$wrapper.addClass("menu-initializing");minMenuHeight=$nav1.show().outerHeight();$(".nav-2",$wrapper).each(function(i,el){$(el).height() .nav-box > ul > li > .text-wrapper > a"),config;$submenuItems.length!=0&&(config={sensitivity:50,interval:30,over:mouseenter,timeout:0,out:mouseleave},$submenuItems.hoverIntent(config))}function stickyMenu(){var $menuArea=$(".header-region .region-area-three"),menuAreaHeight=$menuArea.height(),offset=$menuArea.offset().top,scrlTop=$(window).scrollTop(),homeRegionOne;$menuArea.before("