// JavaScript Document
$(document).ready(function(){
	$("#head #submit_lang").hide();
	swfobject.embedSWF("flash/logo.swf", "head_ani", "108", "156", "9.0.0","flash/expressInstall.swf");
	/*
	$("#left ul:hidden").each(function() {
		$(this).parent("li").hover(
			function() { $(this).children("ul:first").slideDown("slow"); },
			function() { $(this).children("ul:first").slideUp("slow"); }
		);
	});
	*/
	$(".img a").lightbox();
	$("#newsletter #vorname,#newsletter #nachname,#newsletter #email").focus(function() {
		val = $(this).val();
		switch ($(this).attr("id")) {
			case "vorname":
				if(val=="Vorname") $(this).val("");
				break;
			case "nachname":
				if(val=="Nachname") $(this).val("");
				break;
			case "email":
				if(val=="E-Mail Adresse") $(this).val("");
				break;
		}
	});
	$("#newsletter #vorname,#newsletter #nachname,#newsletter #email").blur(function() {
		val = $(this).val();
		switch ($(this).attr("id")) {
			case "vorname":
				if(val=="") $(this).val("Vorname");
				break;
			case "nachname":
				if(val=="") $(this).val("Nachname");
				break;
			case "email":
				if(val=="") $(this).val("E-Mail Adresse");
				break;
		}
	});
	$("#newsletter #auswahlanmelden").click(function() {
		$("#noshow").css("display","block");
	});
	$("#newsletter #auswahlabmelden").click(function() {
		$("#noshow").css("display","none");
	});
});
$(function() { 
	imgs = new Array('images/flag_de.gif','images/flag_en.gif','images/flag_ru.gif','images/flag_pl.gif','images/flag_cz.gif');
	$("#head select").langReplace(imgs);
});

