/*

>>>> DO NOT EDIT THIS SCRIPT <<<<

Name: Google Analytics Keyword Sleuth 2.0.2 - ga.js Version
Author: Michael Harrison
Created: 01/18/2008
Description: If a visitor arrives from a search engine, grab their exact search query and store it in the user defined variable.

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-7296612-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
~~~~~~
Last modified by Michael Harrison on 02/13/2008 
*/

function getRef()
{
	ref = document.referrer;
	re = /(\?|&)(q|p|query)=([^&]*)/;
	searchq = re.exec(ref);
	if(searchq) {
		sleuthTracker._setVar(searchq[3]);
	}
}

function sleuth()
{
	if(document.location.search.indexOf("gclid")!=-1||document.location.search.indexOf("cpc")!=-1) {
		getRef();
	}
}

var sleuthTracker = _gat._getTracker("UA-1");
sleuthTracker._initData();
sleuth();
