// Google analytics Event Tracking for Homepage Javascript calls. RT June 10,2010

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-11162425-1']);
_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);
})();


jQuery(document).ready(function(){
//Home Page Rotator Tabs
	jQuery('#homerotator-tab-banner1').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Rotator', 'Tab 1']);
	});
	jQuery('#homerotator-tab-banner2').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Rotator', 'Tab 2']);
	});	
	jQuery('#homerotator-tab-banner3').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Rotator', 'Tab 3']);
	});	
	jQuery('#homerotator-tab-banner4').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Rotator', 'Tab 4']);
	});		
	jQuery('#homerotator-tab-banner5').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Rotator', 'Tab 5']);
	});			
//Home Page Rotator Main Items
	jQuery('#banner1').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Rotator', 'Main 1']);
	});
	jQuery('#banner2').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Rotator', 'Main 2']);
	});	
	jQuery('#banner3').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Rotator', 'Main 3']);
	});	
	jQuery('#banner4').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Rotator', 'Main 4']);
	});		
	jQuery('#banner5').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Rotator', 'Main 5']);
	});			
	
//News
	jQuery('#home-news .prev').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'News Rotator', 'Previous']);
	});
	jQuery('#home-news .next').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'News Rotator', 'Next']);
	});	
	jQuery('#home-news .see-all').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'News Rotator', 'See All']);
	});		

//Bottom Buttons
	jQuery('#home-link1').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Bottom Buttons', 'Button 1']);
	});
	jQuery('#home-link2').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Bottom Buttons', 'Button 2']);
	});
	jQuery('#home-link3').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Bottom Buttons', 'Button 3']);
	});
	jQuery('#home-link4').click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Bottom Buttons', 'Button 4']);
	});	
	
//Footer Follow Us
	jQuery('#footer-follow-us ul li a').eq(0).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'Follow Us - Twitter']);
	});
	jQuery('#footer-follow-us ul li a').eq(1).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'Follow Us - LinkedIn']);
	});
	jQuery('#footer-follow-us ul li a').eq(2).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'Follow Us - Facebook']);
	});
	jQuery('#footer-follow-us ul li a').eq(3).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'Follow Us - YouTube']);
	});
	jQuery('#footer-follow-us ul li a').eq(4).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'Follow Us - RSS']);
	});	
//Footer Who We Are
	jQuery('#footer-who-we-are ul li a').eq(0).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'Who We Are - Our Approach']);
	});
	jQuery('#footer-who-we-are ul li a').eq(1).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'Who We Are - Management']);
	});
	jQuery('#footer-who-we-are ul li a').eq(2).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'Who We Are - Research Experts']);
	});
	jQuery('#footer-who-we-are ul li a').eq(3).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'Who We Are - Board of Directors']);
	});
//Footer Who We Are
	jQuery('#footer-what-we-do ul li a').eq(0).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'What We Do - Technology']);
	});
	jQuery('#footer-what-we-do ul li a').eq(1).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'What We Do - Research']);
	});
	jQuery('#footer-what-we-do ul li a').eq(2).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'What We Do - Global Panels']);
	});	
//Footer Vision Critical
	jQuery('#footer-vision-critical ul li a').eq(0).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'Vision Critical - Our Work']);
	});
	jQuery('#footer-vision-critical ul li a').eq(1).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'Vision Critical - Case Studies']);
	});
	jQuery('#footer-vision-critical ul li a').eq(2).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'Vision Critical - Partners']);
	});
	jQuery('#footer-vision-critical ul li a').eq(3).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'Vision Critical - News Room']);
	});
	jQuery('#footer-vision-critical ul li a').eq(4).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'Vision Critical - Resource Library']);
	});	
//Footer More
	jQuery('#footer-more ul li a').eq(0).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'More - Careers']);
	});
	jQuery('#footer-more ul li a').eq(1).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'More - Contact Us']);
	});
	jQuery('#footer-more ul li a').eq(2).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'More - RSS Feeds']);
	});
	jQuery('#footer-more ul li a').eq(3).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'More - Privacy Policy']);
	});
	jQuery('#footer-more ul li a').eq(4).click(function(){
		_gaq.push(['_trackEvent', 'Home Page', 'Footer', 'More - Terms of Use']);
	});	
	


});

