)<[^<]*)*<\/script>/gi,kt=/([?&])_=[^&]*/,$t=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Et=ge.fn.load,Nt={},At={},Dt=["*/"]+["*"];try{bt=P.href}catch(e){(bt=j.createElement("a")).href="",bt=bt.href}yt=$t.exec(bt.toLowerCase())||[],ge.fn.load=function(e,t,i){if("string"!=typeof e&&Et)return Et.apply(this,arguments);if(!this.length)return this;var n,s,r,o=this,a=e.indexOf(" ");return 0<=a&&(n=e.slice(a,e.length),e=e.slice(0,a)),ge.isFunction(t)?(i=t,t=S):t&&"object"==typeof t&&(s="POST"),ge.ajax({url:e,type:s,dataType:"html",data:t,complete:function(e,t){i&&o.each(i,r||[e.responseText,t,e])}}).done(function(e){r=arguments,o.html(n?ge(""}c.pagerEl.html(e)}var s=I(window).width(),r=I(window).height(),o=function(){u.wrap(''),c.viewport=u.parent(),c.loader=I('
'),c.viewport.prepend(c.loader),u.css({width:"horizontal"==c.settings.mode?100*c.children.length+215+"%":"auto",position:"relative"}),c.usingCSS&&c.settings.easing?u.css("-"+c.cssPrefix+"-transition-timing-function",c.settings.easing):c.settings.easing||(c.settings.easing="swing"),f(),c.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),c.viewport.parent().css({maxWidth:h()}),c.settings.pager||c.viewport.parent().css({margin:"0 auto 0px"}),c.children.css({float:"horizontal"==c.settings.mode?"left":"none",listStyle:"none",position:"relative"}),c.children.css("width",p()),"horizontal"==c.settings.mode&&0 '),c.settings.captions&&C(),c.active.last=c.settings.startSlide==m()-1,c.settings.video&&u.fitVids();var e=c.children.eq(c.settings.startSlide);"all"==c.settings.preloadImages&&(e=c.children),c.settings.ticker?c.settings.pager=!1:(c.settings.pager&&b(),c.settings.controls&&x(),c.settings.auto&&c.settings.autoControls&&w(),(c.settings.controls||c.settings.autoControls||c.settings.pager)&&c.viewport.after(c.controls.el)),a(e,l)},a=function(e,t){var i=e.find("img, iframe").length;if(0!=i){var n=0;e.find("img, iframe").each(function(){I(this).one("load",function(){++n==i&&t()}).each(function(){this.complete&&I(this).load()})})}else t()},l=function(){if(c.settings.infiniteLoop&&"fade"!=c.settings.mode&&!c.settings.ticker){var e="vertical"==c.settings.mode?c.settings.minSlides:c.settings.maxSlides,t=c.children.slice(0,e).clone().addClass("bx-clone"),i=c.children.slice(-e).clone().addClass("bx-clone");u.append(t).prepend(i)}c.loader.remove(),v(),"vertical"==c.settings.mode&&(c.settings.adaptiveHeight=!0),c.viewport.height(d()),u.redrawSlider(),c.settings.onSliderLoad(c.active.index),c.initialized=!0,c.settings.responsive&&I(window).bind("resize",W),c.settings.auto&&c.settings.autoStart&&L(),c.settings.ticker&&M(),c.settings.pager&&E(c.settings.startSlide),c.settings.controls&&D(),c.settings.touchEnabled&&!c.settings.ticker&&P()},d=function(){var e=0,t=I();if("vertical"==c.settings.mode||c.settings.adaptiveHeight)if(c.carousel){var n=1==c.settings.moveSlides?c.active.index:c.active.index*g();for(t=c.children.eq(n),i=1;i<=c.settings.maxSlides-1;i++)t=n+i>=c.children.length?t.add(c.children.eq(i-1)):t.add(c.children.eq(n+i))}else t=c.children.eq(c.active.index);else t=c.children;return"vertical"==c.settings.mode?(t.each(function(){e+=I(this).outerHeight()}),0t&&!c.carousel||"vertical"==c.settings.mode?e=t:1c.maxThreshold||tc.maxThreshold)e=c.settings.maxSlides;else{var t=c.children.first().width();e=Math.floor(c.viewport.width()/t)}else"vertical"==c.settings.mode&&(e=c.settings.minSlides);return e},m=function(){var e=0;if(0c.settings.maxSlides&&c.active.last&&!c.settings.infiniteLoop){if("horizontal"==c.settings.mode){var e=c.children.last(),t=e.position();y(-(t.left-(c.viewport.width()-e.width())),"reset",0)}else if("vertical"==c.settings.mode){var i=c.children.length-c.settings.minSlides;t=c.children.eq(i).position();y(-t.top,"reset",0)}}else{t=c.children.eq(c.active.index*g()).position();c.active.index==m()-1&&(c.active.last=!0),null!=t&&("horizontal"==c.settings.mode?y(-t.left,"reset",0):"vertical"==c.settings.mode&&y(-t.top,"reset",0))}},y=function(e,t,i,n){if(c.usingCSS){var s="vertical"==c.settings.mode?"translate3d(0, "+e+"px, 0)":"translate3d("+e+"px, 0, 0)";u.css("-"+c.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"==t?(u.css(c.animProp,s),u.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){u.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),N()})):"reset"==t?u.css(c.animProp,s):"ticker"==t&&(u.css("-"+c.cssPrefix+"-transition-timing-function","linear"),u.css(c.animProp,s),u.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){u.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),y(n.resetValue,"reset",0),j()}))}else{var r={};r[c.animProp]=e,"slide"==t?u.animate(r,i,c.settings.easing,function(){N()}):"reset"==t?u.css(c.animProp,e):"ticker"==t&&u.animate(r,speed,"linear",function(){y(n.resetValue,"reset",0),j()})}},b=function(){c.settings.pagerCustom?c.pagerEl=I(c.settings.pagerCustom):(c.pagerEl=I(''),c.settings.pagerSelector?I(c.settings.pagerSelector).html(c.pagerEl):c.controls.el.addClass("bx-has-pager").append(c.pagerEl),e()),c.pagerEl.delegate("a","click",$)},x=function(){c.controls.next=I(''+c.settings.nextText+" "),c.controls.prev=I(''+c.settings.prevText+" "),c.controls.next.bind("click",_),c.controls.prev.bind("click",S),c.settings.nextSelector&&I(c.settings.nextSelector).append(c.controls.next),c.settings.prevSelector&&I(c.settings.prevSelector).append(c.controls.prev),c.settings.nextSelector||c.settings.prevSelector||(c.controls.directionEl=I('
'),c.controls.directionEl.append(c.controls.prev).append(c.controls.next),c.controls.el.addClass("bx-has-controls-direction").append(c.controls.directionEl))},w=function(){c.controls.start=I('"),c.controls.stop=I('"),c.controls.autoEl=I('
'),c.controls.autoEl.delegate(".bx-start","click",T),c.controls.autoEl.delegate(".bx-stop","click",k),c.settings.autoControlsCombine?c.controls.autoEl.append(c.controls.start):c.controls.autoEl.append(c.controls.start).append(c.controls.stop),c.settings.autoControlsSelector?I(c.settings.autoControlsSelector).html(c.controls.autoEl):c.controls.el.addClass("bx-has-controls-auto").append(c.controls.autoEl),A(c.settings.autoStart?"stop":"start")},C=function(){c.children.each(function(){var e=I(this).find("img:first").attr("title");null!=e&&(""+e).length&&I(this).append(''+e+"
")})},_=function(e){c.settings.auto&&u.stopAuto(),u.goToNextSlide(),e.preventDefault()},S=function(e){c.settings.auto&&u.stopAuto(),u.goToPrevSlide(),e.preventDefault()},T=function(e){u.startAuto(),e.preventDefault()},k=function(e){u.stopAuto(),e.preventDefault()},$=function(e){c.settings.auto&&u.stopAuto();var t=I(e.currentTarget),i=parseInt(t.attr("data-slide-index"));i!=c.active.index&&u.goToSlide(i),e.preventDefault()},E=function(i){var e=c.children.length;return"short"==c.settings.pagerType?(1=c.settings.swipeThreshold&&(c.touch.start.x>c.touch.end.x?u.goToNextSlide():u.goToPrevSlide(),u.stopAuto())}else{var n=0;i="horizontal"==c.settings.mode?(n=c.touch.end.x-c.touch.start.x,c.touch.originalPos.left):(n=c.touch.end.y-c.touch.start.y,c.touch.originalPos.top),!c.settings.infiniteLoop&&(0==c.active.index&&0=c.settings.swipeThreshold?(n<0?u.goToNextSlide():u.goToPrevSlide(),u.stopAuto()):y(i,"reset",200)}c.viewport.unbind("touchend",F)},W=function(){var e=I(window).width(),t=I(window).height();s==e&&r==t||(s=e,r=t,u.redrawSlider())};return u.goToSlide=function(e,t){if(!c.working&&c.active.index!=e)if(c.working=!0,c.oldIndex=c.active.index,c.active.index=e<0?m()-1:e>=m()?0:e,c.settings.onSlideBefore(c.children.eq(c.active.index),c.oldIndex,c.active.index),"next"==t?c.settings.onSlideNext(c.children.eq(c.active.index),c.oldIndex,c.active.index):"prev"==t&&c.settings.onSlidePrev(c.children.eq(c.active.index),c.oldIndex,c.active.index),c.active.last=c.active.index>=m()-1,c.settings.pager&&E(c.active.index),c.settings.controls&&D(),"fade"==c.settings.mode)c.settings.adaptiveHeight&&c.viewport.height()!=d()&&c.viewport.animate({height:d()},c.settings.adaptiveHeightSpeed),c.children.filter(":visible").fadeOut(c.settings.speed).css({zIndex:0}),c.children.eq(c.active.index).css("zIndex",51).fadeIn(c.settings.speed,function(){I(this).css("zIndex",50),N()});else{c.settings.adaptiveHeight&&c.viewport.height()!=d()&&c.viewport.animate({height:d()},c.settings.adaptiveHeightSpeed);var i=0,n={left:0,top:0};if(!c.settings.infiniteLoop&&c.carousel&&c.active.last)if("horizontal"==c.settings.mode){n=(r=c.children.eq(c.children.length-1)).position(),i=c.viewport.width()-r.outerWidth()}else{var s=c.children.length-c.settings.minSlides;n=c.children.eq(s).position()}else if(c.carousel&&c.active.last&&"prev"==t){var r,o=1==c.settings.moveSlides?c.settings.maxSlides-g():(m()-1)*g()-(c.children.length-c.settings.maxSlides);n=(r=u.children(".bx-clone").eq(o)).position()}else if("next"==t&&0==c.active.index)n=u.find("> .bx-clone").eq(c.settings.maxSlides).position(),c.active.last=!1;else if(0<=e){var a=e*g();n=c.children.eq(a).position()}if(void 0!==n){var l="horizontal"==c.settings.mode?-(n.left-i):-n.top;y(l,"slide",c.settings.speed)}}},u.goToNextSlide=function(){if(c.settings.infiniteLoop||!c.active.last){var e=parseInt(c.active.index)+1;u.goToSlide(e,"next")}},u.goToPrevSlide=function(){if(c.settings.infiniteLoop||0!=c.active.index){var e=parseInt(c.active.index)-1;u.goToSlide(e,"prev")}},u.startAuto=function(e){c.interval||(c.interval=setInterval(function(){"next"==c.settings.autoDirection?u.goToNextSlide():u.goToPrevSlide()},c.settings.pause),c.settings.autoControls&&1!=e&&A("stop"))},u.stopAuto=function(e){c.interval&&(clearInterval(c.interval),c.interval=null,c.settings.autoControls&&1!=e&&A("start"))},u.getCurrentSlide=function(){return c.active.index},u.getSlideCount=function(){return c.children.length},u.redrawSlider=function(){c.children.add(u.find(".bx-clone")).outerWidth(p()),c.viewport.css("height",d()),c.settings.ticker||v(),c.active.last&&(c.active.index=m()-1),c.active.index>=m()&&(c.active.last=!0),c.settings.pager&&!c.settings.pagerCustom&&(e(),E(c.active.index))},u.destroySlider=function(){c.initialized&&(c.initialized=!1,I(".bx-clone",this).remove(),c.children.each(function(){null!=I(this).data("origStyle")?I(this).attr("style",I(this).data("origStyle")):I(this).removeAttr("style")}),null!=I(this).data("origStyle")?this.attr("style",I(this).data("origStyle")):I(this).removeAttr("style"),I(this).unwrap().unwrap(),c.controls.el&&c.controls.el.remove(),c.controls.next&&c.controls.next.remove(),c.controls.prev&&c.controls.prev.remove(),c.pagerEl&&c.pagerEl.remove(),I(".bx-caption",this).remove(),c.controls.autoEl&&c.controls.autoEl.remove(),clearInterval(c.interval),c.settings.responsive&&I(window).unbind("resize",W))},u.reloadSlider=function(e){null!=e&&(t=e),u.destroySlider(),n()},n(),this}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(p){var t=/\+/g;function f(e){return e}function m(e){return decodeURIComponent(e.replace(t," "))}function g(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return v.json?JSON.parse(e):e}catch(e){}}var v=p.cookie=function(e,t,i){if(void 0!==t){if("number"==typeof(i=p.extend({},v.defaults,i)).expires){var n=i.expires,s=i.expires=new Date;s.setDate(s.getDate()+n)}return t=v.json?JSON.stringify(t):String(t),document.cookie=[v.raw?e:encodeURIComponent(e),"=",v.raw?t:encodeURIComponent(t),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var r=v.raw?f:m,o=document.cookie.split("; "),a=e?void 0:{},l=0,c=o.length;l=t.left&&e.bottom>=t.top&&e.left<=t.right&&e.top<=t.bottom}function o(e,t,n){if(!h(e,n.successClass)&&(t||n.loadInvisible||0=window.screen.width)return v=e.src,!1}),setTimeout(function(){n(t)})}}),$.browser.msie&&7==$.browser.version&&8==$.browser.version?$('.form-field input[type="text"]').each(function(){var e=$(this),t=e.attr("title");$(""+t+" ").insertBefore(e)}):$.browser.msie&&$("[placeholder]").focus(function(){var e=$(this);e.val()==e.attr("placeholder")&&(this.originalType&&(this.type=this.originalType,delete this.originalType),e.val(""),e.removeClass("placeholder"))}).blur(function(){var e=$(this);""!=e.val()&&e.val()!=e.attr("placeholder")||(e.addClass("placeholder"),e.val(e.attr("placeholder")))}).blur().parents("form").submit(function(){$(this).find("[placeholder]").each(function(){var e=$(this);e.val()==e.attr("placeholder")&&e.val("")})});var topCountrySelector=function(){$("a.result-setting,div.resultbox").live({mouseenter:function(){$("div.resultbox").show(),$("a.result-setting").addClass("res-hover")},mouseleave:function(){$("div.resultbox").hide(),$("a.result-setting").removeClass("res-hover")}})},CareerSearch={loc:null,Ulrs:null,searchType:"",init:function(e,t){CareerSearch.loc=e,CareerSearch.Ulrs=t;$("#what-search-home").autocomplete({minLength:2,delay:200,source:function(e,t){var i=$("select#careertype").val();$.ajax({type:"POST",url:"/career_guides/suggest",dataType:"json",data:{rows:10,search:e.term,careertype:i},success:function(e){e[e.length]={label:'Search For "'+$("#what-search-home").val()+'"',value:$("#what-search-home").val(),type:"all"},t($.map(e,function(e){return"course"==i||"job"==i||"all"==i?{label:e.label,value:e.value,type:void 0!==e.type&&""!=e.type?e.type:"default"}:{label:""!=e.subtitle?""+e.label+" "+e.subtitle+" ":e.label,value:e.value,category:e.category,logo:e.logo,url:e.url,title:e.label,type:void 0!==e.type&&""!=e.type?e.type:"default"}}))}})},select:function(e,t){return $("input#what-search-home").val(t.item.value),"all"==t.item.type?(CareerSearch.searchType=" - Find More",void CareerSearch.search($("#what-search-home").val(),$("#what-search-home").val())):(CareerSearch.searchType="",!1)},create:function(e){$(this).prev(".ui-helper-hidden-accessible").remove()},open:function(e,t){$(".ui-autocomplete").css("left","50%"),$(".ui-autocomplete").css({"margin-left":"-250px"}),$(".ui-autocomplete").css({"margin-top":"0px"}),$(".ui-autocomplete").css({width:"402px"})},focus:function(e,t){$("input#what-search-home").val(t.item.value),e.preventDefault()},appendTo:"#search-home-autocomplete"}).data("ui-autocomplete");$("li.autocomplete-searchall").live("click",function(){CareerSearch.searchType=" - Find More",CareerSearch.search($("#what-search-home").val(),$("#what-search-home").val())});$("#where-search-home").autocomplete({minLength:2,delay:200,source:function(e,t){$.ajax({type:"POST",url:"/career_guides/locations",dataType:"json",data:{rows:10,search:e.term,countryId:country_id,searchtype:$("#careertype").val()},success:function(e){t($.map(e,function(e){return{label:e.label,value:e.value,id:e.id}}))}})},focus:function(e,t){return!1},select:function(e,t){$("input#where-search-value").val(t.item.id)},create:function(e){$(this).prev(".ui-helper-hidden-accessible").remove()},open:function(e,t){$(".ui-autocomplete").css("left","auto"),$(".ui-autocomplete").css("right","50%"),$(".ui-autocomplete").css({"margin-right":"88px"}),$(".ui-autocomplete").css({"margin-top":"0px"}),$(".ui-autocomplete").css({"max-width":"309px"})},appendTo:"#place-search"}).data("autocompleteplace");$("body").on("click",".loadallresults",CareerSearch.loadAllResults),$(".search-here").click(function(){var e=$("#what-search-home").val(),t=$("#where-search-home").val();CareerSearch.search(e,t)}),$("#where-search-home,#what-search-home").keypress(function(e){if("13"==(e.keyCode?e.keyCode:e.which)){var t=$("#what-search-home").val(),i=$("#where-search-home").val();CareerSearch.search(t,i)}}),$("#career-search-form").submit(function(e){var t=$("#what-search-home").val(),i=$("#where-search-home").val();CareerSearch.search(t,i),e.preventDefault()})},search:function(e,t){var i=$("select#careertype").val(),n=(e=$("#what-search-home").val(),$("#where-search-home").val(),CareerSearch.Ulrs),s="",r="en"!=langCode?"/"+langCode:"";if("all"==i)s=r+"/"+CareerSearch.loc+"/search/"+getSlug(e)+"?type="+i;else if("job"==i){var o=jQuery.trim($("input#where-search-home").val());searchtxt=e.replace(/ /g,"-");s="";""==searchtxt&&""==o?s=n.jobs+"/"+CareerSearch.loc:(searchtxt=""==searchtxt?"Jobs":searchtxt,s=n.jobs+r+"/"+CareerSearch.loc+"/"+encodeURIComponent(searchtxt),""!=o&&"City or emirate"!=o&&(o=o.replace(/ /g,"-"),s=s+"-in-"+encodeURIComponent(o))),window.location.href=s}else{if("course"==i)return void CareerSearch.courseSearch();"company"==i?s=r+"/"+CareerSearch.loc+"/search/"+getSlug(e)+"?type="+i:"agency"==i&&(s=r+"/"+CareerSearch.loc+"/search/"+getSlug(e)+"?type="+i)}CareerSearch.logSearch(s)},courseSearch:function(){$(".txt-input input").focus(function(){$(this).parents(".txt-input").focus()}),$("input#where-search-value").val("");var e=CareerSearch.Ulrs;searchtxt=$("#what-search-home").val(),searchtxt=""==searchtxt?"all":searchtxt;var t=jQuery.trim($("input#where-search-value").val()),i="/search/"+encodeURIComponent(searchtxt);"en"!=langCode&&(i="/"+langCode+i),""!=searchtxt&&(""!=t?i=i+"?locs="+encodeURIComponent(t):""!=(t=jQuery.trim($("input#where-search-home").val()))&&(i=i+"?l="+encodeURIComponent(t)),window.location.href=e.courses+i,googleEventTrack("Careers","Career Search Button"+CareerSearch.searchType,searchtxt+" - "+t+" ("+window.location.pathname+")"))},logSearch:function(t){var e=jQuery.trim($("#what-search-home").val());if(""==e)return!1;$("div.activity").show(),$.ajax({type:"POST",url:"/career_guides/logsearch",data:{home_search:e},success:function(e){window.location.href=t}})},loadAllResults:function(){var e=jQuery.trim($("#what-search-home").val()),t=$("select#careertype").val(),i=CareerSearch.Ulrs,n=null;if($("button#careertype").is(":visible")||(t="all"),"course"==t?($(".search-model").addClass("box-c-search"),$(".c-search").removeClass("hidden"),$(".searchmain").removeClass("col-md-9 col-sm-9").addClass("col-md-5 col-sm-5"),$(".txt-sub").removeClass("col-md-3 col-sm-3").addClass("col-md-2 col-sm-2")):($(".search-model").removeClass("box-c-search"),$(".c-search").addClass("hidden")),"all"==t)n="/"+CareerSearch.loc+"/search/"+getSlug(e)+"?type="+t;else if("job"==t)n=i.jobs+"/"+CareerSearch.loc+"/"+getSlug(e);else{if("course"==t)return void CareerSearch.courseSearch();"company"==t?n="/"+CareerSearch.loc+"/search/"+getSlug(e)+"?type="+t:"agency"==t&&(n="/"+CareerSearch.loc+"/search/"+getSlug(e)+"?type="+t)}return CareerSearch.logSearch(n),!1}},CourseSearch={searchType:"",locationSlug:"",escapeOutput:function(e){return e.replace(//g,"")},init:function(e){if(0!=$("#what-search-nav").length){$(".txt-input input").focus(function(){$(this).parents(".txt-input").addClass("focus")}),$(".txt-input input").blur(function(){$(this).parents(".txt-input").removeClass("focus")}),CourseSearch.locationSlug=searchLocSlug,CareerSearch.Ulrs=e,CourseSearch.placeSearchInit();var n=$("#what-search-nav").autocomplete({minLength:2,delay:200,source:function(t,i){t.term=CourseSearch.escapeOutput(t.term),$("#what-search-nav").val(t.term);$("select#careertype").val();$.ajax({type:"POST",url:"/career_guides/suggest",dataType:"json",data:{rows:10,search:t.term,careertype:""},success:function(e){e[e.length]={label:'Search for "'+t.term+'"',value:t.term,type:"all"},i($.map(e,function(e){return{label:e.label,value:e.value,type:void 0!==e.type&&""!=e.type?e.type:"default"}}))}})},select:function(e,t){return $("input#what-search-nav").val(t.item.value),"all"==t.item.type?(CourseSearch.searchType=" - Find More",void CourseSearch.search()):(CourseSearch.searchType="",!1)},create:function(e){$(this).prev(".ui-helper-hidden-accessible").remove()},open:function(e,t){},focus:function(e,t){$("#what-search-nav").val(t.item.value),e.preventDefault()},appendTo:"#search-autocomplete2"}).data("ui-autocomplete");n._renderItem=function(e,t){return"all"==t.type?$("").addClass("autocomplete-searchallnav").data("item.autocomplete",t).append(""+t.label+" ").appendTo(e):$(" ").data("item.autocomplete",t).append(""+t.label+" ").appendTo(e)},n._renderMenu=function(i,e){currentCategory="",$.each(e,function(e,t){n._renderItemData(i,t)})},$("li.autocomplete-searchallnav").live("click",function(){CourseSearch.searchType=" - Find More",CourseSearch.search()}),$(".searchnav").live("click",function(){CourseSearch.search()}),$("#where-search-nav,#what-search-nav").keypress(function(e){"13"==(e.keyCode?e.keyCode:e.which)&&CourseSearch.search()})}},placeSearchInit:function(){$("#where-search-nav").autocomplete({minLength:2,delay:200,source:function(e,t){e.term=CourseSearch.escapeOutput(e.term),$.ajax({type:"POST",url:"/career_guides/locations",dataType:"json",data:{rows:10,search:e.term,countryId:country_id},success:function(e){CourseSearch.locationSlug="",t($.map(e,function(e){return{id:e.id,label:e.label,value:e.value,slug:e.slug}}))}})},focus:function(e,t){return!1},select:function(e,t){$("input#where-search-value").val(t.item.id),CourseSearch.locationSlug=t.item.slug},create:function(e){$(this).prev(".ui-helper-hidden-accessible").remove()},open:function(e,t){},appendTo:"#place-search2"}).data("autocompleteplace")},homeSearch:function(){$("input#where-search-value").val(""),searchtxt=$("#what-search-home").val(),searchtxt=CourseSearch.escapeOutput(searchtxt),searchtxt=""==searchtxt?"all":searchtxt;var e=jQuery.trim($("input#where-search-value").val());e=CourseSearch.escapeOutput(e);var t="/search/"+encodeURIComponent(searchtxt);""!=searchtxt&&(""!=e?t=t+"?locs="+encodeURIComponent(e):""!=(e=jQuery.trim($("input#where-search-home").val()))&&(t=t+"?l="+encodeURIComponent(e)),googleEventTrack("Careers","Career Home Search Button"+CourseSearch.searchType,searchtxt+" - "+e+" ("+window.location.pathname+")"),window.location.href=t)},search:function(){if("global_home"!=pages){var e="en"!=langCode?"/"+langCode+"/":"/",t=jQuery.trim($("#what-search-nav").val()),i=jQuery.trim($("input#where-search-nav").val());t=CourseSearch.escapeOutput(t),i=CourseSearch.escapeOutput(i),t=(t=t.replace("/","&")).replace(/\s+/g,"-"),i=i.replace(/\s+/g,"-");var n=""!=t?"/"+t+"-career":"";e=""!=CourseSearch.locationSlug?e+(i=CourseSearch.locationSlug)+n:""!=i?n?e+appConfig.location+n+"-in-"+i:e+appConfig.location+"/"+i:e+appConfig.location+n,googleEventTrack("Careers","Career Home Search",e),window.location.href=e}else CourseSearch.doCourseSearch()},doCourseSearch:function(){$("input#what-search-nav").val(CourseSearch.escapeOutput($("input#what-search-nav").val())),searchtxt=$("#what-search-nav").val(),searchtxt=""==searchtxt?"all":searchtxt,searchtxt=searchtxt.replace("/"," ");var e=("en"!=langCode?appConfig.urls.courses+"/"+langCode:appConfig.urls.courses)+"/search/"+encodeURIComponent(searchtxt);e+="?l=Online&fromloc=online&source=search",window.location.href=e}};function validateFeedbackForm(){var e=!0;$("label.error").remove(),""==jQuery.trim($('textarea[name="data[suggestion]"]').val())&&($(''+__("Suggestion Required")+" ").insertAfter("#feedback_suggestion"),1==e&&($("#feedback_suggestion").focus(),e=!1));var t=jQuery.trim($("#feedback_email").val());return""==t?($(''+__("Email Required")+" ").insertAfter("#feedback_email"),1==e&&($("#feedback_email").focus(),e=!1)):validateFeedbackEmail(t)||($(''+__("Valid Email Required")+" ").insertAfter("#feedback_email"),1==e&&($("#feedback_email").focus(),e=!1)),e}function validateFeedbackEmail(e){return e.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)}var tabber={init:function(i){$(i+" li a").each(function(){$($(this).attr("data-rel")).hide()}),$($(i+" li a:first").attr("data-rel")).show(),$(i+" li a:first").addClass("active"),$(i+" li").mouseover(function(){var e=$(this),t=$(this).find("a").attr("data-rel");$(i+" li a").each(function(){$($(this).attr("data-rel")).hide(),$(this).removeClass("active")}),$(t).show(),e.find("a").addClass("active")})}},customerFeedback={showForm:function(e){$("div#external-feedback").remove(),$("div.activity").show(),$.ajax({type:"GET",url:$(this).attr("href")+"?v="+Math.random(),success:function(e){$(e).insertBefore(".activity"),$("#feedback-model").addClass("in").show(),$(".modal-backdrop").addClass("in").removeClass("hide"),$("button.close").click(function(){$("#feedback-model").removeClass("in").hide(),$(".modal-backdrop").removeClass("in").addClass("hide")}),$("div.activity").hide()}}),e.preventDefault()},showFormOld:function(){$("#feedback-model").addClass("in").show(),$(".modal-backdrop").addClass("in").removeClass("hide"),$("button.close").click(function(){$("#feedback-model").removeClass("in").hide(),$(".modal-backdrop").removeClass("in").addClass("hide")})}},MobileNavigation={init:function(){$(".menu-overlay").live("click",function(e){0==$(e.target).closest("#mp-menu").length&&MobileNavigation.hide()}),$("button#trigger").click(function(e){$("body").hasClass("menu-active")?($(".f-header .new-career-search, .home .new-career-search").hide(),$("nav.header header .mobnav").appendTo(".home-spot-block .spot-header"),MobileNavigation.hide()):(MobileNavigation.show(),$(".home-search-new").length&&($(".home-spot-block .mobnav").appendTo("nav.header header"),$(".mobnav").hide())),e.stopPropagation()}),$("ul.mobile-menu a").click(function(e){$(this).hasClass("show-srch-for-mob")?$(".f-header .new-career-search, .home .new-career-search").fadeIn("fast"):$(".f-header .new-career-search, .home .new-career-search").hide(),$(this).parent("li").children(".mp-level").length&&($(this).parent("li").siblings().hide(),$(this).hide()),$(this).next("div.mp-level").show(),$(this).next("div.mp-level").find("li").show(),"/"==$(this).attr("href")&&e.preventDefault()}),$("a.li-mp-back").click(function(){var e=$(this).closest("div.tabber");e.hide(),e.siblings("a").show(),e.parent("li").siblings("li").show()})},show:function(){$("ul.mobile-menu li").find("div.mp-level").hide(),$("ul.mobile-menu li").find("a").show(),$("ul.mobile-menu li").show(),$("body").addClass("menu-active");$(window).height();$("body").append('')},hide:function(){$("body").removeClass("menu-active"),$(".menu-overlay").remove()}},dataLayerPush=function(e,t){"undefined"!=typeof dataLayer&&void 0!==e&&(null!=typeof t&&"object"==typeof t&&(t.event=e),dataLayer.push(t))},googleEventTrack=function(e,t,i,n){dataLayerPush("gaEventTracker","defined"!=typeof n?{ga_event_category:e,ga_event_action:t,ga_event_label:i,ga_event_value:n}:{ga_event_category:e,ga_event_action:t,ga_event_label:i,ga_event_value:0})};window.matchMedia||(window.matchMedia=function(c){"use strict";function o(e){var t=-1!==e.indexOf(",")&&e.split(",")||[e],i=t.length-1,n=i,s=null,r=null,o="",a=0,l=!1,c="",u="",d=null,h=0,p=null,f="",m="",g="",v="",y="",b=!1;if(""===e)return!0;do{if(l=!1,(r=(s=t[n-i]).match(C))&&(o=r[0],a=r.index),!r||-1===s.substring(0,a).indexOf("(")&&(a||!r[3]&&o!==r.input))b=!1;else{if(u=s,l="not"===r[1],a||(c=r[2],u=s.substring(o.length)),b=c===x||"all"===c||""===c,h=(d=-1!==u.indexOf(" and ")&&u.split(" and ")||[u]).length-1,b&&0<=h&&""!==u)do{if(!(p=d[h].match(_))||!w[p[3]]){b=!1;break}if(f=p[2],v=m=p[5],g=p[7],y=w[p[3]],g&&(v="px"===g?Number(m):"em"===g||"rem"===g?16*m:p[8]?(m/p[8]).toFixed(2):"dppx"===g?96*m:"dpcm"===g?.3937*m:Number(m)),!(b="min-"===f&&v?v<=y:"max-"===f&&v?y<=v:v?y===v:!!y))break}while(h--);if(b)break}}while(i--);return l?!b:b}function u(){var e=c.innerWidth||a.clientWidth,t=c.innerHeight||a.clientHeight,i=c.screen.width,n=c.screen.height,s=c.screen.colorDepth,r=c.devicePixelRatio;w.width=e,w.height=t,w["aspect-ratio"]=(e/t).toFixed(2),w["device-width"]=i,w["device-height"]=n,w["device-aspect-ratio"]=(i/n).toFixed(2),w.color=s,w["color-index"]=Math.pow(2,s),w.orientation=e<=t?"portrait":"landscape",w.resolution=r&&96*r||c.screen.deviceXDPI||96,w["device-pixel-ratio"]=r||1}function d(){clearTimeout(e),e=setTimeout(function(){var e=null,t=p-1,i=t,n=!1;if(0<=t){u();do{if((e=l[i-t])&&((n=o(e.mql.media))&&!e.mql.matches||!n&&e.mql.matches)&&(e.mql.matches=n,e.listeners))for(var s=0,r=e.listeners.length;s li").hover(function(){$(this).find(".tabber").show(),$(this).addClass("active")},function(){$(this).find(".tabber").hide(),$(this).removeClass("active")}),!1===mql.matches&&$("ul.mobile-menu > li").each(function(){$(this).hasClass("resp-login")||$(this).hasClass("resp-register")||$(this).hasClass("emp-post-job")||$(this).hasClass("emp-account")||$(this).hasClass("mp-menu-switch")||$(this).children("a").attr("href","/")}),$("a.feedback-link").live("click",customerFeedback.showForm),$("#feedback-model .close").click(function(){$("#feedback-model").removeClass("in").hide(),$(".modal-backdrop").removeClass("in").addClass("hide")}),$("div.prefer-location").live("click",citySearcher.removeCityName),$("#submit-feedback").live("click",function(){return validateFeedbackForm()&&($("div.activity").show(),$.ajax({type:"POST",url:"/feedback",data:$("form#FeedbackForm").serialize(),success:function(e){$("div.activity").hide(),"success"==e?($("div.feed-content").hide(),$("#feedback-model .modal-body .successmsg").removeClass("hidden"),$(".feedback-lightbox").css({height:"128px",marginTop:"90px"}),setTimeout("$('#external-feedback').remove()",2e3),$(".modal-backdrop").removeClass("in").addClass("hide")):"failed"==e&&$(''+__("Verification code unsuccessful")+" ").insertAfter("#HomePageCaptcha")}})),!1}),$("#cookie-consent-banner .close").click(function(){$("#cookie-consent-banner").removeClass("in").hide(),$(".modal-backdrop").removeClass("in").addClass("hide")}),$(".indeedjob, .indeed-external-link").click(function(e){if(0==isLoggedInUser)return $("a.regis.laimoon-ua").trigger("click"),void event.preventDefault()}),$("select#careertype").change(function(){var e=$("select#careertype").val();"all"==e?$("input#what-search-home").attr("placeholder",__("Jobs, courses, all things career...")):"job"==e?$("input#what-search-home").attr("placeholder",__("Job title, keyword, skill...")):"course"==e&&$("input#what-search-home").attr("placeholder",__("Course topic, qualification, etc...")),"course"==e||"job"==e?($(".search-model").addClass("box-c-search"),$(".c-search").removeClass("hidden"),$(".searchmain").removeClass("col-md-9 col-sm-9").addClass("col-md-5 col-sm-5"),$(".txt-sub").removeClass("col-md-3 col-sm-3").addClass("col-md-2 col-sm-2")):($(".search-model").removeClass("box-c-search"),$(".c-search").addClass("hidden"),$(".searchmain").removeClass("col-md-5 col-sm-5").addClass("col-md-9 col-sm-9"),$(".txt-sub").removeClass("col-md-2 col-sm-2").addClass("col-md-3 col-sm-3"))}),!0===mql.matches?$(window).scroll(function(){var e=$(this).scrollTop(),t=$("span.filter-option").text();if(200',prevText:' ',auto:!0}),$(".slider2").bxSlider({slideWidth:90,minSlides:1,adaptiveHeight:!0,maxSlides:5,moveSlides:1,nextSelector:"#slider2-next",prevSelector:"#slider2-prev",nextText:' ',prevText:' ',slideMargin:10});var e=!1;$("a.footer-loc-select").click(function(){e=!0,$(".footer-loc-list").slideToggle("fast"),$(this).toggleClass("selected")}),$(".footer-loc-list, a.footer-loc-select").live("mouseenter",function(){e=!0}).live("mouseleave",function(){e=!1}),$("html").click(function(){e||($(".footer-loc-list").hide(),$("a.footer-loc-select").removeClass("selected"))}),$("#slider2-next").next("a").remove(),$("#slider2-prev").next("a").remove(),"guide"==appConfig.page&&laimoonTracker("Career Guide View"),"search"==appConfig.page&&laimoonTracker("Career Guide Search"),CourseSearch.init(appConfig.urls),topCountrySelector(),citySearcher.init(),"undefined"==typeof pages||"careerguidepage"!=pages&&"category"!=pages&&"tophiring"!=pages||ratingManager.init(),CareerSearch.init(appConfig.location,appConfig.urls),DeferredRenderer.lazyImageLoader(),LoggedinManager.update()});var DeferredRenderer={authLoaded:!1,init:function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="//"+disqus_shortname+".disqus.com/embed.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(e),"undefined"!=typeof googleCSAAds&&0+ '+__("more")+" "):$("ul#city"+t).append($(this).clone()))}),0==$("ul#city2 li").length&&$("div.resultbox-city").addClass("col1"),$(".more-cities a").live("click",function(){var t=Math.ceil($("ul#allcity li").length/2),i=1,n=0;$("ul#city1,ul#city2").html(""),$("ul#allcity li").each(function(e){++n<=t?($("ul#city"+i).append($(this).clone()),i=n==t?2:1):t '+__("Wishlist")+''+e.wishlist+" "),t='",$(".navright").empty(),$(".navright").html(n+t)):0==mql.matches?($("#mp-menu").find("li.rmloggedin").remove(),i=''+__("My Career Preference")+' '+__("My courses")+' '+__("Settings")+' '+__("Logout")+" ",0