$( document ).ready(
	function()
	{
		var omniSuiteID = "thayshenatwar";

		$("form[name='ccoptin'] .button").click(
			function(event)
			{
				var s=s_gi(omniSuiteID);
				s.linkTrackVars='prop1,eVar1,events';
				s.events='event2';
				s.prop1='Email Sign Up';
				s.eVar2='Email Sign Up';
				s.tl(this,'o','Email Sign Up');
			}
		);
		$( "a.facebook").click(
			function()
			{
				var s=s_gi(omniSuiteID);
		        s.linkTrackVars='prop1,eVar1,events';
		        s.events='event13';
		        s.prop1='Facebook';
		        s.eVar1='Facebook';
		        s.tl(this,'o','Facebook');
			}
		);
		$( "a.twitter").click(
			function()
			{
				var s=s_gi(omniSuiteID);
		        s.linkTrackVars='prop1,eVar1,events';
		        s.events='event13';
		        s.prop1='Twitter - Footer';
		        s.eVar1='Twitter - Footer';
		        s.tl(this,'o','Twitter - Footer');
			}
		);
		$("a[name='omni_donate']").click(
			function()
			{
				var s=s_gi(omniSuiteID);
		        s.linkTrackVars='prop1,eVar2,events';
		        s.events='event10';
		        s.prop1='Donate Button';
		        s.eVar1='Donate Button';
		        s.tl(this,'o','Donate Button');
			}
		);
		$("a.save_a_battlefield").click(
			function()
			{
				var s=s_gi(omniSuiteID);
		        s.linkTrackVars='prop1,eVar2,events';
		        s.events='event10';
		        s.prop1='Learn More- Save A Battlefield';
		        s.eVar1='Learn More- Save A Battlefield';
		        s.tl(this,'o','Learn More- Save A Battlefield');
			}
		);
		$(".zone-block-objectrelation a[href*='/content/download']").click(
			function()
			{
				var s=s_gi(omniSuiteID);
		        s.linkTrackVars='prop1,eVar2,events';
		        s.events='event8';
		        s.prop1='Battlefield Map - Download';
		        s.eVar1='Battlefield Map - Download';
		        s.tl(this,'o','Battlefield Map - Download');
			}
		);
		$("a.to_place_to_eat, a.to_place_to_see, a.to_historic_lodging").click(
			function()
			{
				var s=s_gi(omniSuiteID);
		        s.linkTrackVars='prop1,eVar1,events';
		        s.events='event1';
		        s.prop1='Website Link - ' + $('title').html();
		        s.eVar1='Website Link - ' + $('title').html();
		        s.tl(this,'o','Website Link - ' + $('title').html());
			}
		);
		$(".current-node-id-2 .class-nxc_calendar_event h2 a").click(
			function()
			{
				var s=s_gi(omniSuiteID);
		        s.linkTrackVars='prop1,eVar1,events';
		        s.events='event17';
		        s.prop1='Featured Events - Links';
		        s.eVar1='Featured Events - Links';
		        s.tl(this,'o','Featured Events - Links');
			}
		);
		$("#calendar .fc-event a").click(
			function()
			{
				var s=s_gi(omniSuiteID);
		        s.linkTrackVars='prop1,eVar1,events';
		        s.events='event8';
		        s.prop1='Event Detail Clicks';
		        s.eVar1='Event Detail Clicks';
		        s.tl(this,'o','Event Detail Clicks');
			}
		);
		$("#ongoing_events_list a").click(
			function()
			{
				var s=s_gi(omniSuiteID);
		        s.linkTrackVars='prop1,eVar1,events';
		        s.events='event8';
		        s.prop1='Ongoing Event Full Detail Click';
		        s.eVar1='Ongoing Event Full Detail Click';
		        s.tl(this,'o','Ongoing Event Full Detail Click');
			}
		);
		$('a[href*="/content/tipafriend"]').click(
			function()
			{
				tipme = ($(this).attr('name') !='') ? $(this).attr('name') : $('title').html();
				var s=s_gi(omniSuiteID);
		        s.linkTrackVars='prop1,eVar1,events';
		        s.events='event13';
		        s.prop1='Tip a Friend - ' + tipme;
		        s.eVar1='Tip a Friend - ' + tipme;
		        s.tl(this,'o','Tip a Friend - ' + tipme);
			}
		);
		if ($('input[name="directions-submit"]').length) {
			$('input[name="directions-submit"]').parents('form').bind('submit',
				function()
				{
					tipme = $('title').html();
					var s=s_gi(omniSuiteID);
			        s.linkTrackVars='prop1,eVar1,events';
			        s.events='event16';
			        s.prop1='Get Directions - ' + tipme;
			        s.eVar1='Get Directions - ' + tipme;
			        s.tl(this,'o','Get Directions - ' + tipme);
				}
			);
		}

	}

);

