
// Loptice
$(document).on("mouseover", ".loptice", function() {
    var velocity = .2;
    var fall_distance = $(this).parent().height() - $(this).position().top;
    var fall_time = fall_distance / velocity;

	$(this).animate({
		"margin-top": "-3px", // step
	}, 100);
	$(this).animate({
		"top":  '+=' + fall_distance,
		"opacity": 0.1,
		backgroundColor: "#ea3e3b"
	}, fall_time, function() {$(this).remove();});
});

// Fancybox efekat
$(document).ready(function() {

	$("a[rel=group]").fancybox({
		//'transitionIn'	:	'elastic',
		//'transitionOut'	:	'elastic',
		'speedIn'		:	600,
		'speedOut'		:	200,
		'overlayShow'	:	true,
		'titlePosition' :   'inside',
		'overlayColor' 	:   '#000'

	});
});

