	

/*	function checkSpecials(){
			var specialContent= $(".detail");	
			if (specialContent.length > 0){
				specialContent.each(function(i){
					var innerContent=$(this);
					var content=$(this).parent();
					var link = content.prev().children("a");
					link.css('border', '1px solid yellow');
					content.css('height', '0px');
					content.css('overflow', 'hidden');
					content.css('margin-bottom', '0px');
					content.prev().css('margin-bottom', '0px');
					link.click(function(e){
							link.toggleClass('specialLink');
							if (content.css("height")=="0px"){
								content.css({ visibility: "visible"});
								content.animate( { height: innerContent.height()+5},"slow");	
		 						
							} else {
								content.animate( { height: "0px"},"slow", function(){content.css({ visibility: "hidden"});});
							}
							
		  					return false;
		  				});
				});
			}
	}
	*/
	function checkOpenClose(){
			var specialContent= $(".openClose_detail");	
			if (specialContent.length > 0){
				specialContent.each(function(i){
					var innerContent=$(this);
					var content=$(this).parent();
					var link = content.prev(".openCloseLink");
					content.css('height', '0px');
					content.css('overflow', 'hidden');
					content.css( 'visibility', 'hidden');
					content.css('margin-bottom', '0px');
					content.prev().css('margin-bottom', '0px');
					link.click(function(e){
							link.toggleClass('specialLink');
							if (content.css("height")=="0px"){
								content.css({ visibility: "visible"});
								content.css({ overflow: "visible"});
								content.animate( { height: innerContent.height()+10},"slow");	
		 						
							} else {
								content.animate( { height: "0px"},"slow", function(){content.css({ overflow: "hidden"});content.css({ visibility: "hidden"});});
							}
							
		  					return false;
		  				});
				});
			}
	}
	
	function makeTall(){
 				var child=$(this).children(".sub");
    			var height=child.height();
				child.css({ height: "0px" });
				child.css({ visibility: "visible" });
	    		child.animate( { height: height},"slow");
 	}
 	function makeShort(){
 				var child=$(this).children(".sub");
    			child.animate( { height:"0px"},"fast", function(){
									child.css({ visibility: "hidden" });	
									child.css({ height: "auto" });
								});	
 	}	
 	function delForm(id){			
				var fields=$("#"+id).find("input");
				fields.each(function (i) {
						if (this.type =="checkbox"){
							$(this).removeAttr("checked");
						} else {
        					this.value='';
						}
      			}); 
				
	}	
	// Initialisierungen  
	$(document).ready(
 		function(){
 			
 			
 			$(".mMenJav").hoverIntent( makeTall, makeShort);
 		
  			checkOpenClose();
  			 
  		}
  	);
 			
