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/Products/appup.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/products/spring.htm","ssc:intro"));

metricsArray.push(new urlValuePair("/consumer/Shop/core_i7.htm","shop:browse"));

metricsArray.push(new urlValuePair("/consumer/Inside/index.htm","ssc:nav"));
metricsArray.push(new urlValuePair("/consumer/Inside/Story-Detail/akosik-001.htm","ssc:benefit"));
metricsArray.push(new urlValuePair("/consumer/Inside/Story-Detail/asoulain-001.htm","ssc:benefit"));
metricsArray.push(new urlValuePair("/consumer/Inside/Story-Detail/cschneider-001.htm","ssc:benefit"));
metricsArray.push(new urlValuePair("/consumer/Inside/Story-Detail/ibait-001.htm","ssc:benefit"));
metricsArray.push(new urlValuePair("/consumer/Inside/Story-Detail/jrosenberg-001.htm","ssc:benefit"));
metricsArray.push(new urlValuePair("/consumer/Inside/Story-Detail/jstolich-001.htm","ssc:benefit"));
metricsArray.push(new urlValuePair("/consumer/Inside/Story-Detail/lbarry-001.htm","ssc:benefit"));
metricsArray.push(new urlValuePair("/consumer/Inside/Story-Detail/mcarter-001.htm","ssc:benefit"));
metricsArray.push(new urlValuePair("/consumer/Inside/Story-Detail/mkaufmann-001.htm","ssc:benefit"));
metricsArray.push(new urlValuePair("/consumer/Inside/Story-Detail/mowens-001.htm","ssc:benefit"));
metricsArray.push(new urlValuePair("/consumer/Inside/Story-Detail/sbevza-001.htm","ssc:benefit"));
metricsArray.push(new urlValuePair("/consumer/Inside/Story-Detail/sdraves-001.htm","ssc:benefit"));

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/compare-processors.htm","tools:brand_interactive_apps"));
metricsArray.push(new urlValuePair("/consumer/products/processors/comparison-chart.htm","tools:spec"));
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("/consumer/products/processors/specifications.htm","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: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("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("/consumer/products/technology/intelinsider.htm","ssc:overview"));
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"));
//============================================================================

setContentCat();
