	var countryCode = ''; 
	
	//Set Focus on country
	function setCountryVariable(countryID)
	{
		//var idM = document.getElementById('site');
		//alert('worldmapflash' + idM + ' value: ' + countryID);
		countryCode = countryID;
		if (countryID != '00')
			document.site.SetVariable("jsCountry", countryID);
	}

	// event handler
	function addEvent(obj, type, fn) {
	    if (obj.addEventListener)
	        obj.addEventListener( type, fn, false );
	    else if (obj.attachEvent) {
	        obj["e"+type+fn] = fn;
	        obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
	        obj.attachEvent( "on"+type, obj[type+fn] );
	    }
	}
	
	// write text to element
	function showAddresses(addresses) {
	    var container = document.getElementById('worldmap_txtbox');
	    //alert("Adresses:"+addresses);
	    //container.innerHTML =  "IDs sent to JavaScript: " + addresses;
	    var mapjs = map[addresses];
	    container.innerHTML = map[addresses];
	    //if (countryCode != addresses)
	    //{
	    	//alert("countryCode:" + countryCode + ' addresses:' + addresses );
	    	document.getElementById("wmDropDown").selectedValue=addresses;
	    	//document.getElementById("wmDropDown").value = countryCode;
	    	countryCode = addresses;
	    	setDropDown("wmDropDown", addresses);
	    //}
	}
	
	function setDropDown(dropDownName, dropDownValue)
	{
		// Get a reference to the drop-down
		var myDropdownList = document.getElementById("wmDropDown");
		// Loop through all the items
		for (iLoop = 0; iLoop< myDropdownList.options.length; iLoop++)
		{    
			if (myDropdownList.options[iLoop].value == dropDownValue)
			{
				//alert("found: " + myDropdownList.options[iLoop].value);
				// Item is found. Set its selected property, and exit the loop
				myDropdownList.options[iLoop].selected = true;
				break;
			}
		}
	
	}
	
	// init event on body load
	// addEvent(window, 'load', showAddresses);
	
	// ]]>
