window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;console.log(Array.prototype.slice.call(arguments))}};(function(e){function h(){}for(var g="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),f;f=g.pop();){e[f]=e[f]||h}})(window.console=window.console||{});jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a
}});(function(j,o,r){var q="hashchange",l=document,n,m=j.event.special,k=l.documentMode,p="on"+q in o&&(k===r||k>7);function s(a){a=a||location.href;return"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}j.fn[q]=function(a){return a?this.bind(q,a):this.trigger(q)};j.fn[q].delay=50;m[q]=j.extend(m[q],{setup:function(){if(p){return false}j(n.start)},teardown:function(){if(p){return false}j(n.stop)}});n=(function(){var d={},e,a=s(),c=function(h){return h},b=c,f=c;d.start=function(){e||g()};d.stop=function(){e&&clearTimeout(e);e=r};function g(){var h=s(),i=f(a);if(h!==a){b(a=h,i);j(o).trigger(q)}else{if(i!==a){location.href=location.href.replace(/#.*/,"")+i}}e=setTimeout(g,j.fn[q].delay)}j.browser.msie&&!p&&(function(){var i,h;d.start=function(){if(!i){h=j.fn[q].src;h=h&&h+s();i=j('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){h||b(s());g()}).attr("src",h||"javascript:0").insertAfter("body")[0].contentWindow;l.onpropertychange=function(){try{if(event.propertyName==="title"){i.document.title=l.title}}catch(t){}}}};d.stop=c;f=function(){return s(i.location.href)};b=function(w,z){var x=i.document,y=j.fn[q].domain;if(w!==z){x.title=l.title;x.open();y&&x.write('<script>document.domain="'+y+'"<\/script>');x.close();i.location.hash=w}}})();return d})()})(jQuery,this);$(document).ready(function(){$("header nav li a,a.internalLink").live("click",function(h){c(h)});$("nav#secondary a,a.internalWWDLink").live("click",function(h){c(h,$("#wwd_container"),"right")});var f=false;$(window).hashchange(function(){if(!f){d()}f=false});function d(){var h=window.location.href.substr(window.location.href.lastIndexOf("/")+1).toString();if(location.hash!=""){h=location.hash}$("header nav").animate({opacity:"1.0"},1000);if(h.indexOf("!")!=-1){var h=window.location.href.substr(window.location.href.lastIndexOf("!")+1).toString();if(h!=window.location.pathname){$("#main_inner").css({left:"1024px"});a(h);return}}$("#main_inner").animate({left:"0px"},{duration:1000,easing:"easeOutCubic"})}d();function c(j,h,m,k){if($(".ie7").length==0){var l="#";if(k==undefined){var i;if(!j){var j=window.event}if(j.target){i=j.target}else{if(j.srcElement){i=j.srcElement}}if(i.nodeType==3){i=i.parentNode}l=$(i).attr("href");if(l==undefined){l=$(i).parents("a").eq(0).attr("href")}}else{l=k}if((h==undefined)||(h.length==0)){h=$("#main_inner")}if((l!="javascript:void()")&&(l.indexOf("http://")!==0)){j.preventDefault();if(m!="right"){h.animate({left:"-1024px"},{duration:300,easing:"easeInCubic",complete:function(){h.hide().css({left:"1024px"}).show()}})}else{h.animate({left:"1024px"},{duration:300,easing:"easeInCubic",complete:function(){}})}f=true;location="#!"+l;a(l,h);_gaq.push(["_trackPageview",l]);return false}}}function a(i,h){if(h==undefined){h=$("#main_inner")}$.ajax(i,{success:function(j){var k=setInterval(function(){if(parseInt(h.css("left"))>=1024){clearInterval(k);var l;var m;scriptStart=j.search(/AJAXrequired/i);if(scriptStart!=-1){scriptStart=j.indexOf(">",scriptStart);scriptStart++;l=j.substr(scriptStart,j.length-scriptStart);scriptEnd=l.search(/\<\/script>/i);l=l.substr(0,scriptEnd);m=$(h.selector,j).html();m+='<script data-test="true">'+l+"<\/script>"}else{m=$(h.selector,j).html()}g();h.children().detach();h.html(m);h.delay(100).animate({left:"0px"},{duration:1000,easing:"easeOutCubic",complete:function(){}});e();b();Cufon.refresh()}},30)}})}function e(j){if(j!=null){$(j).addClass("active")}else{var i=window.location.href.substr(window.location.href.lastIndexOf("/")+1).toString();var h="##";if(window.location.pathname=="/"&&(window.location.hash==""||window.location.hash=="#!/")){i="/"}else{if(window.location.hash==""){if(window.location.href.indexOf("/what-we-do/")!=-1){i="/what-we-do/";if(window.location.href.indexOf("/web/")!=-1){h="/web/"}else{if(window.location.href.indexOf("/mobile/")!=-1){h="/mobile/"}else{if(window.location.href.indexOf("/desktop-and-server/")!=-1){h="/desktop-and-server/"}else{if(window.location.href.indexOf("/cloud-and-SaaS/")!=-1){h="/cloud-and-SaaS/"}else{if(window.location.href.indexOf("/embedded/")!=-1){h="/embedded/"}else{if(window.location.href.indexOf("/communications/")!=-1){h="/communications/"}else{if(window.location.href.indexOf("/consulting/")!=-1){h="/consulting/"}else{if(window.location.href.indexOf("/technology/")!=-1){h="/technology/"}}}}}}}}}if(window.location.href.indexOf("/our-work/")!=-1){i="/our-work/"}if(window.location.href.indexOf("/contact-us/")!=-1){i="/contact-us/"}}else{if(window.location.hash.indexOf("/what-we-do/")!=-1){i="/what-we-do/";if(window.location.hash.indexOf("/web/")!=-1){h="/web/"}else{if(window.location.hash.indexOf("/mobile/")!=-1){h="/mobile/"}else{if(window.location.hash.indexOf("/desktop-and-server/")!=-1){h="/desktop-and-server/"}else{if(window.location.hash.indexOf("/cloud-and-SaaS/")!=-1){h="/cloud-and-SaaS/"}else{if(window.location.hash.indexOf("/embedded/")!=-1){h="/embedded/"}else{if(window.location.hash.indexOf("/communications/")!=-1){h="/communications/"}else{if(window.location.hash.indexOf("/consulting/")!=-1){h="/consulting/"}else{if(window.location.hash.indexOf("/technology/")!=-1){h="/technology/"}}}}}}}}}if(window.location.hash.indexOf("/our-work/")!=-1){i="/our-work/"}if(window.location.hash.indexOf("/contact-us/")!=-1){i="/contact-us/"
}}}if(i.indexOf("?")!=-1){i=i.substring(0,i.indexOf("?"))}if(i.indexOf("!")!=-1){var i=window.location.href.substr(window.location.href.lastIndexOf("!")+1).toString()}$("header li a.active").removeClass("active");$("nav#secondary a.active").removeClass("active");$('a[href="'+i+'"]').addClass("active");$('a[href$="'+h+'"]').addClass("active")}}function g(){}function b(){if($("#techContainer").length>0){var k=setInterval(function(){if(!$("#wwd_container").is(":animated")){clearInterval(k);$("div#ESZ").fadeIn(500);$("div.path.level1").fadeIn(1000);$("div.tech.level1").delay(1000).fadeIn(1000);$("div.level2").delay(2000).fadeIn(2000);$("div.level3").delay(3000).fadeIn(2000);$("div.level4").delay(4000).fadeIn(2000)}},100)}if($("#logo_container").length>0){$("div.ow_logos").css("opacity","0");var i=0;var j;function h(){if($("#logo_container").length>0){i==0?hideBlock=1:hideBlock=0;hideBlock=i==1?0:1;$("div.ow_logos.pos0").eq(hideBlock).delay(0).animate({opacity:"0"},500);$("div.ow_logos.pos0").eq(i).delay(400).animate({opacity:"1.0"},1000);$("div.ow_logos.pos1").eq(hideBlock).delay(200).animate({opacity:"0"},500);$("div.ow_logos.pos5").eq(hideBlock).delay(200).animate({opacity:"0"},500);$("div.ow_logos.pos1").eq(i).delay(600).animate({opacity:"1.0"},1000);$("div.ow_logos.pos5").eq(i).delay(600).animate({opacity:"1.0"},1000);$("div.ow_logos.pos2").eq(hideBlock).delay(400).animate({opacity:"0"},500);$("div.ow_logos.pos6").eq(hideBlock).delay(400).animate({opacity:"0"},500);$("div.ow_logos.pos10").eq(hideBlock).delay(400).animate({opacity:"0"},500);$("div.ow_logos.pos2").eq(i).delay(800).animate({opacity:"1.0"},1000);$("div.ow_logos.pos6").eq(i).delay(800).animate({opacity:"1.0"},1000);$("div.ow_logos.pos10").eq(i).delay(800).animate({opacity:"1.0"},1000);$("div.ow_logos.pos3").eq(hideBlock).delay(600).animate({opacity:"0"},500);$("div.ow_logos.pos7").eq(hideBlock).delay(600).animate({opacity:"0"},500);$("div.ow_logos.pos11").eq(hideBlock).delay(600).animate({opacity:"0"},500);$("div.ow_logos.pos3").eq(i).delay(1000).animate({opacity:"1.0"},1000);$("div.ow_logos.pos7").eq(i).delay(1000).animate({opacity:"1.0"},1000);$("div.ow_logos.pos11").eq(i).delay(1000).animate({opacity:"1.0"},1000);$("div.ow_logos.pos4").eq(hideBlock).delay(800).animate({opacity:"0"},500);$("div.ow_logos.pos8").eq(hideBlock).delay(800).animate({opacity:"0"},500);$("div.ow_logos.pos12").eq(hideBlock).delay(800).animate({opacity:"0"},500);$("div.ow_logos.pos4").eq(i).delay(1200).animate({opacity:"1.0"},1000);$("div.ow_logos.pos8").eq(i).delay(1200).animate({opacity:"1.0"},1000);$("div.ow_logos.pos12").eq(i).delay(1200).animate({opacity:"1.0"},1000);$("div.ow_logos.pos9").eq(hideBlock).delay(1000).animate({opacity:"0"},500);$("div.ow_logos.pos13").eq(hideBlock).delay(1000).animate({opacity:"0"},500);$("div.ow_logos.pos9").eq(i).delay(1400).animate({opacity:"1.0"},1000);$("div.ow_logos.pos13").eq(i).delay(1400).animate({opacity:"1.0"},1000);$("div.ow_logos.pos14").eq(hideBlock).delay(1200).animate({opacity:"0"},500);$("div.ow_logos.pos14").eq(i).delay(1600).animate({opacity:"1.0"},1000,function(){i=hideBlock;j=setTimeout(h,5000)})}}h()}if($(".emailMagic").length>0){$(".emailMagic").each(function(){var l=$(this).text();$(this).attr("href","mailto:"+l+"@eszconsulting.com");$(this).text(l+"@eszconsulting.com")})}}e();b()});
