// This tracks links to Apply Yourself automatically using jquery

$(document).ready(function(){
$("a[href*='fuqua-mms']").click(function(){
	_gaq.push(['_setCustomVar',
      1,                   // This custom var is set to slot #1
      'Application Type',     // The name acts as a kind of category for the user activity
      'MMS',               // This value of the custom variable
      1                    // Sets the scope to session-level
   	]);
 	_gaq.push(['_trackEvent',
      'Application Started', // category of activity
      'MMS', // Action
   	]);
});
$("a[title='Weekend Online Application']").click(function(){
	_gaq.push(['_setCustomVar',
      1,                   // This custom var is set to slot #1
      'Application Type',     // The name acts as a kind of category for the user activity
      'Weekend',               // This value of the custom variable
      1                   // Sets the scope to session-level
   	]);
 	_gaq.push(['_trackEvent',
      'Application Started', // category of activity
      'Weekend', // Action
   	]);
});
$("a[title='Global Online Application']").click(function(){
	_gaq.push(['_setCustomVar',
      1,                   // This custom var is set to slot #1
      'Application Type',     // The name acts as a kind of category for the user activity
      'Global',               // This value of the custom variable
      1                    // Sets the scope to session-level
   	]);
 	_gaq.push(['_trackEvent',
      'Application Started', // category of activity
      'Global', // Action
   	]);
});
$("a[title='Cross Continent Online Application']").click(function(){
	_gaq.push(['_setCustomVar',
      1,                   // This custom var is set to slot #1
      'Application Type',     // The name acts as a kind of category for the user activity
      'CrossContinent',               // This value of the custom variable
      2                    // Sets the scope to session-level
   	]);
 	_gaq.push(['_trackEvent',
      'Application Started', // category of activity
      'CrossContinent', // Action
   	]);
});
$("a[href*='fuqua-mba']").click(function(){
	_gaq.push(['_setCustomVar',
      1,                   // This custom var is set to slot #1
      'Application Type',     // The name acts as a kind of category for the user activity
      'Daytime',               // This value of the custom variable
      2                    // Sets the scope to session-level
   	]);
 	_gaq.push(['_trackEvent',
      'Application Started', // category of activity
      'Daytime', // Action
   	]);
});
$("a[href*='EE_AMP']").click(function(){
	_gaq.push(['_setCustomVar',
      1,                   // This custom var is set to slot #1
      'Application Type',     // The name acts as a kind of category for the user activity
      'Advanced Management',               // This value of the custom variable
      2                    // Sets the scope to session-level
   	]);
 	_gaq.push(['_trackEvent',
      'Register Link', // category of activity
      'Advanced Management', // Action
   	]);
});
$("a[href*='EE_DLP']").click(function(){
	_gaq.push(['_setCustomVar',
      1,                   // This custom var is set to slot #1
      'Application Type',     // The name acts as a kind of category for the user activity
      'Duke Leadership',               // This value of the custom variable
      2                    // Sets the scope to session-level
   	]);
 	_gaq.push(['_trackEvent',
      'Register Link', // category of activity
      'Duke Leadership', // Action
   	]);
});
$("a[href*='EE_DM']").click(function(){
	_gaq.push(['_setCustomVar',
      1,                   // This custom var is set to slot #1
      'Application Type',     // The name acts as a kind of category for the user activity
      'Dynamic Management',               // This value of the custom variable
      2                    // Sets the scope to session-level
   	]);
 	_gaq.push(['_trackEvent',
      'Register Link', // category of activity
      'Dynamic Management', // Action
   	]);
});
$("a[href*='EE_DubaiDLP']").click(function(){
	_gaq.push(['_setCustomVar',
      1,                   // This custom var is set to slot #1
      'Application Type',     // The name acts as a kind of category for the user activity
      'Dubai DLP',               // This value of the custom variable
      2                    // Sets the scope to session-level
   	]);
 	_gaq.push(['_trackEvent',
      'Register Link', // category of activity
      'Dubai DLP', // Action
   	]);
});
});
