

$(document).ready(function(){ 

    $("#hauptnavigation ul.rex-navi1").supersubs({ 
        minWidth:    12,   // minimum width of sub-menus in em units 
        maxWidth:    27,   // maximum width of sub-menus in em units 
        extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
                           // due to slight rounding differences and font-family 
    }).superfish({  // call supersubs first, then superfish, so that subs are 
                     // not display:none when measuring. Call before initialising 
                     // containing tabs for same reason. 

        delay:       50,                           // one second delay on mouseout 
        animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
        speed:       300,                          // faster animation speed
        autoArrows:  false,                         // disable generation of arrow mark-up
				disableHI:   false,              						// set to true to disable hoverIntent detection 
        dropShadows: true                           // disable drop shadows 
    });

		
});

$(document).ready(
	function(){
		$('ul#headerslideshow').innerfade({
		speed: 2000,
		timeout: 5000,		
//		speed: 500,		
//		timeout: 2000,
		type: 'sequence'
	});
});





	hs.graphicsDir = './css/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.wrapperClassName = 'controls-in-heading';
	
	hs.fadeInOut = true;
	hs.dimmingGeckoFix = true;
	hs.dimmingDuration = 800;
	hs.dimmingOpacity = .75;
 	hs.showCredits = false;
	hs.expandDuration = 300;
	hs.restoreDuration = 300;	
	hs.outlineWhileAnimating = true;
	

	// Add the controlbar
	if (hs.addSlideshow) hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 4000,
		repeat: false,
		useControls: true,
		overlayOptions: {
			className: 'controls-in-heading',
			position: 'top right',
			offsetX: '0',
			offsetY: '0',
			hideOnMouseOut: false
		}
	});



left =0
if(screen) {

 links = (screen.width / 2) - 450
 oben =  (screen.height / 2) - 345
}

function PopUpPanorama() {
         window.open("/panotour/pano/aussen.html","pano","toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,noresize,left="+ links + ",top=" + oben + ",width=900,height=640")
}

function PopUpPanoramaURL(URL) {
         window.open("/panotour/pano/"+URL+".html","pano","toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,noresize,left="+ links + ",top=" + oben + ",width=900,height=640")
}




var newZoomWindow = null
function PopUpZoom(url) {
		if(screen) {
			var links = (screen.width / 2) - 450
			var oben =  (screen.height / 2) - 345
		}
		if (!newZoomWindow || newZoomWindow.closed) {
			newZoomWindow = window.open(url, "zoom", "toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,noresize,left="+ links + ",top=" + oben + ",width=900,height=640");
		} else {
			newZoomWindow.focus();
		}
	}
