var RecaptchaOptions = {
		   theme : 'clean',
			 lang : 'de'
		};
var picture_div_name; 
var picture_follow_off_X = -220;          
var picture_follow_off_Y = -380;

function init_follow_picture_start(name)
{
	if (picture_div_name)
	{
		document.getElementById(picture_div_name).style.visibility = 'hidden';
	}
	picture_follow_off_X = 15;
	picture_follow_off_Y = 15;
	picture_div_name = name; 
}
function unset_follow_picture_start()
{	
	if (picture_div_name)
	{
		var obj = document.getElementById(picture_div_name).style; 
		obj.visibility = 'hidden';			
	}	
	document.getElementById("over_div").style.display="none";
	picture_div_name = ''; 
}

function init_follow_picture(name)
{
	picture_div_name = name; 
}
function init_follow_picture_small(name)
{
	picture_follow_off_X = -120;          
	picture_follow_off_Y = -200;
	picture_div_name = name; 
}
function init_follow_picture_small2(name)
{
	picture_follow_off_X = -100;          
	picture_follow_off_Y = -240;
	picture_div_name = name; 
}
function init_follow_picture_bottom(name)
{
	picture_follow_off_X = -220;          
	picture_follow_off_Y = 20;
	picture_div_name = name; 
}
function unset_follow_picture(name)
{
	var obj = document.getElementById(name).style; 
	obj.visibility = 'hidden';			
	picture_div_name = ''; 
}

function follow_picture_mouse_X(evt) {if (!evt) evt = window.event; if (evt.pageX) return evt.pageX; else if (evt.clientX)return evt.clientX + (document.documentElement.scrollLeft ?  document.documentElement.scrollLeft : document.body.scrollLeft); else return 0;}
function follow_picture_mouse_Y(evt) {if (!evt) evt = window.event; if (evt.pageY) return evt.pageY; else if (evt.clientY)return evt.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop); else return 0;}

function follow(evt) 
{
	if (picture_div_name)
	{
		if (document.getElementById) 
		{
			var obj = document.getElementById(picture_div_name).style; 
			obj.visibility = 'visible';
			obj.left = (parseInt(follow_picture_mouse_X(evt))+picture_follow_off_X) + 'px';
			obj.top = (parseInt(follow_picture_mouse_Y(evt))+picture_follow_off_Y) + 'px';
		}
	}
}				


var contact_active = "";
function set_contact_visible(act)
{
	if (contact_active == act)
	{
		document.getElementById(contact_active).style.display='none';
		contact_active = "";
	}
	else
	{
		if (contact_active)
		{
			document.getElementById(contact_active).style.display='none';
		}
		contact_active = act;
		document.getElementById(contact_active).style.display='inline';
	}
}	

function forward_page(url,action,id,text)
{
	if (confirm('Möchten Sie '+text+' ?'))
	{
		self.location.href=url+'&action='+action+'&id='+id;
	}
}		

function set_over_start(left,top,color,height,width,ziel)
{
	document.getElementById("over_div").style.left=left+"px";
	document.getElementById("over_div").style.top=top+"px";
	document.getElementById("over_div").style.height=height+"px";
	document.getElementById("over_div").style.width=width+"px";
	document.getElementById("over_div").style.backgroundColor=color;
	document.getElementById("over_div").style.display="inline";	
	document.getElementById("link_over_div").href=ziel;	
}
function set_out_start()
{
	document.getElementById("over_div").style.display="none";	
}

function check_confirm(text)
{
	return confirm(text);
}

function enable_bild_layer(id)
{
	document.getElementById(id).style.display='inline';
}
function activate_bild_data(url,main_title,title)
{
	document.getElementById('picture_box_active').src=url;
	document.getElementById('picture_box_title').innerHTML=main_title;
	document.getElementById('picture_box_subtitle').innerHTML=title;
}
function disable_bild_layer(id)
{
	document.getElementById(id).style.display='none';
}

