
var anContentType;
var anContentSubSection;
var anSiteSection;
var anContentSection;
var anContentSubSection="";
var anContentSubSubSection="";
var anCountrySupported="";
var anLang="";
var anSport="";
var anLeague="";
var anAffId="";
var anStoryId="";
var anSiteSectionL2;
var anPageNameL4;
var anHier1;

function setDefaultProps(siteSection) {
	switch(siteSection)
	{
	case "espn360":
		anContentType="video";
		if(typeof(aff) != "undefined" && aff != ""){
			anContentSubSection=aff.toLowerCase();
		}
		if(typeof(pName) != "undefined" && pName != "")var anLeafPageName=pName.toLowerCase();
	default:
		anContentType="";
	}

	anSiteSection=siteSection;
	anContentSection=siteSection;
	anSiteSectionL2 =anContentSection;
	anPageNameL4 = anContentSection;
	anHier1 = anContentSection;
	if(anContentSubSection){
		anSiteSectionL2 =anSiteSectionL2 + ":" + anContentSubSection;
		anPageNameL4 = anPageNameL4 + ":" + anContentSubSection;
		anHier1 = anHier1 + ":" + anContentSubSection;
	}
	if (anContentSubSubSection){
		anSiteSectionL2 = anSiteSectionL2 + ":" + anContentSubSubSection
		anPageNameL4 = anPageNameL4 + ":" + anContentSubSubSection
		anHier1 = anHier1 + ":" + anContentSubSubSection
	}
	if (anLeafPageName) {
		anPageNameL4 = anPageNameL4 + ":" + anLeafPageName
		if (anStoryId) {
			anPageNameL4 = anPageNameL4 + ":" + anStoryId
			anHier1 = anHier1 + ":" + anLeafPageName
		}
	}
}
function trackPageView(siteSection) {
	setDefaultProps(siteSection);
	s_omni.pageName = anPageNameL4;
	s_omni.server = window.location.host;
	s_omni.channel = anContentSection;
	s_omni.prop1 = anSiteSection;
	s_omni.prop4 = anContentType;
	s_omni.prop5 = anSiteSectionL2;
	s_omni.prop16 = anCountrySupported;
	s_omni.prop17 = anLang;
	s_omni.prop25 = anSport;
	s_omni.prop26 = anLeague;
	if(typeof(omniRegStatus) != "undefined" && omniRegStatus != "") s_omni.prop29=omniRegStatus;
	s_omni.hier1 = anHier1;
	s_omni.eVar9 = anLang;
	s_omni.eVar12 = anCountrySupported;
	s_omni.eVar13 = anPageNameL4;
	s_omni.eVar19 = anSport;
	s_omni.eVar21 = anLeague;
	var s_code=s_omni.t();if(s_code)document.write(s_code)
}