		$(document).ready(function(){
			if ($("ul#slideshow").length > 0) {
				$('ul#slideshow').innerfade({
					speed: 800,
					timeout: 3000,
					type: 'sequence',
					containerheight: '450px'
				});
			}
			if ($("#contactform").length > 0) {
				$("#contactform").validate();
			}
			
			// Selectfield Start ----------------------------------------
				$("ul.select > li.parent").click(function(){
					$(this).children("ul").toggle();
				});	
				$("ul.value > li:last-child").css("border", "none"); 
			// Selectfield End ----------------------------------------
			
			if ($('a.lightbox').length > 0) {
				$('a.lightbox').lightBox({
					imageLoading: 	'http://www.impress.biz/img/lightbox/lightbox-ico-loading.gif',
					imageBtnPrev: 	'http://www.impress.biz/img/lightbox/lightbox-btn-prev.gif',
					imageBtnNext: 	'http://www.impress.biz/img/lightbox/lightbox-btn-next.gif',
					imageBtnClose:	'http://www.impress.biz/img/lightbox/lightbox-btn-close.gif',
					imageBlank: 	'http://www.impress.biz/img/lightbox/lightbox-blank.gif'
				});
			}
			
			if($('ul').hasClass('tabnav') > 0){	
				// initialize fist			
				$('ul.tabnav > li:first > .tabcnt').show().parent().addClass('open');	
				var tablistHeight = 40+ $('ul.tabnav > li:first > .tabcnt').outerHeight();
				$('ul.tabnav').height(tablistHeight);
				
				// klick function		
				$tabelement = $('ul.tabnav > li');			
				$tabelement.children('span').click(function(){
					
					$foldObjekt = $(this).next();
					
					tablistHeight = 40+ $foldObjekt.outerHeight();
					$('ul.tabnav').height(tablistHeight);

					$('.tabcnt').hide();
					$('ul.tabnav > li').removeClass('open');
									
					$foldObjekt.show();
					$(this).parent().addClass('open');
				});	
				
				$("a[rel^='tbk']",".tabcnt").click(function(){
					
					anchorel = $(this).attr('rel');
					$foldObjekt = $("ul.tabnav > li[id='"+ anchorel +"'] > .tabcnt");
					
					tablistHeight = 40+ $foldObjekt.outerHeight();
					$('ul.tabnav').height(tablistHeight);

					$('.tabcnt').hide();
					$('ul.tabnav > li').removeClass('open');
									
					$foldObjekt.show();
					$foldObjekt.parent().addClass('open');
				});	
			}
		
			$("ul.standort > li:last-child").css("margin", "0"); 
			$("ul.standort > li:first-child").css("padding-left", "4px"); 
			
			$("ul.standort > li").click(function(){
				if ($("ul.standort > li > ul").hasClass("open")) {
					
					$("ul.standort > li > ul").hide();
					$("ul.standort > li > span").hide();
					
					$("ul.standort > li").removeClass("soactiv");
					$("ul.standort > li > ul").removeClass("open");
				}
				
				$(this).children("ul").show();
				$(this).children("span").show();
				
				$(this).children("ul").addClass("open");
				$(this).addClass("soactiv");
			});	
		
			$("ul#navigation > li:not(.lang)").mouseenter(function(){
				if (!$(this).children("ul").hasClass("activ")) {
					$(this).children("span").addClass("activ");
					$(this).children("ul").toggle();
					
					//$(this).children("ul").fadeSliderToggle({
					//	speed: 200
					//});
				}
			});
			
			$("ul#navigation > li:not(.lang)").mouseleave(function(){
				if (!$(this).children("ul").hasClass("activ")) {
					$(this).children("span").removeClass("activ");
					$(this).children("ul").toggle();
					
					//$(this).children("ul").fadeSliderToggle({
					//	speed: 200
					//});
				}
			});			
		});