//ARC Graphics 11.2002 rev 7.2005
var Mac=(navigator.userAgent.indexOf("Mac")!=-1)?true:false;	var Saf=(navigator.userAgent.toLowerCase().indexOf("applewebkit/")!=-1)?true:false;
// get HTTP POST string 'Query' and make the associative array 'Post' of the variables passed, ~ php's $_POST array
var Query = location.search.substring(1,location.search.length).split("&");	// substring to chop off '?'
var Post = new Array();
for (var i=0; i<Query.length; ++i) Post[ Query[i].split("=")[0] ] = Query[i].split("=")[1];	// Post['key']=value
// define user language, either thru browser id or with HTTP POST // ARC Graphics 11.2002 rev 3.2005
var Lang=(navigator.language)?navigator.language.substring(0,2):(navigator.browserLanguage)?navigator.browserLanguage.substring(0,2):(navigator.userLanguage)?navigator.userLanguage.substring(0,2):"en";
if (typeof Post['Lang']!="undefined") Lang = Post['Lang'];	//alert ( "Language : "+Lang );
// function to send Post array as HTTP POST string with optional argument(s) new ['key']='value' element
function SendPost ( KeyValue ) {	// SendPost(['key=value'[,'key2=value'],...]]]) ; e.g. SendPost('Lang=fr');
	for (var i=0; i<arguments.length; ++i) Post[arguments[i].split("=")[0]] = arguments[i].split("=")[1];
	var Query = "?";
	for (var i in Post) Query += (i=="")?"":i+"="+Post[i]+"&";	// simulate .join('&') method that doesn't work with assositive arrays for creating POST string
	if (location.search == "") top.location.href = self.location+Query.substring(0,Query.length-1);	// chop off last & in Query
	else top.location.href = self.location.href.split("?")[0] + Query.substring(0,Query.length-1);
}
// write multilanguage history.back() hyperlink, StyleClass can be either a .class or style string
function goBack(StyleClass) {	// goBack(['class']|['selector:property;[selector2:property2;][...;]'])
	if (typeof StyleClass=="undefined") { StyleClass = "";	// no argument
	} else if (StyleClass.indexOf(";")==-1) { // no semicolon
		StyleClass=" CLASS=\""+StyleClass+"\"";
	} else { StyleClass=" STYLE=\""+StyleClass+"\""; }
	var TxtE="previous page";var TxtD="vorherige Seite";var TxtF="page précédente";var TxtI="pagina precedente";var TxtS="página anterior";
	switch(Lang){case"en":var Text=TxtE;break;case"de":var Text=TxtD;break;case"fr":var Text=TxtF;break;case"it":var Text=TxtI;break;case"es":Text=TxtS;break;default:Text=TxtD;break;}
	var LinkBack = "<A HREF=\"javascript:window.location.href='index.html'+'?Lang='+Lang;\" TITLE=\""+Text+"\"";
	var TxtE="return to previous page";var TxtD="zurück zur vorherigen Seite";var TxtF="retourner ŕ la page précédente";var TxtI="ritornare a la pagina precedente";var TxtS="volver a la página anterior";
	switch(Lang){case"en":Text=TxtE;break;case"de":Text=TxtD;break;case"fr":Text=TxtF;break;case"it":Text=TxtI;break;case"es":Text=TxtS;break;default:Text=TxtD;break;}
	LinkBack += StyleClass + " onMouseOver=\"window.status='"+Text+"';return true;\" onMouseOut=\"window.status=StatusDefault;return true;\">";
	var TxtE="back";var TxtD="zurück";var TxtF="retour";var TxtI="ritornare";var TxtS="volver";
	switch(Lang){case"en":Text=TxtE;break;case"de":Text=TxtD;break;case"fr":Text=TxtF;break;case"it":Text=TxtI;break;case"es":Text=TxtS;break;default:Text=TxtD;break;}
	document.write (LinkBack+"<BIG><B>&laquo;<\/B><\/BIG>&nbsp;<I>"+Text+"<\/I><\/A>");
}
// custom text
var TxtMoreInfoE="more ...";
var TxtMoreInfoD="und ...";
var TxtMoreInfoI="e inoltre ...";
var TxtMoreInfoF="et encore ...";
