 $(document).ready(function(){
	
	
	/*$("div#UpperFrame").hide();
	$("div#UpperFrame").slideDown("slow");*/
	
	$(".slideshow").dynamicSlideshow();
        $('.CycleSlideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	
	$(".Termin .Box_gray").hide();
    if($(location).attr("hash") != ""){
        $($(location).attr("hash")+" .Box_gray").show();
    }
    else {
        $(".Termin:first .Box_gray").show();
    }


	$(".TerminLink").click(function() {
		$(this).parents(".Termin").siblings().children(".Box_gray").slideUp("slow");
		$(this).parents(".Termin").children(".Box_gray").slideDown("slow");
		return false;
	});
    
 });
	
	//$(".ProductDetails").css("height","140px");
	/*$(".ProductName").append(' <a href="#" style="font-size:9pt;font-variant:small-caps;">Details einblenden</a>');
	$(".ProductName").children("a").click(function() {
		if($(this).text() == "Details einblenden") {
			$(".ProductDetails").css("height","140px");
			$(this).parent().siblings(".ProductDetails").animate({height:"100%"},1000);
			$(this).text("Details ausblenden");
		}
		else {
			$(this).parent().siblings(".ProductDetails").animate({height:"140px"},500);
			$(this).text("Details einblenden");
		}
		
		
		return false;
	});*/
	
	/*$(".ShopCategory > .Balk_Black").append(' <a href="#" style="font-size:9pt;font-variant:small-caps;">Kategorie ausblenden</a>');
	$(".ShopCategory > .Balk_Black > a").click(function() {
		if($(this).text() == "Kategorie ausblenden") {
			$(this).parent().siblings(".ShopTable").slideUp("slow");
			$(this).text("Kategorie einblenden");
		}
		else {
			$(this).parent().siblings(".ShopTable").slideDown("slow");
			$(this).text("Kategorie ausblenden");
		}
		return false;
	});*/
	

	
	/*$(".ProductDetails").hover(function() {
		//$(this).slideDown("slow");
		//$(this).animate({height:"100%"},1000);
	},function() {
		$(this).animate({height:"140px"},1000);
	});*/

