//Start of code to show or hide divs

var theDOM, styleSuffix, shownKeyword, hiddenKeyword, dhtml, plainSuffix;

if (document.layers) {
    theDOM = "document";
    shownKeyword = "show";
    hiddenKeyword ="hide";
    dhtml = true;
    plainSuffix = "";
}
else
{
    theDOM = "document.getElementById(\'";
    shownKeyword = "block";
    hiddenKeyword = "none";
    dhtml = true;
    plainSuffix = "\')";
}

if(document.all && !document.getElementById) 
{
    document.getElementById = function(id) 
    {
         return document.all[id];
    }
} 
 
function showLink(theObject,theCountry,x1,y1,x2,y2)
{
    if(dhtml)
    {
	var theLinkReference = eval(theDOM+ theObject + 'Link' + plainSuffix);
	var theCountryReference = eval(theDOM+ theObject + 'Country' + plainSuffix);
	var theSpotReference1 = eval(theDOM+ 'placeSpot1' + plainSuffix);
	var theSpotReference2 = eval(theDOM+ 'placeSpot2' + plainSuffix);
	if (document.layers)
	{		
		theLinkReference.style.backgroundColor = '#fa0';
		theCountryReference.style.visibility = shownKeyword;
		theCountryReference.firstChild.nodeValue=theCountry;
		theSpotReference1.style.visibility = shownKeyword;
		theSpotReference1.style.left = x1+'px';
		theSpotReference1.style.top = y1+'px';
		if (x2!=0)
		{
			theSpotReference2.style.visibility = shownKeyword;
			theSpotReference2.style.left = x2+'px';
			theSpotReference2.style.top = y2+'px';
		}
	}
	else
	{ 
		theLinkReference.style.backgroundColor = '#fa0';
		theCountryReference.style.display = shownKeyword;
		theCountryReference.firstChild.nodeValue=theCountry;
		theSpotReference1.style.display = shownKeyword;
		theSpotReference1.style.left = x1+'px';
		theSpotReference1.style.top = y1+'px';
		if (x2!=0)
		{
			theSpotReference2.style.display = shownKeyword;
			theSpotReference2.style.left = x2+'px';
			theSpotReference2.style.top = y2+'px';
		}
	}
    }
}

function hideLink(theObject)
{
    if(dhtml)
    {
	var theLinkReference = eval(theDOM+ theObject + 'Link' + plainSuffix);
	var theCountryReference = eval(theDOM+ theObject + 'Country' + plainSuffix);
	var theSpotReference1 = eval(theDOM+ 'placeSpot1' + plainSuffix);
	var theSpotReference2 = eval(theDOM+ 'placeSpot2' + plainSuffix);
	if (document.layers)
	{		
		thLinkReference.style.backgroundColor = 'transparent';
		theCountryReference.style.visibility = hiddenKeyword;
		theSpotReference1.style.visibility = hiddenKeyword;
		theSpotReference2.style.visibility = hiddenKeyword;
	}
	else
	{
		theLinkReference.style.backgroundColor = 'transparent';
		theCountryReference.style.display = hiddenKeyword;
		theSpotReference1.style.display = hiddenKeyword;
		theSpotReference2.style.display = hiddenKeyword;
	}
    }
}