//-- getelementbyid wrapper
function $(_id) {
    if (document.getElementById) return document.getElementById(_id);
    if (document.all)            return document.all[_id];
    return false;
}

//-- toggle element display
function toggle(_id) {
    
    obj = $(_id);
    
    if (obj.style.display == "block") {
        obj.style.display = "none";
    } else {
        obj.style.display = "block";
    }
}
    
function toggleContinent(_obj, _id) {
    toggle(_id);
    _obj.className = (_obj.className == "active") ? "" : "active";
}

addOnLoadFunction("load");

/*
var continents = Array( "africa", "asia", "europe", "north-america", "south-america", "australia" );

function handleContinent() {
	toggleContintent(this.getAttribute("continent"));
	this.blur();
}

function initLicensees() {
	for( var i = 0; i < continents.length; i++ ) {
		var name = continents[i];
		
		var link = document.getElementById(name+"Link");
		if( link ) {
			link.setAttribute("continent", name);
			link.onclick = handleContinent;
			link.setAttribute("href", "pages.php/licensees.html#" + name + "Link" );
		}
	}
}

function toggleContintent(id) {
	toggle(id);
	
	var link = document.getElementById(id+"Link");
	
	if( document.getElementById(id).style.display == "block" ) {
		link.className = "active";
	} else {
		link.className = "";
	}
}

function toggle(id) {
	var el = document.getElementById(id);
	
	if( el.style.display == "block" ) {
		el.style.display = "none";
	} else {
		el.style.display = "block";
	}
}

addOnLoadFunction("initLicensees");
*/

