function setOpacity(obj, opacity) 
{
 opacity = (opacity == 100)?99.999:opacity; 
 obj.style.filter = "alpha(opacity:"+opacity+")"; 
 obj.style.KHTMLOpacity = opacity/100;  
 obj.style.MozOpacity = opacity/100;
 obj.style.opacity = opacity/100;
}

function obj_show(objname,option)
{
	if (obj=document.getElementById(objname))
	{
		if (option)
			obj.style.visibility='visible';
		else
			obj.style.display='none';
	}
	
}

function obj_hide(objname,option)
{
	if (obj=document.getElementById(objname))
	{
		if (option)
			obj.style.visibility='hidden';
		else
			obj.style.display='block';
	}
}

var timeout=null;

function bgcenter()
{
	if (document.getElementById('shadow').offsetTop||document.getElementById('shadow').style.position=='absolute')
	{
		document.getElementById('shadow').style.position='absolute';
	
		x=window.pageXOffset;
		y=window.pageYOffset;

		if (!y&&!x)
		{
			y=document.body.scrollTop;
			x=document.body.scrollLeft;
		}
		
		if (!y&&!x)
		{
			y=document.documentElement.scrollTop;
			x=document.documentElement.scrollLeft;
		}

		document.getElementById('shadow').style.top=y+'px';
		document.getElementById('shadow').style.left=x+'px';
	}//else static :D
	
}

function myRandom(min,max) 
{
  return(min+parseInt(Math.random()*(max-min+1)));
} 

function loadoutside()
{
	setOpacity(document.getElementById('outside1'), 70);
}

function closeoutside()
{
	document.getElementById('outside1').style.display='none';
	document.getElementById('outside2').style.display='none';
}

function openoutside()
{
	if (document.getElementById('outside').innerHTML!='error')
	{
		document.getElementById('outside1').style.display='block';
		document.getElementById('outside2').style.display='block';
	}
}

function do_query(myurl)
{
	var jetzt = new Date();
	ajaxRequest(myurl+'&time='+jetzt.getTime(),'outside',0,'','openoutside()');
}

function do_now_form(myurl,myform)
{
	var jetzt = new Date();
	document.getElementById('outside_erg').innerHTML=='';
	ajaxRequestPost(myurl+'&time='+jetzt.getTime(),'outside_erg',0,myform,'if (document.getElementById(\'outside_erg\').innerHTML==\'ok\') {location.reload();} else {myhtml=document.getElementById(\'outside_erg\').innerHTML;document.getElementById(\'outside_erg\').innerHTML=\'error\';document.getElementById(\'outside\').innerHTML=myhtml;}');
}

function do_now(myurl)
{
	var jetzt = new Date();
	document.getElementById('outside_erg').innerHTML=='';
	ajaxRequest(myurl+'&time='+jetzt.getTime(),'outside_erg',0,'','if (document.getElementById(\'outside_erg\').innerHTML==\'ok\') location.reload()');
}

function popup(Ziel,breite,hoehe) 
{
	if(top.mypopup) 
		if(!top.mypopup.closed) 
			top.mypopup.close();

	if (breite&&hoehe)
		mypopup = open(Ziel,'myPopUp',"width="+breite+",height="+hoehe+",statusbar=no,toolbar=no,locationbar=no,directories=no,scrollbars=yes,status=no,menubar=no,resizable=yes");
	else
		mypopup = open(Ziel,'_blank');
}

var faq_old=0;
function faq(obj)
{
	num=obj.id;
	num=num.replace(/faq/ig,'');
	num=num.replace(/head/ig,'');
	
	if (faq_old) 
	{
		document.getElementById('faq'+faq_old+'head').className='faqhead';
		document.getElementById('faq'+faq_old+'text').className='faqtext';
	}
	
	if (faq_old!=num)
	{
		document.getElementById('faq'+num+'head').className='faqhead_on';
		document.getElementById('faq'+num+'text').className='faqtext_on';
		faq_old=num;
	} else faq_old=0;
}

var dropdown=new Array();

function dropdown_click(uid)
{
	for(key in dropdown) 
		if (key!=uid) 
			{
				document.getElementById(key+'_2').className='unten';
				document.getElementById(key+'_1').className='oben';
			}
	
	if (document.getElementById(uid+'_2').className=='unten_on')
	{
		document.getElementById(uid+'_2').className='unten';
		document.getElementById(uid+'_1').className='oben';
	}
	else
	{
		document.getElementById(uid+'_2').className='unten_on';
		document.getElementById(uid+'_1').className='oben_on';
	}
}

function center_it()
{
	timeout=window.setTimeout("center_it()",1);
	bgcenter();
	
	x=window.pageXOffset;
	y=window.pageYOffset;

	if (!y&&!x)
	{
		y=document.body.scrollTop;
		x=document.body.scrollLeft;
	}
	
	if (!y&&!x)
	{
		y=document.documentElement.scrollTop;
		x=document.documentElement.scrollLeft;
	}
	
	document.getElementById('item').style.top=(y-75)+'px';
	document.getElementById('item').style.left=(x)+'px';
	
}

function show_item(obj,obj2)
{
	if (document.getElementById(obj2))
		document.getElementById('item_inner').innerHTML=document.getElementById(obj2).innerHTML+document.getElementById(obj).innerHTML;
	else
		document.getElementById('item_inner').innerHTML=document.getElementById(obj).innerHTML;
	document.getElementById('item').style.display='block';
	document.getElementById('shadow').style.display='block';
	bgcenter();
	center_it();
}

function show_ajax(url)
{
	ajaxRequest(url,'ajax',0,'','show_item("ajax")');
}

function hide_item()
{
	if (timeout) window.clearTimeout(timeout);
	timeout=null;
	document.getElementById('item').style.display='none';
	document.getElementById('shadow').style.display='none';
}


function people_over(obj)
{
	document.getElementById(obj).className='people_on';
}

function people_out(obj)
{
	document.getElementById(obj).className='people';
}

var people='';

function people_on(obj)
{
	if (people) document.getElementById(people).className='people';
	document.getElementById(obj).className='people_on';
	document.getElementById('right').innerHTML=document.getElementById('right_'+obj).innerHTML;
	
	people=obj;
}

var kontakt='';

function kontakt_on(obj)
{
	if (kontakt) document.getElementById(kontakt).className='kontakt';
	document.getElementById(obj).className='kontakt_on';
	document.getElementById('kontakt_info').innerHTML=document.getElementById('text_'+obj).innerHTML;
	
	kontakt=obj;
}


var pulldown=0;
var pulldown_obj=null;
var pulldown_on=0;

function pulldown_over(obj)
{
	pulldown_on=1;
	pulldown_holder();
	if (obj.id=='pulldown_main') 
		obj.className='pulldown_on';
	else
		obj.className='pulldown_sub_on';
}

function pulldown_out(obj)
{
	if (obj.id=='pulldown_main') 
	{
		pulldown_obj=obj;
		window.setTimeout('pulldown_now('+pulldown+')',100);
	}
	else
		obj.className='pulldown_sub';
}

function pulldown_now(num)
{
	if(num==pulldown)
	{
		pulldown_on=0;
		pulldown_obj.className='pulldown';
		pulldown_obj=null;
	}
}



function pulldown_holder(obj)
{
	pulldown++;
	if (!pulldown_on&&obj)
		if (obj.className='pulldown')
		{
			obj.className='pulldown_over';
		}
}

var termin_on=1;


function cor_year(num)
{
	if (num<2000) num+=1900;
	return num;
}

function cor_date(num)
{
	num=num*1;
	if(num<10) num='0'+num;
	return num;
}

min_date = new Date();

var termin_d=0;
var termin_m=0;
var termin_j=0;

var termin_d_org=0;
var termin_m_org=0;
var termin_j_org=0;

function termin(obj)
{
		if (termin_on==1)
		{
			termin_d=0;
			termin_m=min_date.getMonth();
			termin_j=cor_year(min_date.getYear());
			if (!isNaN(document.send.d_d.value)&&!isNaN(document.send.d_m.value*1)&&!isNaN(document.send.d_j.value*1)) 
			{
				termin_d=document.send.d_d.value*1;
				termin_m=document.send.d_m.value*1-1;
				termin_j=document.send.d_j.value*1;
			}
			
			termin_d_org=termin_d;
			termin_m_org=termin_m;
			termin_j_org=termin_j;
			
			if (termin_d==0) termin_d=1;
			termin_render();
			document.getElementById('termin').className='termin_on';
		}
		termin_on=0;
}

function termin_off()
{
	document.getElementById('termin').className='termin_off';
	window.setTimeout('termin_on=1;',1)
}

var monate=new Array('Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember');

function termin_render()
{
	jetzt = new Date();
	jetzt.setDate(termin_d);
	jetzt.setMonth(termin_m);
	jetzt.setYear(termin_j);
	
	jetzt.setDate(1);

	html='<div class="inner">';
	html+='<table cellspacing="0" cellpadding="0" border="0" width="100%">';
	html+='<tr>';
	
	if (jetzt>min_date)
		html+='<td><div class="termin_left" onclick="termin_minus()"><x></div></td>';
	else
		html+='<td><div class="month"><x></div></td>';
	
	html+='<td><div class="termin_center">'+monate[termin_m]+' '+termin_j+'</div></td>';
	html+='<td><div class="termin_right"  onclick="termin_plus()"><x></div></td>';
	html+='</tr>';
	
	html+='</table>';
	
	html+='<div class="month">Mo</div>';
	html+='<div class="month">Di</div>';
	html+='<div class="month">Mi</div>';
	html+='<div class="month">Do</div>';
	html+='<div class="month">Fr</div>';
	html+='<div class="month">Sa</div>';
	html+='<div class="month">So</div>';
	
	num=jetzt.getDay()*1;
	if (num==0) num=7;
	if (num==1) num=8;
	num--;
	c_num=0;
	for(i=1;i<=num;i++)
	{
		html+='<div class="day_dis"><x></div>';
		c_num++;
	}

	for(i=1;i<=31;i++)
	{
		jetzt.setDate(i);
		if (termin_m==jetzt.getMonth())
		{
			if (jetzt<min_date)
				html+='<div class="day_dis">'+i+'</div>';
			else
				if (termin_m_org==jetzt.getMonth()&&termin_j_org==cor_year(jetzt.getYear())&&termin_d_org==jetzt.getDate())
				html+='<div class="day_on" onclick="termin_this('+jetzt.getDate()+','+(jetzt.getMonth()+1)+','+cor_year(jetzt.getYear())+')">'+i+'</div>';
				else
				html+='<div class="day_off" onclick="termin_this('+jetzt.getDate()+','+(jetzt.getMonth()+1)+','+cor_year(jetzt.getYear())+')">'+i+'</div>';
			num=jetzt.getDay();
			c_num++;
		}
	}
	
	num=7-num;
	
	if (c_num+num!=42) num=num+7;
	
	for(i=1;i<=num;i++)
	{
		html+='<div class="day_dis"><x></div>';
	}

	
	html+='<div class="end"><x></div>';
	
	html+='<div class="termin_close"><a href="#" onclick="termin_off();return false">x schließen</a></div>';
	html+='</div>';
	document.getElementById('termin').innerHTML=html;
}

function termin_minus()
{
	termin_m--;
	if (termin_m<0)
	{
		termin_j--;
		termin_m=11;
	}
	termin_render();
}

function termin_plus()
{
	termin_m++;
	if (termin_m>11)
	{
		termin_j++;
		termin_m=0;
	}
	termin_render();
}

function termin_this(tag,monat,jahr)
{
	termin_d_org=tag;
	termin_m_org=monat-1;
	termin_j_org=jahr;
	
	document.send.d_d.value=cor_date(tag);
	document.send.d_m.value=cor_date(monat);
	document.send.d_j.value=jahr;
	termin_render();
}

function display(obj)
{
	if (document.getElementById(obj))
		document.getElementById(obj).style.display='block';
}

function hide(obj)
{
	if (document.getElementById(obj))
		document.getElementById(obj).style.display='none';
}

function check(url, obj)
{
	ajaxRequestPost(url,'ajax',0,obj,'check_error()');
}

function check2(url)
{
	document.getElementById('ajax').innerHTML='';
	check2_listener();
	document.send.submit();
}

function check2_listener(){
	if (document.getElementById('ajax').innerHTML=='')
		window.setTimeout("check2_listener()",1);
	else
		check_error();
}

var old_errors=new Array();

function check_error()
{
	errors=document.getElementById('ajax').innerHTML;
	//alert(errors);
	teile=errors.split('|');
	document.getElementById('ajax').innerHTML='';
	for(key in old_errors)
	if(old_errors[key])
	{
		if (document.getElementById(key))
		{
			if (old_errors[key]!=1)
				document.getElementById(key).className=old_errors[key];
			else
				document.getElementById(key).className='no_error';
		}
		old_errors[key]=0;
	}
	
	if (teile[0]!='ok'){
		for(i in teile)
		if (teile[i])
		{
			if (teile[i] == 'errortext')
			{
				document.getElementById('error').innerHTML = teile[(i*1)+1];
			}
			
			if (document.getElementById(teile[i]))
			{
				old_errors[teile[i]]=document.getElementById(teile[i]).className;
				if (!old_errors[teile[i]]) old_errors[teile[i]]=1;
				document.getElementById(teile[i]).className+=' error';
			}
		}
	}

	if (teile[0]=='ok')
	{
		if (teile[1])
		{
			teile[1]=teile[1].replace(/&amp;/g,'&');
			//alert(teile[1]);
			location.href=teile[1];
		}
		if (teile[2])
		{
			teile[2]=teile[2].replace(/&amp;/g,'&');
			eval(teile[2]);
		}
	}
		
	
}

function un_check_error()
{
	for(key in old_errors)
	if(old_errors[key])
	{
		if (document.getElementById(key))
		{
			if (old_errors[key]!=1)
				document.getElementById(key).className=old_errors[key];
			else
				document.getElementById(key).className='no_error';
		}
		old_errors[key]=0;
	}
	hide('error');
}


function bundesland_on(obj)
{
	if (document.getElementById(obj).className!='absolute_def')
		document.getElementById(obj).className='absolute';
}

function bundesland_off(obj)
{
	if (document.getElementById(obj))
		if (document.getElementById(obj).className!='absolute_def')
			document.getElementById(obj).className='absolute_dis';
}

function bundesland_def(obj)
{
	if (document.getElementById(obj))
	{
		window.setTimeout("bundesland_layer()",10);
		document.getElementById(obj).className='absolute_def';
	}
}

function bundesland_layer()
{
		if (document.getElementById('bundesland_layer'))
		{
			document.getElementById('bundesland_show_layer_inner').innerHTML=document.getElementById('bundesland_layer').innerHTML;
			document.getElementById('bundesland_show_layer').style.display='block';
		}
}

function bundesland_close_layer()
{
	document.getElementById('bundesland_show_layer').style.display='none';
}

function quis_check()
{
	my_error=0;
	if (!document.send.frage1[0].checked && !document.send.frage1[1].checked && !document.send.frage1[2].checked)	my_error=1;
	if (!document.send.frage2[0].checked && !document.send.frage2[1].checked && !document.send.frage2[2].checked)	my_error=1;
	if (!document.send.frage3[0].checked && !document.send.frage3[1].checked && !document.send.frage3[2].checked)	my_error=1;
	if (!my_error){hide('error2');hide('quis_fragen');display('bewerbung');}else	display('error2');
}


var weinladen=new Array();
function weinladen_delete_done()
{
	teile=document.getElementById('ajax').innerHTML.split('|');

	num=teile[0];
	m_gesamt_ohne=teile[1];
	m_gesamt_mit=teile[2];
	if (document.getElementById('produkt_'+num))
	{
		weinladen[num]=0;
		anzahl=0;
		for(key in weinladen)	if(weinladen[key]) anzahl++;

		if (!anzahl) 
			location.reload();
		else
		{
			document.getElementById('produkt_'+num).style.display='none';
			document.getElementById('gesamt_ohne').innerHTML=m_gesamt_ohne;
			document.getElementById('gesamt_mit').innerHTML=m_gesamt_mit;
		}
	}
}

function liefer_change(num)
{
	if (num==1)
	{
		document.send.liefer.value='1';
		document.getElementById('liefer').style.display='none';
		document.getElementById('noliefer').style.display='block';
		document.getElementById('lieferanschrift').style.display='block';
	}
	else
	{
		document.send.liefer.value='0';
		document.getElementById('liefer').style.display='block';
		document.getElementById('noliefer').style.display='none';
		document.getElementById('lieferanschrift').style.display='none';
	}
	
}

function layer_show()
{
	layer=document.getElementById('layer_info');
	
	//prepare
	layer.style.visibility='hidden';
	layer.style.marginTop='0px';
	layer.style.marginLeft='0px';
	layer.style.display='block';
	
	//x pos
	layer.style.marginLeft=(600-Math.round(layer.offsetWidth/2))+'px';
	
	//y pos
	if (!window.innerHeight)
		layer.style.marginTop=(Math.round((document.body.offsetHeight-layer.offsetHeight)/2)-100+document.body.scrollTop)+'px';
	else
		layer.style.marginTop=(Math.round((window.innerHeight-layer.offsetHeight)/2)-100+document.body.scrollTop)+'px';
	
	//display	
	layer.style.visibility='visible';
	
}

function layer_close()
{
	document.getElementById('layer_info').style.display='none';
}

var content_height_org=0;
function beratung(num,url)
{
	if (num==1)
	{
		content_height_org=document.getElementById('content_height').style.height
		document.getElementById('beratung1').style.display='none';
		document.getElementById('beratung2').style.display='block';
		document.getElementById('content_height').style.height='690px';
	}
	
	if (num==2)
	{
			ajaxRequestPost('index.php?inhalt=beratung_send'+url,'ajax',0,document.beratung_send,'check_error()');
	}
	
	if (num==3)
	{
		document.getElementById('beratung2').style.display='none';
		document.getElementById('beratung3').style.display='block';
		document.getElementById('content_height').style.height=content_height_org;
	}
}

var bilder_random_status=new Array();

function change_image(m_array,m_name,m_speed)
{
	m_name*=1;
	if (!bilder_random_status[m_name]&&bilder_random_status[m_name]!='0')	
		bilder_random_status[m_name]=0;
	else
	{
	 	if (bilder_random_status[m_name]+2>m_array.length)
	 		bilder_random_status[m_name]=0;
	 	else
	 		bilder_random_status[m_name]+=1;
	 	document.images['bild_'+m_name].src=m_array[bilder_random_status[m_name]];
	 }
	 
	 if (m_array.length>1)
	 	window.setTimeout("change_image(bilder_"+m_name+",'"+m_name+"',"+m_speed+")",m_speed);
}

function comment_result(m_id)
{
	document.getElementById('log_'+m_id).style.display='none';
	document.getElementById('loged_'+m_id).style.display='block';
	obj=document.getElementById('result_'+m_id);
	check_comments();
}

function comment_show(obj)
{
	if (obj.parentNode.className=='comment')
	{
		save_open_div('comment',obj.id.replace('noedit_head_',''),1);
		obj.parentNode.className='comment_on';
	}
	else
	{
		save_open_div('comment',obj.id.replace('noedit_head_',''),0);
		obj.parentNode.className='comment';
	}
}

function save_open_div(art,value_name,value)
{
	if(document.cookie)
	{
		test=document.cookie.split("; ");
		xfound=0;
		for (i=0;i<=test.length-1;i++)
	  {
	  	teile=test[i].split('=');
	  	if (teile[0]==art&&teile[1])
	  	{
	  		values=teile[1].split('X');
	  		found=0;
	  		items=new Array();
	  		if (values.length)
	  		for(ix=0;ix<=values.length-1;ix++)
	  		{
	  			if (value_name!=values[ix]||(value_name==values[ix]&&value))
	  				{
	  						items[ix]=values[ix];
	  				}
	  			if (value_name==values[ix]) found=1;
	  		}
	  		if (value&&!found) items[ix+1]=value_name;
	  		
	  		cookie_string='';
	  		if (items.length)
	  		for(ix=0;ix<=items.length-1;ix++)
	  		{
	  			if (items[ix]!='undefined'&&items[ix])
	  			{
	  				if (cookie_string) cookie_string+='X';	
	  				cookie_string+=items[ix];
	  			}
	  		}
	  		document.cookie =art+'='+cookie_string+';';
	  		xfound=1;
	  	}
	  }
	  
	  if (!xfound&&value)
	  {
			document.cookie =art+'='+value_name+';';
	  }
	}
}

var last_edit_id=null;
function comment_edit(id)
{
	if (last_edit_id) comment_edit_hide(last_edit_id);
	if (old_show_id) comment_comment_hide();
	if (document.getElementById('edit_'+id))
	{
		document.getElementById('edit_'+id).style.display='block';
		document.getElementById('noedit_text_'+id).style.display='none';
		document.getElementById('noedit_head_'+id).style.display='none';
		last_edit_id=id;
	}
}

function comment_edit_hide(id)
{
	if (document.getElementById('edit_'+id))
	{
		document.getElementById('edit_'+id).style.display='';
		document.getElementById('noedit_text_'+id).style.display='';
		document.getElementById('noedit_head_'+id).style.display='';
		if (last_edit_id==id) 
			last_edit_id=null;
	}
	
}

function check_comments()
{
	if(document.cookie)
  gespeichert = document.cookie;
  c_test=gespeichert.split("; ");
  for (i=0;i<=c_test.length-1;i++)
  {
  	c_teile=c_test[i].split('=');
  	if (c_teile[0]=='comment'&&c_teile[1])
  	{
 			c_items=c_teile[1].split('X');
 			for(icx=0;icx<=c_items.length-1;icx++)
  		{
 				if (document.getElementById('noedit_head_'+c_items[icx]))
 					comment_show(document.getElementById('noedit_head_'+c_items[icx]));
 			}
  	}
  }
}

function comment_comment_hide()
{
	if (old_show_id)
	{
		document.getElementById('prelog_'+old_show_id).style.display='block';
		document.getElementById('log_'+old_show_id).style.display='none';
		document.forms['send_'+old_show_id].reset();
		old_show_id=null;
	}
}

var old_show_id=null;

function comment_comment_show(id)
{
	if (document.getElementById('prelog_'+id))
	{
		if (last_edit_id) comment_edit_hide(last_edit_id);
		if (old_show_id) comment_comment_hide();
		document.getElementById('prelog_'+id).style.display='none';
		document.getElementById('log_'+id).style.display='block';
			old_show_id=id;
	}
}


/* ******** TEAM  ***********/
var old_team_id=0;
var selected_id=0;

function hover_team(id){
	//wenn neues Team-Mitglied ausgewählt wurde
	if(old_team_id!=id){
		document.getElementById('team_'+id).className='icon_over';
		document.getElementById('name_'+id).className='name_over';
		document.getElementById('vita_'+id).className='vita_over';
		
		
		if(old_team_id){
			document.getElementById('team_'+old_team_id).className='icon';
			document.getElementById('name_'+old_team_id).className='name';
			document.getElementById('vita_'+old_team_id).className='vita';
		}
		old_team_id = id;
	}
}

function unhover_team(id){
	//wenn neues Team-Mitglied ausgewählt wurde

	if(old_team_id!=selected_id){
		document.getElementById('team_'+id).className='icon';
		document.getElementById('name_'+id).className='name';
		document.getElementById('vita_'+id).className='vita';
	}
	
	old_team_id = 0;
}



function team_selected(id){
	
	if(selected_id){
		unhover_team(selected_id);
	}
	
	selected_id = id;
	
	document.getElementById('bild_rechts').className = 'team';
	document.getElementById('bild_links').innerHTML=document.getElementById('team_bild_'+selected_id).innerHTML;
	document.getElementById('bild_rechts_text').innerHTML=document.getElementById('team_beschreibung_'+selected_id).innerHTML;
	document.getElementById('bild_rechts_headline').innerHTML=document.getElementById('team_name_'+selected_id).innerHTML;
}

/* ******** News  ***********/

var selected_news_id=0;

function hover_news(id){
	//wenn neue news ausgewählt wurde
	if(selected_news_id!=id){
		document.getElementById('news_'+id).className='icon_over';
		document.getElementById('headline_'+id).className='headline_short_over';
	}
}

function unhover_news(id){
	
	if(id!=selected_news_id){
		document.getElementById('news_'+id).className='icon';
		document.getElementById('headline_'+id).className='headline_short';
	} 
}


function news_selected(id){
	
	var old_id = selected_news_id;
	
	selected_news_id = id;
	
	if(old_id&&selected_news_id){
		unhover_news(old_id);
	}
	
	document.getElementById('news_datum').innerHTML=document.getElementById('news_datum_'+selected_news_id).innerHTML;
	document.getElementById('news_headline').innerHTML=document.getElementById('news_headline_'+selected_news_id).innerHTML;
	document.getElementById('news_lang').innerHTML=document.getElementById('news_lang_'+selected_news_id).innerHTML;
	document.getElementById('news_kontakt').innerHTML=document.getElementById('news_kontakt_'+selected_news_id).innerHTML;
	document.getElementById('news_image').innerHTML=document.getElementById('news_image_'+selected_news_id).innerHTML;
	document.getElementById('news_download').innerHTML=document.getElementById('news_download_'+selected_news_id).innerHTML;
}


