/*** hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+* <http://cherne.net/brian/resources/jquery.hoverIntent.html>* * @param  f  onMouseOver function || An object with configuration options* @param  g  onMouseOut function  || Nothing (use configuration options object)* @author    Brian Cherne <brian@cherne.net>*/(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);// t: current time, b: begInnIng value, c: change In value, d: durationjQuery.easing['jswing'] = jQuery.easing['swing'];jQuery.extend( jQuery.easing,{	def: 'easeOutExpo',	swing: function (x, t, b, c, d) {		//alert(jQuery.easing.default);		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);	},	easeOutExpo: function (x, t, b, c, d) {		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;	}});$(document).ready(function(){		$(".navDrop,.navDropInnerDrop").hide();	// MAIN DROPS		 function showDrop() {        var menu = $(this);        menu.children(".navDrop").slideDown("","linear");		menu.children("a").addClass("active");		$("#aboutDrop ul li:first-child .navDropInnerDrop").show();				 }             function hideDrop() {         var menu = $(this);        menu.children(".navDrop").slideUp();		menu.children("a").removeClass("active");		      }          $("#mainNav ul li").hoverIntent({       sensitivity: 1,			 interval: 50,			 over: showDrop,			 timeout: 300,			 out: hideDrop             });             	// INNER DROPS 	 	// This finds out the length of each link to aid the calculation of the length of the line extension on hover 	$.fn.textWidth = function(){  		var sensor = $('<div />').css({margin: 0, padding: 0});  		$(this).append(sensor);  		var width = sensor.width();  		sensor.remove();  		return width;	}; 	 	 function showInnerDrop() {        var menu = $(this);        menu.children('a:first-child').after('<div class="hoverline"></div>').stop();        menu.children(".navDropInnerDrop").slideDown("","linear");		menu.children("a:first").addClass("active");		if ($(this).parents("li").hasClass("aboutNav")) {			var lineWidth = 270 - $(this).children("a:first").textWidth();		} else {			var lineWidth = 270 - $(this).children("a:first").textWidth();			}			menu.children(".hoverline").css({"width": lineWidth }).animate({backgroundPosition:"0px 6px"}, 1000,"linear");		}             function hideInnerDrop() {         var menu = $(this);        menu.children(".hoverline").animate({backgroundPosition:"-900px 6px"}, 300, function(){        menu.children(".navDropInnerDrop").slideUp("","linear");		menu.children("a:first").removeClass("active");		menu.children(".hoverline").remove();		});		      }          $(".navDrop ul li").hoverIntent({       sensitivity: 1,			 interval: 50,			 over: showInnerDrop,			 timeout: 300,			 out: hideInnerDrop             });      	 	// SIDE POD DROPS 	 	jQuery.fn.slideFadeToggle = function(speed, easing, callback) {        return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);        };      function showFadeDrop() {        var menu = $(this);        menu.children(".navDrop").slideFadeToggle(400);		menu.children("a").addClass("active");				 }            function hideFadeDrop() {         var menu = $(this);        menu.children(".navDrop").slideFadeToggle(400);		menu.children("a").removeClass("active");      }            $("#sideBar .launchYourCareer").hoverIntent({       sensitivity: 1,			 interval: 50,			 over: showFadeDrop,			 timeout: 300,			 out: hideFadeDrop             });             	// SUBNAV DROPS      $("#subNav ul li").hoverIntent({       sensitivity: 1,			 interval: 50,			 over: showDrop,			 timeout: 300,			 out: hideDrop             });                 // MAP OVERLAY            $('.fadeHover').append('<span class="hover"></span>').each(function () {	  var $span = $('> span.hover', this).css('opacity', 0);	  $(this).hover(function () {	    $span.stop().fadeTo(500, 1);	  }, function () {	    $span.stop().fadeTo(500, 0);	  });	});			// SECTION: MAIN PAGE			function showLinkBG() {		$(this).animate({backgroundPosition:"0px 0"}, 1000).children("a").animate({backgroundPosition:"10px 50%"}, 1000);		$(this).children(".listHover").fadeTo(1000, 1);			}            function hideLinkBG() {       	$(this).animate({backgroundPosition:"-370px 0"}, 500).children("a").animate({backgroundPosition:"-370px 50%"}, 300);      	$(this).children(".listHover").fadeTo(500, 0);      }		$("li.slideHover").hoverIntent({      sensitivity: 1,			 interval: 10,			 over: showLinkBG,			 timeout: 300,			 out: hideLinkBG             });		// MANIPULATE THE BOTTOM LINE ON MAIN CONTENT ON VARIOUS PAGES	$(".spaceshiponeSection #mainText, .newsSection #mainText dd:last-child").css({"border-bottom":"0"});	$(".spaceshiponeSection #mainText:last-child").css({"border-bottom":"1px solid #d7d7d7"});			// HIGHLIGHT CURENT PAGE LINKSvar thisPath = window.location.pathname;$("a").each(function (i) {			if ($(this).attr("href") == thisPath 						|| (thisPath.match("about") == "about" && $(this).attr("href") == "/about/")  						|| (thisPath.match("news") == "news" && $(this).attr("href") == "/news/")						|| (thisPath.match("projects") == "projects" && $(this).attr("href") == "/projects/")						|| (thisPath.match("services") == "services" && $(this).attr("href") == "/services/")						|| (thisPath.match("careers") == "careers" && $(this).attr("href") == "/careers/")						|| (thisPath.match("contact") == "contact" && $(this).attr("href") == "/contact/")						) {				$(this).addClass("activeLink");			}		});// HOME PAGE ACRONYM //$("#acronymText").fadeTo(400, 1);var removeTemp = function() { $('#acronymText').animate({opacity: 0}, 20500, function() { $(this).remove(); }); };window.setTimeout(removeTemp, 800);// POD TITLE LINK HOVER$("#sideBar h2").hover(function () {	    	   	$('> a span', this).css('opacity', 0);	    $('> a span', this).stop().fadeTo(200, 1);	  }, function () {	    $('> a span', this).stop().fadeTo(200, 0);	  });	});var user = "resume";var host = "scaled";var suffix = ".com";