
$(document).ready(function(){ 
																										 
		$("#loadingContent").hide(); 
		
		// show loaded content 
		$("#dataInfo").show();  
		$("#aTabs").show();    
		$(".dataInfo").show();  
																										 
		// info box 
		$("#dataInfoContent").hide(); 
		$("#showDataInfo").toggle(function(){ 
				$(this).addClass("on"); 
				}, function () { 
				$(this).removeClass("on"); 
		}); 
		$("#showDataInfo").click(function(){ 
				$("#dataInfoContent").slideToggle("slow"); 
		}); 

		// info box für neue Vorlage
   		$(".dataInfoContent").hide(); 
		$(".showDataInfo").each(function() {$(this).toggle(function(){ 
				$(this).addClass("on"); 
				}, function () { 
				$(this).removeClass("on"); 
		})}); 
		$(".showDataInfo").each(function(){$(this).click(function(){ 
				$(this).parent().siblings(".dataInfoContent").slideToggle("slow"); 
		})}); 

		// show more text 
		$(".moreTextContent").hide(); 
		$(".showMoreText").toggle(function(){ 
				$(this).find("span").addClass("on"); 
				}, function () { 
				$(this).find("span").removeClass("on"); 
		}); 
		$(".showMoreText").click(function(){ 
				$(this).next(".moreTextContent").slideToggle("slow");                                                                                                                           

				// $(".moreTextContent").slideToggle("slow"); 
		}); 

		// tabs 
		$("#aTabs").tabs({cookie: {expires: 30}}); 
		$(".tab a").click(function(){ 
				$("#dataInfo").show(); 
		}); 

		showInfos("#dataInfoContentCommentA", "#showDataInfoCommentA", "#dataInfoCommentA"); 
		showInfos("#dataInfoContentCommentB", "#showDataInfoCommentB", "#dataInfoCommentB"); 
		showInfos("#dataInfoContentCommentC", "#showDataInfoCommentC", "#dataInfoCommentC"); 
		showInfos("#dataInfoContentCommentD", "#showDataInfoCommentD", "#dataInfoCommentD"); 
		showInfos("#dataInfoContentCommentE", "#showDataInfoCommentE", "#dataInfoCommentE"); 
		showInfos("#dataInfoContentCommentF", "#showDataInfoCommentF", "#dataInfoCommentF"); 


		//ute für geänderte report.php
		$(".showDataComment").addClass("on"); 
		$(".dataContentComment").hide(); 
		$(".showDataComment").each(function(){ 
			showComment("#dataContentComment" + $(this).attr('id').replace('showDataComment',""),$(this),"#dataContentCommentPart" + $(this).attr('id').replace('showDataComment',""))
		});


}); 



 var Zustand = "a"; 
 function showInfos(par1, par2, par3) 
 { 
   $(par2).toggle(function(){ 
    $(this).addClass("on"); 
    }, function () { 
    $(this).removeClass("on"); 
   }); 
   $(par2).click(function(){ 
    if (Zustand == "a") 
    { 
     $("#dataInfoContentCommentB").hide(); 
     $("#dataInfoContentCommentC").hide(); 
     $("#dataInfoContentCommentD").hide(); 
     $("#dataInfoContentCommentE").hide(); 
     $("#dataInfoContentCommentF").hide(); 
  
     $(par1).show(); 
     Zustand = "b"; 
    } 
    else 
    { 
     $("#dataInfoContentCommentB").show(); 
     $("#dataInfoContentCommentC").show(); 
     $("#dataInfoContentCommentD").show(); 
     $("#dataInfoContentCommentE").show(); 
     $("#dataInfoContentCommentF").show(); 
     $(par1).hide(); 
     Zustand = "a"; 
    } 
  
    $(par1).slideToggle("slow"); 
    //alert(Zustand); 
   }); 
 } 

//ute für geänderte report.php
 function showComment(par1, par2,par3) 
 { 
   $(par2).click(function(){ 
    if (Zustand == "b") 
    { 
		$(".showDataComment").addClass("on"); 
		$(".dataContentComment").hide();
		$(".dataContentCommentPart").show();
  
		$(par1).show(); 
		$(par3).hide();
		Zustand = "a"; 
    } 
    else 
    { 
		$(".showDataComment").removeClass("on"); 
		$(".dataContentComment").show(); 
		$(".dataContentCommentPart").hide();

		$(par1).hide();
		$(par3).show();
		Zustand = "b"; 
    } 
  
    $(par1).slideToggle("slow"); 
	$(par3).slideToggle("slow"); 
   }); 
 } 

