		// Flash Version
		var requiredMajorVersion = 10; var requiredMinorVersion = 0; var requiredRevision = 0;
		var validFLPlayer = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
		
		// Box ein- oder ausblenden
		function toggleTextbox(){
			switch($("#box").css("width")){
				case '0px' :
					$("#textbox-button").css("background-image", "url('../img/layout/textbox_close.gif')");
					$("#box").animate({width: "440px"},1000,function(){
						$('#box').mouseover(function(){
							$(this).css({"overflow" : "auto"});
							});
						$('#box').mouseout(function(){
							$(this).css({"overflow" : "hidden"});
							});
						});
				break;
				default :
					$("#textbox-button").css("background-image", "url('../img/layout/textbox_open.gif')");
					$("#box").animate({width: "0px"},1000);
				break;
				}
			}


		// onload Scripts starten:
		$(document).ready(function(){

			// Box ausfahren wenn vorhanden
			if($("#box")){
				$("#textbox-button").css("background-image", "url('../img/layout/textbox_close.gif')");
			
				$("#box").animate({width: "440px"},1800,function(){
					$('#box').mouseover(function(){
						$(this).css({"overflow" : "auto"});
						});
					$('#box').mouseout(function(){
						$(this).css({"overflow" : "hidden"});
						});
					});			
				}
	                 

			// JFade starten
			var jFa = new jFade('rotator','img',false,true);
			jFa.speed = 6000;
			jFa.animspeed = 1000;
			jFa.run();
			
			var jFa = new jFade('tagungsraum','div',false,true);
			jFa.speed = 3000;
			jFa.animspeed = 1000;
			jFa.run();
			
			
			// Dropup Menü Einblendeffekt Menü oben
			$("div#mainmenu-wrapper > div > ul > li > ul").css({opacity : "0"});
			
			$("div#mainmenu-wrapper > div > ul > li")
			.mouseover(function(){
				$(this).children("ul").css({display: 'block'});
				$(this).children("ul").stop().animate({opacity:"0.9"}, {duration:500})
				})
			.mouseout(function(){
				$(this).children("ul").stop().animate({opacity:"0", display: 'none'}, 500, function(){
					$(this).parent().children("ul").css({display:"none"})
					});
				});
			
			// Dropup Menü Einblendeffekt 2. Menü oben
			$("div#topmenu-wrapper > div > ul > li > ul").css({opacity : "0"});
			
			$("div#topmenu-wrapper > div > ul > li")
			.mouseover(function(){
				$(this).children("ul").css({display: 'block'});
				$(this).children("ul").stop().animate({opacity:"0.9"}, {duration:500})
				})
			.mouseout(function(){
				$(this).children("ul").stop().animate({opacity:"0", display: 'none'}, 500, function(){
					$(this).parent().children("ul").css({display:"none"})
					});
				});
			
			
			// Dropup Menü Einblendeffekt Menü unten
			$("div#imagemenu-wrapper > div > ul > li > ul").css({opacity : "0"});
			
			$("div#imagemenu-wrapper > div > ul > li")
			.mouseover(function(){
				$(this).children("ul").css({ "display" : "block"});
				$(this).children("ul").stop().animate({opacity : "0.9"}, {duration:500})
				})
			.mouseout(function(){
				$(this).children("ul").stop().animate({opacity : "0", "display" : "none"}, 500, function(){
					$(this).parent().children("ul").css({"display" : "none"})
					});
				});

			// Spolight menü unten
			var spotlight = {
				opacity : 0.65,
				imgWidth : $('div#imagemenu-wrapper > div > ul > li').find('img').width(),
				imgHeight : $('div#imagemenu-wrapper > div > ul > li').find('img').height()
				};
			$('div#imagemenu-wrapper > div > ul > li').hover(
				function(){
					$(this).find('img').addClass('active').stop().css({'opacity' : 1});
					$(this).siblings('li').find('img').stop().animate({'opacity' : spotlight.opacity},500);
					},
				function(){
					$(this).find('img').removeClass('active');
					}
				);
			$('div#imagemenu-wrapper > div > ul').bind('mouseleave',
				function(){
					$(this).find('img').stop().animate({'opacity' : 1},500);
					}
				);

			// Lightbox initialisieren
			$(function(){
				$('a[rel*=lightbox]').lightBox();
			    });

			$( function(){
				$(".tab tr:even").addClass("even");
				$(".tab tr:odd").addClass("odd");
				});

		});
		

	            
