 	 function rebuild(a){	// if(jQuery.browser.mozilla != true)return		return		var s = {					L : {target:jQuery('#left-column')},					C : {target:jQuery('#center-column')},					R : {target:jQuery('#right-column')}				}						jQuery.each(s, function(index){			var contentHeight = 0			this.target.children().each(function(){				contentHeight += jQuery(this).height()			})			s[index].contentHeight = contentHeight	 		 		})		boards = s		board_dif =  s.L.contentHeight - s.R.contentHeight		switch(a){			case 0:				s.L.contentHeight > s.R.contentHeight ? leftSoBig(0): rightSoBig(0)				break							case 'l':				s.L.contentHeight > s.R.contentHeight ? rightSoBig(1): rightSoBig(0)				break							case 'r':				s.L.contentHeight > s.R.contentHeight ? leftSoBig(0): leftSoBig(1)				break				case 'p':					s.L.contentHeight > s.R.contentHeight ? exactCorrection('l') : exactCorrection('r')			break		}			}		function leftSoBig(a){		var p = jQuery('.gallery222').prev()				jQuery('.gallery222').remove()				p.after(protectPlugHtml['class_gallery222'][0])				var v = protectPlugHtml['class_gallery222'][1]				protectPlugHtml['class_gallery222'] = false		switch(a){			case 0:								jQuery('.gallery222').jCarouselLite({											btnNext: ".next222",											btnPrev: ".prev222",											visible: v + 1,											vertical: true											})				  rebuild('r')				  break			case 1:								var z1 = jQuery('.gallery222').find('li').eq(0).height()/2				var z2 = Math.abs(board_dif)				var r1 = z1 - z2					 if(Math.abs(board_dif) > z1){						jQuery('.gallery222').jCarouselLite({											btnNext: ".next222",											btnPrev: ".prev222",											visible: v - 1,											vertical: true											})					 }					 rebuild('p')											 				break			case 'z':				 				break		}	}		function rightSoBig(a){		switch(a){			case 0:				var p = jQuery('#publications').prev()				jQuery('#publications').remove()				p.after(protectPlugHtml['id_publications'][0])				var v = protectPlugHtml['id_publications'][1]				protectPlugHtml['id_publications'] = false				//console.log(v);				jQuery('#publications').jCarouselLite({											btnNext: "#publications-next",											btnPrev: "#publications-prev",											visible: v + 1,											vertical: true											})				  rebuild('l')				  break			case 1:					var z1 = jQuery('#publications').find('li').eq(0).height()/2				var z2 = Math.abs(board_dif)				var r1 = z1 - z2					 if(Math.abs(board_dif) > z1){						jQuery('#publications').jCarouselLite({											btnNext: "#publications-next",											btnPrev: "#publications-prev",											visible: v - 1,											vertical: true											})					 }					 rebuild('p')											 				break			case 'z':				 				break		}	}		function exactCorrection(a){		var l_collection = '.'				var least_item = jQuery('#left-column').height() > jQuery('#right-column').height() ? boards.R.target : boards.L.target		board_dif = Math.abs(board_dif) 		var pixels = Math.floor(board_dif / least_item.children().size())		var extra_pixels = board_dif % least_item.children().size()		least_item.children().each(function(index){						if(jQuery(this).hasClass('site_block')){								jQuery(this).find('.rr').eq(0).css('padding-bottom', parseInt(jQuery(this).find('.rr').eq(0).css('padding-bottom')) + pixels + 'px' )								if(index  == (least_item.children().size() -1) ){					jQuery(this).find('.rr').eq(0).css('padding-bottom', parseInt(jQuery(this).find('.rr').eq(0).css('padding-bottom')) + extra_pixels + 'px' )				}							}else{								jQuery(this).css('padding-bottom', parseInt(jQuery(this).css('padding-bottom')) + pixels + 'px')								if(index  == (least_item.children().size() -1) ){					jQuery(this).css('padding-bottom', parseInt(jQuery(this).css('padding-bottom')) + extra_pixels + 'px')				}							}						 		})			 		recount()					 			}	function recount(){ 		lh_ = 0		jQuery('#left-column').children().each(function(){			lh_ += jQuery(this).height()		})				ch_ = 0		jQuery('#center-column').children().each(function(){			ch_ += jQuery(this).height()		})				if(ch_ < lh_){			var abs  = lh_ - ch_ 			  jQuery('#center-column').find('.rr').css('padding-bottom', parseInt(jQuery('#center-column').find('.rr').css('padding-bottom')) + abs + 'px')		}else{			//alert(123)		}	 	}			 
