// JavaScript Document
// JavaScript Document
// to div's present in a parent div
function rt_equalHeightWidth( group, afbeeldingverkleinen ) {
 
// Get parent div width

    var rt_group_width = group.width();
 	
// Get child div's
    var rt_group_child = group.children();
 
// Get size of child div present in the parent div
    var rt_group_child_size = group.children().size();
 
// Function to apply equal width for all child div's
        rt_group_child.each( function() {
// Calculate width for each child div
            var rt_group_child_width = rt_group_width / rt_group_child_size;
 
// Count extra padding and border width
			var borderleft = parseInt(jQuery( this ).css( 'border-left-width' ));
			
			var borderright = parseInt(jQuery( this ).css( 'border-right-width' ));
			
			var marginleft = parseInt(jQuery( this ).css( 'margin-left' ));
			
			//alert(parseInt(borderleft + borderright));
            var rt_extra_width = parseInt( jQuery( this ).css( 'padding-left' ) ) + parseInt( jQuery( this ).css( 'padding-right'  ) ) + parseInt( borderleft + borderright + marginleft  );
 			
// Remove extra padding and border width from width
            var rt_group_child_actual_width = rt_group_child_width - rt_extra_width;
 
 			
		
// Apply actual width to each child div
            jQuery( this ).css( { 'width' : rt_group_child_actual_width + 'px' } );
			
			if(afbeeldingverkleinen == "true")
				{
				jQuery( "img",this ).css( { 'width' : rt_group_child_actual_width + 'px ','margin-left' : '0px ','margin-right' : '0px ' } );
				}
			
        } );
 
// Equal height for all child div's
        var rt_height = 0;
 
// Function to apply equal height for all child div's using jQuery each
        rt_group_child.each( function() {
 
// Get height for each widget
            var thisHeight = jQuery( this ).height();
 			
// Get height for widget and apply equal height's to all widget
            if ( thisHeight > rt_height ) { rt_height = thisHeight; }
        } );
        rt_group_child.height( rt_height );
}
 

		
		
