$(document).ready(function(){
	if($("ul.sidebar").length>0){	
	    $("ul.sidebar").children().each(function(i){
			$(this).children().each(function(i){
				$(this).children().each(function(i){
					if(i%2==0){
						$(this).addClass("odd");
					}
				});
			});
		});
		$("ul.sidebar").find("a").each(function(i){
			var htm=$(this).html();
			$(this).html("<span>"+htm+"</span>");
		})
	}
	if($("div.top-block").length>0){
		$("div.top-block").find("div.cols02").each(function(i){
			var temp=0;
			$(this).children().each(function(i){
				var top1=$(this).css("padding-top");
				var len1=top1.length;
				var top2=parseInt(top1.substring(0,len1-2));
				var btm1=$(this).css("padding-bottom");
				var len2=btm1.length;
				var btm2=parseInt(btm1.substring(0,len2-2));
				var height=$(this).height()+top2+btm2;
				if(temp<height){
					temp=height;
				}
			});
			$(this).children().each(function(i){
				var top1=$(this).css("padding-top");
				var len1=top1.length;
				var top2=parseInt(top1.substring(0,len1-2));
				var btm1=$(this).css("padding-bottom");
				var len2=btm1.length;
				var btm2=parseInt(btm1.substring(0,len2-2));
				$(this).height(temp-top2-btm2);
			});
		});
	}
});
