function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}

function tabAuction() {
	var auctionLink = document.getElementById("auction_btn");
		auctionLink.onclick = function(){
			var s_omnitureAccount = "swhstarwoodver2";
			setOmniVars ("UTF-8", "AdConsultancy", "tpLuxuryMicrositePromo", "tpLC", "tp_en_US", "noID", "", "SuperVintage", "Auction", "Idx", "", "");
			var s_code=s.t();if(s_code)document.write(s_code)
			if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
		}
}
function tabVenue() {
	var venueLink = document.getElementById("venue_btn");
		venueLink.onclick = function(){
			var s_omnitureAccount = "swhstarwoodver2";
			setOmniVars ("UTF-8", "AdConsultancy", "tpLuxuryMicrositePromo", "tpLC", "tp_en_US", "noID", "", "SuperVintage", "Venue", "Idx", "", "");
			var s_code=s.t();if(s_code)document.write(s_code)
			if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')	
		}
}
function tabActivities() {
	var activitiesLink = document.getElementById("activities_btn");
		activitiesLink.onclick = function(){
			var s_omnitureAccount = "swhstarwoodver2";
			setOmniVars ("UTF-8", "AdConsultancy", "tpLuxuryMicrositePromo", "tpLC", "tp_en_US", "noID", "", "SuperVintage", "Packages", "Idx", "", "");
			var s_code=s.t();if(s_code)document.write(s_code)
			if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')	
		}
}
function tabReservations() {
	var reservationsLink = document.getElementById("reservations_btn");
		reservationsLink.onclick = function(){
			var s_omnitureAccount = "swhstarwoodver2";
			setOmniVars ("UTF-8", "AdConsultancy", "tpLuxuryMicrositePromo", "tpLC", "tp_en_US", "noID", "", "SuperVintage", "Reservations", "Idx", "", "");
			var s_code=s.t();if(s_code)document.write(s_code)
			if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
		}
}
addLoadEvent(tabAuction);
addLoadEvent(tabVenue);
addLoadEvent(tabActivities);
addLoadEvent(tabReservations);
