$(document).ready(function(){
	
	if($('#banner-grafico').length)
	{
		$('#banner-grafico').modal({position: ["20%","35%"]});
	}
	
	else if($('#banner-testuale').length)
	{
		$('#banner-testuale').modal({position: ["20%","28%"], minHeight:350, maxWidth: 600});
	}
	
	// find the elements to be eased and hook the hover event
	$('div.jimgMenu ul li a').hover(function() {
	
		// if the element is currently being animated (to a easeOut)...
		if ($(this).is(':animated')) {
			$(this).stop().animate({width: "400px"}, {duration: 450, easing:"easeOutQuad"});
		} else {
			// ease in quickly
			$(this).stop().animate({width: "400px"}, {duration: 400, easing:"easeOutQuad"});
		}
	}, function () {
		// on hovering out, ease the element out
		if ($(this).is(':animated')) {
			$(this).stop().animate({width: "54px"}, {duration: 400, easing:"easeInOutQuad"})
		} else {
			// ease out slowly
			$(this).stop('animated:').animate({width: "54px"}, {duration: 450, easing:"easeInOutQuad"});
		}
	});

	
});
