$(document).ready(function() {
			if ( document.all && !window.opera && !window.XMLHttpRequest && $.browser.msie ) var isIE6 = true;
			else var isIE6 = false;
			$.browser.msie6 = isIE6; 

			$('.newwindow').click(function() {
				window.open($(this).attr("href"),'_blank'); return false;
			});

			$('.nav_element').hover(function() {
				var a = $(this);
				if($(this).parent().find('.subnav_container').css("display")=="none") {
					$('.nav_element').each(function() {
						if($(this).attr("id")!="current") $(this).css("backgroundColor","#333");
						else $(this).css("backgroundColor","#ed0905");
					});
					a.css("backgroundColor","#434343");
					$('.subnav_container').css({"display":"none"});
					$(this).parent().css({"height":"auto"}).find('.subnav_container').css({"display":"none","width": "auto"});
					a.parent().find('.subnav_container .subnav_element').width((a.parent().width()));
					$(this).parent().find('.subnav_container').fadeIn();
				} else {
					$(this).parent().find('.subnav_container').fadeOut(300,function() {$(this).parent().find('.subnav_container').css({"display":"none"}); });
				}
			},function() {

			});

			//Colorbox-Initialisierung
			if($.browser.msie6) 
				$('#cboxSlideshow, #cboxPrevious, #cboxNext, #cboxClose').css("background-image","url(public/stylesheets/images/controls.gif)");
			if($('.box')) 
				$('.box').colorbox({width:"980px", height:"460px", initialWidth:"980px", initialHeight:"460px", transition: "none"});
			if($(".slideshow")) 
				$(".slideshow").colorbox({slideshow:true, height:"510px",width:"510px",initialHeight:"510px",initialWidth:"510px",slideshowAuto: false, transition: "none"});

		});