function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


//Ruft einen Link aus dem value eines select auf
function Go (select) {
  var wert = select.options[select.options.selectedIndex].value;
  if (wert == "leer") {
    select.form.reset();
    return;
  } 
  else {
   window.location.href = wert;
   select.form.reset();   
  }
}


function repositionSBBanner() {
    /*
	if (getWindowHeight() < ( jQuery('#flash-content').offset().top + 150) ) {
		jQuery('#sp-content-nav-banner').css('position', 'relative');
		//jQuery('#sp-content-nav-banner').css({'position' : 'absolute', 'top' : '0'});
	}
	else if (getWindowHeight() > ( jQuery('#flash-content').offset().top + 150) ) {
		jQuery('#sp-content-nav-banner').css('position', 'fixed');
	}
	*/
	if (getWindowHeight() < 600) {
		jQuery('#sp-content-nav-banner').css('position', 'relative');
		//jQuery('#sp-content-nav-banner').css({'position' : 'absolute', 'top' : '0'});
	}
	else {
		jQuery('#sp-content-nav-banner').css('position', 'fixed');
	}
}



function getWindowWidth(win) { 
	if (win == undefined) win = window; 
	if (win.innerWidth) { 
		return win.innerWidth; 
	} 
	else { 
		if (win.document.documentElement && 
			win.document.documentElement.clientWidth) { 
			return win.document.documentElement.clientWidth; 
		} 
		return win.document.body.offsetWidth; 
	} 
} 

function getWindowHeight(win) { 
	if (win == undefined) win = window; 
	if (win.innerHeight) { 
		return win.innerHeight; 
	} 
	else { 
		if (win.document.documentElement 
			&& win.document.documentElement.clientHeight) { 
			return win.document.documentElement.clientHeight; 
		} 
		return win.document.body.offsetHeight; 
	} 
}



jQuery(window).resize(function() {
	repositionSBBanner();
});

jQuery(document).ready(function(){
	repositionSBBanner();
});


function hideProbstVideo() {
	swfobject.removeSWF("flash-video-content");
	jQuery('#header_banner').hide();
	
	window.clearInterval(aktiv);
}