var p_contentcat = "";
var metricsArray = [];

function urlValuePair(_url,_val){
	this.url = _url.toLowerCase();
	this.val = _val.toLowerCase();
}

function setContentCat(){
	var loc = location.href.toLowerCase();
	if(loc.charAt(loc.length-1)=="/"){
		loc += "index.htm";
	}
	for (var i=0; i < metricsArray.length; i++){
		var thisUrlValuePair = metricsArray[i];
		if(loc.indexOf(thisUrlValuePair.url)>=0){
			p_contentcat = thisUrlValuePair.val;
			//alert(p_contentcat);
			break;
		}
	}
}

//============================================================================
// Add URLs and Values here:
//============================================================================
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/home-users/intel-visibly-smart-technology-for-the-home.html","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/holiday.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/Inside/index.htm","ssc:nav"));

metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/gamers/the-2nd-gen-intel-core-i7-extreme-for-serious-gaming.html","ssc:nav"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/gaming/gaming-computers/intel-extreme-memory-profile-xmp.html","ssc:overview"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/gaming/overclocking/overclocking-intel-processors.html","ssc:overview"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/gaming/gaming-computers/gaming-systems.html","ssc:overview"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/gaming/gaming-computers/gaming-systems.html","ssc:overview"));
metricsArray.push(new urlValuePair("/consumer/Game/Teams/events.htm","ssc:overview"));

metricsArray.push(new urlValuePair("/consumer/game/casual.htm","ssc:overview"));
metricsArray.push(new urlValuePair("/consumer/game/extreme.htm","ssc:overview"));
metricsArray.push(new urlValuePair("/consumer/game/mainstream.htm","ssc:overview"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/processors/core/core-i5-processor.html","ssc:overview"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/processors/core/core-i5-processor.html","ssc:nav"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/home-users/netbooks.html","ssc:benefit"));
metricsArray.push(new urlValuePair("/consumer/products/tablet.htm","ssc:benefit"));
metricsArray.push(new urlValuePair("/consumer/products/ultrabook.htm","ssc:benefit"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/processors/atom/atom-processor.html","ssc:nav"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/processor-comparison/compare-intel-processors.html","ssc:nav"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/processors/celeron/celeron-processor.html","ssc:detail"));
metricsArray.push(new urlValuePair("/consumer/products/processors/comparison.htm","tools:guides"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/processors/core/core-i7-processor.html","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/products/processors/corei3.htm","ssc:detail"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/processors/core/core-i5-processor.html","ssc:detail"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/processors/core/core-i7ee-processor.html","ssc:detail"));
metricsArray.push(new urlValuePair("/http://www.intel.com/content/www/us/en/processors/core/core-i7-processor.html","ssc:detail"));
metricsArray.push(new urlValuePair("http://www.intel.com/consumer/products/processors/comparison.htm","ssc:nav"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/processors/pentium/pentium-processor.html","ssc:detail"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/home-users/intel-visibly-smart-technology-for-the-home.html","ssc:nav"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/processor-comparison/intel-processor-ratings.html","ssc:nav"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/home-users/intel-visibly-smart-technology-for-the-home.html","ssc:overview"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/smart-tv/smart-tv-with-intel-inside.html","ssc:intro"));
metricsArray.push(new urlValuePair("/consumer/products/spring.htm","ssc:intro"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/solid-state-drives/intel-solid-state-drives-for-high-performance.html","ssc:overview"));
metricsArray.push(new urlValuePair("/consumer/products/style/index.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/products/style/nettop.htm","ssc:overview"));
metricsArray.push(new urlValuePair("/consumer/products/technology/graphics.htm","ssc:overview"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/home-users/intel-visibly-smart-technology-for-the-home.html","ssc:nav"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/wireless-products/4g-wimax-wireless-broadband-internet.html","ssc:overview"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/architecture-and-technology/intel-wireless-display.html","ssc:overview"));

metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/sponsors-of-tomorrow/sponsors-of-tomorrow.html","ssc:nav"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/sponsors-of-tomorrow/will-i-am-innovator-video.html","ssc:nav"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/sponsors-of-tomorrow/operation-rico-star-video.html","ssc:nav"));
metricsArray.push(new urlValuePair("http://www.intel.com/content/www/us/en/sponsors-of-tomorrow/today-s-technology-in-action.html","ssc:nav"));

metricsArray.push(new urlValuePair("/consumer/learn/articles/before-you-buy.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/before-you-buy/computer-maintenance.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/before-you-buy/evaluate.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/before-you-buy/evaluate/choose-a-computer-monitor.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/before-you-buy/evaluate/determine-if-a-netbook-is-right-for-you.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/before-you-buy/evaluate/understanding-your-operating-system-options.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/before-you-buy/old-computer-disposal.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/computer-maintenance.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/computer-maintenance/10-cool-things-to-do-with-a-laptop.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/computer-maintenance/choosing-good-passwords.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/computer-maintenance/extend-laptop-battery-life.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/computer-maintenance/pick-the-right-virus-protection-program.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/computer-maintenance/setup-a-new-computer.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/desktop-or-laptop.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/entertainment.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/entertainment/music.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/entertainment/music/move-music-to-your-computer.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/entertainment/music/record-audio-on-your-computer.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/entertainment/music/sync-multiple-ipods-to-the-same-computer.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/entertainment/video.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/entertainment/video/connect-your-computer-to-your-tv.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/entertainment/video/install-a-digital-media-adapter.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/index.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/pc-vs-mac.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/wireless.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/wireless/choosing-a-mobile-device.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/wireless/everything-there-is-to-know-about-wireless.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/wireless/install-awireless-webcam.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/wireless/network-your-computers.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/wireless/use-bluetooth-on-your-laptop.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/game/index.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/game/refuse.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/hd/fit.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/hd/goodness.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/hd/hardware.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/hd/index.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/hd/integrate.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/hd/notice.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/index.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/internet/consumption.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/internet/diamond.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/internet/index.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/internet/out.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/internet/outman.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/internet/pressure.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/profession/index.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/profession/right.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/application/profession/video.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/index.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/processor/core-family/index.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/processor/i3/index.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/processor/i5/index.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/processor/i7/index.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/buying-guides/processor/index.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/index.htm","ssc:nav"));
//============================================================================

setContentCat();
