jQuery( document ).ready(function(){				
	jQuery( '.close' ).bind("mousedown", function( e ) {																
        jQuery( '#textfield-hide').hide();
        jQuery( '#textfield-show ').show();	
        jQuery( '#textfield' ).animate({height: 65}, 500);
        jQuery( '.r-textfild' ).css('overflow', 'hidden');
        return false;
    });
	jQuery( '.show' ).bind("mousedown", function( e ) {																
        jQuery( '#textfield-show ').hide();
        jQuery( '#textfield-hide ').show();
        var height = 623;
        if (height>623) {
        height = 623;
	     }								     
	        jQuery( '#textfield' ).animate({height: height}, 500);
	        jQuery( '.r-textfild' ).height(height);								        
	        jQuery( '.r-textfild' ).css('overflow-y', 'hidden');	
	        jQuery( '.r-textfild' ).css('overflow-x', 'hidden');
	        return false;
    });	
    window.setTimeout( function (){
		jQuery( '#textfield-show ').hide();
        jQuery( '#textfield-hide ').show();
        var height = 623;
        if (height>623) {
        height = 623;
	     }								     
	        jQuery( '#textfield' ).animate({height: height}, 500);
	        jQuery( '.r-textfild' ).height(height);								        
	        jQuery( '.r-textfild' ).css('overflow-y', 'hidden');	
	        jQuery( '.r-textfild' ).css('overflow-x', 'hidden');
	}, 2500);							    							   								    										   										

//	if ( jQuery( '.content-right' ).height() > jQuery( '.content-left' ).height() ) {
//		jQuery('.content-left').height( jQuery( '.content-right' ).height() );
//	}
//	else 
//		jQuery('.content-right').height( jQuery( '.content-left' ).height() );
} );	

function packageshow(hpa_id) {
	jQuery( '.cst-package-teaser' ).hide();
	jQuery( '#cst-package-teaser-'+hpa_id ).show();
	jQuery( '.packageshowlink' ).removeClass("active");
	jQuery( '#packageshowlink-'+hpa_id ).addClass("active");
}

//Merkblatt


setInterval(function() {
	if($(window).scrollTop() > 100)
	{
	 $('#vnh-container, #vnh-notices').animate({
	 	top: $(window).scrollTop() + 20 + "px"
	 }, 200)
	}
	if($(this).scrollTop() < 100)
	{
		$('#vnh-container, #vnh-notices').css('top', 91 + "px")
	}
},500);


