<!--
var MENU_IMAGES=new Array();
var CURRENT_OVER=-1;
function menu_over(x){
	if (CURRENT_OVER!=-1)  menu_out();
	var obj=document.getElementById('MENU'+x);
	if(obj) obj.src=MENU_IMAGES[x][1];
	CURRENT_OVER=x;
}
function menu_out(){
	var obj=document.getElementById('MENU'+CURRENT_OVER);
	if (obj) obj.src=MENU_IMAGES[CURRENT_OVER][0];
	CURRENT_OVER=-1;
}
function enable_cover(){
	if (document.getElementById('HEADER').className=='header_over') return disable_cover();
	document.getElementById('HEADER').className='header_over';
	var height=parseInt(document.getElementById('CONTENT').offsetHeight)+20;
	var cover=document.getElementById('COVER');
	height-=10;
	if (navigator.appName=="Microsoft Internet Explorer" && !window.opera) height+=10;
	cover.style.height=height+'px';
	cover.style.visibility='visible';
	document.getElementById('GALLERYIMAGEHOLDER').style.visibility='visible';
}
function disable_cover(){
	document.getElementById('HEADER').className='header';
	document.getElementById('COVER').style.visibility='hidden';
	document.getElementById('GALLERYIMAGEHOLDER').style.visibility='hidden';
}
function AssignButton(path,image,width){
	var div=document.getElementById('IMAGE');
	div.style.left=(Math.floor(494-width/2))+'px';
	div=div.nextSibling;
	div.style.left=Math.floor(494+width/2-53)+'px';
	if (path==''){
		if (div.childNodes.length==2){
			div.removeChild(div.firstChild);
			div.style.width=25+'px';
		}
		div.style.left=(parseInt(div.style.left)+25)+'px';
	}else div.firstChild.href='index.php?r[0]=m:download&r[1]='+image;
	return true;
}
function open_image(image){
	var path=image.substr(0,image.lastIndexOf('/')+1);
	var name=image.substr(image.lastIndexOf('/')+4);
	var size=new Array(1,1);
	//alert(name);
	switch(name){
		case 'klonkuesse.jpg':
			size=new Array(303,450);
			break;
		case 'demokratie.jpg':
			size=new Array(321,450);
			break;
		case 'amhund_big.jpg':
			size=new Array(303,450);
			break;
		case 'valse-poster.jpg':
			size=new Array(290,450);
			break;
		case 'exstasy-plakat.jpg':
			size=new Array(317,450);
			break;
		case 'l_engelin.jpg':
			size=new Array(321,450);
			break;
		case 'te_vs2-mi.jpg':
			size=new Array(321,450);
			name='karte_vs2-gr.jpg';
			break;
		case 'dad-mi.jpg':
			size=new Array(298,421);
			name='bagdad.jpg';
			break;
		case 'o-touristicus-karte-mi.jpg':
			size=new Array(450,204);
			name='homo-touristicus-karte.jpg';
			break;
	}
	enable_cover();
	var cover=document.getElementById('IMAGE');
	cover.lastChild.style.display='none';
	cover.firstChild.src=path+name;
	cover.firstChild.width=size[0];
	cover.firstChild.height=size[1];
	cover.firstChild.style.border='1px solid #fee6b8';
	AssignButton('',name,parseInt(size[0]));
}
function gallery_open_image(image,width,height,text){
	var path=image.substr(0,image.lastIndexOf('/')+1);
	var image=image.substr(image.lastIndexOf('/')+1);
	enable_cover();
	cover=document.getElementById('IMAGE');
	cover.firstChild.src=path+image;
	cover.firstChild.width=width;
	cover.firstChild.height=height;
	cover.firstChild.style.border='1px solid #fee6b8';
	if (cover.lastChild.firstChild) cover.lastChild.innerHTML='';
	if (text=='') cover.lastChild.style.display='none';
	else{
		cover.lastChild.style.display='block';
		cover.lastChild.appendChild(document.createTextNode(text));
		cover.lastChild.style.width=(width-10)+'px';
	}
	AssignButton(path,image.substr(3),parseInt(width));
}
function gallery_close_image(){
	disable_cover();
	document.getElementById('IMAGE').lastChild.src='#';
}
function SendMultimedia(){
	document.getElementById('HEADER').className='header_over';
	var height=parseInt(document.getElementById('CONTENT').offsetHeight)+20;
	var cover=document.getElementById('COVER');
	height-=10;
	if (navigator.appName=="Microsoft Internet Explorer" && !window.opera) height+=10;
	cover.style.height=height+'px';
	cover.style.visibility='visible';
	document.getElementById('MULTIMEDIACONTENTHOLDER').style.visibility='visible';
}
function CloseMultimedia(){
	disable_cover();
	document.getElementById('MULTIMEDIACONTENTHOLDER').style.visibility='hidden';
}
function SendMultimediaContent(){
	var script=document.createElement('script');
	script.type='text/javascript';
	script.src='index.php?r[0]=m:mail:mp3&r[1]='+document.getElementById('EMAIL').value;
	document.getElementsByTagName('head')[0].appendChild(script);
}
function SendMail(){
	document.getElementById('HEADER').className='header_over';
	var height=parseInt(document.getElementById('CONTENT').offsetHeight)+20;
	var cover=document.getElementById('COVER');
	height-=10;
	if (navigator.appName=="Microsoft Internet Explorer" && !window.opera) height+=10;
	cover.style.height=height+'px';
	cover.style.visibility='visible';
	document.getElementById('MULTIMEDIACONTENTHOLDER').style.visibility='visible';
	document.getElementById('SENDBUTTON').onclick=SendAktuelles;
}
function SendAktuelles(){
	var script=document.createElement('script');
	script.type='text/javascript';
	script.src='index.php?r[0]=m:mail:aktuelles&r[1]='+document.getElementById('EMAIL').value+'&r[2]='+SITE;
	document.getElementsByTagName('head')[0].appendChild(script);
}
//-->