$(document).ready(function() {


	$("#topnav li").prepend("<span></span>");

	$("#topnav li").each(function() {
		var linkText = $(this).find("a").html();
		$(this).find("span").show().html(linkText);
	});

	$("#topnav li").hover(function() {
		$(this).find("span").stop().animate({
			marginTop: "-32"
		}, 250);
	} , function() {
		$(this).find("span").stop().animate({
			marginTop: "0"
		}, 250);
	});


});



// Stuff for Popups
function oeffnefenster (url) {
 fenster = window.open(url, "fenster1", "width=400,height=300,status=yes,scrollbars=no,resizable=no");
 fenster.focus();
}

// Stuff for HighSlide
hs.graphicsDir = 'config/highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.fadeInOut = true;
//hs.dimmingOpacity = 0.75;

// define the restraining box
hs.useBox = true;
hs.width = 640;
hs.height = 480;


// Add the controlbar
hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: .75,
		position: 'bottom center',
		hideOnMouseOut: true
	}
});