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/today-s-technology-in-action.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("/consumer/learn/articles/10-cool-things.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/before-you-buy.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/choosing-a-mobile-device.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/computer-maintenance.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/computer-shopping-qanda.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/edit-movie.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/entertainment.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/index.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/internet-safety-for-kids.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/raw-development.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/security.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/share-movie.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/things-to-think-about.htm","ssc:learn"));
metricsArray.push(new urlValuePair("/consumer/learn/articles/wireless.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/learn/index.htm","ssc:nav"));
//============================================================================

setContentCat();
