ol(function()
{
	
	if($(".box-front").length==0) return;
	$(".box-front-text").each(function(i)
	{
		var $this = $(this);
		var $parent = $this.parent();
		var total_height = $this.outerHeight();
		var title_height = $this.find(".box-front-title").outerHeight();
		var marginBottom = parseInt(total_height) - parseInt(title_height);
		$this.animate({marginBottom:'-'+marginBottom+'px'},(300*(3-i)));
		$parent.data("marginbottom",marginBottom);
		
		$parent.hoverIntent(
			function()
			{
				$(this).find(".box-front-text").animate({marginBottom:0},300);
			},
			function()
			{
				$(this).find(".box-front-text").animate({marginBottom:'-'+$(this).data("marginbottom")+'px'},300);
			}
		);
			
	});
	
	
});


var $subsc =
{
	submit: function()
	{
		$.ajax({url:'/application/request/subscribe',data:$(document.subscribe).serialize(),success:this.onsuccess});
	},
	onsuccess: function(data)
	{
		data = utils.eval(data);
		if(data.err == 1)
		{
			document.subscribe.reset();
			$("input").trigger('blur');
		}
		alert(data.msg);
	}
	
	
};
