var idioma;

 if (window.location.search.indexOf('DE') == 4 || (window.location.search == "" && window.location.href == "http://www.archimedes-ballon.de/") || (window.location.search == "" && window.location.href == "http://archimedes.marssociety.de/") || (window.location.search == "" && window.location.href == "http://www.archimedes-ballon.de/nobs.html"))
 {
	idioma = "deutsch";
	var lang = "DE";
 }
 else if (window.location.search.indexOf('EN') == 4 || (window.location.search == "" && window.location.href == "http://www.archimedes-balloon.com/"))
 {
	idioma = "english";
	var lang = "EN";
 }
 else if (window.location.search.indexOf('FR') == 4)
 {
	idioma = "francais";
	var lang = "FR";
 }
 else {
	 idioma = "deutsch";
	 lang = "DE"; }

var itemDE = new Array;
var itemEN = new Array;
var itemFR = new Array;

itemDE["project"] = "Projekt";
itemEN["project"] = "Project";
itemFR["project"] = "Projet";

itemDE["nobsHome"] = '<a style="color:white; font-weight:bold; font-size:11px;" href="nobsText.php5?lg=DE&fl=intro.xml" target="archiText">Home</a>';
itemEN["nobsHome"] = '<a style="color:white; font-weight:bold; font-size:11px;" href="nobsText.php5?lg=EN&fl=intro.xml" target="archiText">Home</a>';

itemDE["langSelect"] = "<a href='http://www.archimedes-ballon.de/index.php?id=EN'><img src='Nav/gb.gif' border='0' align='middle' alt='Englisch'/></a> &nbsp;&nbsp;&nbsp; English";
itemEN["langSelect"] = "<a href='http://www.archimedes-ballon.de/index.php?id=DE'><img src='Nav/de.gif' border='0' align='middle' alt='Deutsch'/></a> &nbsp;&nbsp;&nbsp; Deutsch";

itemDE["nobsSelect"] = "<a href='http://www.archimedes-ballon.de/nobs.html?id=EN'><img src='Nav/gb.gif' border='0' align='middle' alt='Englisch'/></a> &nbsp;&nbsp;&nbsp; English";
itemEN["nobsSelect"] = "<a href='http://www.archimedes-ballon.de/nobs.html?id=DE'><img src='Nav/de.gif' border='0' align='middle' alt='Deutsch'/></a> &nbsp;&nbsp;&nbsp; Deutsch";

itemDE["video"] = "<img src='images/videoDE.PNG' width='162px' height='76px' vspace='20px' />";
itemEN["video"] = "<img src='images/videoEN.PNG' width='158px' height='87px' vspace='20px' />";

itemDE["iframe"] = '<iframe name="archiText" frameborder="0" width="100%" height="2700px" marginwidth="20px" src="nobsText.php5?lg=DE&fl=intro.xml"><p>Ihr Browser kann keine eingebetteten Frames anzeigen.</p></iframe>'
itemEN["iframe"] = '<iframe name="archiText" frameborder="0" width="100%" height="2700px" marginwidth="20px" src="nobsText.php5?lg=EN&fl=intro.xml"><p>Your browser does not display embedded Frames.</p></iframe>'

function translate(element)
{
   switch (lang) {
	 case 'DE': 
	 document.write(itemDE[element]);
	 break;
	 
	 case 'EN':
	 document.write(itemEN[element]);
	 break;
	 
	 case 'FR':
	 document.write(itemFR[element]);
	 break;
   }
}
   
function startMenu () {
	
	if (document.all&&document.getElementById) {
	cssmenu = document.getElementById('level1');
	for (i=0; i<cssmenu.childNodes.length; i++) {
	node = cssmenu.childNodes[i];
	if (node.nodeName=='LI') {
	node.onmouseover=function() {
	this.className+=' over';
	}
	node.onmouseout=function(){                  
	this.className=this.className.replace(' over', '')
	}
	}
	}
	}
	}
	
	if (window.attachEvent)
	window.attachEvent('onload', startMenu)
	else
	window.onload=startMenu;
