﻿function hideAllMenus() {
	try {document.getElementById('divAboutSHCD').style.display='none';} catch (e) {}
	try {document.getElementById('divChannelSalesWhatWeDo').style.display='none';} catch (e) {}
	try {document.getElementById('divConsumerLoyaltyWhatWeDo').style.display='none';} catch (e) {}

	//Determine the current page and highlight cooresponding navigational menu
	var p = window.location.pathname;
	a = p.split('/');
	c = a[a.length-1];

	//Splash page Enter Here buttons
	try {document.getElementById('btnConsumerLoyaltyEnterHere').src='App_Images/spacer.gif';} catch (e) {}
	try {document.getElementById('btnChannelSalesEnterHere').src='App_Images/spacer.gif';} catch (e) {}

	//What We Do nav element
	if (c != 'CL-CustomerSolutionDesign.aspx' && c != 'CL-DecisionSupportAnalytics.aspx' && c != 'CL-DataServices.aspx' && c != 'CL-Communications.aspx' && c != 'CL-InformationTechnology.aspx' && c != 'CL-ProgramManagementInfoStation.aspx' && c != 'CL-CustomerServiceRewardFulfillment.aspx' && c != 'CS-ProgramDesign.aspx' && c != 'CS-RewardsIncentives.aspx' && c != 'CS-ProgramManagementOperationalSupport.aspx') {
		try {document.getElementById('btnConsumerLoyaltyWhatWeDo').src='App_Images/spacer.gif';} catch (e) {}
		try {document.getElementById('btnChannelSalesWhatWeDo').src='App_Images/spacer.gif';} catch (e) {}
	}
	//Case Studies nav element
	if (c != 'CL-CaseStudies.aspx' && c != 'CS-CaseStudies.aspx') {
		try {document.getElementById('btnConsumerLoyaltyCaseStudies').src='App_Images/spacer.gif';} catch (e) {}
		try {document.getElementById('btnChannelSalesCaseStudies').src='App_Images/spacer.gif';} catch (e) {}
	}
	//About SHC Direct nav element
	if (c != 'ASHCD-WhoWeAre.aspx' && c != 'ASHCD-ClientAdvocates.aspx' && c != 'ASHCD-CompanyBios.aspx') {
		try {document.getElementById('btnCLAboutSHCDirect').src='App_Images/spacer.gif';} catch (e) {}
		try {document.getElementById('btnCSAboutSHCDirect').src='App_Images/spacer.gif';} catch (e) {}
	}


}

function rolloverConsumerLoyaltyEnterHere() {
	try {document.getElementById('btnConsumerLoyaltyEnterHere').src='App_Images/Splash/btn-enter-here-on.gif';} catch (e) {}
}

function rolloverChannelSalesEnterHere() {
	try {document.getElementById('btnChannelSalesEnterHere').src='App_Images/Splash/btn-enter-here-on.gif';} catch (e) {}
}




function showConsumerLoyaltyWhatWeDo() {
	try {document.getElementById('divConsumerLoyaltyWhatWeDo').style.display='block';} catch (e) {}
	try {document.getElementById('btnConsumerLoyaltyWhatWeDo').src='App_Images/TopNav/on-what-we-do.jpg';} catch (e) {}
}

function showConsumerLoyaltyCaseStudies() {
	try {document.getElementById('btnConsumerLoyaltyCaseStudies').src='App_Images/TopNav/on-case-studies.jpg';} catch (e) {}
}
function showChannelSalesCaseStudies() {
	try {document.getElementById('btnChannelSalesCaseStudies').src='App_Images/TopNav/on-case-studies.jpg';} catch (e) {}
}

function showChannelSalesWhatWeDo() {
	try {document.getElementById('divChannelSalesWhatWeDo').style.display='block';} catch (e) { }
	try {document.getElementById('btnChannelSalesWhatWeDo').src='App_Images/TopNav/on-what-we-do.jpg';} catch (e) {}
}


function showAboutSHCDirect () {
	try {document.getElementById('divAboutSHCD').style.display='block';} catch (e) {}
	try {document.getElementById('btnCLAboutSHCDirect').src='App_Images/TopNav/on-about-shc-direct.jpg';} catch (e) {}
	try {document.getElementById('btnCSAboutSHCDirect').src='App_Images/TopNav/on-about-shc-direct.jpg';} catch (e) {}
}


function rolloverConsumerLoyaltyWhatWeDo() {
}
function rolloverConsumerLoyaltyAboutSHCDirect() {
}
function rolloverChannelSalesWhatWeDo() {
}
function rolloverChannelSalesAboutSHCDirect() {
}


