// JavaScript Document
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-6179137-1']);
  _gaq.push(['_setDomainName', '.cfcincorporated.com']);
  _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);
  })();


// Google Analytics Event Tracking with help from rebeccamurphey.com - http://bit.ly/9d4kK8
// get every link on the page and when clicked perform this function
jQuery('a'.click(function() {	
        var $a = jQuery(this);                    // variable a is each link we're working with
        var lu = $a.attr('href');                 // grab the href of the link
        var lc = $a.attr('class');                // grab the class of the link
        var lt = $a.attr('title');                // grab the title of the link
        var cat = 'Link';                         // set this to whatever you want
        var act = 'Click';                        // set this to whatever you want
        var lab = lu + ' - ' + lt + ' - ' + lc;        // set this to whatever you want
        _gaq.push(['_trackEvent', cat , act , lab]);   // this the final onClick event
						  }));



// Google Analytics Event Tracking with help from rebeccamurphey.com - http://bit.ly/9d4kK8
// get every submit button on the page and when clicked perform this function
jQuery('input[type="submit"]').click(function() {
	        var $i = jQuery(this);                 // variable i is each input we're working with
		var ilc = $i.parent().attr('class');            // grab the input's class
		var ilt = $i.attr('value');            // grab the input's value
		var ipu = window.location.pathname;    // grab the page's title
		var cat = 'Input';                     // set this to your event category name
		var act = 'Submit';                          // set this to your event action name
		var lab = ipu + ' - ' + ilc + ' - ' + ilt;   // this is the full string sent to GA
		_gaq.push(['_trackEvent', cat , act , lab]); // this the final onClick event
});

