// jQuery smoothScroll
jQuery(function() {
	jQuery("#toHeader a[href^=#]").click(function() {
		var scrollTarget = this.hash;
		var $target = jQuery(scrollTarget == "#header" ? "body" : scrollTarget);
		if($target.size()) {
			jQuery.scrollTo($target, 800, { easing:"easeOutCubic" });
		}
		return false;
	});
});

// jQuery lightBox
jQuery(function() { jQuery("a.lightBox").lightBox(); });
jQuery(function() { jQuery("#blog a[href$=.jpg], #blog a[href$=.gif], #blog a[href$=.png]").lightBox(); });

// jQuery lightPop
jQuery(function() { jQuery('a.lightPop').lightpop(); });

// jQuery listTable
jQuery(function() { jQuery("table.list tr:even").addClass("even"); });

// jQuery current
jQuery(function() {
	jQuery("#globalNav a").each(function() {
		var docPath = document.URL.split("#");
		if(this == docPath[0]) {
			jQuery(this).addClass("current");
		}
	});
	jQuery(".companyNav a").each(function() {
		var docPath = document.URL.split("#");
		if(this == docPath[0]) {
			jQuery(this).addClass("current");
		}
	});
	jQuery(".workflowNav a").each(function() {
		var docPath = document.URL.split("#");
		if(this == docPath[0]) {
			jQuery(this).addClass("current");
		}
	});
	jQuery(".serviceNav a").each(function() {
		var docPath = document.URL.split("#");
		if(this == docPath[0]) {
			jQuery(this).addClass("current");
		}
	});
	jQuery(".resultsNav a").each(function() {
		var docPath = document.URL.split("#");
		if(this == docPath[0]) {
			jQuery(this).addClass("current");
		}
	});
	jQuery(".entryNav a").each(function() {
		var docPath = document.URL.split("#");
		if(this == docPath[0]) {
			jQuery(this).addClass("current");
		}
	});
	jQuery(".authorNav a").each(function() {
		var docPath = document.URL.split("#");
		if(this == docPath[0]) {
			jQuery(this).addClass("current");
		}
	});
	jQuery(".wordsNav a").each(function() {
		var docPath = document.URL.split("#");
		if(this == docPath[0]) {
			jQuery(this).addClass("current");
		}
	});
});

