
	<!--//--><![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();

	// ###### 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 = 30;		// 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;
	}

	//--><!]]>

	<!--//--><![CDATA[//><!--
	// ### ALLE JS-FUNKTIONEN LADEN ###

	var psyma_cookies_enabled = 0;
	function psyma_set_test_cookie(name, value, path, domain, secure, expires){document.cookie = name + "=" + escape(value) + ((path) ? "; path=" + path : "") + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");}
	function psyma_get_test_cookie(a){var c=document.cookie.split(a+"="); return (c.length>1)?unescape(c[1].split(";")[0]):"";}
	function psyma_delete_test_cookie(name, path, domain){document.cookie = name + "=" + ( ( path ) ? ";path=" + path : "") + ( ( domain ) ? ";domain=" + domain : "" ) + ";expires=Thu, 01-Jan-1970 00:00:01 GMT";}
	psyma_set_test_cookie("psyma_test_cookie", 1, "/", "", "", "");
	if(psyma_get_test_cookie("psyma_test_cookie") == 1){psyma_cookies_enabled = true}else{psyma_cookies_enabled = false}
	psyma_delete_test_cookie("psyma_test_cookie", '/', '');
	if(psyma_cookies_enabled == 1)
	{
		// ###### URL FILTER ######
		function psyma_url_ok()
		{
			var return_value = false;
			if ( false )
			{
				var my_location = new Array();
				
								my_location.push("");
								my_location.push("");
								my_location.push("");
				
				for (i=0; i<my_location.length; i++)
				{		
					if(false == true && location.href.indexOf(my_location[i]) > -1)
					{
						return_value = false;
						break;
					}
					else if(false == true && location.href.indexOf(my_location[i]) == -1)
					{
						return_value = true;
						break;
					}
					
					if(false == false && location.href.indexOf(my_location[i]) > -1)
					{
						return_value = true;
						break;
					}
				}
			}
			else
			{
				return_value = true;
			}
			return return_value;
		}
		// ###### URL FILTER (ENDE) ######

		// ###### PSYMA INIT SURVEY ######
		function psyma_init_survey()
		{		
			// ### Psyma Cookie auslesen ###
			psyma_participation = get_psyma_cookie(psyma_participation_cookie);

			// ### Psyma Cookie noch nicht gesetzt & Die URL ist im Filter (wenn aktiviert) ###
			if (psyma_participation != 1 && psyma_participation != 2 && psyma_url_ok())
			{
				// ### Cookie setzen, wenn aktiviert ###
				if (psyma_use_cookies == true)
				{
					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);
					}
				}
				
				// ### Einladung öffnen ###
				setTimeout('psyma_open_survey()', 1500);
			}
		}
		// ###### PSYMA INIT SURVEY (ENDE) ######

		psyma_init_survey();

		// ### Umfrage öffnen ###
		function psyma_open_survey()
		{
			var urlLink = document.location;
			top.location="http://scripts.psyma.com/scripts/abuk/ford.html?contact_rate=25.09";
		}
	}
	//--><!]]>

