var T; // holds the timeout;
var activeCountry = ''; // holds id of visible Country

//=====================================================
// set classname of object O to toggle
// mainly for IE's pseudohover
//=====================================================

function toggleClass( O, toggle ) {
	O.className = toggle;
}

//=====================================================
// opens url (to avoid duplicate links for newsitems)
// url ... url
//=====================================================

function openUrl( url ) {
	window.location.href = url;
	return false;
}

//=====================================================
// show country-information
// country ...  selector for ids
//=====================================================

function showMore ( country ) {
//	document.getElementById('body').style.backgroundColor = 'red';
	if ( activeCountry != '' ) {
		hideMore ( activeCountry );
	}
	if ( document.getElementById( country ) ) {
		document.getElementById( country ).style.display = 'block';
	}
	activeCountry = country;
}

//=====================================================
// hide country-information
// country ...  selector for ids
//=====================================================

function hideMore ( country ) {
	if ( document.getElementById( country ) ) {
		activeCountry = '';
		document.getElementById( country ).style.display = 'none';
	}
}
