/*
 * Greenworks Common
 *
 * This file loads the various Clorox Common Javascript functions
 * 
 */
 
$(document).ready(function() {

	// make links with rel='external' open a new window
	$clxcommon.initExternal();

	// Add the "You're leaving a Clorox Site" warning to any DOM elements that have
	// a class of 'warning' or 'warningLink' 
	$clxcommon.initWarning();

	
	//$clxcommon.createLink('#homeBtmRight', 'http://www.facebook.com/#!/GreenWorksCanada');

	// attach a click handler to the brita users guide. We act on mousedown, not 'click'
	//$('#britaUsersGuide').mousedown(function() {
	//	$clxcommon.trackAnalyticsPageView('download','brita-users-guide');
	//});

	// attach google analytics click tracking to any div with a class of 'promo'. This will
	// track each page as /promo/id  (where id is the ID of the element clicked) 
	//$clxcommon.attachClickAnalytics('promo');
	
	$clxcommon.attachClickAnalytics('clorox-promo');

});
