$( document ).ready(
	function()
	{
		var omniSuiteID = "thayogden";

		$("form[name='omni_contact_form']").submit(
			function(event){
				var s=s_gi(omniSuiteID);
				s.linkTrackVars='prop1,eVar2,events';
				s.events='event9';
				s.prop1='Contact Us Submission';
				s.eVar2='Contact Us Submission';
				s.tl(this,'o','Contact Us Submission');
			}
		);
		
	
		$('#rpm-form').submit(
			function(event)
			{
				var s=s_gi(omniSuiteID);
				s.linkTrackVars='prop1,eVar1,events';
				s.events='event3';
				s.prop1='Meetings RFP Submitted';
				s.eVar1='Meetings RFP Submitted';
				s.tl(this,'o','Meetings RFP Submitted');
			}
		);

		$("div.gallery_category a.omni_image img").click(
			function(event)
			{
				var name = $(this).attr('alt');
				var s=s_gi(omniSuiteID);
			    s.linkTrackVars='prop1,eVar2,events';
			    s.events='event7';
			    s.prop1='Photo Gallery Image' + ': ' + name;
			    s.eVar2='Photo Gallery Image' + ': ' + name;
			    s.tl(this,'o','Photo Gallery Image');
			}
		);

		

		$("div.gallery_category a.omni_video img").click(
			function(event)
			{
				var name = $(this).attr('alt');
				var s=s_gi(omniSuiteID);
			    s.linkTrackVars='prop1,eVar2,events';
			    s.events='event7';
			    s.prop1= 'Photo Gallery Video' + ': ' + name;
			    s.eVar2= 'Photo Gallery Video' + ': ' + name;
			    s.tl(this,'o','Photo Gallery Video');
			}
		);
		
		$("div.promo-items a.promo-item").click(
			function(event)
			{
				var s=s_gi(omniSuiteID);
				s.linkTrackVars='prop1,eVar2,events';
				s.events='event10';
				s.prop1='Partner Banners - ' + $( this ).attr( 'rel' );
				s.eVar2='Partner Banners - ' + $( this ).attr( 'rel' );
				if( $(this).attr('target') == "_blank" )
				{
					window.open( $(this).attr('href') );
				}
				else
				{
					window.open( $(this).attr('href'), '_self' );
				}
				s.tl(this,'o','Partner Banners - ' +  $( this ).attr( 'rel' ));
				return false;
			}
		);
		
		$("a[name='omni_stay_website']").click(
			function(event)
			{
				var s=s_gi(omniSuiteID);
				s.linkTrackVars='prop1,eVar1,events';
				s.events='event1';
				s.prop1='#Places to Stay# -' + $( this ).attr( 'href' ) + $( this ).attr( 'rel' ); 
				s.eVar1='#Places to Stay# -' + $( this ).attr( 'href' ) + $( this ).attr( 'rel' );
				if( $(this).attr('target') == "_blank" )
				{
					window.open( $(this).attr('href') );
				}
				else
				{
					window.open( $(this).attr('href'), '_self' );
				}
				s.tl(this,'o','#Places to Stay# -' + $( this ).attr( 'href' ));
				return false;
			}
		);
			


		$("a[name='omni_meeting_website']").click(
			function(event)
			{
				var s=s_gi(omniSuiteID);
				s.linkTrackVars='prop1,eVar1,events';
				s.events='event1';
				s.prop1='#Meetings & Conventions# - ' + $( this ).attr( 'href' ) + $( this ).attr( 'rel' );
				s.eVar1='#Meetings & Conventions# - ' + $( this ).attr( 'href' ) + $( this ).attr( 'rel' );
				if( $(this).attr('target') == "_blank" )
				{
					window.open( $(this).attr('href') );
				}
				else
				{
					window.open( $(this).attr('href'), '_self' );
				}
				s.tl(this,'o','#Meetings & Conventions# - ' +  $( this ).attr( 'rel' ));
				return false;
			}
		);

		$("a.download").click(
			function(event)
			{
				var s=s_gi(omniSuiteID);
			    s.linkTrackVars='prop1,eVar2,events';
			    s.events='event9';
			    s.prop1='Visitor Brochure Download';
			    s.eVar2='Visitor Brochure Download';
			    s.tl(this,'o','Visitor Brochure Download');
			}
		);
	}

);

