	    jQuery(document).ready(function($) {
	    	// SETTING PROMO-DIVS THE SAME HEIGHT
	    	
	    	if (parseInt(jQuery('#top_right').height()) > 0) {
	    		// top row
	    		var height_left = parseInt(jQuery('#top_left').height());
	    		var height_right = parseInt(jQuery('#top_right').height());
	    		if (height_left > height_right) {
	    			jQuery('#top_right').css('height',height_left);
	    		} else if (height_left < height_right) {
	    			jQuery('#top_left').css('height',height_right);
	    		}
	    		
	    		
		    	// bottom row
	    		var height_left = parseInt(jQuery('#bottom_left_up').height())+parseInt(jQuery('#bottom_left_down').height())+parseInt(jQuery('#bottom_left_up').css('margin-bottom'));
		    	var height_right = parseInt(jQuery('#bottom_right').height());
				if (height_left < height_right) {
					var new_height_middle = parseInt(jQuery('#bottom_left_up').height())+Math.round( (height_right-height_left-2) / 2);
					var new_height_bottom = parseInt(jQuery('#bottom_left_down').height())+Math.round( (height_right-height_left-2) / 2);
					jQuery('#bottom_left_up').css('height',new_height_middle);
					jQuery('#bottom_left_down').css('height',new_height_bottom);
				} else if (height_left > height_right) {
					jQuery('#bottom_right').css('height',height_left+3);
				}

		    	
			} else if (parseInt(jQuery('#posts-list').height()) > 0) {
				// category
				var height_left = parseInt(jQuery('#posts-list').height());
		    	var height_right = parseInt(jQuery('#sidebar').height());
		    	if (height_left > height_right) {
					jQuery('#sidebar').css('height',height_left);
				} else if (height_left < height_right) {
					jQuery('#posts-list').css('height',height_right);
				}
		    	
			} else if (parseInt(jQuery('#mainbar').height()) > 0) {
				// page detail
				var height_left = parseInt(jQuery('#mainbar').height());
		    	var height_right = parseInt(jQuery('#sidebar').height());
		    	if (height_left > height_right) {
					jQuery('#sidebar').css('height',height_left);
				} else if (height_left < height_right) {
					jQuery('#mainbar').css('height',height_right);
				}
			}

			// ADD SHADOWS
			var options = {
				left: -1,
				top: -1,
				blur: 2,
				opacity: .25,
				color: "#555",
				swap: false
			};
			jQuery('div.shadow').dropShadow(options);
			
	    });
