function fermerRMH()
{document.getElementById('RM_photo_slider3_img').style.display='none';
	}
function openRMH()
{
 var cc =document.getElementById('RM_photo_slider3_img');
 
 cc.style.display='block';
 }

$(document).ready(function(){
		
$('.RM_photo_slider').each(function(){
	
	var $this = $(this).addClass('photo-area');
	var $img = $this.find('div.RM_img');
	var $info = $this.find('.RM_info_area');
		
	var opts = {};
	
	$img.ready(function(){
		opts.imgw = 170;
		opts.imgh = 320;
	});
	
	opts.orgw = $this.width();
	opts.orgh =  $this.height();
	
	$img.css ({
		marginLeft: "0px",
		marginTop: "0px"
	});
	
	var $wrap = $('<div class="RM_photo_slider_img">').append($img).prependTo($this);

	var $open = $('<div class="RM_more_info">... Read More&nbsp;&rang;</div>').appendTo($this);
	
	var $close = $('<a class="RM_close"></a>').appendTo($info);
	
	opts.wrapw = $wrap.width();
	opts.wraph = $wrap.height();
	
	$open.mouseover(function(){
		$this.animate({ 
			width: opts.imgw,
			height: (opts.imgh+30),
			borderWidth: "1"
			
		}, 10 );
				
		$open.fadeOut();
		
		$wrap.animate({ 
		    width: opts.imgw,
			height: opts.imgh
		}, 10 );

		$(".RM_info_area",$this).fadeIn();
		
		$img.animate({
			marginTop: "0px",
			marginLeft: "0px"
		}, 10 );
		
		return false;
	});
	
	$wrap.mouseout(function(){
		$this.animate({ 
			width: 170,
			height: 90,
	        borderWidth: "0"
	      }, 10 );
		
		$open.fadeIn();
		
		$wrap.animate({ 
	        width: 170,
			height: 65
		      }, 10 );
		
			$img.animate({
				marginTop: "0px",
				marginLeft: "0px"
			}, 10 );

		$(".RM_info_area",$this).fadeOut();
		return false;
	});
	
});

}); 

