 $(document).ready(function(){
							 
	 $('#pane4').jScrollPane();
	 matchHeight() ;
	 

  });
 
 

quicknav = function () {
	if ($("#qnav").height() == 22) {$("#qnav").height(202)}
	else {$("#qnav").height(22)}
	}
	
closequicknav = function () {
	$("#qnav").height(22) ;
	}

//match
 	matchHeight=function(){
         var divs,contDivs,maxHeight,divHeight,d;
         // get all <div> elements in the document
         divs=document.getElementsByTagName('div');
         contDivs=[];

         // initialize maximum height value
         maxHeight=100;
		 maximalHeight=100;
		 //maximalHeight=$(window).height()-260 ;
         // iterate over all <div> elements in the document
         for(var i=0;i<divs.length;i++){
              // make collection with <div> elements with class attribute 'container'
			   if(/\bcontainer\b/.test(divs[i].className)){
                    d=divs[i];
                    contDivs[contDivs.length]=d;
                    // determine height for <div> element
                    if(d.offsetHeight){
                         divHeight=d.offsetHeight;
                    }
                    else if(d.style.pixelHeight){
                         divHeight=d.style.pixelHeight;
                    }
                    // calculate maximum height
                    maxHeight=Math.max(maxHeight,divHeight);
              }

         }
		 
		 //maxHeight = maximalHeight + 40  ; 
		   //if (maxHeight < 100) {maxHeight = 140 ;}	
		   maxHeight = 200 ;
		 document.getElementById('ccontent').style.height=maxHeight + 'px';
		 document.getElementById('pane4').style.height=maxHeight + 'px';
		 $('#pane4').parent().get(0).style.height=maxHeight + 'px';
		 document.getElementById('inhalt').style.height=maxHeight + 'px';
		 $('#pane4').jScrollPane( {bottomCapHeight:2, reinitialiseOnImageLoad: false} );
		 
    }

   
	
	jQuery.event.add(window, "resize", resizeFrame);

		function resizeFrame() 
		{
			matchHeight();
			//$('#pane3').jScrollPane( {reinitialiseOnImageLoad: false} );
		    $('#pane4').jScrollPane( {bottomCapHeight:2, reinitialiseOnImageLoad: false} );
		}
		


			reinitialiseScrollPane = function()
				{
					//$('#pane1').jScrollPane();
					 matchHeight();
					 //$('#pane3').jScrollPane({reinitialiseOnImageLoad: false});
					 $('#pane4').jScrollPane({bottomCapHeight:2, reinitialiseOnImageLoad: false});
					var pane4top = parseInt( $('#pane4').offset().top);
					var $pane4 = $('#pane4');
					$pane4[0].scrollTo(0);
				}
				

