karte_top															= 0;

$(document).ready(function() {
    $('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});

  $('.aw-tabs').tabs();
  
  $('#tv_box_in li a').featureList({
				output		: '#tv_box_out li',
				start_item	: 0,
				transition_interval : 7000
			});
  
  $('#prokarte_bilder td').mouseover(function()
    {
	$('#prokarte_gruener_balken').html('<h2>'+$(this).attr('title')+'</h2><p>'+$(this).attr('gruener_balken')+'</p>');
	$('#prokarte_gruener_balken').show();
	});
  
  dummy																= $('#prokarte').offset();
  karte_top															= dummy.top;
  
  $(window).scroll(function()
    {
	$('.prokarte_uebersicht').css('margin-top',$(window).scrollTop()+'px');
	});
});

//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;




i_galerie															= 0;

function galerie_next(nr)
  {
  if(i_galerie+nr+1 < bilder.length && i_galerie+nr >= 0)
    {
	if(nr > 0)
	  {
	  document.images['gal0'].src									= document.images['gal1'].src;
	  if(i_galerie+nr+1 < bilder.length)
	    {
	    document.images['gal1'].src									= JS_rb+JS_media+bilder[i_galerie+nr+1][0];
	    }
	  else
	    {
		document.images['gal1'].src									= JS_rb+'bilder/trans.gif';
		}
	  
	  i_galerie++;
	  }
	else
	  {
	  document.images['gal1'].src									= document.images['gal0'].src;
	  document.images['gal0'].src									= JS_rb+JS_media+bilder[i_galerie+nr][0];
	  
	  i_galerie--;
	  }
	}
  
  document.getElementById('navi_last').className					= '';
  document.getElementById('navi_next').className					= '';
  if(i_galerie == 0)
    {
	document.getElementById('navi_last').className					= 'invisible';
	}
  else if(i_galerie+2 == bilder.length)
    {
	document.getElementById('navi_next').className					= 'invisible';
	}
  }
  
  
merke_ap_offen														= null;
merke_ap_id															= 0;
function get_ansprechpartner(nr)
  {
  /*
  if(merke_ap_id != 0)
    {
	//hs.close(merke_ap_offen);
	hs.close(document.getElementById('mitarbeiter_popup_0'));
    merke_ap_offen													= null;
	merke_ap_id														= 0;
	}
  
  try
    {
    //hs.htmlExpand(document.getElementById('mitarbeiter_popup'), { contentId: 'highslide-html-'+nr } );
	merke_ap_offen													= document.getElementById('ap_link_'+nr), { contentId: 'highslide-html-'+nr };
    //hs.htmlExpand(document.getElementById('ap_link_'+nr), { contentId: 'highslide-html-'+nr } );
    hs.htmlExpand(document.getElementById('mitarbeiter_popup_0'), { contentId: 'highslide-html-'+nr } );
    merke_ap_id														= nr;
	}
  catch(e){}
  */
  
  if(merke_ap_id != 0)
    {
	document.getElementById('mitarbeiter_popup_'+merke_ap_id).style.display	= 'none';
	}
  try
    {
    document.getElementById('mitarbeiter_popup_'+nr).style.display	= 'block';
    merke_ap_id														= nr;
    }
  catch(e){}
  }
  
  
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());
    map.setCenter(new GLatLng(arr_maps['id'+nr][1], arr_maps['id'+nr][2]), int_zoom);
	map.setMapType(arr_maps['id'+nr][3]);
	
	marker															= new GMarker(new GLatLng(arr_maps['id'+nr][1],arr_maps['id'+nr][2]));
	map.addOverlay(marker);
	/*
	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;
  }

i_probild															= 0;
function probild_next(i_param)
  {
  if(i_param < 0)
    {
	i_param															= bilder.length-1;
	}
  if(i_param >= bilder.length)
    {
	i_param															= 0;
	}
  i_probild															= i_param;
  document.images['gal0'].src										= JS_rb+'media/'+bilder[i_probild][0];
  }