var RecaptchaOptions = {
	theme : 'white'
};

function Go (select) {
  var wert = select.options[select.options.selectedIndex].value;
  if (wert == "leer") {
	select.form.reset();
	parent.frames["unten"].focus();
	return;
  } else {
	if (wert == "ende") {
	  top.location.href = parent.frames[1].location.href;
	} else {
	  location.href = wert;
	  select.form.reset();
	  if ( parent.frames["unten"] != null ) parent.frames["unten"].focus();
	}
  }
}

function CheckContactInput (nResult) {
	var wert =  document.forms[1].elements[7].value;
	if ( wert != nResult )
	{	var dlg = document.getElementById("error_calcAntispamError");
		dlg.style.display = "block";
		return false;
	}
	return true;
}

function CheckGamesInput (nResult) {
	var wert =  document.forms[1].elements[19].value;
	if ( wert != nResult )
	{	var dlg = document.getElementById("error_calcAntispamError");
		dlg.style.display = "block";
		return false;
	}
	return true;
}	

// Funktionen für den Kopfbereich (wechselnde Bilder)
function findft( newlocation )
{
	document.location.href = newlocation;
}

function SetDark( except )
{ 	

	if ( except != 'a_person01' && except != "*" ) 
		SetNewImage( 'a_person01' , 'person01.png');
	else 
		SetNewImage( 'a_person01' , 'person01_hover.png');

	if ( except != 'a_person02' && except != "*" ) 
		SetNewImage( 'a_person02' , 'person02.png');
	else 
		SetNewImage( 'a_person02' , 'person02_hover.png');

	if ( except != 'a_person03' && except != "*" ) 
		SetNewImage( 'a_person03' , 'person03.png');
	else 
		SetNewImage( 'a_person03' , 'person03_hover.png');
		
	if ( except != 'a_person04' && except != "*" ) 
		SetNewImage( 'a_person04' , 'person04.png');
	else 
		SetNewImage( 'a_person04' , 'person04_hover.png');
		
	if ( except != 'a_person05' && except != "*" ) 
		SetNewImage( 'a_person05' , 'person05.png');
	else 
		SetNewImage( 'a_person05' , 'person05_hover.png');

}

function SetNewImage( objid , imagefile )
{  
	var newimage = "images/" + imagefile;
	var newimagechk = "url(\"" + newimage  + "\")";
	
	var oldimage = document.getElementById( objid ).style.background;
	var oldimagechk = document.getElementById( objid ).style.backgroundImage;
	
	if ( oldimagechk != newimagechk ) 
		document.getElementById( objid ).style.background = "url(" + newimage  + ") no-repeat";
}

// ============= ============= ============= ============= ============= ============= ============= ============= 
// Rechte Maustaste deaktivieren
// ============= ============= ============= ============= ============= ============= ============= ============= 

var zeit, message="Rechtsklick ist deaktiviert! Sorry!";
var mouse_control_enabled = 0;

function click0() 
{	
	if ( mouse_control_enabled > 0 ) 
	{	if (Event.button != 1) 
		{   popup();
			return false;
		}
	}
	return true;
}

function nsc(e) 
{ 	
	if ( mouse_control_enabled > 0 ) 
		if (e.which != 1) keinkontext(); 
}

function popup() 
{	
	if ( mouse_control_enabled > 0 ) {
		mouse_control_enabled--;
		return false;
	}
	return true;
}

function nichts(e) 
{ 	
	if ( mouse_control_enabled > 0 ) 
	{
		if (e.which != 1)  
			return false; 
	}
	
	return true;
}

function keinkontext() 
{	
	if ( mouse_control_enabled > 0 ) 
	{	clearTimeout(zeit);
		zeit = setTimeout("kontext()",1);
	}
}

function kontext() 
{	
	if ( mouse_control_enabled > 0 ) 
	{	clearTimeout(zeit);
		popup();
	}
}

function retfalse()
{	return false;
}

if (document.all)
{	// ie7
	if (document.getElementById) 
		document.oncontextmenu=popup;
}
else 
	document.onmousedown=click0;

if (!(document.all) && document.getElementById)
	document.oncontextmenu=popup;

if (document.layers) 
{	document.captureEvents(Event.MOUSEUP | Event.MOUSEDOWN | Event.DBLCLICK );
	document.onmousedown=nichts;
	document.onmouseup=nsc;
}

document.ondblclick=retfalse;
