function changeEmbed(location, swfurl, tagapiurl, relatedtagsurl, showphotos, mapviewtype) {
	if (!document.getElementById) 
		return;
	embedObj = document.getElementById('tagmapembed');

	mapheight		= 600;
	mapwidth		= 750;
	startingaddress	= "";
	startinglat		= "";
	startinglon		= "";
	zoomlevel		= 5;

	minfontsize		= 14;
	maxfontsize		= 40;
	numphotos 		= 20;
	searchtype 		= "relevance";

	if (location == 'Berlin') {
		startingaddress = "";
		startinglon = "13.389";
		startinglat = "52.52";
		zoomlevel = 5;
	}
	else if (location == 'Boston') {
		startingaddress = "";
		startinglon = "-71.07690";
		startinglat = "42.357212";
		zoomlevel = 5;
	}
	else if (location == 'California') {
		startingaddress = "";
		startinglon = -119.421387;
		startinglat = 35.933541;
		zoomlevel = 11;
	}
	else if (location == 'DC') {
		startingaddress = "";
		startinglat = "38.892302";
		startinglon = "-77.035146";
		zoomlevel = 3;
	}
	else if (location == 'Disneyland') {
		startingaddress = "";
		startinglat = "33.81053";
		startinglon = "-117.920167";
		zoomlevel = 2;
	}
	else if (location == 'Egypt') {
		startingaddress = "";
		startinglon = "33.535254";
		startinglat = "29.033198";
		zoomlevel = 12;
	}
	else if (location == 'India') {
		startingaddress = "";
		startinglon = "80";
		startinglat = "23";
		zoomlevel = 13;
	}
	else if (location == 'LasVegas') {
		startingaddress = "";
		startinglat = "36.119306";
		startinglon = "-115.171824";
		zoomlevel = 4;
	}
	else if (location == 'London') {
		startingaddress = "";
		startinglat = "51.52";
		startinglon = "-0.1";
	}
	else if (location == 'Maui') {
		startingaddress = "";
		startinglon = "-156.613477";
		startinglat = "20.797201";
		zoomlevel = 9;
	}
	else if (location == 'NYC') {
		startingaddress = "";
		startinglat = "40.71463";
		startinglon = "-74.005806";
	}
	else if (location == 'Paris') {
		startingaddress = "";
		startinglat = "48.860001";
		startinglon = "2.323";
	}
	else if (location == 'Rome') {
		startingaddress = "";
		startinglon = "12.485962";
		startinglat = "41.898444";
		zoomlevel = 4;
	}
	else if (location == 'Switzerland') {
		startingaddress = "";
		startinglon = 6.962249;
		startinglat = 46.191761;
		zoomlevel = 10;
	}
	else if (location == 'Sydney') {
		startingaddress = "";
		startinglat = "-33.860999";
		startinglon = "151.210007";
		zoomlevel = 4;
	}
	else if (location == 'Tokyo') {
		startingaddress = "";
		startinglon = 139.735192;
		startinglat = 35.662875;
		zoomlevel = 6;
	}
	else {

	}

	embedurl = swfurl + 
		"tagapiurl=" + tagapiurl
		+	
		"&relatedtagsurl=" + relatedtagsurl
		+
		"&mapheight=600"
		+
		"&mapwidth=750"
		+
		"&startingaddress=" + startingaddress
		+
		"&startinglat=" + startinglat
		+
		"&startinglon=" + startinglon
		+
		"&zoomlevel=" + zoomlevel
		+
		"&showphotos=" + showphotos
		+
		"&mapviewtype=" + mapviewtype
		+
		"&minfontsize=14&maxfontsize=40&numphotos=20&searchtype=relevance&showprompt=1&bcookie=8g83k0p2n0uqk&b=3&s=11";

	chgText = '<object id="tagmapobject" width="100%" height="100%">'
						+ '<param name="movie" value="' + embedurl + '">'
						+ '<embed src=' + embedurl + ' width="100%" height="100%"></embed>'
						+ '</object>';

	embedText ="<embed src=" + embedurl + " width='100%' height='100%'> </embed>";

	// IE only wants the embed code and not all the stuff with object, etc.
	embedObj.innerHTML = embedText;
}

