function show(area){
	var p = document.getElementById(area).style.position;
	
	if(p == "relative"){
		document.getElementById(area).style.position = "absolute";
		document.getElementById(area).style.visibility = "hidden";
	}
	else {
		document.getElementById(area).style.position = "relative";
		document.getElementById(area).style.visibility = "visible";
	}	
}


function nextStartImage(){
  
  start_images_position++;
  if(start_images_position > start_images_count){
    start_images_position = 1;
  }
  
  pos = start_images_position - 1;
  document.getElementById("startimage").src=start_images[pos]["src"];  
  document.getElementById("startimage_link").href=start_images[pos]["link"];  
  window.setTimeout("nextStartImage()", start_image_time);
}

function showArea(area){
	var p = document.getElementById(area).style.display;
	
	if(p == "none"){
		document.getElementById(area).style.display = "block";
	}
	else {
		document.getElementById(area).style.display = "none";
	}	
}


function pop(url)
{
	window.open(''+url+'','','height=500,width=700,location=no,menubar=no,resizable=yes,status=yes,toolbar=no,scrollbars=yes')
}

function FotoWindow(bildurl,b,h)
{
var eigenschaft,sbreite,shoehe,fenster,b,h;

// stellt die Bildschirmabmessungen fest
// find window size
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);

if(ns6||ns4) {
sbreite = innerWidth;
shoehe = innerHeight;
}
else if(ie4) {
sbreite = document.body.clientWidth;
shoehe = document.body.clientHeight;
}

x = (sbreite-b)/2;
y = (shoehe-h)/2;

eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",menubar=no,toolbar=no";

fenster=window.open("","",eigenschaften);
fenster.focus();
fenster.document.open();
with (fenster) {
  document.write('<html><head>');
  document.write("<script type='text/javascript' language='JavaScript'>");
  document.write("function click() { window.close(); } ");
  document.write("document.onmousedown=click ");
  document.write("</script>");
  document.write('<title>Klick to close</title></head>');
  document.write('<' + 'body onblur="window.close()" ');
  document.write('marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">');
  document.write('<center>');
  document.write('<img src="/'+ bildurl +'"border="0">');
  document.write('<center>');
  document.write('</body></html>');
  fenster.document.close();
}
}

var gals = new Array();

function rotateGals(){
  
  
  
  
  
  
}

function startSlideShow(arr_image, arr_links, obj, x){
    gals[x] = new Array(obj, arr_image, arr_links, 0);
    window.setTimeout("rotateGals(" + x + ")", 4000);
}

