

jQuery(document).ready(function($){ 

			

	$(".mr1 ul li:last-child").css("margin","0px");	
	$(".wp-caption").corner("10px cc:#FFF");  


	

	$(".mr1").each(function () {

		var oo = jQuery.trim($(this).find("h2").text());

			

		if (oo.length > 0){

			$(this).find("h2").remove();			

			var cont = $(this).find(".mr1mid").html();

			$(this).html("<div class=\"mr1top\"><h2>"+oo+"</h2></div><div class=\"mr1mid\">"+cont+"</div>");

		} else {

			$(this).find("h2").remove();

		}

	});

	

	$(".mr2").each(function () {
		var oo = jQuery.trim($(this).find("h2").text());
		$(this).find("h2").remove();
		
		if (oo.length > 0){								
			$(this).prepend("<div class=\"mr2top\"><h2>"+oo+"</h2></div>");
		} 
	});

	

	

	if ($.browser.msie) {		

		$("#mright2 img").addClass("iefix");

				

		$(".mr1").corner("2px cc:#0854A6");  

		$(".mr1 .mr1mid").corner("3px cc:#0854A6");  

		$(".mr2").corner("2px cc:#0854A6");  

		$(".mr2 .mr2mid").corner("3px cc:#0854A6");  

		

		var optone = {  x:2, y:2, radius: 3, color:  "#2D4F73" }

		$("#header h1").textShadow(optone);

		$("#header h2").textShadow(optone);

		$(".mr1 h2").textShadow();

		$(".mr2 h2").textShadow();		

	}	

	

});
