var links = document.getElementById('tourSectBotLinks').getElementsByTagName('a');
var cssLinkUrl = location.href;
var navLinkUrl;
function tourCssLinkURLTrim(url) {
	if(url.indexOf('http://') > -1) {
		url = url.replace('http://', '');
		url = url.substr(url.indexOf('/'));
	}
	return url;
}
for(var i=0; i<links.length; i++) {
	cssLinkUrl = tourCssLinkURLTrim(cssLinkUrl);
	navLinkUrl = tourCssLinkURLTrim(links[i].href);
	if(cssLinkUrl == navLinkUrl) {
		if(links[i].href.indexOf('fantasy.pgatour.com') > -1) break; //exit for loop because fantasy is on another server
		if(links[i].className.indexOf('tourSecBotLinksItemActive') == -1)
			links[i].className += ' tourSecBotLinksItemActive';
	} else if(cssLinkUrl.indexOf('/video/') > -1 && navLinkUrl.indexOf('/video/') > -1) {
		if(links[i].className.indexOf('tourSecBotLinksItemActive') == -1)
			links[i].className += ' tourSecBotLinksItemActive';
	}
}