/*
	Changes the mini-map style in the Worldly Boston blog depending on the categories for the entry.
	If there are multiple categories, the style will be set based on the first one (MT sorts alphabetically).
*/
function changeMapStyle( blogID, blogCategory )
{
	if(blogCategory != "")
	{
		if(blogCategory.indexOf(";") > 0)
		{	
			var firstCategory = blogCategory.replace("Boston;", "");
			firstCategory += ";";
			firstCategory = firstCategory.substring(0, firstCategory.indexOf(";"));
		}
		else
		{
			var firstCategory = blogCategory;
		}
	var catStyle = firstCategory.charAt(0).toLowerCase() + firstCategory.substring(1, firstCategory.length);
	catStyle = catStyle.replace("Boston", "");
	catStyle = catStyle.replace(" and Oceana", "");

	var subCat = catStyle.toLowerCase();
	switch(subCat)
	{
		case "east asia":
		case "south asia":
			catStyle = "asia";
			break;
		case "central america":
		case "mexico":
		case "south america":
			catStyle = "latinAmerica";
			break;
		case "arab world":
		case "iraq":
		case "israel":
			catStyle = "middleEast";
			break;
		default: break;
	}
	catStyle = catStyle.replace(" ", "");

	document.getElementById(blogID).className = "map " + catStyle;
	}
}