window.log = function(){  log.history = log.history || [];    log.history.push(arguments);  arguments.callee = arguments.callee.caller;    if(this.console) console.log( Array.prototype.slice.call(arguments) );};(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{});/*highlight v3Highlights arbitrary terms.<http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html>MIT license.Johann Burkard<http://johannburkard.de><mailto:jb@eaio.com>*//* Modified by Chad Mefferd 11-19-10 - 'highlight' class name modified to 'match' since class name already in use in site css */jQuery.fn.highlight = function(pat) { function innerHighlight(node, pat) {  var skip = 0;  if (node.nodeType == 3) {   var pos = node.data.toUpperCase().indexOf(pat);   if (pos >= 0) {    var spannode = document.createElement('span');    spannode.className = 'match';    var middlebit = node.splitText(pos);    var endbit = middlebit.splitText(pat.length);    var middleclone = middlebit.cloneNode(true);    spannode.appendChild(middleclone);    middlebit.parentNode.replaceChild(spannode, middlebit);    skip = 1;   }  }  else if (node.nodeType == 1 && node.childNodes && !/(script|style)/i.test(node.tagName)) {   for (var i = 0; i < node.childNodes.length; ++i) {    i += innerHighlight(node.childNodes[i], pat);   }  }  return skip; } return this.each(function() {  innerHighlight(this, pat.toUpperCase()); });};jQuery.fn.removeHighlight = function() { return this.find("span.match").each(function() {  this.parentNode.firstChild.nodeName;  with (this.parentNode) {   replaceChild(this.firstChild, this);   normalize();  } }).end();};/*******	***	Anchor Slider by Cedric Dugas   ***	*** Http://www.position-absolute.com ***		Never have an anchor jumping your content, slide it.	Don't forget to put an id to your anchor !	You can use and modify this script for any project you want, but please leave this comment as credit.	*****/		$(document).ready(function() {	$("a.anchorLink").anchorAnimate()});jQuery.fn.anchorAnimate = function(settings) { 	settings = jQuery.extend({		speed : 1100	}, settings);			return this.each(function(){		var caller = this		$(caller).click(function (event) {				event.preventDefault()			var locationHref = window.location.href			var elementClick = $(caller).attr("href")						var destination = $(elementClick).offset().top;			$("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, settings.speed, function() {				window.location.hash = elementClick			});		  	return false;		})	})}
