$(document).ready(function(){
	if (!Array.prototype.indexOf)
	{
	  Array.prototype.indexOf = function(elt /*, from*/)
	  {
	    var len = this.length;
	    var from = Number(arguments[1]) || 0;
	    from = (from < 0)
	         ? Math.ceil(from)
	         : Math.floor(from);
	    if (from < 0)
	      from += len;

	    for (; from < len; from++)
	    {
	      if (from in this &&
	          this[from] === elt)
	        return from;
	    }
	    return -1;
	  };
	}
	
	
	var external_domains = new Array();
	external_domains = [
		"http://www.alertcommunications.com",
		"http://www.virtualreceptionistservices.com",
		"http://www.spanish-answering-services.com",
		"http://www.attorneyansweringservices.com",
		"http://www.call-center-order-taking.com",
		"http://www.answeringprofessionals.com",
		"californiaansweringservices.com"
		];

	// For the hostname we're on, remove that element from the array
	external_domains.splice(external_domains.indexOf("http://" + window.location.hostname), 1);
	
	for(x=0;x<external_domains.length;x++)
	{
		// console.debug(external_domains[x]);
		
		$('a[href^=' + external_domains[x] + ']').each(function(){
			$(this).click(function(e){
				_gaq.push(['_link', this.href]); return false;

			});
		});	
	}
});
