//252c11fe15cc0c367cc46c4ee083a475
// remove the registerOverlay call to disable the controlbar
hs.registerOverlay(
  {
  thumbnailId: null,
  overlayId: 'controlbar',
  position: 'top right',
  hideOnMouseOut: true
  }
);

hs.graphicsDir														= JS_rb+'global/js/highslide/';
hs.outlineType														= 'rounded-white';
hs.captionEval														= 'this.thumb.title';
hs.showCredits														= false;




var gl_browser_height												= 0;
var gl_browser_width												= 0;


//------------------------------------------------------------------
// Simple Browser Check
//------------------------------------------------------------------
var ns4 = (document.layers) ? 1 : 0;
var ie  = (document.all) ? 1 : 0;
var ns6 = (document.getElementById && !document.all) ? 1 : 0;
var ie6	= (navigator.userAgent.toLowerCase().indexOf("msie 6")!=-1) ? 1 : 0;



//------------------------------------------------------------------
// breite und hoehe des browserfensters bestimmen
//------------------------------------------------------------------
function cxi_init_browser_height_width()
  {
  if(ie && navigator.appVersion.indexOf("Linux") < 0)
    {
    gl_browser_width												= parseInt(document.documentElement.clientWidth);
    gl_browser_height												= parseInt(document.documentElement.clientHeight);
	}
  else
    {
	gl_browser_width												= parseInt(innerWidth);
    gl_browser_height												= parseInt(innerHeight);
    }
  
  //fuer linux
  if(navigator.appVersion.indexOf("Linux") >= 0)
    {
    gl_browser_height												= gl_browser_height-8;
    }
  }


document.write('<style type="text/css">');
//document.write('#content { height: '+(gl_browser_height-210)+'px; }');
document.write('</style>');


function set_neue_hoehe()
  {
  cxi_init_browser_height_width();
  document.getElementById('content').style.height					= (gl_browser_height-165)+'px';
  }
//window.onload	= set_neue_hoehe;
//window.onresize =  set_neue_hoehe;



// galerie
i_nb																= 0;
function nb(nr)
  {
  if(i_nb+nr < arr_galerie_bilder.length && i_nb+nr >= 0)
    {
	document.getElementById('galerie_'+i_nb).style.display			= 'none';
	document.getElementById('galerie_'+(i_nb+nr)).style.display		= 'block';
	
	if(document.images['galerie_'+(i_nb+nr)+'_img'].src.indexOf('trans.gif') > 0)
	  {
	  document.images['galerie_'+(i_nb+nr)+'_img'].src				= arr_galerie_bilder[(i_nb+nr)];
	  }
	i_nb															+= nr;
	}
  }


arr_maps															= new Array();


function karte_laden(nr,int_zoom,str)
  {
  if(GBrowserIsCompatible() && !arr_maps['id'+nr][0])
	{
	map																= new GMap2(document.getElementById('map'+nr));
	map.addControl(new GSmallMapControl());
	map.addControl(new GMapTypeControl());
    geocoder														= new GClientGeocoder();
	
	geocoder.getLatLng(arr_maps['id'+nr][1], function(point){
	  if(point)
	    {
	    //map.panTo(point);
	    map.setCenter(point, int_zoom);
		marker														= new GMarker(point);
	    map.addOverlay(marker);
		if(str != '')
		  {
		  marker.openInfoWindowHtml(str);
		  }
		}
	  else
	    {
		document.getElementById('map'+nr).style.display				= 'none';
		}
	  }
	);
	}
  arr_maps['id'+nr][0]												= 1;
  }