//ARC Graphics 2.2003 rev 4.2004
var IE4=(document.all && !document.getElementById)?true:false;	var IE5=(document.all && document.getElementById)?true:false;
var NS4=(document.layers)?true:false;	var NS6=(document.getElementById && !document.all)?true:false;
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
//for (var i in Post) Query += "\n"+i+" = "+Post[i];	alert ("Query : "+Query);	// check all array elements
// 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);
}
// custom
var Text="default";var TxtE="Engl";var TxtD="Deut";var TxtF="fran";var TxtI="ital";var TxtS="espa";
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=TxtE;break;}
var StatusDefault=Text;	window.status=StatusDefault;
window.onResize=function(){self.location.reload();}	// handle Netscape 4 resize bug 
function Init() { window.status=StatusDefault;	/* force Netscape 4 */	}

