/*
 * STP Common Javascript
 *
 * May 10, 2010
 *
 */

// init the local namespace. All functions should be part of this namespace
var $stp = window.$stp || {};  



$(document).ready(function() {
    $clxcommon.initExternal();
    $clxcommon.initWarning();
    $clxcommon.attachClickAnalytics('clorox-promo');
    $clxcommon.attachClickAnalytics('clorox-video');
    $clxcommon.attachClickAnalytics('clorox-download');
    	
 	//PROMO ID LINKS
 	
 	//HOME
    $clxcommon.createLink('#homePromoThatGuy', 'http://thatguy.stp.com/');
    $clxcommon.createLink('#homePromoProducts', '/products/');
    $clxcommon.createLink('#homePromoCouponPrint', '/coupon/stp_coupon_preprint');
	$clxcommon.createLink('#homePromoCouponSignUp', '/user/register/');
   	$clxcommon.createLink('#homePromoGear', 'https://storefront.promodepot.com/stp/'); 	


 	//PRODUCTS
    $clxcommon.createLink('#productGT', '/products/fuel-additives/gas-treatment/');
    $clxcommon.createLink('#productSCGT', '/products/fuel-additives/super-concentrated-gas-treatment/');
	$clxcommon.createLink('#productFICT', '/products/fuel-additives/fuel-injector-and-carburetor-treatment/');
   	$clxcommon.createLink('#productSCFIC', '/products/fuel-additives/super-concentrated-fuel-injector-cleaner/');
    $clxcommon.createLink('#productCFSC', '/products/fuel-additives/complete-fuel-system-cleaner/');
    $clxcommon.createLink('#productOB', '/products/fuel-additives/octane-booster/');
    $clxcommon.createLink('#productASWR', '/products/fuel-additives/all-season-water-remover/');
    $clxcommon.createLink('#productDFIT', '/products/fuel-additives/diesel-fuel-injector-treatment/');
    $clxcommon.createLink('#productWMF', '/products/fuel-additives/winter-maintenance-formula/');
    $clxcommon.createLink('#productBF', '/products/functional-fluids/brake-fluid/');
    $clxcommon.createLink('#productPSFSL', '/products/functional-fluids/power-steering-fluid-and-stop-leak/');
	$clxcommon.createLink('#productPSF', '/products/functional-fluids/power-steering-fluid/');
	$clxcommon.createLink('#productOT', '/products/oil-additives/oil-treatment/');
	$clxcommon.createLink('#productESL', '/products/oil-additives/engine-stop-leak/');
	$clxcommon.createLink('#productST', '/products/oil-additives/smoke-treatment/');
	$clxcommon.createLink('#productGunTireCare', '/products/appearance-products/son-of-a-gun-one-step-tire-care/');
	$clxcommon.createLink('#productGunProtectant', '/products/appearance-products/son-of-a-gun-protectant/');
	$clxcommon.createLink('#productCapstone', 'http://www.stptools.com/');
	$clxcommon.createLink('#productMarathon', 'http://www.marathonpetroleum.com/Stations_and_Stores/Gasoline_with_STP_Additives/');
	$clxcommon.createLink('#groupOil', '/products/oil-additives/');
	$clxcommon.createLink('#groupFunctional', '/products/functional-fluids/');
	$clxcommon.createLink('#groupAppearance', '/products/appearance-products/');




	//RIGHT COL PROMOS
	$clxcommon.createLink('#promoSidePettyPictures', '/stp-and-racing/gallery/');
	$clxcommon.createLink('#promoSidePettyInterviews', '/stp-and-racing/interviews/');
	$clxcommon.createLink('#promoSidePettyArticles', '/stp-and-racing/articles/');
	$clxcommon.createLink('#promoGear', 'https://storefront.promodepot.com/stp/');
	$clxcommon.createLink('#promoThatGuy', 'http://thatguy.stp.com/');
	$clxcommon.createLink('#promoCoupon', '/user/register/');
	$clxcommon.createLink('#promoFuelAdditives', '/products/fuel-additives/');
	$clxcommon.createLink('#promoOilAdditives', '/products/oil-additives/');
	$clxcommon.createLink('#promoFunctionalFluids', '/products/functional-fluids/');
	$clxcommon.createLink('#promoAppearanceProducts', '/products/appearance-products/');
	

	//RICHARD PETTY PAGES
	$clxcommon.createLink('#promoBottomInterviews', '/stp-and-racing/interviews/');
	$clxcommon.createLink('#promoBottomGallery', '/stp-and-racing/gallery/');
	$clxcommon.createLink('#bannerSTPman', '/stp-and-racing/articles/');
	$clxcommon.createLink('#bannerSTPchanged', 'http://sports.espn.go.com/rpm/nascar/cup/columns/story?columnist=mcgee_ryan&id=5204216');

	
	
});