
	<!--//--><![CDATA[//><!--

	var psyma_use_cookies = true;
	var psyma_cookie_type = 2;
	var psyma_participation = 0;
	var psyma_participation_cookie = "psyma_participation";
	var psyma_cookie_exp = psyma_get_expiration_date();
	var psyma_language = 4;
	var psyma_width = 538;
	var psyma_height = 470;
	var xmlHttpObject;
	if (typeof XMLHttpRequest != 'undefined') 
	{
		xmlHttpObject = new XMLHttpRequest();
	}

	// Wenn im oberen Block noch kein Objekt erzeugt, dann versuche XMLHTTP-Objekt zu erzeugen
	// Notwendig für IE6 oder IE5
	if (!xmlHttpObject) 
	{
		try 
		{
			xmlHttpObject = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e) 
		{
			try 
			{
				xmlHttpObject = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e) 
			{
				xmlHttpObject = null;
			}
		}
	}

/*	if(window.XMLHttpRequest)
		var xmlHttpObject = new XMLHttpRequest();
	else
		var xmlHttpObject = new ActiveXObject("Microsoft.XMLHTTP");
*/	
	// ###### get cookie ######
	function get_psyma_cookie(a)
	{
		if ( psyma_use_cookies )
		{
			var c=document.cookie.split(a+"=");
			return (c.length>1)?unescape(c[1].split(";")[0]):"";
		}
		else
		return null;
	}

	// ###### set cookie ######
	function set_psyma_cookie(name, value, path, domain, secure, expires)
	{
		if ( psyma_use_cookies ) 
		{
			document.cookie =
			  name + "="
			  + escape(value)
			  + ((path) ? "; path=" + path : "")
			  + ((expires) ? "; expires=" + expires.toGMTString() : "")
			  + ((domain) ? "; domain=" + domain : "")
			  + ((secure) ? "; secure" : "");
		}
	}

	// ###### get expiration date ######
	function psyma_get_expiration_date()
	{
		var psyma_day_offset = 7;		// how many days should cookies be active
		var psyma_milli_offset = psyma_day_offset * 1000 * 60 * 60 * 24;
		var psyma_now = new Date();
		psyma_participation_exp = new Date(psyma_now.valueOf() + psyma_milli_offset);
		return psyma_participation_exp;
	}

    // Funktion, die bei Statusänderungen reagiert
    function psyma_handleStateChange()
    {
        // Derzeitigen Status zurückgeben
		//alert(xmlHttpObject.responseText);
		/*if(xmlHttpObject.readyState == 4)
		{
			document.getElementById('psyma_layer').innerHTML = xmlHttpObject.responseText;
		}*/
		document.getElementById('psyma_layer').innerHTML = ACD.responseText;
    }
    
 	function psyma_ls(language)
	{
		var url;
		if(language == "en")
		{
			url = "http://scripts.psyma.com/scripts/adhoc/bentley/bentley_en.html";
			psyma_language = 1;
		}
		else if (language == "de")
		{
			url = "http://scripts.psyma.com/scripts/adhoc/bentley/bentley_de.html";
			psyma_language = 2;
		}
		else if (language == "ru")
		{
			url = "http://scripts.psyma.com/scripts/adhoc/bentley/bentley_ru.html";
			psyma_language = 3;
		}
		else if (language == "cn")
		{
			url = "http://scripts.psyma.com/scripts/adhoc/bentley/bentley_cn.html";
			psyma_language = 4;
		}
		var request = "http://tools.psyma.com/cgi-bin/ACD.pl?uri=(" + url + ")";
		var ls_switch = document.getElementById('psyma_language_select');
		var script = document.createElement("script");
		script.setAttribute("type", "text/javascript");
		script.setAttribute("src", request);
		ls_switch.appendChild(script);
		window.setTimeout("psyma_handleStateChange()", 500);
		/*xmlHttpObject.open('POST', url);
        xmlHttpObject.onreadystatechange = psyma_handleStateChange;
        xmlHttpObject.send(null);*/

	}
	//--><!]]>


	<!--//--><![CDATA[//><!-- 

	// Psyma Research+Consulting
	// a) Layer currently deactivated
	// b) You are not included in the sample	

	// ##### Cookie auslesen #####
	psyma_participation = get_psyma_cookie(psyma_participation_cookie);

	// ##### Cookie setzen, wenn noch keiner vorhanden ist #####
	if (psyma_participation != 1 && psyma_participation != 2)
	{
		if (psyma_cookie_type == 1)
		{
			//set_psyma_cookie(psyma_participation_cookie, 1, "/", "", "", "");
		}
		else if (psyma_cookie_type == 2)
		{
			//set_psyma_cookie(psyma_participation_cookie, 2, "/", "", "", psyma_cookie_exp);
		}
	}

	//--><!]]>

	