/* Function SXI_menu() sets submenu onmouseover and onload */

function SXI_menu(submenu) {

	// hide start screen en show user selected div
	document.getElementById('home').style.visibility='hidden';
	document.getElementById(submenu).style.visibility='visible';
	
	// hide previous user selected screens
	if (!document.getElementsByTagName){ return; }
	var screendivs = document.getElementsByTagName('div');
	
	// loop through all div-tags
	for (var i=0; i<screendivs.length; i++){
		var screendiv = screendivs[i];
		var idAttribute = String(screendiv.getAttribute('id'));
		
		// when a DIV has no "id" rename it to dummy
		if (idAttribute=="null") {idAttribute="dummy";}
		
		if (idAttribute) {
			if ((document.getElementById(idAttribute).className=="submenu")&&(idAttribute!=submenu)) {
				document.getElementById(idAttribute).style.visibility='hidden';
			} 
		} 
	}
}

function ExternalLinks()
{
	var c = document.getElementsByTagName('a');
	var a,attr;
	var i = 0;

	while ((a = c[i++]))
	{
		if ((attr = a.getAttribute('rel')))
		{
			if (attr == 'external')
				a.target = '_blank';
		}
	}

	return true;
}